/* PriceHop AI — light theme rebuild (2026-06) */

:root {
  --ink: #0d1b2a;
  --ink-2: #1f2d3d;
  --body: #44546a;
  --muted: #6b7a8d;
  --line: #e6eaf0;
  --line-strong: #d4dae3;
  --surface: #ffffff;
  --surface-2: #f6f8fb;
  --surface-3: #eef2f7;
  --brand: #1659f0;
  --brand-ink: #0f3fb0;
  --brand-soft: #eaf1ff;
  --accent: #f97316;
  --accent-soft: #fff1e6;
  --good: #15924d;
  --good-soft: #e7f6ee;
  --bad: #c0392b;
  --radius: 18px;
  --radius-lg: 26px;
  --shadow-sm: 0 1px 2px rgba(13, 27, 42, .05), 0 1px 1px rgba(13, 27, 42, .04);
  --shadow-md: 0 12px 30px rgba(13, 27, 42, .08);
  --shadow-lg: 0 30px 70px rgba(13, 27, 42, .12);
  --maxw: 1160px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body { max-width: 100%; overflow-x: hidden; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--body);
  background: var(--surface);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* every grid/flex child may shrink below its content size */
.hero-grid > *, .split > *, .steps > *, .aud-grid > *, .gallery > *,
.demo-wrap > *, .faq > *, .footer-grid > *, .support-cards > * { min-width: 0; }

h1, h2, h3, p, .lead-line, .cmp-product-name, .cmp-country { overflow-wrap: break-word; }

h1, h2, h3 { color: var(--ink); margin: 0; line-height: 1.12; letter-spacing: -0.02em; font-weight: 680; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg, video { display: block; max-width: 100%; }

.wrap { width: min(var(--maxw), calc(100% - 48px)); margin: 0 auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: 15px; line-height: 1;
  padding: 13px 20px; border-radius: 12px; border: 1px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 20px rgba(22, 89, 240, .22); }
.btn-primary:hover { background: var(--brand-ink); transform: translateY(-1px); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--muted); }

.store-badge { display: inline-flex; }
.store-badge img { height: 52px; width: auto; }
.store-badge:hover { transform: translateY(-1px); transition: transform .15s ease; }
.store-soon { display: inline-flex; height: 52px; width: auto; opacity: .9; }
.store-soon img { height: 52px; width: auto; }

.cta-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.badge-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 680; color: var(--ink); letter-spacing: -0.01em; }
.brand img { width: 32px; height: 32px; border-radius: 8px; box-shadow: var(--shadow-sm); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--body); font-size: 15px; font-weight: 500; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 18px; }

/* ---------- Hero ---------- */
.hero { padding: 84px 0 72px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 50% at 88% 8%, rgba(22, 89, 240, .07), transparent 70%),
    radial-gradient(50% 50% at 6% 0%, rgba(249, 115, 22, .05), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 64px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap;
  max-width: 100%;
  font-size: 13px; font-weight: 600; letter-spacing: .01em;
  color: var(--brand-ink); background: var(--brand-soft);
  border: 1px solid rgba(22, 89, 240, .14);
  padding: 6px 14px; border-radius: 18px; line-height: 1.35;
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: 0 0 auto; }
.hero h1 { font-size: clamp(33px, 7.2vw, 60px); margin: 22px 0 0; letter-spacing: -0.035em; font-weight: 720; max-width: 14ch; }
.hero .lead { font-size: clamp(18px, 1.6vw, 20px); color: var(--body); margin: 22px 0 30px; max-width: 46ch; }
.hero .micro { margin-top: 18px; font-size: 13.5px; color: var(--muted); }
.trust-strip { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 26px; }
.trust-strip span { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; color: var(--muted); font-weight: 500; }
.trust-strip svg { width: 16px; height: 16px; color: var(--brand); flex: 0 0 auto; }

/* ---------- Price comparison mockup (hero + reuse) ---------- */
.compare-stage { display: grid; place-items: center; }
.compare-stage { width: 100%; min-width: 0; }
.device {
  width: 100%;
  max-width: 360px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 30px;
  box-shadow: var(--shadow-lg);
  padding: 16px;
  position: relative;
}
.device::before {
  content: ""; position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
  width: 84px; height: 5px; border-radius: 999px; background: var(--surface-3);
}
.device-screen { padding: 22px 4px 4px; }

/* demo video inside the phone device frame (9:16) */
.device-video { padding: 14px; }
.device-video::before { display: none; }
.device-video-screen {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: 20px;
  overflow: hidden;
  background: #000;
}
.device-video-screen iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0; display: block;
}
.cmp-product { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.cmp-thumb {
  width: 52px; height: 52px; border-radius: 13px; flex: 0 0 auto;
  background: linear-gradient(145deg, #20303f, #0e1822);
  display: grid; place-items: center;
}
.cmp-thumb svg { width: 30px; height: 30px; color: #cdd8e3; }
.cmp-product-name { font-weight: 650; color: var(--ink); font-size: 15.5px; line-height: 1.25; }
.cmp-product-sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; }

.cmp-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 10px;
  padding: 13px 14px; border-radius: 14px; border: 1px solid var(--line);
  background: var(--surface); margin-bottom: 10px;
}
.cmp-row.best { border-color: rgba(21, 146, 77, .35); background: var(--good-soft); }
.cmp-row > * { min-width: 0; }
.cmp-flagline { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.cmp-flag { font-size: 13.5px; }
.cmp-country { font-weight: 650; color: var(--ink); font-size: 14.5px; }
.cmp-tag { font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 3px 7px; border-radius: 6px; }
.cmp-tag.good { background: var(--good); color: #fff; }
.cmp-price { font-weight: 700; color: var(--ink); font-size: 15.5px; text-align: right; }
.cmp-delta { font-size: 12.5px; font-weight: 600; }
.cmp-delta.down { color: var(--good); }
.cmp-delta.up { color: var(--bad); }
.cmp-delta.flat { color: var(--muted); }
.cmp-note { font-size: 11.5px; color: var(--muted); text-align: right; }
.cmp-foot { margin-top: 14px; font-size: 11.5px; color: var(--muted); text-align: center; }

/* search screen mockup */
.app-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 18px; }
.app-title { font-weight: 700; color: var(--ink); font-size: 17px; }
.hops-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 650; color: var(--accent); background: var(--accent-soft); border: 1px solid rgba(249,115,22,.18); padding: 5px 11px; border-radius: 999px; }
.hops-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.try-label { font-size: 12px; color: var(--muted); text-align: center; margin-bottom: 12px; }
.chip {
  display: flex; align-items: center; gap: 9px; min-width: 0;
  border: 1px solid var(--line); border-radius: 11px; padding: 11px 13px; margin-bottom: 9px;
  font-size: 13.5px; color: var(--ink-2); background: var(--surface); overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.chip-plus { color: var(--muted); font-weight: 600; flex: 0 0 auto; }
.search-field {
  display: flex; align-items: center; gap: 10px; margin-top: 16px;
  border: 1px solid var(--line-strong); border-radius: 13px; padding: 7px 7px 7px 14px; background: var(--surface-2);
}
.search-text { flex: 1; min-width: 0; font-size: 13px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-go { flex: 0 0 auto; background: var(--accent); color: #fff; font-weight: 650; font-size: 13px; padding: 9px 14px; border-radius: 9px; }

/* small flag chips drawn with css gradients (no emoji) */
.flag { width: 20px; height: 14px; border-radius: 3px; flex: 0 0 auto; box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); overflow: hidden; }
.flag-jp { background: #fff; position: relative; }
.flag-jp::after { content:""; position:absolute; inset:0; margin:auto; width:7px; height:7px; border-radius:50%; background:#bc002d; }
.flag-us { background: linear-gradient(#b22234 0 14.3%, #fff 14.3% 28.6%, #b22234 28.6% 42.9%, #fff 42.9% 57.2%, #b22234 57.2% 71.5%, #fff 71.5% 85.8%, #b22234 85.8%); position: relative; }
.flag-us::after { content:""; position:absolute; top:0; left:0; width:45%; height:53%; background:#3c3b6e; }
.flag-fr { background: linear-gradient(90deg, #0055a4 0 33.3%, #fff 33.3% 66.6%, #ef4135 66.6%); }
.flag-uk { background: #012169; position: relative; }
.flag-de { background: linear-gradient(#000 0 33.3%, #dd0000 33.3% 66.6%, #ffce00 66.6%); }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section.tight { padding: 72px 0; }
.section.alt { background: var(--surface-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 660px; margin: 0 0 52px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker { display: block; font-size: 13px; font-weight: 680; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin-bottom: 14px; }
.section h2 { font-size: clamp(28px, 3.4vw, 42px); letter-spacing: -0.03em; font-weight: 700; }
.section-head p { margin-top: 18px; font-size: clamp(17px, 1.4vw, 19px); color: var(--body); }

/* ---------- Pain / story split ---------- */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.split.rev .split-media { order: -1; }
.lead-line { font-size: clamp(24px, 2.8vw, 34px); color: var(--ink); font-weight: 680; letter-spacing: -0.025em; line-height: 1.2; }
.body-lg { font-size: 18px; color: var(--body); margin-top: 20px; }
.body-lg + .body-lg { margin-top: 14px; }

/* the "one question" callout */
.question-card {
  background: var(--ink); color: #fff; border-radius: var(--radius-lg);
  padding: 44px 40px; box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.question-card::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(22, 89, 240, .35), transparent 65%);
}
.question-card .q-kicker { color: #93a7c4; font-size: 13px; font-weight: 680; letter-spacing: .08em; text-transform: uppercase; }
.question-card h3 { color: #fff; font-size: clamp(24px, 3vw, 32px); margin: 14px 0 0; letter-spacing: -0.025em; }
.question-card .q-choices { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.q-choice { font-size: 14px; font-weight: 600; color: #eaf1ff; padding: 9px 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06); }
.q-choice.is-pick { background: var(--brand); border-color: transparent; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px; box-shadow: var(--shadow-sm);
}
.step-num {
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand-ink); font-weight: 720; font-size: 16px;
  border: 1px solid rgba(22, 89, 240, .14); margin-bottom: 20px;
}
.step .ic { width: 26px; height: 26px; color: var(--brand); margin-bottom: 16px; }
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { color: var(--body); font-size: 15.5px; }

/* ---------- Demo ---------- */
.demo-wrap { display: grid; grid-template-columns: 1fr minmax(0, 360px); gap: 56px; align-items: center; }
.demo-points { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.demo-points li { display: flex; gap: 12px; align-items: flex-start; color: var(--body); font-size: 16px; }
.demo-points svg { width: 20px; height: 20px; color: var(--good); flex: 0 0 auto; margin-top: 2px; }

/* ---------- Audience ---------- */
.aud-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.aud-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow-sm);
}
.aud-card .ic { width: 26px; height: 26px; color: var(--brand); margin-bottom: 16px; }
.aud-card h3 { font-size: 16.5px; margin-bottom: 7px; }
.aud-card p { font-size: 14.5px; color: var(--muted); }

/* icon inline with card title (steps + audience) */
.card-head { display: flex; align-items: center; gap: 11px; margin-bottom: 10px; }
.card-head .ic { margin-bottom: 0; flex: 0 0 auto; }
.card-head h3 { margin-bottom: 0; }

/* ---------- Screens gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.shot {
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 22px 22px 24px; text-align: center; box-shadow: var(--shadow-sm);
}
.shot-frame { border-radius: 16px; overflow: hidden; margin-bottom: 18px; box-shadow: var(--shadow-md); }
.shot-frame img { width: 100%; height: auto; display: block; }
.shot h3 { font-size: 16.5px; margin-bottom: 6px; }
.shot p { font-size: 14px; color: var(--muted); }

/* ---------- Trust ---------- */
.trust-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 40px; box-shadow: var(--shadow-sm);
}
.trust-list { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 14px; }
.trust-list li { display: flex; gap: 13px; align-items: flex-start; color: var(--body); font-size: 16px; }
.trust-list svg { width: 20px; height: 20px; color: var(--brand); flex: 0 0 auto; margin-top: 2px; }
.founder {
  margin-top: 28px; padding: 22px 24px; border-radius: var(--radius);
  background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2); font-size: 16px;
}
.founder strong { color: var(--ink); }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 40px; }
.faq details {
  border-bottom: 1px solid var(--line); padding: 6px 0;
}
.faq summary {
  list-style: none; cursor: pointer; padding: 16px 0; font-weight: 620; color: var(--ink);
  font-size: 17px; display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .chev { width: 18px; height: 18px; color: var(--muted); transition: transform .2s ease; flex: 0 0 auto; }
.faq details[open] summary .chev { transform: rotate(180deg); }
.faq details p { padding: 0 0 18px; color: var(--body); font-size: 15.5px; }

/* ---------- Final CTA ---------- */
.final {
  background: linear-gradient(150deg, #0d1b2a, #122d52);
  border-radius: var(--radius-lg); padding: 64px 40px; text-align: center; color: #fff;
  position: relative; overflow: hidden;
}
.final::after {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(50% 60% at 80% 0%, rgba(22, 89, 240, .4), transparent 60%),
              radial-gradient(40% 50% at 12% 100%, rgba(249, 115, 22, .22), transparent 60%);
}
.final > * { position: relative; z-index: 1; }
.final h2 { color: #fff; font-size: clamp(28px, 3.4vw, 40px); }
.final p { color: #c6d4e6; margin: 18px auto 30px; max-width: 50ch; font-size: 18px; }
.final .badge-row { justify-content: center; }

/* ---------- Footer ---------- */
.footer { padding: 48px 0; border-top: 1px solid var(--line); background: var(--surface); }
.footer-grid { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; flex-wrap: wrap; }
.footer .brand { margin-bottom: 12px; }
.footer-tag { font-size: 14px; color: var(--muted); max-width: 32ch; }
.footer-links { display: flex; gap: 26px; flex-wrap: wrap; }
.footer-links a { font-size: 14.5px; color: var(--body); font-weight: 500; }
.footer-links a:hover { color: var(--ink); }
.footer-legal { margin-top: 26px; font-size: 13px; color: var(--muted); }

/* ---------- Legal pages ---------- */
.legal-main { width: min(820px, calc(100% - 48px)); margin: 0 auto; padding: 72px 0 64px; }
.legal-main h1 { font-size: clamp(34px, 4vw, 46px); letter-spacing: -0.03em; }
.legal-meta { color: var(--muted); font-size: 15px; margin-top: 14px; }
.legal-main h2 { font-size: 22px; margin-top: 44px; }
.legal-main h3 { font-size: 17.5px; margin-top: 26px; color: var(--ink-2); }
.legal-main p, .legal-main li { color: var(--body); font-size: 16px; margin-top: 12px; }
.legal-main ul { padding-left: 22px; margin: 8px 0 0; }
.legal-main li { margin-top: 8px; }
.legal-main a { color: var(--brand); font-weight: 500; }
.legal-main a:hover { text-decoration: underline; }
.support-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 28px; }
.support-cards .card {
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
}
.support-cards .card h2 { margin-top: 0; font-size: 18px; }
.notice {
  margin-top: 22px; border-left: 3px solid var(--brand); background: var(--brand-soft);
  padding: 16px 18px; border-radius: 10px; color: var(--ink-2); font-size: 15.5px;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero h1 { max-width: none; }
  .compare-stage { justify-items: center; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .split.rev .split-media { order: 0; }
  .demo-wrap { grid-template-columns: 1fr; gap: 36px; }
  .aud-grid { grid-template-columns: repeat(2, 1fr); }
  .faq { grid-template-columns: 1fr; gap: 0 0; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .wrap { width: min(var(--maxw), calc(100% - 40px)); }
  .nav-links { display: none; }
  .nav-inner { height: 60px; }
  .section { padding: 64px 0; }
  .section.tight { padding: 48px 0; }
  .section-head { margin-bottom: 40px; }
  .hero { padding: 48px 0 48px; }
  .hero .lead { margin: 18px 0 26px; }
  .steps { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; max-width: 340px; margin: 0 auto; }
  .aud-grid { grid-template-columns: 1fr; }
  .support-cards { grid-template-columns: 1fr; }
  .footer-grid { flex-direction: column; gap: 24px; }
  .question-card, .trust-card, .final { padding: 32px 24px; }
  .step, .aud-card { padding: 24px; }
  .lead-line { font-size: clamp(22px, 6.4vw, 30px); }
}
@media (max-width: 420px) {
  .wrap { width: calc(100% - 32px); }
  .badge-row { gap: 12px; }
  .store-badge img, .store-soon, .store-soon img { height: 48px; }
  .nav .btn-primary { padding: 11px 15px; font-size: 14px; }
  .brand { font-size: 15px; }
  .question-card, .trust-card, .final { padding: 28px 20px; }
}

/* Final QA hardening */
.final::after {
  background: radial-gradient(50% 60% at 82% 0%, rgba(22, 89, 240, .34), transparent 62%),
              radial-gradient(42% 52% at 10% 100%, rgba(22, 89, 240, .18), transparent 64%);
}
@media (max-width: 760px) {
  .wrap, .hero-grid, .split, .demo-wrap, .steps, .gallery, .aud-grid, .faq,
  .compare-stage, .device, .question-card, .trust-card, .final, .step, .aud-card,
  .shot, .shot-frame, .cmp-row, .search-field, .chip { max-width: 100%; }
  .nav-cta { gap: 10px; min-width: 0; }
  .nav .btn-primary { display: none; }
  .badge-row, .cta-row, .trust-strip { min-width: 0; max-width: 100%; }
  .cmp-row { grid-template-columns: minmax(0, 1fr); }
  .cmp-price, .cmp-note { text-align: left; }
  .search-field { flex-wrap: wrap; }
  .search-go { width: 100%; text-align: center; }
  .section { padding: 58px 0; }
  .section.tight { padding: 46px 0; }
}
