/* Smile+ concept: polish layer. The promo bar, the trust marquee, quicker and softer presses, studio-lit
   product photos, sliding selection, a smooth FAQ, photo fade-ins, scroll-linked depth, sections that open
   from the spot you press, the pop-up match and a few personal touches.
   Loaded after refine.css; motion.js adds the behavior and the page still works without it. */

:root { --spring: cubic-bezier(.3, 1.32, .5, 1); --glide: cubic-bezier(.32, .72, 0, 1); }
html { -webkit-tap-highlight-color: transparent; }
::selection { background: rgba(24, 72, 216, .16); }
:is(a, button, summary, [role="radio"], [role="slider"]) { touch-action: manipulation; }

/* ---------- Promo bar: four true promotions in capitals, flashing in one after another ---------- */
.announce { background: radial-gradient(55% 160% at 50% 0%, rgba(47, 109, 255, .42), transparent 72%), linear-gradient(90deg, #040724, #0a1452 50%, #040724); font-size: 11px; font-weight: 600; letter-spacing: .085em; text-transform: uppercase; }
.ann { display: flex; align-items: center; justify-content: center; gap: 14px; height: 100%; padding: 0 16px; color: #d6e3ff; text-decoration: none; white-space: nowrap; }
.ann-slides { display: grid; align-items: center; justify-items: center; }
.ann-slides.is-fluid { position: relative; display: block; flex: none; height: var(--ann-h, 20px); transition: width .5s var(--glide) .08s; }
.ann-slides.is-fluid .ann-slide { position: absolute; top: 50%; left: 50%; translate: -50% -50%; }
.ann-slide { grid-area: 1 / 1; display: inline-flex; align-items: center; gap: 10px; opacity: 0; transform: translate3d(0, 11px, 0); filter: blur(3px); transition: opacity .5s var(--ease), transform .65s var(--ease), filter .5s var(--ease); }
/* The old promotion clears first, the strip resizes, then the new one rises in, so nothing ever overlaps "Shop now". */
.ann-slide.is-on { opacity: 1; transform: none; filter: none; transition-delay: .18s; }
.ann-slide.is-out { opacity: 0; transform: translate3d(0, -11px, 0); filter: blur(3px); transition-duration: .25s, .4s, .25s; }
.ann-pill { position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px 3px 7px; border-radius: 999px; background: linear-gradient(135deg, #fff, #dde8ff); color: #0b1d73; font-size: 10px; font-weight: 750; letter-spacing: .1em; box-shadow: 0 6px 16px -8px rgba(110, 168, 255, .9); }
.ann-pill svg { width: 11px; height: 11px; color: #2a62ff; }
.ann-pill::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .95) 50%, transparent 70%); transform: translateX(-130%); }
.ann-slide.is-on .ann-pill { animation: annPop .7s var(--spring) .18s both; }
.ann-slide.is-on .ann-pill::after { animation: annFlash 1.1s var(--ease) .4s both; }
@keyframes annPop { from { scale: .84; } }
@keyframes annFlash { from { transform: translateX(-130%); } to { transform: translateX(130%); } }
.ann-text b { color: #fff; font-weight: 750; }
.ann-cta { display: inline-flex; align-items: center; gap: 6px; color: #fff; font-weight: 750; }
.ann-cta::before { content: ''; width: 1px; height: 12px; margin-right: 8px; background: rgba(255, 255, 255, .24); }
.ann-cta svg { width: 13px; height: 13px; transition: transform .5s var(--spring); }
.ann:hover .ann-cta svg { transform: translateX(3px); }
.ann:hover .ann-text { color: #fff; }
.ann:focus-visible { outline: 2px solid #fff; outline-offset: -4px; border-radius: 6px; }
@media (max-width: 640px) {
  .announce { font-size: 10.5px; letter-spacing: .06em; }
  .ann { gap: 9px; padding: 0 12px; }
  .ann-slide { gap: 8px; }
  .ann-pill { font-size: 9.5px; letter-spacing: .07em; padding: 3px 8px 3px 6px; }
  .ann-cta::before { margin-right: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  .ann-slide, .ann-slide.is-on, .ann-slide.is-out { transform: none; filter: none; transition: opacity .3s ease; }
  .ann-slides.is-fluid { transition: none; }
  .ann-slide.is-on .ann-pill, .ann-slide.is-on .ann-pill::after { animation: none; }
}

/* ---------- Trust marquee: the one moving strip, with every flavor's real lid between the claims ---------- */
.trust { position: relative; background: #fff; }
.trust::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(24, 72, 216, .24), transparent); }
.tq { padding: clamp(18px, 2vw, 26px) 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.tq-track { display: flex; align-items: center; gap: clamp(22px, 2.4vw, 38px); width: max-content; margin: 0; padding: 0; list-style: none; }
.tq.is-running .tq-track { animation: tqMove var(--tq-dur, 40s) linear infinite; will-change: transform; }
.tq:hover .tq-track { animation-play-state: paused; }
@keyframes tqMove { to { transform: translate3d(var(--tq-shift, -50%), 0, 0); } }
.tq-item { font-family: var(--display); font-size: clamp(16px, 1.3vw, 19px); font-weight: 600; letter-spacing: -.018em; color: var(--ink); white-space: nowrap; }
.tq-sep { flex: none; width: clamp(30px, 2.6vw, 38px); aspect-ratio: 1; border-radius: 50%; background: var(--img) 49.5% 50.5% / 150% auto no-repeat, #eef2f8; box-shadow: 0 8px 18px -10px rgba(12, 22, 80, .55), inset 0 0 0 1px rgba(255, 255, 255, .7); transition: scale .5s var(--spring); }
.tq-sep:hover { scale: 1.18; }
.tq.is-static { -webkit-mask-image: none; mask-image: none; }
.tq.is-static .tq-track { flex-wrap: wrap; justify-content: center; width: auto; row-gap: 14px; padding: 0 20px; }

/* ---------- Hero: the flavor name changes with a soft fade, in step with the copy ---------- */
@keyframes hxName { from { opacity: 0; filter: blur(4px); transform: translate3d(0, 6px, 0); } }
@media (prefers-reduced-motion: no-preference) { .hx.is-swap .hx-label b { animation: hxName .6s var(--ease) both; } }

/* ---------- Hero: the copy drifts up and fades as you scroll away from it (desktop, where it sits mid-screen) ---------- */
@media (min-width: 861px) and (prefers-reduced-motion: no-preference) {
  .hx .hero-inner { opacity: calc(1 - var(--hp, 0) * 1.6); translate: 0 calc(var(--hp, 0) * -72px); }
}

/* ---------- Presses: quick to push in, soft spring back out ---------- */
.btn { transition: transform .55s var(--spring), background-color .3s ease, box-shadow .5s var(--ease), color .3s ease, border-color .3s ease; }
.btn:active { transform: scale(.965); transition-duration: .12s; }
.bundle { transition: border-color .35s var(--ease), box-shadow .35s var(--ease), background-color .35s var(--ease), transform .5s var(--spring); }
.flv { transition: border-color .35s var(--ease), background-color .35s var(--ease), transform .5s var(--spring); }
.filter { transition: color .3s ease .07s, background-color .3s ease, transform .5s var(--spring); }
:is(.bundle, .flv, .filter):active { transform: scale(.955); transition-duration: .12s; }
.hx-swatch { transition: transform .5s var(--ease), box-shadow .5s var(--ease), scale .45s var(--spring); }
.hx-swatch:active { scale: .9; transition-duration: .12s; }
:is(.bundle, .flv, .filter, .hx-swatch, .day-mark, .menu-btn, .faq-list summary) { -webkit-user-select: none; user-select: none; }
.btn svg, .link-arrow svg, .m-link svg { transition: transform .5s var(--spring); }

/* ---------- Shop: studio-lit photos, a sliding selection ring, prices that tick ---------- */
.shop { background: linear-gradient(180deg, #fff 0%, #f5f7fc 34%, #f5f7fc 70%, #fff 100%); }
.pc-media { isolation: isolate; background: radial-gradient(90% 78% at 50% 26%, #fff 0%, #f6f8fc 44%, #e9eef6 100%); }
.product-card.dark .pc-media { background: radial-gradient(90% 78% at 50% 26%, #fff 0%, #f1f4fa 44%, #dde4f1 100%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5); }
.pc-media::before { content: ''; position: absolute; inset: 0; z-index: 3; pointer-events: none; border-radius: inherit; background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, .55) 50%, transparent 62%) no-repeat; background-size: 250% 100%; background-position: 130% 0; opacity: 0; transition: background-position 1.3s var(--ease), opacity .4s ease; }
.product-card:hover .pc-media::before { opacity: 1; background-position: -30% 0; }
.pc-img, .pc-ghost { mix-blend-mode: multiply; }
.pc-img { position: relative; z-index: 1; transition: transform 1.2s var(--ease), scale .9s var(--ease); }
.pc-ghost { position: absolute; z-index: 2; object-fit: contain; pointer-events: none; }
.pc-badge { z-index: 4; }
.product-card { isolation: isolate; transition: translate .8s var(--ease), box-shadow .8s var(--ease); }
.product-card:hover { box-shadow: 0 40px 80px -46px rgba(12, 22, 80, .5); }
/* a soft light that follows the cursor across each card, behind its content */
.product-card::after { display: block; z-index: -1; background: radial-gradient(560px circle at var(--gx, 50%) var(--gy, 0%), rgba(24, 72, 216, .08), transparent 46%); transition: opacity .6s var(--ease); }
.product-card.dark::after { background: radial-gradient(560px circle at var(--gx, 50%) var(--gy, 0%), rgba(120, 170, 255, .18), transparent 46%); }
.has-glider { position: relative; isolation: isolate; }
.glider { position: absolute; left: 0; top: 0; pointer-events: none; opacity: 0; transition: transform .55s var(--glide), width .55s var(--glide), height .55s var(--glide), opacity .3s ease; will-change: transform; }
.glider.no-anim { transition: none; }
@media (prefers-reduced-motion: reduce) { .glider { transition: none; } }
.bundles .glider { z-index: 2; border-radius: 16px; box-shadow: inset 0 0 0 2px var(--royal), 0 0 0 4px rgba(24, 72, 216, .13), 0 16px 30px -20px rgba(24, 72, 216, .6); }
.dark .bundles .glider { box-shadow: inset 0 0 0 2px #fff, 0 0 0 4px rgba(255, 255, 255, .14), 0 16px 30px -20px rgba(0, 0, 0, .8); }
.bundles.has-glider .bundle[aria-checked="true"] { border-color: transparent; box-shadow: none; }
.bundles.has-glider .bundle b { transition: color .35s ease; }
.bundles.has-glider .bundle[aria-checked="true"] b { color: var(--royal); }
.dark .bundles.has-glider .bundle[aria-checked="true"] b { color: #fff; }
.bundle em { z-index: 3; }
.filters .glider { z-index: 0; border-radius: 999px; background: var(--ink); box-shadow: 0 10px 20px -12px rgba(12, 20, 70, .7); }
.filters.has-glider .filter { position: relative; z-index: 1; }
.filters.has-glider .filter.is-active { background: transparent; color: #fff; }
.flv:hover { border-color: rgba(255, 255, 255, .42); }
.flv i { transition: scale .5s var(--spring); }
.flv[aria-checked="true"] i { scale: 1.12; }

/* ---------- FAQ: the icon follows the smooth open state, not the raw attribute ---------- */
.faq-list summary { transition: color .3s ease; }
.faq-list summary:hover { color: var(--royal); }
.faq-list summary i { transition: background-color .35s var(--ease), transform .55s var(--ease), scale .35s var(--spring); }
.faq-list summary:active i { scale: .88; }
.faq-list.is-smooth details[open]:not(.is-open) summary i { background: var(--ice); transform: none; }
.faq-list.is-smooth details[open]:not(.is-open) summary i::before, .faq-list.is-smooth details[open]:not(.is-open) summary i::after { background: var(--ink); }
.faq-list.is-smooth details[open]:not(.is-open) summary i::after { transform: rotate(90deg); }

/* ---------- 16-hour gap: soft light pooling behind the timeline ---------- */
.gap { background: radial-gradient(1000px 520px at 50% 92%, rgba(47, 109, 255, .1), transparent 72%), linear-gradient(180deg, #fff, var(--ice-2)); }

/* ---------- Swap: the comparison builds row by row; on phones the middle header stays clear of the Smile+ column ---------- */
.compare { container-type: inline-size; }
.cmp-short { display: none; }
@container (max-width: 600px) {
  .cmp-long { display: none; }
  .cmp-short { display: inline; }
  .cmp-row > span:nth-child(2) { padding-right: 12px; }
}
@media (prefers-reduced-motion: no-preference) {
  .js .compare[data-reveal] { opacity: 1; transform: none; filter: none; transition: none; }
  .js .compare[data-reveal]:not(.in) > * { opacity: 0; }
  .js .compare.in > * { animation: riseIn .8s var(--ease) backwards; }
  .js .compare.in > :nth-child(2) { animation-delay: .08s; }
  .js .compare.in > :nth-child(3) { animation-delay: .16s; }
  .js .compare.in > :nth-child(4) { animation-delay: .24s; }
  .js .compare.in > :nth-child(5) { animation-delay: .32s; }
}

/* ---------- Ingredients and reviews: gentle lift on hover ---------- */
.ing { transition: opacity .5s var(--ease), filter .5s var(--ease), transform .6s var(--ease), box-shadow .5s var(--ease), translate .6s var(--ease); }
.ing:not(.dim):hover { translate: 0 -4px; }
.rv-wall .rv-card { transition: translate .5s var(--ease), box-shadow .5s var(--ease); }
.rv-wall .rv-card:hover { translate: 0 -4px; box-shadow: 0 26px 50px -30px rgba(12, 20, 80, .38); }
.rv-photo img { transition: transform .9s var(--ease), opacity .9s var(--ease); }

/* ---------- Photos fade in as they arrive instead of popping in ---------- */
.motion img.is-pending { opacity: 0; }
.motion .m-media img.is-in { opacity: 1; transition: opacity .9s var(--ease), scale 1s var(--ease); }
.motion :is(.mn-media, .rstep, .swap-art) img.is-in { opacity: 1; transition: opacity .9s var(--ease), transform 1.2s var(--ease); }
.motion :is(.rc-media, .final-tins, .rv-photo) img.is-in { opacity: 1; transition: opacity .9s var(--ease), transform .9s var(--ease); }

/* ---------- Final call to action: the two tins float ---------- */
@keyframes tinFloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
@media (prefers-reduced-motion: no-preference) {
  .final-tins img { animation: tinFloat 7s ease-in-out infinite; }
  .final-tins img:last-child { animation-delay: -3.5s; }
}

/* ---------- Footer: a large, quiet wordmark to sign off ---------- */
.ft-mark { display: block; width: 100%; height: auto; margin: clamp(44px, 6vw, 88px) 0 clamp(-30px, -2vw, -12px); color: #fff; opacity: .06; --plus: #8fb8ff; pointer-events: none; -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 100%); mask-image: linear-gradient(180deg, #000 30%, transparent 100%); }

/* ---------- Mobile menu: opens in a circle from the menu button ---------- */
@keyframes menuOpen { from { clip-path: circle(0px at var(--mo-x, calc(100% - 42px)) var(--mo-y, 66px)); } to { clip-path: circle(150% at var(--mo-x, calc(100% - 42px)) var(--mo-y, 66px)); } }
@keyframes menuClose { from { clip-path: circle(135% at var(--mo-x, calc(100% - 42px)) var(--mo-y, 66px)); } to { clip-path: circle(0px at var(--mo-x, calc(100% - 42px)) var(--mo-y, 66px)); } }
@keyframes menuItemOut { to { opacity: 0; transform: translate3d(0, -10px, 0); } }
@media (prefers-reduced-motion: no-preference) {
  .mobile-menu:not([hidden]) { animation: menuOpen .65s var(--glide) both; }
  .mobile-menu.is-closing:not([hidden]) { animation: menuClose .46s cubic-bezier(.45, 0, .2, 1) both; }
  .mobile-menu.is-closing:not([hidden]) > :nth-child(n) { animation: menuItemOut .24s ease both; animation-delay: 0s; }
  .mobile-menu:not([hidden]) > * { animation: introIn .7s var(--ease) both; }
  .mobile-menu:not([hidden]) > :nth-child(2) { animation-delay: .04s; }
  .mobile-menu:not([hidden]) > :nth-child(3) { animation-delay: .08s; }
  .mobile-menu:not([hidden]) > :nth-child(4) { animation-delay: .12s; }
  .mobile-menu:not([hidden]) > :nth-child(5) { animation-delay: .16s; }
  .mobile-menu:not([hidden]) > :nth-child(6) { animation-delay: .2s; }
  .mobile-menu:not([hidden]) > :nth-child(7) { animation-delay: .24s; }
}

/* ---------- Scroll-linked depth: photos drift inside their frames as you pass them ---------- */
@keyframes driftY { from { translate: 0 -4.5%; } to { translate: 0 4.5%; } }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .rstep img, .rc-media img, .swap-art img { scale: 1.1; animation: driftY linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; }
  }
}

/* ---------- Section jumps: the new section opens from the spot you pressed ---------- */
html.vt-open .site-header { view-transition-name: sp-header; }
html.vt-open .sticky-cta { view-transition-name: sp-sticky; }
html.vt-open::view-transition-old(root) { transform-origin: var(--vt-x) var(--vt-y); animation: vtRecede .9s cubic-bezier(.4, 0, .2, 1) both; }
html.vt-open::view-transition-new(root) { transform-origin: var(--vt-x) var(--vt-y); animation: vtOpen .9s cubic-bezier(.5, 0, .1, 1) both; }
html.vt-open::view-transition-group(sp-header), html.vt-open::view-transition-group(sp-sticky) { animation-duration: .6s; animation-timing-function: var(--ease); }
@keyframes vtRecede { to { opacity: .2; transform: scale(.93); } }
@keyframes vtOpen { from { clip-path: circle(0px at var(--vt-x) var(--vt-y)); transform: scale(1.06); } to { clip-path: circle(var(--vt-r) at var(--vt-x) var(--vt-y)); transform: none; } }
.nav-veil { position: fixed; inset: 0; z-index: 450; pointer-events: none; background: radial-gradient(circle at var(--vt-x, 50%) var(--vt-y, 50%), #fff, #edf2ff 55%, #dbe5ff); }
main [tabindex="-1"]:focus { outline: none; }

/* ---------- 16-hour gap: a "Now" pin at the visitor's own time, and a lights-out stop at midnight ---------- */
.day-now { position: absolute; top: 50%; left: var(--x); translate: -50% -50%; display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px 4px 7px; border-radius: 999px; background: #fff; color: var(--royal); font-size: 10px; font-weight: 800; letter-spacing: .12em; line-height: 1; text-transform: uppercase; white-space: nowrap; box-shadow: 0 6px 16px -8px rgba(24, 72, 216, .6), inset 0 0 0 1px rgba(24, 72, 216, .14); pointer-events: none; }
.day-now i { width: 7px; height: 7px; border-radius: 50%; background: var(--royal); animation: nowPulse 2.2s ease-out infinite; }
.day-now.hit { animation: nowHit .7s var(--spring); }
@keyframes nowPulse { 0% { box-shadow: 0 0 0 0 rgba(24, 72, 216, .45); } 70%, 100% { box-shadow: 0 0 0 7px rgba(24, 72, 216, 0); } }
@keyframes nowHit { 40% { scale: 1.22; } }
.day-card-icon.k-rest { background: linear-gradient(135deg, #1b2470, #070b33); color: #cfe0ff; }
@media (max-width: 640px) { .day-now { padding: 3px 7px 3px 6px; letter-spacing: .08em; } }

/* ---------- Pop-up: a playful match first, then the email ---------- */
.leadpop .lead-card { filter: blur(6px); transition: opacity .5s var(--ease), transform .8s var(--glide), filter .6s var(--ease); }
.leadpop.is-open .lead-card { filter: none; }
.lead-step.is-on { animation: leadStep .55s var(--ease) backwards; }
@keyframes leadStep { from { opacity: 0; transform: translateY(12px); filter: blur(5px); } }
.lead-hello { display: inline-flex; align-items: center; gap: 7px; }
.lead-hello svg { width: 13px; height: 13px; color: var(--royal); }
.lead-moments { margin-top: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lead-moments button { display: grid; justify-items: start; align-content: start; gap: 2px; padding: 15px 15px 14px; border-radius: 18px; border: 1.5px solid rgba(22, 19, 69, .1); background: #fff; text-align: left; transition: border-color .3s var(--ease), box-shadow .4s var(--ease), transform .5s var(--spring); animation: momentIn .6s var(--ease) backwards; }
.lead-moments button:nth-child(2) { animation-delay: .06s; }
.lead-moments button:nth-child(3) { animation-delay: .12s; }
.lead-moments button:nth-child(4) { animation-delay: .18s; }
@keyframes momentIn { from { opacity: 0; transform: translateY(12px) scale(.97); } }
.lead-moments i { width: 38px; height: 38px; margin-bottom: 9px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 24%, #fff); color: #0b1d73; transition: transform .5s var(--spring), background-color .3s ease; }
.lead-moments svg { width: 19px; height: 19px; }
.lead-moments b { font-size: 15.5px; font-weight: 800; letter-spacing: -.01em; color: var(--ink); }
.lead-moments small { font-size: 12.5px; font-weight: 600; line-height: 1.35; color: var(--ink-soft); }
.lead-moments button:hover { border-color: var(--c); transform: translateY(-3px); box-shadow: 0 18px 34px -22px rgba(24, 72, 216, .55); }
.lead-moments button:hover i { transform: rotate(-8deg) scale(1.08); background: color-mix(in srgb, var(--c) 42%, #fff); }
.lead-moments button:active { transform: scale(.97); transition-duration: .12s; }
.lead-moments button:focus-visible { outline: 2px solid var(--royal); outline-offset: 2px; }
.lead-photo { transition: opacity .6s var(--ease), transform 1.2s var(--ease); }
.lead-card.has-match .lead-photo { opacity: 0; transform: scale(1.08); }
.lead-match { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transition: opacity .6s var(--ease); background: radial-gradient(55% 50% at 50% 50%, color-mix(in srgb, var(--match, #2a72e8) 60%, transparent), transparent 72%), radial-gradient(120% 100% at 50% 0%, #1d46d0, #08155e 72%); }
.lead-card.has-match .lead-match { opacity: 1; }
.lead-tins { position: relative; height: 62%; aspect-ratio: 1; filter: drop-shadow(0 26px 30px rgba(0, 0, 0, .45)); }
.lead-tins:has(img:nth-child(3)) { height: 46%; }
/* the tin photos sit on a pale square, so each one is drawn a little larger and cropped to its round lid */
.lead-tins img { position: absolute; inset: -17.5%; width: 135%; height: 135%; max-width: none; object-fit: contain; object-position: 50% 50%; clip-path: circle(37% at 49.5% 50.2%); translate: calc(var(--i) * 21%) calc(var(--i) * var(--i) * 4%); rotate: calc(var(--i) * 13deg); animation: tinPop .9s var(--spring) backwards; animation-delay: calc(.08s + (var(--i) + 1) * .07s); }
.lead-tins img:nth-child(2):not(:last-child) { z-index: 1; }
@keyframes tinPop { from { opacity: 0; scale: .45; rotate: calc(var(--i) * 13deg - 30deg); } }
.lead-burst { position: absolute; left: 50%; top: 50%; width: 0; height: 0; }
.lead-burst i { position: absolute; left: 0; top: 0; width: var(--w); height: calc(var(--w) * .62); border-radius: 2px; background: var(--c); opacity: 0; animation: burst 1.15s cubic-bezier(.12, .7, .3, 1) .12s; }
@keyframes burst { 0% { opacity: 1; transform: translate(-50%, -50%) rotate(0deg) scale(.3); } 75% { opacity: 1; } 100% { opacity: 0; transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy) + 28px)) rotate(var(--r)) scale(1); } }
[data-match-note] { color: var(--ink-soft); }
.lead-row { margin-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lead-back, .lead-skip { padding: 8px 0; font-size: 14px; font-weight: 700; color: var(--ink-soft); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(22, 19, 69, .25); }
.lead-skip { color: var(--royal); text-decoration-color: rgba(24, 72, 216, .35); }
@media (max-width: 760px) {
  .lead-moments { gap: 8px; margin-top: 16px; }
  .lead-moments button { padding: 12px 12px 11px; border-radius: 16px; }
  .lead-moments i { width: 32px; height: 32px; margin-bottom: 6px; border-radius: 10px; }
  .lead-moments b { font-size: 14.5px; }
  .lead-moments small { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .leadpop .lead-card { filter: none; }
  .lead-step.is-on, .lead-moments button, .lead-tins img { animation: none; }
}

/* ---------- Personal touches: "Right now" on the moment that matches the visitor's clock, their match in the shop ---------- */
.m-now { display: inline-flex; align-items: center; gap: 5px; margin-left: 4px; padding: 3px 8px 3px 6px; border-radius: 999px; background: var(--royal); color: #fff; font-size: 10px; font-weight: 800; letter-spacing: .1em; line-height: 1.2; text-transform: uppercase; }
.m-now i { width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: nowBlink 1.6s ease-in-out infinite; }
@keyframes nowBlink { 50% { opacity: .3; } }
.pc-match { position: absolute; top: 16px; right: 16px; z-index: 4; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px 7px 10px; border-radius: 999px; background: linear-gradient(135deg, #2d6bff, #0e2f9f); color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .02em; box-shadow: 0 12px 26px -14px rgba(24, 72, 216, .9); pointer-events: none; animation: matchIn .8s var(--spring) backwards; }
.pc-match svg { width: 12px; height: 12px; }
@keyframes matchIn { from { opacity: 0; scale: .6; } }

/* ---------- Tablets: use the extra room instead of stretching the phone layout ---------- */
@media (min-width: 641px) and (max-width: 860px) {
  /* the full promo lines and the hero's longer intro fit here */
  .hide-sm { display: revert; }
  .hero .cta-row { max-width: 560px; }
  .sticky-cta { left: 50%; right: auto; width: min(560px, calc(100% - 24px)); translate: -50% 0; }
}
/* the pop-up tab sits above the bottom bar instead of on top of it */
@media (min-width: 761px) and (max-width: 860px) { .lead-tab { left: max(20px, calc(50% - 280px)); bottom: calc(92px + env(safe-area-inset-bottom)); } }
@media (min-width: 641px) and (max-width: 860px) and (max-height: 1099px) { .hero .lead .hide-sm { display: none; } }
@media (min-width: 641px) and (max-width: 860px) and (min-height: 1100px) {
  /* tall portrait tablets: a bigger tin, and the chips and copy fill the space the phone layout leaves empty */
  .hx .hero-anchor, .hx .hero-aura { height: 42svh; }
  .hx .hero-aura { --a: min(100vw, 42svh); }
  .hx-picker { top: calc(84px + 42svh - 22px); }
  .hero .zeros { display: flex; margin-top: 18px; }
  .hero h1, .hx .stage h2.display { font-size: min(8.8vw, 6svh); }
  .hero .lead { font-size: 18px; max-width: 600px; }
}
@media (min-width: 641px) and (max-width: 900px) {
  /* all four ritual steps on screen at once, two by two */
  .ritual-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: row; grid-auto-columns: auto; overflow: visible; scroll-snap-type: none; margin-inline: 0; padding: 0; gap: 34px 20px; }
  .swap-art { aspect-ratio: 4 / 3; }
  .ft-cols { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 641px) and (max-width: 1000px) {
  /* side-by-side review cards: a tall phone photo no longer stretches its card */
  .rv-feat { min-height: 280px; }
  .rv-feat-media img { position: absolute; inset: 0; }
}

/* ---------- Phones on their side: tin on the right, the story on the left, all on one screen ---------- */
@media (max-width: 860px) and (max-height: 500px) and (orientation: landscape) {
  .hx { min-height: 0; }
  .hx .hero-anchor, .hx .hero-aura { top: 64px; left: 50%; right: 0; width: auto; height: calc(100svh - 150px); }
  .hx .hero-aura { --a: min(50vw, calc(100svh - 150px)); }
  .no-3d .hero-fallback { right: 25%; top: calc(64px + (100svh - 150px) / 2); width: min(36vw, calc(100svh - 170px)); }
  .hx-picker { left: 75%; top: auto; bottom: 12px; }
  .hx-label, .lead-tab { display: none; }
  .stage { top: calc(50% + 30px); bottom: auto; width: 50%; transform: translateY(-44%); }
  .stage.is-active { transform: translateY(-50%); }
  .hero h1, .hx .stage h2.display { font-size: min(5.2vw, 10.5svh); margin-top: 10px; }
  .hx .stage .lead { display: block; font-size: 14px; margin-top: 8px; }
  .hero .lead .hide-sm, .hero-proof { display: none; }
  .hero .cta-row { margin-top: 14px; }
  .hero .cta-row .btn { height: 46px; }
}
@media (min-width: 861px) and (max-width: 1000px) and (max-height: 500px) {
  .hx { min-height: 0; }
  .hero .zeros, .hero-proof, .hx-label, .hx-hint { display: none; }
  .hero .lead .hide-sm { display: none; }
  .hero h1, .hx .stage h2.display { font-size: min(5vw, 11svh); margin-top: 12px; }
  .hero .lead { margin-top: 12px; }
  .hero .cta-row { margin-top: 18px; }
}

/* ---------- Phones: a touch more legible, and nothing clipped on small screens ---------- */
@media (max-width: 640px) {
  .announce { font-size: 11px; }
  .ann-pill { font-size: 10px; }
  .rv-stat b { font-size: min(32px, 7.4vw); }
}

/* ---------- Phones: one calm, centered hero. The tin takes whatever room the copy leaves, the flavors sit right
   under it, and the story reads top to bottom with both buttons in thumb reach. Nothing can overlap, on any height. ---------- */
@media (max-width: 640px) and (orientation: portrait) {
  /* the hero has its own button and the bottom bar takes over after it, so the header keeps just the logo and menu */
  .nav-cta .btn { display: none; }
  .hx { min-height: 540px; }
  .hx .hero-sticky { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: 66px minmax(150px, 1fr) auto auto; padding-bottom: 18px; }
  /* a square stage for the tin and its light, as big as the room allows; the tin fills about 70% of it, so the square
     can tuck under the header and behind the flavor label without the tin ever touching either */
  .hx .hero-anchor, .hx .hero-aura { position: relative; grid-area: 2 / 1; inset: auto; place-self: center; width: auto; height: min(100%, 86vw); aspect-ratio: 1; }
  /* the rays, halo and light pool are sized from that square, so they always match the tin */
  @supports (width: 1cqmin) {
    .hx .hero-aura { container-type: size; }
    .hx .hero-aura::before, .hx .hero-aura::after, .hx .hero-aura > i { --a: 100cqmin; }
  }
  /* the product photo sits on a pale square, so it is cropped to its round lid */
  .no-3d .hx .hero-fallback { position: relative; grid-area: 2 / 1; inset: auto; place-self: center; transform: none; width: auto; height: min(100%, 86vw); aspect-ratio: 1; object-fit: contain; border-radius: 0; box-shadow: none; clip-path: circle(37.6% at 49.5% 50.2%); }
  /* the photo's ice ridge stays right under the tin wherever it lands (main.js measures the tin) */
  .hx .hero-art { --art-h: calc(max(100vw, 64.7svh) * 16 / 9); background-position: 50% calc(var(--tin-cy, 40svh) + var(--tin-s, 300px) * .3 - var(--art-h) * .46); }
  .hx-arts::after { background: linear-gradient(180deg, rgba(4, 6, 28, .5) 0%, rgba(4, 6, 28, 0) 20%, rgba(4, 6, 28, 0) 42%, rgba(4, 6, 28, .52) 64%, rgba(4, 6, 28, .86) 100%); }
  .hx-picker { position: relative; grid-area: 3 / 1; inset: auto; translate: none; justify-self: center; margin-top: -18px; gap: 8px; }
  .hx-label { font-size: 13px; line-height: 1.25; }
  .hx-swatches { gap: 10px; padding: 6px 11px; }
  /* both stories share one slot, bottom-aligned, so the buttons never move when the copy changes */
  .hx .hero-inner { grid-area: 4 / 1; display: grid; height: auto; margin-top: 16px; }
  .hx .stage { grid-area: 1 / 1; align-self: end; position: relative; inset: auto; width: auto; text-align: center; transform: translateY(14px); }
  .hx .stage.is-active { transform: none; }
  .hx .stage .pill { gap: 8px; padding: 6px 13px 6px 10px; font-size: 12.5px; }
  .hx .stage .pill .dot { width: 7px; height: 7px; }
  /* sized so the longest line, "Zero Coffee Breath.", always fits: both headlines stay two lines on every phone */
  .hero h1, .hx .stage h2.display { font-size: max(30px, min(calc((100vw - 32px) / 9.1), 6.1svh, 46px)); margin-top: 12px; }
  .hero .lead { margin: 10px auto 0; max-width: 30em; font-size: 15.5px; line-height: 1.45; }
  .hero .cta-row { max-width: 440px; margin: 18px auto 0; justify-content: center; }
  .hero .cta-row .btn { height: 50px; }
  .hero-proof { margin: 12px auto 0; justify-content: center; gap: 8px; font-size: 13px; }
  .hero-proof .stars svg { width: 14px; height: 14px; }
}
/* taller phones have room for the one-line promise; the shortest ones keep the tin, the headline and the buttons */
@media (max-width: 640px) and (orientation: portrait) and (min-height: 690px) { .hx .stage .lead { display: block; } }
@media (max-width: 640px) and (orientation: portrait) and (max-height: 619px) { .hx .hero-proof { display: none; } }
@media (max-width: 640px) and (orientation: portrait) and (max-height: 569px) { .hx .stage .pill { display: none; } .hero h1, .hx .stage h2.display { margin-top: 0; } }
@media (max-width: 374px) { .hero-proof { gap: 6px; font-size: 12.5px; } .hero-proof .stars svg { width: 13px; height: 13px; } }

/* ---------- Phones: on a slow connection the tin's photo holds its place, tilted like the real one, then dissolves
   as the 3D tin rises in. On a fast connection it never shows. ---------- */
@media (max-width: 640px) and (orientation: portrait) {
  .js:not(.no-3d) .hx .hero-fallback { display: block; position: relative; z-index: 1; grid-area: 2 / 1; inset: auto; place-self: center; width: auto; height: min(100%, 86vw); aspect-ratio: 1; object-fit: contain; border-radius: 0; box-shadow: none; clip-path: circle(37.6% at 49.5% 50.2%); transform: perspective(900px) rotateX(36deg); pointer-events: none; opacity: 1; transition: opacity .5s var(--ease) .45s, scale .9s var(--ease), filter .7s var(--ease); }
  @starting-style { .js:not(.no-3d) .hx .hero-fallback { opacity: 0; } }
  .js:not(.no-3d) .hx .hero-sticky.is-live .hero-fallback { opacity: 0; scale: .9; filter: blur(6px); transition: opacity .7s var(--ease), scale .9s var(--ease), filter .7s var(--ease); }
}

/* ---------- Reviews: the dentist's own words, with his practice ---------- */
.rv-pro blockquote span { font-weight: 500; color: var(--ink-soft); }
.rv-pro figcaption span { display: block; margin-top: 2px; font-weight: 600; opacity: .8; }

/* ---------- Phones: quicker, shorter reveals, a bottom bar that glides in, swipe rows that keep the swipe to themselves ---------- */
@media (max-width: 860px) {
  .sticky-cta { transition: transform .7s var(--glide); }
  :is(.ritual-steps, .rv-photos, .rv-wall) { overscroll-behavior-x: contain; }
}
@media (max-width: 640px) {
  .js [data-reveal] { transform: translate3d(0, 22px, 0); transition-duration: .8s, .95s, .8s; }
  /* the closing call to action: two equal buttons, one above the other */
  .final .cta-row { flex-direction: column; align-items: center; gap: 10px; }
  .final .cta-row .btn { width: min(100%, 330px); }
}

/* ---------- Loops pause while their section is off screen, so scrolling stays smooth ---------- */
.is-offscreen, .is-offscreen *, .is-offscreen *::before, .is-offscreen *::after { animation-play-state: paused !important; }
