/* ═══════════════════════════════════════════════════════════════
   Brasa.ai — "Becoming"
   Native scroll. Sticky pinning. Transform + opacity only.
   ═══════════════════════════════════════════════════════════════ */

:root {
  --surface: #171412;
  --raised: #1E1915;
  --sheet: #201A16;
  --app-top: #1B150F;
  --ink: #F7F2ED;
  --ink-2: rgba(247, 242, 237, .66);
  --ink-3: rgba(247, 242, 237, .56);
  --gold: #FDC931;
  --orange: #FD6807;
  --accent: #FF780F;
  --brand: linear-gradient(135deg, #FDC931, #FD6807);
  --leaf: #21995C;
  --leaf-hi: #4CD175;
  --berry: #CC334C;
  --card: rgba(255, 255, 255, .07);
  --chip: rgba(255, 255, 255, .10);
  --track: rgba(255, 255, 255, .14);
  --hair: rgba(255, 255, 255, .08);
  --cream-ink: #1A1412;
  --ember-ink: #B4470A;

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --round: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, sans-serif;

  --spring: linear(0, .293, .634, .833, .929, .971, .988, .996, .998, .999, 1);
  --nav-h: 52px;
  --gut: max(16px, env(safe-area-inset-left), env(safe-area-inset-right));
  --cw: min(1180px, 100% - 2 * var(--gut));
}
@media (min-width: 735px) { :root { --gut: max(32px, env(safe-area-inset-left), env(safe-area-inset-right)); } }
@media (min-width: 1069px) { :root { --gut: max(48px, 6vw, env(safe-area-inset-left), env(safe-area-inset-right)); } }
@supports not (transition-timing-function: linear(0, 1)) {
  :root { --spring: cubic-bezier(.22, 1, .36, 1); }
}

/* ── Reset ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--nav-h) + 12px);
  background: var(--surface);
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.47;
  letter-spacing: -.022em;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul[role="list"] { list-style: none; }
[hidden] { display: none !important; }
::selection { background: var(--orange); color: #1A1412; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.skip {
  position: fixed; left: max(16px, env(safe-area-inset-left)); top: -64px; z-index: 300;
  padding: 10px 16px; border-radius: 12px;
  background: var(--gold); color: #1A1412; font-weight: 700; text-decoration: none;
  transition: top .2s var(--spring);
}
.skip:focus { top: 12px; }

.container { width: var(--cw); margin-inline: auto; }
.container--narrow { width: min(820px, 100% - 2 * var(--gut)); }

/* ── Type ──────────────────────────────────────────────────────── */
.eyebrow {
  font-size: .875rem; font-weight: 700; letter-spacing: .06em; line-height: 1.2;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 16px;
}
.h1 {
  font-size: clamp(3.75rem, 5.3vw, 4.75rem); font-weight: 700; line-height: 1.05; letter-spacing: -.015em;
  text-wrap: balance;
}
.h2 {
  font-size: 3.5rem; font-weight: 700; line-height: 1.07; letter-spacing: -.01em;
  text-wrap: balance;
}
.h3 { font-size: 1.75rem; font-weight: 600; line-height: 1.14; letter-spacing: .007em; text-wrap: balance; }
.lead { font-size: 1.3125rem; line-height: 1.38; letter-spacing: .011em; color: var(--ink-2); text-wrap: pretty; }
.sub { font-size: 1.3125rem; line-height: 1.38; letter-spacing: .011em; color: var(--ink-2); max-width: 34em; margin-top: 16px; text-wrap: pretty; }
.micro { font-size: .8125rem; line-height: 1.38; letter-spacing: -.01em; color: var(--ink-3); }
.micro a, .fine a { color: var(--ink-2); text-underline-offset: 3px; }
.fine { font-size: .8125rem; line-height: 1.38; letter-spacing: -.01em; color: var(--ink-3); max-width: 46em; }
.ember { color: var(--orange); }
.numeral, .price__n, .result__kcal { font-family: var(--round); font-variant-numeric: tabular-nums; }

@media (max-width: 1068px) {
  .h1 { font-size: 3.75rem; line-height: 1.07; letter-spacing: -.009em; }
  .h2 { font-size: 2.75rem; line-height: 1.09; letter-spacing: -.005em; }
  .h3 { font-size: 1.5rem; line-height: 1.17; letter-spacing: .009em; }
}
@media (max-width: 734px) {
  .h1 { font-size: 2.5rem; line-height: 1.08; letter-spacing: -.004em; }
  .h2 { font-size: 2rem; line-height: 1.125; letter-spacing: 0; }
  .h3 { font-size: 1.3125rem; line-height: 1.19; letter-spacing: .011em; }
  .lead, .sub { font-size: 1.1875rem; line-height: 1.42; }
  .eyebrow { font-size: .8125rem; }
  .micro, .fine { font-size: .75rem; }
}
@media (max-width: 389px) { .h1 { font-size: 2.25rem; } }
@media (max-width: 359px) { .h1 { font-size: 2.125rem; } }

/* ── Buttons, chips, badge ─────────────────────────────────────── */
.cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 56px; padding: 0 28px; border-radius: 20px;
  font-size: 1.0625rem; font-weight: 600; letter-spacing: -.01em; line-height: 1;
  text-decoration: none; white-space: nowrap;
  transition: transform .1s ease-out, box-shadow .3s var(--spring), background-color .3s, color .3s;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.cta:active, .cta.is-pressed { transform: scale(.97); }
.cta--primary {
  background: var(--brand); color: #1A1412;
  box-shadow: 0 8px 28px rgba(253, 104, 7, .30);
}
@media (hover: hover) { .cta--primary:hover { box-shadow: 0 10px 36px rgba(253, 104, 7, .45); } }
.cta--block { width: 100%; }
.cta--nav {
  height: 36px; padding: 0 16px; border-radius: 999px; font-size: .9375rem;
  color: var(--ink); box-shadow: inset 0 0 0 1px rgba(247, 242, 237, .28);
  background: transparent;
}
.nav[data-cta="on"] .cta--nav { background: var(--brand); color: #1A1412; box-shadow: none; }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .8125rem; font-weight: 700; letter-spacing: .02em; line-height: 1;
  padding: 7px 11px; border-radius: 14px;
  background: var(--chip); color: var(--ink);
}
.chip--try { background: rgba(253, 201, 49, .16); color: var(--gold); text-transform: uppercase; letter-spacing: .06em; }
.chip--trial { background: rgba(253, 201, 49, .14); color: var(--gold); text-transform: uppercase; letter-spacing: .06em; font-size: .75rem; }
.chip--example { background: rgba(253, 201, 49, .14); color: var(--gold); }

.badge { display: inline-block; border-radius: 9px; line-height: 0; flex: none; }
.badge img { height: 48px; width: auto; }
.badge--lg img { height: 52px; }
@media (max-width: 734px) { .badge img { height: 44px; } }

.qr { width: 72px; height: 72px; flex: none; border-radius: 8px; }

/* ═════════════════ NAV ═════════════════ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: calc(var(--nav-h) + env(safe-area-inset-top));
  padding-top: env(safe-area-inset-top);
}
.nav__glass, .nav__solid {
  position: absolute; inset: 0; opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}
.nav__glass {
  background: rgba(23, 20, 18, .62);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  box-shadow: inset 0 -1px rgba(255, 255, 255, .06);
}
.nav__solid { background: var(--app-top); box-shadow: inset 0 -1px rgba(255, 255, 255, .04); }
.nav[data-state="glass"] .nav__glass { opacity: 1; }
.nav[data-state="solid"] .nav__solid { opacity: 1; }
@media (prefers-reduced-transparency: reduce) { .nav__glass { background: var(--raised); -webkit-backdrop-filter: none; backdrop-filter: none; } }

.nav__inner {
  position: relative; height: var(--nav-h);
  width: var(--cw); margin-inline: auto;
  display: flex; align-items: center; gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.brand__flame { width: 18px; height: 23px; }
.brand__word { font-family: var(--round); font-size: 1.1875rem; font-weight: 700; letter-spacing: -.01em; }
.brand__tld { color: var(--orange); }
.nav__links { display: flex; gap: 28px; margin-left: auto; }
.nav__links a {
  font-size: .875rem; color: var(--ink-2); text-decoration: none;
  transition: color .2s;
}
.nav__links a:hover { color: var(--ink); }
.nav__actions { display: flex; align-items: center; gap: 8px; }
.nav__menu { display: none; height: 36px; padding: 0 12px; font-size: .9375rem; color: var(--ink-2); border-radius: 12px; }
.menu {
  position: absolute; top: calc(100% + 6px); right: var(--gut);
  min-width: 220px; padding: 8px;
  background: var(--raised); border-radius: 20px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, .5), inset 0 0 0 1px rgba(255, 255, 255, .06);
  display: grid;
}
.menu a { padding: 12px 14px; border-radius: 12px; text-decoration: none; font-size: 1.0625rem; }
.menu a:hover, .menu a:focus-visible { background: var(--card); }
@media (max-width: 1068px) {
  .nav__links { display: none; }
  .nav__actions { margin-left: auto; }
  .nav__menu { display: inline-flex; align-items: center; }
}

/* ═════════════════ STAGE — shared ═════════════════ */
.stage { position: relative; }
.pin { position: relative; }
.bg { position: absolute; inset: 0; pointer-events: none; }
.bg--hero {
  background:
    radial-gradient(60% 50% at 22% 108%, rgba(253, 104, 7, .28), transparent 70%),
    radial-gradient(28% 22% at 10% 100%, rgba(253, 201, 49, .10), transparent 70%);
}
@media (max-width: 1068px) {
  .bg--hero {
    background:
      radial-gradient(45% 30% at -10% 105%, rgba(253, 104, 7, .18), transparent 70%),
      radial-gradient(45% 30% at 110% 105%, rgba(253, 104, 7, .18), transparent 70%);
  }
}
.bg--app { opacity: 0; }
.melt { position: absolute; top: 0; bottom: 0; width: 50%; }
.melt--l {
  left: 0;
  background: linear-gradient(180deg, #181411 0%, #1B1510 3%, #1B150E 10%, #1B150E 20%, #1E160D 30%, #1E160D 40%, #20160C 50%, #20170C 60%, #1F170E 70%, #1E150F 80%, #1C160F 85%, #1C160F 95%, #191610 100%);
}
.melt--r {
  right: 0;
  background: linear-gradient(180deg, #1E160F 0%, #1C160F 3%, #1E160D 10%, #1E160D 20%, #20170C 30%, #20170C 40%, #1F170E 50%, #1C160F 60%, #1A1611 70%, #191610 80%, #181610 85%, #181512 95%, #151513 100%);
}
.sparks { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

/* The device: Apple's bezel over a real screen. Never filtered, shadowed or tilted. */
.device { position: relative; aspect-ratio: 1350 / 2760; }
.device .screen {
  position: absolute; left: 5.3333%; top: 2.5%; width: 89.3333%; height: 95%;
  border-radius: 12.4% / 5.7%;
  overflow: hidden;
  background: #191610;
  isolation: isolate;
}
.device .shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.device .bezel { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; user-select: none; }

.hero-copy { position: relative; z-index: 3; }
.hero-copy .lead { margin-top: 20px; }
.hero-cta { display: flex; align-items: center; gap: 20px; margin-top: 32px; }
.hero-qr { display: none; align-items: center; gap: 12px; }
.hero-qr p, .final__qr p { font-size: .8125rem; line-height: 1.35; color: var(--ink-3); max-width: 13em; }
html.qr-ok .only-desktop-qr { display: flex; }
.hero-copy .micro { margin-top: 14px; }
.hero-copy .micro + .micro { margin-top: 6px; }
.h1 { position: relative; }
.h1__heat {
  position: absolute; inset: 0;
  background: var(--brand);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  opacity: 0; pointer-events: none;
}
.h1__heat .ember { color: transparent; }
html.reveal-on .h1__heat { animation: heat 1.1s ease-out .2s both; }
html.reveal-on .final .h1__heat { animation: none; }
html.reveal-on .final.is-in .h1__heat { animation: heat 1.1s ease-out .15s both; }
@keyframes heat { from { opacity: 1; } to { opacity: 0; } }

.cue { display: none; }

/* ── Static mode (reduced motion, no JS, short screens, watchdog) ── */
html:not(.stage-on) .stage {
  padding: calc(var(--nav-h) + 56px) 0 96px;
  display: grid;
  grid-template-columns: minmax(var(--gut), 1fr) minmax(0, 620px) auto minmax(var(--gut), 1fr);
  grid-template-areas: ". copy phone ." ". strip strip .";
  column-gap: 48px; row-gap: 96px;
  align-items: center;
}
html:not(.stage-on) .stage > .pin { grid-area: phone; position: static; }
html:not(.stage-on) .stage > * { min-width: 0; }
html:not(.stage-on) .stage > .hero-copy { grid-area: copy; max-width: 620px; justify-self: start; width: 100%; }
html:not(.stage-on) .stage > .inside-strip { grid-area: strip; }
html:not(.stage-on) .pin > .bg--hero { position: absolute; inset: 0 0 auto; height: 100svh; }
html:not(.stage-on) .bg--app,
html:not(.stage-on) .beats,
html:not(.stage-on) .capband,
html:not(.stage-on) .sparks--hero,
html:not(.stage-on) .device--stage .band,
html:not(.stage-on) .device--stage .flash,
html:not(.stage-on) .device--stage .goal-hits,
html:not(.stage-on) .device--stage .shot:not(.s05) { display: none; }
html:not(.stage-on) .device--stage { height: min(72svh, 680px); }
@media (max-width: 1068px) {
  html:not(.stage-on) .stage {
    grid-template-columns: var(--gut) minmax(0, 1fr) var(--gut);
    grid-template-areas: ". copy ." ". phone ." ". strip .";
    column-gap: 0;
    row-gap: 48px; padding-top: calc(var(--nav-h) + 32px);
  }
  html:not(.stage-on) .stage > .hero-copy { justify-self: start; }
  html:not(.stage-on) .device--stage { height: min(64svh, 560px); margin-inline: auto; }
}
.inside-strip { display: none; }
html:not(.stage-on) .inside-strip { display: block; }
.inside-strip__row { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 24px; }
.strip-item { display: grid; justify-items: center; gap: 20px; text-align: center; }
.strip-item .device { height: min(56svh, 520px); }
.strip-item figcaption { max-width: 26em; color: var(--ink-2); }
.strip-item figcaption b { color: var(--ink); }
.strip-item figcaption i { display: block; margin-top: 6px; font-style: normal; font-size: .8125rem; color: var(--ink-3); }
@media (max-width: 734px) {
  .inside-strip__row {
    grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 86vw;
    overflow-x: auto; scroll-snap-type: x mandatory; gap: 16px;
    margin-inline: calc(-1 * var(--gut)); padding-inline: var(--gut);
    scrollbar-width: none;
  }
  .inside-strip__row::-webkit-scrollbar { display: none; }
  .strip-item { scroll-snap-align: center; }
  .strip-item .device { height: 60svh; }
}

/* ── Stage mode ─────────────────────────────────────────────── */
html.stage-on .stage { height: 300lvh; }
html.stage-on .pin {
  position: sticky; top: 0;
  height: 100lvh;
  overflow: clip;
  z-index: 1;
}
html.stage-on .hero-copy {
  position: absolute; top: 0; left: 0; right: 0;
  width: var(--cw); margin-inline: auto;
  min-height: 100svh;
  padding: calc(var(--nav-h) + 40px) 0 40px;
  display: flex; flex-direction: column; justify-content: center;
  pointer-events: none;
}
html.stage-on .hero-copy > * { max-width: 46%; pointer-events: auto; }
html.stage-on .hero-copy > .cue { display: flex; position: absolute; bottom: 28px; left: 0; max-width: none; }
.cue { align-items: center; gap: 20px; font-size: .875rem; color: var(--ink-3); }
.cue__scroll { display: inline-flex; align-items: center; gap: 6px; }
.cue svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.cue__skip { color: var(--ink-2); text-underline-offset: 3px; }
html.stage-on .cue { opacity: calc(1 - var(--p, 0) * 33); }

html.stage-on .device--stage {
  position: absolute; left: 0; top: 0;
  transform-origin: 50% 50%;
  opacity: 0;
  z-index: 2;
}
html.stage-on .device--stage.is-ready { opacity: 1; }
.device--stage .screen { contain: layout paint; }
html.stage-on .device--stage .shot { opacity: 0; }
html.stage-on .device--stage .shot.s05 { opacity: 1; }

.band {
  position: absolute; left: -6%; right: -6%; top: 0; height: 14.9%;
  transform: translateY(-100%);
  background: linear-gradient(180deg, rgba(253,201,49,0) 0%, rgba(253,201,49,.55) 45%, #FD6807 50%, rgba(253,201,49,.55) 55%, rgba(253,201,49,0) 100%);
  box-shadow: 0 0 36px 8px rgba(253, 104, 7, .45);
  opacity: 0; pointer-events: none;
  z-index: 2;
}
.flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; z-index: 3; }
.goal-hits { position: absolute; inset: 0; z-index: 4; }
.goal-hits:not(.is-live) { pointer-events: none; }
.goal-hit {
  position: absolute; left: 5.5%; right: 5.7%;
  top: calc(var(--y0) * 100%); height: calc((var(--y1) - var(--y0)) * 100%);
  border-radius: 9% / 22%;
  font-size: 0; color: transparent;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.goal-hit:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 20px; }
.goal-ring {
  position: absolute; left: 4.5%; right: 4.7%; top: 24%; height: 28.25%;
  border-radius: 22px;
  box-shadow: 0 0 0 1.5px var(--gold), 0 0 24px rgba(253, 201, 49, .35);
  opacity: 0; pointer-events: none;
}
.goal-ring.is-hint { animation: ring 1.2s var(--spring) both; }
@keyframes ring { 0% { opacity: 0; transform: scale(1.02); } 40% { opacity: .9; } 100% { opacity: 0; transform: none; } }

.beats { position: absolute; z-index: 3; pointer-events: none; }
.beat { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); opacity: 0; }
.beat__title { font-size: 3rem; font-weight: 700; line-height: 1.08; letter-spacing: -.008em; margin: 12px 0 16px; text-wrap: balance; }
.beat > p { font-size: 1.3125rem; line-height: 1.38; letter-spacing: .011em; color: var(--ink-2); }
.beat__note { margin-top: 14px; font-size: .875rem !important; color: var(--ink-3) !important; }
.capband { display: none; }

html.stage-on .stage[data-mode="cover"] .beats,
html.stage-on .stage[data-mode="column"] .beats { display: none; }
html.stage-on .stage[data-mode="cover"] .capband,
html.stage-on .stage[data-mode="column"] .capband {
  display: block;
  position: absolute; left: 0; right: 0; top: calc(var(--nav-h) + env(safe-area-inset-top)); height: 56px;
  background: var(--app-top);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .05);
  z-index: 5; opacity: 0;
}
.capband p {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  padding: 0 var(--gut); font-size: .9375rem; color: var(--ink-2); text-align: center;
  opacity: 0; transition: opacity .2s ease;
}
.capband p b { color: var(--ink); font-weight: 600; margin-right: .3em; }
.stage[data-beat="1"] .capband p[data-beat="1"],
.stage[data-beat="2"] .capband p[data-beat="2"],
.stage[data-beat="3"] .capband p[data-beat="3"] { opacity: 1; }

/* Stacked layouts */
@media (max-width: 1068px), (orientation: portrait) {
  html.stage-on .stage { height: 280lvh; }
  html.stage-on .hero-copy { justify-content: flex-start; padding-top: calc(var(--nav-h) + 28px); min-height: 0; }
  html.stage-on .hero-copy > * { max-width: 600px; }
  html.stage-on .hero-copy > .cue { display: none; }
}
@media (max-width: 734px), (max-height: 680px) {
  html.stage-on .hero-copy .micro--terms { display: none; }
  html.stage-on .hero-copy .hero-cta { margin-top: 24px; }
}

/* ═════════════════ #plan — the sheet ═════════════════ */
.sheet {
  position: relative; z-index: 4;
  background: var(--sheet);
  border-radius: 40px 40px 0 0;
  box-shadow: 0 -1px 0 rgba(255, 255, 255, .08), 0 -30px 60px rgba(0, 0, 0, .35);
  padding: 20px 0 112px;
}
html.stage-on .sheet { margin-top: calc(-1 * var(--sheet-overlap, 30lvh)); }
.sheet__grabber { width: 36px; height: 5px; border-radius: 3px; background: rgba(247, 242, 237, .3); margin: 0 auto 72px; }
.sec-head { margin-bottom: 56px; }
.sec-head .h2 + .sub { margin-top: 16px; }

.card {
  background: var(--card); border-radius: 30px;
  box-shadow: inset 0 0 0 1px var(--hair);
}
.plan { display: grid; grid-template-columns: minmax(0, 540px) minmax(0, 480px); gap: 32px; justify-content: space-between; align-items: start; }
.plan__inputs { padding: 28px; display: grid; gap: 26px; }
.field { border: 0; display: grid; gap: 10px; min-width: 0; }
.field__label, .field legend {
  font-size: .8125rem; font-weight: 600; letter-spacing: .02em; color: var(--ink-2);
  text-transform: uppercase; padding: 0;
}
.field legend { margin-bottom: 10px; }
.field__note { font-size: .8125rem; color: var(--ink-3); }
.seg {
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  background: rgba(0, 0, 0, .28); border-radius: 14px; padding: 4px; gap: 4px;
}
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.seg span {
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 40px; padding: 6px 8px; border-radius: 10px;
  font-size: .9375rem; font-weight: 600; color: var(--ink-2);
  transition: background-color .25s var(--spring), color .2s;
}
.seg input:checked + span { background: var(--brand); color: #1A1412; }
.seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.pace { display: grid; gap: 8px; }
.pace__opt { position: relative; display: block; cursor: pointer; }
.pace__opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pace__opt > span {
  display: grid; gap: 2px; padding: 12px 16px; border-radius: 16px;
  background: rgba(0, 0, 0, .22); box-shadow: inset 0 0 0 1px var(--hair);
  font-size: .875rem; color: var(--ink-3);
  transition: box-shadow .25s var(--spring), background-color .25s;
}
.pace__opt b { font-size: 1rem; font-weight: 600; color: var(--ink); }
.pace__opt b em { font-style: normal; color: var(--ink-3); font-weight: 500; }
.pace__opt b i { font-style: normal; font-size: .75rem; font-weight: 700; color: var(--gold); margin-left: 6px; text-transform: uppercase; letter-spacing: .04em; }
.pace__opt input:checked + span { box-shadow: inset 0 0 0 1.5px var(--orange); background: rgba(253, 104, 7, .08); }
.pace__opt input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.field-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.unit-wrap { position: relative; display: block; }
.unit-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.field--num input {
  width: 100%; height: 52px; padding: 0 44px 0 14px;
  font: 600 1.1875rem/1 var(--round); font-variant-numeric: tabular-nums; color: var(--ink);
  background: rgba(0, 0, 0, .28); border: 0; border-radius: 14px;
  box-shadow: inset 0 0 0 1px var(--hair);
  -moz-appearance: textfield; appearance: textfield;
}
.unit-pair input { padding-right: 30px; }
.field--num input::-webkit-outer-spin-button, .field--num input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.field--num input:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--orange); }
.field--num input[aria-invalid="true"] { box-shadow: inset 0 0 0 1.5px var(--berry); }
.unit { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: .875rem; color: var(--ink-3); pointer-events: none; }
.field__err { font-size: .8125rem; color: #FF8296; min-height: 0; }
.field__err:empty { display: none; }
.field--range input[type="range"] { width: 100%; accent-color: var(--orange); height: 32px; }
.ticks { display: flex; justify-content: space-between; font-size: .75rem; color: var(--ink-3); margin-top: -2px; }
.activity__read { font-size: .9375rem; color: var(--ink-2); }
.activity__read b { color: var(--ink); font-weight: 600; }
.plan__private { font-size: .8125rem; color: var(--ink-3); }

.card--result {
  padding: 32px; position: sticky; top: 96px;
  background: linear-gradient(180deg, rgba(253, 201, 49, .06), rgba(255, 255, 255, .05) 40%);
}
.chip--example { margin-bottom: 18px; }
.result__title { font-size: 1.75rem; font-weight: 700; letter-spacing: -.005em; line-height: 1.1; }
.result__sub { color: var(--ink-2); margin-top: 6px; }
.result__kcal { margin-top: 24px; display: grid; }
.result__kcal .numeral {
  font-size: 6rem; font-weight: 800; letter-spacing: -.02em; line-height: 1;
  background: var(--brand); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.result__unit { font-size: 1rem; color: var(--ink-2); margin-top: 6px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.pill {
  display: inline-flex; align-items: baseline; gap: 4px;
  padding: 9px 14px; border-radius: 14px;
  font: 700 1.0625rem/1 var(--round); font-variant-numeric: tabular-nums;
}
.pill__k { font: 600 .8125rem/1 var(--font); letter-spacing: 0; opacity: .85; margin-right: 2px; }
.pill--p { background: rgba(33, 153, 92, .18); color: #5BD79A; }
.pill--c { background: rgba(253, 201, 49, .14); color: var(--gold); }
.pill--f { background: rgba(204, 51, 76, .18); color: #FF8CA0; }
.rows { margin: 24px 0; display: grid; }
.rows > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--hair); font-size: .9375rem; }
.rows dt { color: var(--ink-2); }
.rows dd { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rows__hint { display: block; font-size: .75rem; color: var(--ink-3); margin-top: 2px; max-width: 22em; }
.result__warn { font-size: .875rem; color: var(--gold); background: rgba(253, 201, 49, .08); border-radius: 14px; padding: 10px 14px; margin-bottom: 16px; }
.card--result .micro { margin-top: 12px; text-align: center; }
.formula { margin-top: 18px; font-size: .875rem; color: var(--ink-3); }
.formula summary { cursor: pointer; color: var(--ink-2); list-style: none; }
.formula summary::-webkit-details-marker { display: none; }
.formula summary::after { content: " +"; color: var(--gold); }
.formula[open] summary::after { content: " −"; }
.formula p { margin-top: 8px; }
.guard { margin-top: 16px; font-size: .75rem; line-height: 1.4; color: var(--ink-3); }

/* the digit roll */
.roll { display: inline-flex; vertical-align: top; line-height: 1; height: 1em; }
.roll__d { display: inline-block; height: 1em; clip-path: inset(0 -0.15em); }
.roll__s { display: flex; flex-direction: column; transition: transform .45s var(--spring); }
.roll__s > span { display: block; height: 1em; line-height: 1; }
.result__kcal .roll__s > span { background: var(--brand); -webkit-background-clip: text; background-clip: text; color: transparent; }

.plan__strip {
  position: fixed; left: 0; right: 0; top: calc(var(--nav-h) + env(safe-area-inset-top)); z-index: 90;
  height: 40px; display: none; align-items: center; justify-content: center;
  background: var(--raised); box-shadow: 0 1px 0 var(--hair);
  font: 600 .9375rem/1 var(--round); font-variant-numeric: tabular-nums; color: var(--gold);
  opacity: 0; transition: opacity .2s ease; pointer-events: none;
}
.plan__strip.is-on { opacity: 1; }
.plan__static { width: 100%; border-collapse: collapse; margin: 24px 0 12px; }
.plan__static th, .plan__static td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--hair); }
.plan__static caption { text-align: left; font-weight: 600; padding-bottom: 8px; }

@media (max-width: 1068px) {
  .plan { grid-template-columns: 1fr; max-width: 640px; margin-inline: auto; }
  .card--result { position: static; }
  .plan__strip { display: flex; }
}
@media (max-width: 734px) {
  .sheet { border-radius: 32px 32px 0 0; padding-bottom: 88px; }
  .sheet__grabber { margin-bottom: 48px; }
  .plan__inputs { padding: 20px; }
  .card--result { padding: 24px; }
  .field-row { grid-template-columns: 1fr 1fr; }
  .field-row > .field:first-child { grid-column: 1 / -1; }
  .result__kcal .numeral { font-size: 4rem; }
  .sec-head { margin-bottom: 40px; }
}

/* ═════════════════ #lifters ═════════════════ */
.lifters { padding: 144px 0 112px; position: relative; z-index: 4; background: var(--surface); }
.lifters__grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 64px; }
.step { min-height: 90svh; display: flex; flex-direction: column; justify-content: center; max-width: 30em; }
.step:first-child { min-height: 70svh; justify-content: flex-start; }
.step__n { font: 700 .875rem/1 var(--round); color: var(--gold); letter-spacing: .04em; margin-bottom: 14px; }
.step .h3 { font-size: 2.5rem; font-weight: 700; letter-spacing: -.008em; line-height: 1.08; margin-bottom: 16px; }
.step p { font-size: 1.3125rem; line-height: 1.38; color: var(--ink-2); letter-spacing: .011em; }
.kicker { margin-top: 18px; color: var(--gold) !important; font-weight: 600; }
.verdict-chips { display: grid; gap: 10px; margin-top: 24px; }
.vchip {
  display: inline-flex; align-items: center; gap: 10px; width: fit-content;
  padding: 12px 16px; border-radius: 18px;
  font-size: 1rem; font-weight: 600; line-height: 1.2;
  background: var(--card); box-shadow: inset 0 0 0 1px var(--hair);
  transition: transform .25s var(--spring);
}
.vchip svg { width: 18px; height: 18px; flex: none; }
.vchip--cut svg { fill: none; stroke: var(--leaf-hi); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.vchip--bulk { box-shadow: inset 0 0 0 1px rgba(253, 104, 7, .35); background: rgba(253, 104, 7, .08); }
.vchip--cut { box-shadow: inset 0 0 0 1px rgba(33, 153, 92, .4); background: rgba(33, 153, 92, .08); }
.lifters__device { position: relative; }
.device--sticky {
  position: sticky;
  height: min(78svh, 720px);
  top: calc((100svh - min(78svh, 720px)) / 2);
}
.device--sticky .shot { opacity: 0; transition: opacity .24s ease; }
.device--sticky .shot.is-on { opacity: 1; }
.device--inline { display: none; }
@media (max-width: 1068px) {
  .lifters { padding: 112px 0 88px; }
  .lifters__grid { grid-template-columns: 1fr; }
  .lifters__device { display: none; }
  .step, .step:first-child { min-height: 0; margin-bottom: 72px; max-width: 640px; }
  .step .device--inline { display: block; height: clamp(300px, 64svh, 560px); margin: 32px auto 0; }
  .step .h3 { font-size: 2rem; }
  .step p { font-size: 1.1875rem; }
}

/* ═════════════════ #more (cream) ═════════════════ */
.more {
  position: relative; z-index: 4;
  color: var(--cream-ink);
  background: linear-gradient(180deg, #FAF7F2 0%, #FFF0D6 55%, #FCEBCC 100%);
  border-radius: 40px;
  padding: 144px 0;
  margin: 0 clamp(0px, 1.2vw, 16px);
}
.more .eyebrow { color: var(--ember-ink); }
.more .sub, .more p { color: rgba(26, 20, 18, .66); }
.more ::selection { background: var(--orange); color: #fff; }
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tile {
  position: relative; display: flex; flex-direction: column; gap: 10px;
  padding: 28px; border-radius: 30px;
  background: rgba(255, 255, 255, .55);
  box-shadow: 0 1px 2px rgba(26, 20, 18, .04), 0 16px 44px rgba(253, 104, 7, .07), inset 0 0 0 1px rgba(26, 20, 18, .06);
  overflow: hidden;
  transition: transform .25s var(--spring);
}
.tile .h3 { color: var(--cream-ink); }
.tile p { font-size: 1rem; line-height: 1.47; max-width: 30em; }
.tile--wide { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 32px; align-items: center; }
.tile__demo { display: grid; gap: 18px; }
.tile__shot { margin-top: auto; border-radius: 18px; width: 100%; height: auto; box-shadow: 0 8px 24px rgba(26, 20, 18, .10), inset 0 0 0 1px rgba(26, 20, 18, .05); }
.tile__shot--tall { max-height: 300px; object-fit: cover; object-position: top; }
.icons { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-top: auto; padding-top: 12px; }
.icons li { display: grid; justify-items: center; gap: 8px; text-align: center; }
.icons img { width: 56px; height: 56px; border-radius: 13px; box-shadow: 0 4px 12px rgba(26, 20, 18, .18); }
.icons span { font-size: .75rem; font-weight: 600; line-height: 1.2; color: var(--cream-ink); }
.icons small { display: block; font-weight: 500; color: rgba(26, 20, 18, .66); font-size: .6875rem; }
.strip {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 32px;
  margin-top: 40px; font-size: .9375rem; color: rgba(26, 20, 18, .66);
}
.strip b { color: var(--cream-ink); }

/* capture-mode picker (DOM replica of the app's capsule) */
.picker {
  position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 5px; border-radius: 22px;
  background: #221B16;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06), 0 12px 32px rgba(26, 20, 18, .18);
}
.picker button {
  position: relative; z-index: 1;
  display: grid; justify-items: center; gap: 4px;
  padding: 10px 4px; border-radius: 17px;
  font-size: .8125rem; font-weight: 600; color: rgba(247, 242, 237, .7);
  transition: color .2s;
  -webkit-tap-highlight-color: transparent;
}
.picker button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.picker button[data-mode="quick"] svg { fill: currentColor; stroke: none; }
.picker button[aria-checked="true"] { color: #fff; }
.picker button:active { transform: scale(.97); }
.picker__glow {
  position: absolute; z-index: 0; top: 5px; bottom: 5px; left: 5px;
  width: calc((100% - 10px) / 4);
  border-radius: 17px;
  background: var(--pk, linear-gradient(135deg, #FDC931, #FD6807));
  transform: translateX(calc(var(--i, 0) * 100%));
  transition: transform .6s var(--spring), background .3s;
}
.picker__info { display: grid; gap: 4px; min-height: 92px; }
.picker__chip span {
  display: inline-block; padding: 5px 10px; border-radius: 10px;
  font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  background: rgba(26, 20, 18, .07); color: var(--cream-ink);
}
.picker__benefit { font-size: 1.1875rem !important; font-weight: 600; color: var(--cream-ink) !important; }
.picker__guide { font-size: .9375rem !important; }
.picker__info [data-pk] { transition: opacity .18s ease; }
.picker__info.is-swapping [data-pk] { opacity: 0; }

@media (max-width: 1068px) {
  .more { padding: 112px 0; border-radius: 32px; }
  .bento { grid-template-columns: 1fr 1fr; }
  .tile--wide { grid-template-columns: 1fr; }
  .bento .tile:last-child { grid-column: 1 / -1; }
}
@media (max-width: 734px) {
  .more { padding: 88px 0; margin: 0; border-radius: 28px; }
  .bento { grid-template-columns: 1fr; }
  .tile { padding: 22px; }
  .icons img { width: 48px; height: 48px; border-radius: 11px; }
  .strip { justify-content: flex-start; flex-direction: column; }
}

/* ═════════════════ #pricing ═════════════════ */
.pricing { position: relative; z-index: 4; padding: 144px 0 112px; background: var(--surface); }
.pricing__grid { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 72px; align-items: start; }
.pricing__phone { position: sticky; top: calc(var(--nav-h) + 32px); display: grid; justify-items: center; gap: 16px; }
.device--paywall { height: min(72svh, 640px); }
.pricing__phone figcaption { font-size: .8125rem; color: var(--ink-3); text-align: center; max-width: 22em; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.plan-card {
  padding: 28px; border-radius: 30px; background: var(--raised);
  box-shadow: inset 0 0 0 1px var(--hair);
  display: flex; flex-direction: column; gap: 10px; align-items: flex-start;
}
.plan-card--best {
  background:
    linear-gradient(var(--raised), var(--raised)) padding-box,
    var(--brand) border-box;
  border: 1.5px solid transparent;
  box-shadow: 0 18px 50px rgba(253, 104, 7, .14);
}
.plan-card__tag { font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gold); }
.plan-card__name { font-size: 1.3125rem; font-weight: 600; }
.price { display: flex; align-items: baseline; gap: 8px; flex-wrap: nowrap; }
.price__n { font-size: 3.5rem; font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.price__per { font-size: 1rem; color: var(--ink-2); white-space: nowrap; }
.plan-card__pitch { color: var(--ink-2); }
.plan-card__terms { font-size: .8125rem; color: var(--ink-3); margin-top: auto; padding-top: 8px; }
.included { margin-top: 28px; }
.included__title { font-size: .8125rem; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 12px; }
.included ul { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; }
.included li { display: flex; gap: 10px; align-items: baseline; }
.included li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); flex: none; transform: translateY(-2px); }
.reminder {
  display: flex; gap: 16px; align-items: flex-start;
  margin-top: 28px; padding: 18px 20px; border-radius: 24px;
  background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px var(--hair);
  font-size: .9375rem; color: var(--ink-2);
}
.reminder__flame { width: 26px; height: 33px; flex: none; margin-top: 2px; }
.reminder__title { color: var(--ink); font-weight: 600; margin-bottom: 4px; }
.pricing__cta { margin-top: 32px; display: grid; gap: 8px; justify-items: start; }
.pricing__cta .cta { margin-bottom: 8px; }
.pricing .fine { margin-top: 24px; }
.pricing .fine + .fine { margin-top: 10px; }
@media (max-width: 1068px) {
  .pricing { padding: 112px 0 88px; }
  .pricing__grid { grid-template-columns: 1fr; gap: 0; max-width: 640px; margin-inline: auto; }
  .pricing__phone { position: static; order: 2; margin: 40px 0; }
  .pricing__plans { display: contents; }
  .plans { order: 1; }
  .included { order: 3; }
  .reminder { order: 4; }
  .pricing__cta { order: 5; }
  .pricing .fine { order: 6; }
  .device--paywall { height: max(300px, min(64svh, 560px)); }
}
@media (max-width: 734px) {
  .plans { grid-template-columns: 1fr; }
  .plan-card__tag--ghost { display: none; }
  .included ul { grid-template-columns: 1fr; }
  .price__n { font-size: 2.75rem; }
}

/* ═════════════════ #reviews ═════════════════ */
.reviews { position: relative; z-index: 4; padding: 112px 0; background: var(--surface); }
.reviews__row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.review {
  display: flex; flex-direction: column; gap: 12px;
  padding: 28px; border-radius: 30px; background: var(--raised);
  box-shadow: inset 0 0 0 1px var(--hair);
}
.review__title { font-size: 1.1875rem; font-weight: 600; }
.review__stars { color: var(--gold); letter-spacing: 2px; font-size: .9375rem; }
.review__body { color: var(--ink-2); flex: 1; transition: opacity .18s ease; }
.review__body.is-swapping { opacity: 0; }
.review__toggle { justify-self: start; text-align: left; font-size: .8125rem; color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.review__meta { font-size: .8125rem; color: var(--ink-3); }
.review__meta b { color: var(--ink); font-weight: 600; }
.review__src { font-size: .8125rem; color: var(--ink-2); text-underline-offset: 3px; }
.review--prompt { background: transparent; box-shadow: inset 0 0 0 1.5px rgba(253, 201, 49, .35); justify-content: center; }
.review--prompt .review__title { font-size: 1.5rem; font-weight: 700; }
.review--prompt .cta { align-self: flex-start; margin-top: 8px; height: 48px; }
.review--mock {
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.03) 0 8px, transparent 8px 16px),
    var(--raised);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .18);
  border: 1.5px dashed rgba(255, 255, 255, .2);
}
.review--mock .mock__label { font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.mock__bar { height: 10px; border-radius: 6px; background: rgba(255, 255, 255, .1); }
@media (max-width: 1068px) { .reviews__row { grid-template-columns: 1fr 1fr; } }
@media (max-width: 734px) {
  .reviews { padding: 88px 0; }
  .reviews__row {
    grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 86vw;
    overflow-x: auto; scroll-snap-type: x mandatory;
    margin-inline: calc(-1 * var(--gut)); padding-inline: var(--gut); scroll-padding-inline: var(--gut);
    scrollbar-width: none;
  }
  .reviews__row::-webkit-scrollbar { display: none; }
  .review { scroll-snap-align: start; }
}

/* ═════════════════ #faq ═════════════════ */
.faq { position: relative; z-index: 4; padding: 112px 0; background: var(--surface); }
.faq__list { border-top: 1px solid var(--hair); }
.faq details { border-bottom: 1px solid var(--hair); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 22px 0; cursor: pointer; list-style: none;
  font-size: 1.1875rem; font-weight: 600; letter-spacing: -.005em;
  -webkit-tap-highlight-color: transparent;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { position: relative; width: 14px; height: 14px; flex: none; }
.faq summary i::before, .faq summary i::after {
  content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 2px; border-radius: 2px;
  background: var(--gold); transition: transform .4s var(--spring);
}
.faq summary i::after { transform: rotate(90deg); }
.faq details[open] summary i::after { transform: rotate(0deg); }
.faq__body { overflow: hidden; }
.faq__body p { padding: 0 0 24px; color: var(--ink-2); max-width: 40em; }
.faq__body a { color: var(--ink); text-underline-offset: 3px; }
@media (max-width: 734px) { .faq { padding: 88px 0; } .faq summary { font-size: 1.0625rem; } }

/* ═════════════════ #get — final ═════════════════ */
.final { position: relative; z-index: 4; padding: 160px 0 144px; background: var(--surface); overflow: clip; text-align: center; }
.final__bed {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(55% 45% at 50% 115%, rgba(253, 104, 7, .30), transparent 70%),
    radial-gradient(25% 20% at 50% 100%, rgba(253, 201, 49, .12), transparent 70%);
}
.final__inner { position: relative; display: grid; justify-items: center; gap: 20px; }
.final__icon { width: 120px; height: 120px; border-radius: 27px; box-shadow: 0 18px 50px rgba(253, 104, 7, .35); margin-bottom: 16px; }
.final__title { max-width: 14ch; }
.final__cta { display: flex; align-items: center; gap: 24px; margin-top: 16px; }
.final__qr { display: none; align-items: center; gap: 12px; text-align: left; }
.final__qr .qr { width: 96px; height: 96px; }
.founder { margin-top: 24px; font-size: .9375rem; color: var(--ink-2); }
.founder a { color: var(--ink); text-underline-offset: 3px; }
@media (max-width: 734px) { .final { padding: 112px 0 104px; } .final__icon { width: 96px; height: 96px; border-radius: 22px; } }

/* ═════════════════ footer ═════════════════ */
.footer { position: relative; z-index: 4; background: #120F0D; padding: 56px 0 calc(48px + env(safe-area-inset-bottom)); border-top: 1px solid var(--hair); }
.footer__inner { display: grid; grid-template-columns: 1fr auto; gap: 28px 48px; }
.footer__brand p { margin-top: 8px; font-size: .875rem; color: var(--ink-3); }
.footer__links { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; font-size: .9375rem; }
.footer__links a { color: var(--ink-2); text-decoration: none; }
.footer__links a:hover { color: var(--ink); }
.footer__legal { grid-column: 1 / -1; display: grid; gap: 6px; padding-top: 24px; border-top: 1px solid var(--hair); font-size: .75rem; color: var(--ink-3); }
@media (max-width: 734px) { .footer__inner { grid-template-columns: 1fr; } }

/* ═════════════════ docked CTA, QR card, popover ═════════════════ */
.dock {
  position: fixed; z-index: 95;
  left: max(16px, env(safe-area-inset-left)); right: max(16px, env(safe-area-inset-right)); bottom: calc(env(safe-area-inset-bottom) + 12px);
  height: 52px; border-radius: 18px;
  display: none; align-items: center; justify-content: center; gap: 4px;
  background: var(--brand); color: #1A1412;
  font-weight: 600; font-size: 1.0625rem; text-decoration: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .45), 0 6px 20px rgba(253, 104, 7, .3);
  opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity .3s ease, transform .5s var(--spring);
}
.dock span { font-weight: 500; opacity: .75; }
.dock.is-on { opacity: 1; transform: none; pointer-events: auto; }
.dock:active { transform: scale(.97); }
@media (max-width: 1023px) { .dock { display: flex; } }

.qr-card {
  position: fixed; z-index: 95; right: 24px; bottom: 24px;
  width: 300px; padding: 12px 40px 12px 12px; border-radius: 22px;
  display: flex; gap: 14px; align-items: center;
  background: rgba(30, 25, 21, .72);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 18px 48px rgba(0, 0, 0, .45), inset 0 1px rgba(255, 255, 255, .1), inset 0 0 0 1px rgba(255, 255, 255, .06);
  font-size: .8125rem; color: var(--ink-2);
  opacity: 0; transform: translateY(8px) scale(.98); pointer-events: none;
  transition: opacity .3s ease, transform .6s var(--spring);
}
.qr-card.is-on { opacity: 1; transform: none; pointer-events: auto; }
.qr-card .qr { width: 88px; height: 88px; }
.qr-card__title { color: var(--ink); font-weight: 600; font-size: .9375rem; }
.qr-card a { color: var(--gold); text-decoration: none; display: inline-block; margin-top: 6px; }
.qr-card__close { position: absolute; top: 6px; right: 8px; width: 28px; height: 28px; border-radius: 50%; font-size: 1.125rem; color: var(--ink-3); }
.qr-card__close:hover { color: var(--ink); background: var(--card); }
@media (prefers-reduced-transparency: reduce) { .qr-card { background: var(--raised); -webkit-backdrop-filter: none; backdrop-filter: none; } }

.popover {
  position: fixed; z-index: 120; width: 260px; padding: 20px;
  display: grid; justify-items: center; gap: 10px; text-align: center;
  background: var(--raised); border-radius: 24px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(255, 255, 255, .08);
  opacity: 0; transform: scale(.96);
  transition: opacity .2s ease, transform .6s var(--spring);
}
.popover.is-on { opacity: 1; transform: none; }
.popover .qr { width: 160px; height: 160px; }
.popover__title { font-weight: 600; }
.popover__sub { font-size: .8125rem; color: var(--ink-3); }
.popover__link { font-size: .875rem; color: var(--gold); text-decoration: none; }

/* ═════════════════ reveals (one-shot), tilt ═════════════════ */
html.reveal-on [data-reveal] {
  opacity: 0; transform: translateY(16px);
  transition: opacity .6s var(--spring), transform .6s var(--spring);
}
html.reveal-on:not(.reveal-armed) [data-reveal] { animation: reveal-failsafe 0s linear 3s forwards; }
html.reveal-on [data-reveal].is-in { opacity: 1; transform: none; animation: none; }
@keyframes reveal-failsafe { to { opacity: 1; transform: none; } }
@media (hover: hover) and (pointer: fine) { [data-tilt] { will-change: auto; } }

/* ═════════════════ preferences ═════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .2s !important; transition-property: opacity !important; }
  .h1__heat { display: none; }
}
@media (prefers-contrast: more) {
  .card, .tile, .plan-card, .review, .reminder { box-shadow: inset 0 0 0 1px rgba(247, 242, 237, .4); }
  .nav__glass { background: var(--surface); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
html.reveal-on [data-reveal].is-in[data-tilt] { transition: opacity .6s var(--spring), transform .25s var(--spring); }

/* ═════════════════ legal + support pages (cream, calm) ═════════════════ */
html.legal-page, html.legal-page body { background: #FAF7F2; color: var(--cream-ink); }
html.legal-page .nav__glass { background: rgba(250, 247, 242, .78); box-shadow: inset 0 -1px rgba(26, 20, 18, .07); opacity: 1; }
html.legal-page .brand__word, html.legal-page .nav__menu { color: var(--cream-ink); }
html.legal-page .nav__links a { color: rgba(26, 20, 18, .66); }
html.legal-page .nav__links a:hover { color: var(--cream-ink); }
html.legal-page .menu { background: #fff; box-shadow: 0 18px 48px rgba(26, 20, 18, .18), inset 0 0 0 1px rgba(26, 20, 18, .06); }
html.legal-page .menu a:hover, html.legal-page .menu a:focus-visible { background: rgba(26, 20, 18, .05); }
html.legal-page ::selection { background: var(--orange); color: #fff; }
.legal { padding: calc(var(--nav-h) + 72px) 0 112px; }
.legal-inner { max-width: 720px; }
.legal h1 { font-size: 3.5rem; font-weight: 700; letter-spacing: -.01em; line-height: 1.07; text-wrap: balance; }
.legal .updated { margin-top: 12px; font-size: .875rem; color: rgba(26, 20, 18, .66); }
.legal-body { margin-top: 40px; }
.legal-body h2 { font-size: 1.3125rem; font-weight: 700; margin: 40px 0 10px; letter-spacing: -.005em; }
.legal-body p, .legal-body li { color: rgba(26, 20, 18, .75); max-width: 40em; }
.legal-body p + p { margin-top: 14px; }
.legal-body ul { margin: 10px 0 0 1.2em; display: grid; gap: 8px; }
.legal-body strong, .legal-body b { color: var(--cream-ink); }
.legal a { color: var(--ember-ink); text-underline-offset: 3px; }
.legal-contact { margin-top: 44px; padding: 18px 22px; border-radius: 20px; background: rgba(253, 104, 7, .07); box-shadow: inset 0 0 0 1px rgba(253, 104, 7, .16); }
.support-hero { text-align: center; padding-top: 8px; }
.support-hero .display { font-size: 4rem; font-weight: 700; letter-spacing: -.015em; line-height: 1.05; }
.support-hero .lede { margin: 16px auto 0; font-size: 1.3125rem; color: rgba(26, 20, 18, .66); max-width: 28em; }
.mailto-btn {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 36px;
  height: 60px; padding: 0 28px; border-radius: 20px;
  background: var(--brand); color: #1A1412 !important; text-decoration: none;
  font-weight: 700; font-size: 1.125rem;
  box-shadow: 0 10px 30px rgba(253, 104, 7, .28);
  transition: transform .1s ease-out;
}
.mailto-btn:active { transform: scale(.97); }
.support-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 64px; }
.support-card { padding: 26px; border-radius: 26px; background: rgba(255, 255, 255, .6); box-shadow: 0 1px 2px rgba(26, 20, 18, .04), 0 14px 40px rgba(253, 104, 7, .07), inset 0 0 0 1px rgba(26, 20, 18, .06); }
.support-card h2 { font-size: 1.1875rem; font-weight: 700; margin-bottom: 8px; }
.support-card p { color: rgba(26, 20, 18, .7); }
.support-card details summary { cursor: pointer; color: var(--ember-ink); font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.support-card details summary::-webkit-details-marker { display: none; }
.support-card .faq-icon::before { content: "+"; font-weight: 700; }
.support-card details[open] .faq-icon::before { content: "−"; }
.support-card .faq-body p { margin-top: 10px; }
@media (max-width: 734px) {
  .legal { padding-top: calc(var(--nav-h) + 48px); }
  .legal h1 { font-size: 2.25rem; }
  .support-hero .display { font-size: 2.5rem; }
  .support-cards { grid-template-columns: 1fr; }
}
html.legal-page .footer { background: #F3EEE6; border-top-color: rgba(26, 20, 18, .08); }
html.legal-page .footer, html.legal-page .footer__brand p, html.legal-page .footer__legal { color: rgba(26, 20, 18, .66); }
html.legal-page .footer__links a { color: rgba(26, 20, 18, .7); }
html.legal-page .footer__legal { border-top-color: rgba(26, 20, 18, .08); }
html.legal-page .brand__word { color: var(--cream-ink); }

/* ═════════════════ review fixes ═════════════════ */
/* nav over the cream section: light glass, dark ink */
.nav[data-over="cream"] .nav__glass { background: rgba(250, 247, 242, .78); box-shadow: inset 0 -1px rgba(26, 20, 18, .07); }
.nav[data-over="cream"] .brand__word, .nav[data-over="cream"] .nav__menu { color: var(--cream-ink); }
.nav[data-over="cream"] .nav__links a { color: rgba(26, 20, 18, .66); }
.nav[data-over="cream"] .nav__links a:hover { color: var(--cream-ink); }
.nav[data-over="cream"]:not([data-cta="on"]) .cta--nav { color: var(--cream-ink); box-shadow: inset 0 0 0 1px rgba(26, 20, 18, .3); }

/* focus rings that pass on cream */
html.legal-page :focus-visible, .more :focus-visible { outline-color: var(--ember-ink); }

/* prices on tablet widths */
@media (max-width: 1068px) { .price__n { font-size: 3rem; } }

/* US height (ft + in) gets the full row on phones */
@media (max-width: 734px) { .field-row > .field:has(.unit-pair) { grid-column: 1 / -1; } }

/* the docked CTA must never hide the focused element */
@media (max-width: 1023px) { html { scroll-padding-bottom: 88px; } }

/* forced colors: keep selected and focused states visible */
@media (forced-colors: active) {
  .seg input:checked + span, .pace__opt input:checked + span,
  .picker button[aria-checked="true"], .goal-hit[aria-checked="true"] { outline: 2px solid Highlight; outline-offset: -2px; }
  .picker__glow, .goal-ring { display: none; }
  .cta, .badge, .dock { border: 1px solid ButtonText; }
}

/* reduced transparency: legal-page nav goes solid too */
@media (prefers-reduced-transparency: reduce) {
  html.legal-page .nav__glass, .nav[data-over="cream"] .nav__glass { background: #FAF7F2; -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* translation label on a review shown in English */
.review__note { font-size: .75rem; font-weight: 600; letter-spacing: .02em; color: var(--gold); }

/* a review sent to us directly has no title, so the quote itself leads */
.review--direct .review__body { color: var(--ink); font-size: 1.1875rem; font-weight: 500; line-height: 1.45; letter-spacing: -.01em; }
@media (max-width: 734px) { .review--direct .review__body { font-size: 1.0625rem; } }
