/* Lipton Iced Tea Peach landing page (prototype)

   Motion rules for this page
   1. The product never moves. The camera (the whole set as one group), the light
      and one tea leaf under gravity are the only things that do.
   2. Solid objects are never see-through and never bounce.
   3. One focal move per screen, then stillness. The ticker is the only loop.
   4. Photographs sit with photographs; UI stays flat and quiet.
   Animated states only apply under html.motion (set in <head> unless the visitor
   asks for reduced motion), so the default CSS is always the finished, still page. */

@font-face { font-family: "Intro"; src: url("assets/fonts/intro-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Intro"; src: url("assets/fonts/intro-semibold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Intro"; src: url("assets/fonts/intro-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Intro"; src: url("assets/fonts/intro-black.woff2") format("woff2"); font-weight: 900; font-display: swap; }

:root {
  --yellow: #ffe11b;
  --sky: #1aa7e1;
  --coral: #f2725e;
  --peach: #e8463f;
  --green: #0f4a35;
  --green-deep: #0a3526;
  --cream: #fff9e8;
  --ink: #0f4a35;

  /* easing: one curve per kind of move */
  --e-settle: cubic-bezier(.16, 1, .3, 1);   /* things arriving: type through a mask, reveals */
  --e-cine: cubic-bezier(.65, 0, .35, 1);    /* camera or light between two held states */
  --e-light: cubic-bezier(.37, 0, .63, 1);   /* opacity of light, shadow, dissolves */
  --e-ui: cubic-bezier(.2, 0, 0, 1);         /* every control state change */
  --e-exit: cubic-bezier(.4, 0, 1, 1);       /* exits, 220 ms or less */

  --gutter: clamp(18px, 5vw, 56px);
  --nav-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: var(--nav-h); -webkit-text-size-adjust: 100%; overflow-x: hidden; overflow-x: clip; }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font: 400 17px/1.55 "Intro", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden; overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 6px; }
.how :focus-visible, .foot :focus-visible { outline-color: var(--yellow); }
section:focus { outline: none; }

.wrap { width: min(1180px, 100%); margin-inline: auto; padding-inline: var(--gutter); }
/* small peach text is darkened to pass contrast on cream and white; on the yellow
   sections it is green, as in the hero */
.eyebrow { font-weight: 700; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: #c4281f; }
.range .eyebrow, .find .eyebrow { color: var(--green); }
.h2 { font-weight: 900; font-size: clamp(2rem, 5.4vw, 3.9rem); line-height: 1.02; letter-spacing: -.01em; margin-top: .35em; text-wrap: balance; }
.h3 { font-weight: 900; font-size: clamp(1.25rem, 2.6vw, 1.7rem); line-height: 1.15; }
.sub { max-width: 46ch; margin-top: 1em; font-size: 1.05rem; opacity: .85; }
.fine { font-size: .78rem; margin-top: 1.2em; }

main { transition: opacity .2s var(--e-light); }
main.is-jumping { opacity: 0; transition: opacity .12s var(--e-exit); }

/* ---------- shared keyframes ---------- */
@keyframes fadeIn { from { opacity: 0; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } }
@keyframes riseIn { from { transform: translateY(120%); } }
@keyframes reveal { from { opacity: 0; transform: translateY(12px); } }
@keyframes txtIn { from { opacity: 0; transform: translateY(6px); } }

/* ---------- reveal on scroll: one short, quiet move ---------- */
.motion:not(.no-app) .reveal:not(.in) { opacity: 0; }
.motion .reveal.in { animation: reveal .6s var(--e-settle) backwards; animation-delay: var(--d, 0ms); }

/* text that changes: old words leave, new words arrive */
.txt-out { opacity: 0; transform: translateY(-6px); transition: opacity .16s var(--e-exit), transform .16s var(--e-exit); }
.txt-in { animation: txtIn .26s var(--e-settle) backwards; }

/* ---------- buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 28px; border-radius: 999px; border: 2px solid var(--green);
  background: var(--green); color: #fff; font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: transform .12s var(--e-ui), box-shadow .2s var(--e-ui), background .2s var(--e-ui);
  box-shadow: 0 10px 22px -12px rgba(15, 74, 53, .7);
}
.btn:active { transform: scale(.97); }
.btn--ghost { background: rgba(255, 255, 255, .7); color: var(--green); box-shadow: none; }
.btn--small { min-height: 42px; padding: 0 20px; font-size: .9rem; }
.pill:active, .city:active, .step:active, .toggle__btn:active, .round:active, .pack:active { transform: scale(.97); }

/* ---------- nav ---------- */
.nav-sentinel { position: absolute; top: 0; left: 0; width: 1px; height: 30px; pointer-events: none; }
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 60; height: var(--nav-h);
  display: flex; align-items: center; gap: 24px; padding: 0 var(--gutter);
  transition: background .4s var(--e-light), box-shadow .4s var(--e-light);
}
.nav.is-stuck { background: rgba(255, 249, 232, .95); box-shadow: 0 1px 0 rgba(15, 74, 53, .08); }
.nav__logo img { width: 104px; height: auto; }
.nav__links { display: flex; gap: 28px; margin-left: auto; font-weight: 600; font-size: .92rem; }
.nav__links a { text-decoration: none; position: relative; padding: 6px 0; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--peach); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--e-ui); }
.nav .btn { margin-left: 8px; }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; padding: calc(var(--nav-h) + 20px) var(--gutter) 0;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: 20px;
  overflow: hidden; overflow: clip; isolation: isolate;
}
.hero__bg { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, #ffe84a 0%, #ffe11b 42%, #ffb54a 74%, #f27a5e 100%); }
/* the sky light; it brightens as the page opens */
.hero__glow {
  position: absolute; inset: 0;
  background:
    radial-gradient(58% 52% at 82% 10%, #2fb1ea 0%, rgba(47, 177, 234, .6) 38%, rgba(47, 177, 234, 0) 72%),
    radial-gradient(42% 34% at 6% 0%, rgba(47, 177, 234, .45), rgba(47, 177, 234, 0) 70%);
}
.bokeh { position: absolute; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .7), rgba(255, 255, 255, .12) 62%, rgba(255, 255, 255, 0) 70%); opacity: .65; }
.b1 { width: 190px; height: 190px; right: 6%; top: 9%; }
.b2 { width: 90px; height: 90px; right: 30%; top: 16%; }
.b3 { width: 130px; height: 130px; left: 4%; top: 6%; }

.hero__copy { position: relative; z-index: 2; max-width: 620px; padding-bottom: 60px; }
.hero .eyebrow { color: var(--green); }
.title { font-weight: 900; line-height: .86; letter-spacing: -.015em; margin: .18em 0 .28em; font-size: clamp(3.5rem, 10.2vw, 9.4rem); }
/* each line is a window; the words rise into it */
.title__line { display: block; white-space: nowrap; overflow-x: visible; overflow-y: clip; padding-block: .1em; margin-block: -.1em; }
.title__in { display: block; -webkit-text-stroke: .07em #fff; paint-order: stroke fill; filter: drop-shadow(0 .035em 0 rgba(15, 74, 53, .16)); }
.title__iced { color: #0e9bd8; }
.title__peach { color: var(--peach); font-size: 1.2em; }
.lead { font-size: clamp(1.02rem, 1.6vw, 1.22rem); max-width: 34ch; font-weight: 600; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.chips li { font-size: .78rem; font-weight: 700; padding: 7px 13px; border-radius: 999px; background: rgba(255, 255, 255, .7); }

/* The set: a glass standing on a surface, a leaf tucked behind its base, the pack
   behind it and out of focus. Nothing in it moves on its own. */
.hero__stage { position: relative; align-self: end; height: min(80vh, 740px); height: min(80svh, 740px); min-height: 420px; pointer-events: none; transform-origin: 50% 100%; }
.set { position: absolute; inset: 0; transform-origin: 50% 100%; }
.set__glass { position: absolute; left: 44%; bottom: 5%; height: 90%; aspect-ratio: 942 / 1500; translate: -50% 0; isolation: isolate; }
.set__glass::before { /* contact shadow: tight, directly under the base */
  content: ""; position: absolute; left: 13%; right: 13%; bottom: -1.7%; height: 4.6%; z-index: 0; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(70, 22, 0, .6), rgba(70, 22, 0, .28) 58%, rgba(70, 22, 0, 0));
}
.set__img { position: relative; z-index: 2; width: 100%; height: 100%; }
.set__soft { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; filter: blur(10px); opacity: 0; }
.set__leaf { position: absolute; z-index: 1; right: 50%; bottom: 9%; width: 74%; height: auto; rotate: -15deg; transform-origin: 100% 100%; }
.set__pack { position: absolute; z-index: 1; left: 46%; bottom: 2.6%; height: 63%; aspect-ratio: 723 / 1000; filter: blur(1.6px); }
.set__pack img { width: 100%; height: 100%; border-radius: 3px; }
.set__pack::after { content: ""; position: absolute; left: 4%; right: -4%; bottom: -2.4%; height: 5%; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, rgba(70, 22, 0, .42), rgba(70, 22, 0, 0)); }
/* out-of-focus fruit right against the lens, cropped by two edges of the frame */
.hero__fg { position: absolute; right: -11%; bottom: -9%; width: 46%; height: auto; rotate: 152deg; filter: blur(7px); }

/* Opening, in two gates set by the inline script after the hero:
   html.lit   the headline rises (its font and the glass are in, or 900 ms passed)
   html.glass the whole set appears at once, the glass soft and pulling into focus.
   Nothing in the set shows before its photograph is decoded, so on a slow connection
   the visitor never sees a shadow or a leaf standing on an empty stage. */
.motion:not(.lit):not(.no-app) .title__in { transform: translateY(120%); }
.motion:not(.lit):not(.no-app) .hero .eyebrow,
.motion:not(.lit):not(.no-app) .lead,
.motion:not(.lit):not(.no-app) .chips { opacity: 0; }
.motion:not(.lit) .hero__glow { opacity: .6; }
.motion:not(.glass):not(.no-app) .set__img,
.motion:not(.glass):not(.no-app) .set__leaf,
.motion:not(.glass):not(.no-app) .set__pack,
.motion:not(.glass):not(.no-app) .hero__fg,
.motion:not(.glass):not(.no-app) .set__glass::before { opacity: 0; }
.motion:not(.glass):not(.no-app) .set { transform: scale(1.06); }

.motion.lit .title__in { animation: riseIn .6s var(--e-settle) both; }
.motion.lit .title__peach .title__in { animation-delay: .09s; }
.motion.lit .hero .eyebrow { animation: fadeUp .4s var(--e-settle) .25s both; }
.motion.lit .lead { animation: fadeUp .4s var(--e-settle) .35s both; }
.motion.lit .chips { animation: fadeUp .4s var(--e-settle) .45s both; }
.motion.lit .hero__glow { animation: glowUp 1.2s var(--e-light) both; }
/* rack focus: the set cuts in with the glass soft (its blurred copy on top, fully
   opaque), the blur clears, and the camera eases back a touch. Leaf, pack and fruit
   cut in on the same frame; only the light (the contact shadow) fades. */
.motion.glass:not(.no-app) .set { animation: dolly 1.4s cubic-bezier(.33, 1, .68, 1) both; }
.motion.glass:not(.no-app) .set__soft { animation: softOut .75s var(--e-cine) .08s both; }
.motion.glass:not(.no-app) .set__glass::before { animation: fadeIn .6s var(--e-light) .3s both; }
@keyframes dolly { from { transform: scale(1.06); } }
@keyframes softOut { from { opacity: 1; } to { opacity: 0; } }
@keyframes glowUp { from { opacity: .6; } }

/* scroll: the camera pushes in on the product while the headline drifts up at its own
   rate. Runs off the main thread; browsers without scroll timelines get a still hero. */
@supports (animation-timeline: scroll()) {
  .motion .hero__stage { animation: stagePush linear both; animation-timeline: scroll(root); animation-range: 0 100svh; }
  .motion .title { animation: titleDrift linear both; animation-timeline: scroll(root); animation-range: 0 100svh; }
  @keyframes stagePush { to { transform: translateY(5%) scale(1.07); } }
  @keyframes titleDrift { to { transform: translateY(-9%); } }
}

/* ---------- ticker ---------- */
.ticker { position: relative; z-index: 3; background: var(--green); color: var(--yellow); overflow: hidden; padding: 16px 0; }
/* padding-right equals the gap, so -50% lands exactly on one repeat: no hitch at the loop */
.ticker__track { display: flex; align-items: center; gap: 34px; padding-right: 34px; width: max-content; animation: ticker 34s linear infinite; font-weight: 900; font-size: clamp(1rem, 2.2vw, 1.5rem); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.ticker.is-paused .ticker__track { animation-play-state: paused; }
.ticker__track i { width: 10px; height: 10px; border-radius: 50%; background: var(--coral); flex: none; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- why ---------- */
.why { padding: clamp(70px, 10vw, 130px) 0; }
.why__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: clamp(32px, 5vw, 56px); }
.card { background: #fff; border-radius: 26px; padding: 28px 24px 30px; box-shadow: 0 24px 40px -30px rgba(110, 42, 8, .45); transition: transform .2s var(--e-ui), box-shadow .2s var(--e-ui); }
.card h3 { font-weight: 900; font-size: 1.25rem; margin: 18px 0 8px; }
.card p { font-size: .95rem; opacity: .82; }
.card__icon { width: 72px; height: 72px; border-radius: 22px; background: linear-gradient(140deg, #fff3a6, #ffd9b0); display: grid; place-items: center; }
.card__icon svg { width: 44px; height: 44px; fill: none; stroke: var(--green); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.draw > * { stroke-dasharray: 1; stroke-dashoffset: 0; }
.motion:not(.no-app) .reveal:not(.in) .draw > * { stroke-dashoffset: 1; }
.motion .in .draw > * { transition: stroke-dashoffset .7s var(--e-settle) .1s; }
.motion .in .draw > *:nth-child(2) { transition-delay: .2s; }
.motion .in .draw > *:nth-child(3) { transition-delay: .3s; }
.motion .in .draw > *:nth-child(4) { transition-delay: .4s; }

/* the leaf: the one object on the page that falls. It drops in through the top edge of
   its card (never fading into existence in mid-air) and comes to rest in the tile. */
#leafCard { overflow: hidden; overflow: clip; }
.leaf-slot { position: relative; background: linear-gradient(140deg, #dff6c9, #fff3a6); }
.leaf-slot__shadow { position: absolute; left: 6%; right: -6%; bottom: 10%; height: 20%; border-radius: 50%; background: radial-gradient(closest-side, rgba(15, 74, 53, .34), rgba(15, 74, 53, 0)); }
.leaf-x { position: absolute; inset: 0; display: grid; place-items: center; }
.leaf-y { width: 118%; max-width: none; height: auto; rotate: -8deg; }
.motion:not(.no-app) .leaf-slot:not(.landed) .leaf-y,
.motion:not(.no-app) .leaf-slot:not(.landed) .leaf-slot__shadow { opacity: 0; }
.motion .leaf-slot.landed .leaf-x { animation: leafX .7s cubic-bezier(.33, 1, .68, 1) backwards; }
.motion .leaf-slot.landed .leaf-y { animation: leafY .7s cubic-bezier(.25, .1, .3, 1) backwards; }
.motion .leaf-slot.landed .leaf-slot__shadow { animation: leafShadow .7s cubic-bezier(.25, .1, .3, 1) backwards; }
@keyframes leafX { from { transform: translateX(-18px); } }
@keyframes leafY {
  0% { transform: translateY(-96px) rotate(22deg) scale(1.12); }
  70% { transform: translateY(-3px) rotate(-2deg) scale(1.015); }
  100% { transform: none; }
}
@keyframes leafShadow { from { opacity: 0; transform: translate(10px, 14px) scale(1.5); } }

/* stats: a rule is drawn, the figure rises behind it */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: clamp(40px, 6vw, 72px); }
.stat { position: relative; padding-top: 14px; }
.stat:nth-child(1) { --i: 0; } .stat:nth-child(2) { --i: 1; } .stat:nth-child(3) { --i: 2; } .stat:nth-child(4) { --i: 3; }
.stat::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--green); transform-origin: left; }
.stat dt { overflow: hidden; overflow: clip; padding-block: .04em; font-weight: 900; font-size: clamp(2.4rem, 5.4vw, 4.2rem); line-height: 1; color: var(--peach); font-variant-numeric: tabular-nums; }
.stat__n, .stat dt small { display: inline-block; }
.stat dt small { font-size: .32em; margin-left: .25em; color: var(--green); letter-spacing: .04em; }
.stat dd { margin-top: 6px; font-weight: 600; font-size: .92rem; }
.motion:not(.no-app) .stats:not(.seen) .stat::before { transform: scaleX(0); }
.motion:not(.no-app) .stats:not(.seen) .stat__n,
.motion:not(.no-app) .stats:not(.seen) .stat dt small { transform: translateY(120%); }
.motion:not(.no-app) .stats:not(.seen) .stat dd { opacity: 0; }
.motion .stats.seen .stat::before { animation: ruleIn .6s var(--e-cine) backwards; animation-delay: calc(var(--i) * 80ms); }
.motion .stats.seen .stat__n, .motion .stats.seen .stat dt small { animation: riseIn .5s var(--e-settle) backwards; animation-delay: calc(var(--i) * 80ms + 120ms); }
.motion .stats.seen .stat dd { animation: fadeIn .4s var(--e-light) backwards; animation-delay: calc(var(--i) * 80ms + 250ms); }
@keyframes ruleIn { from { transform: scaleX(0); } }
/* units are smaller, so they travel in their own ems to clear the mask and rise with the figure */
@keyframes riseInUnit { from { transform: translateY(3.75em); } }
.motion:not(.no-app) .stats:not(.seen) .stat dt small { transform: translateY(3.75em); }
.motion .stats.seen .stat dt small { animation-name: riseInUnit; }

/* poll: the panels hold still; only the words change */
.swap { margin-top: clamp(48px, 7vw, 88px); border-radius: 32px; padding: clamp(24px, 4vw, 44px); background: linear-gradient(135deg, #bfe8fb, #e8f7ff 55%, #fff3b8); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(20px, 4vw, 48px); align-items: center; }
.swap__options { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.pill { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 2px solid var(--green); background: transparent; font-weight: 700; font-size: .92rem; cursor: pointer; transition: background .18s var(--e-ui), color .18s var(--e-ui), transform .12s var(--e-ui); }
.pill.is-on { background: var(--green); color: #fff; }
.swap__result { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.swap__col { border-radius: 22px; padding: 22px; background: rgba(255, 255, 255, .78); }
.swap__col--us { background: var(--green); color: #fff; }
.swap__col p { font-weight: 600; font-size: 1.02rem; line-height: 1.4; min-height: var(--swap-h, 4.2em); }
.swap__tag { display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 10px; opacity: .7; }
.swap__col--us .swap__tag { color: var(--yellow); opacity: 1; }
.swap__tag.txt-out { opacity: 0; }

/* ---------- range ---------- */
.range { position: relative; padding: clamp(70px, 10vw, 130px) 0; isolation: isolate; overflow: hidden; overflow: clip; }
/* the light changes temperature between Classic and Zero Sugar */
.range::before, .range::after { content: ""; position: absolute; inset: 0; z-index: -1; transition: opacity .7s var(--e-cine); }
.range::before { background: linear-gradient(180deg, #ffe84a 0%, #ffd23d 45%, #ffae5c 80%, #f58a68 100%); }
.range::after { background: radial-gradient(70% 60% at 80% 0%, #6cc9f2, rgba(108, 201, 242, 0) 70%), linear-gradient(180deg, #bfe8fb 0%, #eaf8ff 50%, #fff1a8 100%); opacity: 0; }
.range[data-variant="zero"]::after { opacity: 1; }

.toggle { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; margin-top: 28px; padding: 5px; border-radius: 999px; background: rgba(255, 255, 255, .72); }
.toggle__btn { position: relative; z-index: 1; min-height: 46px; padding: 0 26px; border: 0; background: none; border-radius: 999px; font-weight: 700; cursor: pointer; transition: color .3s var(--e-ui), transform .12s var(--e-ui); white-space: nowrap; }
.toggle__btn.is-on { color: #fff; }
.toggle__thumb { position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px); border-radius: 999px; background: var(--green); transition: transform .3s var(--e-ui), background .3s var(--e-ui); }
.range[data-variant="zero"] .toggle__thumb { transform: translateX(100%); background: #0e7fb8; }

.range__body { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: center; margin-top: clamp(30px, 5vw, 56px); }
/* Packs are shown as what they are: flat pack fronts, in the UI register. */
.shelf { container-type: inline-size; aspect-ratio: 2 / 1; display: grid; }
.shelf__set { grid-area: 1 / 1; display: flex; align-items: flex-end; justify-content: center; gap: 5cqw; padding-bottom: 30px; }
.shelf__set:not(.is-on) { pointer-events: none; }
.pack {
  --ph: 30cqw; --s: 1; --ar: .5; --i: 0;
  position: relative; flex: none; height: calc(var(--ph) * var(--s)); width: calc(var(--ph) * var(--s) * var(--ar));
  padding: 0; border: 0; border-radius: 6px; background: none; cursor: pointer; transform-origin: 50% 100%;
  box-shadow: 0 16px 22px -16px rgba(110, 42, 8, .6);
  opacity: 0; transition: opacity .22s var(--e-exit), transform .32s var(--e-ui);
}
.shelf__set[data-variant="zero"] .pack { --ph: 40cqw; }
.shelf__set.is-on .pack { opacity: 1; transition: opacity .38s var(--e-settle) calc(.22s + var(--i) * 40ms), transform .32s var(--e-ui); }
.pack img { width: 100%; height: 100%; border-radius: 6px; }
.pack::after { content: ""; position: absolute; inset: 0; border-radius: 6px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28), inset 0 1px 0 rgba(255, 255, 255, .55); pointer-events: none; }
.pack::before { content: ""; position: absolute; inset: -7px; border-radius: 12px; border: 2px solid var(--green); opacity: 0; transition: opacity .18s var(--e-ui); pointer-events: none; }
.pack__dot { position: absolute; left: 50%; bottom: -24px; width: 7px; height: 7px; margin-left: -3.5px; border-radius: 50%; background: var(--green); opacity: 0; transition: opacity .24s var(--e-ui); }
/* a 44 px wide touch area, so the very thin Zero Sugar stick is easy to tap */
.pack__dot::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 44px; height: calc(var(--ph) * var(--s) + 24px); translate: -50% 0; }
.pack:focus-visible { outline-offset: 11px; } /* clear of the green selection ring */
.pack.is-on { transform: scale(1.03); }
.pack.is-on::before, .pack.is-on .pack__dot { opacity: 1; }
.range[data-variant="zero"] .pack::before { border-color: #0e7fb8; }
.range[data-variant="zero"] .pack__dot { background: #0e7fb8; }

.range__tagline { font-weight: 700; font-size: 1.1rem; }
@media (max-width: 476px) { .range__tagline { min-height: 3.1em; } } /* both taglines take two lines: no jump on switch */
.range__pack { font-weight: 900; font-size: clamp(1.8rem, 4vw, 2.8rem); line-height: 1.05; margin-top: 14px; }
.range__makes { font-weight: 600; margin-top: 6px; opacity: .85; }
.range__makes.txt-out { opacity: 0; }
.nutri { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 26px; }
.nutri > div { background: rgba(255, 255, 255, .72); border-radius: 18px; padding: 14px 12px; }
.nutri dt { font-weight: 900; font-size: 1.25rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.nutri dd { font-size: .76rem; font-weight: 600; opacity: .75; }

/* ---------- how to make: three shots, cut together with dissolves ---------- */
.how { overflow: hidden; overflow: clip; background: radial-gradient(60% 70% at 22% 40%, #17694b, rgba(23, 105, 75, 0) 70%), var(--green); color: #fff; padding: clamp(70px, 10vw, 130px) 0; }
.how .eyebrow { color: var(--yellow); }
.how__wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(24px, 6vw, 80px); align-items: center; }
.shots { container-type: inline-size; position: relative; width: min(380px, 78vw); aspect-ratio: 4 / 5; margin-inline: auto; border-radius: 28px; overflow: hidden; overflow: clip; background: #0c3d2c; box-shadow: 0 40px 60px -42px rgba(0, 0, 0, .7); color: var(--green); }
/* a true dissolve: the outgoing shot stays solid underneath while the next one fades
   in over it, then drops away once it is covered (no dip to the dark frame colour) */
.shot { position: absolute; inset: 0; opacity: 0; transition: opacity 0s linear .48s; }
.shots[data-step="1"] .shot--1, .shots[data-step="2"] .shot--2, .shots[data-step="3"] .shot--3,
.shots[data-step="0"] .shot--1 { opacity: 1; z-index: 1; transition: opacity .38s var(--e-light) .1s; }
/* shot 1: the measure, as type */
.shot--1 { display: grid; place-content: center; justify-items: center; background: linear-gradient(180deg, #e9f7ff 0%, #c5eafc 55%, #a5dff8 100%); padding-bottom: 12%; }
.shot__big { display: flex; align-items: baseline; gap: .06em; font-weight: 900; font-size: 38cqw; line-height: .9; letter-spacing: -.03em; color: #0e7fb8; overflow: hidden; overflow: clip; padding-block: .04em; }
.shot__big span, .shot__big small { display: inline-block; }
.shot__big small { font-size: .3em; letter-spacing: 0; color: var(--green); }
.shot__sub { font-weight: 700; font-size: 6.2cqw; letter-spacing: .14em; text-transform: uppercase; margin-top: .5em; }
/* step "0": the scene is in place but the measure waits below its mask for the sequence */
.motion .shots[data-step="0"] .shot__big span { transform: translateY(120%); }
.motion .shots[data-step="0"] .shot__big small { transform: translateY(4em); }
.motion .shots[data-step="0"] .shot__sub { opacity: 0; }
.motion .shots[data-step="1"] .shot__big span { animation: riseIn .6s var(--e-settle) .12s backwards; }
.motion .shots[data-step="1"] .shot__big small { animation: riseInUnitBig .6s var(--e-settle) .12s backwards; }
.motion .shots[data-step="1"] .shot__sub { animation: fadeIn .4s var(--e-light) .4s backwards; }
@keyframes riseInUnitBig { from { transform: translateY(4em); } }
/* shot 2: the real pack, standing still; the dissolve is the only move */
.shot--2 { display: grid; place-items: center; background: linear-gradient(180deg, #fff1a0 0%, #ffe11b 48%, #ffb85a 100%); padding-bottom: 10%; }
.shot--2 img { height: 76cqw; width: auto; border-radius: 3px; box-shadow: 0 22px 26px -18px rgba(110, 42, 8, .65); }
/* shot 3: the real glass; the camera pushes back slowly on the whole scene (glass,
   its shadow and the backdrop together), anchored on the ground line */
.shot--3 { transform-origin: 50% 87%; background: radial-gradient(70% 50% at 50% 16%, #fff3b0, rgba(255, 243, 176, 0) 70%), linear-gradient(180deg, #ffd65c 0%, #ffb85a 55%, #f58a68 100%); }
.shot--3 img { position: absolute; left: 50%; bottom: 13%; height: 78%; width: auto; max-width: none; translate: -50% 0; }
.shot--3::after { content: ""; position: absolute; left: 30%; right: 30%; bottom: 11.4%; height: 4%; border-radius: 50%; background: radial-gradient(closest-side, rgba(70, 22, 0, .55), rgba(70, 22, 0, 0)); }
.motion .shots[data-step="3"] .shot--3 { animation: push 1.4s var(--e-cine) backwards; }
@keyframes push { from { transform: scale(1.08); } }
.shot__cap { position: absolute; z-index: 2; left: 5cqw; right: 5cqw; bottom: 4.4cqw; display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: clamp(.85rem, 4.4cqw, 1.05rem); }
.shot__cap b { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: var(--yellow); font-weight: 900; font-size: .9rem; }

.steps { margin-top: clamp(24px, 4vw, 40px); display: grid; gap: 10px; }
.step { position: relative; overflow: hidden; width: 100%; display: flex; align-items: center; gap: 18px; text-align: left; padding: 16px 20px; border-radius: 22px; border: 2px solid rgba(255, 255, 255, .16); background: transparent; cursor: pointer; transition: background .32s var(--e-ui), border-color .32s var(--e-ui), transform .12s var(--e-ui); }
.step__n { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: 1.2rem; background: rgba(255, 255, 255, .12); transition: background .32s var(--e-ui), color .32s var(--e-ui); }
.step b { display: block; font-weight: 700; font-size: 1.1rem; }
.step em { display: block; font-style: normal; font-size: .9rem; opacity: .7; }
.step.is-on { background: rgba(255, 255, 255, .1); border-color: var(--yellow); }
.step.is-on .step__n { background: var(--yellow); color: var(--green); }
.step::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--yellow); transform: scaleX(0); transform-origin: left; }
.steps.is-auto .step.is-on::after { animation: stepBar var(--step-ms, 3200ms) linear forwards; }
@keyframes stepBar { to { transform: scaleX(1); } }

/* ---------- reviews ---------- */
.reviews { padding: clamp(70px, 10vw, 130px) 0 clamp(50px, 7vw, 90px); }
.reel { display: flex; gap: clamp(14px, 2.4vw, 26px); overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; padding: 40px max(var(--gutter), calc(50vw - min(150px, 34vw))) 34px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.reel::-webkit-scrollbar { display: none; }
.clip { position: relative; flex: none; width: min(300px, 68vw); aspect-ratio: 9 / 16; border-radius: 28px; overflow: hidden; overflow: clip; scroll-snap-align: center; background: radial-gradient(120% 80% at 50% 0, #17694b, #0a3526); transform: scale(.94); transition: transform .32s var(--e-ui), box-shadow .32s var(--e-ui); }
.clip.is-center { transform: none; box-shadow: 0 22px 30px -24px rgba(110, 42, 8, .6); }
.clip video { width: 100%; height: 100%; object-fit: cover; }
.clip > span { position: absolute; pointer-events: none; }
/* cards beside the centre one sit under a scrim; the footage itself is never see-through */
.clip__dim { inset: 0; background: rgba(10, 20, 15, .38); transition: opacity .32s var(--e-ui); }
.clip.is-center .clip__dim { opacity: 0; }
.clip__shade { inset: auto 0 0 0; height: 45%; background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, .7)); transition: opacity .3s var(--e-light); }
.clip__name { left: 18px; right: 18px; bottom: 20px; color: #fff; text-align: left; transition: opacity .3s var(--e-light); }
.clip__name b { display: block; font-weight: 900; font-size: 1.2rem; }
.clip__name em { font-style: normal; font-size: .8rem; opacity: .8; }
/* exactly one overlay per state: rest = play icon, loading = ring, preview = "Tap for sound", playing = progress */
.clip__play { left: 50%; top: 50%; width: 68px; height: 68px; margin: -34px 0 0 -34px; border-radius: 50%; background: rgba(255, 255, 255, .94); display: grid; place-items: center; opacity: 0; visibility: hidden; transition: opacity .15s linear, visibility 0s .15s; }
.clip__play svg { width: 26px; height: 26px; fill: var(--green); margin-left: 4px; }
.clip[data-state="rest"] .clip__play { opacity: 1; visibility: visible; transition: opacity .15s linear .12s, visibility 0s .12s; }
.clip__ring { left: 50%; top: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .28); border-top-color: #fff; opacity: 0; transition: opacity .15s linear; }
.clip[data-state="loading"] .clip__ring { opacity: 1; transition-delay: .3s; animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.clip__sound { top: 14px; right: 14px; padding: 6px 12px; border-radius: 999px; background: rgba(0, 0, 0, .62); color: #fff; font-size: .74rem; font-weight: 700; opacity: 0; transition: opacity .15s linear .3s; }
.clip[data-state="preview"] .clip__sound { opacity: 1; transition-delay: 0s; }
.clip__bar { left: 14px; right: 14px; bottom: 12px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .3); overflow: hidden; opacity: 0; transition: opacity .2s linear; }
.clip__bar i { display: block; height: 100%; background: #fff; transform: scaleX(0); transform-origin: left; transition: transform .25s linear; }
.clip[data-active] .clip__bar { opacity: 1; }
.clip[data-state="playing"] .clip__shade, .clip[data-state="playing"] .clip__name { opacity: 0; }
.clip[data-state="error"] .clip__name em { opacity: 1; }
.clip__hit { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: none; border-radius: inherit; cursor: pointer; }
.clip__hit:focus-visible { outline: 3px solid #fff; outline-offset: -6px; box-shadow: inset 0 0 0 3px var(--green); } /* inside the card, which clips anything outside it */
.reel__nav { display: flex; justify-content: center; gap: 12px; }
.round { width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--green); background: none; cursor: pointer; display: grid; place-items: center; transition: background .2s var(--e-ui), opacity .2s var(--e-ui), transform .12s var(--e-ui); }
.round:disabled { opacity: .3; cursor: default; }
.round svg { width: 22px; height: 22px; fill: none; stroke: var(--green); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; transition: stroke .2s var(--e-ui); }

/* ---------- find ---------- */
.find { background: linear-gradient(180deg, #ffe84a 0%, #ffc04d 55%, #f58a68 100%); padding: clamp(70px, 10vw, 130px) 0; }
.cities { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.city { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px 0 16px; border-radius: 999px; border: 2px solid var(--green); background: rgba(255, 255, 255, .5); font-weight: 700; cursor: pointer; transition: background .18s var(--e-ui), color .18s var(--e-ui), transform .12s var(--e-ui); }
.city.is-on { background: var(--green); color: #fff; }
.pin { position: relative; width: 12px; height: 12px; border-radius: 50%; background: var(--peach); }
.pin::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--yellow); opacity: 0; }
.city.is-on .pin { background: var(--yellow); }
.motion .cities.in .city.is-on .pin::after { animation: ping .9s ease-out .5s 1; }
.motion .cities.in .city.is-pinged .pin::after { animation: ping2 .9s ease-out 1; }
@keyframes ping { from { transform: scale(1); opacity: .9; } to { transform: scale(3.4); opacity: 0; } }
@keyframes ping2 { from { transform: scale(1); opacity: .9; } to { transform: scale(3.4); opacity: 0; } }

.stores { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 26px; }
.store { display: flex; flex-direction: column; justify-content: space-between; gap: 34px; min-height: 170px; padding: 24px; border-radius: 26px; background: #fff; text-decoration: none; box-shadow: 0 24px 40px -30px rgba(110, 42, 8, .55); transition: transform .2s var(--e-ui), box-shadow .2s var(--e-ui); }
a.store:active { transform: scale(.985); }
.store__name { font-weight: 900; font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1; }
.store__go { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .92rem; color: #c4281f; }
.store__go svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s var(--e-ui); }
.store--more { background: rgba(255, 255, 255, .4); box-shadow: none; border: 2px dashed rgba(15, 74, 53, .35); }
.store--more .store__go { color: var(--green); }

/* ---------- hover: only where there is a real pointer ---------- */
@media (hover: hover) and (pointer: fine) {
  .nav.is-stuck { background: rgba(255, 249, 232, .86); backdrop-filter: blur(14px) saturate(1.4); }
  .nav__links a:hover::after { transform: scaleX(1); }
  .btn:hover { box-shadow: 0 16px 28px -14px rgba(15, 74, 53, .8); background: #0c3d2c; }
  .btn--ghost:hover { background: rgba(255, 255, 255, .92); }
  .card:hover, a.store:hover { transform: translateY(-3px); box-shadow: 0 30px 44px -28px rgba(110, 42, 8, .55); }
  a.store:hover .store__go svg { transform: translateX(4px); }
  .pill:hover:not(.is-on), .city:hover:not(.is-on) { background: rgba(255, 255, 255, .6); }
  .round:hover:not(:disabled) { background: var(--green); }
  .round:hover:not(:disabled) svg { stroke: #fff; }
  .step:hover:not(.is-on) { border-color: rgba(255, 255, 255, .4); }
  .pack:hover:not(.is-on)::before { opacity: .35; }
}

/* ---------- footer ---------- */
.foot { background: var(--green-deep); color: rgba(255, 255, 255, .86); padding: 54px 0 90px; font-size: .86rem; }
.foot__wrap { display: grid; grid-template-columns: auto 1fr 1.3fr; gap: clamp(24px, 5vw, 64px); align-items: start; }
.foot__logo { width: 120px; height: auto; }
.foot__col p + p { margin-top: 12px; }
.foot__col b { color: #fff; }
.foot__notes { font-size: .74rem; opacity: .7; }

/* ---------- prototype analytics panel ---------- */
.events { position: fixed; left: 14px; bottom: 14px; z-index: 80; font: 500 12px/1.4 ui-monospace, "Cascadia Mono", Consolas, monospace; }
.events__toggle { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; border: 0; background: rgba(10, 30, 22, .9); color: #fff; cursor: pointer; font: inherit; }
.events__toggle b { min-width: 22px; padding: 1px 6px; border-radius: 999px; background: var(--yellow); color: var(--green); text-align: center; }
.events__list { display: none; width: min(340px, calc(100vw - 28px)); max-height: 46vh; overflow: auto; margin: 0 0 8px; padding: 10px 12px; border-radius: 14px; background: rgba(10, 30, 22, .94); color: #d8f5e6; }
.events.is-open { display: flex; flex-direction: column-reverse; align-items: flex-start; }
.events.is-open .events__list { display: block; }
.events__list li { padding: 4px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); word-break: break-word; }
.events__list li b { color: var(--yellow); }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .why__grid { grid-template-columns: repeat(2, 1fr); }
  .stores { grid-template-columns: repeat(2, 1fr); }
  .swap { grid-template-columns: 1fr; }
  .range__body { grid-template-columns: 1fr; }
  .range__info { text-align: center; }
  .foot__wrap { grid-template-columns: 1fr 1fr; }
  .foot__logo { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
  :root { --nav-h: 60px; }
  .nav__links { display: none; }
  .nav .btn { margin-left: auto; }
  .nav__logo img { width: 88px; }

  /* phone hero: name, product, then the buttons, all inside the first screen */
  .hero { grid-template-columns: minmax(0, 1fr); align-content: start; align-items: start; gap: 0; min-height: 0; padding: calc(var(--nav-h) + 10px) var(--gutter) 40px; text-align: center; }
  .hero__copy { display: contents; }
  .hero .eyebrow, .title, .hero__actions, .lead, .chips { position: relative; z-index: 2; }
  .hero .eyebrow { order: 1; font-size: .72rem; }
  .title { order: 2; font-size: clamp(3.1rem, 17vw, 7rem); margin: .16em 0 .1em; }
  .hero__stage { order: 3; align-self: start; height: clamp(236px, calc(100vh - 340px), 430px); height: clamp(236px, calc(100svh - 340px), 430px); min-height: 0; margin-top: 4px; }
  .hero__actions { order: 4; flex-wrap: nowrap; justify-content: center; margin-top: 12px; gap: 10px; }
  .hero__actions .btn { flex: 1 1 0; min-width: 0; min-height: 50px; padding: 0 8px; font-size: .86rem; white-space: nowrap; }
  .lead { order: 5; margin: 18px auto 0; }
  .chips { order: 6; justify-content: center; margin-top: 18px; }
  .set__glass { left: 50%; bottom: 4%; height: 94%; }
  .set__leaf { width: 64%; bottom: 8%; }
  .set__pack, .hero__fg { display: none; }
  .b2 { display: none; }
  .b1 { width: 120px; height: 120px; }
  .b3 { width: 90px; height: 90px; }

  .how__wrap { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
  .reel__nav { display: none; }
  .reviews { padding-bottom: clamp(30px, 5vw, 60px); }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .why__grid { grid-template-columns: 1fr; }
  .card { display: grid; grid-template-columns: 64px 1fr; column-gap: 16px; padding: 20px; }
  .card__icon { width: 64px; height: 64px; grid-row: span 2; }
  .card h3 { margin: 2px 0 4px; }
  .swap__result { grid-template-columns: 1fr; }
  .stores { grid-template-columns: 1fr; }
  .store { min-height: 0; gap: 18px; flex-direction: row; align-items: center; }
  .foot__wrap { grid-template-columns: 1fr; }
}
@media (max-width: 349px) {
  .hero__actions { flex-wrap: wrap; }
  .hero__actions .btn { flex: 1 1 100%; }
  .nutri dt { font-size: 1rem; }
}

/* ---------- older browsers (iOS 15, Chromium before 105) ---------- */
@supports not (width: 1cqw) {
  .shelf__set { gap: 4vw; }
  .pack { --ph: min(27vw, 170px); }
  .shelf__set[data-variant="zero"] .pack { --ph: min(36vw, 225px); }
  .shot__big { font-size: min(144px, 29.6vw); }
  .shot__sub { font-size: min(23.5px, 4.8vw); }
  .shot--2 img { height: min(289px, 59vw); }
  .shot__cap { left: 16px; right: 16px; bottom: 14px; font-size: .95rem; }
}
@supports not (overflow: clip) {
  .title__line { overflow: hidden; padding-inline: .05em; margin-inline: -.05em; }
}

/* ---------- reduced motion: a still page (html.motion is never set) ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .clip { transform: none; }
  .clip__dim { opacity: 0; }
}
