/* =========================================================================
   Gout Coach — landing page styles
   Palette locked to the app (lib/theme/app_theme.dart).
   System font stack = instant load + native iOS feel for the 40+ audience.
   ========================================================================= */

:root {
  /* Brand */
  --navy:#1F3A5F;
  --navy-700:#16314f;
  --navy-900:#102136;
  --red:#D64545;
  --cream:#FAF7F2;
  --cream-2:#F3EEE4;
  --ink:#21262B;
  --paper:#ffffff;

  /* Verdict traffic light */
  --green:#2E8B57;
  --amber:#E09F1F;
  --risk:#C83737;

  /* Neutrals */
  --muted:#5b6670;
  --muted-2:#7a8590;
  --line:rgba(33,38,43,.10);
  --line-2:rgba(33,38,43,.06);

  --shadow-sm:0 1px 2px rgba(16,33,54,.06), 0 2px 8px rgba(16,33,54,.05);
  --shadow-md:0 10px 30px rgba(16,33,54,.10), 0 2px 8px rgba(16,33,54,.06);
  --shadow-lg:0 30px 70px rgba(16,33,54,.18), 0 8px 24px rgba(16,33,54,.10);

  --radius:18px;
  --radius-lg:26px;
  --maxw:1140px;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
          "Segoe UI", Roboto, system-ui, "Helvetica Neue", Arial, sans-serif;
}

/* ----------------------------- reset ----------------------------------- */
*, *::before, *::after { box-sizing:border-box; }
* { margin:0; }
html { -webkit-text-size-adjust:100%; scroll-behavior:smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior:auto; } }

body {
  font-family:var(--font);
  color:var(--ink);
  background:var(--cream);
  line-height:1.6;
  font-size:18px;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
  overflow-x:hidden;
}

img, picture, svg { display:block; max-width:100%; }
a { color:var(--navy); text-decoration:none; }
a:hover { text-decoration:underline; }

h1, h2, h3 { line-height:1.08; letter-spacing:-.02em; font-weight:800; color:var(--ink); }
h1 { font-size:clamp(2.15rem, 5vw, 3.6rem); }
h2 { font-size:clamp(1.7rem, 3.6vw, 2.6rem); }
h3 { font-size:clamp(1.2rem, 2vw, 1.5rem); letter-spacing:-.01em; }

strong { font-weight:700; }

/* ----------------------------- layout helpers -------------------------- */
.container { width:100%; max-width:var(--maxw); margin-inline:auto; padding-inline:22px; }
.container-narrow { max-width:780px; }
.section { padding:84px 0; }
.section-alt { background:var(--cream-2); }
.center { text-align:center; }
.center-row { justify-content:center; }
.sr-only {
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0;
}

.skip-link {
  position:absolute; left:-999px; top:0; z-index:200;
  background:var(--navy); color:#fff; padding:12px 18px; border-radius:0 0 10px 0; font-weight:700;
}
.skip-link:focus { left:0; }

:focus-visible { outline:3px solid var(--navy); outline-offset:2px; border-radius:6px; }

.eyebrow {
  text-transform:uppercase; letter-spacing:.12em; font-size:.78rem; font-weight:800;
  color:var(--red); margin-bottom:14px;
}
.eyebrow-light { color:#ffd9c4; }

.section-head { max-width:720px; margin:0 auto 52px; text-align:center; }
.section-sub { color:var(--muted); font-size:1.08rem; margin-top:14px; }

.src-note { color:var(--muted-2); font-size:.82rem; line-height:1.5; margin-top:14px; }

/* ----------------------------- buttons --------------------------------- */
.btn {
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  font-weight:700; font-size:1.02rem; padding:15px 26px; border-radius:14px;
  border:2px solid transparent; cursor:pointer; transition:transform .15s ease, box-shadow .15s ease, background .15s ease;
  text-decoration:none !important; line-height:1;
}
.btn:hover { transform:translateY(-2px); }
.btn-primary { background:var(--navy); color:#fff; box-shadow:var(--shadow-md); }
.btn-primary:hover { background:var(--navy-700); }
.btn-outline { background:transparent; color:var(--navy); border-color:var(--navy); }
.btn-outline:hover { background:rgba(31,58,95,.06); }
.btn-sm { padding:11px 18px; font-size:.95rem; border-radius:12px; }

/* App Store / Play badges */
.cta-row { display:flex; flex-wrap:wrap; gap:14px; margin:30px 0 24px; }
.store-badge {
  display:inline-flex; align-items:center; gap:12px;
  background:var(--ink); color:#fff; padding:11px 20px 11px 18px; border-radius:14px;
  min-height:58px; transition:transform .15s ease, box-shadow .15s ease, opacity .15s ease;
  box-shadow:var(--shadow-md); text-decoration:none !important;
}
.store-badge:hover { transform:translateY(-2px); }
.store-badge svg { flex:none; color:#fff; }
.store-badge span { display:flex; flex-direction:column; line-height:1.1; text-align:left; }
.store-badge small { font-size:.68rem; opacity:.82; letter-spacing:.02em; }
.store-badge strong { font-size:1.16rem; font-weight:700; letter-spacing:-.01em; }
.store-badge.soon { background:#41484f; cursor:default; }
.store-badge.soon[href]:hover { transform:translateY(-2px); cursor:pointer; opacity:.95; }
.store-badge.soon:not([href]) { opacity:.78; }

.link-arrow { font-weight:700; color:var(--navy); display:inline-block; margin-top:8px; }

/* ----------------------------- header / nav ---------------------------- */
.site-header {
  position:sticky; top:0; z-index:100;
  background:rgba(250,247,242,.85);
  backdrop-filter:saturate(160%) blur(12px);
  -webkit-backdrop-filter:saturate(160%) blur(12px);
  border-bottom:1px solid var(--line-2);
}
.nav { display:flex; align-items:center; gap:18px; height:68px; }
.brand { display:inline-flex; align-items:center; gap:10px; text-decoration:none !important; }
.brand-mark { border-radius:9px; }
.brand-name { font-weight:800; font-size:1.18rem; color:var(--ink); letter-spacing:-.02em; }
.nav-links { display:flex; gap:26px; margin-left:auto; }
.nav-links a { color:var(--ink); font-weight:600; font-size:.98rem; opacity:.82; }
.nav-links a:hover { opacity:1; text-decoration:none; color:var(--navy); }
.nav-cta { margin-left:6px; }

.nav-toggle {
  display:none; margin-left:auto; width:44px; height:44px; border:0; background:transparent;
  flex-direction:column; gap:5px; justify-content:center; align-items:center; cursor:pointer;
}
.nav-toggle span { width:24px; height:2.5px; background:var(--ink); border-radius:2px; transition:.2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1){ transform:translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2){ opacity:0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3){ transform:translateY(-7.5px) rotate(-45deg); }

.mobile-menu { display:none; flex-direction:column; gap:4px; padding:14px 22px 22px; border-bottom:1px solid var(--line-2); background:var(--cream); }
.mobile-menu a { padding:12px 6px; font-weight:600; color:var(--ink); border-bottom:1px solid var(--line-2); }
.mobile-menu a:last-child { border:0; margin-top:10px; }
.mobile-menu .btn { width:100%; }

/* ----------------------------- hero ------------------------------------ */
.hero {
  position:relative;
  background:
    radial-gradient(1100px 520px at 82% -8%, rgba(214,69,69,.10), transparent 60%),
    radial-gradient(900px 540px at -5% 8%, rgba(31,58,95,.10), transparent 60%),
    var(--cream);
  padding:64px 0 72px;
  overflow:hidden;
}
.hero-grid { display:grid; grid-template-columns:1.05fr .95fr; gap:48px; align-items:center; }
.hero-copy { max-width:600px; }
.lede { font-size:1.22rem; color:var(--muted); margin-top:20px; }
.lede strong { color:var(--ink); }

.trust-row { list-style:none; display:flex; flex-wrap:wrap; gap:10px 22px; padding:0; margin-top:6px; }
.trust-row li { display:flex; align-items:center; gap:7px; font-size:.92rem; font-weight:600; color:var(--muted); }
.trust-row svg { color:var(--green); flex:none; }

.hero-art { position:relative; display:flex; justify-content:center; align-items:flex-end; min-height:540px; }
.coach-hero {
  position:absolute; right:-6px; bottom:-10px; width:min(42%, 220px); height:auto;
  filter:drop-shadow(0 18px 26px rgba(16,33,54,.22));
  z-index:3;
}

/* ----------------------------- phone frame ----------------------------- */
.phone {
  position:relative;
  width:300px; max-width:78vw;
  aspect-ratio:1284 / 2778;
  background:#0c0d0f;
  border-radius:42px;
  padding:11px;
  box-shadow:var(--shadow-lg);
  border:1px solid rgba(255,255,255,.06);
}
.phone::before { /* notch */
  content:""; position:absolute; top:11px; left:50%; transform:translateX(-50%);
  width:42%; height:22px; background:#0c0d0f; border-radius:0 0 16px 16px; z-index:2;
}
.phone picture, .phone img { width:100%; height:100%; }
.phone img { border-radius:32px; object-fit:cover; object-position:top center; background:var(--cream); }
.phone-hero { width:330px; z-index:2; transform:rotate(-1.4deg); }
.phone-sm { width:250px; }

/* document / PDF frame */
.doc-frame {
  background:var(--paper); border:1px solid var(--line); border-radius:14px;
  padding:14px; box-shadow:var(--shadow-md); max-width:340px; margin-inline:auto;
}
.doc-frame img { border-radius:6px; width:100%; height:auto; }

/* ----------------------------- empathy band ---------------------------- */
.band { padding:72px 0; }
.band-empathy { background:var(--navy); color:#eaf0f7; }
.empathy-grid { display:grid; grid-template-columns:200px 1fr; gap:40px; align-items:center; }
.band-empathy h2 { color:#fff; }
.band-empathy p { color:#cdd8e6; font-size:1.1rem; margin-top:16px; }
.band-empathy strong { color:#fff; }
.empathy-kicker { font-size:1.18rem !important; color:#fff !important; font-weight:600; }
.empathy-kicker em { color:#ff9f87; font-style:normal; font-weight:800; }
.coach-side { width:200px; height:auto; margin-inline:auto; filter:drop-shadow(0 16px 22px rgba(0,0,0,.35)); }
.band-empathy .src-note { color:#93a4ba; }

/* ----------------------------- features -------------------------------- */
.feature {
  display:grid; grid-template-columns:1fr 1fr; gap:56px; align-items:center;
  padding:46px 0;
}
.feature + .feature { border-top:1px solid var(--line-2); }
.feature--reverse .feature-media { order:2; }
.feature-media { display:flex; justify-content:center; }
.feature-copy { position:relative; }
.feature-copy .pose { width:64px; height:auto; margin-bottom:6px; }
.feature-copy h3 { margin:6px 0 12px; }
.feature-copy > p { color:var(--muted); }

.verdict-chips { display:flex; flex-wrap:wrap; gap:10px; margin:16px 0; }
.vc { font-weight:700; font-size:.92rem; padding:7px 14px; border-radius:999px; }
.vc-safe { background:rgba(46,139,87,.12); color:var(--green); }
.vc-mod  { background:rgba(224,159,31,.16); color:#a9760f; }
.vc-risk { background:rgba(200,55,55,.12); color:var(--risk); }

.ticks { list-style:none; padding:0; margin:18px 0 0; display:grid; gap:11px; }
.ticks li { position:relative; padding-left:32px; color:var(--ink); }
.ticks li::before {
  content:""; position:absolute; left:0; top:3px; width:21px; height:21px; border-radius:50%;
  background:var(--green)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='m9.5 16.2-3.7-3.7 1.4-1.4 2.3 2.3 6-6 1.4 1.4z'/%3E%3C/svg%3E") center/18px no-repeat;
}
.ticks-light li { color:#dbe4ef; }

.pull {
  border-left:4px solid var(--red); background:rgba(214,69,69,.06);
  padding:14px 20px; border-radius:0 12px 12px 0; font-size:1.18rem; font-weight:700;
  color:var(--ink); margin:18px 0 6px; font-style:italic;
}
.pull-brand { border-color:var(--navy); background:rgba(31,58,95,.06); }

/* secondary duo (uric acid + doctor report) */
.duo { display:grid; grid-template-columns:1fr 1fr; gap:32px; }
.duo-card {
  background:var(--paper); border:1px solid var(--line); border-radius:var(--radius-lg);
  padding:34px 30px 36px; text-align:center; box-shadow:var(--shadow-sm);
  display:flex; flex-direction:column; align-items:center;
}
.duo-card .phone, .duo-card .doc-frame { margin-bottom:24px; }
.duo-card h3 { margin-bottom:8px; }
.duo-card p { color:var(--muted); }

/* ----------------------------- how it works ---------------------------- */
.steps { list-style:none; padding:0; display:grid; grid-template-columns:repeat(3,1fr); gap:26px; counter-reset:s; }
.step {
  background:var(--paper); border:1px solid var(--line); border-radius:var(--radius-lg);
  padding:34px 28px; box-shadow:var(--shadow-sm); position:relative;
}
.step-num {
  display:inline-flex; align-items:center; justify-content:center; width:46px; height:46px;
  border-radius:13px; background:var(--navy); color:#fff; font-weight:800; font-size:1.3rem; margin-bottom:16px;
}
.step h3 { margin-bottom:8px; }
.step p { color:var(--muted); }
.steps + .center { margin-top:42px; }

/* ----------------------------- comparison table ------------------------ */
.table-wrap { overflow-x:auto; border-radius:var(--radius-lg); box-shadow:var(--shadow-sm); border:1px solid var(--line); background:var(--paper); }
.compare { width:100%; border-collapse:collapse; min-width:560px; }
.compare th, .compare td { padding:16px 18px; text-align:left; border-bottom:1px solid var(--line-2); font-size:1rem; }
.compare thead th { background:var(--cream-2); font-size:.84rem; text-transform:uppercase; letter-spacing:.06em; color:var(--muted); }
.compare thead th.us { background:var(--navy); color:#fff; }
.compare tbody th { font-weight:700; color:var(--ink); width:30%; }
.compare td { color:var(--muted); }
.compare td.us { color:var(--ink); font-weight:600; background:rgba(31,58,95,.045); }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom:0; }

/* ----------------------------- pricing --------------------------------- */
.plans { display:grid; grid-template-columns:repeat(2,1fr); gap:28px; max-width:840px; margin-inline:auto; align-items:stretch; }
.plan {
  background:var(--paper); border:1px solid var(--line); border-radius:var(--radius-lg);
  padding:38px 32px; box-shadow:var(--shadow-sm); display:flex; flex-direction:column;
}
.plan-featured { border:2px solid var(--navy); box-shadow:var(--shadow-md); position:relative; }
.plan-flag {
  position:absolute; top:-13px; left:32px; background:var(--red); color:#fff;
  font-size:.74rem; font-weight:800; text-transform:uppercase; letter-spacing:.08em;
  padding:6px 14px; border-radius:999px;
}
.plan-name { font-size:1.05rem; text-transform:uppercase; letter-spacing:.08em; color:var(--muted); }
.plan-price { margin:10px 0 2px; }
.plan-price .amount { font-size:2.8rem; font-weight:800; letter-spacing:-.02em; color:var(--ink); }
.plan-price .per { color:var(--muted); font-weight:600; margin-left:6px; }
.plan-note { color:var(--muted); font-size:.95rem; margin-bottom:8px; }
.plan .ticks { margin-bottom:26px; }
.plan .btn { margin-top:auto; width:100%; }
.plan-fineprint { color:var(--muted-2); font-size:.8rem; margin-top:14px; text-align:center; }

/* ----------------------------- privacy band ---------------------------- */
.band-privacy { background:linear-gradient(135deg, var(--navy) 0%, var(--navy-900) 100%); color:#eaf0f7; }
.privacy-grid { max-width:780px; }
.band-privacy h2 { color:#fff; }
.band-privacy p { color:#cdd8e6; margin-top:14px; }
.band-privacy strong { color:#fff; }
.band-privacy .link-arrow { color:#ffd9c4; margin-top:18px; }

/* ----------------------------- meet coach ------------------------------ */
.coach-grid { display:grid; grid-template-columns:280px 1fr; gap:48px; align-items:center; }
.coach-meet { width:260px; height:auto; margin-inline:auto; filter:drop-shadow(0 18px 26px rgba(16,33,54,.22)); }
.coach-grid p { color:var(--muted); margin-top:14px; }

/* ----------------------------- FAQ ------------------------------------- */
.faq { display:grid; gap:14px; }
.faq details {
  background:var(--paper); border:1px solid var(--line); border-radius:16px;
  padding:4px 22px; box-shadow:var(--shadow-sm); transition:border-color .2s;
}
.faq details[open] { border-color:rgba(31,58,95,.35); }
.faq summary {
  list-style:none; cursor:pointer; font-weight:700; font-size:1.08rem; color:var(--ink);
  padding:18px 34px 18px 0; position:relative;
}
.faq summary::-webkit-details-marker { display:none; }
.faq summary::after {
  content:"+"; position:absolute; right:0; top:50%; transform:translateY(-50%);
  font-size:1.7rem; font-weight:400; color:var(--navy); line-height:1; transition:transform .2s;
}
.faq details[open] summary::after { content:"–"; }
.faq-body { padding:0 0 20px; }
.faq-body p { color:var(--muted); }

/* ----------------------------- final CTA ------------------------------- */
.band-cta {
  background:
    radial-gradient(700px 360px at 50% -20%, rgba(214,69,69,.18), transparent 65%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-900) 100%);
  color:#fff; text-align:center;
}
.cta-final { max-width:680px; }
.cta-final h2 { color:#fff; }
.cta-final > p { color:#cdd8e6; font-size:1.15rem; margin:14px auto 4px; }
.coach-cta { width:150px; height:auto; margin:0 auto 18px; filter:drop-shadow(0 16px 22px rgba(0,0,0,.35)); }

/* ----------------------------- footer ---------------------------------- */
.site-footer { background:var(--cream-2); padding:56px 0 38px; border-top:1px solid var(--line); }
.footer-grid { display:flex; flex-wrap:wrap; gap:28px 40px; justify-content:space-between; align-items:flex-start; padding-bottom:30px; border-bottom:1px solid var(--line); }
.footer-tag { color:var(--muted); margin-top:12px; max-width:300px; font-size:.95rem; }
.footer-links { display:flex; flex-wrap:wrap; gap:14px 26px; align-items:center; }
.footer-links a { color:var(--ink); font-weight:600; opacity:.82; font-size:.96rem; }
.footer-links a:hover { opacity:1; color:var(--navy); }
.disclaimer { color:var(--muted-2); font-size:.82rem; line-height:1.55; margin:26px 0 14px; max-width:760px; }
.copyright { color:var(--muted); font-size:.86rem; font-weight:600; }

/* ----------------------------- legal page ------------------------------ */
.legal { padding:54px 0 80px; }
.legal .container { max-width:760px; }
.legal h1 { font-size:clamp(1.9rem, 4vw, 2.6rem); margin-bottom:8px; }
.legal .meta { color:var(--muted-2); font-size:.9rem; margin-bottom:8px; }
.legal h2 { font-size:1.35rem; margin:34px 0 10px; }
.legal h3 { font-size:1.1rem; margin:22px 0 8px; }
.legal p, .legal li { color:var(--ink); font-size:1.04rem; }
.legal p { margin:12px 0; }
.legal ul { margin:12px 0; padding-left:22px; display:grid; gap:8px; }
.legal a { font-weight:600; }
.legal .lead {
  background:var(--paper); border:1px solid var(--line); border-left:4px solid var(--navy);
  border-radius:0 14px 14px 0; padding:18px 22px; box-shadow:var(--shadow-sm);
}
.legal-back { display:inline-block; margin-bottom:22px; font-weight:700; }

/* ----------------------------- reveal animation ------------------------ */
.reveal { opacity:0; transform:translateY(22px); transition:opacity .6s ease, transform .6s ease; }
.reveal.in { opacity:1; transform:none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity:1 !important; transform:none !important; transition:none; }
  .btn:hover, .store-badge:hover { transform:none; }
}

/* ----------------------------- responsive ------------------------------ */
@media (max-width: 980px) {
  .nav-links, .nav-cta { display:none; }
  .nav-toggle { display:flex; }
  .mobile-menu.open { display:flex; }

  .hero-grid { grid-template-columns:1fr; gap:30px; text-align:center; }
  .hero-copy { max-width:640px; margin-inline:auto; }
  .cta-row, .trust-row { justify-content:center; }
  .hero-art { min-height:0; margin-top:6px; }
  .coach-hero { width:130px; right:max(2vw, 4%); bottom:0; }

  .feature { grid-template-columns:1fr; gap:26px; text-align:center; }
  .feature--reverse .feature-media { order:0; }
  .feature-copy .pose { margin-inline:auto; }
  .verdict-chips, .ticks { text-align:left; }
  .ticks { max-width:440px; margin-inline:auto; }
  .feature-copy > p { max-width:540px; margin-inline:auto; }

  .empathy-grid { grid-template-columns:1fr; text-align:center; gap:22px; }
  .coach-side { width:150px; }

  .duo { grid-template-columns:1fr; gap:22px; }
  .steps { grid-template-columns:1fr; max-width:460px; margin-inline:auto; }
  .coach-grid { grid-template-columns:1fr; text-align:center; gap:24px; }
  .coach-meet { width:200px; }
}

@media (max-width: 560px) {
  body { font-size:17px; }
  .section { padding:60px 0; }
  .band, .band-empathy { padding:54px 0; }
  .cta-row { flex-direction:column; }
  .store-badge { width:100%; }
  .plans { grid-template-columns:1fr; }
  .footer-grid { flex-direction:column; }
}
