/* =====================================================================
   PEEK — brand site
   Follows peek-brand-guidelines.md: one face (Poppins), white type on a
   single saturated flavor color, the number 27 doing the selling. Product
   renders sit front-on on white or surface with a soft ground shadow: no
   tilt, no reflection floor, no fruit, no gradients.

   Theming contract
   ----------------
   Every surface reads from a small token set. Sections change tone by
   overriding those tokens locally, so components never need per-section
   variants:
     --bg / --bg-2     page + raised band (guideline `surface` / `surface-raised`)
     --card / --fill   cards + inactive fills
     --fg / -2 / -3    text at three emphasis levels (`ink`, `ink-muted`)
     --line / -2       hairlines
     --accent          the active flavor color, for fills and bands
     --accent-ink      the text-safe version of it on light grounds
   `.is-dark` flips the neutrals; `.band` is a full-bleed flavor-color ground
   with white type and the hairline `type-outline`, exactly like the pack.
   ===================================================================== */

:root {
  /* --- brand palette --- */
  --peek-blue: #1b1f84;
  --peek-orange: #e98400;
  --peek-red: #d1372c;
  --orange-deep: #a45500;
  --red-deep: #b02a20;
  --type-outline: rgb(18 19 46 / 0.75);

  /* --- neutrals (light) --- */
  --bg: #ffffff;
  --bg-2: #f3f3f7;
  --card: #ffffff;
  --fill: #e2e2ea;
  --line: #e2e2ea;
  --line-2: rgb(18 19 46 / 0.2);
  --fg: #12132e;
  --fg-2: #5b5d73;
  --fg-3: #6b6d84;

  /* --- dark neutrals (used by .is-dark) --- */
  --dark: #0d0e22;
  --dark-2: #16183a;

  /* --- flavor accent: Blue Raspberry is the default, and the brand's
         no-flavor ground --- */
  --accent: var(--peek-blue);
  --accent-ink: var(--peek-blue);
  --accent-ink-dark: #9ca1ff;

  /* --- type --- */
  --sans: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --text-hero: clamp(3rem, 7.4vw, 6.6rem);
  --text-3xl: clamp(2.3rem, 5.2vw, 4.3rem);
  --text-2xl: clamp(1.9rem, 3.6vw, 2.9rem);
  --text-xl: clamp(1.35rem, 1.9vw, 1.8rem);
  --text-lg: 1.125rem;
  --text-base: 1rem;
  --text-sm: 0.875rem;
  --text-xs: 0.75rem;

  /* --- space --- */
  --gut: clamp(1rem, 4vw, 4rem);
  --sec-y: clamp(5rem, 10vw, 9rem);

  /* --- motion --- */
  --ti: 180ms cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --flavor-t: 700ms cubic-bezier(0.33, 0, 0.15, 1);
}

html[data-flavor='mango'] {
  --accent: var(--peek-orange);
  --accent-ink: var(--orange-deep);
  --accent-ink-dark: #f2a040;
}
html[data-flavor='watermelon'] {
  --accent: var(--peek-red);
  --accent-ink: var(--red-deep);
  --accent-ink-dark: #f07a70;
}

/* ---------- dark tone scope ---------- */
.is-dark {
  --bg: var(--dark);
  --bg-2: var(--dark-2);
  --card: var(--dark-2);
  --fill: #2a2d55;
  --line: #2a2d55;
  --line-2: rgb(255 255 255 / 0.2);
  --fg: #f3f3f7;
  --fg-2: #a3a5be;
  --fg-3: #8d8faa;
  --accent-ink: var(--accent-ink-dark);
  background: var(--bg);
  color: var(--fg);
}

/* ---------- flavor band: white type on the flavor color ----------
   White on peek-orange is only 2.9:1, so the pack runs a hairline dark
   outline behind all white type. It is on every flavor so they match. */
.band {
  --fg: #ffffff;
  --fg-2: rgb(255 255 255 / 0.92);
  --fg-3: rgb(255 255 255 / 0.85);
  --line-2: rgb(255 255 255 / 0.6);
  --outline-lg: -1px -1px 0 var(--type-outline), 1px -1px 0 var(--type-outline),
    -1px 1px 0 var(--type-outline), 1px 1px 0 var(--type-outline);
  --outline-sm: 0 0 1px var(--type-outline), 0 1px 2px rgb(18 19 46 / 0.4);
  background: var(--accent);
  color: #fff;
  text-shadow: var(--outline-sm);
  transition: background var(--flavor-t);
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: var(--text-base);
  line-height: 1.6;
}

.wrap {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: var(--gut);
}
.section {
  padding-block: var(--sec-y);
  position: relative;
}
/* raised neutral band */
.tone-2 {
  background: var(--bg-2);
}

/* ---------- shared type components ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-2);
  margin-bottom: 1.2rem;
}
/* the period from the wordmark: the brand's one glyph */
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--fg);
  flex: none;
}
.sec-title {
  font-size: var(--text-3xl);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
}
.sec-title em {
  font-style: italic;
  font-weight: 700;
  color: var(--accent-ink);
  transition: color var(--flavor-t);
}
.sec-lede {
  color: var(--fg-2);
  max-width: 46ch;
  margin-top: 1.25rem;
  font-size: var(--text-lg);
  line-height: 1.6;
}
.sec-head {
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}
.sec-head--center {
  text-align: center;
}
.sec-head--center .sec-lede {
  margin-inline: auto;
}

/* "0 SUGAR | 0 FAT | 0 CARBS": fixed wording, fixed order, bold italic caps */
.claim {
  font-weight: 700;
  font-style: italic;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}
.claim span {
  font-style: normal;
  font-weight: 500;
  opacity: 0.55;
  margin-inline: 0.1em;
}

/* FRUIT in caps over an italic Descriptor, like the pack */
.flavor-name span {
  font-weight: 700;
}
.flavor-name em {
  font-style: italic;
  font-weight: 500;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 52px;
  padding: 0 1.9rem;
  border-radius: 999px;
  background: var(--accent-ink);
  color: #fff;
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  text-shadow: none;
  transition: background var(--flavor-t), transform var(--ti), box-shadow var(--ti),
    color var(--ti), border-color var(--ti);
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -14px rgb(18 19 46 / 0.55);
}
.btn:active {
  transform: translateY(0);
}
.btn--ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--line-2);
}
.btn--ghost:hover {
  border-color: var(--fg);
  box-shadow: none;
}
.btn--light {
  background: #fff;
  color: var(--accent-ink);
}
.btn--sm {
  min-height: 42px;
  padding: 0 1.25rem;
  font-size: var(--text-xs);
}

/* ---------- flavor wash: the switch moment ---------- */
.flavor-wash {
  position: fixed;
  inset: 0;
  z-index: 70;
  pointer-events: none;
  opacity: 0;
}
.flavor-wash::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -30vh;
  width: 160vmax;
  aspect-ratio: 1;
  transform: translateX(-50%) scale(0.2);
  border-radius: 50%;
  background: var(--accent);
}
html.is-switching .flavor-wash {
  animation: wash 800ms cubic-bezier(0.33, 0, 0.15, 1) both;
}
html.is-switching .flavor-wash::before {
  animation: washScale 800ms cubic-bezier(0.33, 0, 0.15, 1) both;
}
@keyframes wash {
  0% {
    opacity: 0;
  }
  22% {
    opacity: 0.22;
  }
  100% {
    opacity: 0;
  }
}
@keyframes washScale {
  0% {
    transform: translateX(-50%) scale(0.15);
  }
  100% {
    transform: translateX(-50%) scale(1.25);
  }
}

/* ---------- nav ----------
   The nav is a flavor band: it starts on peek-blue (Blue Raspberry, the
   brand's no-flavor ground) and follows the selected flavor from there. */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 80;
  background: var(--accent);
  color: #fff;
  transition: transform 320ms var(--ease-out), background var(--flavor-t);
}
.nav.is-hidden {
  transform: translateY(-101%);
}
.nav__inner {
  max-width: 1240px;
  margin-inline: auto;
  padding: 0.85rem var(--gut);
  display: flex;
  align-items: center;
  gap: clamp(1rem, 4vw, 3rem);
}
.nav__logo {
  /* clear space: the height of the period on every side */
  padding: 6px 0;
}
.logo {
  width: 96px;
  height: auto;
}
.logo--lg {
  width: 150px;
}
.nav__links {
  display: flex;
  gap: 1.9rem;
  margin-left: auto;
  font-size: var(--text-sm);
  font-weight: 600;
  color: #fff;
  /* the pack's hairline outline, so white stays readable on peek-orange */
  text-shadow: 0 0 1px var(--type-outline), 0 1px 2px rgb(18 19 46 / 0.4);
}
.nav__links a {
  position: relative;
  transition: color var(--ti);
}
.nav__links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--ti);
}
.nav__links a:hover::after {
  transform: scaleX(1);
}
.nav .btn:hover {
  box-shadow: none;
}
@media (max-width: 860px) {
  .nav__links {
    display: none;
  }
  .nav .btn--sm {
    margin-left: auto;
  }
}
/* scroll progress rides the bottom edge of the nav */
.scroll-progress {
  position: absolute;
  inset: auto 0 0 0;
  height: 2px;
  pointer-events: none;
}
.scroll-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: #fff;
}

/* ============================ HERO ============================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 7.5rem 0 8.5rem;
  overflow: hidden;
  isolation: isolate;
}
.hero__type {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: -1;
  width: 100%;
  text-align: center;
  pointer-events: none;
}
/* the number does the talking, even in the background */
.hero__ghost {
  font-weight: 800;
  font-size: clamp(11rem, 34vw, 30rem);
  letter-spacing: -0.06em;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgb(18 19 46 / 0.07);
}

.hero__inner {
  position: relative;
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: var(--gut);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(1rem, 3vw, 3rem);
}
.hero__col--right {
  justify-self: end;
}

.hero__title {
  font-size: var(--text-hero);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.98;
}
.hero__title .line {
  display: block;
  overflow: hidden;
  /* Poppins' descenders sit low; keep the y in "your" unclipped */
  padding-bottom: 0.06em;
  margin-bottom: -0.06em;
}
.hero__title .line > span {
  display: block;
  animation: rise 900ms var(--ease-out) both;
}
.hero__title .line:nth-child(2) > span {
  animation-delay: 90ms;
}
.hero__title .line:nth-child(3) > span {
  animation-delay: 180ms;
}
.hero__title .accented {
  font-style: italic;
  color: var(--accent-ink);
  transition: color var(--flavor-t);
}
@keyframes rise {
  from {
    transform: translateY(104%);
  }
}
.hero__lede {
  color: var(--fg-2);
  max-width: 34ch;
  margin-top: 1.6rem;
  font-size: var(--text-lg);
  line-height: 1.55;
}
.hero .claim {
  margin-top: 1.1rem;
  font-size: var(--text-sm);
  color: var(--fg);
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

/* --- bottle stage: front-on render with a soft ground shadow --- */
.stage {
  position: relative;
  height: clamp(320px, 58vh, 560px);
  aspect-ratio: 0.344;
  display: grid;
  place-items: center;
}
.stage__floor {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 110%;
  height: 28px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at 50% 50%, rgb(18 19 46 / 0.28), transparent 68%);
  filter: blur(6px);
  z-index: 1;
  will-change: transform, opacity;
  animation: heroFloorBreathe 7s ease-in-out infinite;
}
/* Scroll parallax lives here, on its own layer. */
.stage__parallax {
  position: absolute;
  inset: 0;
  z-index: 2;
  will-change: transform;
}
/* The idle float lives here: vertical travel only, so the bottle stays
   straight and front-on. */
.stage__float {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  will-change: transform;
  animation: heroFloat 7s ease-in-out infinite;
}
@keyframes heroFloat {
  0%,
  100% {
    transform: translate3d(0, 3px, 0);
  }
  50% {
    transform: translate3d(0, -5px, 0);
  }
}
/* Same clock: the contact shadow tightens and fades as the bottle lifts. */
@keyframes heroFloorBreathe {
  0%,
  100% {
    transform: translateX(-50%) scale(1, 1);
    opacity: 1;
  }
  50% {
    transform: translateX(-50%) scale(0.9, 0.86);
    opacity: 0.74;
  }
}
.stage__bottle {
  position: absolute;
  z-index: 2;
  height: 100%;
  width: auto;
  opacity: 0;
  transform: translateY(14px);
  filter: drop-shadow(0 18px 22px rgb(18 19 46 / 0.16));
  transition: opacity 480ms var(--ease-out), transform 620ms var(--ease-out);
  will-change: transform;
}
.stage__bottle.is-active {
  opacity: 1;
  transform: translateY(0);
}

/* --- hero spec list --- */
.spec {
  display: grid;
  gap: 1.6rem;
  text-align: right;
}
.spec li {
  display: block;
  padding-right: 1.1rem;
  border-right: 2px solid var(--accent);
  transition: border-color var(--flavor-t);
}
.spec b {
  display: block;
  font-size: clamp(2.1rem, 3.1vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}
.spec span {
  display: block;
  font-size: clamp(0.8125rem, 0.95vw, 0.9375rem);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-top: 0.5rem;
}

/* --- flavor switch --- */
.flavor-switch {
  position: absolute;
  left: 50%;
  bottom: clamp(1.75rem, 4vw, 3rem);
  transform: translateX(-50%);
  display: flex;
  gap: 0.4rem;
  padding: 0.4rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  box-shadow: 0 10px 30px -16px rgb(18 19 46 / 0.35);
  z-index: 5;
}
.flavor-switch__btn {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35em;
  min-height: 40px;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  font-size: var(--text-sm);
  color: var(--fg-2);
  white-space: nowrap;
  transition: color var(--ti), background var(--ti);
}
.flavor-switch__btn b {
  font-weight: 700;
}
.flavor-switch__btn i {
  font-weight: 500;
}
.flavor-switch__btn:hover {
  color: var(--fg);
}
.flavor-switch__btn.is-active {
  color: #fff;
  background: var(--accent-ink);
}

/* ============================ MARQUEE ============================ */
.marquee {
  overflow: hidden;
  padding: 1.05rem 0;
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: 2.4rem;
  width: max-content;
  animation: slide 34s linear infinite;
}
.marquee__track span {
  font-size: clamp(1.05rem, 1.9vw, 1.5rem);
  font-weight: 800;
  letter-spacing: 0.01em;
  white-space: nowrap;
  text-shadow: var(--outline-lg);
}
.marquee__track em {
  font-style: italic;
}
.marquee__track i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 1px var(--type-outline);
  flex: none;
}
@keyframes slide {
  to {
    transform: translateX(-50%);
  }
}

/* ============================ STATS ============================ */
.stats__wrap {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: start;
}
.stats .sec-head {
  margin-bottom: 0;
  position: sticky;
  top: 130px;
}
.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
}
.stat {
  background: var(--card);
  padding: clamp(1.5rem, 2.6vw, 2.1rem);
  transition: background var(--ti);
}
.stat:hover {
  background: var(--bg-2);
}
.stat--feature {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: clamp(1.2rem, 3vw, 2.4rem);
}
.stat .num {
  display: block;
  font-size: clamp(2.5rem, 4.3vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--accent-ink);
  font-variant-numeric: tabular-nums;
  transition: color var(--flavor-t);
}
.stat .num small {
  font-size: 0.45em;
  font-weight: 700;
  letter-spacing: 0;
}
.stat--zero {
  grid-column: 1 / -1;
}
.stat--zero .claim--big {
  display: block;
  font-size: clamp(1.25rem, 2.9vw, 2.1rem);
  line-height: 1.1;
  color: var(--accent-ink);
  white-space: normal;
  transition: color var(--flavor-t);
}
.stat--feature .num {
  font-size: clamp(4rem, 8.5vw, 7rem);
}
.stat--feature h3 {
  margin-top: 0;
}
.stat h3 {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-top: 1rem;
}
.stat p {
  color: var(--fg-2);
  font-size: var(--text-sm);
  margin-top: 0.5rem;
  line-height: 1.55;
}

/* range inputs */
input[type='range'] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 34px;
  background: transparent;
  cursor: grab;
}
input[type='range']:active {
  cursor: grabbing;
}
input[type='range']::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent) var(--p, 55%), var(--fill) var(--p, 55%));
}
input[type='range']::-moz-range-track {
  height: 4px;
  border-radius: 999px;
  background: var(--fill);
}
input[type='range']::-moz-range-progress {
  height: 4px;
  border-radius: 999px;
  background: var(--accent);
}
input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  margin-top: -9px;
  border-radius: 50%;
  background: #fff;
  border: 5px solid var(--accent);
  box-shadow: 0 4px 12px rgb(18 19 46 / 0.25);
  transition: transform var(--ti);
}
input[type='range']::-webkit-slider-thumb:hover {
  transform: scale(1.12);
}
input[type='range']::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 5px solid var(--accent);
}

/* ============================ CALCULATOR ============================ */
.calc__wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}
.calc__card {
  padding: clamp(1.6rem, 3vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--card);
  box-shadow: 0 30px 60px -44px rgb(18 19 46 / 0.5);
}
.field {
  margin-bottom: 1.9rem;
}
.field label,
.field__label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 0.65rem;
}
.field output {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--fg);
  text-transform: none;
  letter-spacing: 0;
}
.segmented {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-2);
}
.segmented button {
  min-height: 42px;
  border-radius: 9px;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--fg-3);
  transition: color var(--ti), background var(--ti);
}
.segmented button:hover {
  color: var(--fg);
}
.segmented button.is-active {
  color: #fff;
  background: var(--accent-ink);
}
.calc__out {
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.calc__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.9rem;
}
.calc__row span {
  font-size: var(--text-sm);
  color: var(--fg-2);
}
.calc__row b {
  font-size: var(--text-xl);
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--accent-ink);
  transition: color var(--flavor-t);
}
.calc__row--muted b {
  color: var(--fg);
  font-size: var(--text-lg);
}
.calc__bar {
  height: 8px;
  border-radius: 999px;
  background: var(--fill);
  overflow: hidden;
  margin: 0.35rem 0 1.4rem;
}
.calc__bar span {
  display: block;
  height: 100%;
  background: var(--accent);
  transition: width 420ms var(--ease-out), background var(--flavor-t);
}
.calc__note {
  font-size: var(--text-xs);
  color: var(--fg-3);
  line-height: 1.55;
  margin-top: 0.5rem;
}

/* ============================ FLAVOR CARDS ============================ */
.flavor-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2.5vw, 2rem);
}
/* each card carries its own flavor, independent of the site-wide one */
.fcard {
  --c: var(--peek-blue);
  --c-ink: var(--peek-blue);
}
.fcard[data-set-flavor='mango'] {
  --c: var(--peek-orange);
  --c-ink: var(--orange-deep);
}
.fcard[data-set-flavor='watermelon'] {
  --c: var(--peek-red);
  --c-ink: var(--red-deep);
}
.fcard {
  position: relative;
  container-type: inline-size;
  display: flex;
  flex-direction: column;
  border-radius: 24px;
  overflow: hidden;
  background: #fff;
  color: #12132e;
  border-top: 6px solid var(--c);
  cursor: pointer;
  transition: transform var(--ti), box-shadow var(--ti);
}
.fcard:hover {
  transform: translateY(-5px);
  box-shadow: 0 32px 60px -28px rgb(0 0 0 / 0.55);
}
/* the product render, front-on on white with a soft ground shadow */
.fcard__media {
  position: relative;
  height: clamp(300px, 34vw, 400px);
  /* flex, not grid: the bottle's % height needs a definite parent height */
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-top: 2rem;
}
.fcard__media::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 3%;
  width: 34%;
  height: 22px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at 50% 50%, rgb(18 19 46 / 0.26), transparent 68%);
  filter: blur(5px);
}
.fcard__bottle {
  position: relative;
  z-index: 1;
  height: 92%;
  width: auto;
  margin-bottom: 4%;
  transition: transform 620ms var(--ease-out);
}
.fcard:hover .fcard__bottle {
  transform: translateY(-10px);
}
.fcard__body {
  padding: clamp(1.4rem, 3vw, 2rem) clamp(1.5rem, 3vw, 2.2rem) clamp(1.6rem, 3vw, 2.2rem);
  border-top: 1px solid #e2e2ea;
}
.fcard__body h3 {
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--c-ink);
}
@container (min-width: 1px) {
  .fcard__body h3 {
    /* "WATERMELON" is the longest word; it fits the card's own width */
    font-size: clamp(1.5rem, 10.5cqi, 2.3rem);
  }
}
.fcard__body h3 span {
  display: block;
  font-weight: 800;
}
.fcard__body h3 em {
  display: block;
  font-style: italic;
  font-weight: 500;
}
.fcard__body p {
  color: #5b5d73;
  margin-top: 0.9rem;
  max-width: 30ch;
  font-size: var(--text-sm);
  line-height: 1.6;
}
.fcard__go {
  display: inline-block;
  margin-top: 1.4rem;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-ink);
}
/* Pointer users re-theme the site by clicking anywhere on the card. This is
   the equivalent keyboard/AT control: it is removed from the layout so the
   card is visually unchanged, and only becomes visible when focused. */
.fcard__set {
  position: absolute;
  top: 1px;
  left: 1px;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
  font: inherit;
  color: #12132e;
  background: #f3f3f7;
  cursor: pointer;
}
.fcard__set:focus-visible {
  z-index: 4;
  top: 0.9rem;
  left: 0.9rem;
  clip: auto;
  width: auto;
  height: auto;
  overflow: visible;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ============================ CUSTOMER VIDEOS ============================ */
.vids__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2.5vw, 2rem);
}
.vcard__media {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: 18px;
  overflow: hidden;
  background: var(--dark);
}
.vcard__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.vcard__play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 64px;
  height: 64px;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: var(--accent-ink);
  box-shadow: 0 10px 30px -10px rgb(18 19 46 / 0.6);
  transition: transform var(--ti), opacity var(--ti), color var(--flavor-t);
}
.vcard__play svg {
  width: 26px;
  height: 26px;
  margin-left: 3px; /* optical centre of the triangle */
}
.vcard__play:hover {
  transform: translate(-50%, -50%) scale(1.07);
}
.vcard.is-playing .vcard__play {
  opacity: 0;
  pointer-events: none;
}
/* a slot without a video file yet */
.vcard__empty {
  display: none;
}
.vcard.is-empty .vcard__media {
  display: grid;
  place-items: center;
  background: var(--fill);
}
.vcard.is-empty .vcard__video,
.vcard.is-empty .vcard__play {
  display: none;
}
.vcard.is-empty .vcard__empty {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-2);
}
.vcard__tag {
  margin-top: 1.4rem;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.vcard__quote {
  margin-top: 0.6rem;
  font-size: clamp(1.15rem, 1.6vw, 1.35rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.vcard__body {
  margin-top: 0.6rem;
  font-size: var(--text-sm);
  color: var(--fg-2);
  line-height: 1.6;
}
.vcard__name {
  margin-top: 0.9rem;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-ink);
  transition: color var(--flavor-t);
}

/* ============================ FACTS PANEL ============================ */
.facts__wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: start;
}
.facts__copy .sec-lede b {
  color: var(--fg);
}
.facts__dir {
  margin-top: 2.2rem;
  display: grid;
  gap: 0.85rem;
  max-width: 44ch;
}
.facts__dir li {
  padding-left: 1.2rem;
  border-left: 2px solid var(--accent);
  font-size: var(--text-sm);
  color: var(--fg-2);
  line-height: 1.55;
  transition: border-color var(--flavor-t);
}
.facts__dir b {
  color: var(--fg);
}

.panel {
  background: #fff;
  color: #111;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: clamp(1.3rem, 2.5vw, 1.9rem);
  box-shadow: 0 34px 60px -40px rgb(18 19 46 / 0.5);
}
.panel__head h3 {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  border-bottom: 8px solid #111;
  padding-bottom: 0.35rem;
}
.panel__head p {
  font-size: var(--text-xs);
  font-weight: 700;
  padding: 0.5rem 0;
  border-bottom: 1px solid #111;
}
.panel table {
  font-size: var(--text-sm);
}
.panel thead th {
  font-size: 0.6875rem;
  white-space: nowrap;
  text-align: right;
  padding: 0.4rem 0;
  border-bottom: 1px solid #111;
  font-weight: 700;
}
.panel thead th:first-child {
  text-align: left;
}
.panel tbody th {
  text-align: left;
  font-weight: 500;
  padding: 0.42rem 0.5rem 0.42rem 0;
  border-bottom: 1px solid rgb(0 0 0 / 0.12);
  line-height: 1.35;
}
.panel tbody td {
  text-align: right;
  padding: 0.42rem 0;
  border-bottom: 1px solid rgb(0 0 0 / 0.12);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.panel tbody td:last-child {
  width: 3.4rem;
}
.panel tr.hl th,
.panel tr.hl td {
  font-weight: 800;
  border-bottom: 6px solid #111;
}
.panel tr.sep th {
  font-size: var(--text-xs);
  font-weight: 700;
  padding-top: 0.6rem;
}
.panel tr.sep td {
  font-size: var(--text-xs);
  padding-top: 0.6rem;
}
.panel__fine,
.panel__ing,
.panel__warn {
  font-size: 0.6875rem;
  line-height: 1.5;
  margin-top: 0.7rem;
  color: #333;
}
.panel__warn {
  padding-top: 0.7rem;
  border-top: 1px solid rgb(0 0 0 / 0.2);
  color: #555;
}

/* ============================ SIGNUP ============================ */
.signup {
  text-align: center;
}
.signup__title {
  font-size: var(--text-3xl);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  text-shadow: var(--outline-lg);
}
.signup__lede {
  color: var(--fg-2);
  max-width: 42ch;
  margin: 1.3rem auto 0;
  font-size: var(--text-lg);
  font-weight: 500;
}
.signup__form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  max-width: 520px;
  margin: 2.4rem auto 0;
}
.signup__form input {
  flex: 1 1 240px;
  min-height: 52px;
  padding: 0 1.3rem;
  border-radius: 999px;
  border: 0;
  background: #fff;
  color: #12132e;
  font-size: var(--text-sm);
  text-shadow: none;
}
.signup__form input::placeholder {
  color: #6b6d84;
}
.signup__form input:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}
/* white on ink */
.signup__form .btn {
  background: #12132e;
  color: #fff;
}
.signup__msg {
  flex: 1 0 100%;
  min-height: 1.4em;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--fg-2);
}
.signup__msg.is-ok,
.signup__msg.is-err {
  color: #fff;
  font-weight: 700;
}
.signup__buy {
  margin-top: 1.6rem;
}
/* small white type on peek-orange is too faint, so the secondary button is
   a solid white chip instead of an outline */
.band .btn--ghost {
  background: #fff;
  border-color: #fff;
  color: #12132e;
}
.band :focus-visible {
  outline-color: #fff;
}

/* ============================ FOOTER ============================ */
.footer {
  padding-top: clamp(3rem, 6vw, 5rem);
}
.footer__wrap {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(2rem, 5vw, 4rem);
  padding-bottom: 3rem;
}
.footer__brand p {
  color: var(--fg-2);
  margin-top: 1.4rem;
  max-width: 26ch;
  font-size: var(--text-sm);
}
.footer__nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2rem;
}
.footer__nav h4 {
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 1rem;
}
.footer__nav a {
  display: block;
  font-size: var(--text-sm);
  color: var(--fg-2);
  padding: 0.3rem 0;
  transition: color var(--ti);
}
.footer__nav a:hover {
  color: var(--fg);
}
.footer__legal {
  border-top: 1px solid var(--line);
  padding-block: 1.6rem 2.4rem;
  display: grid;
  gap: 0.6rem;
}
.footer__legal p {
  font-size: var(--text-xs);
  color: var(--fg-3);
  line-height: 1.6;
  max-width: 80ch;
}

/* ============================ SCROLL REVEAL ============================ */
.reveal {
  opacity: 1;
}
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
  }
  .reveal.is-in {
    opacity: 1;
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  html.is-switching .flavor-wash {
    display: none;
  }
  .stage__float,
  .stage__floor {
    animation: none;
  }
  .stage__float,
  .stage__parallax {
    transform: none;
  }
  .stage__float,
  .stage__parallax,
  .stage__floor {
    will-change: auto;
  }
}

/* ============================ RESPONSIVE ============================ */
@media (max-width: 1080px) {
  .hero__inner {
    grid-template-columns: 1fr auto;
  }
  .hero__col--right {
    grid-column: 1 / -1;
    justify-self: start;
  }
  .spec {
    grid-template-columns: repeat(3, auto);
    text-align: left;
    gap: 1.5rem 2rem;
    margin-top: 1rem;
  }
  .spec li {
    border-right: 0;
    border-left: 2px solid var(--accent);
    padding: 0 0 0 0.95rem;
  }
  .stats__wrap {
    grid-template-columns: 1fr;
    gap: clamp(2rem, 5vw, 3rem);
  }
  .stats .sec-head {
    position: static;
  }
}
@media (max-width: 900px) {
  .calc__wrap,
  .facts__wrap,
  .footer__wrap,
  .flavor-cards {
    grid-template-columns: 1fr;
  }
  .flavor-cards {
    max-width: 460px;
    margin-inline: auto;
  }
  /* three tall cards stacked are a long scroll; swipe through them instead */
  .vids__grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: min(78%, 320px);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 0.75rem;
  }
  .vcard {
    scroll-snap-align: start;
  }
}
@media (max-width: 760px) {
  html {
    scroll-padding-top: 76px;
  }
  .hero {
    padding: 6.5rem 0 4rem;
  }
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .hero__col--stage {
    justify-self: center;
  }
  .stage {
    height: clamp(260px, 42vh, 360px);
  }
  .hero__col--right {
    justify-self: stretch;
  }
  .spec {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
  .spec b {
    font-size: 1.9rem;
  }
  .hero__cta {
    flex-direction: column;
    align-items: stretch;
  }
  .hero__cta .btn {
    width: 100%;
  }
  /* Stacked, the switch flows after the hero content instead of floating
     over the spec list. */
  .flavor-switch {
    position: static;
    transform: none;
    flex-direction: column;
    align-self: stretch;
    margin: 2.25rem var(--gut) 0;
    border-radius: 18px;
  }
  .flavor-switch__btn {
    justify-content: flex-start;
    min-height: 44px;
  }
  .stat-grid {
    grid-template-columns: 1fr;
  }
  .stat--feature {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }
}
