/* ==========================================================================
   NuVida site stylesheet
   Hand-coded replacement for Beaver Builder. One file, no framework.
   ========================================================================== */

/* ---------- Fonts (self-hosted, latin subset) ---------- */
@font-face{font-family:"Montserrat";font-style:normal;font-weight:300;font-display:swap;src:url("../fonts/montserrat-latin-300-normal.woff2") format("woff2");}
@font-face{font-family:"Montserrat";font-style:normal;font-weight:400;font-display:swap;src:url("../fonts/montserrat-latin-400-normal.woff2") format("woff2");}
@font-face{font-family:"Montserrat";font-style:normal;font-weight:500;font-display:swap;src:url("../fonts/montserrat-latin-500-normal.woff2") format("woff2");}
@font-face{font-family:"Montserrat";font-style:normal;font-weight:600;font-display:swap;src:url("../fonts/montserrat-latin-600-normal.woff2") format("woff2");}
@font-face{font-family:"Montserrat";font-style:normal;font-weight:700;font-display:swap;src:url("../fonts/montserrat-latin-700-normal.woff2") format("woff2");}
@font-face{font-family:"Montserrat Alternates";font-style:normal;font-weight:500;font-display:swap;src:url("../fonts/montserrat-alternates-latin-500-normal.woff2") format("woff2");}
@font-face{font-family:"Montserrat Alternates";font-style:normal;font-weight:600;font-display:swap;src:url("../fonts/montserrat-alternates-latin-600-normal.woff2") format("woff2");}
@font-face{font-family:"Montserrat Alternates";font-style:normal;font-weight:700;font-display:swap;src:url("../fonts/montserrat-alternates-latin-700-normal.woff2") format("woff2");}

/* ---------- Tokens ---------- */
:root {
  --night: #101f17;
  --forest: #17301f;
  --forest-2: #1f3d2a;
  --bottle: #3d6a4f;
  --sage: #d9e3d2;
  --lime: #c9e147;
  --lime-deep: #aac22e;
  --cream: #f6f5ef;
  --paper: #ffffff;
  --ink: #18201b;
  --muted: #56625a;
  --line: rgba(24, 32, 27, 0.1);
  --line-light: rgba(255, 255, 255, 0.14);

  --font-display: "Montserrat Alternates", "Montserrat", system-ui, sans-serif;
  --font-body: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 22px;
  --radius-sm: 12px;
  --shadow: 0 30px 60px -30px rgba(16, 31, 23, 0.35);
  --container: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(72px, 10vw, 128px);
  --header-h: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); line-height: 1.12; letter-spacing: -0.01em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 4px; }
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

.skip-link { position: absolute; left: -999px; top: 8px; z-index: 1000; background: var(--lime); color: var(--night); padding: 10px 16px; border-radius: 8px; font-weight: 600; }
.skip-link:focus { left: 8px; }

/* ---------- Type helpers ---------- */
.eyebrow {
  margin: 0 0 16px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bottle);
}
.eyebrow--lime { color: var(--lime); }
.h2 { font-size: clamp(32px, 4.4vw, 52px); font-weight: 600; margin-bottom: 20px; color: var(--forest); }
.h2--light { color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 28px;
  border-radius: 999px;
  border: 2px solid transparent;
  font-weight: 600; font-size: 15px; letter-spacing: 0.02em;
  text-decoration: none; white-space: nowrap;
  transition: transform .25s var(--ease), background-color .25s, color .25s, border-color .25s, box-shadow .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn--sm { padding: 10px 20px; font-size: 14px; }
.btn--block { width: 100%; }
.btn--lime { background: var(--lime); color: var(--night); box-shadow: 0 10px 30px -10px rgba(201, 225, 71, .6); }
.btn--lime:hover { background: #d6ec5c; }
.btn--ghost { color: #fff; border-color: rgba(255,255,255,.35); }
.btn--ghost:hover { border-color: var(--lime); color: var(--lime); }
.btn--dark { background: var(--forest); color: #fff; }
.btn--dark:hover { background: var(--night); }
.btn--outline { color: var(--forest); border-color: var(--forest); }
.btn--outline:hover { background: var(--forest); color: #fff; }

/* ---------- Topography texture (one shared SVG used as a mask) ---------- */
.topo-bg, .hero__topo, .packs__topo {
  position: absolute; inset: 0; pointer-events: none;
  -webkit-mask: url("../img/topo.svg") center / 900px repeat;
          mask: url("../img/topo.svg") center / 900px repeat;
}
.topo-bg { background: var(--bottle); opacity: .12; }
.topo-bg--soft { opacity: .07; }

/* ---------- Announcement bar ---------- */
.announce {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 10px var(--gutter);
  background: var(--lime); color: var(--night);
  font-size: 14px; text-align: center; text-decoration: none;
}
.announce strong { font-weight: 700; }
.announce__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--forest); flex: none; animation: pulse 2.4s infinite; }
.announce__arrow { transition: transform .25s var(--ease); }
.announce:hover .announce__arrow { transform: translateX(4px); }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .3; } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(16, 31, 23, .82);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-light);
  transition: background-color .3s;
}
.site-header.is-scrolled { background: rgba(16, 31, 23, .96); }
.site-header__inner { display: flex; align-items: center; gap: 32px; height: var(--header-h); }
.site-header__logo img { width: 150px; }
.site-nav { margin-left: auto; }
.site-nav__list { display: flex; gap: 32px; }
.site-nav__list a {
  position: relative; color: rgba(255,255,255,.82); text-decoration: none; font-size: 15px; font-weight: 500;
  transition: color .2s;
}
.site-nav__list a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px;
  background: var(--lime); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.site-nav__list a:hover, .site-nav__list a[aria-current="page"] { color: #fff; }
.site-nav__list a:hover::after, .site-nav__list a[aria-current="page"]::after { transform: scaleX(1); }

.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; background: none; border: 0; padding: 10px; }
.nav-toggle span { display: block; height: 2px; background: #fff; border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.nav-toggle span + span { margin-top: 6px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(120% 90% at 80% 20%, var(--forest-2) 0%, var(--forest) 45%, var(--night) 100%);
  padding: clamp(56px, 8vw, 110px) 0 clamp(72px, 9vw, 120px);
}
.hero__topo { background: var(--lime); opacity: .06; }
.hero__glow {
  position: absolute; width: 60vw; height: 60vw; right: -15vw; top: -20vw; pointer-events: none;
  background: radial-gradient(closest-side, rgba(201,225,71,.16), transparent 70%);
}
.hero__grid { position: relative; display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; gap: 48px; }
.hero__title { font-size: clamp(38px, 5.2vw, 64px); font-weight: 600; margin-bottom: 24px; }
.hero__title span { display: block; color: var(--lime); }
.hero__lead { max-width: 520px; font-size: clamp(17px, 1.6vw, 19px); color: rgba(255,255,255,.78); font-weight: 300; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero__actions--center { justify-content: center; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 40px; font-size: 14px; color: rgba(255,255,255,.7); }
.hero__trust li { display: flex; align-items: center; gap: 10px; }
.hero__trust img { width: 32px; height: auto; }
.hero__trust svg { width: 20px; height: 20px; fill: var(--lime); }

.hero__visual { position: relative; display: grid; place-items: center; min-height: 480px; }
.hero__halo {
  position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(201,225,71,.22) 0%, rgba(61,106,79,.25) 45%, transparent 70%);
  border: 1px solid rgba(201,225,71,.18);
}
.hero__bottle { position: relative; width: min(250px, 50%); filter: drop-shadow(0 40px 50px rgba(0,0,0,.55)); animation: float 7s ease-in-out infinite; }
.hero__pack {
  position: absolute; width: min(200px, 38%); left: calc(50% + min(84px, 17%)); bottom: -2%;
  transform: rotate(10deg); filter: drop-shadow(0 25px 30px rgba(0,0,0,.5));
  animation: float 7s ease-in-out -3.5s infinite;
}
@keyframes float { 0%,100% { translate: 0 0; } 50% { translate: 0 -12px; } }

.hero__scroll {
  position: absolute; left: 50%; bottom: 20px; translate: -50% 0;
  width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 50%; border: 1px solid var(--line-light); color: #fff;
}
.hero__scroll svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Press ---------- */
.press { background: var(--paper); border-bottom: 1px solid var(--line); }
.press__inner { display: flex; align-items: center; justify-content: center; gap: clamp(24px, 5vw, 64px); padding-top: 40px; padding-bottom: 40px; }
.press__logo img { width: clamp(160px, 20vw, 230px); }
.press__quote { margin: 0; padding-left: clamp(24px, 5vw, 64px); border-left: 1px solid var(--line); }
.press__quote p { margin: 0 0 6px; font-family: var(--font-display); font-size: clamp(18px, 2vw, 24px); font-weight: 500; color: var(--forest); }
.press__quote a { font-size: 14px; font-weight: 600; color: var(--bottle); text-decoration: none; }
.press__quote a:hover { text-decoration: underline; }

/* ---------- Product ---------- */
.product { padding: var(--section) 0; }
.product__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 88px); align-items: start; }
.product__media { position: sticky; top: calc(var(--header-h) + 32px); }
.product__stage {
  position: relative; overflow: hidden; display: grid; place-items: center;
  aspect-ratio: 4 / 5; border-radius: var(--radius); padding-bottom: 64px;
  background: linear-gradient(160deg, var(--sage), #eef2e8);
}
.product__stage img { position: relative; width: 44%; filter: drop-shadow(0 30px 30px rgba(16,31,23,.3)); }

/* Supplement Facts triggers */
.facts-btn {
  position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px;
  border: 1px solid rgba(23,48,31,.18); border-radius: 999px; cursor: pointer;
  background: rgba(255,255,255,.85); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  font: inherit; font-size: 14px; font-weight: 600; color: var(--forest); white-space: nowrap;
  box-shadow: 0 6px 18px rgba(16,31,23,.12); transition: background-color .2s, box-shadow .2s, transform .2s;
}
.facts-btn:hover { background: #fff; box-shadow: 0 10px 24px rgba(16,31,23,.18); transform: translateX(-50%) translateY(-1px); }
.facts-btn:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; }
.facts-btn svg { width: 18px; height: 18px; fill: none; stroke: var(--bottle); stroke-width: 1.8; stroke-linecap: round; }
.link-btn { padding: 0; border: 0; background: none; font: inherit; color: var(--bottle); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.link-btn:hover { color: var(--forest); }

/* Pop-up image viewer */
.lightbox { position: fixed; inset: 0; z-index: 1100; display: grid; place-items: center; padding: 20px; background: rgba(8,16,12,.8); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); animation: lb-fade .2s ease-out; }
.lightbox[hidden] { display: none; }
.lightbox__inner { position: relative; width: min(680px, 100%); animation: lb-pop .25s var(--ease); }
.lightbox__inner img { display: block; width: 100%; height: auto; max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px); object-fit: contain; border-radius: var(--radius); box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.lightbox__close {
  position: absolute; top: -14px; right: -14px; z-index: 1; width: 44px; height: 44px; display: grid; place-items: center;
  border: 0; border-radius: 50%; background: var(--lime); color: var(--night); cursor: pointer; box-shadow: 0 6px 18px rgba(0,0,0,.35);
}
.lightbox__close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.lightbox__close:hover { background: #fff; }
.lightbox__close:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
body.has-lightbox { overflow: hidden; }
@keyframes lb-fade { from { opacity: 0; } }
@keyframes lb-pop { from { opacity: 0; transform: scale(.96); } }
@media (max-width: 560px) { .lightbox__close { top: -10px; right: -6px; } }
.product__body > p { color: var(--muted); font-size: 18px; }

.benefits { display: grid; gap: 12px; margin: 32px 0 36px; }
.benefits li {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 20px; border-radius: var(--radius-sm);
  background: var(--paper); border: 1px solid var(--line);
  font-family: var(--font-display); font-weight: 600; font-size: 18px; color: var(--forest);
}
.benefits__icon { flex: none; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: var(--forest); }
.benefits__icon svg { width: 20px; fill: none; stroke: var(--lime); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.buy-card {
  padding: 28px; border-radius: var(--radius);
  background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow);
  scroll-margin-top: 30vh; /* lands the Amazon Pay button near center when jumped to */
}
.buy-card__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 20px; }
.buy-card__name { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 20px; color: var(--forest); }
.buy-card__meta { margin: 0; font-size: 14px; color: var(--muted); }
.buy-card__price { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 28px; color: var(--forest); }
.buy-card__or { display: flex; align-items: center; gap: 14px; margin: 18px 0; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; }
.buy-card__or::before, .buy-card__or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.amazon-pay-slot { display: flex; justify-content: center; min-height: 56px; }
.buy-card__fine { margin: 14px 0 0; font-size: 13px; line-height: 1.5; color: var(--muted); text-align: center; }
.buy-card.is-highlighted { animation: ring 1.6s var(--ease); }
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(201,225,71,.9), var(--shadow); } 100% { box-shadow: 0 0 0 18px rgba(201,225,71,0), var(--shadow); } }

/* ---------- Pocket Packs ---------- */
.packs { position: relative; overflow: hidden; color: rgba(255,255,255,.8); background: var(--forest); padding: var(--section) 0; }
.packs__topo { background: #fff; opacity: .05; }
.packs__grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.packs__body p { font-size: 18px; max-width: 480px; }
.packs__actions { display: flex; align-items: center; gap: 20px; margin-top: 28px; }
.packs__prime { width: 60px; border-radius: 10px; }
.packs__visual img { width: min(420px, 90%); margin: 0 auto; transform: rotate(-6deg); filter: drop-shadow(0 40px 40px rgba(0,0,0,.45)); }

/* ---------- Formulas ---------- */
.formulas { position: relative; overflow: hidden; color: rgba(255,255,255,.85); padding: var(--section) 0; background: var(--night); }
.formulas__bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .45; }
.formulas::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(16,31,23,.95) 0%, rgba(16,31,23,.75) 55%, rgba(16,31,23,.4) 100%); }
.formulas__inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: center; }
.formulas__inner p { max-width: 620px; font-size: 18px; }
.formulas__badge { width: clamp(130px, 16vw, 200px); opacity: .95; }

/* ---------- Ingredients ---------- */
.ingredients { position: relative; overflow: hidden; padding: var(--section) 0; }
.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; position: relative; }
.section-head > p:last-child { color: var(--muted); font-size: 18px; }
.ingredients__grid { position: relative; display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.ing-card {
  display: flex; flex-direction: column;
  padding: 32px; border-radius: var(--radius);
  background: var(--paper); border: 1px solid var(--line);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.ing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.ing-card__num { font-family: var(--font-display); font-weight: 700; font-size: 14px; color: var(--lime-deep); letter-spacing: .1em; }
.ing-card h3 { font-size: 24px; font-weight: 600; color: var(--forest); margin: 10px 0 14px; }
.ing-card p { color: var(--muted); font-size: 16px; }
.ing-card a { margin-top: auto; font-size: 14px; font-weight: 600; color: var(--bottle); text-decoration: none; }
.ing-card a:hover { text-decoration: underline; }
.ingredients__more { position: relative; margin: 48px 0 0; text-align: center; }

/* ---------- Closer ---------- */
.closer { position: relative; overflow: hidden; text-align: center; color: rgba(255,255,255,.85); padding: calc(var(--section) * 1.2) 0; background: var(--night); }
.closer__bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.closer::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(16,31,23,.55), rgba(16,31,23,.85)); }
.closer__inner { position: relative; z-index: 2; }
.closer__inner p { font-size: 19px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: rgba(255,255,255,.65); font-size: 15px; padding-top: 72px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--lime); }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr auto; gap: 40px; padding-bottom: 48px; }
.site-footer__brand img { width: 140px; margin-bottom: 14px; }
.site-footer__brand p { margin-bottom: 6px; }
.site-footer__label { margin-bottom: 14px; font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: #fff; }
.site-footer__nav li + li { margin-top: 8px; }
.site-footer__badge img { width: 84px; opacity: .85; }
.site-footer__bottom { padding-top: 24px; padding-bottom: 32px; border-top: 1px solid var(--line-light); font-size: 13px; }
.site-footer__bottom p { margin: 0 0 6px; }
.site-footer__disclaimer { opacity: .7; max-width: 760px; }

/* ---------- Site notice (currently: restocking) ---------- */
.notice { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 20px; background: rgba(8, 16, 12, .7); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.notice[hidden] { display: none; }
.notice__card { max-width: 400px; padding: 32px; border-radius: var(--radius); background: var(--paper); text-align: center; animation: pop .4s var(--ease); }
.notice__card img { margin: 0 auto 16px; border-radius: 12px; }
.notice__card p { font-size: 17px; color: var(--ink); }
.notice__card .notice__eyebrow { margin: 0 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--bottle); }
.notice__title { font-size: 26px; font-weight: 600; color: var(--forest); margin-bottom: 12px; }
.notice__card .notice__text { font-size: 16px; line-height: 1.6; color: var(--muted); margin-bottom: 24px; }
.notice__card .notice__text--plain { font-size: 17px; color: var(--ink); }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.97); } }

/* ---------- Scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal--delay { transition-delay: .12s; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .site-header__cta { display: none; }
  .nav-toggle { display: block; }
  .site-nav { position: absolute; left: 0; right: 0; top: 100%; margin: 0; pointer-events: none; }
  .site-nav__list {
    flex-direction: column; gap: 0; padding: 12px var(--gutter) 28px;
    background: var(--night); border-bottom: 1px solid var(--line-light);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .25s, transform .25s var(--ease), visibility .25s;
  }
  .site-nav__list.is-open { transform: none; opacity: 1; visibility: visible; pointer-events: auto; }
  .site-nav__list a { display: block; padding: 14px 0; font-size: 18px; border-bottom: 1px solid var(--line-light); }
  .site-nav__list a::after { display: none; }

  .hero__grid, .product__grid, .packs__grid { grid-template-columns: 1fr; }
  .hero { text-align: center; }
  .hero__lead { margin-left: auto; margin-right: auto; }
  .hero__actions { justify-content: center; }
  .hero__trust { flex-direction: column; align-items: center; gap: 10px; }
  .hero__trust li { text-align: left; }
  .hero__visual { min-height: 380px; order: -1; }
  .hero__bottle { width: min(185px, 44%); }
  .hero__pack { width: min(150px, 33%); left: auto; right: max(4%, calc(50% - 175px)); bottom: 0; }
  .product__media { position: static; }
  .product__stage { aspect-ratio: 1 / 1; }
  .product__stage img { width: 34%; }
  .packs__body { text-align: center; }
  .packs__body p { margin-left: auto; margin-right: auto; }
  .packs__actions { justify-content: center; }
  .formulas__inner { grid-template-columns: 1fr; text-align: center; }
  .formulas__inner p { margin-left: auto; margin-right: auto; }
  .formulas__badge { margin: 0 auto; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .announce { font-size: 13px; }
  .press__inner { flex-direction: column; text-align: center; }
  .press__quote { padding-left: 0; border-left: 0; }
  .ingredients__grid { grid-template-columns: 1fr; }
  .ing-card { padding: 26px; }
  .buy-card { padding: 22px; }
  .hero__actions .btn { width: 100%; }
  .site-footer__grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   Inner pages
   ========================================================================== */
.page-hero {
  position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(120% 120% at 85% 0%, var(--forest-2) 0%, var(--forest) 50%, var(--night) 100%);
  padding: clamp(56px, 8vw, 96px) 0 clamp(48px, 7vw, 80px);
}
.page-hero__inner { position: relative; max-width: 820px; }
.page-hero--404 { min-height: 62vh; display: flex; align-items: center; }
.page-hero--404 .hero__actions { margin-top: 32px; }
.page-hero__title { font-size: clamp(34px, 5vw, 56px); font-weight: 600; margin-bottom: 18px; }
.page-hero__lead { font-size: clamp(17px, 1.6vw, 19px); font-weight: 300; color: rgba(255,255,255,.78); max-width: 640px; margin: 0; }

/* ---------- Sources ---------- */
.research { display: grid; grid-template-columns: 220px 1fr; gap: clamp(32px, 6vw, 80px); padding-top: var(--section); padding-bottom: var(--section); }
.research__toc { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; }
.research__toc .site-footer__label { color: var(--muted); }
.research__toc li + li { margin-top: 10px; }
.research__toc a { color: var(--forest); text-decoration: none; font-weight: 500; }
.research__toc a:hover { color: var(--bottle); text-decoration: underline; }
.research__body { max-width: 780px; }
.research__dose-note { margin: 0 0 48px; padding: 14px 18px; border-left: 3px solid var(--lime); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; background: var(--paper); font-size: 15px; color: var(--muted); }
.research__group + .research__group { margin-top: 72px; }
.study {
  padding: 32px; border-radius: var(--radius);
  background: var(--paper); border: 1px solid var(--line);
}
.study + .study { margin-top: 20px; }
.study__note { margin: 12px 0 0 4px; font-size: 13px; color: var(--muted); }
.study__tag { display: inline-block; margin-bottom: 14px; padding: 4px 12px; border-radius: 10px; background: var(--sage); color: var(--forest); font-size: 12px; font-weight: 600; letter-spacing: .04em; }
.study h3 { font-size: 22px; font-weight: 600; color: var(--forest); margin-bottom: 12px; }
.study > p { color: var(--muted); }
.study__cite { margin-top: 18px; padding-left: 16px; border-left: 3px solid var(--lime); font-size: 14px; line-height: 1.6; }
.study__link { font-size: 14px; font-weight: 600; color: var(--bottle); text-decoration: none; }
.study__link:hover { text-decoration: underline; }
.research__note { padding: 32px; border-radius: var(--radius); background: var(--forest); color: rgba(255,255,255,.8); }
.research__note h2 { font-size: 24px; font-weight: 600; color: #fff; margin-bottom: 14px; }
.research__links { display: flex; flex-wrap: wrap; gap: 10px; }
.research__links a { display: inline-block; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line-light); color: #fff; text-decoration: none; font-size: 14px; font-weight: 500; }
.research__links a:hover { border-color: var(--lime); color: var(--lime); }
/* Legal pages (Privacy Policy) */
.legal { color: var(--ink); line-height: 1.7; }
.legal a { color: var(--bottle); font-weight: 500; }
.legal a:hover { color: var(--forest); }
.legal__dates { display: inline-block; margin-bottom: 28px; padding: 10px 16px; border-radius: 10px; background: var(--sage); color: var(--forest); font-size: 14px; font-weight: 600; line-height: 1.6; }
.legal__section { margin-top: 56px; scroll-margin-top: calc(var(--header-h) + 24px); }
.legal h2 { font-size: clamp(24px, 2.6vw, 30px); font-weight: 600; color: var(--forest); margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.legal h3 { font-size: 18px; font-weight: 600; color: var(--forest); margin: 28px 0 10px; }
.legal p, .legal li { color: #3b4740; }
.legal ul { margin: 0 0 1em; padding-left: 22px; list-style: disc; }
.legal li { margin-bottom: 10px; }
.legal li::marker { color: var(--bottle); }
.legal strong { color: var(--ink); font-weight: 600; }
.legal__address { font-style: normal; padding: 20px 24px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); line-height: 1.8; }
.research__disclaimer { margin-top: 24px; font-size: 14px; color: var(--muted); }
.closer--compact { padding: 80px 0; background: radial-gradient(120% 120% at 50% 0%, var(--forest-2), var(--night)); }
.closer--compact::before { display: none; }

@media (max-width: 960px) {
  .research { grid-template-columns: 1fr; }
  .research__toc { position: static; }
  .research__toc ul { display: flex; flex-wrap: wrap; gap: 8px 20px; }
  .research__toc li + li { margin-top: 0; }
}
@media (max-width: 640px) {
  .study, .research__note { padding: 24px; }
}

/* ---------- Your Experience (feedback form) ---------- */
.feedback { padding: var(--section) 0; }
.feedback__grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.feedback__form { padding: clamp(24px, 4vw, 40px); border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); }
.field { margin-bottom: 20px; }
.field label { display: block; margin-bottom: 8px; font-weight: 600; font-size: 15px; color: var(--forest); }
.field input, .field textarea, .field select {
  width: 100%; padding: 14px 16px; border-radius: var(--radius-sm);
  border: 1.5px solid rgba(24,32,27,.18); background: var(--cream);
  font: inherit; font-size: 16px; color: var(--ink);
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field textarea { resize: vertical; min-height: 160px; }
.field select {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%233d6a4f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.field__opt { font-weight: 400; color: var(--muted); font-size: 13px; }
.contact__card { margin: 8px 0 24px; }
.contact__card a { color: var(--bottle); font-weight: 600; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--bottle); background: #fff; box-shadow: 0 0 0 4px rgba(201,225,71,.35); }
.field.has-error input, .field.has-error textarea, .field.has-error select { border-color: #b3402f; }
.field__error { margin: 6px 0 0; min-height: 0; font-size: 14px; color: #b3402f; }
.field__error:empty { display: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-bottom: 20px; padding: 14px 18px; border-radius: var(--radius-sm); font-weight: 500; }
.form-status.is-success { background: var(--sage); color: var(--forest); }
.form-status.is-error { background: #f8e3df; color: #8a2f22; }
.feedback__privacy { margin: 14px 0 0; font-size: 13px; color: var(--muted); text-align: center; }
.feedback__privacy a { color: var(--bottle); }
.btn[disabled] { opacity: .6; pointer-events: none; }
.feedback__aside h2 { font-size: 26px; font-weight: 600; color: var(--forest); margin-bottom: 14px; }
.feedback__aside > p { color: var(--muted); }
.feedback__points { margin: 24px 0; display: grid; gap: 12px; }
.feedback__points li { position: relative; padding-left: 30px; font-weight: 500; color: var(--forest); }
.feedback__points li::before { content: ""; position: absolute; left: 0; top: .45em; width: 16px; height: 16px; border-radius: 50%; background: var(--lime); box-shadow: inset 0 0 0 4px var(--forest); }
.feedback__alt a { color: var(--bottle); font-weight: 600; }
@media (max-width: 960px) { .feedback__grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

/* ---------- Checkout hand-off page (/checkout/) ---------- */
.checkout-page { min-height: 100vh; background: radial-gradient(120% 120% at 85% 0%, var(--forest-2) 0%, var(--forest) 50%, var(--night) 100%); }
.checkout { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 24px; }
.checkout__card { width: min(440px, 100%); padding: 40px 32px; border-radius: var(--radius); background: var(--paper); text-align: center; box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.checkout__logo { width: 120px; margin: 0 auto 28px; filter: brightness(0) saturate(100%) invert(15%) sepia(20%) saturate(900%) hue-rotate(90deg); }
.checkout__title { font-size: 24px; font-weight: 600; color: var(--forest); margin-bottom: 10px; }
.checkout__text { color: var(--muted); margin-bottom: 24px; }
.checkout__spinner { width: 40px; height: 40px; margin: 0 auto 20px; border-radius: 50%; border: 3px solid var(--sage); border-top-color: var(--bottle); animation: spin .8s linear infinite; }
.checkout__spinner[hidden] { display: none; }
.checkout .amazon-pay-slot { opacity: 0; pointer-events: none; transition: opacity .3s; }
.checkout .amazon-pay-slot.is-visible { opacity: 1; pointer-events: auto; }
.checkout__fine { margin: 24px 0 0; font-size: 13px; color: var(--muted); }
.checkout__fine a { color: var(--bottle); font-weight: 600; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Stock switch ----------
   <html data-stock="out"> shows the sold-out messages and hides Amazon Pay.
   Change it to data-stock="in" (or remove it) to bring Amazon Pay back. */
[data-stock="out"] .when-in-stock { display: none !important; }
:root:not([data-stock="out"]) .when-sold-out { display: none !important; }
.buy-card__soon { margin-top: 18px; padding: 18px 20px; border-radius: var(--radius-sm); background: var(--sage); color: var(--forest); text-align: center; }
.buy-card__soon p { margin: 0; font-size: 15px; line-height: 1.55; }
.buy-card__soon .buy-card__soon-title { margin-bottom: 6px; font-family: var(--font-display); font-size: 20px; font-weight: 600; }

/* Popup headline stays on one line: size follows the card's width */
.notice__card { width: 100%; container-type: inline-size; }
.notice__title { font-size: 20px; }
@supports (font-size: 1cqi) { .notice__title { font-size: min(22px, 6.5cqi); white-space: nowrap; } }
@media (max-width: 420px) { .notice__card { padding: 28px 18px; } }
