/* Animatable so the whole UI can cross-fade between product colours. */
@property --accent {
  syntax: "<color>";
  inherits: true;
  initial-value: #0a9ad8;
}

:root {
  --bg: #0a0b0d;
  --text: #f5f6f7;
  --muted: rgba(245, 246, 247, 0.64);
  --faint: rgba(245, 246, 247, 0.42);
  --line: rgba(255, 255, 255, 0.1);
  --glass: rgba(255, 255, 255, 0.07);
  --accent-ink: #ffffff;
  --display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif-condensed, Impact, sans-serif;
  --ui: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --bar-h: calc(64px + var(--safe-top));
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--bg);
}

body {
  display: grid;
  place-items: center;
  font-family: var(--ui);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

button { font: inherit; color: inherit; }
a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ------------------------------------------------------------------ shell */
.backdrop {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(50% 45% at 50% 45%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 75%),
    var(--bg);
  transition: --accent 0.6s ease;
}

.frame {
  --accent: #0a9ad8;
  position: relative;
  width: 100vw;
  height: 100dvh;
  overflow: hidden;
  background: var(--bg);
  isolation: isolate;
  transition: --accent 0.6s ease;
  user-select: none;
  -webkit-user-select: none;
}

.desk-hint { display: none; }

@media (min-width: 700px) and (min-height: 620px) {
  .frame {
    width: auto;
    height: min(calc(100dvh - 72px), 920px);
    aspect-ratio: 9 / 19.5;
    border-radius: 38px;
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.08),
      0 50px 120px -30px rgba(0, 0, 0, 0.9);
  }
  .desk-hint {
    display: block;
    position: fixed;
    bottom: 14px;
    left: 0;
    right: 0;
    margin: 0;
    text-align: center;
    font-size: 12.5px;
    color: var(--faint);
  }
  .desk-hint kbd {
    display: inline-block;
    min-width: 20px;
    margin: 0 2px;
    padding: 1px 5px;
    font: 600 11px var(--ui);
    border: 1px solid var(--line);
    border-radius: 6px;
  }
}

.world {
  position: absolute;
  inset: 0 auto 0 0;
  display: flex;
  width: 300%;
  will-change: transform;
}

.panel {
  position: relative;
  flex: 0 0 calc(100% / 3);
  height: 100%;
  overflow: hidden;
  background: var(--bg);
}

/* --------------------------------------------------------------- top bars */
.bar {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: var(--bar-h);
  padding: var(--safe-top) 14px 0;
}

.logo {
  display: block;
  width: auto;
  height: 24px;
}

.icon-btn {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  padding: 0;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 14px;
  cursor: pointer;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  transition: background-color 0.2s ease, transform 0.15s ease;
}
.icon-btn:hover { background: rgba(255, 255, 255, 0.12); }
.icon-btn:active { transform: scale(0.94); }
.icon-btn svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-btn-spacer { width: 44px; flex: none; }

.bar-title { font-weight: 700; font-size: 15px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* -------------------------------------------------- category selector */
.cat {
  position: relative;
  flex: none;
  z-index: 6;
}

.cat-btn {
  transition: background-color 0.2s ease, border-color 0.3s ease, color 0.3s ease;
}
.cat.is-open .cat-btn { background: rgba(255, 255, 255, 0.14); }
.cat.is-filtered .cat-btn {
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  border-color: color-mix(in srgb, var(--accent) 48%, transparent);
}
/* A dot marks the button while a category filter is on. */
.cat.is-filtered .cat-btn::after {
  content: "";
  position: absolute;
  top: 6px;
  right: 6px;
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 999px;
}
.cat-btn { position: relative; }

.cat-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 208px;
  max-height: min(58vh, 420px);
  overflow-y: auto;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: rgba(18, 20, 24, 0.92);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 26px 60px -22px rgba(0, 0, 0, 0.95);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  animation: cat-in 0.18s ease;
}
.cat-menu[hidden] { display: none; }
@keyframes cat-in {
  from { opacity: 0; transform: translateY(-6px); }
}
.cat-menu button {
  display: block;
  width: 100%;
  padding: 11px 12px;
  font-size: 14px;
  font-weight: 700;
  text-align: left;
  background: none;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
}
.cat-menu button:hover { background: rgba(255, 255, 255, 0.08); }
.cat-menu button[aria-selected="true"] {
  color: var(--accent-ink);
  background: var(--accent);
}

/* ------------------------------------------------------------------ reel */
.reel { touch-action: none; }

.nav {
  background: linear-gradient(to bottom, rgba(10, 11, 13, 0.7), rgba(10, 11, 13, 0));
  pointer-events: none;
}
.nav > * { pointer-events: auto; }

.track {
  position: absolute;
  inset: 0;
  will-change: transform;
}

#scene {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
}

.ui-track {
  z-index: 2;
  pointer-events: none;
}

.slide-bg,
.slide {
  position: absolute;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Hidden by the category filter. */
.slide.is-out,
.slide-bg.is-out { display: none; }

.slide-bg {
  overflow: hidden;
  background:
    radial-gradient(85% 50% at 50% 38%, color-mix(in srgb, var(--accent) 34%, transparent), transparent 72%),
    linear-gradient(to bottom, #0a0b0d 0%, color-mix(in srgb, var(--accent) 9%, #0a0b0d) 50%, #0a0b0d 100%);
}

.bigword {
  position: absolute;
  top: calc(var(--bar-h) + 4%);
  left: -4%;
  right: -4%;
  margin: 0;
  font: 800 clamp(96px, 34vw, 170px) / 0.82 var(--display);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1.5px color-mix(in srgb, var(--accent) 50%, transparent);
  opacity: 0.55;
}

.slide {
  display: flex;
  flex-direction: column;
  padding: calc(var(--bar-h) + 6px) 20px calc(46px + var(--safe-bottom));
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 38%, transparent);
  border-radius: 999px;
}

.jar-zone {
  position: relative;
  flex: 1 1 auto;
  min-height: 120px;
}

.slide.is-loading .jar-zone::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 28px;
  height: 28px;
  margin: -14px 0 0 -14px;
  border: 3px solid rgba(255, 255, 255, 0.15);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.slide-info {
  display: grid;
  gap: 14px;
}

.p-name {
  margin: 0;
  font: 800 clamp(42px, 12.5vw, 56px) / 0.9 var(--display);
  text-transform: uppercase;
  letter-spacing: -0.005em;
}
.p-name span { color: var(--accent); white-space: nowrap; }

.p-tagline {
  margin: -4px 0 0;
  max-width: 36ch;
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--muted);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.stats li {
  padding: 12px 10px 11px;
  background: rgba(18, 20, 24, 0.55);
  border: 1px solid var(--line);
  border-radius: 16px;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
.stats strong {
  display: block;
  font: 700 27px / 1 var(--display);
  color: var(--text);
}
.stats span {
  display: block;
  margin-top: 5px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--muted);
}

.p-note {
  margin: -8px 0 0;
  font-size: 11px;
  color: var(--faint);
}

.price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 10px;
}
.price-now {
  font: 800 28px / 1 var(--display);
  letter-spacing: 0.01em;
}
.price-mrp {
  font-size: 13px;
  font-weight: 600;
  color: var(--faint);
}
.price-off {
  align-self: center;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-ink);
  background: var(--accent);
  border-radius: 999px;
}

.actions {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 10px;
}
.slide .btn,
.slide a { pointer-events: auto; }

.btn {
  display: inline-flex;
  white-space: nowrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 54px;
  padding: 0 18px;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  border: 0;
  border-radius: 16px;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.2s ease, filter 0.2s ease;
}
.btn:active { transform: scale(0.97); }
.btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.btn-primary {
  color: var(--accent-ink);
  background: var(--accent);
  box-shadow: 0 12px 30px -12px color-mix(in srgb, var(--accent) 80%, transparent);
}
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.13); }
.btn-block { width: 100%; }

.dots {
  position: absolute;
  top: 50%;
  right: 6px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  transform: translateY(-50%);
}
.dots button {
  display: grid;
  place-items: center;
  width: 22px;
  height: 20px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
}
.dots button::before {
  content: "";
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  transition: height 0.3s ease, background-color 0.3s ease;
}
.dots button[aria-selected="true"]::before {
  height: 18px;
  background: var(--text);
}

.coach-slot {
  position: relative;
  flex: 0 0 28px;
}
.coach {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  color: var(--text);
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.coach[hidden] { display: none; }
.coach.is-hiding { opacity: 0; }
.coach-chevron {
  width: 9px;
  height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  animation: nudge 1.4s ease-in-out infinite;
}
.coach-chevron + .coach-chevron { animation-delay: 0.15s; }
.coach.is-up { rotate: 180deg; }
@keyframes nudge {
  0%, 100% { translate: 0 -2px; opacity: 0.5; }
  50% { translate: 0 2px; opacity: 1; }
}

/* ------------------------------------------------------ scrolling panels */
.menu,
.info { touch-action: pan-y; }

.menu .bar,
.info .bar {
  background: rgba(10, 11, 13, 0.82);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.scroll {
  position: absolute;
  inset: var(--bar-h) 0 0 0;
  overflow-y: auto;
  /* Gesture rules must be on the scroll container, not just its parent. */
  touch-action: pan-y;
  overscroll-behavior: contain;
  padding: 8px 20px calc(120px + var(--safe-bottom));
  user-select: text;
  -webkit-user-select: text;
}

.eyebrow {
  margin: 24px 0 10px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}

/* ------------------------------------------------------------------- menu */
/* Bar, scrolling list, then the authenticate block — stacked, never overlapping. */
.menu {
  display: flex;
  flex-direction: column;
}
.menu .bar { position: relative; flex: none; }
.menu .scroll {
  position: relative;
  inset: auto;
  flex: 1 1 auto;
  min-height: 0;
  padding-bottom: 20px;
}

.menu-products,
.menu-links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.menu-products button {
  display: grid;
  grid-template-columns: 46px 1fr auto;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 10px 12px 10px 10px;
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 18px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.menu-products button:hover { background: rgba(255, 255, 255, 0.04); }
.menu-products button[aria-current="true"] {
  background: var(--glass);
  border-color: var(--line);
}
.swatch {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  font: 800 17px var(--display);
  color: var(--accent-ink);
  background: var(--accent);
  border-radius: 13px;
}
.menu-name {
  display: block;
  font: 700 22px / 1 var(--display);
  text-transform: uppercase;
}
.menu-meta {
  display: block;
  margin-top: 4px;
  font-size: 12.5px;
  color: var(--muted);
}
.menu-arrow { color: var(--faint); font-size: 18px; }

.menu-links a {
  display: flex;
  justify-content: space-between;
  padding: 15px 4px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.menu-links a span { color: var(--faint); }

.menu-auth {
  flex: none;
  padding: 18px 20px calc(20px + var(--safe-bottom));
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.03), transparent);
  border-top: 1px solid var(--line);
}
.auth-copy {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
}
.auth-copy strong { font-size: 15px; }
.auth-copy p {
  margin: 3px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
}
.auth-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 42px;
  height: 42px;
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  border-radius: 12px;
}
.auth-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ------------------------------------------------------------------- info */
.info-hero {
  position: relative;
  margin: 8px -20px 0;
  padding: 22px 20px 24px;
  background:
    radial-gradient(80% 90% at 100% 0%, color-mix(in srgb, var(--accent) 30%, transparent), transparent 70%);
  border-bottom: 1px solid var(--line);
}
.info-hero .p-name { margin-top: 12px; font-size: clamp(46px, 13vw, 60px); }
.info-hero .p-tagline { margin-top: 10px; }
.info-hero .price { margin-top: 18px; }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}
.chips li {
  padding: 7px 11px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.info-section { margin-top: 30px; }
.info-section h3 {
  margin: 0 0 12px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.info-section p {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
}
.info-section .stats li { background: rgba(255, 255, 255, 0.04); }

.numbered {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: item;
}
.numbered li {
  position: relative;
  padding: 0 0 14px 40px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  counter-increment: item;
}
.numbered li::before {
  content: counter(item);
  position: absolute;
  left: 0;
  top: -1px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  font: 800 13px var(--ui);
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 15%, transparent);
  border-radius: 8px;
}

.facts {
  margin: 0;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}
.facts-basis {
  padding: 12px 16px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}
.facts div.row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  font-size: 15px;
}
.facts div.row + div.row { border-top: 1px solid var(--line); }
.facts dt { color: var(--muted); }
.facts dd {
  margin: 0;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.badges {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.badges li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.badges svg {
  flex: none;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.small-print {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--faint);
}

.info-cta {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 3;
  padding: 28px 20px calc(16px + var(--safe-bottom));
  background: linear-gradient(to top, var(--bg) 65%, rgba(10, 11, 13, 0));
}
.info-cta .btn { height: 58px; font-size: 16px; }
.info-cta .price-mrp { color: color-mix(in srgb, var(--accent-ink) 60%, transparent); text-decoration: line-through; }

/* Shared credit at the bottom of each main panel. */
.site-credit {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 20px;
  text-align: center;
}
.site-credit a {
  display: inline-block;
  color: inherit;
  text-underline-offset: 3px;
}
.site-credit a:hover { color: var(--text); }
.site-credit a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}
.reel-credit {
  position: absolute;
  inset: auto 12px calc(10px + var(--safe-bottom));
  z-index: 4;
  margin: 0;
}
.info .scroll { padding-bottom: calc(152px + var(--safe-bottom)); }

/* -------------------------------------------------------------- fallbacks */
.no-webgl #scene { display: none; }
.no-webgl .jar-zone::after {
  content: "3D preview needs WebGL";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 13px;
  color: var(--faint);
}

/* Short phones: tighten the reel so the jar keeps enough room. */
@media (max-height: 700px) {
  .slide-info { gap: 10px; }
  .p-name { font-size: 40px; }
  .p-tagline { display: none; }
  .stats li { padding: 9px 8px; }
  .stats strong { font-size: 23px; }
  .btn { height: 48px; padding: 0 14px; font-size: 14px; }
  .slide .actions { grid-template-columns: 1fr 1.15fr; }
}

@media (prefers-reduced-motion: reduce) {
  .coach-chevron { animation: none; }
  .slide.is-loading .jar-zone::after { animation-duration: 3s; }
  .frame, .backdrop { transition: none; }
}

/* ==========================================================================
   Checkout sheet (src/checkout.js)
   ========================================================================== */
.co {
  position: fixed;
  /* The visible part of the screen, above the keyboard (src/viewport.js). */
  inset: var(--vv-top, 0px) 0 auto 0;
  height: var(--vvh, 100%);
  z-index: 50;
  display: grid;
  align-items: end;
  justify-items: center;
  font-family: var(--ui);
}
.co[hidden] { display: none; }

.co-scrim {
  position: absolute;
  inset: 0;
  background: rgba(4, 5, 7, 0.68);
  border: 0;
  opacity: 0;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: opacity 0.25s ease;
}
.co.is-open .co-scrim { opacity: 1; }

.co-sheet {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(100vw, 430px);
  max-height: min(calc(var(--vvh, 100dvh) * 0.94), 900px);
  padding-bottom: var(--safe-bottom);
  background: linear-gradient(to bottom, #15171b, #0a0b0d 38%);
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 26px 26px 0 0;
  box-shadow: 0 -30px 80px -20px rgba(0, 0, 0, 0.9);
  transform: translateY(14px);
  opacity: 0;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.2s ease;
}
.co.is-open .co-sheet { transform: none; opacity: 1; }
@media (min-width: 700px) and (min-height: 620px) {
  .co { align-items: center; }
  .co-sheet { border-radius: 26px; border-bottom: 1px solid var(--line); }
}

.co-grab {
  display: block;
  width: 44px;
  height: 5px;
  margin: 9px auto 2px;
  padding: 0;
  background: rgba(255, 255, 255, 0.22);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}

.co-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px 12px;
}
.co-heading { flex: 1; min-width: 0; }
.co-eyebrow {
  margin: 0 0 2px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.co-title {
  margin: 0;
  font: 800 26px/1 var(--display);
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.co-back[hidden] { visibility: hidden; display: grid; }

.co-progress {
  height: 3px;
  margin: 0 14px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}
.co-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
  border-radius: 999px;
  transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.co-body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 16px 16px 8px;
  -webkit-overflow-scrolling: touch;
}

.co-foot {
  display: grid;
  gap: 10px;
  padding: 12px 16px 16px;
  background: linear-gradient(to top, #0a0b0d 70%, transparent);
  border-top: 1px solid var(--line);
}

/* --- option cards ------------------------------------------------------- */
.co-cards { display: grid; gap: 10px; }

.co-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 62px;
  padding: 14px;
  text-align: left;
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid var(--line);
  border-radius: 16px;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.12s ease;
}
.co-card:active { transform: scale(0.99); }
.co-card.is-on {
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  border-color: var(--accent);
}
.co-card-main { display: grid; gap: 3px; min-width: 0; }
.co-card-main strong { font-size: 16px; font-weight: 800; }
.co-card-sub { font-size: 12.5px; color: var(--muted); }
.co-card-price { display: grid; justify-items: end; gap: 2px; text-align: right; }
.co-card-price strong { font-size: 16px; font-weight: 800; }
.co-card-price s { font-size: 12px; color: var(--faint); }
.co-off { font-size: 11px; font-weight: 800; color: #6ee7a8; }
.co-pitch {
  margin-top: 2px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--accent);
}
.co-badge {
  position: absolute;
  top: -9px;
  left: 12px;
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-ink);
  background: var(--accent);
  border-radius: 999px;
}
.co-combo { padding-top: 18px; }
.co-plain { min-height: 54px; }

/* --- build-your-own combo ---------------------------------------------- */
.co-tier {
  display: grid;
  gap: 2px;
  margin: 0 0 12px;
  padding: 11px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px dashed var(--line);
  border-radius: 14px;
}
.co-tier strong { font-size: 14px; font-weight: 800; }
.co-tier span { font-size: 12.5px; color: var(--muted); }
.co-tier.is-on {
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  border-style: solid;
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
}
.co-tier.is-on strong { color: var(--accent); }

.co-pick { gap: 12px; }
.co-terms {
  margin: 12px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--faint);
}
.co-terms a { color: var(--muted); text-decoration: underline; }

/* --- flavour chips ------------------------------------------------------ */
.co-chips {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.co-chip {
  padding: 15px 12px;
  font-size: 14px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid var(--line);
  border-radius: 14px;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.co-chip.is-on {
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  border-color: var(--accent);
}
.co-group { margin-bottom: 18px; }
.co-group-title {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

/* --- inputs ------------------------------------------------------------- */
.co-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.co-field { display: grid; gap: 6px; margin-bottom: 12px; grid-column: 1 / -1; }
.co-half { grid-column: auto; }
.co-field > span {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}
.co-field input,
.co-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 14px;
  font: 600 16px var(--ui); /* 16px keeps iOS from zooming */
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid var(--line);
  border-radius: 14px;
}
.co-phone input {
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
}
.co-phone span { font-weight: 700; color: var(--muted); }
.co-field input:focus,
.co-phone:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
/* The +91 wrapper already shows the focus ring, so the inner field draws none. */
.co-phone input:focus,
.co-phone input:focus-visible { outline: none; }
.co-field-label {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}
.co-otp {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}
.co-otp-box {
  width: 100%;
  padding: 15px 0;
  font: 800 22px var(--ui);
  text-align: center;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid var(--line);
  border-radius: 14px;
  caret-color: var(--accent);
  transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.12s ease;
}
.co-otp-box.is-filled {
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
}
.co-otp-box:focus {
  outline: none;
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  transform: translateY(-1px);
}

/* The field a validation message is about. */
.co-field input.is-bad,
.co-phone.is-bad {
  border-color: #ff8b8b;
  background: rgba(255, 139, 139, 0.08);
}

.co-error {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  color: #ff8b8b;
}
.co-note {
  margin: 14px 0 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--faint);
}
.co-sent { margin: 0 0 12px; font-size: 14px; }
.co-dev {
  margin: 0 0 14px;
  padding: 10px 12px;
  font-size: 13px;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  border: 1px dashed color-mix(in srgb, var(--accent) 50%, transparent);
  border-radius: 12px;
}
.co-link {
  padding: 0 2px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  background: none;
  border: 0;
  text-decoration: underline;
  cursor: pointer;
}
.co-link[disabled] { color: var(--faint); text-decoration: none; cursor: default; }

/* --- review ------------------------------------------------------------- */
.co-lines { display: grid; gap: 12px; margin: 0 0 16px; padding: 0; list-style: none; }
.co-lines li { display: flex; align-items: center; gap: 10px; }
.co-dot {
  flex: none;
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 999px;
}
.co-line-main { flex: 1; display: grid; gap: 2px; min-width: 0; }
.co-line-main strong { font-size: 14.5px; }
.co-line-price { text-align: right; display: grid; gap: 1px; }
.co-line-price s { font-size: 11.5px; color: var(--faint); }

.co-bill {
  display: grid;
  gap: 8px;
  margin: 0 0 12px;
  padding: 14px;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.co-bill div { display: flex; justify-content: space-between; gap: 12px; }
.co-bill dt, .co-bill dd { margin: 0; }
.co-bill dd { font-weight: 700; }
.co-green dd { color: #6ee7a8; }
.co-total {
  padding-top: 8px;
  border-top: 1px solid var(--line);
  font-size: 17px;
}
.co-total dt, .co-total dd { font-weight: 800; }

.co-saved {
  margin: 0 0 16px;
  padding: 11px 14px;
  font-size: 13.5px;
  font-weight: 800;
  color: #6ee7a8;
  background: rgba(110, 231, 168, 0.1);
  border-radius: 12px;
  text-align: center;
}

.co-deliver {
  margin-bottom: 16px;
  padding: 14px;
  font-size: 13.5px;
  line-height: 1.5;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.co-deliver p { margin: 0 0 4px; }
.co-eta { color: var(--accent); font-weight: 700; }

.co-trust {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 14px;
  margin: 0 0 8px;
  padding: 0;
  list-style: none;
  font-size: 12.5px;
  color: var(--muted);
}
.co-trust li::before { content: "✓ "; color: #6ee7a8; font-weight: 800; }

/* --- price bar and success --------------------------------------------- */
.co-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.co-bar-price { display: flex; align-items: baseline; gap: 8px; }
.co-bar-price strong { font-size: 22px; font-weight: 800; }
.co-bar-price s { font-size: 13px; color: var(--faint); }
.co-save {
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 800;
  color: #6ee7a8;
  background: rgba(110, 231, 168, 0.12);
  border-radius: 999px;
}
.co-nudge { font-size: 12px; font-weight: 700; color: var(--muted); text-align: right; }
.co-nudge.co-on { color: #6ee7a8; }
.btn.is-busy { opacity: 0.7; }

.co-done { padding: 12px 0 8px; text-align: center; }
.co-tick {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  background: color-mix(in srgb, var(--accent) 20%, transparent);
  border: 2px solid var(--accent);
  border-radius: 999px;
}
.co-tick svg { width: 30px; height: 30px; fill: none; stroke: var(--accent); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.co-done h3 { margin: 0 0 8px; font: 800 24px/1.1 var(--display); text-transform: uppercase; }
.co-done p { margin: 0 0 8px; font-size: 14px; color: var(--muted); }
/* Temporary: orders taken without payment are confirmed on a call. */
.co-done p.co-callout, .co-callout {
  margin: 4px 0 12px;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
  color: #ffd479;
  background: rgba(255, 212, 121, 0.12);
  border: 1px solid rgba(255, 212, 121, 0.35);
  border-radius: 12px;
}

body.co-open { overflow: hidden; }

/* Holds focus while a sheet re-renders, so the keyboard stays up. */
.kb-keeper {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  padding: 0;
  font-size: 16px; /* under 16px, iOS zooms on focus */
  border: 0;
  opacity: 0;
  pointer-events: none;
}

/* Keyboard up: the sheet hugs it, so the field and the button stay in sight. */
html.kb-open .co-sheet {
  height: calc(var(--vvh) - 10px);
  max-height: calc(var(--vvh) - 10px);
  padding-bottom: 0;
  transition: opacity 0.2s ease;
}
html.kb-open .co-grab { display: none; }
html.kb-open .co-head { padding-top: 12px; padding-bottom: 8px; }
html.kb-open .co-title { font-size: 21px; }
html.kb-open .co-body { padding-top: 12px; }
html.kb-open .co-foot { padding-bottom: 10px; }
@media (min-width: 700px) and (min-height: 620px) {
  html.kb-open .co { align-items: end; }
  html.kb-open .co-sheet { border-radius: 26px 26px 0 0; }
}

/* --- checkout on small screens ----------------------------------------- */
.co-sheet, .co-card, .co-chip, .co-menu button { touch-action: manipulation; }

@media (max-width: 430px) {
  .co-sheet { max-height: calc(var(--vvh, 100dvh) * 0.92); }
  .co-head { padding: 8px 12px 10px; gap: 10px; }
  .co-title { font-size: 23px; }
  .co-progress { margin: 0 12px; }
  .co-body { padding: 14px 14px 6px; }
  .co-foot { padding: 10px 14px calc(12px + var(--safe-bottom)); }

  .co-card { min-height: 58px; padding: 12px; gap: 10px; }
  .co-card-main strong { font-size: 15px; }
  .co-card-sub { font-size: 12px; }
  .co-card-price strong { font-size: 15px; }
  .co-chip { padding: 14px 10px; font-size: 13.5px; }
  .co-field input, .co-phone { padding: 13px; }
  .co-otp { gap: 6px; }
  .co-otp-box { padding: 13px 0; font-size: 19px; }
  .co-bar-price strong { font-size: 20px; }
  .co-nudge { font-size: 11.5px; max-width: 46%; }
  .co-trust { grid-template-columns: 1fr; gap: 6px; }
  .co-form { gap: 10px; }
}

@media (max-width: 340px) {
  .co-chips { grid-template-columns: 1fr; }
  .co-card { flex-wrap: wrap; }
  .co-card-price { width: 100%; justify-items: start; text-align: left; }
  .co-half { grid-column: 1 / -1; }
}

/* Long product names must never squeeze the price out of the row. */
.co-card-main strong { overflow-wrap: anywhere; }
.co-card-price { flex: none; }

/* The details panel's closing note. */
.info-disclaimer {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--faint);
  font-style: italic;
}

/* --- my orders ---------------------------------------------------------- */
.ord {
  margin-bottom: 12px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.ord.is-new { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.ord-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.ord-top strong { display: block; font-size: 15px; letter-spacing: 0.02em; }
.ord-status {
  flex: none;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 999px;
}
.ord-status.is-paid { color: #6ee7a8; background: rgba(110, 231, 168, 0.12); }
.ord-status.is-pending { color: #ffd479; background: rgba(255, 212, 121, 0.12); }
.ord-status.is-failed { color: #ff8b8b; background: rgba(255, 139, 139, 0.12); }
.ord-items { margin: 0 0 10px; padding: 0; list-style: none; display: grid; gap: 6px; }
.ord-items li { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.ord-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.ord-foot strong { font-size: 16px; white-space: nowrap; }
.ord-empty { padding: 20px 0; text-align: center; }
.menu-links button {
  padding: 0;
  background: none;
  border: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

/* --- a saved address, shown for confirmation ---------------------------- */
.co-saved-address {
  padding: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.co-addr-name { margin: 0 0 6px; font-size: 15px; }
.co-addr-lines {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}

/* --- menu: the story and the account tiles ------------------------------ */
.logo-btn {
  display: block;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
  line-height: 0;
}
.logo-btn:active { transform: scale(0.97); }

.story {
  margin: 0 0 26px;
  display: grid;
  gap: 10px;
}
.story p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}
.story p:first-child {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--text);
}

.menu-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 6px;
}
.tile {
  display: grid;
  align-content: center;
  gap: 3px;
  min-height: 64px;
  padding: 13px 14px;
  text-align: left;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: 16px;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.tile:hover { background: rgba(255, 255, 255, 0.09); }
.tile:active { transform: scale(0.99); }
.tile-wide { grid-column: 1 / -1; }
.tile-title { font-size: 15px; font-weight: 800; }
.tile-sub { font-size: 12.5px; color: var(--faint); }
.tile-wide .tile-title { color: var(--accent); }

.co-orderid {
  margin: -2px 0 12px;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.co-orderid strong { color: var(--text); font-weight: 800; }


/* --- authenticity check ------------------------------------------------- */
.auth-howto {
  display: grid;
  grid-template-columns: 26px 1fr;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 20px;
}
.auth-howto p { margin: 0; font-size: 13.5px; color: var(--muted); }
.auth-step {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  font-size: 12px;
  font-weight: 800;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  border-radius: 999px;
}

.auth-code {
  font: 800 20px/1 var(--ui) !important;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center;
}
.auth-code::placeholder { letter-spacing: 0.12em; font-weight: 600; opacity: 0.35; }

.auth-verdict {
  padding: 22px 18px;
  margin-bottom: 16px;
  text-align: center;
  border-radius: 20px;
  border: 1px solid var(--line);
}
.auth-verdict h3 { margin: 0 0 6px; font: 800 24px/1.1 var(--display); text-transform: uppercase; }
.auth-verdict p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--muted); }
.auth-mark {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  margin: 0 auto 14px;
  border-radius: 999px;
  border: 2px solid currentColor;
}
.auth-mark svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.auth-verdict.is-good { color: #6ee7a8; background: rgba(110, 231, 168, 0.1); border-color: rgba(110, 231, 168, 0.35); }
.auth-verdict.is-warn { color: #ffcf6b; background: rgba(255, 207, 107, 0.1); border-color: rgba(255, 207, 107, 0.4); }
.auth-verdict.is-none { color: #ff9c9c; background: rgba(255, 139, 139, 0.09); border-color: rgba(255, 139, 139, 0.32); }
.auth-verdict h3 { color: var(--text); }

.auth-facts {
  display: grid;
  gap: 9px;
  margin: 0 0 16px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 16px;
  font-size: 13.5px;
}
.auth-facts div { display: flex; justify-content: space-between; gap: 14px; }
.auth-facts dt { margin: 0; color: var(--muted); }
.auth-facts dd { margin: 0; font-weight: 700; text-align: right; }

.auth-next { margin-bottom: 8px; }
.auth-next .small-print { margin: 0; }
.auth .co-foot { gap: 8px; }

/* --------------------------------------------------------- touch devices */
/* A backdrop blur over the 3D canvas is redrawn on every frame, and each
 * product carries several; on phones that cost more than the jar itself.
 * Solid tints look almost the same there. */
@media (pointer: coarse) {
  .stats li,
  .btn-ghost,
  .reel .icon-btn,
  .coach {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .stats li { background: rgba(18, 20, 24, 0.82); }
  .btn-ghost { background-color: rgba(28, 30, 35, 0.85); }
  .reel .icon-btn { background-color: rgba(28, 30, 35, 0.8); }
  .coach { background-color: rgba(18, 20, 24, 0.9); }
}
