/* Layout concept: a clinical chart set like a good magazine. Pale-sky ground, white paper cards,
   navy ink, one blue accent. The signature element is the lab-report: real units, reference ranges. */
:root {
  --ground: #eef5fb;      /* brand bg */
  --paper: #ffffff;
  --mist: #d9e8f5;        /* brand bg-alt */
  --tint: #d2e2f2;        /* brand accent-tint */
  --ink: #0a2540;         /* brand ink */
  --ink-2: #2c4566;       /* brand ink-2 */
  --muted: #4f6d90;       /* brand muted, deepened slightly for AA on sky */
  --faint: #6987a8;       /* brand muted as-is, for large/secondary only */
  --line: #c9dcec;        /* brand border */
  --line-strong: #9bb6d1; /* brand border-strong */
  --accent: #2f7dc7;      /* brand accent */
  --accent-deep: #1b5793; /* brand accent-deep */
  --accent-soft: #b6d2ec; /* brand accent-soft */
  --btn: #1b5793;
  --btn-text: #ffffff;
  --btn-hover: #2f7dc7;
  --band: #1b5793;        /* brand accent-deep band */
  --band-ink: #eef5fb;
  --band-muted: rgba(255, 255, 255, 0.88);
  --band-line: rgba(255, 255, 255, 0.35);
  --ok: #1f7a55;
  --ok-soft: #d6efe4;
  --warn: #9a5b00;
  --warn-soft: #fbead0;
  --shadow: 0 1px 2px rgba(10, 37, 64, 0.06), 0 12px 32px -12px rgba(10, 37, 64, 0.18);

  --f-display: "Newsreader", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --f-body: "Instrument Sans", "Segoe UI", system-ui, -apple-system, Helvetica, Arial, sans-serif;
  --f-data: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --step--1: clamp(0.8rem, 0.78rem + 0.1vw, 0.86rem);
  --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.07rem);
  --step-1: clamp(1.15rem, 1.08rem + 0.35vw, 1.35rem);
  --step-2: clamp(1.4rem, 1.25rem + 0.7vw, 1.85rem);
  --step-3: clamp(1.8rem, 1.5rem + 1.4vw, 2.7rem);
  --step-4: clamp(2.3rem, 1.8rem + 2.4vw, 3.9rem);
  --step-5: clamp(2.7rem, 2rem + 3.4vw, 5rem);

  --r-sm: 10px;
  --r: 18px;
  --r-lg: 28px;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}
html { background: #eef5fb; }
/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font-family: var(--f-body); font-size: var(--step-0); line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img, svg { max-width: 100%; display: block; }
[hidden] { display: none !important; }
figure, blockquote { margin: 0; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-family: var(--f-display); font-weight: 400; line-height: 1.08; letter-spacing: -0.015em; text-wrap: balance; color: var(--ink); }
h1 em, h2 em, h3 em { font-style: italic; color: var(--accent-deep); }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--btn); color: var(--btn-text); padding: 10px 16px; border-radius: 999px; z-index: 100; text-decoration: none; }
.skip:focus { top: 12px; }

.eyebrow { font-size: var(--step--1); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-deep); }
.lede { font-size: var(--step-1); color: var(--ink-2); line-height: 1.55; max-width: 38rem; }
.muted { color: var(--muted); }
.small { font-size: var(--step--1); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  font: 600 0.98rem/1 var(--f-body); letter-spacing: 0.005em;
  padding: 0.95em 1.5em; border-radius: 999px; text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent; transition: background-color .18s, color .18s, border-color .18s, transform .18s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--btn); color: var(--btn-text); }
.btn-primary:hover { background: var(--btn-hover); }
.btn-outline { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn-outline:hover { border-color: var(--ink); }
.btn-light { background: var(--band-ink); color: #0a2540; }
.btn-light:hover { background: #ffffff; }
.btn-ghost-light { border-color: var(--band-line); color: var(--band-ink); }
.btn-ghost-light:hover { border-color: var(--band-ink); }
.btn-sm { padding: 0.7em 1.15em; font-size: 0.9rem; }
.btn-block { width: 100%; }
.link-arrow { font-weight: 600; color: var(--accent-deep); text-decoration: none; display: inline-flex; gap: .4em; align-items: center; }
.link-arrow::after { content: "→"; transition: transform .18s; }
.link-arrow:hover::after { transform: translateX(3px); }

/* ---------- utility bar + header ---------- */
.utility { background: var(--band); color: var(--band-muted); font-size: 0.82rem; }
.utility .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 38px; }
.utility ul { list-style: none; display: flex; gap: 22px; flex-wrap: wrap; }
.utility li { display: inline-flex; align-items: center; gap: 7px; }
.utility li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent-soft); }
.utility a { color: #ffffff; text-decoration: none; font-weight: 600; }
.utility a:hover { text-decoration: underline; }

.header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; background: color-mix(in srgb, var(--ground) 88%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.header .wrap { display: flex; align-items: center; gap: 28px; min-height: 74px; }
.brand { display: inline-flex; align-items: baseline; gap: 6px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 26px; height: 26px; align-self: center; color: var(--accent); }
.brand-name { font-family: var(--f-display); font-size: 1.62rem; letter-spacing: -0.02em; line-height: 1; }
.brand-suffix { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.nav { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.nav > a, .nav-drop > button {
  font: 500 0.96rem/1 var(--f-body); color: var(--ink-2); text-decoration: none; background: none; border: 0; cursor: pointer;
  padding: 10px 12px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px;
}
.nav > a:hover, .nav-drop > button:hover, .nav-drop.open > button { background: var(--mist); color: var(--ink); }
.nav a[aria-current="page"], .nav-drop.current > button { color: var(--ink); box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
.nav-drop { position: relative; }
.nav-drop > button svg { width: 10px; height: 10px; transition: transform .2s; }
.nav-drop.open > button svg { transform: rotate(180deg); }
.mega {
  position: absolute; top: calc(100% + 12px); left: -20px; width: min(720px, 90vw);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow);
  padding: 14px; display: grid; grid-template-columns: 1.5fr 1fr; gap: 14px;
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .18s, transform .18s, visibility .18s;
}
.nav-drop.open .mega { opacity: 1; visibility: visible; transform: none; }
.mega-list { list-style: none; display: grid; gap: 2px; }
.mega-list a { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: center; padding: 10px; border-radius: 12px; text-decoration: none; }
.mega-list a:hover { background: var(--ground); }
.mega-list strong { display: block; font-weight: 600; font-size: 0.97rem; color: var(--ink); }
.mega-list span { display: block; font-size: 0.84rem; color: var(--muted); line-height: 1.35; }
.mega-ico { width: 40px; height: 40px; border-radius: 12px; background: var(--mist); display: grid; place-items: center; color: var(--accent-deep); }
.mega-ico svg { width: 22px; height: 22px; }
.mega-side { background: var(--mist); border-radius: 14px; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.mega-side h4 { font-size: 1.35rem; }
.mega-side p { font-size: 0.9rem; color: var(--ink-2); }
.mega-side .btn { align-self: flex-start; margin-top: auto; }
.header-cta { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.header-cta .signin { font-weight: 600; font-size: 0.95rem; text-decoration: none; color: var(--ink); padding: 10px 12px; }
.header-cta .signin:hover { color: var(--accent-deep); }
.burger { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); cursor: pointer; color: var(--ink); }
.burger span { display: block; width: 18px; height: 1.5px; background: currentColor; margin: 4px auto; transition: transform .2s, opacity .2s; }
.menu-open .burger span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.menu-open .burger span:nth-child(2) { opacity: 0; }
.menu-open .burger span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }
.mobile-nav { display: none; }

@media (max-width: 980px) {
  .nav, .header-cta { display: none; }
  .burger { display: block; }
  .mobile-nav { display: block; position: fixed; top: 112px; left: 0; right: 0; bottom: 0; background: var(--ground); z-index: 39; padding: 20px var(--gutter) calc(32px + env(safe-area-inset-bottom, 0px)); overflow-y: auto; transform: translateX(100%); transition: transform .25s ease; }
  .menu-open .mobile-nav { transform: none; }
  .menu-open body { overflow: hidden; }
  .mobile-nav h5 { margin: 18px 0 6px; font: 600 0.76rem/1 var(--f-body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
  .mobile-nav a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-size: 1.1rem; color: var(--ink); }
  .mobile-nav .btn { margin-top: 22px; width: 100%; border-bottom: 0; color: var(--btn-text); }
}
@media (max-width: 640px) {
  .utility ul { display: none; }
  .utility .wrap { justify-content: center; }
  .hero-proof .sep { display: none; }
}

/* ---------- sections ---------- */
.section { padding-block: clamp(64px, 9vw, 120px); }
.section-tight { padding-block: clamp(48px, 6vw, 80px); }
.section-paper { background: var(--paper); }
.section-mist { background: var(--mist); }
.head { display: grid; gap: 16px; margin-bottom: clamp(32px, 5vw, 56px); max-width: 46rem; }
.head h2 { font-size: var(--step-4); }
.head-split { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(32px, 5vw, 56px); }
.head-split .head { margin-bottom: 0; }

/* ---------- hero (home) ---------- */
.hero { padding-block: clamp(40px, 6vw, 80px) clamp(56px, 8vw, 104px); position: relative; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: var(--step-5); letter-spacing: -0.025em; line-height: 1.02; }
.hero-copy { display: grid; gap: 24px; min-width: 0; max-width: 52rem; }
.portal-side .checks li { color: var(--band-ink); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-proof { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 0.92rem; color: var(--ink-2); padding-top: 8px; }
.stars { color: var(--accent); letter-spacing: 2px; font-size: 1rem; }
.hero-proof .sep { width: 1px; height: 18px; background: var(--line-strong); }
.hero-visual { position: relative; min-width: 0; min-height: 520px; }
.hero-disc { position: absolute; inset: 4% 0 0 8%; border-radius: 50% 50% 46% 54% / 52% 44% 56% 48%; background: radial-gradient(120% 90% at 30% 20%, var(--accent-soft), var(--mist) 60%, transparent 75%); }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-visual { min-height: 0; }
}

/* ---------- lab card (signature) ---------- */
.lab {
  position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow);
  padding: 22px 22px 18px; font-size: 0.9rem;
}
.lab-top { display: flex; justify-content: space-between; align-items: start; gap: 12px; padding-bottom: 14px; border-bottom: 1px dashed var(--line); }
.lab-top h3 { font-family: var(--f-body); font-weight: 600; font-size: 1rem; letter-spacing: 0; }
.lab-meta { font: 500 0.74rem/1.4 var(--f-data); color: var(--muted); }
.tag { display: inline-flex; align-items: center; gap: 6px; font: 600 0.72rem/1 var(--f-body); letter-spacing: .04em; text-transform: uppercase; padding: 6px 9px; border-radius: 999px; background: var(--mist); color: var(--accent-deep); white-space: nowrap; }
.tag-ok { background: var(--ok-soft); color: var(--ok); }
.tag-warn { background: var(--warn-soft); color: var(--warn); }
.lab-rows { list-style: none; display: grid; }
.lab-row { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr) auto; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.lab-row:last-child { border-bottom: 0; }
.lab-name { font-weight: 600; color: var(--ink); line-height: 1.25; }
.lab-name small { display: block; font: 400 0.72rem/1.3 var(--f-data); color: var(--muted); margin-top: 2px; }
.range { position: relative; height: 6px; border-radius: 99px; background: var(--mist); }
.range i { position: absolute; top: 0; bottom: 0; border-radius: 99px; background: var(--accent-soft); }
.range b { position: absolute; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--paper); }
.range b.prev { background: var(--paper); border: 2px solid var(--faint); box-shadow: none; width: 10px; height: 10px; margin: -5px 0 0 -5px; }
.lab-val { font: 500 0.86rem/1.2 var(--f-data); color: var(--ink); text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.lab-val small { display: block; color: var(--muted); font-size: 0.7rem; }
.lab-foot { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding-top: 12px; font: 400 0.72rem/1.4 var(--f-data); color: var(--muted); }
.legend { display: inline-flex; gap: 14px; align-items: center; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend .d1 { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.legend .d2 { width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--faint); }

.float { position: absolute; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 14px 16px; font-size: 0.86rem; }
.msg { display: grid; grid-template-columns: 38px 1fr; gap: 12px; max-width: 290px; }
.avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-deep); color: #fff; font: 600 0.85rem/1 var(--f-body); }
.msg strong { display: block; font-size: 0.86rem; }
.msg p { color: var(--ink-2); line-height: 1.45; margin-top: 3px; }
.msg time { font: 400 0.7rem/1 var(--f-data); color: var(--muted); display: block; margin-top: 7px; }
.ship { display: flex; align-items: center; gap: 12px; }
.ship-ico { width: 36px; height: 36px; border-radius: 10px; background: var(--mist); display: grid; place-items: center; color: var(--accent-deep); flex: none; }
.ship strong { display: block; font-size: 0.86rem; }
.ship span { color: var(--muted); font-size: 0.78rem; }

.hero-stack { position: relative; padding: 56px 0 84px 6%; }
.hero-stack .lab { max-width: 470px; margin-left: auto; }
.hero-stack .f1 { left: 0; bottom: 0; }
.hero-stack .f2 { left: 0; top: 0; }
.example-note { position: absolute; right: 0; bottom: -26px; font: 400 0.7rem/1 var(--f-data); color: var(--muted); }
@media (max-width: 900px) {
  .hero-stack { padding: 0; display: grid; gap: 14px; }
  .hero-stack .lab { margin: 0; max-width: none; }
  .float { position: static; max-width: none; }
  .hero-stack .f2 { order: -1; justify-self: start; }
  .example-note { position: static; }
  .hero-disc { display: none; }
}

/* ---------- reviews marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: var(--paper); padding-block: 22px; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee-track { display: flex; gap: 16px; width: max-content; animation: marquee 60s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.chip { display: grid; gap: 6px; width: 320px; padding: 16px 20px; border-radius: 14px; background: var(--ground); border: 1px solid var(--line); }
.chip blockquote { margin: 0; font-family: var(--f-display); font-size: 1.12rem; line-height: 1.35; color: var(--ink); }
.chip figcaption { font-size: 0.8rem; color: var(--muted); }
.chip .stars { font-size: 0.8rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- program cards ---------- */
.programs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
.program { grid-column: span 2; display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; text-decoration: none; transition: transform .2s, box-shadow .2s; }
.program:nth-child(-n+2) { grid-column: span 3; }
.program:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.program-art { aspect-ratio: 16 / 8; background: var(--mist); position: relative; overflow: hidden; color: var(--accent); }
.program:nth-child(-n+2) .program-art { aspect-ratio: 16 / 7; }
.program-art svg { width: 100%; height: 100%; }
.program-body { padding: 24px 26px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.program-body h3 { font-size: var(--step-2); }
.program-body p { color: var(--ink-2); font-size: 0.97rem; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 10px; }
.pill { font-size: 0.8rem; font-weight: 500; padding: 6px 11px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-2); background: var(--ground); }
.program .link-arrow { margin-top: 6px; }
@media (max-width: 900px) {
  .programs { grid-template-columns: 1fr 1fr; }
  .program, .program:nth-child(-n+2) { grid-column: span 1; }
  .program:last-child { grid-column: span 2; }
}
@media (max-width: 600px) {
  .programs { grid-template-columns: 1fr; }
  .program, .program:nth-child(-n+2), .program:last-child { grid-column: auto; }
}

/* ---------- steps (real sequence) ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; list-style: none; counter-reset: s; position: relative; }
.step { position: relative; padding: 28px 24px 0 0; display: grid; gap: 10px; align-content: start; }
.step::before { counter-increment: s; content: counter(s); width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font: 400 1.35rem/1 var(--f-display); background: var(--paper); border: 1.5px solid var(--accent); color: var(--accent-deep); position: relative; z-index: 1; }
.step::after { content: ""; position: absolute; top: 50px; left: 44px; right: 0; height: 1.5px; background: repeating-linear-gradient(90deg, var(--line-strong) 0 6px, transparent 6px 12px); }
.step:last-child::after { display: none; }
.step h3 { font-size: var(--step-1); font-family: var(--f-body); font-weight: 600; letter-spacing: 0; margin-top: 10px; }
.step p { color: var(--ink-2); font-size: 0.95rem; }
.step .dur { font: 500 0.76rem/1 var(--f-data); color: var(--accent-deep); background: var(--mist); padding: 6px 9px; border-radius: 8px; justify-self: start; }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; gap: 8px; }
  .step { padding: 0 0 28px 64px; }
  .step::before { position: absolute; left: 0; top: 0; }
  .step::after { top: 48px; bottom: 0; left: 21px; right: auto; width: 1.5px; height: auto; background: repeating-linear-gradient(180deg, var(--line-strong) 0 6px, transparent 6px 12px); }
  .step h3 { margin-top: 8px; }
}

/* ---------- stats band ---------- */
.band { background: var(--band); color: var(--band-ink); }
.band h2, .band h3 { color: var(--band-ink); }
.band h2 em { color: #ffffff; }
.band .eyebrow { color: #ffffff; opacity: .85; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--band-line); }
.stat { padding: 28px 24px 8px 0; display: grid; gap: 8px; border-right: 1px solid var(--band-line); padding-left: 24px; }
.stat:first-child { padding-left: 0; }
.stat:last-child { border-right: 0; }
.stat b { font: 400 var(--step-4)/1 var(--f-display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stat span { color: var(--band-muted); font-size: 0.95rem; max-width: 16rem; }
.band-note { margin-top: 28px; font-size: 0.8rem; color: var(--band-muted); }
@media (max-width: 860px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { border-right: 0; padding-left: 0; border-bottom: 1px solid var(--band-line); padding-bottom: 22px; }
}

/* ---------- goals tabs ---------- */
.tabs { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.tablist { display: grid; gap: 6px; }
.tab { text-align: left; font: 400 var(--step-2)/1.15 var(--f-display); color: var(--faint); background: none; border: 0; border-left: 2px solid var(--line); padding: 14px 0 14px 22px; cursor: pointer; transition: color .2s, border-color .2s; }
.tab:hover { color: var(--ink-2); }
.tab[aria-selected="true"] { color: var(--ink); border-color: var(--accent); }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(24px, 3.5vw, 40px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
.panel h3 { font-size: var(--step-2); margin-bottom: 14px; }
.panel p { color: var(--ink-2); }
.checks { list-style: none; display: grid; gap: 10px; }
.checks li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; color: var(--ink-2); font-size: 0.97rem; }
.checks li::before { content: ""; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%; background: var(--mist) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.4l2.6 2.6L14 7.6' fill='none' stroke='%232f7dc7' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/20px no-repeat; }
.panel-side { background: var(--ground); border-radius: var(--r); padding: 22px; display: grid; gap: 14px; align-content: start; }
.panel-side .row { display: flex; justify-content: space-between; gap: 12px; font-size: 0.9rem; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.panel-side .row:last-of-type { border-bottom: 0; }
.panel-side .row span { color: var(--muted); }
.panel-side .row b { font-weight: 600; text-align: right; }
@media (max-width: 900px) {
  .tabs { grid-template-columns: 1fr; }
  .tablist { grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; gap: 8px; padding-bottom: 4px; }
  .tab { border-left: 0; border: 1px solid var(--line); border-radius: 999px; padding: 10px 16px; font: 500 0.95rem/1 var(--f-body); }
  .tab[aria-selected="true"] { background: var(--btn); color: var(--btn-text); border-color: var(--btn); }
  .panel { grid-template-columns: 1fr; }
}

/* ---------- standards / features ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.feature { padding: 26px 24px; border-radius: var(--r); background: var(--paper); border: 1px solid var(--line); display: grid; gap: 12px; align-content: start; }
.feature-ico { width: 46px; height: 46px; border-radius: 14px; background: var(--mist); color: var(--accent-deep); display: grid; place-items: center; }
.feature-ico svg { width: 24px; height: 24px; }
.feature h3 { font-family: var(--f-body); font-weight: 600; font-size: 1.08rem; letter-spacing: 0; }
.feature p { color: var(--ink-2); font-size: 0.95rem; }
@media (max-width: 960px) { .feature-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .feature-grid { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.split-rev > :first-child { order: 2; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split-rev > :first-child { order: 0; } }

/* package illustration */
.parcel { position: relative; aspect-ratio: 5/4; border-radius: var(--r-lg); background: var(--mist); overflow: hidden; }
.parcel svg { width: 100%; height: 100%; }
.label-card { position: absolute; right: 7%; bottom: 9%; width: min(270px, 58%); background: var(--paper); border-radius: 12px; border: 1px solid var(--line); padding: 14px 16px; font: 400 0.74rem/1.55 var(--f-data); color: var(--ink-2); box-shadow: var(--shadow); }
.label-card b { display: block; font-weight: 600; color: var(--ink); font-family: var(--f-body); font-size: .8rem; margin-bottom: 4px; }

/* ---------- testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.quote { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px 28px; display: flex; flex-direction: column; gap: 22px; }
.quote blockquote { margin: 0; font: 400 1.22rem/1.45 var(--f-display); color: var(--ink); }
.quote footer { margin-top: auto; display: flex; align-items: center; gap: 12px; padding-top: 18px; border-top: 1px solid var(--line); }
.quote footer strong { display: block; font-size: .92rem; }
.quote footer span { font-size: .82rem; color: var(--muted); }
.quote .avatar { background: var(--mist); color: var(--accent-deep); }
.fine { font-size: 0.78rem; color: var(--muted); margin-top: 22px; max-width: 60rem; }
@media (max-width: 900px) { .quotes { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 0 24px; transition: border-color .2s; }
.faq details[open] { border-color: var(--line-strong); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 20px 0; font-weight: 600; font-size: 1.04rem; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--mist) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28'%3E%3Cpath d='M9 14h10M14 9v10' stroke='%231b5793' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") center/28px no-repeat; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 0 22px; color: var(--ink-2); max-width: 44rem; display: grid; gap: 12px; }
.faq-layout { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.5fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.faq-layout .head { position: sticky; top: 110px; }
.faq-layout .head h2 { font-size: var(--step-3); }
@media (max-width: 900px) { .faq-layout { grid-template-columns: 1fr; } .faq-layout .head { position: static; } }

/* ---------- CTA ---------- */
.cta { border-radius: var(--r-lg); background: var(--band); color: var(--band-ink); padding: clamp(36px, 6vw, 72px); display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 32px; align-items: end; position: relative; overflow: hidden; }
.cta h2 { font-size: var(--step-4); color: var(--band-ink); }
.cta h2 em { color: #ffffff; }
.cta p { color: var(--band-muted); max-width: 32rem; margin-top: 14px; }
.cta-actions { display: grid; gap: 14px; justify-items: start; }
.cta-actions .phone { font: 400 var(--step-2)/1 var(--f-display); color: var(--band-ink); user-select: all; }
.cta-actions small { color: var(--band-muted); font-size: 0.82rem; }
.cta-rings { position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; opacity: .5; pointer-events: none; color: var(--band-line); }
.cta > :not(.cta-rings) { position: relative; }
@media (max-width: 860px) { .cta { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.footer { background: var(--paper); border-top: 1px solid var(--line); padding-block: 64px 36px; font-size: 0.93rem; }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; padding-bottom: 40px; border-bottom: 1px solid var(--line); }
.footer-brand p { color: var(--ink-2); max-width: 22rem; margin-top: 16px; }
.footer-brand .phone { margin-top: 18px; font: 400 1.4rem/1 var(--f-display); user-select: all; }
.footer h5 { margin: 0 0 14px; font: 600 0.78rem/1 var(--f-body); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.footer ul { list-style: none; display: grid; gap: 10px; }
.footer ul a { text-decoration: none; color: var(--ink-2); }
.footer ul a:hover { color: var(--accent-deep); text-decoration: underline; }
.footer-legal { padding-top: 28px; display: grid; gap: 14px; color: var(--muted); font-size: 0.8rem; line-height: 1.6; }
.footer-legal .row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-legal a { color: var(--ink-2); }
.badges { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.badge { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; font-size: 0.78rem; font-weight: 600; color: var(--ink-2); }
.badge svg { width: 16px; height: 16px; color: var(--accent); }
@media (max-width: 860px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ---------- inner page hero ---------- */
.page-hero { padding-block: clamp(40px, 6vw, 88px) clamp(40px, 5vw, 72px); }
.crumbs { display: flex; gap: 8px; flex-wrap: wrap; font-size: 0.85rem; color: var(--muted); margin-bottom: 22px; list-style: none; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--line-strong); }
.page-hero h1 { font-size: var(--step-5); max-width: 16ch; }
.page-hero .lede { margin-top: 22px; }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr); gap: clamp(28px, 5vw, 72px); align-items: end; }
@media (max-width: 900px) { .page-hero-grid { grid-template-columns: 1fr; } }

.glance { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; display: grid; gap: 4px; box-shadow: var(--shadow); }
.glance h2 { font: 600 0.8rem/1 var(--f-body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.glance dl { margin: 0; display: grid; }
.glance dl div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 0.94rem; }
.glance dl div:last-child { border-bottom: 0; }
.glance dt { color: var(--muted); }
.glance dd { margin: 0; font-weight: 600; text-align: right; }
.glance .btn { margin-top: 16px; }

/* detail layout */
.detail { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.toc { position: sticky; top: 110px; display: grid; gap: 2px; list-style: none; border-left: 1px solid var(--line); }
.toc a { display: block; padding: 8px 0 8px 18px; margin-left: -1px; border-left: 2px solid transparent; text-decoration: none; color: var(--muted); font-size: 0.92rem; }
.toc a:hover { color: var(--ink); border-color: var(--line-strong); }
.prose { display: grid; gap: clamp(48px, 6vw, 72px); min-width: 0; }
.prose section { display: grid; gap: 18px; scroll-margin-top: 110px; }
.prose h2 { font-size: var(--step-3); }
.prose p { color: var(--ink-2); max-width: 42rem; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 32px; }
.two-col.checks li { font-size: 0.97rem; }
@media (max-width: 900px) { .detail { grid-template-columns: 1fr; } .toc { display: none; } }
@media (max-width: 600px) { .two-col { grid-template-columns: 1fr; } }

.compound-table { width: 100%; border-collapse: collapse; font-size: 0.94rem; min-width: 520px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); }
.compound-table th { text-align: left; font: 600 0.76rem/1 var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 16px 18px; border-bottom: 1px solid var(--line); background: var(--ground); }
.compound-table td { padding: 16px 18px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--ink-2); }
.compound-table tr:last-child td { border-bottom: 0; }
.compound-table td:first-child { font-weight: 600; color: var(--ink); white-space: nowrap; }
.mono { font-family: var(--f-data); font-size: 0.86em; }

.callout { border-radius: var(--r); padding: 22px 24px; background: var(--mist); color: var(--ink-2); font-size: 0.95rem; display: grid; gap: 6px; }
.callout strong { color: var(--ink); }
.disclaimer { font-size: 0.82rem; color: var(--muted); line-height: 1.65; border-top: 1px solid var(--line); padding-top: 22px; max-width: 60rem; }

.related { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.related a { display: grid; gap: 8px; padding: 20px; border-radius: var(--r); background: var(--paper); border: 1px solid var(--line); text-decoration: none; transition: border-color .2s; }
.related a:hover { border-color: var(--accent); }
.related strong { font: 400 1.2rem/1.2 var(--f-display); }
.related span { font-size: .88rem; color: var(--muted); }
@media (max-width: 900px) { .related { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .related { grid-template-columns: 1fr; } }

/* services overview rows */
.svc-rows { display: grid; gap: 18px; }
.svc-row { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr) minmax(0, 1fr); gap: 32px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(22px, 3vw, 34px); align-items: start; }
.svc-art { border-radius: var(--r); overflow: hidden; background: var(--mist); aspect-ratio: 4/3; color: var(--accent); }
.svc-art svg { width: 100%; height: 100%; }
.svc-row h2 { font-size: var(--step-3); margin: 8px 0 12px; }
.svc-row p { color: var(--ink-2); }
.svc-row .btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.svc-row h3 { font: 600 0.78rem/1 var(--f-body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
@media (max-width: 1000px) { .svc-row { grid-template-columns: 1fr 1fr; } .svc-art { grid-column: 1 / -1; aspect-ratio: 16/6; } }
@media (max-width: 640px) { .svc-row { grid-template-columns: 1fr; } }

/* about */
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.pillar { padding: 32px 32px 8px 0; display: grid; gap: 14px; align-content: start; }
.pillar + .pillar { padding-left: 32px; border-left: 1px solid var(--line); }
.pillar h3 { font-size: var(--step-3); }
.pillar p { color: var(--ink-2); }
@media (max-width: 860px) { .pillars { grid-template-columns: 1fr; } .pillar, .pillar + .pillar { padding: 28px 0; border-left: 0; border-bottom: 1px solid var(--line); } }
.big-quote { font: 400 var(--step-3)/1.25 var(--f-display); color: var(--ink); max-width: 30ch; }
.big-quote em { color: var(--accent-deep); }
.standards { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--paper); }
.standards li { padding: 18px 20px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 22px 1fr; gap: 12px; color: var(--ink-2); font-size: 0.96rem; }
.standards li:nth-child(odd) { border-right: 1px solid var(--line); }
.standards li:nth-last-child(-n+2) { border-bottom: 0; }
.standards li::before { content: ""; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%; background: var(--mist) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.4l2.6 2.6L14 7.6' fill='none' stroke='%232f7dc7' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/20px no-repeat; }
@media (max-width: 640px) { .standards { grid-template-columns: 1fr; } .standards li:nth-child(odd) { border-right: 0; } .standards li:nth-last-child(2) { border-bottom: 1px solid var(--line); } }

/* how it works timeline */
.timeline { display: grid; gap: 0; list-style: none; counter-reset: t; }
.tl { display: grid; grid-template-columns: 90px minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 56px); padding-block: 44px; border-top: 1px solid var(--line); align-items: start; }
.tl-num { font: 400 var(--step-5)/0.9 var(--f-display); color: var(--accent); }
.tl h2 { font-size: var(--step-3); }
.tl .dur { display: inline-block; margin-top: 12px; font: 500 0.78rem/1 var(--f-data); color: var(--accent-deep); background: var(--mist); padding: 7px 10px; border-radius: 8px; }
.tl p { color: var(--ink-2); }
.tl .checks { margin-top: 16px; }
@media (max-width: 860px) { .tl { grid-template-columns: 1fr; gap: 14px; } .tl-num { font-size: var(--step-4); } }

/* ---------- forms ---------- */
.form-shell { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.8fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
@media (max-width: 960px) { .form-shell { grid-template-columns: 1fr; } }
.form-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(22px, 3.5vw, 40px); box-shadow: var(--shadow); }
.progress { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 28px; list-style: none; }
.progress li { display: grid; gap: 8px; font-size: 0.82rem; color: var(--muted); font-weight: 500; }
.progress li::before { content: ""; height: 4px; border-radius: 99px; background: var(--mist); }
.progress li.done::before, .progress li.on::before { background: var(--accent); }
.progress li.on { color: var(--ink); }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 7px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label, .field legend { font-size: 0.9rem; font-weight: 600; color: var(--ink); }
.field label span.req { color: var(--accent-deep); }
.field input, .field select, .field textarea {
  width: 100%; font: 400 1rem/1.4 var(--f-body); color: var(--ink); background: var(--ground);
  border: 1.5px solid var(--line); border-radius: 12px; padding: 13px 14px; transition: border-color .15s, background-color .15s;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--line-strong); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: var(--paper); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
.field .hint { font-size: 0.8rem; color: var(--muted); }
.field .err { font-size: 0.8rem; color: #b3261e; display: none; }
.field.invalid input, .field.invalid select { border-color: #b3261e; }
.field.invalid .err { display: block; }
fieldset.field { border: 0; padding: 0; margin: 0; }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span { display: grid; gap: 3px; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--ground); font-weight: 600; font-size: 0.94rem; cursor: pointer; transition: border-color .15s, background .15s; }
.choice span small { font-weight: 400; color: var(--muted); font-size: 0.8rem; }
.choice input:checked + span { border-color: var(--accent); background: var(--paper); box-shadow: inset 0 0 0 1px var(--accent); }
.choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.consent { display: grid; grid-template-columns: 22px 1fr; gap: 12px; font-size: 0.85rem; color: var(--ink-2); align-items: start; }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); }
.form-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.form-step { display: none; }
.form-step.on { display: block; }
.form-step h2 { font-size: var(--step-3); margin-bottom: 6px; }
.form-step > p { color: var(--ink-2); margin-bottom: 24px; }
.success { text-align: left; display: grid; gap: 16px; }
.success .tick { width: 56px; height: 56px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); display: grid; place-items: center; }
@media (max-width: 600px) { .fields, .choice-grid { grid-template-columns: 1fr; } }
.aside-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; display: grid; gap: 18px; }
.aside-card h3 { font-size: var(--step-2); }
.aside-list { list-style: none; display: grid; gap: 16px; counter-reset: a; }
.aside-list li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; font-size: 0.93rem; color: var(--ink-2); }
.aside-list li::before { counter-increment: a; content: counter(a); width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--accent); display: grid; place-items: center; font: 400 0.95rem/1 var(--f-display); color: var(--accent-deep); }
.aside-list strong { color: var(--ink); display: block; }

/* portal */
.portal { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); min-height: 640px; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: var(--paper); }
.portal-form { padding: clamp(28px, 5vw, 64px); display: grid; gap: 22px; align-content: center; }
.portal-form h1 { font-size: var(--step-4); }
.portal-side { background: var(--band); color: var(--band-ink); padding: clamp(28px, 4vw, 48px); display: grid; gap: 18px; align-content: center; }
.portal-side h2 { color: var(--band-ink); font-size: var(--step-3); }
.portal-side > p { color: var(--band-muted); }
.portal-side .lab { color: var(--ink); }
@media (max-width: 900px) { .portal { grid-template-columns: 1fr; } }

/* legal */
.legal { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.legal-body { display: grid; gap: 34px; max-width: 46rem; min-width: 0; }
.legal-body section { display: grid; gap: 12px; scroll-margin-top: 110px; }
.legal-body h2 { font-size: var(--step-2); }
.legal-body p, .legal-body li { color: var(--ink-2); }
.legal-body ul { padding-left: 1.2em; display: grid; gap: 8px; }
@media (max-width: 900px) { .legal { grid-template-columns: 1fr; } .legal .toc { display: none; } }

/* ---------- age gate ---------- */
.gate { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 16px; background: rgba(7, 26, 46, 0.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.gate-card { width: min(440px, 100%); background: var(--paper); border-radius: var(--r-lg); padding: 32px; display: grid; gap: 14px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.gate-card h2 { font-size: var(--step-3); }
.gate-card p { color: var(--ink-2); font-size: 0.95rem; }
.gate-card .fine { margin: 0; }

/* ---------- motion ---------- */
.reveal { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
.reveal.d1 { animation-delay: .08s; } .reveal.d2 { animation-delay: .16s; } .reveal.d3 { animation-delay: .24s; }
@keyframes rise { from { transform: translateY(12px); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

@media (max-width: 640px) {
  .lab-row { grid-template-columns: minmax(0,1fr) auto; row-gap: 10px; }
  .lab-row .range { grid-column: 1 / -1; grid-row: 2; }

}

/* ---------- lifestyle photography ---------- */
.photo { position: relative; isolation: isolate; overflow: hidden; }
.photo > .ph { position: absolute; inset: 0; z-index: -2; }
.photo > .ph img { width: 100%; height: 100%; object-fit: cover; }
.photo::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(10,37,64,.86) 0%, rgba(27,87,147,.66) 45%, rgba(27,87,147,.18) 100%); }
.hero.photo, .page-hero.photo { color: #fff; }
.hero.photo { padding-block: clamp(96px, 12vw, 168px) clamp(104px, 13vw, 184px); }
.page-hero.photo { padding-block: clamp(64px, 8vw, 120px) clamp(56px, 7vw, 100px); }
.photo h1, .photo .lede, .photo .eyebrow, .photo .hero-proof { color: #fff; }
.photo h1 em { color: #cfe2f5; }
.photo .lede { color: rgba(255,255,255,.9); }
.photo .eyebrow { opacity: .9; }
.photo .stars { color: #cfe2f5; }
.photo .hero-proof .sep { background: rgba(255,255,255,.4); }
.photo .crumbs, .photo .crumbs a { color: rgba(255,255,255,.82); }
.photo .crumbs li + li::before { color: rgba(255,255,255,.5); }
.photo .btn-outline { border-color: rgba(255,255,255,.65); color: #fff; }
.photo .btn-outline:hover { border-color: #fff; background: rgba(255,255,255,.1); }
.photo .btn-primary { background: #fff; color: #1b5793; }
.photo .btn-primary:hover { background: #d9e8f5; }
.page-hero.photo .glance .btn-primary { background: var(--btn); color: var(--btn-text); }
.band.photo::before { background: linear-gradient(90deg, rgba(10,37,64,.88), rgba(27,87,147,.78)); }
.cta.photo { background: #1b5793; }
.cta.photo::before { background: linear-gradient(90deg, rgba(10,37,64,.88) 0%, rgba(27,87,147,.75) 55%, rgba(27,87,147,.35) 100%); }
.cta.photo .cta-rings { display: none; }
.program-art img, .svc-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.program:hover .program-art img { transform: scale(1.04); }
.program-art { aspect-ratio: 16 / 10; }
.program:nth-child(-n+2) .program-art { aspect-ratio: 16 / 8; }
@media (max-width: 760px) {
  .photo::before { background: linear-gradient(180deg, rgba(10,37,64,.72) 0%, rgba(27,87,147,.78) 100%); }
}
.photo .glance { color: var(--ink); }
.photo .glance dd { color: var(--ink); }

/* ---------- age gate buttons ---------- */
.gate-actions { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 6px; }
.gate-actions .btn { width: 100%; min-height: 52px; font-size: 1rem; }
.gate-deny { background: var(--warn-soft); color: var(--warn); border-radius: 12px; padding: 14px 16px; font-weight: 600; font-size: .95rem; }

/* ---------- phone preview (desktop only) ---------- */
.dp-dock { position: fixed; left: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 80; display: grid; gap: 8px; justify-items: start; }
.dp-toggle { display: inline-flex; align-items: center; gap: 8px; font: 600 .88rem/1 var(--f-body); color: #fff; background: #0a2540; border: 0; border-radius: 999px; padding: 11px 16px; cursor: pointer; box-shadow: var(--shadow); }
.dp-toggle svg { width: 18px; height: 18px; }
.dp-menu { order: -1; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 6px; display: grid; min-width: 220px; }
.dp-menu button { display: flex; justify-content: space-between; gap: 16px; background: none; border: 0; padding: 10px 12px; border-radius: 10px; font: 500 .9rem/1.2 var(--f-body); color: var(--ink); cursor: pointer; text-align: left; }
.dp-menu button span { color: var(--muted); font-family: var(--f-data); font-size: .76rem; }
.dp-menu button:hover { background: var(--ground); }
.dp-stage { position: fixed; inset: 0; z-index: 95; background: #0b1f35; display: flex; flex-direction: column; }
.dp-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 20px; flex-wrap: wrap; }
.dp-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.dp-tabs button, .dp-close { font: 500 .86rem/1 var(--f-body); color: #cfe2f5; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.15); border-radius: 999px; padding: 9px 14px; cursor: pointer; }
.dp-tabs button.on { background: #fff; color: #0a2540; border-color: #fff; }
.dp-close { background: #2f7dc7; color: #fff; border-color: #2f7dc7; }
.dp-wrap { flex: 1; overflow: auto; display: grid; place-items: start center; padding: 8px 20px 28px; }
.dp-phone { border: 10px solid #000; border-radius: 44px; overflow: hidden; background: #fff; box-shadow: 0 30px 80px rgba(0,0,0,.5); max-height: calc(100vh - 110px); transition: width .25s, height .25s; }
.dp-phone iframe { width: 100%; height: 100%; border: 0; display: block; }
.dp-open body { overflow: hidden; }
@media (max-width: 1024px), (hover: none) { .dp-dock { display: none; } }

/* ---------- small-phone tuning (iPhone SE, Galaxy S24, Pixel, iPhone 15/Pro Max) ---------- */
@media (max-width: 480px) {
  :root { --gutter: 18px; }
  .hero h1, .page-hero h1 { font-size: clamp(2.35rem, 9.6vw, 2.9rem); line-height: 1.04; }
  .head h2, .cta h2 { font-size: clamp(1.9rem, 8vw, 2.3rem); }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .hero-actions .btn, .cta-actions .btn { width: 100%; min-height: 50px; }
  .cta-actions { justify-items: stretch; }
  .btn { min-height: 46px; }
  .header .wrap { min-height: 64px; gap: 12px; }
  .brand-name { font-size: 1.45rem; }
  .utility .wrap { min-height: 34px; }
  .mobile-nav a { padding: 14px 0; }
  .hero.photo { padding-block: 72px 84px; }
  .page-hero.photo { padding-block: 52px 48px; }
  .section { padding-block: 60px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat b { font-size: 2.1rem; }
  .stat span { font-size: .86rem; }
  .chip { width: 270px; }
  .program-body { padding: 20px; }
  .quote { padding: 24px 22px; }
  .quote blockquote { font-size: 1.1rem; }
  .faq details { padding: 0 18px; }
  .faq summary { font-size: .98rem; padding: 18px 0; }
  .glance { padding: 20px; }
  .glance dl div { font-size: .9rem; }
  .form-card, .aside-card { padding: 20px; border-radius: 20px; }
  .progress li { font-size: .74rem; }
  .form-nav .btn { flex: 1; }
  .cta { padding: 32px 22px; border-radius: 22px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .gate-card { padding: 24px; }
  .portal-form, .portal-side { padding: 26px 20px; }
  .tl { padding-block: 32px; }
}
@media (max-width: 380px) {
  .hero h1, .page-hero h1 { font-size: 2.2rem; }
  .stats { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .choice span { padding: 12px 14px; }
}
input, select, textarea { font-size: 16px; } /* stops iOS zooming into fields */
html { -webkit-tap-highlight-color: rgba(47,125,199,.15); }
@supports (height: 100dvh) { .mobile-nav { bottom: 0; max-height: 100dvh; } }

.brand { min-height: 44px; align-items: center; }
.brand-name, .brand-suffix { align-self: center; }
@media (max-width: 900px) { .tab { min-height: 44px; } }

/* ==========================================================================
   Achilles Health additions (logo lockup, six-program grid, protocol
   subscription pop-up, landing pages)
   ========================================================================== */
.brand { align-items: center; gap: 10px; }
.brand-logo { height: 30px; width: auto; display: block; }
.brand-text { display: inline-flex; align-items: baseline; gap: 6px; }
.footer .brand-logo, .gate-card .brand-logo { height: 34px; }

/* six equal program cards (3 x 2) */
.programs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.program, .program:nth-child(-n+2) { grid-column: auto; }
.program-art, .program:nth-child(-n+2) .program-art { aspect-ratio: 16 / 10; display: block; }
.program-body h3 a { color: inherit; text-decoration: none; }
.program-body h3 a:hover { color: var(--accent-deep); }
.program-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.program .link-arrow { margin-top: 0; }
@media (max-width: 900px) {
  .programs { grid-template-columns: 1fr 1fr; }
  .program, .program:nth-child(-n+2), .program:last-child { grid-column: auto; }
}
@media (max-width: 600px) { .programs { grid-template-columns: 1fr; } }
.related { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1100px) { .related { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .related { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .related { grid-template-columns: 1fr; } }
.mega-list { grid-template-columns: 1fr 1fr; }
@media (max-width: 1180px) { .mega-list { grid-template-columns: 1fr; } }

/* protocol subscription plans */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.plan { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; display: grid; gap: 12px; align-content: start; }
.plan.best { border-color: var(--accent); box-shadow: var(--shadow); }
.plan .eyebrow { justify-self: start; }
.plan-price { font: 400 var(--step-4)/1 var(--f-display); color: var(--ink); }
.plan-price small { font: 500 0.9rem/1 var(--f-body); color: var(--muted); }
.plan p { color: var(--ink-2); font-size: 0.95rem; }
@media (max-width: 860px) { .plans { grid-template-columns: 1fr; } }

.submodal { position: fixed; inset: 0; z-index: 85; display: grid; place-items: center; padding: 16px; background: rgba(7, 26, 46, 0.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); overflow-y: auto; }
.submodal[hidden] { display: none; }
.submodal-card { position: relative; width: min(520px, 100%); background: var(--paper); border-radius: var(--r-lg); padding: clamp(22px, 4vw, 34px); display: grid; gap: 14px; box-shadow: var(--shadow); border: 1px solid var(--line); margin: auto; }
.submodal-card h2 { font-size: var(--step-3); }
.submodal-card > p { color: var(--ink-2); font-size: 0.95rem; }
.submodal-close { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--mist); color: var(--ink); font-size: 1.3rem; line-height: 1; cursor: pointer; }
.submodal-close:hover { background: var(--tint); }
.sub-options { display: grid; gap: 8px; border: 0; padding: 0; margin: 0; }
.sub-option { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r); cursor: pointer; }
.sub-option:has(input:checked) { border-color: var(--accent); background: var(--ground); }
.sub-option input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent-deep); }
.sub-option strong { display: block; color: var(--ink); }
.sub-option span span { display: block; font-size: 0.86rem; color: var(--muted); }
.sub-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 16px; border-radius: var(--r); background: var(--mist); }
.sub-total b { font: 400 var(--step-3)/1 var(--f-display); color: var(--ink); }
.sub-total small { display: block; color: var(--muted); font-size: 0.82rem; }
.sub-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sub-fields .full { grid-column: 1 / -1; }
.sub-fields input { width: 100%; }
.sub-msg { min-height: 1.3em; font-size: 0.9rem; color: var(--warn); }
@media (max-width: 520px) { .sub-fields { grid-template-columns: 1fr; } }
body.modal-lock { overflow: hidden; }

/* single-page landing layouts (quiz + booking) */
.landing { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-rows: auto 1fr auto; }
.landing-head { padding: 18px 0; }
.landing-head .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.landing-head a.tel { font-weight: 600; text-decoration: none; color: inherit; }
.landing-foot { padding: 22px 0 28px; font-size: 0.8rem; color: var(--muted); }
.landing-foot p { max-width: 70rem; }
.quiz-shell { display: grid; place-items: center; padding: clamp(16px, 4vw, 48px) 0; }
.quiz-card { width: min(680px, 100%); background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(22px, 4vw, 44px); box-shadow: var(--shadow); display: grid; gap: 22px; }
.quiz-bar { height: 6px; border-radius: 999px; background: var(--mist); overflow: hidden; }
.quiz-bar i { display: block; height: 100%; width: 0; background: var(--accent-deep); border-radius: inherit; transition: width .3s ease; }
.quiz-count { font: 500 0.78rem/1 var(--f-data); color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.quiz-step { display: grid; gap: 18px; }
.quiz-step[hidden] { display: none; }
.quiz-step h1, .quiz-step h2 { font-size: var(--step-3); }
.quiz-opts { display: grid; gap: 10px; }
.quiz-opt { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; font: 500 1rem/1.3 var(--f-body); color: var(--ink); background: var(--ground); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; cursor: pointer; min-height: 56px; transition: border-color .15s, background .15s; }
.quiz-opt:hover, .quiz-opt:focus-visible { border-color: var(--accent); }
.quiz-opt[aria-pressed="true"] { border-color: var(--accent-deep); background: var(--mist); }
.quiz-opt small { display: block; font-weight: 400; color: var(--muted); font-size: 0.86rem; }
.quiz-nav { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.quiz-back { background: none; border: 0; color: var(--muted); font: 500 0.92rem/1 var(--f-body); cursor: pointer; padding: 10px 4px; }
.quiz-back:hover { color: var(--ink); }
.splash { color: #fff; display: grid; align-items: center; }
.splash-inner { display: grid; gap: 26px; max-width: 46rem; padding-block: clamp(40px, 8vw, 110px); }
.splash h1 { font-size: var(--step-5); letter-spacing: -0.025em; line-height: 1.02; color: #fff; }
.splash .lede { color: #fff; }
.splash-points { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px; padding: 0; font-size: 0.95rem; }
.splash-points li { display: inline-flex; align-items: center; gap: 8px; }
.splash-points li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-soft); }
.btn-xl { font-size: 1.1rem; padding: 1.05em 1.9em; }

