/* ===== SITE ===== */
/* ══════════════════════════════════════════════════════════════
   NutriLab — site design system
   One capsule, lit like a product shot, re-framed as you scroll.
   ══════════════════════════════════════════════════════════════ */

:root{
  /* surfaces */
  --cream:#F6F3EE;
  --cream-dark:#EDE7DA;
  --paper:#FFFFFF;

  /* Pantone 15-0531 Sweet Pea and its family */
  --moss:#9da57b;
  --moss-light:#b0b98e;
  --moss-pale:#f0f2e8;
  --bark:#9da57b;
  --bark-light:#adb389;
  --sage:#9da57b;
  --sage-lt:#f0f2e8;
  --olive:#5E6840;
  --olive-deep:#3F4730;

  --gold:#B8924A;
  --gold-lt:#F5ECD9;

  /* type */
  --ink:#2E3123;
  --ink-2:#504A43;
  --ink-3:#9B9489;
  --text-muted:#8C8878;

  --border:#E2DDD6;
  --rule:rgba(46,49,35,.12);
  --white:#FFFFFF;

  /* quiz / ingredient pages keep their own scoped tokens */
  --bg:#F6F3EE; --card:#FFFFFF;
  --rust:#B84A3A; --rust-lt:#FAEAE8; --sky:#3D6B8C; --sky-lt:#E4EDF5;
  --r:13px;

  --annot:0;
  --gut:clamp(1.25rem, 5vw, 5rem);
}

*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{
  font-family:'Barlow',system-ui,sans-serif;
  background:var(--cream);
  color:var(--ink);
  min-height:100vh;
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
}
:focus-visible{outline:2px solid var(--olive);outline-offset:3px;border-radius:2px}

/* ── display type ────────────────────────────────────────────── */
.d1,.d2,.d3{
  font-family:'Bebas Neue','Oswald','Arial Narrow',sans-serif;
  font-weight:400;
  letter-spacing:.035em;
  line-height:.94;
  text-transform:none;
}
.d1{font-size:clamp(2.9rem,5.6vw,5.6rem)}
.d2{font-size:clamp(2.3rem,4vw,3.7rem)}
.d3{font-size:clamp(1.7rem,2.4vw,2.4rem);line-height:1}

.lede{
  font-size:clamp(1rem,1.15vw,1.175rem);
  line-height:1.72;
  font-weight:300;
  color:var(--ink-2);
  max-width:46ch;
}

/* ── buttons ─────────────────────────────────────────────────── */
.btn{
  font-family:'Barlow',sans-serif;
  font-size:.95rem;font-weight:600;letter-spacing:.015em;
  padding:1rem 2rem;border-radius:999px;border:1.5px solid transparent;
  cursor:pointer;transition:background .22s ease,color .22s ease,border-color .22s ease;
  display:inline-block;text-decoration:none;line-height:1;
}
.btn-solid{background:var(--olive);color:#fff}
.btn-solid:hover{background:var(--olive-deep)}
.btn-line{background:transparent;color:var(--ink);border-color:var(--rule)}
.btn-line:hover{border-color:var(--olive);color:var(--olive)}
.btn-light{background:#fff;color:var(--olive)}
.btn-light:hover{background:var(--gold);color:#fff}
.btn-ghost-light{background:transparent;color:rgba(255,255,255,.9);border-color:rgba(255,255,255,.35)}
.btn-ghost-light:hover{border-color:#fff;color:#fff}

/* ══════════════════════════════════════════════════════════════
   NAV
   ══════════════════════════════════════════════════════════════ */
nav{
  position:fixed;top:0;left:0;right:0;z-index:200;
  display:flex;align-items:center;justify-content:space-between;
  padding:.75rem var(--gut);
  background:rgba(246,243,238,.72);
  backdrop-filter:blur(14px) saturate(1.1);
  border-bottom:1px solid transparent;
  transition:background .3s ease,border-color .3s ease;
}
nav.scrolled{background:rgba(246,243,238,.94);border-bottom-color:var(--rule)}
.nav-logo img{height:40px;width:auto;display:block}
.nav-links{display:flex;align-items:center;gap:2.1rem}
.nav-links a{
  color:var(--ink-2);text-decoration:none;font-size:.92rem;font-weight:400;
  position:relative;padding:.25rem 0;transition:color .2s;
}
.nav-links a::after{
  content:'';position:absolute;left:0;right:100%;bottom:0;height:1px;
  background:var(--olive);transition:right .25s ease;
}
.nav-links a:hover{color:var(--ink)}
.nav-links a:hover::after{right:0}
.nav-cta{
  background:var(--olive);color:#fff;padding:.6rem 1.4rem;border-radius:999px;
  font-family:'Barlow',sans-serif;font-weight:600;font-size:.88rem;
  border:none;cursor:pointer;transition:background .22s;
}
.nav-cta:hover{background:var(--olive-deep)}
.nav-note{
  font-size:.78rem;color:var(--text-muted);display:flex;align-items:center;gap:.4rem;white-space:nowrap;
}
.nav-note svg{color:var(--moss);flex-shrink:0}

/* hamburger */
.nav-hamburger{
  display:none;flex-direction:column;justify-content:center;gap:5px;
  width:40px;height:40px;background:none;border:none;cursor:pointer;padding:6px;
}
.nav-hamburger span{display:block;width:22px;height:1.5px;background:var(--ink);transition:all .25s ease}
.nav-hamburger.open span:nth-child(1){transform:translateY(6.5px) rotate(45deg)}
.nav-hamburger.open span:nth-child(2){opacity:0}
.nav-hamburger.open span:nth-child(3){transform:translateY(-6.5px) rotate(-45deg)}

.nav-drawer{
  display:none;position:fixed;top:64px;left:0;right:0;bottom:0;z-index:190;
  background:var(--cream);flex-direction:column;padding:2rem var(--gut) 3rem;
  border-top:1px solid var(--rule);overflow-y:auto;
}
.nav-drawer.open{display:flex}
.nav-drawer a{
  color:var(--ink);text-decoration:none;font-size:2rem;
  font-family:'Bebas Neue',sans-serif;letter-spacing:.04em;
  padding:1rem 0;border-bottom:1px solid var(--rule);display:block;
}
.nav-drawer-cta{
  margin-top:1.75rem;width:100%;background:var(--olive);color:#fff;border:none;
  border-radius:999px;padding:1.05rem;font-family:'Barlow',sans-serif;
  font-size:1rem;font-weight:600;cursor:pointer;
}
.nav-drawer-note{margin-top:1rem;text-align:center;font-size:.85rem;color:var(--text-muted)}

/* ══════════════════════════════════════════════════════════════
   PAGE SWITCHING  (.site-page so inner .page markup is untouched)
   ══════════════════════════════════════════════════════════════ */
.site-page{display:none}
.site-page.active{display:block}

/* ══════════════════════════════════════════════════════════════
   THE CAPSULE STAGE — hero + annotation share one pinned canvas
   ══════════════════════════════════════════════════════════════ */
#capsule-stage{position:relative;background:var(--cream)}
#capsule-stage::before{
  content:'';position:absolute;inset:0;pointer-events:none;
  background:
    radial-gradient(60% 50% at 68% 38%, rgba(255,255,255,.95) 0%, rgba(255,255,255,0) 70%),
    radial-gradient(45% 40% at 20% 85%, rgba(157,165,123,.16) 0%, rgba(157,165,123,0) 70%);
}
.stage-canvas{
  position:sticky;top:0;height:100vh;height:100svh;z-index:0;
}
#capsule-canvas{display:block;width:100%;height:100%}

/* the bottle, shown flat until WebGL takes over */
.bottle-fallback{
  position:absolute;top:50%;left:68%;transform:translate(-50%,-50%);
  width:clamp(150px,17vw,230px);height:auto;
  filter:drop-shadow(0 34px 34px rgba(74,82,48,.22));
}
.has-3d .bottle-fallback{display:none}

.stage-panels{position:relative;z-index:1;margin-top:-100vh;margin-top:-100svh;pointer-events:none}
.stage-panel{
  position:relative;
  min-height:100vh;min-height:100svh;
  display:flex;align-items:center;padding:0 var(--gut);
}
.stage-panel > *{pointer-events:auto}

/* ── hero copy ── */
.hero-copy{max-width:min(34rem,46%);padding-top:4rem}
.hero-copy .d1{color:var(--ink);margin-bottom:1.5rem}
.hero-copy .d1 em{font-style:italic;color:var(--olive)}
.hero-copy .d1 strong{font-weight:400}
.hero-actions{display:flex;flex-wrap:wrap;gap:.75rem;margin:1.9rem 0 0}

.hero-figures{
  display:flex;gap:clamp(1.5rem,3vw,2.75rem);
  margin-top:2.25rem;padding-top:1.4rem;border-top:1px solid var(--rule);
}
.figure-n{
  font-family:'Bebas Neue',sans-serif;font-size:clamp(1.9rem,2.6vw,2.6rem);
  color:var(--olive);line-height:1;letter-spacing:.02em;
}
.figure-l{font-size:.82rem;color:var(--text-muted);margin-top:.35rem;max-width:12ch;line-height:1.4}

.stage-scroll{
  position:absolute;left:var(--gut);bottom:2.25rem;z-index:3;
  display:flex;align-items:center;gap:.7rem;
  font-size:.78rem;color:var(--text-muted);
  opacity:calc(1 - var(--annot)*2);
}
.stage-scroll i{display:block;width:46px;height:1px;background:var(--rule);position:relative;overflow:hidden}
.stage-scroll i::after{
  content:'';position:absolute;inset:0;background:var(--olive);
  animation:sweep 2.4s ease-in-out infinite;
}
@keyframes sweep{0%{transform:translateX(-100%)}60%,100%{transform:translateX(100%)}}

/* ── annotation panel ── */
#annotation-stage{
  display:grid;align-content:center;
  grid-template-columns:1fr 1fr;
  gap:clamp(9rem,30vh,20rem) clamp(2rem,26vw,32rem);
  padding-top:9rem;padding-bottom:5rem;
}
.annot{
  opacity:0;transform:translateY(10px);
  transition:opacity .7s ease,transform .7s ease;
  max-width:19rem;
}
.annot.show{opacity:1;transform:none}
.annot:nth-child(odd){justify-self:start;text-align:left}
.annot:nth-child(even){justify-self:end;text-align:right}
.annot-rule{height:1px;background:var(--rule);margin-bottom:.9rem;position:relative}
.annot-rule::after{
  content:'';position:absolute;top:-2.5px;width:6px;height:6px;border-radius:50%;
  background:var(--olive);
}
.annot:nth-child(odd) .annot-rule::after{right:0}
.annot:nth-child(even) .annot-rule::after{left:0}
.annot h3{
  font-family:'Bebas Neue',sans-serif;font-weight:400;letter-spacing:.045em;
  font-size:1.5rem;color:var(--ink);margin-bottom:.3rem;
}
.annot p{font-size:.92rem;line-height:1.6;color:var(--text-muted);font-weight:300}

.annot-title{
  position:absolute;left:50%;top:clamp(5.5rem,11vh,8rem);transform:translateX(-50%);
  text-align:center;z-index:2;width:min(28rem,70vw);
  opacity:var(--annot);transition:opacity .4s ease;
}
.annot-title .d3{color:var(--ink)}
.annot-title p{font-size:.95rem;color:var(--text-muted);margin-top:.6rem;font-weight:300}

/* ══════════════════════════════════════════════════════════════
   PROCESS — three steps over the compounding footage
   ══════════════════════════════════════════════════════════════ */
.process{position:relative;overflow:hidden;padding:clamp(5rem,11vh,8rem) var(--gut);color:#fff}
.process video{
  position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);
  min-width:100%;min-height:100%;object-fit:cover;z-index:0;
}
.process::after{
  content:'';position:absolute;inset:0;z-index:1;
  background:linear-gradient(180deg,rgba(63,71,48,.90) 0%,rgba(63,71,48,.82) 100%);
}
/* the cream of the sections either side bleeds into this one, so the
   page reads as one surface rather than a stack of slabs */
.process::before{
  content:'';position:absolute;inset:0;z-index:2;pointer-events:none;
  background:
    linear-gradient(to bottom,
      var(--cream) 0%, rgba(246,243,238,.62) 34%,
      rgba(246,243,238,.22) 68%, rgba(246,243,238,0) 100%)
      top/100% clamp(56px,7vh,104px) no-repeat,
    linear-gradient(to top,
      var(--cream) 0%, rgba(246,243,238,.62) 34%,
      rgba(246,243,238,.22) 68%, rgba(246,243,238,0) 100%)
      bottom/100% clamp(56px,7vh,104px) no-repeat;
}
.process-inner{position:relative;z-index:3;max-width:78rem;margin:0 auto}
.process h2{color:#fff;margin-bottom:clamp(2.5rem,6vh,4rem);max-width:18ch}
.process h2 em{font-style:italic;color:rgba(255,255,255,.62)}

.steps{display:grid;grid-template-columns:repeat(3,1fr);gap:0}
.step{padding:1.75rem clamp(1rem,2.5vw,2.25rem) .5rem;border-top:1px solid rgba(255,255,255,.24)}
.step-n{
  font-family:'Bebas Neue',sans-serif;font-size:.95rem;letter-spacing:.14em;
  color:rgba(255,255,255,.5);margin-bottom:1.25rem;
}
.step h3{
  font-size:1.15rem;font-weight:600;color:#fff;margin-bottom:.6rem;line-height:1.3;
  font-family:'Barlow',sans-serif;
}
.step p{font-size:.95rem;line-height:1.7;color:rgba(255,255,255,.72);font-weight:300}

/* ══════════════════════════════════════════════════════════════
   CHAPTERS — full-bleed footage, one claim each
   ══════════════════════════════════════════════════════════════ */
.reel{position:relative}
.chapter{
  position:sticky;top:0;overflow:hidden;
  height:100vh;height:100svh;min-height:520px;
  display:flex;align-items:flex-end;padding:var(--gut);
}
/* each chapter after the first arrives as a dissolve over the one below */
.reel .chapter + .chapter{
  -webkit-mask-image:linear-gradient(to bottom,rgba(0,0,0,0) 0,#000 clamp(90px,14vh,180px));
  mask-image:linear-gradient(to bottom,rgba(0,0,0,0) 0,#000 clamp(90px,14vh,180px));
}
/* into the reel from the cream above, out of it into the closing green */
.reel .chapter:first-child::before,
.reel .chapter:last-child::before{content:'';position:absolute;inset:0;z-index:2;pointer-events:none}
.reel .chapter:first-child::before{
  background:linear-gradient(to bottom,
    var(--cream) 0%, rgba(246,243,238,.62) 34%,
    rgba(246,243,238,.22) 68%, rgba(246,243,238,0) 100%)
    top/100% clamp(56px,7vh,104px) no-repeat;
}
.reel .chapter:last-child::before{
  background:linear-gradient(to top,
    var(--moss) 0%, rgba(157,165,123,.60) 34%,
    rgba(157,165,123,.20) 68%, rgba(157,165,123,0) 100%)
    bottom/100% clamp(52px,6.5vh,96px) no-repeat;
}
.chapter video{
  position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);
  min-width:100%;min-height:100%;object-fit:cover;z-index:0;
}
/* dark at both edges, so one chapter meets the next without a seam */
.chapter::after{
  content:'';position:absolute;inset:0;z-index:1;
  background:linear-gradient(to top,
    rgba(26,30,18,.90) 0%, rgba(26,30,18,.46) 40%,
    rgba(26,30,18,.34) 70%, rgba(26,30,18,.70) 100%);
}
.chapter-body{position:relative;z-index:3;max-width:44rem}
.chapter-body.right{margin-left:auto;text-align:right}
.chapter-body .d2{color:#fff;margin-bottom:1.1rem}
.chapter-body p{
  font-size:clamp(1rem,1.15vw,1.15rem);line-height:1.72;font-weight:300;
  color:rgba(255,255,255,.82);max-width:52ch;
}
.chapter-body.right p{margin-left:auto}
.chapter-body .btn{margin-top:1.75rem}

/* ══════════════════════════════════════════════════════════════
   INGREDIENT INDEX — a reference list, not a card grid
   ══════════════════════════════════════════════════════════════ */
.library{padding:clamp(5rem,11vh,8rem) var(--gut);background:var(--cream)}
.library-inner{max-width:78rem;margin:0 auto}
.library-head{
  display:flex;align-items:flex-end;justify-content:space-between;
  gap:2rem;flex-wrap:wrap;margin-bottom:clamp(2rem,5vh,3.25rem);
}
.library-head .d2{color:var(--ink);max-width:16ch}
.ing-index{display:grid;grid-template-columns:1fr 1fr;gap:0 clamp(2rem,6vw,5rem)}
.ing-row{
  display:grid;grid-template-columns:1fr auto;align-items:baseline;gap:1.5rem;
  padding:1.15rem 0;border-top:1px solid var(--rule);
}
.ing-row dt{
  font-family:'Bebas Neue',sans-serif;letter-spacing:.04em;
  font-size:1.3rem;color:var(--ink);
}
.ing-row dd{font-size:.9rem;color:var(--text-muted);text-align:right;max-width:30ch;line-height:1.5;font-weight:300}

/* ── sections arrive the same way throughout the page ── */
.rv{
  opacity:0;transform:translateY(18px);
  transition:opacity .85s cubic-bezier(.22,.7,.2,1),transform .85s cubic-bezier(.22,.7,.2,1);
}
.rv-in{opacity:1;transform:none}

/* ══════════════════════════════════════════════════════════════
   CLOSING CTA
   ══════════════════════════════════════════════════════════════ */
.closer{
  padding:clamp(5rem,13vh,9rem) var(--gut);background:var(--moss);color:#fff;text-align:center;
  position:relative;
}
.closer .d2{color:#fff;margin-bottom:1rem}
.closer p{
  font-size:1.05rem;color:rgba(255,255,255,.82);font-weight:300;
  max-width:46ch;margin:0 auto 2.25rem;line-height:1.7;
}

/* ══════════════════════════════════════════════════════════════
   ABOUT
   ══════════════════════════════════════════════════════════════ */
#page-about{padding-top:0;background:var(--cream)}
.about-open{
  min-height:72vh;display:flex;align-items:flex-end;
  padding:8rem var(--gut) clamp(3rem,7vh,5rem);
  background:var(--moss);color:#fff;position:relative;overflow:hidden;
}
.about-open::after{
  content:'';position:absolute;right:-8%;top:-30%;width:52vw;height:120%;
  background:radial-gradient(circle at 50% 50%,rgba(255,255,255,.18),transparent 62%);
  pointer-events:none;
}
.about-open-inner{position:relative;z-index:1;max-width:78rem;margin:0 auto;width:100%}
.about-open .d1{color:#fff;margin-bottom:1.1rem}
.about-open .d1 em{font-style:italic;color:rgba(255,255,255,.62)}
.about-open p{font-size:1.15rem;color:rgba(255,255,255,.85);font-weight:300;max-width:44ch}

.about-sec{padding:clamp(3.5rem,9vh,6rem) var(--gut)}
.about-sec.tinted{background:var(--cream-dark)}
.about-inner{max-width:78rem;margin:0 auto}

/* mission */
.mission{display:grid;grid-template-columns:minmax(0,18rem) minmax(0,1fr);gap:clamp(2rem,6vw,5rem)}
.sec-title{
  font-family:'Bebas Neue',sans-serif;font-size:1.6rem;letter-spacing:.05em;
  color:var(--olive);line-height:1.1;
}
.mission-body p{
  font-size:clamp(1.05rem,1.3vw,1.3rem);line-height:1.75;font-weight:300;color:var(--ink-2);
  max-width:60ch;
}
.mission-body p + p{margin-top:1.1rem}

/* principles + capsule diagram */
.principles{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,26rem);gap:clamp(2rem,6vw,5rem);align-items:center}
.principle{display:grid;grid-template-columns:2.25rem 1fr;gap:.5rem;padding:1.15rem 0;border-top:1px solid var(--rule)}
.principle:first-of-type{border-top:none;padding-top:0}
.principle-n{font-family:'Bebas Neue',sans-serif;font-size:1.05rem;color:var(--moss);letter-spacing:.06em}
.principle h3{font-size:1.05rem;font-weight:600;color:var(--ink);margin-bottom:.2rem;font-family:'Barlow',sans-serif}
.principle p{font-size:.95rem;color:var(--text-muted);line-height:1.6;font-weight:300}

/* founder */
.founder{display:grid;grid-template-columns:minmax(0,20rem) minmax(0,1fr);gap:clamp(2rem,6vw,5rem);align-items:start}
.founder-photo{position:relative;border-radius:18px;overflow:hidden;aspect-ratio:4/5;background:var(--olive-deep)}
.founder-photo img{width:100%;height:100%;object-fit:cover;object-position:center top;display:block}
.founder-creds{
  position:absolute;left:1rem;right:1rem;bottom:1rem;
  background:rgba(32,36,22,.62);backdrop-filter:blur(8px);
  border:1px solid rgba(255,255,255,.16);border-radius:12px;padding:.9rem 1rem;
}
.founder-creds div{
  display:flex;align-items:center;gap:.55rem;
  font-size:.82rem;color:rgba(255,255,255,.82);padding:.17rem 0;
}
.founder-creds div::before{content:'';width:4px;height:4px;border-radius:50%;background:var(--gold);flex-shrink:0}
.founder-quote{
  font-family:'Bebas Neue',sans-serif;font-size:clamp(1.6rem,2.4vw,2.3rem);
  letter-spacing:.03em;line-height:1.14;color:var(--ink);
  border-left:2px solid var(--gold);padding-left:1.25rem;margin-bottom:1.5rem;
}
.founder-body p{font-size:1.02rem;line-height:1.78;color:var(--ink-2);font-weight:300;max-width:62ch}
.founder-body p + p{margin-top:1rem}
.founder-pull{
  font-family:'Bebas Neue',sans-serif;font-size:1.45rem;letter-spacing:.04em;
  color:var(--olive);line-height:1.2;
}
.founder-name{font-family:'Bebas Neue',sans-serif;font-size:1.4rem;letter-spacing:.05em;color:var(--ink);margin-top:1.75rem}
.founder-role{font-size:.88rem;color:var(--text-muted);margin-top:.15rem}

/* values */
.values{display:grid;grid-template-columns:repeat(4,1fr);gap:0 clamp(1.25rem,3vw,2.5rem)}
.value{padding:1.5rem 0 .25rem;border-top:1px solid var(--rule)}
.value svg{color:var(--moss);margin-bottom:1rem;display:block}
.value h3{
  font-family:'Bebas Neue',sans-serif;font-size:1.35rem;letter-spacing:.045em;
  color:var(--ink);margin-bottom:.45rem;font-weight:400;
}
.value p{font-size:.93rem;line-height:1.65;color:var(--text-muted);font-weight:300}
.value.flag{border-top-color:var(--rust)}
.value.flag svg{color:var(--rust)}

/* process on about */
.about-process{background:var(--moss);color:#fff;padding:clamp(3.5rem,9vh,6rem) var(--gut)}
.about-process .d2{color:#fff;margin-bottom:clamp(2rem,5vh,3rem)}
.about-steps{display:grid;grid-template-columns:repeat(4,1fr);gap:0 clamp(1rem,2.5vw,2rem)}
.about-step{padding:1.4rem 0 .25rem;border-top:1px solid rgba(255,255,255,.26)}
.about-step .step-n{color:rgba(255,255,255,.55)}
.about-step h3{font-size:1.02rem;font-weight:600;color:#fff;margin-bottom:.5rem;font-family:'Barlow',sans-serif}
.about-step p{font-size:.9rem;line-height:1.65;color:rgba(255,255,255,.72);font-weight:300}

/* compounding comparison */
.compare{display:grid;grid-template-columns:1fr 1fr;gap:clamp(1rem,3vw,2rem)}
.compare-col{padding:1.75rem;border-radius:16px}
.compare-col.bad{background:var(--rust-lt);border:1px solid rgba(184,74,58,.35)}
.compare-col.good{background:var(--moss-pale);border:1px solid rgba(157,165,123,.55)}
.compare-col h3{
  font-family:'Bebas Neue',sans-serif;font-size:1.25rem;letter-spacing:.05em;margin-bottom:1.1rem;font-weight:400;
}
.compare-col.bad h3{color:#9A3828}
.compare-col.good h3{color:var(--olive)}
.compare-col li{
  list-style:none;display:grid;grid-template-columns:1.1rem 1fr;gap:.6rem;
  font-size:.95rem;line-height:1.6;padding:.42rem 0;font-weight:300;
}
.compare-col.bad li{color:#7a2a1c}
.compare-col.good li{color:var(--ink-2)}
.compare-col li span{font-weight:600}

.explain{
  background:var(--olive-deep);color:#fff;border-radius:16px;
  padding:clamp(1.75rem,4vw,2.5rem);margin-top:clamp(1rem,3vw,2rem);
  display:grid;grid-template-columns:repeat(3,1fr);gap:clamp(1.5rem,3vw,2.5rem);
}
.explain h3{
  font-family:'Bebas Neue',sans-serif;font-size:1.2rem;letter-spacing:.045em;
  color:#fff;margin-bottom:.5rem;font-weight:400;
}
.explain p{font-size:.9rem;line-height:1.65;color:rgba(255,255,255,.66);font-weight:300}
.explain svg{color:rgba(255,255,255,.55);margin-bottom:.9rem;display:block}

/* pharmacy */
.pharmacy{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:clamp(2rem,5vw,4rem);align-items:center}
.pharmacy .d2{color:var(--ink);margin-bottom:1.1rem}
.pharmacy > div > p{font-size:1.08rem;line-height:1.78;color:var(--ink-2);font-weight:300;max-width:56ch}
.pharmacy-card{background:var(--olive-deep);border-radius:18px;padding:clamp(1.75rem,3vw,2.4rem);color:#fff}
.pharmacy-card h3{font-family:'Bebas Neue',sans-serif;font-size:1.9rem;letter-spacing:.05em;font-weight:400;margin-bottom:.3rem}
.pharmacy-card .sub{
  font-size:.85rem;color:rgba(255,255,255,.55);margin-bottom:1.2rem;
  padding-bottom:1.2rem;border-bottom:1px solid rgba(255,255,255,.16);
}
.pharmacy-card li{
  list-style:none;display:grid;grid-template-columns:1.1rem 1fr;gap:.7rem;align-items:start;
  padding:.62rem 0;border-bottom:1px solid rgba(255,255,255,.1);
  font-size:1rem;line-height:1.55;color:rgba(255,255,255,.88);font-weight:300;
}
.pharmacy-card li:last-child{border-bottom:none}
.pharmacy-card li svg{margin-top:.22rem;color:var(--moss-light);flex-shrink:0}

/* ══════════════════════════════════════════════════════════════
   ORDER / CONFIRM
   ══════════════════════════════════════════════════════════════ */
#page-order{padding-top:92px;background:var(--cream)}
.order-shell{max-width:62rem;margin:0 auto;padding:clamp(2rem,6vh,4rem) var(--gut)}
.order-h1{font-family:'Bebas Neue',sans-serif;font-size:2.4rem;letter-spacing:.04em;font-weight:400;color:var(--ink);margin-bottom:.4rem}
.order-sub{color:var(--text-muted);font-size:.95rem;margin-bottom:2.5rem;font-weight:300}
.order-grid{display:grid;grid-template-columns:1.2fr 1fr;gap:2rem;align-items:start}
.form-section{background:#fff;border-radius:16px;border:1px solid var(--border);padding:1.75rem;margin-bottom:1.2rem}
.form-section-title{font-weight:600;font-size:.8rem;color:var(--text-muted);margin-bottom:1.25rem}
.form-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.form-group{margin-bottom:.9rem}
.form-label{font-size:.8rem;font-weight:500;color:var(--text-muted);margin-bottom:.35rem;display:block}
.form-input{
  width:100%;padding:.75rem 1rem;border:1.5px solid var(--border);border-radius:10px;
  font-family:'Barlow',sans-serif;font-size:.95rem;color:var(--ink);
  background:var(--cream);outline:none;transition:border-color .2s,background .2s;
}
.form-input:focus{border-color:var(--moss);background:#fff}
.order-summary{background:#fff;border-radius:16px;border:1px solid var(--border);padding:1.75rem;position:sticky;top:96px}
.os-title{font-weight:600;font-size:.8rem;color:var(--text-muted);margin-bottom:1.25rem}
.os-item{display:flex;justify-content:space-between;align-items:flex-start;padding:.6rem 0;border-bottom:1px solid var(--border)}
.os-item:last-child{border-bottom:none}
.os-item-name{font-size:.92rem;color:var(--ink);font-weight:500}
.os-item-dose{font-size:.78rem;color:var(--text-muted);margin-top:2px}
.os-item-price{font-size:.9rem;color:var(--text-muted)}
.os-total{display:flex;justify-content:space-between;align-items:center;margin-top:.9rem;padding-top:.9rem;border-top:2px solid var(--border)}
.os-total-label{font-weight:600;color:var(--ink)}
.os-total-price{font-family:'Bebas Neue',sans-serif;font-size:1.6rem;letter-spacing:.03em;color:var(--olive)}
.os-note{font-size:.8rem;color:var(--text-muted);margin-top:.75rem;line-height:1.6;font-weight:300}
.btn-place-order{
  width:100%;background:var(--olive);color:#fff;border:none;border-radius:999px;padding:1rem;
  font-family:'Barlow',sans-serif;font-size:1rem;font-weight:600;cursor:pointer;margin-top:1.1rem;transition:background .2s;
}
.btn-place-order:hover{background:var(--olive-deep)}

#page-confirm{background:var(--cream);align-items:center;justify-content:center;min-height:100vh}
#page-confirm.active{display:flex}
.confirm-inner{text-align:center;max-width:32rem;padding:var(--gut)}
.confirm-icon{
  width:68px;height:68px;border-radius:50%;background:var(--moss-pale);
  display:flex;align-items:center;justify-content:center;margin:0 auto 2rem;
  border:1.5px solid var(--moss);color:var(--olive);
}
.confirm-h1{font-family:'Bebas Neue',sans-serif;font-size:2.4rem;letter-spacing:.04em;font-weight:400;color:var(--ink);margin-bottom:.8rem}
.confirm-sub{color:var(--text-muted);font-size:1rem;line-height:1.72;margin-bottom:2rem;font-weight:300}
.confirm-box{background:#fff;border-radius:14px;border:1px solid var(--border);padding:1.4rem;margin-bottom:2rem;text-align:left}
.cb-row{display:flex;justify-content:space-between;font-size:.9rem;padding:.42rem 0}
.cb-label{color:var(--text-muted)}
.cb-val{font-weight:600;color:var(--ink)}

/* ══════════════════════════════════════════════════════════════
   CHAT
   ══════════════════════════════════════════════════════════════ */
.msg-ai{background:var(--moss-pale);color:var(--ink);padding:.75rem 1rem;border-radius:16px 16px 16px 4px;font-size:.9rem;line-height:1.6;max-width:90%;align-self:flex-start}
.msg-user{background:var(--olive);color:#fff;padding:.75rem 1rem;border-radius:16px 16px 4px 16px;font-size:.9rem;line-height:1.6;max-width:90%;align-self:flex-end}
.msg-typing{background:var(--moss-pale);color:var(--text-muted);padding:.75rem 1rem;border-radius:16px 16px 16px 4px;align-self:flex-start;display:flex;gap:4px;align-items:center}
.typing-dot{width:6px;height:6px;border-radius:50%;background:var(--moss);animation:typingBounce 1.2s ease-in-out infinite}
.typing-dot:nth-child(2){animation-delay:.2s}
.typing-dot:nth-child(3){animation-delay:.4s}
@keyframes typingBounce{0%,60%,100%{transform:translateY(0)}30%{transform:translateY(-6px)}}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════ */
@media (max-width:1100px){
  .values{grid-template-columns:repeat(2,1fr)}
  .about-steps{grid-template-columns:repeat(2,1fr)}
  .explain{grid-template-columns:1fr}
}

@media (max-width:900px){
  nav{padding:.7rem var(--gut)}
  .nav-links{display:none}
  .nav-hamburger{display:flex}
  .nav-logo img{height:34px}

  /* on a phone the capsule pins to the top and the copy runs beneath it */
  .stage-canvas{height:42vh;top:58px}
  .stage-panels{margin-top:-42vh}
  .stage-panel{
    min-height:auto;align-items:flex-start;
    padding-top:calc(42vh + 58px + 1.25rem);padding-bottom:3.5rem;
  }
  .stage-hero{min-height:100vh;min-height:100svh}
  .hero-copy{max-width:100%;padding-top:0}
  .bottle-fallback{left:50%;top:50%;width:clamp(130px,34vw,180px)}
  .hero-actions .btn{flex:1 1 100%;text-align:center}
  .hero-figures{gap:1.5rem}
  .stage-scroll{display:none}

  #annotation-stage{
    grid-template-columns:1fr;gap:1.5rem;
    padding-top:calc(42vh + 58px + 1.25rem);padding-bottom:4rem;
  }
  .annot,.annot:nth-child(even){justify-self:stretch;text-align:left;max-width:100%}
  .annot:nth-child(even) .annot-rule::after{left:auto;right:0}
  .annot-title{position:static;transform:none;width:100%;opacity:1;margin-bottom:1.5rem;text-align:left}

  .steps{grid-template-columns:1fr}
  .chapter{height:88vh;height:88svh;min-height:460px}
  .chapter-body.right{margin-left:0;text-align:left}
  .chapter-body.right p{margin-left:0}

  .ing-index{grid-template-columns:1fr}
  .library-head{display:block}
  .library-head .btn{margin-top:1.5rem}

  .mission,.principles,.founder,.pharmacy{grid-template-columns:1fr}
  .founder-photo{max-width:20rem;aspect-ratio:4/4}
  .compare{grid-template-columns:1fr}
  .order-grid{grid-template-columns:1fr}
  .form-row{grid-template-columns:1fr}
  .order-summary{position:static}
}

@media (max-width:560px){
  .values,.about-steps{grid-template-columns:1fr}
  .hero-figures{flex-wrap:wrap;gap:1.25rem 2rem}
  .figure-l{max-width:none}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important}
  .annot{opacity:1;transform:none}
}

/* inner pages render their own .page wrappers; give them their padding back */
#page-quiz .page{padding:34px 20px 80px}
#page-ingredients .page{padding:34px 20px 80px}

/* the page you are on, in the nav */
.nav-links a[aria-current="page"]{color:var(--ink)}
.nav-links a[aria-current="page"]::after{opacity:1;transform:scaleX(1)}
