/* ============================================================
   Stack My Med — landing styles
   smm-v2 "Clinical Sky". Cool paper, deep green, a whisper of
   focus-blue for AI. All-sans (Inter).
   ============================================================ */

:root {
  /* Surfaces */
  --paper:        var(--v2-canvas);
  --paper-2:      var(--v2-surface-soft);
  --paper-3:      #dfe8f0;
  --surface:      var(--v2-surface);
  --surface-warm: var(--v2-surface);

  /* Ink */
  --ink:    var(--v2-ink);
  --ink-2:  rgba(28, 31, 35, 0.80);
  /* Deliberately NOT var(--v2-ink-muted) (alpha .6): that measures 4.27:1 on
     --paper and 4.39:1 on --surface, both under the 4.5:1 AA floor -- a
     regression from the pre-port #6a6d77, which passed both. Darkened here,
     in the legacy alias only, to alpha .68 (5.50:1 on --paper, 5.70:1 on
     --surface). design-tokens.v2.css stays byte-faithful to the funnel --
     never edit the artifact to chase contrast. */
  --muted:  rgba(28, 31, 35, 0.68);
  --muted-2:rgba(28, 31, 35, 0.45);

  /* Brand */
  --green:      var(--v2-brand);
  --green-deep: #0c6343;
  --green-soft: var(--v2-brand-soft);
  --green-ink:  #0a4d23;

  /* Accents -- mapped onto the funnel's semantic set, not invented */
  --amber:      var(--v2-warning);
  /* --amber text on --amber-soft measured 4.26:1 (fail). Both sit in the
     same hue family, so darkening --amber-soft at constant hue converges it
     toward --amber and REDUCES contrast; lightened instead (toward white,
     preserving the hue) to the minimum that clears 4.5:1 -> 4.51:1. */
  --amber-soft: #f9efe2;
  --violet:     var(--v2-focus);   /* AI marker -> funnel focus blue */
  --violet-2:   #7ba7ef;
  /* Task 2 lightened --violet-soft to #f3f7fd to clear AA using flat
     --violet as the foreground -- that measured 1.01:1 against --paper,
     i.e. invisible. Fixed here per the green-soft/green-ink pattern: a
     dedicated --violet-ink foreground (dark, mirrors --green-ink) instead
     of trying to force --violet (#286be6, a mid-tone blue) to read on a
     near-white tint. --violet-soft is restored to a visible tint (~16%
     --violet into white, matching --green-soft's ~13-15% mix ratio off
     --green); --violet-ink clears AA against it by a wide margin instead
     of the previous 0.005 knife's-edge. Measured (relative-luminance):
     --violet-ink #1d3f8f on --violet-soft flat = 7.82:1; composited through
     .step.featured .step-ic's color-mix(in oklab, var(--violet-soft) 80%,
     transparent) over that card's --v2-surface-soft background = 7.97:1. */
  --violet-soft:#dde7fb;
  --violet-ink: #1d3f8f;
  --rose:       var(--v2-danger);
  /* --rose text on --rose-soft measured 4.202:1 (fail), same hue family as
     --amber-soft above, so the same fix applies: darkening at constant hue
     converges toward --rose and reduces contrast; lightened instead
     (toward white, preserving the hue) -> 4.589:1. */
  --rose-soft:  #faeae8;

  /* Focus ring -- deliberately its own alias, not reused from --violet.
     --violet is also var(--v2-focus) but gets brightened to #b29bff for
     dark theme; a focus ring needs to survive on every surface it can
     land on, including the .plan-unlock panel's dark-theme inversion
     (background: var(--ink), which flips to a light cream in dark theme).
     #b29bff measures 2.03:1 there -- fails. The flat --v2-focus blue
     clears 3:1 on every surface checked (WCAG 2.2 SC1.4.11), so dark
     theme keeps the same value on purpose; see body[data-theme="dark"]. */
  --focus: var(--v2-focus);

  /* Lines & shadow */
  --rule:    var(--v2-rule);
  --rule-2:  rgba(28, 31, 35, 0.06);
  --shadow-card: var(--v2-shadow-rest);
  --shadow-pop:  var(--v2-shadow-float);

  --radius-sm: 12px;
  --radius:    var(--v2-radius-card);
  --radius-lg: var(--v2-radius-scene);
  --radius-xl: var(--v2-radius-scene);

  /* Typography -- all-sans per spec; serif and mono are retired here */
  --font-display: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-sans:    Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono:    Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container: 1200px;
}

/* Dark luxe theme (applied via [data-theme="dark"] on <body>) */
body[data-theme="dark"] {
  --paper:        #0d100c;
  --paper-2:      #141811;
  --paper-3:      #1b201a;
  --surface:      #161a14;
  --surface-warm: #1a1f17;
  --ink:    #f4efe1;
  --ink-2:  #d6d2c4;
  --muted:  #969386;
  --muted-2:#73715f;
  --green:      #4ade80;
  --green-deep: #22c55e;
  --green-soft: #18361f;
  --green-ink:  #b4ffc7;
  --amber:      #fde047;
  --amber-soft: #3b3215;
  --violet:     #b29bff;
  --violet-soft:#1f1b3a;
  --violet-ink: #c3d3ff;
  --rule:       #2a2f25;
  --rule-2:     #1f231c;
  --rose:       #f0a4be;
  --rose-soft:  #3a1e29;
  /* Same value as light theme, not brightened like --violet -- see the
     :root comment. Measured: 3.95:1 on --paper, 3.64:1 on --surface,
     4.22:1 on the .plan-unlock panel (which inverts to light here). */
  --focus:      #286be6;
  --shadow-card: 0 1px 0 rgba(255,255,255,.02), 0 18px 50px -22px rgba(0,0,0,.6);
  --shadow-pop:  0 1px 0 rgba(255,255,255,.03), 0 32px 70px -28px rgba(0,0,0,.7);
}

/* ============================================================ Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-sans);
  font-feature-settings: "ss01", "ss02", "cv11";
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

::selection { background: var(--green); color: white; }

/* Focus ring -- first designed focus state on this site. Browsers already
   gave keyboard users a default ring (nobody ever wrote outline: none), but
   nothing here matched --v2-focus. :focus-visible (not :focus) keeps mouse
   clicks quiet and only rings for keyboard/AT navigation. Goes through the
   --focus alias (defined above, not the raw --v2-* token) to match every
   other colour this task touches -- see the --focus comment in :root. */
:is(a, button, [tabindex], input, select, textarea, summary):focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

/* Reduced motion -- first prefers-reduced-motion handling on this site.
   Blanket rule rather than hand-picking Task 3-5 selectors: git history
   shows Tasks 3 and 4 introduced zero new transition/animation rules (the
   hero's scan/pulse/rise/chip-fade motion is pre-existing v1 CSS the
   migration carried through untouched), so a scoped rule would cover
   nothing. This neutralises every animation and transition sitewide,
   including the hero's infinite scan/pulse loops -- the clearest
   WCAG 2.3.3 offenders on the page. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Atmospheric background tint */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(60rem 40rem at 88% -10%, color-mix(in oklab, var(--amber) 18%, transparent), transparent 60%),
    radial-gradient(50rem 36rem at 4% -8%,  color-mix(in oklab, var(--green) 14%, transparent), transparent 60%),
    radial-gradient(60rem 50rem at 50% 110%, color-mix(in oklab, var(--violet) 10%, transparent), transparent 60%);
}

.container {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}

/* ============================================================ Type */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 8px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--surface-warm);
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--v2-brand);
}
.eyebrow .dot {
  width: 8px; height: 8px;
  border-radius: 99px;
  background: var(--green);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--green) 22%, transparent);
}

.h-display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 0.94;
}
.h-display em {
  font-style: italic;
  color: var(--green-deep);
}
body[data-theme="dark"] .h-display em { color: var(--green); }

.h-sans {
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

.lead {
  font-size: clamp(17px, 1.25vw, 19px);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 60ch;
  text-wrap: pretty;
}

.mono { font-family: var(--font-mono); }

/* ============================================================ Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: color-mix(in oklab, var(--paper) 80%, transparent);
  border-bottom: 1px solid color-mix(in oklab, var(--rule) 70%, transparent);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  height: 68px;
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
}
.brand-mark {
  width: 32px; height: 32px;
  border-radius: 9px;
  display: grid; place-items: center;
  background: linear-gradient(140deg, var(--green) 0%, #5fd07f 55%, var(--amber) 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.4), 0 6px 14px -6px color-mix(in oklab, var(--green) 60%, transparent);
  position: relative;
  overflow: hidden;
}
.brand-mark::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(60% 90% at 30% 25%, rgba(255,255,255,.55), transparent 60%);
}
.brand img {
  width: 100%; height: 100%;
  position: relative;
  z-index: 1;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  color: var(--ink-2);
  font-weight: 500;
}
.nav-links a { transition: color .15s ease; }
.nav-links a:hover { color: var(--green-deep); }
.nav-actions { display: flex; align-items: center; gap: 10px; }

@media (max-width: 880px) {
  .nav-links { display: none; }
}

/* ============================================================ Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  transition: transform .12s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  /* --v2-action, not --v2-ink -- the design system's dedicated CTA-fill
     token, distinct from body-text ink even though the two hexes are
     close (#17191c vs #1c1f23). */
  background: var(--v2-action);
  color: var(--v2-action-ink);
  box-shadow: 0 1px 0 rgba(255,255,255,.06) inset, 0 12px 28px -12px color-mix(in oklab, var(--v2-action) 70%, transparent);
}
.btn-primary:hover { background: color-mix(in oklab, var(--v2-action) 92%, var(--green) 8%); }

.btn-green {
  background: var(--green);
  color: white;
  box-shadow: 0 1px 0 rgba(255,255,255,.18) inset,
              0 12px 28px -10px color-mix(in oklab, var(--green) 70%, transparent);
}
.btn-green:hover { background: var(--green-deep); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule);
}
.btn-ghost:hover { background: var(--surface-warm); border-color: color-mix(in oklab, var(--ink) 25%, var(--rule)); }

.btn-lg { height: 52px; padding: 0 22px; font-size: 15px; }

.btn .ic { width: 16px; height: 16px; }

/* App store pill */
.appstore {
  display: inline-flex; align-items: center; gap: 10px;
  height: 52px; padding: 0 18px 0 14px;
  border-radius: 14px;
  background: var(--v2-action);
  color: var(--v2-action-ink);
  font-weight: 500;
}
.appstore .small { font-size: 10px; opacity: .75; letter-spacing: .04em; text-transform: uppercase; line-height: 1; }
.appstore .big   { font-size: 17px; letter-spacing: -0.01em; line-height: 1.1; }
.appstore svg { width: 24px; height: 24px; }

/* ============================================================ Hero */
.hero {
  position: relative;
  padding: clamp(56px, 8vw, 110px) 0 clamp(56px, 7vw, 96px);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
}
.hero h1 {
  margin: 18px 0 0;
  font-size: clamp(48px, 7.4vw, 104px);
  font-weight: 600;
  letter-spacing: -0.03em;
}
.hero h1 .line { display: block; }
.hero p.lead {
  margin-top: 26px;
}
.hero-cta {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin-top: 34px;
}
.hero-meta {
  margin-top: 22px;
  display: flex; gap: 18px; align-items: center;
  color: var(--muted);
  font-size: 13px;
}
.hero-meta .stars { color: var(--amber); letter-spacing: 2px; font-size: 14px; }
.hero-disclaimer {
  margin-top: 28px;
  font-size: 12px;
  color: var(--muted);
  max-width: 50ch;
  line-height: 1.55;
}

/* AI extraction demo (right side of hero) */
.demo {
  position: relative;
  aspect-ratio: 5 / 6;
  min-height: 520px;
  /* Owner request 2026-08-30: no panel behind the phone -- it floats on the
     page ground. The sky gradient, the 24px radius and the float shadow were
     removed together on purpose: a radius and a shadow on a transparent box
     are inert, so leaving them would only mislead the next reader. The
     layout properties above stay -- they reserve the hero's right column and
     are what the .orch-chip callouts are positioned against. */
}

.demo-frame {
  position: absolute; inset: 0;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(120% 80% at 20% 0%, color-mix(in oklab, var(--violet-soft) 60%, transparent), transparent 60%),
    linear-gradient(180deg, var(--surface-warm), var(--paper-2));
  border: 1px solid var(--rule);
  overflow: hidden;
  box-shadow: var(--shadow-pop);
}

.demo-frame::before {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, transparent 70%, color-mix(in oklab, var(--ink) 4%, transparent) 100%),
    repeating-linear-gradient(90deg, transparent 0 119px, color-mix(in oklab, var(--ink) 4%, transparent) 119px 120px);
  mix-blend-mode: multiply;
  opacity: .35;
  pointer-events: none;
}

.demo-bottle {
  position: absolute;
  left: 6%; top: 8%;
  width: 44%;
  aspect-ratio: 3 / 4;
  border-radius: 22px;
  background:
    radial-gradient(120% 60% at 30% 20%, rgba(255,255,255,.55), transparent 55%),
    linear-gradient(160deg, #1e7a3b 0%, var(--green) 50%, #84cc16 100%);
  box-shadow: 0 30px 60px -20px rgba(13,40,16,.45), inset 0 0 0 1px rgba(255,255,255,.18);
  display: flex;
  flex-direction: column;
  padding: 14% 12% 14% 14%;
  color: white;
  overflow: hidden;
}
.demo-bottle::after {
  content: "";
  position: absolute; left: 18%; right: 18%; top: 0;
  height: 14%;
  background: #0b3d1c;
  border-radius: 0 0 16px 16px;
  box-shadow: inset 0 -3px 0 rgba(255,255,255,.1);
}
.demo-bottle .b-eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: .82;
  margin-top: 6%;
}
.demo-bottle .b-name {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.6vw, 32px);
  line-height: 1.02;
  margin-top: 6px;
  letter-spacing: -.01em;
}
.demo-bottle .b-sub {
  font-size: 11px;
  opacity: .85;
  margin-top: 10px;
  letter-spacing: .02em;
}
.demo-bottle .b-strength {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  opacity: .85;
}
.demo-bottle .b-pill {
  position: absolute;
  right: -14%;
  bottom: -8%;
  width: 60%;
  aspect-ratio: 2.2 / 1;
  border-radius: 999px;
  background: linear-gradient(90deg, #d0f0d9 0% 50%, var(--amber) 50% 100%);
  box-shadow: 0 18px 40px -12px rgba(0,0,0,.35), inset 0 0 0 1px rgba(255,255,255,.6);
  transform: rotate(-22deg);
}

/* Scan reticle overlay on bottle */
.demo-reticle {
  position: absolute;
  left: 6%; top: 8%;
  width: 44%;
  aspect-ratio: 3 / 4;
  pointer-events: none;
  border-radius: 22px;
}
.demo-reticle::before, .demo-reticle::after {
  content: "";
  position: absolute;
  width: 26px; height: 26px;
  border: 2px solid var(--green);
}
.demo-reticle::before { top: -6px; left: -6px; border-right: none; border-bottom: none; border-radius: 8px 0 0 0; }
.demo-reticle::after  { bottom: -6px; right: -6px; border-left: none; border-top: none;  border-radius: 0 0 8px 0; }

.demo-scanline {
  position: absolute;
  left: 4%; right: 56%;
  top: 8%;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--green) 50%, transparent);
  box-shadow: 0 0 18px 4px color-mix(in oklab, var(--green) 60%, transparent);
  animation: scan 3.8s ease-in-out infinite;
}
@keyframes scan {
  0%, 12%   { top: 9%;  opacity: 0; }
  20%       { opacity: 1; }
  62%       { top: 56%; opacity: 1; }
  78%, 100% { top: 56%; opacity: 0; }
}

/* Extracted data card */
.extract {
  position: absolute;
  right: 5%; bottom: 6%;
  width: 60%;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 22px;
  padding: 18px;
  box-shadow: 0 30px 60px -20px rgba(13,14,19,.25);
  display: grid;
  gap: 12px;
}
.extract-head {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.extract-head .live {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--green-deep);
}
.extract-head .live::before {
  content: ""; width: 6px; height: 6px;
  border-radius: 99px; background: var(--green);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--green) 18%, transparent);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: .6; }
  50%      { opacity: 1; }
}

.extract-row {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 8px 0;
  border-top: 1px dashed var(--rule);
  font-size: 13px;
  opacity: 0;
  animation: rise .5s ease-out forwards;
}
.extract-row:nth-child(2) { animation-delay: .25s; }
.extract-row:nth-child(3) { animation-delay: .45s; }
.extract-row:nth-child(4) { animation-delay: .65s; }
.extract-row:nth-child(5) { animation-delay: .85s; }
.extract-row:nth-child(6) { animation-delay: 1.05s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.extract-row .k { color: var(--muted); font-family: var(--font-mono); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; }
.extract-row .v { color: var(--ink); font-weight: 500; }
.extract-row .v small { color: var(--muted); font-weight: 400; }
.extract-row .conf {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--green-deep);
  padding: 3px 7px;
  border-radius: 99px;
  background: var(--green-soft);
  letter-spacing: .04em;
}
.extract-row .conf.warn { color: var(--amber); background: var(--amber-soft); }

.extract-footer {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: .05em;
  text-transform: uppercase;
}
.extract-footer .sources { display: inline-flex; gap: 4px; align-items: center; }
.extract-footer .sources b { color: var(--violet); font-weight: 600; }

/* Floating chips */
.chip {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 99px;
  padding: 8px 14px 8px 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
  box-shadow: 0 16px 32px -16px rgba(13,14,19,.3);
}
.chip .ic {
  width: 18px; height: 18px;
  border-radius: 99px;
  display: grid; place-items: center;
  font-size: 11px;
  color: white;
}
.chip-1 { top: 4%; right: 4%; }
.chip-1 .ic { background: var(--violet); }
.chip-2 { top: 32%; right: -2%; }
.chip-2 .ic { background: var(--amber); }
.chip-3 { top: 56%; left: -2%; }
.chip-3 .ic { background: var(--green); }

/* ============================================================ Trust strip */
.trust {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 26px 0;
  background: color-mix(in oklab, var(--paper-2) 60%, transparent);
}
.trust-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto auto;
  gap: 28px;
  align-items: center;
}
.trust-row .label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.trust-row .ruler { height: 1px; background: var(--rule); }
.trust-row .logo {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--ink-2);
  letter-spacing: -.01em;
}
.trust-row .logo small {
  font-family: var(--font-sans);
  font-size: 11px;
  margin-left: 6px;
  color: var(--muted);
  letter-spacing: .02em;
}
@media (max-width: 780px) {
  .trust-row { grid-template-columns: 1fr 1fr; gap: 14px 28px; }
  .trust-row .ruler { display: none; }
}

/* ============================================================ Section base */
.section {
  padding: clamp(72px, 10vw, 132px) 0;
  position: relative;
}
.section + .section { border-top: 1px solid var(--rule); }

.section-header {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 0.7fr);
  gap: 48px;
  align-items: end;
  margin-bottom: 56px;
}
.section-header h2 {
  margin: 14px 0 0;
  font-size: clamp(38px, 5vw, 64px);
}
.section-header p {
  margin: 0;
  color: var(--ink-2);
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.6;
  max-width: 46ch;
}
@media (max-width: 780px) {
  .section-header { grid-template-columns: 1fr; gap: 14px; }
}

/* ============================================================ How it works */
.how {
  background:
    radial-gradient(60rem 30rem at 50% -20%, color-mix(in oklab, var(--green) 6%, transparent), transparent 60%);
}
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.step {
  position: relative;
  padding: 28px 22px 24px;
  border: 1px solid var(--rule);
  /* Card, not scene: --v2-radius-card, not the 24px scene radius the
     product-scene panels (.demo, .day-strip) use. */
  border-radius: var(--radius);
  /* Pale per-feature tint per the FeatureBento pattern -- was flat
     --surface-warm (white), indistinguishable from the section ground. */
  background: var(--paper-2);
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 280px;
  overflow: hidden;
}
.step-num {
  position: absolute;
  top: 18px; right: 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: .12em;
}
.step-ic {
  width: 44px; height: 44px;
  border-radius: 13px;
  background: var(--green-soft);
  display: grid; place-items: center;
  color: var(--green-deep);
}
.step h3 {
  margin: 6px 0 0;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -.01em;
}
.step p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
}
.step-art {
  margin-top: auto;
  height: 70px;
  border-radius: 14px;
  /* --surface (white), not --paper-2 -- --paper-2 IS --v2-surface-soft,
     the same tint .step now uses, so the two would blend flush. White
     pops the inner region against the tinted card, echoing a phone
     screen set into a coloured bezel. */
  background: var(--surface);
  border: 1px solid var(--rule-2);
  display: grid;
  place-items: center;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  overflow: hidden;
}

/* Selective lift -- only the featured/emphasised card gets shadow-rest,
   per "shadow-rest only where a card must lift." */
.step.featured { box-shadow: var(--shadow-card); }
.step.featured .step-ic { background: color-mix(in oklab, var(--violet-soft) 80%, transparent); color: var(--violet-ink); }

@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ============================================================ AI capabilities */
.ai {
  background:
    radial-gradient(40rem 30rem at 100% 30%, color-mix(in oklab, var(--violet) 8%, transparent), transparent 60%),
    radial-gradient(40rem 30rem at 0% 70%, color-mix(in oklab, var(--green) 6%, transparent), transparent 60%);
}
.ai-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 24px;
}
.ai-card {
  position: relative;
  /* Card, not scene -- see .step for the same rationale. */
  border-radius: var(--radius);
  border: 1px solid var(--rule);
  background: var(--paper-2);
  padding: 32px 32px 26px;
  overflow: hidden;
  min-height: 380px;
  display: flex;
  flex-direction: column;
}
/* Lift only the tall anchor card -- shadow-rest, selectively. */
.ai-card.lg { grid-row: span 2; min-height: 0; box-shadow: var(--shadow-card); }
.ai-card .kicker { margin-bottom: 12px; }
.ai-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 40px);
  letter-spacing: -.01em;
  line-height: 1.02;
  font-weight: 400;
}
.ai-card p {
  margin: 16px 0 0;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.55;
  max-width: 44ch;
}
.ai-art {
  margin-top: 28px;
  flex: 1;
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}

/* Extraction art (re-uses demo aesthetic but smaller) */
.ai-extract {
  background:
    linear-gradient(180deg, var(--paper-3), var(--paper-2));
  border: 1px solid var(--rule);
  padding: 18px;
  display: grid;
  gap: 8px;
  align-content: start;
}
.field {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--rule-2);
  border-radius: 12px;
}
.field .k { color: var(--muted); font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.field .v { color: var(--ink); font-weight: 500; }
.field .conf {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 3px 6px; border-radius: 99px;
  background: var(--green-soft); color: var(--green-deep);
}

/* Warning art */
.ai-warning {
  background:
    linear-gradient(160deg, color-mix(in oklab, var(--rose-soft) 50%, var(--surface-warm)), var(--surface-warm));
  border: 1px solid var(--rule);
  padding: 22px;
  display: grid;
  gap: 12px;
  align-content: start;
}
.warn-row {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  align-items: start;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--rule-2);
  background: var(--surface);
  font-size: 13.5px;
}
.warn-row .badge {
  width: 28px; height: 28px;
  border-radius: 8px;
  display: grid; place-items: center;
  background: var(--rose-soft);
  color: var(--rose);
  font-weight: 700;
}
.warn-row .badge.amber { background: var(--amber-soft); color: var(--amber); }
.warn-row .badge.green { background: var(--green-soft); color: var(--green-deep); }
.warn-row .h { font-weight: 600; color: var(--ink); }
.warn-row p { margin: 4px 0 0; font-size: 12.5px; color: var(--muted); line-height: 1.5; }

/* Sources art */
.ai-sources {
  background:
    linear-gradient(180deg, color-mix(in oklab, var(--violet-soft) 40%, var(--surface-warm)), var(--surface-warm));
  border: 1px solid var(--rule);
  padding: 22px;
  display: grid;
  gap: 10px;
  align-content: start;
}
.src {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--rule-2);
  border-radius: 12px;
  font-size: 12.5px;
}
.src .favicon {
  width: 22px; height: 22px;
  border-radius: 6px;
  background: var(--paper-2);
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-size: 13px; color: var(--ink-2);
}
.src .title { color: var(--ink); font-weight: 500; }
.src .meta { color: var(--muted); font-family: var(--font-mono); font-size: 10px; letter-spacing: .04em; }

@media (max-width: 980px) {
  .ai-grid { grid-template-columns: 1fr; }
  .ai-card.lg { grid-row: auto; }
}

/* ============================================================ Cabinet showcase */
.cabinet {
  background: var(--paper-2);
}
.cabinet .section-header h2 { color: var(--ink); }

.showcase {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 48px;
  align-items: center;
}
.showcase-copy { display: flex; flex-direction: column; gap: 22px; }
.showcase-copy .feature {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--rule);
}
.showcase-copy .feature:last-child { border-bottom: 1px solid var(--rule); }
.feature .ic {
  width: 36px; height: 36px;
  border-radius: 10px;
  /* Pale tint, matching the icon-swatch treatment used across the other
     SplitFeature sections (.orch-features .ic, .safety-card .ic). */
  background: var(--paper-2);
  border: 1px solid var(--rule-2);
  display: grid; place-items: center;
  color: var(--green-deep);
}
.feature h3 { margin: 0; font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.feature p  { margin: 6px 0 0; color: var(--muted); font-size: 14px; line-height: 1.5; }

.phones {
  position: relative;
  min-height: 580px;
}
.phone {
  position: absolute;
  width: 280px;
  border-radius: 44px;
  background: var(--v2-action);
  padding: 9px;
  box-shadow: 0 40px 80px -30px rgba(13,14,19,.45), 0 4px 0 rgba(255,255,255,.06) inset;
}
.phone .screen {
  border-radius: 36px;
  overflow: hidden;
  background: var(--paper);
}
.phone img { width: 100%; height: auto; display: block; }
.phone-a { left: 0; top: 30px; transform: rotate(-4deg); z-index: 1; }
.phone-b { right: 0; top: 0;  transform: rotate(3deg); z-index: 2; }
.phone-c { left: 50%; top: 90px; transform: translateX(-50%) rotate(0deg); z-index: 3; }

@media (max-width: 980px) {
  .showcase { grid-template-columns: 1fr; }
  .phones { min-height: 540px; }
  .phone-a { left: 0; }
  .phone-b { right: 0; }
}
@media (max-width: 560px) {
  .phone { width: 220px; padding: 7px; border-radius: 36px; }
  .phone .screen { border-radius: 28px; }
  .phone-a { left: -10px; }
  .phone-b { right: -10px; }
  .phones { min-height: 470px; }
}

/* ============================================================ Analytics */
.analytics-block {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}
.metric {
  border: 1px solid var(--rule);
  background: var(--surface-warm);
  padding: 18px;
  border-radius: 18px;
}
.metric .big {
  font-family: var(--font-display);
  font-size: clamp(34px, 4vw, 48px);
  letter-spacing: -.02em;
  line-height: 1;
}
.metric .lbl {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  font-family: var(--font-mono);
  letter-spacing: .06em;
  text-transform: uppercase;
}

.chart {
  border: 1px solid var(--rule);
  background: var(--surface-warm);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
  overflow: hidden;
}
.chart h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  display: flex; justify-content: space-between; align-items: center;
}
.chart .range {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: .04em;
}
.chart .stat {
  margin-top: 6px;
  display: flex; align-items: baseline; gap: 8px;
}
.chart .stat .num {
  font-family: var(--font-display);
  font-size: 44px;
  letter-spacing: -.02em;
  line-height: 1;
}
.chart .stat .delta {
  color: var(--green-deep);
  font-size: 12px;
  font-family: var(--font-mono);
  background: var(--green-soft);
  padding: 3px 8px;
  border-radius: 99px;
}
.chart svg {
  margin-top: 12px;
  width: 100%;
  height: 160px;
  display: block;
}

@media (max-width: 880px) {
  .analytics-block { grid-template-columns: 1fr; }
}

/* ============================================================ Daily orchestration */
.orchestration {
  background:
    radial-gradient(50rem 30rem at 12% 30%, color-mix(in oklab, var(--green) 8%, transparent), transparent 60%),
    radial-gradient(50rem 30rem at 95% 80%, color-mix(in oklab, var(--amber) 14%, transparent), transparent 60%);
}
.orch-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
/* index.html now puts .orch-copy before .orch-visual in DOM/reading order
   (text before media), so mobile stacks copy first when the grid collapses
   to one column below. The `order: 1`/`order: 2` on .orch-visual/.orch-copy
   below restore the desktop visual arrangement (phone scene on the left)
   without touching source order; the 980px query further down resets them
   for the single-column stack. */

.orch-visual {
  position: relative;
  display: grid;
  gap: 24px;
  order: 1;
}
.orch-stage {
  position: relative;
  min-height: 620px;
  display: grid;
  place-items: center;
}
.orch-phone {
  width: 300px !important;
  max-width: 300px;
  z-index: 2;
}

/* Annotation chips around the phone */
.orch-chip {
  position: absolute;
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 10px;
  align-items: center;
  padding: 12px 16px 12px 12px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 16px;
  box-shadow: 0 24px 48px -20px rgba(13,14,19,.28);
  font-size: 13px;
  z-index: 3;
  max-width: 240px;
}
.orch-chip .ic {
  width: 32px; height: 32px;
  border-radius: 10px;
  display: grid; place-items: center;
  font-family: var(--font-mono);
  font-size: 14px;
}
.orch-chip b {
  display: block;
  color: var(--ink);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: -.005em;
}
.orch-chip span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  margin-top: 2px;
}
.chip-top {
  top: 6%;
  right: -4%;
}
.chip-top .ic { background: var(--violet-soft); color: var(--violet-ink); }
.chip-mid {
  top: 46%;
  left: -8%;
}
.chip-mid .ic { background: var(--amber-soft); color: var(--amber); }
.chip-bot {
  bottom: 8%;
  right: -2%;
}
.chip-bot .ic { background: var(--green-soft); color: var(--green-deep); }

/* Day timeline strip */
.day-strip {
  margin-top: 12px;
  padding: 22px 18px 26px;
  background: var(--surface-warm);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
}
.day-track {
  position: relative;
  height: 86px;
}
.day-track::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 42px;
  height: 2px;
  background:
    linear-gradient(90deg,
      color-mix(in oklab, var(--green) 30%, transparent) 0%,
      color-mix(in oklab, var(--amber) 35%, transparent) 50%,
      color-mix(in oklab, var(--violet) 30%, transparent) 100%);
  border-radius: 2px;
}
.day-tick {
  position: absolute;
  left: var(--x);
  top: 0;
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  gap: 2px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.day-tick i {
  font-style: normal;
  letter-spacing: .12em;
}
.day-tick b {
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}
.day-tick::after {
  content: "";
  position: absolute;
  bottom: -18px;
  width: 1px;
  height: 8px;
  background: var(--rule);
}
.day-dot {
  position: absolute;
  left: var(--x);
  top: 58px;
  transform: translateX(-50%);
  width: 26px; height: 26px;
  border-radius: 99px;
  display: grid; place-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: white;
  box-shadow: 0 4px 12px -4px rgba(13,14,19,.25);
}
.day-dot-1 { background: var(--green); }
.day-dot-2 { background: color-mix(in oklab, var(--green) 60%, var(--amber)); }
.day-dot-3 { background: var(--amber); }
.day-dot-4 { background: color-mix(in oklab, var(--amber) 50%, var(--violet)); }
.day-dot-5 { background: var(--violet); }

/* Copy column */
.orch-copy {
  display: grid;
  gap: 24px;
  align-content: start;
  order: 2;
}
.orch-copy .kicker { margin-bottom: 0; }
.orch-copy h2 {
  margin: 4px 0 0;
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1;
}
.orch-copy .lead {
  margin: 0;
  max-width: 50ch;
}
.orch-copy .lead strong {
  color: var(--ink);
  font-weight: 600;
}

.orch-features {
  list-style: none;
  padding: 0;
  margin: 4px 0 0;
  display: grid;
  gap: 0;
}
.orch-features li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 18px;
  padding: 20px 0;
  border-top: 1px solid var(--rule);
}
.orch-features li:last-child {
  border-bottom: 1px solid var(--rule);
}
.orch-features .ic {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--paper-2);
  border: 1px solid var(--rule-2);
  display: grid; place-items: center;
  color: var(--green-deep);
}
.orch-features h3 {
  margin: 4px 0 0;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -.005em;
}
.orch-features p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}
.orch-features em { font-style: italic; color: var(--ink-2); }

.orch-callout {
  margin-top: 8px;
  padding: 22px 26px;
  border-radius: var(--radius);
  background: var(--green-soft);
  border: 1px solid color-mix(in oklab, var(--green) 25%, var(--rule));
  display: grid;
  gap: 4px;
}
.orch-callout p {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.1;
  letter-spacing: -.01em;
  color: var(--green-ink);
}
.orch-callout em { color: var(--green-deep); font-style: italic; }

@media (max-width: 980px) {
  .orch-grid { grid-template-columns: 1fr; }
  /* Single column: drop the desktop order override so the section stacks
     in DOM order -- copy (text) first, then the phone scene. */
  .orch-copy   { order: 1; }
  .orch-visual { order: 2; }
  .orch-stage {
    min-height: 540px;
    max-width: 560px;
    margin: 0 auto;
  }
  .chip-top  { right: -8px; }
  .chip-mid  { left: -8px; }
  .chip-bot  { right: -8px; }
}
@media (max-width: 640px) {
  .orch-stage { min-height: 600px; }
  .orch-phone { width: 260px !important; }
  .orch-chip { max-width: 200px; padding: 10px 12px 10px 10px; }
  .orch-chip b { font-size: 12px; }
  .orch-chip span { font-size: 11px; }
  .chip-top { right: -4px; top: 2%; }
  .chip-mid { left: -4px; }
  .chip-bot { right: -4px; bottom: 4%; }
  .day-track { height: 96px; }
  .day-tick { font-size: 9px; }
  .day-tick b { font-size: 10px; }
}

/* ============================================================ Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}
.plan {
  border: 1px solid var(--rule);
  background: var(--surface-warm);
  border-radius: var(--radius-lg);
  padding: 32px 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  overflow: hidden;
}
.plan.premium {
  background:
    radial-gradient(80% 60% at 0% 0%, color-mix(in oklab, var(--green) 9%, transparent), transparent 60%),
    var(--surface);
  border-color: color-mix(in oklab, var(--green) 30%, var(--rule));
}
.plan h3 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 38px);
  margin: 0;
  letter-spacing: -.01em;
  font-weight: 400;
}
.plan .price {
  display: flex; align-items: baseline; gap: 8px;
}
.plan .price .num {
  font-family: var(--font-display);
  font-size: clamp(48px, 5vw, 64px);
  line-height: 1;
  letter-spacing: -.02em;
}
.plan .price .unit { color: var(--muted); font-size: 14px; }
.plan ul {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 10px;
}
.plan li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
  font-size: 14.5px;
  color: var(--ink-2);
}
.plan li::before {
  content: "";
  width: 16px; height: 16px;
  border-radius: 99px;
  background: var(--green-soft);
  margin-top: 4px;
  position: relative;
}
.plan li.check::before {
  background: var(--green);
  background-image: linear-gradient(135deg, transparent 40%, white 40% 60%, transparent 60%);
}
.plan li.dim { color: var(--muted); }
.plan li.dim::before { background: var(--rule); }
.plan-cta { margin-top: auto; }
.plan-note {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}
.plan .badge {
  position: absolute;
  top: 16px; right: 16px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--green-deep);
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 5px 9px;
  border-radius: 99px;
  background: var(--green-soft);
}

/* Mockup placeholder (hero) ----------------------------- */
.demo-frame.placeholder {
  display: grid;
  place-items: center;
  background:
    radial-gradient(120% 80% at 50% 0%, color-mix(in oklab, var(--green-soft) 70%, transparent), transparent 60%),
    linear-gradient(180deg, var(--surface-warm), var(--paper-2));
  border: 1px dashed color-mix(in oklab, var(--ink) 18%, var(--rule));
}
.demo-frame.placeholder::before {
  content: "";
  position: absolute; inset: 18px;
  border-radius: calc(var(--radius-xl) - 12px);
  border: 1px dashed color-mix(in oklab, var(--ink) 14%, var(--rule));
  background:
    repeating-linear-gradient(45deg,
      transparent 0 22px,
      color-mix(in oklab, var(--ink) 3%, transparent) 22px 23px);
  pointer-events: none;
  opacity: .55;
  mix-blend-mode: multiply;
}
.placeholder-inner {
  position: relative;
  display: grid;
  gap: 10px;
  justify-items: center;
  text-align: center;
  padding: 24px;
}
.placeholder-mono {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--rule);
}
.placeholder-hint {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.4vw, 28px);
  color: color-mix(in oklab, var(--ink) 55%, var(--muted));
  letter-spacing: -.01em;
  font-style: italic;
}

/* Single-card pricing ------------------------------------ */
.pricing-solo {
  max-width: 880px;
  margin: 0 auto;
}
.plan.plan-solo {
  padding: 38px clamp(28px, 4vw, 48px);
  gap: 28px;
  background:
    radial-gradient(60% 50% at 100% 0%, color-mix(in oklab, var(--green) 8%, transparent), transparent 60%),
    var(--surface-warm);
}
.plan-solo .plan-head h3 {
  font-family: var(--font-display);
  font-size: clamp(32px, 3.4vw, 44px);
  margin: 0;
  letter-spacing: -.01em;
  font-weight: 400;
}
.plan-solo .plan-sub {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 15px;
  max-width: 46ch;
}
.plan-list-2col {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 28px;
}
.plan-list-2col li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
  font-size: 15px;
  color: var(--ink-2);
}
.plan-list-2col li::before {
  content: "";
  width: 18px; height: 18px;
  border-radius: 99px;
  background: var(--green);
  background-image: linear-gradient(135deg, transparent 38%, white 38% 62%, transparent 62%);
  margin-top: 3px;
}
.plan-cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.plan-unlock {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--ink);
  color: color-mix(in oklab, var(--paper) 92%, white);
  position: relative;
  overflow: hidden;
}
.plan-unlock::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(70% 80% at 0% 50%, color-mix(in oklab, var(--green) 24%, transparent), transparent 60%);
  pointer-events: none;
}
.plan-unlock > div { position: relative; }
.plan-unlock .kicker {
  color: color-mix(in oklab, var(--green) 35%, white);
}
.plan-unlock p {
  margin: 6px 0 0;
  color: color-mix(in oklab, var(--paper) 70%, var(--muted));
  font-size: 14px;
  line-height: 1.55;
  max-width: 44ch;
}
.plan-unlock-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
}
.unlock-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  color: var(--paper);
}
.unlock-price strong {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 400;
  letter-spacing: -.02em;
  line-height: 1;
}
.unlock-price span {
  font-size: 13px;
  color: color-mix(in oklab, var(--paper) 70%, var(--muted));
}
@media (max-width: 640px) {
  .plan-list-2col { grid-template-columns: 1fr; }
  .plan-unlock { grid-template-columns: 1fr; gap: 16px; }
  .plan-unlock-cta { justify-content: space-between; }
}

/* ============================================================ Safety */
.safety {
  background:
    radial-gradient(40rem 24rem at 50% -10%, color-mix(in oklab, var(--amber) 14%, transparent), transparent 60%);
}
.safety-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 64px;
  align-items: center;
}
.safety-cards {
  display: grid;
  gap: 14px;
}
.safety-card {
  padding: 24px 26px;
  border: 1px solid var(--rule);
  /* Card, not scene -- see .step for the same rationale. */
  border-radius: var(--radius);
  background: var(--paper-2);
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 18px;
  align-items: start;
}
.safety-card .ic {
  width: 44px; height: 44px;
  border-radius: 12px;
  /* --surface (white), not --paper-2 -- --paper-2 IS --v2-surface-soft,
     the tint .safety-card now uses; white keeps the icon swatch visible
     against the card instead of the two flattening together. */
  background: var(--surface);
  display: grid; place-items: center;
  color: var(--ink-2);
}
.safety-card h3 { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.safety-card p  { margin: 6px 0 0; color: var(--muted); font-size: 14px; line-height: 1.55; }

.safety-visual {
  display: grid;
  gap: 24px;
  justify-items: center;
}
.phone.phone-static {
  position: static;
  transform: none;
  width: 100%;
  max-width: 320px;
  box-shadow:
    0 60px 100px -40px rgba(13,14,19,.35),
    0 18px 36px -16px rgba(13,14,19,.18),
    0 4px 0 rgba(255,255,255,.04) inset;
}
.safety-caption {
  text-align: center;
  max-width: 30ch;
  display: grid;
  gap: 8px;
  justify-items: center;
}
.safety-caption p {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.55;
}

@media (max-width: 980px) {
  .safety-layout { grid-template-columns: 1fr; gap: 40px; }
  /* Was `order: -1`, forcing the phone image above the safety-cards text
     on mobile -- media before text, the opposite of the reflow rule this
     task enforces. DOM order is already cards-then-visual; let it stack
     that way instead of overriding it. */
}

/* ============================================================ FAQ */
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.65fr) minmax(0, 1fr);
  gap: 56px;
}
.faq-grid .faq-aside h2 { margin: 14px 0 0; }
.faq-list { display: grid; gap: 0; }
details {
  border-top: 1px solid var(--rule);
  padding: 22px 4px;
}
details:last-of-type { border-bottom: 1px solid var(--rule); }
details summary {
  list-style: none;
  cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  gap: 24px;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -.01em;
}
details summary::-webkit-details-marker { display: none; }
details summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 22px;
  color: var(--muted);
  transition: transform .2s ease;
}
details[open] summary::after { content: "–"; }
details p {
  margin: 14px 0 0;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.65;
  max-width: 60ch;
}

@media (max-width: 880px) {
  .faq-grid { grid-template-columns: 1fr; gap: 24px; }
}

/* ============================================================ Closing CTA */
.closing {
  text-align: center;
  padding: clamp(80px, 12vw, 160px) 0;
  position: relative;
}
.closing::before {
  content: "";
  position: absolute; inset: 8% 6%;
  border-radius: 60px;
  background:
    radial-gradient(60% 60% at 50% 50%, color-mix(in oklab, var(--green) 18%, transparent), transparent 80%);
  filter: blur(40px);
  z-index: -1;
}
.closing h2 {
  font-size: clamp(46px, 6.5vw, 92px);
  margin: 0;
}
.closing p { margin: 22px auto 0; max-width: 56ch; }
.closing .hero-cta { justify-content: center; margin-top: 36px; }

/* ============================================================ Footer */
footer {
  border-top: 1px solid var(--rule);
  padding: 40px 0 32px;
  background: var(--paper-2);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}
.footer-grid h5 {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-grid a { color: var(--ink-2); font-size: 14px; }
.footer-grid a:hover { color: var(--green-deep); }
.footer-tag { color: var(--muted); font-size: 13px; line-height: 1.55; margin-top: 14px; max-width: 36ch; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  gap: 20px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  font-size: 12px;
  color: var(--muted);
}
.footer-bottom .legal-disclaimer { max-width: 60ch; }

@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ============================================================ Responsive hero */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .demo { min-height: 460px; max-width: 520px; margin: 0 auto; width: 100%; }
}
@media (max-width: 560px) {
  .demo { min-height: 420px; }
  .extract { width: 70%; }
  .demo-bottle { width: 50%; }
  .demo-reticle { width: 50%; }
}

/* Accent overrides — tweakable */
body[data-accent="violet"] {
  --green: #6d4cf0;
  --green-deep: #5638d2;
  --green-soft: #ece5ff;
  --green-ink: #2b1879;
}
body[data-accent="indigo"] {
  --green: #2563eb;
  --green-deep: #1d4ed8;
  --green-soft: #dbeafe;
  --green-ink: #0c2d6b;
}
body[data-accent="forest"] {
  --green: #0f7a37;
  --green-deep: #08491f;
  --green-soft: #d2ead7;
  --green-ink: #06301a;
}

/* ============================================================ Legal pages
   Layouts and text styles for /privacy, /terms, /help, /delete-account.
   These rules were lost during the landing-redesign CSS swap (design pkg's
   styles.css didn't include legal styles); rebuilt here matching the
   landing's smm-v2 tone (all-sans Inter, weight 600 max on headings). */
.page-hero {
  padding: clamp(64px, 8vw, 96px) 0 clamp(28px, 4vw, 40px);
}
.page-hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(48px, 6vw, 80px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.page-hero p {
  margin: clamp(20px, 2vw, 28px) 0 0;
  max-width: 64ch;
  color: var(--ink-2);
  font-size: clamp(16px, 1.2vw, 18px);
  font-weight: 400;
  line-height: 1.6;
}

.legal-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: clamp(40px, 6vw, 80px);
  padding-bottom: clamp(80px, 10vw, 128px);
}
.side-nav {
  position: sticky;
  top: 100px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.side-nav a {
  padding: 10px 0;
  color: var(--muted);
  border-top: 1px solid var(--rule-2);
  transition: color .15s ease;
}
.side-nav a:first-child { border-top: none; padding-top: 4px; }
.side-nav a:hover { color: var(--green-deep); }

.legal-content {
  min-width: 0;
  color: var(--ink-2);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
}
.legal-content section + section {
  margin-top: clamp(48px, 5vw, 72px);
  padding-top: clamp(24px, 3vw, 32px);
  border-top: 1px solid var(--rule);
}
.legal-content h2 {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.legal-content h3 {
  margin: 28px 0 10px;
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--ink);
}
.legal-content p {
  margin: 0 0 14px;
  font-weight: 400;
  color: var(--ink-2);
}
.legal-content a {
  color: var(--green-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal-content a:hover { color: var(--green); }
.legal-content ul {
  margin: 12px 0 14px;
  padding-left: 22px;
}
.legal-content li {
  margin: 6px 0;
  font-weight: 400;
  color: var(--ink-2);
}
.legal-content strong { font-weight: 600; color: var(--ink); }

.callout {
  margin: 20px 0;
  padding: 18px 22px;
  border: 1px solid color-mix(in oklab, var(--green) 22%, var(--rule));
  border-radius: 18px;
  background: color-mix(in oklab, var(--green-soft) 70%, transparent);
}
.callout p { margin: 0; }

.warning {
  border-color: color-mix(in oklab, var(--amber) 30%, var(--rule));
  background: color-mix(in oklab, var(--amber-soft) 80%, transparent);
}

@media (max-width: 880px) {
  .legal-layout { grid-template-columns: 1fr; }
  .side-nav {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px 18px;
  }
  .side-nav a { border-top: none; padding: 4px 0; }
}

/* Defensive fallback: constrain logo image when .brand-mark wrapper is missing.
   New brand markup wraps the img in <span class="brand-mark"> (32×32 container)
   so .brand img fills the wrapper. If a page forgets the wrapper (legacy markup),
   without this rule the img would balloon to fill the entire flex .brand
   element. This catches that. */
.brand > img {
  width: 32px;
  height: 32px;
  border-radius: 9px;
}

/* Legacy class kept for backward compat — no longer used in hero (v3 swaps to phone+chips) */
.demo-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-xl);
  border: 1px solid var(--rule);
  box-shadow: var(--shadow-pop);
  background: var(--surface-warm);
  display: block;
}

/* ============================================================ Hero stage v3
   Phone with live screen recording + 3 floating annotation chips.
   Echoes the Daily Orchestration section visually, but sits in the hero
   placeholder slot without a paper frame around it. */
.hero-stage {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 540px;
  display: grid;
  place-items: center;
}

.phone-hero {
  position: static;
  width: 100%;
  max-width: 300px;
  z-index: 2;
}
.phone-hero .screen {
  background: var(--v2-action);
}
.phone-hero video {
  width: 100%;
  height: auto;
  display: block;
  background: var(--paper);
}

/* Hero-specific chip positioning — slightly tighter than .orch-stage's defaults */
.hero-stage .chip-top  { top: 2%;  right: -4%; }
.hero-stage .chip-mid  { top: 44%; left: -8%; }
.hero-stage .chip-bot  { bottom: 4%; right: -2%; }

/* Chips are synced to video timeline via inline <script>.
   Default: hidden + slight Y offset. .is-visible class is toggled in JS. */
.hero-stage .orch-chip[data-from] {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 420ms ease, transform 420ms ease;
  pointer-events: none;
  will-change: opacity, transform;
}
.hero-stage .orch-chip[data-from].is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

@media (max-width: 640px) {
  .hero-stage { min-height: 600px; }
  .phone-hero { max-width: 260px; }
  .hero-stage .chip-top  { top: 0;    right: -2%; }
  .hero-stage .chip-mid  { top: 46%;  left: -2%; }
  .hero-stage .chip-bot  { bottom: 0; right: -2%; }
}

/* ============================================================ Search intent links */
.intent-links {
  background:
    radial-gradient(42rem 24rem at 8% 4%, color-mix(in oklab, var(--green) 8%, transparent), transparent 64%),
    var(--paper-2);
}
.intent-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}
.intent-card {
  display: flex;
  flex-direction: column;
  min-height: 220px;
  padding: 22px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--surface-warm);
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.intent-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in oklab, var(--green) 35%, var(--rule));
  box-shadow: var(--shadow-card);
}
.intent-card span {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--green-deep);
}
.intent-card h3 {
  margin: 28px 0 0;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 400;
  line-height: 1.05;
  color: var(--ink);
}
.intent-card p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}
@media (max-width: 1080px) {
  .intent-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .intent-grid { grid-template-columns: 1fr; }
}

/* ============================================================ SEO intent pages */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 22px;
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
}
.breadcrumbs a {
  color: var(--green-deep);
  text-decoration: none;
}
.breadcrumbs span {
  /* Decorative "/" separator only. Non-decorative text (the current-page
     crumb) is always the last span in the trail and is promoted to --muted
     below -- see that rule for why this one is exempt from the 4.5:1 floor. */
  color: var(--muted-2);
}
.breadcrumbs span:last-child {
  /* The final crumb is the current-page label (e.g. "Supplement scanner"),
     real non-decorative text and not aria-hidden, so it must clear 4.5:1 AA.
     --muted-2 (rgba(28,31,35,.45)) measures 2.77:1 on the #f3f6f8 seo-hero
     background -- fails. --muted (rgba(28,31,35,.68)) measures 5.50:1 there,
     matching the documented --paper contrast at the top of this file. */
  color: var(--muted);
}
.seo-hero {
  padding: clamp(64px, 8vw, 104px) 0 clamp(54px, 6vw, 88px);
}
.seo-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: clamp(36px, 6vw, 72px);
  align-items: center;
}
.seo-hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 72px;
  font-weight: 400;
  line-height: 1;
  color: var(--ink);
}
.seo-hero .lead {
  margin-top: 24px;
}
.seo-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}
.seo-note {
  margin-top: 18px;
  max-width: 58ch;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}
.seo-visual {
  display: grid;
  justify-items: center;
  gap: 18px;
}
.seo-visual .phone {
  position: static;
  width: 100%;
  max-width: 300px;
}
.seo-visual-caption {
  max-width: 32ch;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.seo-section {
  padding: clamp(58px, 8vw, 98px) 0;
  border-top: 1px solid var(--rule);
}
.seo-section.alt {
  background: var(--paper-2);
}
.seo-two-col {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.seo-section h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 46px;
  font-weight: 400;
  line-height: 1.05;
  color: var(--ink);
}
.seo-section h2 em {
  color: var(--green-deep);
}
.seo-section p {
  margin: 16px 0 0;
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.65;
}
.seo-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.seo-card {
  padding: 24px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--surface-warm);
}
.seo-card h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
  color: var(--ink);
}
.seo-card p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
}
.seo-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.seo-list li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 14px;
  align-items: start;
  padding: 18px 0;
  border-top: 1px solid var(--rule);
}
.seo-list li:first-child {
  border-top: 0;
  padding-top: 0;
}
.seo-list .num {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--green-soft);
  color: var(--green-deep);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
}
.seo-list h3 {
  margin: 2px 0 0;
  color: var(--ink);
  font-size: 17px;
}
.seo-list p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
}
.seo-cta-band {
  padding: clamp(58px, 8vw, 96px) 0;
  border-top: 1px solid var(--rule);
  text-align: center;
  background:
    radial-gradient(42rem 24rem at 50% 30%, color-mix(in oklab, var(--green) 15%, transparent), transparent 70%),
    var(--paper);
}
.seo-cta-band h2 {
  max-width: 780px;
  margin: 0 auto;
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 400;
  line-height: 1.03;
}
.seo-cta-band p {
  max-width: 58ch;
  margin: 18px auto 0;
  color: var(--ink-2);
}
.related-pages {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}
.related-pages a {
  padding: 9px 13px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--surface-warm);
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 500;
}
.related-pages a:hover {
  border-color: color-mix(in oklab, var(--green) 35%, var(--rule));
  color: var(--green-deep);
}
@media (max-width: 900px) {
  .seo-hero-grid,
  .seo-two-col {
    grid-template-columns: 1fr;
  }
  .seo-hero h1 {
    font-size: 54px;
  }
  .seo-section h2,
  .seo-cta-band h2 {
    font-size: 42px;
  }
}
@media (max-width: 560px) {
  .seo-card-grid {
    grid-template-columns: 1fr;
  }
  .seo-hero h1 {
    font-size: 44px;
  }
  .seo-section h2,
  .seo-cta-band h2 {
    font-size: 36px;
  }
}
