/* ============================================================
   moodebles — design system
   Bold, warm, motion-first. Mobile-first. Zero external assets.
   ============================================================ */

:root {
  --bg: #FFF7EC;
  --ink: #26192E;
  --ink-soft: #5C4E66;
  --paper: #FFFFFF;
  --line: rgba(38, 25, 46, 0.12);
  --coral: #FF6B57;

  --r-sm: 14px;
  --r: 22px;
  --r-lg: 34px;

  --shadow-sm: 0 2px 10px rgba(38, 25, 46, 0.08);
  --shadow: 0 10px 34px rgba(38, 25, 46, 0.13);
  --shadow-lg: 0 24px 70px rgba(38, 25, 46, 0.2);

  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --out: cubic-bezier(0.16, 1, 0.3, 1);

  --font: ui-rounded, "SF Pro Rounded", "Avenir Next Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* mood vars — overridden per-section by inline style */
  --m-main: #FF8A1E;
  --m-deep: #D64B00;
  --m-soft: #FFE3C2;
  --m-glow: #FFB25E;
  --m-ink: #3A1A00;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; overflow-x: clip; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  /* clip, NOT hidden — overflow-x:hidden makes Safari treat body as a scroll
     container, which breaks every position:sticky descendant (story + header) */
  overflow-x: clip;
}

body.locked { overflow: hidden; }

/* subtle grain over everything */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 4;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

button {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection { background: var(--coral); color: #fff; }

h1, h2, h3 {
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.04;
  text-wrap: balance;
}

/* ------------------------------------------------ reveal on scroll */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--out), transform 0.7s var(--out);
  transition-delay: var(--d, 0ms);
}
.reveal.in { opacity: 1; transform: none; }

/* ------------------------------------------------ buttons + chips */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.95em 1.7em;
  border-radius: 999px;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: -0.01em;
  transition: transform 0.35s var(--spring), box-shadow 0.35s var(--out), background 0.25s;
  white-space: nowrap;
}
.btn svg { width: 1.1em; height: 1.1em; flex: none; transition: transform 0.35s var(--spring); }
.btn:hover { transform: translateY(-3px) scale(1.02); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(0) scale(0.97); }

.btn-primary {
  background: var(--m-main);
  color: #fff;
  box-shadow: 0 6px 0 var(--m-deep), var(--shadow-sm);
}
.btn-primary:hover { box-shadow: 0 8px 0 var(--m-deep), var(--shadow); }
.btn-primary:active { box-shadow: 0 2px 0 var(--m-deep); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 2.5px var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--bg); }

.btn-light {
  background: var(--bg);
  color: var(--ink);
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.35);
}

.btn-wide { width: 100%; justify-content: center; }

.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.35em 0.9em;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  background: var(--paper);
  box-shadow: inset 0 0 0 1.5px var(--line);
  color: var(--ink-soft);
  white-space: nowrap;
}
.chip-solid {
  background: var(--m-soft);
  color: var(--m-ink);
  box-shadow: none;
}

.eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--m-main, var(--coral));
  margin-bottom: 0.9rem;
}

.tier-badge {
  display: inline-block;
  vertical-align: middle;
  font-size: 0.6em;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--m-soft);
  color: var(--m-ink);
  border-radius: 999px;
  padding: 0.3em 0.85em;
  margin-left: 0.4em;
}

/* ------------------------------------------------ gummy characters */

.gummy { width: 100%; height: auto; }

.gummy .eyes .eye {
  transform-origin: center;
  animation: blink 5.2s infinite;
}
@keyframes blink {
  0%, 91%, 100% { transform: scaleY(1); }
  93%, 95% { transform: scaleY(0.08); }
}

/* ------------------------------------------------ header */

#header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1.5px solid var(--line);
}

.header-in {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.8rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.wordmark {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.045em;
  position: relative;
  line-height: 1;
}
.wordmark.small { font-size: 1.35rem; }
.wm-o { display: inline-block; }
.has-dot { position: relative; }
.wm-dot {
  position: absolute;
  top: -0.18em;
  left: 50%;
  transform: translateX(-50%);
  width: 0.28em;
  height: 0.28em;
  border-radius: 50%;
  background: var(--coral);
  animation: dot-bob 3s ease-in-out infinite;
}
@keyframes dot-bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-0.1em); }
}

.nav { display: flex; align-items: center; gap: 0.5rem; }

.nav-link {
  font-weight: 700;
  padding: 0.55em 0.9em;
  border-radius: 999px;
  transition: background 0.2s;
}
.nav-link:hover { background: rgba(38, 25, 46, 0.07); }

.nav-quiz {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  font-weight: 800;
  font-size: 0.92rem;
  padding: 0.6em 1.1em;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  transition: transform 0.35s var(--spring), background 0.2s;
}
.nav-quiz:hover { transform: scale(1.05) rotate(-1.5deg); }
.nav-quiz .sparkle { width: 0.95em; height: 0.95em; animation: spin-slow 6s linear infinite; }
@keyframes spin-slow { to { transform: rotate(360deg); } }

.cart-btn {
  position: relative;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  transition: background 0.2s, transform 0.3s var(--spring);
}
.cart-btn:hover { background: rgba(38, 25, 46, 0.07); }
.cart-btn svg { width: 23px; height: 23px; }
.cart-btn.thunk { animation: thunk 0.5s var(--spring); }
@keyframes thunk {
  0% { transform: scale(1); }
  35% { transform: scale(1.25) rotate(-6deg); }
  100% { transform: scale(1); }
}

.cart-badge {
  position: absolute;
  top: 1px;
  right: 0;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--coral);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 900;
  display: grid;
  place-items: center;
  transform: scale(0);
  transition: transform 0.3s var(--spring);
}
.cart-badge.show { transform: scale(1); }
.cart-badge.pop { animation: badge-pop 0.5s var(--spring); }
@keyframes badge-pop {
  0% { transform: scale(1); }
  40% { transform: scale(1.6); }
  100% { transform: scale(1); }
}

/* ------------------------------------------------ hero */

.hero {
  position: relative;
  overflow: clip;
  padding: 3.5rem 1.2rem 4.5rem;
  transition: background 0.7s;
  background: linear-gradient(180deg, color-mix(in srgb, var(--m-soft) 55%, var(--bg)) 0%, var(--bg) 90%);
}

.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-blob { position: absolute; opacity: 0.55; transition: fill 0.7s; }
.hero-blob path { transition: fill 0.7s; }
.hero-blob.b1 { width: 44vw; min-width: 320px; top: -12%; right: -8%; animation: drift 14s ease-in-out infinite; }
.hero-blob.b2 { width: 26vw; min-width: 200px; bottom: -14%; left: -6%; opacity: 0.4; animation: drift 18s ease-in-out infinite reverse; }
.hero-blob.b3 { width: 12vw; min-width: 110px; top: 12%; left: 38%; opacity: 0.35; animation: drift 11s ease-in-out infinite; }
@keyframes drift {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(2.5%, 4%) rotate(8deg); }
}

.hero-in {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--m-deep);
  background: color-mix(in srgb, var(--m-soft) 70%, #fff);
  padding: 0.5em 1.1em;
  border-radius: 999px;
  margin-bottom: 1.4rem;
  transition: color 0.6s, background 0.6s;
}

.hero-h1 {
  font-size: clamp(3.4rem, 11vw, 7rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 0.96;
  text-transform: lowercase;
}
.hero-line { display: block; }

.hero-mood-word { color: var(--m-main); transition: color 0.6s; }
#moodWord { display: inline-block; }
#moodWord.swap { animation: word-swap 0.55s var(--spring); }
@keyframes word-swap {
  0% { opacity: 0; transform: translateY(0.55em) rotate(3deg) scale(0.9); }
  100% { opacity: 1; transform: none; }
}

.hero-sub {
  max-width: 34rem;
  margin-top: 1.4rem;
  font-size: 1.13rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.hero-pills { display: flex; gap: 0.6rem; margin-top: 1.6rem; flex-wrap: wrap; }

.mood-pill {
  padding: 0.6em 1.4em;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.98rem;
  background: var(--paper);
  box-shadow: inset 0 0 0 2px var(--line), var(--shadow-sm);
  transition: transform 0.35s var(--spring), box-shadow 0.25s, background 0.25s, color 0.25s;
}
.mood-pill:hover { transform: translateY(-2px) scale(1.04); }
.mood-pill.on {
  background: var(--m-main);
  color: #fff;
  box-shadow: inset 0 0 0 2px var(--m-deep), 0 4px 0 var(--m-deep);
  transform: scale(1.06);
}

.hero-ctas { display: flex; gap: 0.8rem; margin-top: 1.8rem; flex-wrap: wrap; }

.hero-art { position: relative; display: grid; place-items: center; }

.hero-stage {
  position: relative;
  width: min(74vw, 430px);
  aspect-ratio: 1;
}

.hero-g {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(0.82) rotate(-8deg);
  transition: opacity 0.55s var(--out), transform 0.65s var(--spring);
  pointer-events: none;
}
.hero-g.on { opacity: 1; transform: scale(1) rotate(0deg); }
.hero-g .gummy { animation: bob 4.5s ease-in-out infinite; }
@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(-1.2deg); }
  50% { transform: translateY(-16px) rotate(1.5deg); }
}

.hero-shadow {
  position: absolute;
  bottom: -4%;
  left: 50%;
  transform: translateX(-50%);
  width: 55%;
  height: 26px;
  border-radius: 50%;
  background: rgba(38, 25, 46, 0.16);
  filter: blur(8px);
  animation: shadow-pulse 4.5s ease-in-out infinite;
}
@keyframes shadow-pulse {
  0%, 100% { transform: translateX(-50%) scaleX(1); opacity: 1; }
  50% { transform: translateX(-50%) scaleX(0.82); opacity: 0.65; }
}

@media (min-width: 900px) {
  .hero { padding: 4.5rem 2rem 6rem; }
  .hero-in { grid-template-columns: 1.15fr 0.85fr; }
}

/* ------------------------------------------------ marquee */

.marquee {
  background: var(--ink);
  color: var(--bg);
  overflow: hidden;
  padding: 0.85rem 0;
  transform: rotate(-1deg) scale(1.02);
  margin: -0.5rem 0;
  position: relative;
  z-index: 2;
}
.marquee-track {
  display: flex;
  gap: 2.2rem;
  width: max-content;
  animation: marquee 26s linear infinite;
}
.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 2.2rem;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  white-space: nowrap;
}
.marquee-dot { font-size: 0.5em; opacity: 0.5; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ------------------------------------------------ scroll story */

.story {
  height: 340vh;
  position: relative;
  /* tinted so the section is never a blank void even if pinning fails */
  background: linear-gradient(180deg, var(--bg), var(--story-soft, #FFE3C2) 130%);
}

/* .flat = runtime fallback when the browser fails to pin the sticky panel:
   collapses the tall scroll-stage into plainly stacked beats (same layout
   reduced-motion uses), so there is never a giant empty stretch. */
.story.flat { height: auto; }
.story.flat .story-sticky { position: static; height: auto; padding: 3rem 0; background: none; }
.story.flat .story-grid { align-items: start; }
.story.flat .story-copy { min-height: 0; display: flex; flex-direction: column; gap: 2.5rem; }
.story.flat .story-beat { position: static; opacity: 1; transform: none; pointer-events: auto; }
.story.flat .story-art { position: sticky; top: 6rem; }
.story.flat .story-g { position: static; opacity: 0; display: none; }
.story.flat .story-g.on { opacity: 1; display: block; }
.story.flat .story-progress { display: none; }

.story-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: clip;
  background: linear-gradient(180deg, var(--bg), var(--story-soft, #FFE3C2) 130%);
  transition: background 0.8s;
}

.story-grid {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 1rem 1.4rem;
  display: grid;
  gap: 1.5rem;
  align-items: center;
  grid-template-columns: 1fr;
}

.story-art {
  position: relative;
  width: min(52vw, 300px);
  aspect-ratio: 1;
  margin: 0 auto;
}
.story-g {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(0.7) rotate(-14deg);
  transition: opacity 0.5s var(--out), transform 0.6s var(--spring);
}
.story-g.on { opacity: 1; transform: scale(1) rotate(0); }
.story-g .gummy { animation: bob 5s ease-in-out infinite; }

.story-copy { position: relative; min-height: 16rem; }

.story-beat {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.45s var(--out), transform 0.55s var(--out);
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.9rem;
}
.story-beat.on { opacity: 1; transform: none; pointer-events: auto; }

.story-eyebrow {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--m-deep);
}
.story-beat h3 { font-size: clamp(1.9rem, 5.4vw, 3.2rem); letter-spacing: -0.04em; }
.story-beat p { max-width: 30rem; color: var(--ink-soft); font-weight: 500; }

.story-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-weight: 800;
  color: var(--m-deep);
}
.story-link svg { width: 1.1em; height: 1.1em; transition: transform 0.3s var(--spring); }
.story-link:hover svg { transform: translateX(4px); }

.story-progress {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  padding-bottom: 2rem;
}
.story-tick {
  width: 34px;
  height: 6px;
  border-radius: 999px;
  background: var(--line);
  transition: background 0.4s;
}
.story-tick.on { background: var(--story-main, var(--coral)); }

@media (min-width: 900px) {
  .story-grid { grid-template-columns: 0.9fr 1.1fr; gap: 3rem; }
  .story-art { width: min(34vw, 360px); margin: 0; }
  .story-copy { min-height: 20rem; }
}

/* ------------------------------------------------ sections + product grid */

.grid-section, .labelreader, .faq, .compare {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4.5rem 1.2rem 2rem;
}

.section-head { max-width: 40rem; margin-bottom: 2.2rem; }
.section-head h2 { font-size: clamp(2rem, 5.5vw, 3.2rem); }
.section-head p { margin-top: 0.8rem; color: var(--ink-soft); font-weight: 500; }
.section-head a { font-weight: 800; color: var(--coral); text-decoration: underline; text-underline-offset: 3px; }

.p-grid {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: 1fr;
}
@media (min-width: 680px) { .p-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) { .p-grid { grid-template-columns: repeat(4, 1fr); } }

.p-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.45s var(--spring), box-shadow 0.35s var(--out);
}
.p-card:hover {
  transform: translateY(-8px) rotate(-0.6deg);
  box-shadow: var(--shadow-lg);
}

.p-card-art {
  position: relative;
  padding: 1.6rem 2.2rem 0.6rem;
  background: linear-gradient(180deg, var(--m-soft), color-mix(in srgb, var(--m-soft) 30%, #fff));
  transition: background 0.4s;
  display: grid;
  place-items: center;
  overflow: visible;
}
.p-card-blob {
  position: absolute;
  width: 130%;
  top: -25%;
  left: -15%;
  opacity: 0.5;
  transition: transform 0.6s var(--out);
}
.p-card:hover .p-card-blob { transform: rotate(10deg) scale(1.06); }

.p-card-gummy {
  position: relative;
  width: min(52%, 150px);
  transition: transform 0.45s var(--spring);
}
.p-card:hover .p-card-gummy { transform: scale(1.1) rotate(4deg); }
.p-card:hover .p-card-gummy .gummy-body { animation: wiggle 0.6s var(--spring); }
@keyframes wiggle {
  0% { transform: rotate(0); }
  30% { transform: rotate(-5deg) scale(1.03, 0.97); }
  60% { transform: rotate(4deg) scale(0.97, 1.03); }
  100% { transform: rotate(0); }
}
.gummy-body { transform-origin: center; }

.p-card-body {
  padding: 1.3rem 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1;
}

.p-kicker {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--m-deep);
}
.p-card-body h3 { font-size: 1.45rem; }
.p-promise { color: var(--ink-soft); font-weight: 600; font-style: italic; }

.p-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.2rem; }
.p-chips .chip { font-size: 0.72rem; }

.p-card-foot {
  margin-top: auto;
  padding-top: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.p-price { font-weight: 900; font-size: 1.2rem; }
.p-count { font-weight: 600; font-size: 0.8rem; color: var(--ink-soft); }

.p-go {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--m-main);
  color: #fff;
  transition: transform 0.35s var(--spring);
}
.p-go svg { width: 18px; height: 18px; }
.p-card:hover .p-go { transform: scale(1.15) rotate(-8deg); }

/* ------------------------------------------------ quiz band (dark) */

.quizband {
  margin: 4rem 0 0;
  padding: 5rem 1.2rem;
  background: var(--ink);
  color: var(--bg);
  text-align: center;
  position: relative;
  overflow: clip;
}
.quizband-in { position: relative; max-width: 46rem; margin: 0 auto; }
.quizband h2 { font-size: clamp(2rem, 6vw, 3.4rem); }
.quizband p { margin: 1rem auto 1.8rem; opacity: 0.75; font-weight: 500; max-width: 30rem; }

.quizband-gummies {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: 1.6rem;
  height: 92px;
}
.qb-g { width: 92px; flex: none; }
.qb-g0 { transform: rotate(-10deg) translateY(6px); animation: bob 4s ease-in-out infinite; }
.qb-g1 { transform: translateY(-6px); z-index: 1; animation: bob 4s ease-in-out 0.6s infinite; }
.qb-g2 { transform: rotate(10deg) translateY(6px); animation: bob 4s ease-in-out 1.2s infinite; }

/* ------------------------------------------------ label-reader creds */

.lr-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 680px) { .lr-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) { .lr-grid { grid-template-columns: repeat(3, 1fr); } }

.lr-card {
  background: var(--paper);
  border-radius: var(--r);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--spring), box-shadow 0.3s;
}
.lr-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.lr-card h3 { font-size: 1.12rem; margin: 0.7rem 0 0.4rem; }
.lr-card p { font-size: 0.94rem; color: var(--ink-soft); }

.lr-check {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #DBF2E4;
  color: #0E7A45;
}
.lr-check svg { width: 18px; height: 18px; }

/* ------------------------------------------------ FAQ */

.faq { padding-bottom: 5rem; }
.faq-list { max-width: 46rem; }

.faq-item {
  background: var(--paper);
  border-radius: var(--r-sm);
  margin-bottom: 0.7rem;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.1rem 1.3rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: background 0.2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { background: rgba(38, 25, 46, 0.04); }
.faq-plus {
  flex: none;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--bg);
  transition: transform 0.35s var(--spring);
}
.faq-plus svg { width: 14px; height: 14px; }
.faq-item[open] .faq-plus { transform: rotate(45deg); background: var(--coral); color: #fff; }
.faq-item p {
  padding: 0 1.3rem 1.2rem;
  color: var(--ink-soft);
  font-weight: 500;
  animation: faq-in 0.4s var(--out);
}
@keyframes faq-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}

/* ------------------------------------------------ lineup page */

.page-hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 1.2rem 0;
}
.page-hero h1 { font-size: clamp(2.6rem, 8vw, 4.6rem); letter-spacing: -0.045em; }
.page-hero p { margin-top: 1rem; color: var(--ink-soft); font-weight: 500; max-width: 34rem; }

.compare { padding-bottom: 5rem; }
.table-wrap {
  overflow-x: auto;
  border-radius: var(--r);
  box-shadow: var(--shadow-sm);
  background: var(--paper);
}
.compare-table {
  border-collapse: collapse;
  width: 100%;
  min-width: 760px;
  font-size: 0.95rem;
}
.compare-table th, .compare-table td {
  padding: 0.95rem 1.1rem;
  text-align: left;
  border-bottom: 1.5px solid var(--line);
}
.compare-table thead th {
  background: var(--m-soft);
  color: var(--m-ink);
  font-weight: 900;
  font-size: 1rem;
}
.compare-table thead th:first-child { background: var(--paper); }
.compare-table thead a { text-decoration: underline; text-underline-offset: 3px; }
.compare-table tbody th {
  font-weight: 800;
  color: var(--ink-soft);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td { border-bottom: 0; }
.th-tier {
  display: inline-block;
  margin-left: 0.4em;
  font-size: 0.68em;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 999px;
  padding: 0.25em 0.7em;
}

/* ------------------------------------------------ PDP */

.pdp-hero {
  position: relative;
  overflow: clip;
  background: linear-gradient(180deg, color-mix(in srgb, var(--m-soft) 65%, var(--bg)), var(--bg));
  padding: 1.4rem 1.2rem 4rem;
}
.pdp-hero-bg { position: absolute; inset: 0; pointer-events: none; }
.pdp-blob { position: absolute; opacity: 0.5; }
.pdp-blob.b1 { width: 40vw; min-width: 300px; top: -10%; left: -8%; animation: drift 16s ease-in-out infinite; }
.pdp-blob.b2 { width: 22vw; min-width: 170px; bottom: -12%; right: -5%; opacity: 0.4; animation: drift 12s ease-in-out infinite reverse; }

.pdp-back {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-weight: 800;
  font-size: 0.92rem;
  padding: 0.5em 1em;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.65);
  transition: transform 0.3s var(--spring);
}
.pdp-back:hover { transform: translateX(-3px); }
.pdp-back svg { width: 1em; height: 1em; }

.pdp-hero-in {
  position: relative;
  max-width: 1150px;
  margin: 1.5rem auto 0;
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 900px) {
  .pdp-hero-in { grid-template-columns: 0.9fr 1.1fr; gap: 3.5rem; }
}

.pdp-art { position: relative; display: grid; place-items: center; }
.pdp-gummy-wrap { width: min(70vw, 380px); position: relative; }
.pdp-gummy { animation: bob 4.8s ease-in-out infinite; }
.pdp-shadow {
  width: 50%;
  height: 22px;
  margin: -0.5rem auto 0;
  border-radius: 50%;
  background: rgba(38, 25, 46, 0.16);
  filter: blur(8px);
  animation: shadow-pulse 4.8s ease-in-out infinite;
}
.pdp-flavor-tag {
  position: absolute;
  top: 8%;
  right: 4%;
  background: var(--paper);
  color: var(--m-deep);
  font-weight: 900;
  font-size: 0.85rem;
  padding: 0.55em 1.1em;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  transform: rotate(6deg);
  animation: tag-swing 5s ease-in-out infinite;
}
@keyframes tag-swing {
  0%, 100% { transform: rotate(6deg); }
  50% { transform: rotate(-2deg); }
}

.pdp-buy h1 { font-size: clamp(2.5rem, 7vw, 4.2rem); letter-spacing: -0.045em; }
.pdp-promise {
  font-size: 1.35rem;
  font-weight: 700;
  font-style: italic;
  color: var(--m-deep);
  margin-top: 0.5rem;
}
.pdp-lead { margin-top: 0.9rem; color: var(--ink-soft); font-weight: 500; max-width: 30rem; }
.pdp-meta { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.2rem; }

.pdp-cta {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-top: 1.6rem;
  flex-wrap: wrap;
}
.pdp-price { font-size: 2rem; font-weight: 900; letter-spacing: -0.03em; }

.pdp-warn {
  margin-top: 1.1rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.6);
  border-left: 4px solid var(--m-main);
  padding: 0.7em 1em;
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  max-width: 32rem;
}

.pdp-story { padding: 4rem 1.2rem 1rem; }
.pdp-story-in { max-width: 46rem; margin: 0 auto; }
.pdp-story-copy {
  font-size: clamp(1.2rem, 2.6vw, 1.55rem);
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: -0.015em;
}

/* stack */

.stack { max-width: 1150px; margin: 0 auto; padding: 4rem 1.2rem 1rem; }

.stack-grid { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .stack-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); } }

.stack-card {
  background: var(--paper);
  border-radius: var(--r);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  transition: transform 0.4s var(--spring), box-shadow 0.3s;
}
.stack-card:hover { transform: translateY(-5px) rotate(-0.5deg); box-shadow: var(--shadow); }
.stack-card p { font-size: 0.93rem; color: var(--ink-soft); }

.stack-role {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--m-deep);
}
.stack-head h3 { font-size: 1.3rem; margin-top: 0.2rem; }
.stack-src { font-size: 0.82rem; font-weight: 600; color: var(--ink-soft); }

.dose { display: flex; flex-direction: column; gap: 0.45rem; }
.dose-num { display: flex; align-items: baseline; gap: 0.25em; }
.dose-num b { font-size: 1.9rem; font-weight: 900; letter-spacing: -0.03em; color: var(--m-deep); }
.dose-num span { font-weight: 700; color: var(--ink-soft); }

.dose-bar {
  height: 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--m-soft) 60%, #fff);
  overflow: hidden;
}
.dose-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--m-main), var(--m-glow));
  transition: width 1.1s var(--out) 0.15s;
}
.dose-fill.go { width: var(--w); }

/* timeline */

.timeline { max-width: 1150px; margin: 0 auto; padding: 4rem 1.2rem 2rem; }

.tl {
  list-style: none;
  display: grid;
  gap: 1.6rem;
  position: relative;
  padding-left: 1.6rem;
}
.tl::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 10px;
  bottom: 10px;
  width: 3px;
  border-radius: 3px;
  background: var(--m-soft);
}
.tl-step { position: relative; }
.tl-dot {
  position: absolute;
  left: -1.6rem;
  top: 6px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--m-main);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--m-soft) 80%, #fff);
}
.tl-at {
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--m-deep);
}
.tl-step h3 { font-size: 1.2rem; margin: 0.2rem 0; }
.tl-step p { font-size: 0.94rem; color: var(--ink-soft); max-width: 26rem; }

@media (min-width: 900px) {
  .tl { grid-template-columns: repeat(4, 1fr); gap: 2rem; padding-left: 0; padding-top: 1.8rem; }
  .tl::before { left: 10px; right: 10px; top: 7px; bottom: auto; width: auto; height: 3px; }
  .tl-dot { left: 0; top: -1.8rem; }
}

/* pair / cross-sell */

.pdp-pair { padding: 3rem 1.2rem 5rem; }

.pair-card {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  gap: 1.5rem;
  align-items: center;
  background: linear-gradient(120deg, var(--m-soft), color-mix(in srgb, var(--m-soft) 40%, #fff));
  border-radius: var(--r-lg);
  padding: 2.2rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.45s var(--spring), box-shadow 0.35s;
}
.pair-card:hover { transform: translateY(-6px) rotate(-0.4deg); box-shadow: var(--shadow-lg); }
.pair-gummy { width: min(40vw, 190px); margin: 0 auto; }
.pair-card:hover .pair-gummy .gummy-body { animation: wiggle 0.6s var(--spring); }
.pair-copy h2 { font-size: clamp(1.7rem, 4.5vw, 2.5rem); margin-bottom: 0.6rem; }
.pair-copy p { color: var(--ink-soft); font-weight: 500; margin-bottom: 1.3rem; max-width: 30rem; }
.pair-copy .eyebrow { color: var(--m-deep); }

@media (min-width: 760px) {
  .pair-card { grid-template-columns: auto 1fr; gap: 2.5rem; padding: 2.5rem 3rem; }
}

/* ------------------------------------------------ quiz */

.quiz {
  min-height: calc(100vh - 70px);
  min-height: calc(100svh - 70px);
  display: grid;
  place-items: center;
  padding: 3rem 1.2rem 5rem;
  position: relative;
  overflow: clip;
}

.quiz-in {
  max-width: 44rem;
  width: 100%;
  margin: 0 auto;
  text-align: center;
  position: relative;
}

.quiz-top { display: flex; flex-direction: column; align-items: center; gap: 0.6rem; }
.quiz-trail { display: flex; gap: 0.45rem; }
.quiz-crumb {
  width: 30px;
  height: 7px;
  border-radius: 999px;
  background: var(--line);
  transition: background 0.4s, transform 0.4s var(--spring);
}
.quiz-crumb.on { background: var(--coral); transform: scaleY(1.3); }

.quiz-q {
  font-size: clamp(2.2rem, 7vw, 3.8rem);
  letter-spacing: -0.045em;
  margin: 1.2rem 0 2.2rem;
}

.quiz-opts { display: grid; gap: 0.9rem; }

.quiz-opt {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "label go" "sub go";
  align-items: center;
  column-gap: 1rem;
  text-align: left;
  background: var(--paper);
  border-radius: var(--r);
  padding: 1.3rem 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--spring), box-shadow 0.3s;
}
.quiz-opt:hover { transform: translateY(-4px) scale(1.015) rotate(-0.4deg); box-shadow: var(--shadow); }
.quiz-opt:active { transform: scale(0.98); }

.quiz-opt-label { grid-area: label; font-size: 1.3rem; font-weight: 900; letter-spacing: -0.02em; }
.quiz-opt-sub { grid-area: sub; color: var(--ink-soft); font-weight: 500; font-size: 0.95rem; }
.quiz-opt-go {
  grid-area: go;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--bg);
  transition: transform 0.35s var(--spring), background 0.25s;
}
.quiz-opt-go svg { width: 19px; height: 19px; }
.quiz-opt:hover .quiz-opt-go { transform: scale(1.12) rotate(-8deg); background: var(--coral); }

.quiz-restart {
  margin-top: 2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-weight: 700;
  color: var(--ink-soft);
  transition: color 0.2s;
}
.quiz-restart:hover { color: var(--ink); }
.quiz-restart svg { width: 1em; height: 1em; }

/* quiz result */

.quiz-result { isolation: isolate; }
.quiz-result-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at 50% 30%, var(--m-soft), var(--bg) 75%);
  animation: result-flood 0.9s var(--out);
}
@keyframes result-flood {
  from { opacity: 0; transform: scale(0.6); }
  to { opacity: 1; transform: scale(1); }
}

.result-gummy { width: min(46vw, 210px); margin: 0.5rem auto 1.2rem; }
.result-g { animation: result-drop 0.8s var(--spring); }
@keyframes result-drop {
  0% { transform: translateY(-70px) scale(0.6); opacity: 0; }
  60% { transform: translateY(6px) scale(1.06, 0.94); opacity: 1; }
  80% { transform: translateY(-4px) scale(0.98, 1.02); }
  100% { transform: none; }
}

.quiz-result h1 { font-size: clamp(2.4rem, 7vw, 4rem); letter-spacing: -0.045em; }
.result-promise { font-size: 1.3rem; font-style: italic; font-weight: 700; color: var(--m-deep); margin-top: 0.4rem; }
.result-why {
  margin: 1.2rem auto 0;
  max-width: 32rem;
  color: var(--ink-soft);
  font-weight: 500;
  background: rgba(255, 255, 255, 0.7);
  padding: 1rem 1.3rem;
  border-radius: var(--r-sm);
}
.result-why b { color: var(--ink); }
.result-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; margin-top: 1.2rem; }
.result-ctas { display: flex; gap: 0.9rem; justify-content: center; flex-wrap: wrap; margin-top: 1.6rem; }

/* ------------------------------------------------ journal */

.j-grid { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .j-grid { grid-template-columns: repeat(3, 1fr); } .j-grid-2 { grid-template-columns: repeat(2, 1fr); } }

.j-card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  background: var(--paper);
  border-radius: var(--r);
  padding: 1.5rem;
  border-top: 6px solid var(--m-main);
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--spring), box-shadow 0.3s;
}
.j-card:hover { transform: translateY(-5px) rotate(-0.4deg); box-shadow: var(--shadow); }
.j-date {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--m-deep);
}
.j-card h3 { font-size: 1.18rem; line-height: 1.2; }
.j-card p { font-size: 0.9rem; color: var(--ink-soft); flex: 1; }
.j-more {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  font-weight: 800;
  font-size: 0.92rem;
  color: var(--m-deep);
}
.j-more svg { width: 1em; height: 1em; transition: transform 0.3s var(--spring); }
.j-card:hover .j-more svg { transform: translateX(4px); }

/* post article */

.post-hero {
  max-width: 46rem;
  margin: 0 auto;
  padding: 2.2rem 1.2rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.9rem;
}
.post-hero h1 { font-size: clamp(2.1rem, 6vw, 3.4rem); letter-spacing: -0.04em; }
.post-hero .eyebrow { color: var(--m-deep); margin-bottom: 0; }
.post-dek { font-size: 1.15rem; font-weight: 500; color: var(--ink-soft); }
.post-byline { font-weight: 700; font-size: 0.92rem; color: var(--m-deep); }

.post-body {
  max-width: 42rem;
  margin: 0 auto;
  padding: 1rem 1.2rem 2rem;
  font-size: 1.06rem;
}
.post-body h2 { font-size: 1.55rem; margin: 2.2rem 0 0.8rem; letter-spacing: -0.03em; }
.post-body p { margin-bottom: 1.1rem; }
.post-body ul { margin: 0 0 1.1rem 1.2rem; }
.post-body li { margin-bottom: 0.55rem; }

.answer-block {
  background: color-mix(in srgb, var(--m-soft) 55%, #fff);
  border-left: 5px solid var(--m-main);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  padding: 1.2rem 1.4rem;
  margin: 0.6rem 0 1.8rem;
}
.answer-block p { margin: 0; font-weight: 600; }
.answer-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--m-deep);
  margin-bottom: 0.5rem;
}

.post-note {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.7);
  border-left: 4px solid var(--m-main);
  padding: 0.8em 1em;
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}

.post-more { max-width: 1000px; margin: 0 auto; padding: 0 1.2rem 4rem; }

/* ------------------------------------------------ craft page */

.craft-steps {
  list-style: none;
  display: grid;
  gap: 1.1rem;
  grid-template-columns: 1fr;
  counter-reset: step;
}
@media (min-width: 720px) { .craft-steps { grid-template-columns: repeat(3, 1fr); } }

.craft-step {
  position: relative;
  background: var(--paper);
  border-radius: var(--r);
  padding: 1.6rem 1.5rem 1.4rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--spring), box-shadow 0.3s;
}
.craft-step:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.craft-n {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--coral);
  color: #fff;
  font-weight: 900;
  margin-bottom: 0.8rem;
}
.craft-step h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.craft-step p { font-size: 0.93rem; color: var(--ink-soft); }

.quoteband {
  background: var(--ink);
  color: var(--bg);
  margin: 3rem 0;
  padding: 4rem 1.2rem;
  text-align: center;
}
.quoteband blockquote {
  max-width: 42rem;
  margin: 0 auto;
  font-size: clamp(1.4rem, 4vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.3;
}
.quoteband blockquote::before { content: '“'; color: var(--coral); }
.quoteband blockquote::after { content: '”'; color: var(--coral); }

.craft-ctas { display: flex; gap: 0.9rem; flex-wrap: wrap; margin-top: 2.2rem; }
.craft-ctas .btn-primary { --m-main: var(--coral); --m-deep: #C24234; }

/* ------------------------------------------------ cart drawer */

#scrim {
  position: fixed;
  inset: 0;
  background: rgba(38, 25, 46, 0.4);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s;
  z-index: 60;
}
#scrim.show { opacity: 1; pointer-events: auto; }

#cartDrawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(430px, 100vw);
  background: var(--bg);
  z-index: 70;
  transform: translateX(105%);
  transition: transform 0.5s var(--out);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
}
#cartDrawer.open { transform: none; }

.cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 1.4rem;
  border-bottom: 1.5px solid var(--line);
}
.cart-head h2 { font-size: 1.3rem; }
#cartClose {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: background 0.2s, transform 0.3s var(--spring);
}
#cartClose:hover { background: rgba(38, 25, 46, 0.07); transform: rotate(90deg); }
#cartClose svg { width: 18px; height: 18px; }

#cartBody { flex: 1; overflow-y: auto; padding: 1.2rem 1.4rem; display: flex; flex-direction: column; }

.cart-empty {
  margin: auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
}
.cart-empty-g { width: 130px; }
.cart-empty-g .gummy { animation: bob 4s ease-in-out infinite; }
.cart-empty p { font-weight: 600; color: var(--ink-soft); }

.ship-bar { margin-bottom: 1.2rem; }
.ship-bar p { font-size: 0.9rem; font-weight: 600; color: var(--ink-soft); margin-bottom: 0.5rem; }
.ship-bar p b { color: var(--ink); }
.ship-bar .sparkle { display: inline-block; width: 0.9em; height: 0.9em; color: var(--coral); vertical-align: -0.1em; }
.ship-track { height: 10px; border-radius: 999px; background: rgba(38, 25, 46, 0.08); overflow: hidden; }
.ship-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--coral), #FFB25E);
  transition: width 0.7s var(--out);
}
.ship-fill.full { background: linear-gradient(90deg, #0E7A45, #47C98A); }

.cart-items { list-style: none; display: flex; flex-direction: column; gap: 0.8rem; }

.cart-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 0.9rem;
  align-items: center;
  background: var(--paper);
  border-radius: var(--r-sm);
  padding: 0.85rem;
  box-shadow: var(--shadow-sm);
  animation: item-in 0.4s var(--out);
}
@keyframes item-in {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: none; }
}
.ci-art { width: 64px; background: var(--m-soft); border-radius: 12px; padding: 8px; }
.ci-info { display: flex; flex-direction: column; gap: 0.15rem; }
.ci-info b { font-size: 0.98rem; letter-spacing: -0.01em; }
.ci-info .th-tier { background: var(--m-soft); color: var(--m-ink); }
.ci-flavor { font-size: 0.78rem; font-weight: 600; color: var(--ink-soft); }

.ci-qty {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  margin-top: 0.35rem;
  background: var(--bg);
  border-radius: 999px;
  padding: 2px;
  width: max-content;
}
.ci-qty button {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: background 0.15s, transform 0.25s var(--spring);
}
.ci-qty button:hover { background: var(--paper); transform: scale(1.12); }
.ci-qty svg { width: 12px; height: 12px; }
.ci-n { min-width: 22px; text-align: center; font-weight: 800; font-size: 0.9rem; }

.ci-right { display: flex; flex-direction: column; align-items: flex-end; gap: 0.5rem; }
.ci-price { font-weight: 900; }
.ci-remove {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--ink-soft);
  transition: background 0.15s, color 0.15s, transform 0.25s var(--spring);
}
.ci-remove:hover { background: #FFDFE4; color: #C21B44; transform: rotate(90deg); }
.ci-remove svg { width: 12px; height: 12px; }

.cart-foot { margin-top: auto; padding-top: 1.4rem; }
.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.9rem;
}
.cart-total b { font-size: 1.5rem; font-weight: 900; }
.cart-foot .btn-primary { --m-main: var(--coral); --m-deep: #C24234; }
.cart-note { margin-top: 0.8rem; font-size: 0.72rem; color: var(--ink-soft); text-align: center; }

/* fly-to-cart dot */
.fly-dot {
  position: fixed;
  width: 40px;
  height: 40px;
  z-index: 80;
  pointer-events: none;
  filter: drop-shadow(0 4px 8px rgba(38, 25, 46, 0.3));
}

/* ------------------------------------------------ modal */

#modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 1.2rem;
  background: rgba(38, 25, 46, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
#modal.show { opacity: 1; pointer-events: auto; }

.modal-card {
  position: relative;
  background: var(--bg);
  border-radius: var(--r-lg);
  padding: 2.5rem 2.2rem 2.2rem;
  max-width: 26rem;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-lg);
  animation: modal-in 0.5s var(--spring);
}
@keyframes modal-in {
  from { opacity: 0; transform: translateY(40px) scale(0.92); }
  to { opacity: 1; transform: none; }
}
.modal-card h2 { font-size: 1.7rem; margin: 0.4rem 0 0.8rem; }
.modal-card p { color: var(--ink-soft); font-weight: 500; margin-bottom: 1.5rem; }
.modal-card .eyebrow { color: var(--coral); margin-bottom: 0; }
.modal-card .btn-primary { --m-main: var(--coral); --m-deep: #C24234; }

.modal-close {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: background 0.2s, transform 0.3s var(--spring);
}
.modal-close:hover { background: rgba(38, 25, 46, 0.07); transform: rotate(90deg); }
.modal-close svg { width: 16px; height: 16px; }

.success-g { width: 120px; margin: 0 auto 0.6rem; }
.success-g .gummy { animation: result-drop 0.8s var(--spring); }

/* confetti */
.confetti { position: fixed; inset: 0; z-index: 95; pointer-events: none; overflow: hidden; }
.confetti i { position: absolute; top: -20px; display: block; }

/* ------------------------------------------------ color wash */

#wash {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  clip-path: circle(0px at var(--x, 50%) var(--y, 50%));
  opacity: 1;
}
#wash.grow {
  clip-path: circle(160% at var(--x, 50%) var(--y, 50%));
  transition: clip-path 0.45s cubic-bezier(0.6, 0, 0.7, 0.6);
}
#wash.fade { opacity: 0; transition: opacity 0.4s ease 0.05s; }

/* ------------------------------------------------ footer */

#footer {
  background: var(--ink);
  color: var(--bg);
  margin-top: 4rem;
}
.footer-in {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3.5rem 1.2rem 2.2rem;
  display: grid;
  gap: 2.5rem;
}
@media (min-width: 760px) {
  .footer-in { grid-template-columns: 1.2fr 1fr; }
  .footer-fine { grid-column: 1 / -1; }
}

.footer-tag { opacity: 0.65; font-weight: 600; margin-top: 0.6rem; font-style: italic; }

.footer-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.footer-cols h4 {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.55;
  margin-bottom: 0.9rem;
}
.footer-cols a {
  display: block;
  padding: 0.28em 0;
  font-weight: 600;
  opacity: 0.85;
  transition: opacity 0.15s, transform 0.25s var(--spring);
}
.footer-cols a:hover { opacity: 1; transform: translateX(4px); }

.footer-fine {
  border-top: 1px solid rgba(255, 247, 236, 0.15);
  padding-top: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.footer-fine p { font-size: 0.78rem; opacity: 0.6; max-width: 62rem; }
.concept-note { color: #FFB25E; opacity: 0.85 !important; font-weight: 700; }

/* ------------------------------------------------ small screens */

@media (max-width: 560px) {
  .nav-link { display: none; }
  .nav-quiz { font-size: 0.85rem; padding: 0.55em 0.95em; }
  .quiz-opt { grid-template-columns: 1fr auto; }
  .pdp-cta .btn { flex: 1; justify-content: center; }
}

/* ------------------------------------------------ reduced motion */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
  .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; }
  .story { height: auto; }
  .story-sticky { position: static; height: auto; padding: 3rem 0; }
  .story-beat { position: static; opacity: 1; transform: none; pointer-events: auto; margin-bottom: 2.5rem; }
  .story-g { position: static; opacity: 1; transform: none; display: none; }
  .story-g.on, .story-g:first-child { display: block; }
  .story-copy { min-height: 0; }
  .dose-fill { width: var(--w); }
  #wash { display: none; }
}
