/* ═══════════════════════════════════════════════════════════════
   BRASA.AI — design system
   Dark-first, ember-warm, liquid glass. Tokens from the shipped app.
   ═══════════════════════════════════════════════════════════════ */

:root {
  --ember-gold: #FDC931;
  --ember-orange: #FD6807;
  --ink: #1A1412;
  --ink-inverse: #F7F2ED;
  --cream: #FAF7F2;
  --cream-deep-a: #FFF0D6;
  --cream-deep-b: #FCEBCC;
  --coal-1: #1A140F;
  --coal-2: #21170D;
  --coal-3: #141412;
  --leaf: #21995C;
  --fitness-a: #4CD175;
  --fitness-b: #128C52;
  --berry: #CC334D;
  --heart: #ED2947;
  --health-a: #FF6B73;
  --health-b: #CC143D;

  --brand-grad: linear-gradient(135deg, var(--ember-gold), var(--ember-orange));
  --fitness-grad: linear-gradient(135deg, var(--fitness-a), var(--fitness-b));
  --health-grad: linear-gradient(135deg, var(--health-a), var(--health-b));

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", Inter, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);

  --glass-dark-bg: rgba(255, 255, 255, .06);
  --glass-dark-border: rgba(255, 255, 255, .14);
  --glass-light-bg: rgba(255, 255, 255, .45);
  --glass-light-border: rgba(26, 20, 18, .08);
  --glass-shadow: 0 20px 60px rgba(253, 104, 7, .10);

  --nav-h: 76px;
  --radius-card: 28px;
  --radius-corner: clamp(28px, 4.5vw, 56px);
}

/* ── Reset ────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 16px); }
/* Native scrolling everywhere (the Apple way). CSS smooth-behavior only
   eases anchor jumps — wheel/touch input is never re-animated. */
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  font-family: var(--font);
  background: var(--coal-1);
  color: var(--ink-inverse);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
body.no-scroll { overflow: hidden; }

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul[role="list"] { list-style: none; }

::selection { background: var(--ember-orange); color: var(--coal-1); }
:focus-visible { outline: 2px solid var(--ember-gold); outline-offset: 3px; border-radius: 6px; }

/* subtle film grain over everything */
body::after {
  content: "";
  position: fixed; inset: 0; z-index: 200;
  pointer-events: none;
  opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.skip-link {
  position: fixed; top: -60px; left: 16px; z-index: 300;
  padding: 10px 18px; border-radius: 999px;
  background: var(--ember-gold); color: var(--coal-1); font-weight: 700;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

.container { width: min(1200px, 92vw); margin-inline: auto; }

/* ── Typography ───────────────────────────────────────────────── */
.display {
  font-size: clamp(2.8rem, 6vw, 6.2rem);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.h2 {
  font-size: clamp(2.1rem, 4.2vw, 3.6rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.028em;
  text-wrap: balance;
}
.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ember-orange);
  margin-bottom: 1.1rem;
}
.eyebrow-green { color: var(--fitness-a); }
.eyebrow-red { color: var(--health-a); }
.lede {
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  color: rgba(247, 242, 237, .78);
  max-width: 46ch;
  margin-top: 1.5rem;
}
.body {
  font-size: clamp(1rem, 1.2vw, 1.125rem);
  color: rgba(247, 242, 237, .72);
  max-width: 56ch;
  margin-top: 1.25rem;
}
.numeral { font-variant-numeric: tabular-nums; }
.fineprint {
  font-size: 12px; margin-top: 1rem;
  color: rgba(247, 242, 237, .45);
}

/* ember underline sweep on "truth" */
.truth-sweep {
  font-style: normal; font-weight: 700; color: var(--ink-inverse);
  padding-bottom: 2px;
  background-image: var(--brand-grad);
  background-repeat: no-repeat;
  background-size: 0% 3px;
  background-position: 0 100%;
  transition: background-size .9s var(--ease) .5s;
}
.in-view .truth-sweep, .truth-sweep.in-view { background-size: 100% 3px; }

/* ── Reveal states ────────────────────────────────────────────── */
html.js [data-reveal] { opacity: 0; transform: translateY(24px); }
html.js.no-gsap [data-reveal] {
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
html.js [data-reveal].revealed { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.js [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ── Buttons & links ──────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: 999px;
  font-weight: 800; font-size: 14.5px; letter-spacing: -0.01em;
  transition: transform .2s var(--ease), box-shadow .25s var(--ease), filter .2s;
  will-change: transform;
}
.btn-primary {
  background: var(--brand-grad);
  color: #2A1403;
  box-shadow: 0 4px 18px rgba(253, 104, 7, .25);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 32px rgba(253, 104, 7, .45); }
.btn-primary:active { transform: translateY(0); }

.ghost-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 14.5px;
  color: rgba(247, 242, 237, .75);
  background-image: linear-gradient(90deg, var(--ember-gold), var(--ember-orange));
  background-repeat: no-repeat; background-size: 0% 2px; background-position: 0 100%;
  padding-bottom: 3px;
  transition: background-size .35s var(--ease), color .2s;
}
.ghost-link:hover { background-size: 100% 2px; color: var(--ink-inverse); }
.ghost-link .arrow { transition: transform .25s var(--ease); }
.ghost-link:hover .arrow { transform: translateY(3px); }

/* App Store badge */
.store-badge {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 11px 24px 12px; border-radius: 999px;
  background: #000; color: #fff;
  border: 1px solid rgba(255, 255, 255, .25);
  line-height: 1.15;
  transition: transform .2s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}
.store-badge svg { height: 27px; width: auto; flex: none; }
.store-badge small { display: block; font-size: 10px; font-weight: 500; opacity: .8; letter-spacing: .02em; }
.store-badge strong { display: block; font-size: 17.5px; font-weight: 700; letter-spacing: -0.01em; }
.store-badge:hover {
  transform: translateY(-2px);
  border-color: rgba(253, 201, 49, .6);
  box-shadow: 0 10px 36px rgba(253, 104, 7, .3);
}
.store-badge-lg { padding: 14px 30px 15px; gap: 14px; }
.store-badge-lg svg { height: 32px; }
.store-badge-lg strong { font-size: 20px; }
.store-badge-light { background: var(--ink); border-color: transparent; box-shadow: 0 8px 26px rgba(26, 20, 18, .18); }

/* ── Glass cards ──────────────────────────────────────────────────
   No backdrop-filter here: dozens of blurred surfaces make every scrolled
   frame expensive (visible jank on Safari). The backgrounds behind cards
   are near-flat, so a tuned translucent fill reads identically; blur is
   reserved for the fixed nav and the mobile menu, like apple.com. */
.glass-card {
  position: relative;
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, .07);
  border: 1px solid var(--glass-dark-border);
  box-shadow: var(--glass-shadow);
}
.light-band .glass-card {
  background: rgba(255, 255, 255, .55);
  border: 1px solid var(--glass-light-border);
  box-shadow: 0 16px 44px rgba(253, 104, 7, .07), 0 2px 8px rgba(26, 20, 18, .04);
}
[data-tilt] { transition: transform .25s var(--ease), box-shadow .25s var(--ease); will-change: transform; }

/* pills */
.pill {
  display: inline-flex; align-items: center;
  font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px; white-space: nowrap;
}
.pill-ember  { background: rgba(253, 104, 7, .14); color: #FFA45C; border: 1px solid rgba(253, 104, 7, .4); }
.pill-berry  { background: rgba(204, 51, 77, .16); color: #FF8296; border: 1px solid rgba(204, 51, 77, .5); }
.pill-leaf   { background: rgba(33, 153, 92, .16); color: #5BD79A; border: 1px solid rgba(33, 153, 92, .5); }
.pill-amber  { background: rgba(253, 201, 49, .13); color: var(--ember-gold); border: 1px solid rgba(253, 201, 49, .4); }

/* ═══════════════ NAV ═══════════════ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: box-shadow .35s;
}
/* glass lives on a pseudo-element: backdrop-filter on .nav itself would
   turn it into the containing block for the fixed mobile menu overlay */
.nav::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(22, 16, 11, .72);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  opacity: 0;
  transition: opacity .35s;
}
.nav-inner {
  width: min(1200px, 92vw); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between;
  padding-block: 20px;
  transition: padding .35s var(--ease);
}
.nav.is-scrolled { box-shadow: 0 1px 0 rgba(255, 255, 255, .06); }
.nav.is-scrolled::before { opacity: 1; }
.nav.is-scrolled .nav-inner { padding-block: 11px; }

.nav-logo { display: inline-flex; align-items: center; gap: 10px; }
.flame-mark { width: 21px; height: auto; }
.wordmark { font-size: 19px; font-weight: 800; letter-spacing: -0.02em; }
.wordmark-tld { color: var(--ember-orange); }

.nav-menu { display: flex; align-items: center; gap: clamp(1.4rem, 3vw, 2.6rem); }
.nav-link {
  font-size: 14px; font-weight: 500; color: rgba(247, 242, 237, .8);
  background-image: linear-gradient(90deg, var(--ember-gold), var(--ember-orange));
  background-repeat: no-repeat; background-size: 0% 2px; background-position: 0 100%;
  padding-bottom: 3px;
  transition: background-size .35s var(--ease), color .2s;
}
.nav-link:hover { background-size: 100% 2px; color: var(--ink-inverse); }
.nav-cta { padding: 9px 20px; font-size: 13.5px; }

.nav-burger { display: none; position: relative; z-index: 120; width: 40px; height: 40px; }
.nav-burger span {
  position: absolute; left: 10px; width: 20px; height: 2px; border-radius: 2px;
  background: var(--ink-inverse);
  transition: transform .3s var(--ease), top .3s var(--ease);
}
.nav-burger span:nth-child(1) { top: 16px; }
.nav-burger span:nth-child(2) { top: 23px; }
.nav-burger[aria-expanded="true"] span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { top: 19px; transform: rotate(-45deg); }

@media (max-width: 859px) {
  .nav-burger { display: block; }
  .nav-menu {
    position: fixed; inset: 0; z-index: 110;
    flex-direction: column; justify-content: center; gap: 2.2rem;
    background: rgba(20, 14, 9, .92);
    -webkit-backdrop-filter: blur(24px);
    backdrop-filter: blur(24px);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s .3s;
  }
  .nav-menu.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .nav-link { font-size: 1.5rem; font-weight: 700; }
  .nav-cta { font-size: 1.05rem; padding: 14px 30px; }
}

/* ═══════════════ S1 · HERO ═══════════════ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--nav-h) + 4rem) 0 5rem;
  background:
    radial-gradient(1100px 700px at 12% -10%, rgba(253, 201, 49, .06), transparent 60%),
    linear-gradient(178deg, var(--coal-1) 0%, var(--coal-2) 55%, #1B130C 100%);
  overflow: clip;
}
.embers { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-orb {
  position: absolute; z-index: 0;
  right: -18%; top: 8%;
  width: min(58vw, 900px); aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(253, 104, 7, .26), rgba(253, 201, 49, .08) 48%, transparent 72%);
  filter: blur(30px);
  pointer-events: none;
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}
.hero-ctas {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 1.6rem; margin-top: 2.4rem;
}
.hero-visual { position: relative; display: flex; justify-content: center; }

/* phone with a real app screenshot inside the bezel */
.phone-real .phone-screen { display: block; min-height: 0; padding: 0; background: #FBEFD9; }
.phone-real .phone-screen img { display: block; width: 100%; height: auto; }

/* the hellfire the phone rises through — flared up by the entrance
   timeline, then left smoldering under the phone */
.phone-flare {
  position: absolute; z-index: -1;
  left: 50%; bottom: -6%;
  width: 135%; max-width: 580px; height: 46%;
  transform: translateX(-50%) scaleY(.35);
  transform-origin: 50% 100%;
  background: radial-gradient(55% 85% at 50% 100%,
    rgba(253, 201, 49, .5),
    rgba(253, 104, 7, .34) 45%,
    rgba(232, 66, 10, .12) 68%,
    transparent 82%);
  filter: blur(22px);
  opacity: 0;
  pointer-events: none;
}

/* ═══════════════ PHONE MOCKUP ═══════════════ */
.phone {
  width: min(330px, 80vw);
  border-radius: 54px;
  background: linear-gradient(160deg, #2B2724, #0B0908 30%);
  padding: 10px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .09),
    0 30px 80px rgba(0, 0, 0, .55),
    0 8px 30px rgba(253, 104, 7, .12);
}
.phone-screen {
  position: relative;
  border-radius: 45px;
  background: linear-gradient(175deg, #201812 0%, #171310 70%, #131110 100%);
  overflow: hidden;
  padding: 12px 16px 14px;
  display: flex; flex-direction: column;
  min-height: 640px;
}
.island {
  position: absolute; top: 11px; left: 50%; transform: translateX(-50%);
  width: 84px; height: 24px; border-radius: 999px; background: #000;
}
.app-statusbar {
  display: flex; justify-content: space-between;
  font-size: 11px; font-weight: 700; letter-spacing: .02em;
  padding: 2px 8px 0;
  color: rgba(247, 242, 237, .9);
}
.statusbar-icons { font-size: 7px; letter-spacing: 2px; opacity: .85; align-self: center; }

.app-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 26px;
}
.app-title { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.app-date { font-size: 11px; color: rgba(247, 242, 237, .5); }
.streak-chip {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 800;
  color: var(--ember-gold);
  background: rgba(253, 201, 49, .12);
  border: 1px solid rgba(253, 201, 49, .3);
  padding: 5px 11px; border-radius: 999px;
}

.ring-card { position: relative; display: grid; place-items: center; margin-top: 14px; }
.ring { width: 148px; transform: rotate(-90deg); }
.ring-track { fill: none; stroke: rgba(255, 255, 255, .08); stroke-width: 9; }
.ring-fill {
  fill: none; stroke: url(#emberGrad); stroke-width: 9; stroke-linecap: round;
  stroke-dasharray: 100; stroke-dashoffset: 100;
  transition: stroke-dashoffset 1.4s var(--ease) .2s;
}
.in-view .ring-fill { stroke-dashoffset: 37; }
.ring-center { position: absolute; text-align: center; }
.ring-num { display: block; font-size: 30px; font-weight: 900; letter-spacing: -0.03em; line-height: 1; }
.ring-label { font-size: 10.5px; color: rgba(247, 242, 237, .55); font-weight: 600; }

.app-substats {
  display: flex; justify-content: center; gap: 7px;
  font-size: 10.5px; font-weight: 600; color: rgba(247, 242, 237, .55);
  margin-top: 10px;
  font-variant-numeric: tabular-nums;
}
.app-substats .dot { opacity: .5; }
.app-substats .green { color: var(--fitness-a); }

.macro-rows { display: flex; flex-direction: column; gap: 9px; margin-top: 16px; }
.macro-head {
  display: flex; justify-content: space-between;
  font-size: 11.5px; font-weight: 700;
  margin-bottom: 5px;
}
.macro-row:not(.is-protein) .macro-head { color: rgba(247, 242, 237, .55); font-weight: 600; }
.macro-head b { font-weight: 800; }

.meter { height: 6px; border-radius: 999px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.meter-fill {
  display: block; height: 100%; width: 0; border-radius: 999px;
  background: linear-gradient(90deg, var(--ember-gold), var(--ember-orange));
  transition: width 1.2s var(--ease) .25s;
}
.meter-dim { background: rgba(255, 255, 255, .25); }
.in-view .meter-fill { width: var(--fill); }
.meter-lg { height: 10px; }

.meal-row {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 16px; padding: 9px 12px; margin-top: 9px;
}
.meal-thumb {
  width: 34px; height: 34px; border-radius: 11px; flex: none;
  display: grid; place-items: center; font-size: 17px;
  background: linear-gradient(135deg, rgba(253, 201, 49, .18), rgba(253, 104, 7, .14));
}
.meal-info { flex: 1; min-width: 0; }
.meal-info b { display: block; font-size: 12.5px; font-weight: 700; }
.meal-info small { font-size: 10px; color: rgba(247, 242, 237, .5); }
.meal-kcal { font-size: 13px; font-weight: 800; color: var(--ember-gold); }

.app-tabbar {
  margin-top: auto; padding-top: 12px;
  display: flex; justify-content: space-around; align-items: center;
}
.tab-dot { width: 5px; height: 5px; border-radius: 50%; background: rgba(247, 242, 237, .3); }
.tab-scan {
  width: 46px; height: 46px; border-radius: 999px;
  display: grid; place-items: center;
  background: var(--brand-grad); color: #2A1403;
  box-shadow: 0 6px 20px rgba(253, 104, 7, .45);
}

/* ═══════════════ S2 · SCAN STORY ═══════════════ */
.scan {
  position: relative;
  background: linear-gradient(180deg, #1B130C, var(--coal-2) 30%, #191410 100%);
}

/* pinned version — enabled by JS on desktop+motion */
/* Pinning is pure position:sticky (the apple.com pattern): the tall stage
   provides the scroll distance, the sticky child holds the viewport, and
   JS only maps scroll progress to the timeline — no JS-positioned pin. */
.scan-stage { display: none; }
html.scan-enhanced .scan-stage { display: block; height: 380vh; }
html.scan-enhanced .scan-static { display: none; }

.scan-pin {
  position: sticky; top: 0;
  height: 100vh;
  display: flex; align-items: center;
  overflow: clip;
}
.scan-grid {
  display: grid; grid-template-columns: 1fr auto;
  gap: clamp(3rem, 7vw, 7rem);
  align-items: center; width: min(1200px, 92vw); margin-inline: auto;
}
.scan-captions { position: relative; min-height: 15rem; }
.scan-caption { position: absolute; inset: 0; }
.scan-caption[data-beat="1"], .scan-caption[data-beat="2"] { opacity: 0; visibility: hidden; }
.scan-progress { display: flex; gap: 8px; margin-top: 1rem; }
.scan-progress span {
  width: 30px; height: 3px; border-radius: 999px;
  background: rgba(247, 242, 237, .18);
  transition: background .3s;
}
.scan-progress span.is-active { background: var(--ember-orange); }

.phone-scan .phone-screen { min-height: 620px; padding-top: 10px; }
.scan-photo {
  position: relative; border-radius: 22px; overflow: hidden;
  margin-top: 38px;
  box-shadow: 0 10px 34px rgba(0, 0, 0, .4);
}
.plate-art { width: 100%; height: auto; }

/* viewfinder corners */
.vf { position: absolute; width: 20px; height: 20px; border: 2.5px solid rgba(253, 201, 49, .9); }
.vf-tl { top: 10px; left: 10px; border-right: 0; border-bottom: 0; border-radius: 6px 0 0 0; }
.vf-tr { top: 10px; right: 10px; border-left: 0; border-bottom: 0; border-radius: 0 6px 0 0; }
.vf-bl { bottom: 10px; left: 10px; border-right: 0; border-top: 0; border-radius: 0 0 0 6px; }
.vf-br { bottom: 10px; right: 10px; border-left: 0; border-top: 0; border-radius: 0 0 6px 0; }

/* the gold scan sweep */
.scan-beam {
  position: absolute; left: -4%; right: -4%; top: 0; height: 38%;
  transform: translateY(-130%);
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(253, 201, 49, .12) 30%,
    rgba(253, 201, 49, .55) 49%,
    rgba(253, 104, 7, .18) 62%,
    transparent 100%);
  mix-blend-mode: screen;
  pointer-events: none;
}
.scan-beam::after {
  content: ""; position: absolute; left: 0; right: 0; top: 49%; height: 2px;
  background: var(--ember-gold);
  box-shadow: 0 0 18px 3px rgba(253, 201, 49, .8);
}
@media (prefers-reduced-motion: no-preference) {
  .scan-beam-loop { animation: beam-sweep 3s var(--ease) infinite; }
}
@keyframes beam-sweep {
  0% { transform: translateY(-130%); }
  62% { transform: translateY(300%); }
  100% { transform: translateY(300%); }
}

.scan-analyzing {
  display: flex; align-items: center; gap: 7px;
  align-self: center;
  margin-top: 12px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .04em;
  color: rgba(247, 242, 237, .7);
}
.pulse-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ember-gold); }
@media (prefers-reduced-motion: no-preference) {
  .pulse-dot { animation: pulse 1.2s ease-in-out infinite; }
}
@keyframes pulse { 50% { opacity: .25; transform: scale(.7); } }

.scan-rows { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.scan-row {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 13px; border-radius: 15px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .09);
  font-size: 12.5px; font-weight: 600;
}
.scan-row span { flex: 1; }
.scan-row b { font-weight: 800; color: rgba(247, 242, 237, .92); }
.scan-row-hidden {
  background: rgba(253, 201, 49, .09);
  border-color: rgba(253, 201, 49, .38);
}
.scan-row-hidden b { color: var(--ember-gold); }
.hidden-tag {
  font-style: normal; font-size: 8.5px; font-weight: 900;
  letter-spacing: .11em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 999px;
  background: var(--brand-grad); color: #2A1403;
}
.scan-verdict { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.verdict-chip {
  align-self: flex-start;
  padding: 6px 13px; border-radius: 999px;
  font-size: 12.5px; font-weight: 800; letter-spacing: .01em;
  background: rgba(253, 201, 49, .13);
  color: var(--ember-gold);
  border: 1px solid rgba(253, 201, 49, .42);
}
.scan-verdict p { font-size: 12px; line-height: 1.55; color: rgba(247, 242, 237, .72); }

/* static fallback cards */
.scan-static { padding: clamp(5rem, 12vh, 9rem) 0; }
.scan-cards {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem; margin-top: 2.5rem;
}
.scan-card { padding: 1.4rem; display: flex; flex-direction: column; gap: .9rem; }
.scan-card h3 { font-size: 1.1rem; font-weight: 800; letter-spacing: -0.015em; margin-top: .4rem; }
.scan-card > p { font-size: .9rem; color: rgba(247, 242, 237, .65); }
.scan-photo-static { margin-top: 0; }
.scan-rows.is-static, .scan-verdict.is-static { margin-top: 0; }
.scan-verdict.is-static { gap: 10px; }
@media (max-width: 859px) {
  .scan-cards { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
}

/* ═══════════════ S3–S5 · FEATURES ═══════════════ */
.feature { position: relative; padding: clamp(6rem, 13vh, 10rem) 0; overflow: clip; }
.feature::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
}
.feature-protein { background: #191410; }
.feature-protein::before { background: radial-gradient(700px 480px at 82% 45%, rgba(253, 104, 7, .09), transparent 70%); }
.feature-workout { background: #151310; }
.feature-workout::before { background: radial-gradient(700px 480px at 18% 45%, rgba(76, 209, 117, .08), transparent 70%); }
.feature-health { background: #181211; }
.feature-health::before { background: radial-gradient(700px 480px at 82% 45%, rgba(237, 41, 71, .09), transparent 70%); }

.feature-grid {
  position: relative;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}
.feature-grid-flip .feature-copy { order: 2; }
.feature-grid-flip .feature-visual { order: 1; }
.feature-visual { display: flex; justify-content: center; }

.stat-card { width: min(440px, 100%); padding: clamp(1.6rem, 3vw, 2.2rem); }
.stat-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.stat-label {
  font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: rgba(247, 242, 237, .55);
}
.stat-big {
  font-size: clamp(3.4rem, 5.5vw, 4.6rem);
  font-weight: 900; letter-spacing: -0.035em; line-height: 1;
  margin-top: 1.2rem;
}
.stat-unit { font-size: 1.05rem; font-weight: 600; color: rgba(247, 242, 237, .5); margin-left: .6rem; letter-spacing: 0; }
.stat-card .meter-lg { margin-top: 1.2rem; }
.stat-foot {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap;
  margin-top: 1.1rem;
  font-size: 12.5px; color: rgba(247, 242, 237, .6);
}
.stat-foot b { font-weight: 800; color: rgba(247, 242, 237, .85); }
.stat-plan { font-size: 11.5px; color: rgba(247, 242, 237, .45); }

.stat-title b { display: block; font-size: 15px; font-weight: 800; letter-spacing: -0.01em; }
.stat-title small { font-size: 11.5px; color: rgba(247, 242, 237, .5); }
.stat-head .stat-title { flex: 1; }

.workout-icon, .health-icon {
  width: 38px; height: 38px; border-radius: 12px; flex: none;
  display: grid; place-items: center;
}
.workout-icon { background: rgba(76, 209, 117, .14); color: var(--fitness-a); border: 1px solid rgba(76, 209, 117, .3); }
.health-icon { background: rgba(237, 41, 71, .14); color: var(--health-a); border: 1px solid rgba(237, 41, 71, .32); }

.stat-big-green b {
  background: var(--fitness-grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.stat-sub-green { font-size: 13px; font-weight: 700; color: var(--fitness-a); margin-top: .3rem; }
.budget-bar {
  display: flex; gap: 3px; height: 10px; margin-top: 1.3rem;
  border-radius: 999px; background: rgba(255, 255, 255, .07);
  overflow: hidden;
}
.budget-base { width: 64%; border-radius: 999px; background: rgba(255, 255, 255, .22); }
.budget-extend {
  width: 0; border-radius: 999px;
  background: var(--fitness-grad);
  transition: width 1.1s var(--ease) .45s;
}
.in-view .budget-extend { width: 17%; }
.stat-fineprint {
  margin-top: 1rem; font-size: 11px; color: rgba(247, 242, 237, .42);
  font-variant-numeric: tabular-nums;
}

.marker-list { margin-top: 1.3rem; display: flex; flex-direction: column; }
.marker-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 2px;
  border-top: 1px solid rgba(255, 255, 255, .07);
  font-size: 13.5px;
}
.marker-row:first-child { border-top: 0; }
.marker-name { flex: 1; font-weight: 700; }
.marker-row .numeral { color: rgba(247, 242, 237, .7); font-size: 12.5px; }
.marker-note {
  font-size: 12px; color: rgba(247, 242, 237, .5);
  padding: 0 2px 12px; margin-top: -4px;
  line-height: 1.5;
}

/* ═══════════════ LIGHT BAND (S6–S8) ═══════════════ */
.light-band {
  position: relative; z-index: 2;
  background: var(--cream);
  color: var(--ink);
  border-radius: var(--radius-corner) var(--radius-corner) 0 0;
  padding-bottom: calc(var(--radius-corner) + 4rem);
}
.light-band .eyebrow { color: var(--ember-orange); }
.light-band ::selection { background: var(--ember-orange); color: var(--cream); }

/* S6 · bento */
.bento { padding: clamp(5rem, 12vh, 9rem) 0 0; }
.bento-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem; margin-top: 2.6rem;
}
.bento-card {
  padding: 1.5rem;
  display: flex; flex-direction: column;
  min-height: 210px;
}
.bento-wide { grid-column: span 2; }
.bento-card h3 { font-size: 1.12rem; font-weight: 800; letter-spacing: -0.015em; }
.bento-card > p { font-size: .9rem; color: rgba(26, 20, 18, .62); margin: .35rem 0 1.2rem; max-width: 44ch; }

.log-ways { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.log-way {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12.5px; font-weight: 700;
  padding: 8px 14px; border-radius: 999px;
  background: rgba(26, 20, 18, .05);
  border: 1px solid rgba(26, 20, 18, .08);
  color: rgba(26, 20, 18, .8);
}
.log-way svg { color: var(--ember-orange); }

.slider-demo { margin-top: auto; }
.slider-readout {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 13px; font-weight: 600; color: rgba(26, 20, 18, .75);
  margin-bottom: 10px;
}
.slider-readout b { font-weight: 800; color: var(--ink); }
.portion-kcal { font-variant-numeric: tabular-nums; }
.slider-track { position: relative; height: 6px; border-radius: 999px; background: rgba(26, 20, 18, .1); }
.slider-fill {
  position: absolute; inset: 0 auto 0 0; width: 42%;
  border-radius: 999px; background: var(--brand-grad);
  transition: width 1s var(--ease) .5s;
}
.slider-thumb {
  position: absolute; top: 50%; left: 42%;
  width: 22px; height: 22px; border-radius: 50%;
  background: #fff; border: 1px solid rgba(26, 20, 18, .12);
  box-shadow: 0 3px 10px rgba(26, 20, 18, .22);
  transform: translate(-50%, -50%);
  transition: left 1s var(--ease) .5s;
}
.in-view .slider-fill { width: 68%; }
.in-view .slider-thumb { left: 68%; }

.recipe-chips { display: flex; flex-direction: column; gap: 8px; margin-top: auto; }
.recipe-chip {
  align-self: flex-start;
  font-size: 12.5px; font-weight: 700;
  padding: 8px 14px; border-radius: 999px;
  background: rgba(253, 104, 7, .08);
  border: 1px solid rgba(253, 104, 7, .18);
  color: rgba(26, 20, 18, .8);
}

.cal-grid {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px;
  margin-top: auto;
}
.cal-grid span { aspect-ratio: 1; border-radius: 7px; }
.cg-g { background: rgba(33, 153, 92, .38); }
.cg-a { background: rgba(253, 104, 7, .34); }
.cg-r { background: rgba(204, 51, 77, .36); }
.cg-e { background: rgba(26, 20, 18, .06); }

.lang-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.lang-chips span {
  font-size: 12px; font-weight: 700;
  padding: 7px 12px; border-radius: 999px;
  background: rgba(26, 20, 18, .05);
  border: 1px solid rgba(26, 20, 18, .08);
}

.apple-pill {
  display: inline-flex; align-items: center; gap: 9px;
  align-self: flex-start;
  margin-top: auto; margin-bottom: 0;
  font-size: 13px; font-weight: 700;
  padding: 10px 18px; border-radius: 999px;
  background: var(--ink); color: #fff;
}


.bento-full {
  grid-column: 1 / -1;
  flex-direction: row; flex-wrap: wrap;
  align-items: center; justify-content: space-between;
  gap: 1rem;
  min-height: 0;
}
.bento-full .bento-full-copy > p { margin-bottom: 0; }
.bento-full .apple-pill { margin-top: 0; }

@media (max-width: 1023px) {
  .bento-grid { grid-template-columns: repeat(2, 1fr); }
  .bento-wide { grid-column: span 2; }
}
@media (max-width: 639px) {
  .bento-grid { grid-template-columns: 1fr; }
  .bento-wide { grid-column: auto; }
  .bento-card { min-height: 0; }
}

/* S7 · pricing */
.pricing {
  padding: clamp(5rem, 12vh, 9rem) 0 0;
  background:
    radial-gradient(900px 500px at 50% 30%, rgba(253, 201, 49, .18), transparent 70%);
}
.price-cards {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
  max-width: 720px;
  margin-top: 3rem;
}
.price-card { padding: 2.2rem 2rem; text-align: left; }
.price-card h3 { font-size: 1rem; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; color: rgba(26, 20, 18, .55); }
.price {
  font-size: clamp(2.6rem, 4vw, 3.4rem);
  font-weight: 900; letter-spacing: -0.03em; line-height: 1.05;
  margin-top: .7rem;
}
.price-cur { font-size: .55em; font-weight: 800; vertical-align: .35em; margin-right: 2px; }
.price-per { font-size: 1rem; font-weight: 600; color: rgba(26, 20, 18, .5); letter-spacing: 0; margin-left: 4px; }
.price-sub { font-size: .92rem; color: rgba(26, 20, 18, .62); margin-top: .8rem; max-width: 26ch; }

.price-featured {
  border: 2px solid transparent;
  background:
    linear-gradient(rgba(255, 255, 255, .78), rgba(255, 255, 255, .78)) padding-box,
    var(--brand-grad) border-box;
  box-shadow: 0 24px 60px rgba(253, 104, 7, .16);
}
.trial-badge {
  position: absolute; top: -13px; left: 2rem;
  padding: 6px 14px; border-radius: 999px;
  background: var(--brand-grad); color: #2A1403;
  font-size: 10.5px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase;
  box-shadow: 0 6px 18px rgba(253, 104, 7, .35);
}
.price-fineprint {
  font-size: 12.5px; color: rgba(26, 20, 18, .55);
  max-width: 56ch; margin-top: 1.4rem; line-height: 1.6;
}
.price-fineprint + .price-fineprint { margin-top: .5rem; }
.pricing-cta { margin-top: 2.2rem; }

@media (max-width: 639px) {
  .price-cards { grid-template-columns: 1fr; }
}

/* S8 · FAQ */
.faq { padding: clamp(5rem, 12vh, 8rem) 0 0; }
.faq-container { max-width: 780px; }
.faq-list { margin-top: 2.2rem; border-top: 1px solid rgba(26, 20, 18, .12); }
.faq-item { border-bottom: 1px solid rgba(26, 20, 18, .12); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1.3rem 2px;
  font-size: clamp(1rem, 1.4vw, 1.13rem); font-weight: 700; letter-spacing: -0.01em;
  cursor: pointer;
  list-style: none;
  transition: color .2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--ember-orange); }
.faq-icon { position: relative; width: 14px; height: 14px; flex: none; }
.faq-icon::before, .faq-icon::after {
  content: ""; position: absolute; background: var(--ember-orange); border-radius: 2px;
  transition: transform .3s var(--ease);
}
.faq-icon::before { left: 0; right: 0; top: 6px; height: 2px; }
.faq-icon::after { top: 0; bottom: 0; left: 6px; width: 2px; }
.faq-item[open] .faq-icon::after { transform: scaleY(0); }
.faq-body { overflow: hidden; }
.faq-body p {
  padding: 0 2px 1.4rem;
  font-size: .97rem; line-height: 1.65;
  color: rgba(26, 20, 18, .68);
  max-width: 65ch;
}

/* ═══════════════ S9 · FINAL CTA ═══════════════ */
.final {
  position: relative; z-index: 3;
  margin-top: calc(-1 * var(--radius-corner));
  border-radius: var(--radius-corner) var(--radius-corner) 0 0;
  background: linear-gradient(180deg, #1D150D, var(--coal-3) 90%);
  padding: clamp(6rem, 15vh, 10rem) 0 clamp(5rem, 12vh, 8rem);
  overflow: clip;
  text-align: center;
}
.final-orb {
  position: absolute; left: 50%; bottom: -40%;
  width: min(70vw, 1000px); aspect-ratio: 1;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(253, 104, 7, .22), rgba(253, 201, 49, .07) 50%, transparent 72%);
  filter: blur(30px);
  pointer-events: none;
}
.final-inner { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2.2rem; }
.final-icon {
  width: 92px; height: 92px; border-radius: 22px;
  box-shadow: 0 18px 50px rgba(253, 104, 7, .35);
}
.final .display { font-size: clamp(2.4rem, 5.5vw, 5rem); max-width: 15ch; }
.final-meta {
  font-size: 13.5px; font-weight: 600; letter-spacing: .04em;
  color: rgba(247, 242, 237, .5);
}

/* ═══════════════ FOOTER ═══════════════ */
.footer {
  background: var(--coal-3);
  border-top: 1px solid rgba(255, 255, 255, .06);
  padding: 3.5rem 0 3rem;
}
.footer-inner { display: flex; flex-direction: column; gap: 1.4rem; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: rgba(247, 242, 237, .75); }
.footer-brand .flame-mark { width: 18px; }
.footer-links { display: flex; gap: 1.8rem; }
.footer-links a, .footer-contact a {
  font-size: 14px; font-weight: 500; color: rgba(247, 242, 237, .7);
  background-image: linear-gradient(90deg, var(--ember-gold), var(--ember-orange));
  background-repeat: no-repeat; background-size: 0% 2px; background-position: 0 100%;
  padding-bottom: 2px;
  transition: background-size .35s var(--ease), color .2s;
}
.footer-links a:hover, .footer-contact a:hover { background-size: 100% 2px; color: var(--ink-inverse); }
.footer-contact { font-size: 14px; color: rgba(247, 242, 237, .5); }
.footer-disclaimer {
  font-size: 12px; line-height: 1.6;
  color: rgba(247, 242, 237, .42);
  max-width: 72ch;
  border-top: 1px solid rgba(255, 255, 255, .06);
  padding-top: 1.4rem; margin-top: .4rem;
}

/* ═══════════════ LEGAL / SUPPORT PAGES ═══════════════ */
body.page-light { background: var(--cream); color: var(--ink); }
body.page-light .nav::before { background: rgba(250, 247, 242, .78); }
body.page-light .nav.is-scrolled { box-shadow: 0 1px 0 rgba(26, 20, 18, .07); }
body.page-light .nav-link { color: rgba(26, 20, 18, .75); }
body.page-light .nav-link:hover { color: var(--ink); }
body.page-light .wordmark { color: var(--ink); }
body.page-light .nav-burger span { background: var(--ink); }
@media (max-width: 859px) {
  body.page-light .nav-menu { background: rgba(250, 247, 242, .94); }
}

.legal { padding: calc(var(--nav-h) + 4rem) 0 6rem; }
.legal-inner { max-width: 720px; }
.legal h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 900; letter-spacing: -0.03em; line-height: 1.05;
}
.legal .updated { font-size: 13px; color: rgba(26, 20, 18, .5); margin-top: .9rem; }
.legal-body { margin-top: 2.6rem; }
.legal-body p { font-size: 1rem; line-height: 1.7; color: rgba(26, 20, 18, .75); margin-top: 1.2rem; max-width: 68ch; }
.legal-body p b, .legal-body p strong { color: var(--ink); }
.legal-body ul { margin: 1rem 0 0 1.2rem; }
.legal-body li { font-size: 1rem; line-height: 1.7; color: rgba(26, 20, 18, .75); margin-top: .5rem; max-width: 64ch; }
.legal-body h2 { font-size: 1.15rem; font-weight: 800; letter-spacing: -0.01em; margin-top: 2.4rem; }
.legal-contact {
  margin-top: 2.6rem; padding: 1.4rem 1.6rem;
  border-radius: 18px;
  background: rgba(253, 104, 7, .06);
  border: 1px solid rgba(253, 104, 7, .16);
  font-size: .97rem;
}
.legal-contact a { font-weight: 700; color: var(--ember-orange); }
.legal-contact a:hover { text-decoration: underline; }

/* support page */
.support-hero { text-align: center; padding-top: 1rem; }
.support-hero .lede { color: rgba(26, 20, 18, .65); margin-inline: auto; }
.mailto-btn {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 2.4rem;
  padding: 18px 34px; border-radius: 999px;
  background: var(--brand-grad); color: #2A1403;
  font-size: clamp(1rem, 2.4vw, 1.25rem); font-weight: 800; letter-spacing: -0.01em;
  box-shadow: 0 12px 36px rgba(253, 104, 7, .3);
  transition: transform .2s var(--ease), box-shadow .25s var(--ease);
}
.mailto-btn:hover { transform: translateY(-2px); box-shadow: 0 16px 48px rgba(253, 104, 7, .42); }
.support-cards {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem; margin-top: 3.5rem;
  text-align: left;
}
.support-card { padding: 1.5rem; }
.support-card h2 { font-size: 1.05rem; font-weight: 800; }
.support-card p { font-size: .92rem; color: rgba(26, 20, 18, .65); margin-top: .5rem; line-height: 1.6; }
.support-card a { font-weight: 700; color: var(--ember-orange); }
.support-card a:hover { text-decoration: underline; }
.support-card .faq-item { border: 0; margin-top: .4rem; }
.support-card .faq-item summary { padding: .4rem 0; font-size: .95rem; color: var(--ember-orange); }
.support-card .faq-body p { padding: .4rem 0 0; font-size: .9rem; max-width: none; }
@media (max-width: 859px) {
  .support-cards { grid-template-columns: 1fr; }
}

/* ═══════════════ RESPONSIVE ═══════════════ */
@media (max-width: 959px) {
  .hero { padding-top: calc(var(--nav-h) + 3rem); }
  .hero-grid { grid-template-columns: 1fr; gap: 3.5rem; }
  .hero-copy { text-align: left; }
  .hero-orb { right: -40%; top: 30%; width: 90vw; }
  .feature-grid, .feature-grid-flip { grid-template-columns: 1fr; gap: 2.8rem; }
  .feature-grid-flip .feature-copy { order: 1; }
  .feature-grid-flip .feature-visual { order: 2; }
  .phone-screen { min-height: 600px; }
}
@media (max-width: 479px) {
  .phone { width: min(300px, 86vw); }
  .phone-screen { min-height: 560px; }
  .hero-ctas { gap: 1.1rem; }
}

/* ═══════════════ REDUCED MOTION ═══════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0ms !important;
  }
  .embers { display: none; }
  /* resting states become final states */
  .meter-fill { width: var(--fill); }
  .ring-fill { stroke-dashoffset: 37; }
  .budget-extend { width: 17%; }
  .slider-fill { width: 68%; }
  .slider-thumb { left: 68%; }
  .truth-sweep { background-size: 100% 3px; }
}
