/* ============================================================
   PeptideTrack marketing site
   Inter, monochrome, warm undertone, editorial
   ============================================================ */

:root {
  --bg: #FAFAFA;
  --bg-alt: #F4F4F4;
  --fg: #0A0A0A;
  --muted: #7A7A7A;
  --soft: #ECECEC;
  --warm: #F2F2F2;
  --warm-strong: #ECECEC;
  --warm-extra: #E4E4E4;
  --display-weight: 700;
  --num-feat: "tnum";
  --shadow-phone: 0 80px 120px -40px rgba(0,0,0,.22), 0 30px 60px -20px rgba(0,0,0,.18);
  --shadow-card: 0 1px 0 rgba(0,0,0,.04), 0 30px 60px -40px rgba(0,0,0,.18);
  --container: 1240px;
  --pad: 32px;
}

[data-theme="dark"] {
  --bg: #0E0E0E;
  --bg-alt: #161616;
  --fg: #FAFAFA;
  --muted: #999999;
  --soft: #222222;
  --warm: #1a1715;
  --warm-strong: #1f1b16;
  --warm-extra: #221d18;
  --shadow-phone: 0 80px 120px -40px rgba(0,0,0,.6), 0 30px 60px -20px rgba(0,0,0,.5);
  --shadow-card: 0 1px 0 rgba(255,255,255,.03), 0 30px 60px -40px rgba(0,0,0,.7);
}

[data-warm="cream"]  { --warm: var(--bg-alt); }
[data-warm="sand"]   { --warm: var(--bg-alt); }
[data-warm="paper"]  { --warm: var(--bg-alt); }
[data-warm="off"]    { --warm: var(--bg); }

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-feature-settings: var(--num-feat);
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }

::selection { background: var(--fg); color: var(--bg); }

.page { width: 100%; overflow-x: clip; }

/* ----------- shared -------------- */
.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: .6;
}
.eyebrow--light { color: rgba(255,255,255,.65); opacity: 1; }
.eyebrow--feature { letter-spacing: 0.18em; }
.section-title {
  font-size: clamp(36px, 4.4vw, 60px);
  letter-spacing: -0.03em;
  font-weight: var(--display-weight);
  line-height: 1.04;
  margin: 12px 0 0;
  text-wrap: balance;
}

.wordmark {
  font-weight: 400;
  letter-spacing: -0.04em;
  white-space: nowrap;
}
.wordmark b { font-weight: 700; letter-spacing: -0.045em; }
.wordmark span { font-weight: 300; }

/* ----------- nav ----------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px var(--pad);
  background: color-mix(in oklab, var(--bg) 80%, transparent);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background .25s ease;
}
.nav.is-scrolled {
  border-bottom-color: var(--soft);
  background: color-mix(in oklab, var(--bg) 92%, transparent);
}
.nav__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}
.app-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* White card with the source bottle icon shown in its native black —
     reads as an "app icon" lockup the way iOS app pages present it. */
  background: #fff;
  color: var(--fg);
  flex-shrink: 0;
  overflow: hidden;
  border: 1px solid var(--soft);
  box-shadow: 0 1px 2px rgba(0,0,0,.05);
  transition: transform .25s ease;
}
.app-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* Source PNG is already black-on-white — no filter needed. */
}
/* Dark mode: keep the white card so it still pops against the dark page. */
[data-theme="dark"] .app-icon {
  background: #fff;
  border-color: rgba(255,255,255,.10);
}
.nav__logo:hover .app-icon { transform: rotate(-4deg) scale(1.04); }
.foot__lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.nav__right {
  display: flex; align-items: center; gap: 22px;
}
.nav__link {
  font-size: 14px;
  font-weight: 500;
  opacity: .8;
  transition: opacity .15s ease;
}
.nav__link:hover { opacity: 1; }
/* Nav uses the official Apple "Download on the App Store" badge as its CTA. */
.nav__cta {
  display: inline-flex;
  align-items: center;
  border: 0;
  padding: 0;
  background: transparent;
  border-radius: 8px;
  line-height: 0;
  transition: transform .15s ease;
  flex-shrink: 0;
}
.nav__cta img { display: block; width: 120px; height: auto; }
.nav__cta:hover { transform: translateY(-1px); }
/* Dark mode: page bg is dark, so invert the black lockup so it's visible. */
[data-theme="dark"] .nav__cta img { filter: invert(1); }
.nav__menu {
  display: none;
  background: transparent;
  border: 0;
  width: 36px; height: 36px;
  position: relative;
}
.nav__menu span {
  display: block; width: 18px; height: 1.6px; background: var(--fg);
  position: absolute; left: 9px;
}
.nav__menu span:nth-child(1) { top: 12px; }
.nav__menu span:nth-child(2) { top: 17.5px; }
.nav__menu span:nth-child(3) { top: 23px; }

@media (max-width: 760px) {
  .nav__link { display: none; }
  .nav__cta img { width: 110px; }
  .nav__menu { display: block; }
}
@media (max-width: 480px) {
  .nav__cta img { width: 100px; }
}

.navmenu {
  position: fixed; inset: 0;
  background: var(--bg);
  z-index: 60;
  /* Match .nav's 16px top padding so the wordmark sits at the same y-position
     when the menu opens — no perceptible shift. */
  padding: 16px var(--pad) 32px;
  display: flex; flex-direction: column;
  gap: 4px;
}
.navmenu__top {
  display: flex; align-items: center; justify-content: space-between;
  /* Match the closed nav row height — the App Store badge sets the tallest
     element, so the open menu's header lines up with the sticky nav above. */
  min-height: 30px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--soft);
}
.navmenu__top-right {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.navmenu__close {
  background: transparent; border: 0;
  /* 22px svg + 4px padding × 2 = 30px tall, matching the logo so .navmenu__top
     row stays at 30px (no shift relative to .nav). */
  padding: 4px;
  cursor: pointer;
}
.navmenu a {
  font-size: 28px; letter-spacing: -0.025em; font-weight: 600;
  padding: 14px 0;
  border-bottom: 1px solid var(--soft);
}
.navmenu__cta { margin-top: auto; }

/* ----------- App Store badge (official Apple lockup) ---- */
.app-store-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  padding: 0;
  background: transparent;
  border-radius: 8px;
  transition: transform .15s ease, box-shadow .2s ease;
  /* Apple's HIG requires the badge keep its aspect ratio and not be modified. */
  line-height: 0;
}
.app-store-badge:hover { transform: translateY(-1px); }
.app-store-badge img {
  display: block;
  height: auto;
  width: 100%;
}
.app-store-badge--md { width: 168px; }
.app-store-badge--lg { width: 200px; }

/* ----------- hero ---------------- */
.hero {
  background: var(--warm);
  border-bottom: 1px solid var(--soft);
  padding: 24px var(--pad) 0;
  overflow: hidden;
}
@media (max-width: 980px) {
  /* Breathing room under the phone before the next section starts. */
  .hero { padding-bottom: 56px; }
}
.hero__grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 48px;
  align-items: center;
  padding-top: 16px;
  min-height: calc(100vh - 90px);
}
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; gap: 32px; padding-top: 8px; min-height: 0; }
}

.hero__copy { padding-bottom: 24px; }
.hero__headline {
  font-size: clamp(44px, 6.8vw, 92px);
  letter-spacing: -0.045em;
  line-height: 1.06;
  font-weight: var(--display-weight);
  margin: 16px 0 24px;
  padding-bottom: 0.08em; /* room for descenders so y/g aren't clipped */
  text-wrap: balance;
  word-spacing: 0.01em;
}
.hero__sub {
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.45;
  letter-spacing: -0.005em;
  font-weight: 500;
  color: var(--muted);
  max-width: 520px;
  margin: 0 0 22px;
}
.hero__cta { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.hero__price { font-size: 11px; color: var(--muted); margin: 0; letter-spacing: 0.005em; }
.hero__meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  margin-top: 20px;
  font-size: 12px; color: var(--muted);
  font-weight: 500;
}
.hero__meta .dot { width: 5px; height: 5px; background: var(--fg); border-radius: 50%; display: inline-block; opacity: .7; margin-right: 4px; }
.hero__meta .sep { width: 1px; height: 12px; background: var(--soft); }

.hero__device {
  display: flex; justify-content: center; align-items: center;
  position: relative;
}
.hero__device-stage {
  position: relative;
  transform: rotate(-1.5deg);
  width: min(330px, 72%);
}
@media (max-width: 980px) {
  .hero__copy { padding-bottom: 0; }
  /* Preserve the -1.5° tilt on mobile (matches desktop). useHeroScrollTilt
     layers scroll-driven rotateX/Y on top via --rx/--ry. */
  .hero__device-stage { width: min(290px, 72%); margin: 0 auto; }
}

/* ----------- phone frame --------
   Uses a real iPhone SVG overlay (assets/iphone-frame.svg, viewBox 880×1832,
   with chrome, Dynamic Island cutout, side buttons, antenna lines, camera,
   and corner shading vectors). Outside-the-phone and the screen region are
   transparent via the SVG's mask, so the screenshot in .phone-frame__inner
   shows through. SVG scales infinitely — sharp at every breakpoint with
   no per-DPR asset to swap.
   Screen insets derived from the SVG viewBox (38/880 horizontal, 42/1832
   vertical): top 2.293%, right 4.318%, bottom 2.293%, left 4.318%. Keep
   these in sync if the asset is ever re-exported. */
.phone-frame {
  position: relative;
  aspect-ratio: 880 / 1832;
  filter: drop-shadow(0 30px 50px rgba(0,0,0,.18)) drop-shadow(0 12px 24px rgba(0,0,0,.12));
}
.phone-frame__inner {
  position: absolute;
  /* Insets derived directly from the SVG viewBox: 42/1832 vertical,
     38/880 horizontal. Don't change these — they exactly match the SVG's
     screen mask so the screenshot lines up with the iPhone interior. */
  top: 2.293%;
  right: 4.318%;
  bottom: 2.293%;
  left: 4.318%;
  overflow: hidden;
  /* Clip to the exact iPhone screen path from the SVG (assets/iphone-screen-mask.svg
     is the same screen rect minus the DI cutout, translated to local coords).
     This is the only way to get a true edge-to-edge fill — a CSS border-radius
     would either over-clip (gap to chrome) or under-clip (corners poke past). */
  -webkit-mask: url(assets/iphone-screen-mask.svg) center / 100% 100% no-repeat;
          mask: url(assets/iphone-screen-mask.svg) center / 100% 100% no-repeat;
}
.phone-frame__inner img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.phone-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url(assets/iphone-frame.svg) center / 100% 100% no-repeat;
  pointer-events: none;
  z-index: 2;
}

/* ----------- feature overview strip --------- */
.strip {
  border-bottom: 1px solid var(--soft);
  background: var(--bg);
}
.strip__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 96px var(--pad);
}
.strip__head {
  margin-bottom: 48px;
  max-width: 720px;
}
.strip__title {
  font-size: clamp(32px, 3.6vw, 52px);
  letter-spacing: -0.03em;
  font-weight: var(--display-weight);
  line-height: 1.04;
  margin: 12px 0 0;
  text-wrap: balance;
}
.strip__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--soft);
  border: 1px solid var(--soft);
  border-radius: 20px;
  overflow: hidden;
}
@media (max-width: 980px) { .strip__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .strip__grid { grid-template-columns: 1fr; } }
.strip__item {
  background: var(--bg);
  padding: 28px 24px;
  display: flex; flex-direction: column;
  gap: 8px;
  min-height: 160px;
  position: relative;
  text-decoration: none;
  color: inherit;
}
.strip__item--link {
  cursor: pointer;
  transition: background .25s ease, transform .25s ease;
}
.strip__item--link:hover { background: var(--warm); transform: translateY(-2px); }
.strip__item--link:hover .strip__arrow { opacity: 1; transform: translate(0, 0); }
.strip__item--link:hover .strip__name { transform: translateY(-1px); }
.strip__item--link:hover svg { transform: translateY(-2px); }
.strip__name { transition: transform .25s ease; }
.strip__item svg { transition: transform .3s ease; }
.strip__arrow {
  position: absolute;
  top: 20px; right: 20px;
  font-size: 14px;
  opacity: 0;
  transform: translate(-2px, 2px);
  transition: opacity .15s ease, transform .15s ease;
  color: var(--fg);
}
.strip__item svg {
  color: var(--fg);
  opacity: .85;
  margin-bottom: 16px;
}
.strip__name {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.strip__cap {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
  max-width: 24ch;
}

/* ----------- peptides marquee ------- */
.marquee {
  background: var(--bg);
  padding: 96px 0 88px;
  border-top: 1px solid var(--soft);
  border-bottom: 1px solid var(--soft);
  overflow: hidden; /* clip the wide scrolling track */
}
.marquee__head {
  max-width: var(--container);
  margin: 0 auto 40px;
  padding: 0 var(--pad);
  text-align: center;
}
.marquee__title {
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: var(--display-weight);
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 10px 0 8px;
  text-wrap: balance;
}
.marquee__sub {
  font-size: 15px;
  color: var(--muted);
  margin: 0;
}
.marquee__viewport {
  position: relative;
  overflow: hidden;
  perspective: 1400px;
  perspective-origin: 50% 50%;
  /* Fade the edges so words gracefully appear/disappear. */
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 14%, #000 86%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 14%, #000 86%, transparent 100%);
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: 56px;
  width: max-content;
  padding: 28px 0;
  /* Subtle tilt to give the row a sense of depth, like the reference. */
  transform: rotateX(6deg);
  animation: marqueeScroll 60s linear infinite;
  will-change: transform;
}
.marquee__item {
  font-size: clamp(28px, 4vw, 56px);
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--fg);
  white-space: nowrap;
  flex-shrink: 0;
  font-feature-settings: "ss01";
}
/* Visual rhythm — every other word is muted so the row breathes. */
.marquee__item:nth-child(2n)   { color: var(--muted); opacity: .55; }
.marquee__item:nth-child(3n)   { opacity: .35; }
.marquee__item:nth-child(5n+1) { color: var(--fg); opacity: 1; }

@keyframes marqueeScroll {
  from { transform: rotateX(6deg) translateX(0); }
  to   { transform: rotateX(6deg) translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee__track {
    animation: none;
    transform: rotateX(0deg);
  }
}

@media (max-width: 560px) {
  .marquee { padding: 72px 0 64px; }
  .marquee__head { margin-bottom: 28px; }
  .marquee__track { gap: 36px; padding: 20px 0; animation-duration: 45s; }
}

/* ----------- features grid ------- */
/* ----------- features (horizontal rail) ----------
   Cards live in a scroll-snap rail. Each .feature is one card. Native
   scroll-snap drives the swipe; arrows on the sides are progressive
   enhancement for desktop. */
.features--rail {
  background: var(--bg);
  border-bottom: 1px solid var(--soft);
  padding: 96px 0 88px;
  position: relative;
}
.features__head {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad) 36px;
}
.features__title {
  font-size: clamp(32px, 4vw, 48px);
  letter-spacing: -0.025em;
  line-height: 1.06;
  font-weight: var(--display-weight);
  margin: 8px 0 12px;
  text-wrap: balance;
}
.features__sub {
  font-size: 17px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 560px;
  margin: 0;
}

.features__rail-wrap {
  position: relative;
}
.features__rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(900px, 88vw);
  gap: 24px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  /* Inset the track to match the page container, so the first card lines up
     with .features__head. The asymmetric right padding lets users see the
     edge of the next card as a scroll cue. */
  padding: 8px max(var(--pad), calc((100vw - var(--container)) / 2)) 24px;
  /* Reserve space for the focus ring so it isn't clipped. */
  scroll-padding-inline: max(var(--pad), calc((100vw - var(--container)) / 2));
}
.features__rail::-webkit-scrollbar { display: none; }

/* Card */
.feature {
  scroll-snap-align: start;
  scroll-snap-stop: always;
  background: var(--bg-alt);
  border: 1px solid var(--soft);
  border-radius: 28px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 1px 0 rgba(0,0,0,.02);
  /* Align card heights across the rail so swiping doesn't feel jittery. */
  min-height: 520px;
}
@media (max-width: 980px) {
  .feature { min-height: 0; }
}
.feature--a, .feature--b { background: var(--bg-alt); }

.feature__inner {
  /* Card-internal grid: copy left, phone right on desktop. */
  padding: 48px 48px 56px;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 40px;
  align-items: center;
  height: 100%;
  box-sizing: border-box;
}
.feature--right .feature__copy,
.feature--left .feature__copy { order: 1; }
.feature--right .feature__media,
.feature--left .feature__media { order: 2; }

@media (max-width: 980px) {
  .features--rail { padding: 64px 0 64px; }
  .features__head { padding: 0 var(--pad) 24px; }
  .features__rail {
    grid-auto-columns: calc(100vw - var(--pad) * 2);
    gap: 16px;
    padding: 8px var(--pad) 20px;
    scroll-padding-inline: var(--pad);
  }
  .feature__inner {
    grid-template-columns: 1fr;
    padding: 32px 24px 36px;
    gap: 24px;
    align-items: start;
  }
  /* Phone first on mobile, copy below — card opens with a visual. */
  .feature--right .feature__copy,
  .feature--left .feature__copy { order: 2; }
  .feature--right .feature__media,
  .feature--left .feature__media { order: 1; }
}

/* Arrow buttons — desktop only, hidden on touch / small screens. */
.features__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--soft);
  background: color-mix(in oklab, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--fg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform .15s ease, opacity .2s ease, background .2s ease;
  box-shadow: 0 8px 20px -10px rgba(0,0,0,.18);
}
.features__arrow:hover { transform: translateY(-50%) scale(1.05); }
.features__arrow:disabled {
  opacity: 0;
  pointer-events: none;
}
.features__arrow--prev { left: 12px; }
.features__arrow--next { right: 12px; }
@media (max-width: 980px), (pointer: coarse) {
  .features__arrow { display: none; }
}

.feature__index {
  font-size: 12px; font-weight: 600; opacity: .35; letter-spacing: 0.05em;
  font-feature-settings: "tnum";
  margin-bottom: 24px;
}
.feature__title {
  font-size: clamp(24px, 2.4vw, 36px);
  letter-spacing: -0.025em;
  line-height: 1.08;
  font-weight: var(--display-weight);
  margin: 12px 0 16px;
  max-width: 18ch;
  text-wrap: balance;
}
.feature__body {
  font-size: 16px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 460px;
  margin: 0 0 22px;
}
.feature__bullets {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 10px;
  max-width: 460px;
}
.feature__bullets li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 15px;
  color: var(--fg);
}
.feature__bullets svg {
  flex-shrink: 0;
  margin-top: 4px;
  color: var(--fg);
  opacity: .5;
}

.feature__media {
  display: flex; justify-content: center; align-items: center;
  min-height: 0;
}
/* =========================================================================
   GUIDELINE — iPhone mockup parity (single ↔ dual)
   Both .feature__media .phone-frame and .feature__dual .phone-frame share the
   same .phone-frame base (PNG overlay at assets/iphone-frame.png — chrome,
   Dynamic Island, side buttons baked in). Parity now means matching only one
   thing: width at each breakpoint. The PNG handles bezel weight, radius, and
   hardware details automatically and identically across both variants.
   ========================================================================= */
.feature__media .phone-frame {
  /* Width caps mirror .feature__dual phone widths at each breakpoint. */
  width: min(280px, 78%);
}
@media (max-width: 980px) {
  .feature__media .phone-frame { width: min(265px, 78%); }
}
@media (max-width: 560px) {
  .feature__media .phone-frame { width: min(218px, 78%); }
}

.feature__dual {
  position: relative;
  width: min(360px, 100%);
  aspect-ratio: 1.0 / 1.05;
  display: block;
  cursor: pointer;
}
.feature__dual .phone-frame {
  width: 78%;
  transition: transform .55s cubic-bezier(.2,.7,.2,1);
}
/* PARITY: dual phones share the same PNG-overlay .phone-frame base as singles,
   so chrome, Dynamic Island, and corner radii are automatically identical.
   See the GUIDELINE comment block above the .feature__media rules. */
.feature__dual-back {
  position: absolute;
  top: 0; right: 0;
  width: 78%;
  transform: rotate(5deg) translateY(-10%);
  transition: transform .55s cubic-bezier(.2,.7,.2,1);
}
.feature__dual-front {
  position: absolute;
  bottom: 0; left: 0;
  width: 78%;
  transform: rotate(-3deg) translateY(10%);
  z-index: 2;
  transition: transform .55s cubic-bezier(.2,.7,.2,1);
}
.feature__dual:hover .feature__dual-back  { transform: rotate(7deg) translate(8%, -12%); }
.feature__dual:hover .feature__dual-front { transform: rotate(-5deg) translate(-8%, 12%); }
@media (max-width: 980px) {
  /* Container tall enough to fit the 9:19.5 phone mockups (78% width × ~2.17 = ~1.69× container width tall),
     so they don't bleed into the bullet/text cell above. */
  .feature__dual { aspect-ratio: 1 / 1.85; max-width: 340px; margin: 0 auto; }
  /* Drop the translateY offsets — those pushed the phones above/below the container edges. Keep gentle rotation. */
  .feature__dual-back  { transform: rotate(3deg); }
  .feature__dual-front { transform: rotate(-2deg); }
  .feature__dual:hover .feature__dual-back  { transform: rotate(3deg); }
  .feature__dual:hover .feature__dual-front { transform: rotate(-2deg); }
}
@media (max-width: 560px) {
  .feature__dual { max-width: 280px; }
}

.feature__placeholder {
  width: min(340px, 78%);
  aspect-ratio: 9/19.5;
  border-radius: 48px;
  background:
    repeating-linear-gradient(
      135deg,
      var(--soft) 0 1px,
      transparent 1px 14px
    ),
    var(--bg-alt);
  border: 1px solid var(--soft);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.feature__placeholder-label {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  background: var(--bg);
  border: 1px solid var(--soft);
  padding: 10px 14px;
  border-radius: 6px;
  max-width: 220px;
}

/* ----------- how it works -------- */
.how {
  max-width: var(--container);
  margin: 0 auto;
  padding: 120px var(--pad);
}
.how__head { max-width: 760px; margin-bottom: 48px; }
.how__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 880px) { .how__grid { grid-template-columns: 1fr; } }
.how__card {
  background: var(--bg-alt);
  border: 1px solid var(--soft);
  border-radius: 20px;
  padding: 40px 32px;
}
.how__num {
  font-size: 40px; font-weight: 700; letter-spacing: -0.04em;
  font-feature-settings: "tnum";
  opacity: .25;
  margin-bottom: 36px;
}
.how__title {
  font-size: 22px; font-weight: 600; letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.how__body { color: var(--muted); font-size: 15px; line-height: 1.55; }

/* ----------- bloodwork dark ------ */
.bw {
  background: #0A0A0A;
  color: #FAFAFA;
  padding: 140px var(--pad);
  border-top: 1px solid #1a1a1a;
  border-bottom: 1px solid #1a1a1a;
}
.bw__inner { max-width: var(--container); margin: 0 auto; }
.bw__head { max-width: 760px; margin-bottom: 64px; }
.bw__title {
  font-size: clamp(40px, 5vw, 72px);
  letter-spacing: -0.04em;
  font-weight: var(--display-weight);
  line-height: 1.02;
  margin: 14px 0 20px;
  text-wrap: balance;
}
.bw__sub {
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.5;
  color: rgba(255,255,255,.65);
  max-width: 560px;
  margin: 0;
}
.bw__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 16px;
}
@media (max-width: 980px) { .bw__grid { grid-template-columns: 1fr; } }

.bw__card {
  background: #161616;
  border: 1px solid #222;
  border-radius: 20px;
  padding: 32px;
  display: flex; flex-direction: column;
  min-height: 320px;
}
.bw__num {
  font-size: 56px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  font-feature-settings: "tnum";
  margin-bottom: 4px;
}
.bw__label {
  font-size: 13px; font-weight: 600; opacity: .55;
  letter-spacing: 0.02em;
  margin-bottom: 16px;
}
.bw__chips {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: auto;
}
.bw__chip {
  background: rgba(255,255,255,.06);
  border: 1px solid #222;
  color: rgba(255,255,255,.85);
  font-size: 12px;
  font-weight: 500;
  padding: 5px 10px;
  border-radius: 999px;
}
.bw__cardbody { color: rgba(255,255,255,.65); font-size: 15px; line-height: 1.5; margin: 0 0 20px; }
.bw__samples { display: flex; flex-direction: column; gap: 8px; margin-top: auto; }
.bw__row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(255,255,255,.03);
  border-radius: 10px;
  font-size: 14px;
}
.bw__row--high { background: rgba(217, 119, 87, .08); }
.bw__row--low  { background: rgba(120, 160, 220, .07); }
.bw__val {
  font-feature-settings: "tnum";
  font-weight: 600;
  font-size: 13px;
  color: rgba(255,255,255,.85);
}
.bw__pill {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.7);
}
.bw__pill--high { background: rgba(217, 119, 87, .2); color: #f3a989; }
.bw__pill--low  { background: rgba(120, 160, 220, .2); color: #a9c2eb; }
.bw__pill--ok   { background: rgba(120, 200, 130, .15); color: #98c89e; }

.spark {
  width: 100%; height: 64px;
  color: #fafafa;
  margin: 8px 0 16px;
}
.bw__trendmeta {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
  margin-top: auto;
  border-top: 1px solid #222;
  padding-top: 16px;
}
.bw__trendnum {
  font-size: 22px; font-weight: 700; letter-spacing: -0.02em;
  font-feature-settings: "tnum";
}
.bw__trendnum--up { color: #98c89e; }
.bw__trendcap { font-size: 11px; color: rgba(255,255,255,.5); margin-top: 2px; }

.bw__foot { margin-top: 48px; }
.bw__link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600;
  color: #fafafa;
  border-bottom: 1px solid rgba(255,255,255,.2);
  padding-bottom: 4px;
  transition: border-color .15s ease;
}
.bw__link:hover { border-color: rgba(255,255,255,.6); }

/* ----------- privacy -------------- */
.privacy {
  padding: 120px var(--pad);
  text-align: center;
  background: var(--warm);
  border-bottom: 1px solid var(--soft);
}
.privacy__inner { max-width: 640px; margin: 0 auto; }
.privacy__title {
  font-size: clamp(40px, 5vw, 64px);
  letter-spacing: -0.04em;
  font-weight: var(--display-weight);
  line-height: 1.04;
  margin: 16px 0 20px;
}
.privacy__body {
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 auto 40px;
  max-width: 560px;
}
.privacy__icons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}
@media (max-width: 720px) { .privacy__icons { grid-template-columns: 1fr; gap: 16px; } }
.privacy__item {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: 28px 16px;
  border: 1px solid var(--soft);
  border-radius: 16px;
  background: var(--bg);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--fg);
}
.privacy__item svg { color: var(--fg); opacity: .8; }
.privacy__link {
  font-size: 14px;
  font-weight: 600;
  border-bottom: 1px solid var(--soft);
  padding-bottom: 2px;
}

/* ----------- faq ---------------- */
.faq {
  max-width: var(--container);
  margin: 0 auto;
  padding: 120px var(--pad);
}
.faq__head { margin-bottom: 48px; max-width: 720px; }
.faq__list { border-top: 1px solid var(--soft); }
.faq__item { border-bottom: 1px solid var(--soft); }
.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  border: 0;
  padding: 24px 0;
  text-align: left;
  font-size: clamp(17px, 1.7vw, 20px);
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--fg);
  gap: 24px;
}
.faq__plus {
  position: relative;
  width: 18px; height: 18px;
  flex-shrink: 0;
}
.faq__plus span {
  position: absolute;
  background: var(--fg);
  transition: transform .25s ease;
}
.faq__plus span:nth-child(1) {
  top: 8.2px; left: 0; right: 0; height: 1.6px;
}
.faq__plus span:nth-child(2) {
  left: 8.2px; top: 0; bottom: 0; width: 1.6px;
}
.faq__item.is-open .faq__plus span:nth-child(2) { transform: scaleY(0); }
.faq__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .3s ease;
}
.faq__a-inner { overflow: hidden; }
.faq__a-inner p {
  margin: 0 0 24px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 720px;
}

/* ----------- final cta ---------- */
.cta {
  padding: 140px var(--pad);
  background: var(--fg);
  color: var(--bg);
  text-align: center;
}
.cta__inner { max-width: 720px; margin: 0 auto; }
.cta__title {
  font-size: clamp(48px, 6vw, 88px);
  letter-spacing: -0.045em;
  font-weight: var(--display-weight);
  line-height: 1.0;
  margin: 0 0 20px;
  text-wrap: balance;
}
.cta__sub {
  font-size: 18px;
  line-height: 1.5;
  color: rgba(255,255,255,.7);
  max-width: 540px;
  margin: 0 auto 40px;
}
[data-theme="dark"] .cta__sub { color: rgba(0,0,0,.7); }
.cta__price { font-size: 12px; color: rgba(255,255,255,.5); margin-top: 14px; }
[data-theme="dark"] .cta__price { color: rgba(0,0,0,.5); }
/* CTA section uses var(--fg) as background (dark in light mode, light in dark mode).
   The Apple lockup is black, so invert it on light-mode (dark CTA bg) to keep contrast. */
.cta .app-store-badge img { filter: invert(1); }
[data-theme="dark"] .cta .app-store-badge img { filter: none; }

/* ----------- footer ------------- */
.foot {
  background: var(--bg-alt);
  border-top: 1px solid var(--soft);
  padding: 80px var(--pad) 32px;
}
.foot__top {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 64px;
  padding-bottom: 64px;
  border-bottom: 1px solid var(--soft);
}
@media (max-width: 880px) { .foot__top { grid-template-columns: 1fr; gap: 40px; } }
.foot__tag { font-size: 14px; line-height: 1.5; color: var(--muted); margin-top: 16px; max-width: 320px; }
.foot__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
@media (max-width: 720px) { .foot__cols { grid-template-columns: 1fr 1fr; gap: 32px; } }
.foot__h {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 16px;
  opacity: .6;
}
.foot ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.foot ul a {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
  transition: color .15s ease;
}
.foot ul a:hover { color: var(--fg); }
.foot__contact {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
  max-width: 28ch;
}
.foot__contact a {
  color: var(--fg);
  border-bottom: 1px solid var(--soft);
  transition: border-color .15s ease;
}
.foot__contact a:hover { border-bottom-color: var(--fg); }
.foot__socials {
  display: flex;
  gap: 8px;
  margin-top: 18px;
}
.foot__socials a {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--soft);
  background: var(--bg);
  color: var(--fg);
  opacity: 1;
  transition: opacity .15s ease, transform .15s ease, border-color .15s ease, background .15s ease;
  flex-shrink: 0;
}
.foot__socials a svg { display: block; }
.foot__socials a:hover {
  transform: translateY(-2px);
  border-color: var(--fg);
  background: var(--bg-alt);
}
.foot__bottom {
  max-width: var(--container);
  margin: 32px auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  font-size: 11px;
  color: var(--muted);
}
@media (max-width: 720px) {
  .foot__bottom { flex-direction: column; align-items: flex-start; }
}
.foot__disc { max-width: 460px; text-align: right; }
@media (max-width: 720px) { .foot__disc { text-align: left; } }

/* ----------- compact density override ----------- */
[data-density="compact"] .feature__inner { padding: 84px var(--pad); }
[data-density="compact"] .how { padding: 84px var(--pad); }
[data-density="compact"] .privacy { padding: 84px var(--pad); }
[data-density="compact"] .faq { padding: 84px var(--pad); }
[data-density="compact"] .bw { padding: 96px var(--pad); }
[data-density="compact"] .cta { padding: 96px var(--pad); }

/* ----------- press contact ---------- */
.press {
  padding: 120px var(--pad);
  background: var(--bg);
  border-top: 1px solid var(--soft);
}
.press__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}
@media (max-width: 880px) {
  .press__inner { grid-template-columns: 1fr; gap: 40px; }
  .press { padding: 84px var(--pad); }
}
.press__head { position: sticky; top: 100px; }
@media (max-width: 880px) { .press__head { position: static; } }
.press__sub {
  font-size: 16px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 440px;
  margin: 18px 0 18px;
}
.press__direct { font-size: 13px; color: var(--muted); margin: 0; }
.press__direct a { color: var(--fg); border-bottom: 1px solid var(--soft); padding-bottom: 1px; }
.press__direct a:hover { border-color: var(--fg); }

.press__form {
  background: var(--bg-alt);
  border: 1px solid var(--soft);
  border-radius: 20px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
@media (max-width: 540px) { .press__form { padding: 24px; } }
.press__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 540px) { .press__row { grid-template-columns: 1fr; } }
.press__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.press__field > span {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--muted);
}
.press__field > span em {
  font-style: normal;
  color: var(--fg);
  opacity: .35;
  font-weight: 500;
  font-size: 11px;
  margin-left: 6px;
}
.press__field input,
.press__field select,
.press__field textarea {
  width: 100%;
  font: inherit;
  font-size: 15px;
  padding: 12px 14px;
  background: var(--bg);
  color: var(--fg);
  border: 1px solid var(--soft);
  border-radius: 10px;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
  font-family: inherit;
}
.press__field textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.5;
}
.press__field input::placeholder,
.press__field textarea::placeholder { color: var(--muted); opacity: .5; }
.press__field input:focus,
.press__field select:focus,
.press__field textarea:focus {
  border-color: var(--fg);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--fg) 12%, transparent);
}
.press__field select {
  appearance: none;
  -webkit-appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--fg) 50%),
    linear-gradient(135deg, var(--fg) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 18px,
    calc(100% - 13px) 18px;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  padding-right: 36px;
}
.press__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 4px;
  flex-wrap: wrap;
}
.press__btn {
  background: var(--fg);
  color: var(--bg);
  border: 1px solid var(--fg);
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.press__btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px -8px rgba(0,0,0,.35); }
.press__btn:disabled { opacity: .6; cursor: not-allowed; transform: none; box-shadow: none; }
.press__btn--ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--soft);
}
.press__btn--ghost:hover {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}
.press__note {
  font-size: 11px;
  color: var(--muted);
  max-width: 320px;
  line-height: 1.5;
  flex: 1 1 240px;
  min-width: 0;
}
.press__note a { color: var(--fg); text-decoration: underline; text-decoration-color: var(--soft); }
.press__note a:hover { text-decoration-color: var(--fg); }

[data-density="compact"] .press { padding: 84px var(--pad); }

/* ============================================================
   Interactive layer — reveals, parallax, hover polish
   ============================================================ */

/* scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
/* once revealed, hand transform back to faster hover-scoped transitions */
.reveal.is-visible {
  transition: opacity .4s ease;
}
.strip__item--link.reveal.is-visible,
.strip__item.reveal.is-visible {
  transition: background .25s ease, transform .25s ease, opacity .4s ease;
}
.reveal--media {
  transform: translateY(28px) scale(.985);
  transition-duration: 1.05s;
}
.reveal--media.is-visible { transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal--media { opacity: 1; transform: none !important; transition: none !important; }
  .hl-word__inner { animation: none !important; opacity: 1 !important; transform: none !important; }
  .spark__line, .spark__pt { animation: none !important; stroke-dashoffset: 0 !important; opacity: 1 !important; }
}

/* hero headline word stagger */
.hl-line { display: block; }
.hl-word { display: inline-block; overflow: hidden; vertical-align: top; }
.hl-word__inner {
  display: inline-block;
  opacity: 0;
  transform: translateY(110%);
  animation: hlRise .9s cubic-bezier(.2,.7,.2,1) forwards;
}
@keyframes hlRise {
  to { opacity: 1; transform: translateY(0); }
}

/* phone parallax stage */
.hero__device-stage,
.feature__media {
  perspective: 1400px;
  transform-style: preserve-3d;
}
.hero__device-stage .phone-frame,
.feature__media .phone-frame,
.feature__media .feature__dual {
  transition: transform .6s cubic-bezier(.2,.7,.2,1);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) scale(var(--ps, 1));
  will-change: transform;
}
.hero__device-stage {
  /* keep base hero tilt but apply parallax on top — same on desktop and
     mobile, so the hero phone always reads as slightly skewed and alive. */
  transform: rotate(-1.5deg);
}

/* sparkline draw-in */
.spark__line {
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
}
.spark.is-visible .spark__line {
  animation: sparkDraw 1.4s cubic-bezier(.5,.05,.2,1) forwards;
  animation-delay: .2s;
}
.spark__pt {
  opacity: 0;
  transform-origin: center;
}
.spark.is-visible .spark__pt {
  animation: sparkDot .35s cubic-bezier(.2,.7,.2,1) forwards;
}
@keyframes sparkDraw {
  to { stroke-dashoffset: 0; }
}
@keyframes sparkDot {
  from { opacity: 0; transform: scale(.4); }
  to   { opacity: 1; transform: scale(1); }
}

/* bloodwork rows fade in sequence when card visible */
.bw__card.reveal .bw__row {
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity .5s ease, transform .5s ease;
}
.bw__card.reveal.is-visible .bw__row {
  opacity: 1;
  transform: none;
}
.bw__samples .bw__row:nth-child(1) { transition-delay: .1s; }
.bw__samples .bw__row:nth-child(2) { transition-delay: .2s; }
.bw__samples .bw__row:nth-child(3) { transition-delay: .3s; }
.bw__samples .bw__row:nth-child(4) { transition-delay: .4s; }

/* faq plus → cleaner rotate */
.faq__plus { transition: transform .3s ease; }
.faq__item.is-open .faq__plus { transform: rotate(45deg); }

/* nav link underline wipe */
.nav__link {
  position: relative;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 1.4px;
  background: var(--fg);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .3s cubic-bezier(.2,.7,.2,1);
}
.nav__link:hover::after { transform: scaleX(1); }

/* App Store badge subtle hover */
.app-store-badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px -12px rgba(0,0,0,.35);
}

/* feature media subtle hover lift (independent of parallax tilt) */
.feature__media .phone-frame { transition: transform .6s cubic-bezier(.2,.7,.2,1), filter .4s ease; }
.feature__media:hover .phone-frame {
  /* drop-shadow respects the PNG's phone silhouette, unlike box-shadow on the
     transparent bounding box. */
  filter: drop-shadow(0 60px 100px rgba(0,0,0,.22)) drop-shadow(0 24px 40px rgba(0,0,0,.18));
}

/* footer social icon polish */
.foot__social a { transition: transform .25s ease, color .2s ease; }
.foot__social a:hover { transform: translateY(-2px); }

/* ============================================================
   Mobile responsive pass (≤640 / ≤480 / ≤380)
   Tightens padding, fluid type, prevents horizontal scroll.
   ============================================================ */
html, body {
  /* Lock horizontal scroll site-wide. Use overflow-x: clip (not hidden) —
     hidden creates a scroll-formatting context that breaks position:sticky
     on direct children of body (the .nav header). clip is specifically
     designed not to create that context, so sticky stays sticky.
     overscroll-behavior-x:none disables iOS horizontal rubber-band.
     width:100% pins layout width even if a child overflows. */
  overflow-x: clip;
  overscroll-behavior-x: none;
  width: 100%;
}

/* Sections that the nav anchors to. Without scroll-margin-top, jumping to
   #faq or #features lands the section title behind the sticky nav. ~80px
   matches the nav's natural height (16px padding × 2 + 30px logo + 1px
   border) plus a little breathing room. */
section[id], header[id] { scroll-margin-top: 80px; }
img, svg, video { max-width: 100%; height: auto; }

/* Tablet & below — pull side padding in a touch */
@media (max-width: 760px) {
  :root { --pad: 24px; }
}

/* Phone — phone-first compaction */
@media (max-width: 560px) {
  :root { --pad: 20px; }

  /* Compact section padding */
  .feature__inner { padding: 28px 22px 32px; gap: 22px; }
  .how { padding: 72px var(--pad); }
  .bw { padding: 88px var(--pad); }
  .privacy { padding: 80px var(--pad); }
  .faq { padding: 80px var(--pad); }
  .cta { padding: 96px var(--pad); }
  .press { padding: 72px var(--pad); }
  .strip__inner { padding: 64px var(--pad); }
  .foot { padding: 56px var(--pad) 28px; }

  /* Hero — let the headline breathe but keep it tight */
  .hero { padding-top: 16px; }
  .hero__grid { gap: 24px; padding-top: 0; }
  .hero__headline { font-size: clamp(38px, 11vw, 56px); }
  .hero__sub { font-size: 16px; }
  .hero__device-stage { width: min(260px, 78%); }

  /* Feature copy (in rail cards) */
  .feature__title { font-size: clamp(22px, 5.6vw, 28px); }
  .feature__body { font-size: 15px; }
  .feature__bullets li { font-size: 14px; }

  /* How */
  .how__head { margin-bottom: 32px; }
  .how__card { padding: 28px 24px; }
  .how__num { font-size: 32px; margin-bottom: 24px; }
  .how__title { font-size: 19px; }

  /* Bloodwork */
  .bw__head { margin-bottom: 40px; }
  .bw__title { font-size: clamp(34px, 9vw, 48px); }
  .bw__sub { font-size: 16px; }
  .bw__card { padding: 28px 22px; min-height: 0; }
  .bw__num { font-size: 44px; }
  .bw__row { grid-template-columns: 1fr auto; row-gap: 4px; padding: 10px 12px; }
  .bw__row .bw__pill { grid-column: 2; }
  .bw__row .bw__val { grid-column: 1 / -1; font-size: 13px; opacity: .85; }
  .bw__trendmeta { gap: 8px; }
  .bw__trendnum { font-size: 18px; }
  .bw__foot { margin-top: 32px; }

  /* Final CTA */
  .cta__title { font-size: clamp(36px, 9vw, 56px); }

  /* Privacy / FAQ section titles */
  .section-title { font-size: clamp(32px, 7.5vw, 42px); }
  .privacy__title { font-size: clamp(32px, 8vw, 44px); }
  .privacy__body { font-size: 16px; }

  /* Press form — single column, full-width buttons */
  .press__row { grid-template-columns: 1fr !important; }
  .press__foot { flex-direction: column; align-items: stretch; gap: 12px; }
  .press__btn { width: 100%; text-align: center; justify-content: center; }
  .press__note { max-width: none; text-align: center; }

  /* Footer */
  .foot__cols { grid-template-columns: 1fr 1fr; gap: 24px 16px; }
  .foot__bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* Very small phones */
@media (max-width: 380px) {
  :root { --pad: 16px; }
  .hero__headline { font-size: clamp(34px, 11vw, 44px); }
  .feature__title { font-size: clamp(20px, 6vw, 26px); }
  .bw__title { font-size: clamp(30px, 9vw, 40px); }
  .cta__title { font-size: clamp(32px, 9vw, 48px); }
  .nav { padding: 12px var(--pad); }
}
