
:root {
  /* AfterSlim — orange-led warm palette (distinct from competitor's coffee-brown identity) */
  --bg: #fff8f0;          /* warm cream with orange undertone */
  --bg-2: #ffffff;        /* surface */
  --bg-3: #ffedd5;        /* tinted peach */
  --ink: #1f1410;         /* warm charcoal (orange-leaning) */
  --ink-2: #5c4838;       /* warm body gray */
  --ink-3: #a89484;       /* muted warm gray */
  --line: #f0e4d3;        /* warm beige border */
  --orange: #ea580c;      /* brand primary (locked) */
  --orange-dark: #c2410c; /* CTA hover */
  --orange-light: #fb923c;
  --orange-soft: #fed7aa;
  --orange-tint: #ffedd5;
  --green: #16a34a;       /* fresh trust green (pairs with orange) */
  --green-light: #4ade80;
  --gold: #f59e0b;        /* universal star gold */
  --shadow-sm: 0 1px 3px rgba(26,22,18,0.06);
  --shadow-md: 0 12px 32px rgba(26,22,18,0.10);
  --shadow-lg: 0 24px 48px rgba(26,22,18,0.14);
  --font: 'Mulish', -apple-system, BlinkMacSystemFont, sans-serif;
  --max: 1328px;
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
}
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { font-family: var(--font); font-size: 16px; line-height: 1.55; color: var(--ink); background: var(--bg); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }

/* ===== Custom scrollbar ===== */
html { scrollbar-width: thin; scrollbar-color: rgba(26,22,18,0.30) rgba(26,22,18,0.05); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: rgba(26,22,18,0.05); }
::-webkit-scrollbar-thumb { background: rgba(26,22,18,0.30); border-radius: 999px; border: 2px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: rgba(26,22,18,0.55); background-clip: content-box; border: 2px solid transparent; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ===== Top urgency banner ===== */
.urgency {
  background: linear-gradient(90deg, #4a1804 0%, #181818 28%, #060606 50%, #181818 72%, #4a1804 100%);
  color: #fff;
  padding: 10px 24px;
}
.urgency-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}
.urgency-message {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  text-align: left;
  line-height: 1.1;
}
.urgency-title {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.1;
}
.urgency-sub {
  font-size: 10px;
  color: rgba(255,255,255,0.78);
  letter-spacing: 1.3px;
  text-transform: uppercase;
  font-weight: 700;
}
.urgency-countdown {
  display: flex;
  align-items: flex-start;
  gap: 2px;
  font-variant-numeric: tabular-nums;
}
.urgency-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 36px;
}
.cell-num {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.cell-lbl {
  font-size: 9px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin-top: 4px;
  font-weight: 700;
}
.cell-sep {
  font-size: 16px;
  color: rgba(255,255,255,0.35);
  line-height: 1;
  padding: 2px 2px 0;
  font-weight: 300;
}
@media (max-width: 720px) {
  .urgency-inner { gap: 16px; }
  .urgency-title { font-size: 13px; }
  .urgency-sub { font-size: 9px; }
  .cell-num { font-size: 16px; }
  .urgency-cell { min-width: 28px; }
}

/* ===== Nav ===== */
.nav {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 8px 24px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}
.nav-links {
  display: flex;
  gap: 24px;
  font-size: 14px;
  font-weight: 500;
}
.nav-links a { color: var(--ink); transition: color 0.2s; }
.nav-links a:hover { color: var(--orange); }
.nav-logo { justify-self: center; }
.nav-logo img { height: 56px; width: auto; }
.nav-right { justify-self: end; display: flex; align-items: center; gap: 12px; font-size: 14px; }
.nav-right a { color: var(--ink); }
.nav-left { justify-self: start; display: flex; align-items: center; gap: 12px; }
.nav-icon-btn,
.nav-cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: transparent;
  border: 0;
  color: var(--ink);
  cursor: pointer;
  transition: color 0.2s;
}
.nav-icon-btn:hover,
.nav-cart:hover { color: var(--orange); }

/* Account button — icon + label on desktop, icon-only on mobile */
.nav-account {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  height: 48px;
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: color 0.2s;
}
.nav-account:hover { color: var(--orange); }
.nav-account svg { flex-shrink: 0; }
.nav-account-label { white-space: nowrap; }
@media (max-width: 860px) {
  .nav-inner { grid-template-columns: auto 1fr auto; }
  .nav-links { display: none; }
  .nav-account { padding: 0; width: 48px; justify-content: center; }
  .nav-account-label { display: none; }
}

/* Side menu drawer */
.side-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.side-menu-overlay.open { opacity: 1; visibility: visible; }
.side-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 320px;
  max-width: 85vw;
  height: 100%;
  background: var(--bg);
  z-index: 9999;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.side-menu.open { transform: translateX(0); }
.side-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid var(--line);
}
.side-menu-header .menu-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}
.side-menu-close {
  background: none;
  border: 0;
  cursor: pointer;
  padding: 4px;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.side-menu-close:hover { color: var(--orange); }
.side-menu-links {
  padding: 8px 24px 24px;
  display: flex;
  flex-direction: column;
}
.side-menu-links a {
  display: block;
  padding: 14px 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  transition: color 0.2s;
}
.side-menu-links a:last-child { border-bottom: none; }
.side-menu-links a:hover { color: var(--orange); }

/* ===== HERO (Ryze-style PDP) ===== */
.hero {
  padding: 48px 0 40px;
  background: var(--bg);
}
.hero-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 64px;
  align-items: start;
}

/* Hero left — product gallery */
.hero-gallery {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 24px;
  align-self: start;
}
.hero-main-img {
  position: relative;
  background: var(--bg-2);
  border-radius: var(--r-lg);
  padding: 0;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid var(--line);
}
.hero-main-img::before {
  content: '';
  position: absolute;
  width: 70%;
  height: 70%;
  background: radial-gradient(circle, rgba(234,88,12,0.10) 0%, transparent 65%);
  border-radius: 50%;
  filter: blur(30px);
}
.hero-main-img img,
.hero-main-img video {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.18));
}
.hero-main-img video.hero-main-video {
  object-fit: cover;
  filter: none;
}
.hero-main-img.show-img video.hero-main-video { display: none; }
.hero-main-img:not(.show-img) img#heroMain { display: none; }
.hero-nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
  transition: transform 0.2s ease;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
}
.hero-nav-arrow:hover {
  transform: translateY(-50%) scale(1.12);
}
.hero-nav-prev { left: 16px; }
.hero-nav-next { right: 16px; }
.hero-badge-discount {
  position: absolute;
  top: 20px;
  left: 20px;
  background: var(--orange);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 8px 14px;
  border-radius: 999px;
  text-transform: uppercase;
  z-index: 2;
}
.hero-thumbs {
  --thumbs-visible: 5;
  --thumbs-gap: 12px;
  overflow-x: hidden;
  overflow-y: visible;
  padding: 2px 0;
  width: 100%;
}
.hero-thumbs-track {
  display: flex;
  gap: var(--thumbs-gap);
  width: 100%;
  transition: transform 0.3s ease;
  will-change: transform;
}
.hero-thumbs .hero-thumb {
  flex: 0 0 calc((100% - (var(--thumbs-visible) - 1) * var(--thumbs-gap)) / var(--thumbs-visible));
}
.hero-thumb {
  background: var(--bg-2);
  border: 2px solid var(--line);
  border-radius: var(--r-sm);
  padding: 0;
  cursor: pointer;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  overflow: hidden;
  justify-content: center;
  box-sizing: border-box;
  transition: border-color 0.2s, border-width 0.2s, transform 0.2s;
}
.hero-thumb.active {
  border-color: var(--orange);
  border-width: 3px;
}
.hero-thumb:hover { transform: translateY(-2px); }
.hero-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Hero right — product info + buy box */
.hero-info { display: flex; flex-direction: column; gap: 16px; padding-top: 8px; }
.hero-rating {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: -4px;
}
.hero-rating-stars {
  display: block;
  height: 24px;
  width: auto;
}
.hero-rating-count {
  font-size: 17px;
  color: var(--ink);
  font-weight: 600;
}
.hero-rating-count strong {
  font-weight: 600;
}
.hero-rating {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--ink-2);
}
.hero-stars { color: var(--gold); letter-spacing: 1.5px; font-size: 16px; }
.hero-rating-link {
  color: var(--orange);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.hero-title {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-top: 4px;
}
.hero-subtitle {
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 540px;
}
.hero-subtitle strong { color: var(--ink); font-weight: 600; }

/* Variant selectors (Roast equivalent → Bottle size, Bundle equivalent → Pack) */
.variant-block { margin-top: 8px; }
.variant-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 10px;
}
.variant-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.variant-opt {
  border: 2px solid var(--line);
  border-radius: var(--r-sm);
  padding: 12px 16px;
  background: var(--bg-2);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 2px;
  transition: border-color 0.2s, background 0.2s;
  text-align: left;
}
.variant-opt:hover { border-color: var(--orange-soft); }
.variant-opt.selected {
  border-color: var(--orange);
  background: var(--orange-tint);
}
.variant-opt-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}
.variant-opt-sub {
  font-size: 12px;
  color: var(--ink-2);
}

.bundle-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.bundle-opt {
  position: relative;
  border: 2px solid #e5e5e5;
  border-radius: 12px;
  padding: 18px 12px 16px;
  background: #fff;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.2s, transform 0.2s, background 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 78px;
}
.bundle-opt:hover { transform: translateY(-2px); border-color: #d6d3d1; }

/* Pack 2 (middle) unselected: subtle orange border */
.bundle-opt:nth-child(2) { border-color: #fdba74; }
/* Pack 3 (last) unselected: subtle red border */
.bundle-opt:nth-child(3) { border-color: #fca5a5; }

/* Pack 1 selected: black outline, white bg */
.bundle-opt:nth-child(1).selected {
  border-color: #1c1917;
  background: #fff;
}
/* Pack 2 selected: strong orange + light orange bg */
.bundle-opt:nth-child(2).selected {
  border-color: #ea580c;
  background: #fff3e6;
}
/* Pack 3 selected: dark red + light red bg */
.bundle-opt:nth-child(3).selected {
  border-color: #b91c1c;
  background: #fef2f2;
}
.bundle-opt-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  background: var(--orange);
  color: #fff;
  border-radius: 999px;
  text-transform: uppercase;
  white-space: nowrap;
}
.bundle-opt-title { font-size: 17px; font-weight: 700; color: var(--ink); }
.bundle-opt-save {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}
/* Per-pack savings text color (matches each card's accent) */
.bundle-opt:nth-child(1) .bundle-opt-save { color: #1c1917; } /* black */
.bundle-opt:nth-child(2) .bundle-opt-save { color: #ea580c; } /* orange */
.bundle-opt:nth-child(3) .bundle-opt-save { color: #b91c1c; } /* red */

/* Pricing display */
.hero-eyebrow {
  font-size: 20px;
  font-weight: 700;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.4;
  margin-top: 12px;
}
.hero-price-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 4px;
}
.price-current {
  font-size: 44px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.price-original {
  font-size: 32px;
  color: var(--ink-3);
  text-decoration: line-through;
  font-weight: 500;
  line-height: 1.1;
}
.price-badge {
  padding: 6px 12px;
  background: var(--orange);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  border-radius: 6px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}
.price-per {
  font-size: 13px;
  color: var(--ink-2);
  margin-top: -8px;
}

/* CTA */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px 32px;
  background: linear-gradient(to right, var(--orange) 0%, var(--orange) 55%, var(--orange-dark) 100%);
  color: #fff;
  border: 2px solid var(--orange-dark);
  border-radius: 16px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: normal;
  text-transform: uppercase;
  transition: background 0.15s ease, border-color 0.15s ease, filter 0.15s ease;
  width: 100%;
  margin-top: 16px;
}
.btn-primary:hover {
  background: linear-gradient(to right, var(--orange-dark) 0%, var(--orange-dark) 55%, #8a2f08 100%);
  border-color: #8a2f08;
}

/* "or" divider + Amazon button (matching the pattern from index.html) */
.amazon-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 14px 0 4px;
  color: var(--ink-3);
  font-size: 13px;
  letter-spacing: 0.3px;
  text-transform: lowercase;
}
.amazon-divider::before,
.amazon-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}
.btn-amazon {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 100%;
  padding: 18px 32px;
  background: #111;
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  border: 2px solid #111;
  border-radius: 16px;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.btn-amazon:hover {
  background: #2a2a2a;
  border-color: #2a2a2a;
}
.btn-amazon .amazon-logo-img {
  height: 20px;
  width: auto;
  margin-left: 8px;
  vertical-align: middle;
  transform: translateY(5px);
}

.hero-perks {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0;
  margin-top: 20px;
}
.hero-perk {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--ink-2);
}
.hero-perk svg { color: var(--orange); flex-shrink: 0; }
.hero-perk strong { color: var(--ink); font-weight: 600; }

@media (max-width: 900px) {
  .hero { padding: 14px 0 24px; }
  .hero-grid { grid-template-columns: 1fr; gap: 8px; }
  .hero-info { gap: 6px; }
  .hero-rating { margin-bottom: -2px; }
  .hero-title { margin-top: 0; }
  .hero-main-img { padding: 0; }
  .hero-gallery { position: static; top: auto; }
  /* On mobile, let the hero image breathe edge-to-edge (close to it).
     Ryze's reference shows the bottle image filling ~95% of the viewport
     width. Tightening the .container padding for the hero only so the
     gallery (image + thumbs) gets ~24px more horizontal space. */
  .hero .container { padding: 0 12px; }
  /* Smaller star sprite on mobile — Ryze ref shows roughly text-height
     stars (~18-20px). Our 24px was reading too chunky. */
  .hero-rating-stars { height: 18px; }
  .hero-rating-count { font-size: 15px; }
  /* Price row sizing — match Ryze's mobile spec exactly after measuring
     both in DevTools (Ryze badge: 22px tall, padding 2px 8px, font 14/600,
     normal letter-spacing, 4px radius). Ours was 33px tall, 50% bigger. */
  .price-current { font-size: 34px; }
  .price-original { font-size: 22px; }
  .price-badge {
    padding: 2px 8px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: normal;
    border-radius: 4px;
  }
}

/* ===== Section heads ===== */
.section-head {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 48px;
}
.section-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 12px;
}
.section-head h2 {
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 14px;
}
.section-head h2 em { font-style: italic; color: var(--orange); }
.section-head p {
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-2);
}

/* ===== Comparison: AfterSlim vs the 9-supplement stack ===== */
/* Editorial Slumbr-style comparison table. AfterSlim column gets a
   subtle highlight + orange checks; "stack" column shows the
   concrete numbers/X marks of the alternative. */
.comparison {
  padding: 32px 0 40px;
  background: var(--bg);
}
.comparison-header {
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: center;
}
.comparison-title {
  font-size: clamp(36px, 4.6vw, 52px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 16px;
  color: var(--ink);
}
.comparison-title em {
  color: var(--orange);
  font-style: italic;
  font-family: Georgia, serif;
  font-weight: 700;
}
.comparison-subtitle {
  font-size: 16px;
  color: var(--ink-2);
  line-height: 1.55;
  margin: 0;
}
.comparison-table {
  max-width: 760px;
  margin: 0 auto;
  background: var(--bg-2);
  border: 3px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  position: relative;
}
/* Continuous orange gradient spans the AfterSlim column across all
   rows — single ::before overlay positioned at column 2 of the grid.
   Grid is 1.4fr 1fr 1fr (total 3.4), so col 2 lives at 41.18% → 70.59%. */
.comparison-table::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 41.18%;
  width: 29.41%;
  background: linear-gradient(165deg, #fb923c 0%, #ea580c 45%, #c2410c 100%);
  z-index: 0;
  pointer-events: none;
}
.comparison-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  align-items: center;
  position: relative;
  z-index: 1;
}
.comparison-row + .comparison-row {
  border-top: 1px solid var(--line);
}
.comparison-cell {
  padding: 22px 24px;
  font-size: 15.5px;
  color: var(--ink);
  text-align: center;
  position: relative;
}
.comparison-cell--criteria {
  text-align: left;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.comparison-cell--ours {
  /* Transparent so the table ::before gradient shows through */
  background: transparent;
  position: relative;
}
.comparison-cell--theirs {
  color: var(--ink-2);
}
/* The thin row borders should NOT cross the gradient column or they
   chop the gradient with hard lines. Override to a translucent white
   so it reads as a subtle highlight on the orange instead. */
.comparison-row + .comparison-row .comparison-cell--ours {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.20);
  border-top: 1px solid transparent;
  margin-top: -1px;
}
/* Header row: column labels. AfterSlim header carries the bottle
   image, sitting on the same orange gradient as the rest of the
   column. Stack header keeps the muted gray block. */
.comparison-row--header .comparison-cell {
  padding-top: 10px;
  padding-bottom: 10px;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}
.comparison-row--header .comparison-cell--criteria,
.comparison-row--header .comparison-cell--theirs {
  background: transparent;
}
.comparison-row--header .comparison-cell--theirs {
  color: var(--ink-2);
  opacity: 0.7;
}
.comparison-row--header .comparison-cell--ours-header {
  padding: 12px 16px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.comparison-bottle {
  display: block;
  width: auto;
  height: 88px;
  max-width: 100%;
  filter: drop-shadow(0 6px 14px rgba(31, 20, 16, 0.28));
}
/* Logo wordmark below the bottle — flipped to white via filter so
   the "After" orange isn't lost against the orange column. Keeps the
   exact letterforms of the brand mark while reading clearly on the
   gradient background. */
.comparison-logo {
  display: block;
  width: auto;
  height: 32px;
  max-width: 100%;
  filter: brightness(0) invert(1);
  opacity: 0.96;
}
/* Indicators
   AfterSlim column sits on orange gradient, so the check becomes a
   WHITE filled disc with an orange check inside. Reads as "approved by
   AfterSlim" instead of fighting the bg. Stack column stays neutral. */
.comparison-check,
.comparison-cross {
  display: inline-flex;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  position: relative;
}
.comparison-check {
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(31, 20, 16, 0.18);
  opacity: 0;
  transform: scale(0.35) rotate(-80deg);
  transition:
    opacity 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
    transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.comparison-check.is-revealed {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}
.comparison-check::after {
  content: '';
  width: 12px;
  height: 6px;
  border-left: 2.5px solid var(--orange);
  border-bottom: 2.5px solid var(--orange);
  transform: rotate(-45deg) translate(1px, -1.5px);
}
@media (prefers-reduced-motion: reduce) {
  .comparison-check { opacity: 1; transform: none; transition: none; }
}
.comparison-cross {
  background: rgba(31, 20, 16, 0.08);
}
.comparison-cross::before,
.comparison-cross::after {
  content: '';
  position: absolute;
  width: 12px;
  height: 2px;
  background: rgba(31, 20, 16, 0.45);
  border-radius: 1px;
}
.comparison-cross::before { transform: rotate(45deg); }
.comparison-cross::after { transform: rotate(-45deg); }
.comparison-cross-text {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-2);
  opacity: 0.78;
  letter-spacing: -0.005em;
}

/* cell-break: line break inside criteria cells, only on mobile.
   Default hidden so desktop reads as one line. */
.cell-break { display: none; }

@media (max-width: 720px) {
  .comparison { padding: 16px 0 24px; }
  /* Header gets its own breathing room — the container is pulled tight
     for the edge-to-edge table, but the title + subtitle still need
     comfortable side padding so they don't feel crammed. */
  .comparison-header { margin: 0 auto 28px; padding: 0 18px; }
  .comparison-title { font-size: 30px; line-height: 1.12; margin-bottom: 12px; }
  .comparison-subtitle { font-size: 14.5px; line-height: 1.5; }
  .cell-break { display: initial; }
  /* Comparison table goes near-edge-to-edge on mobile.
     Pull the container's 24px gutter back to 8px so the
     table reads as a wide block, not a centered card. */
  .comparison .container { padding: 0 8px; }
  /* Criteria column narrower (labels wrap to 2 lines) so the AfterSlim
     column sits visually centered between criteria and 9-pill stack.
     Total 0.95 + 1 + 1 = 2.95; col 2 = 0.95/2.95 → 1.95/2.95 ≈ 32.2% → 66.1% */
  .comparison-row {
    grid-template-columns: 0.95fr 1fr 1fr;
  }
  .comparison-table::before { left: 32.2%; width: 33.9%; }
  .comparison-cell { padding: 16px 10px; font-size: 13.5px; }
  .comparison-cell--criteria { font-size: 14px; line-height: 1.25; }
  .comparison-row--header .comparison-cell { font-size: 10.5px; letter-spacing: 1.2px; }
  .comparison-row--header .comparison-cell--ours-header { padding: 8px 8px; gap: 4px; }
  .comparison-bottle { height: 64px; }
  .comparison-logo { height: 20px; }
  .comparison-cross-text { font-size: 12px; }
  .comparison-check, .comparison-cross { width: 26px; height: 26px; }
}

/* ===== Mid-page PDP card (Ryze-style product card at peak conviction) ===== */
/* Two-column card placed after the Science comparison. Left side =
   warm-gradient visual with the bottle. Right side = title +
   feature bullets + price + CTA. This is the "convinced reader's"
   buy stop — not a pack picker (the hero already handles that),
   just one clear offer that closes the sale. */
.midcta {
  background: var(--orange-tint);
  padding: 48px 0 96px;
}
.midcta-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 64px;
}
.midcta-eyebrow {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 2.2px;
  color: var(--orange-dark);
  text-transform: uppercase;
  margin: 0 0 18px;
}
.midcta-headline {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.04;
  color: var(--ink);
  margin: 0 0 18px;
}
.midcta-headline span {
  color: var(--orange);
}
.midcta-tagline {
  font-size: 17px;
  color: var(--ink-2);
  line-height: 1.45;
  margin: 0;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}
.midcta-chips {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.midcta-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.6px;
  color: var(--orange-dark);
  text-transform: uppercase;
}
.midcta-chip svg {
  width: 20px;
  height: 20px;
  color: var(--orange);
  flex-shrink: 0;
}
.midcta-card {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: start;
  gap: 48px;
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
}
.midcta-visual {
  position: relative;
  background: var(--orange-tint);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  border-radius: 28px;
}
.midcta-hero-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.midcta-info {
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.midcta-rating {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.midcta-rating-stars {
  display: block;
  height: 22px;
  width: auto;
}
.midcta-rating-count {
  font-size: 15.5px;
  color: var(--ink);
  font-weight: 600;
}
.midcta-rating-count strong {
  font-weight: 600;
}
.midcta-title {
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0 0 6px;
  color: var(--ink);
}
.midcta-title-sub {
  display: block;
  color: var(--orange);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.midcta-subtitle {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.4px;
  color: var(--ink-2);
  text-transform: uppercase;
  margin: 0 0 24px;
  opacity: 0.7;
}
.midcta-features {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}
.midcta-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15.5px;
  color: var(--ink);
  line-height: 1.4;
}
.midcta-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  flex-shrink: 0;
}
.midcta-check svg {
  width: 12px;
  height: 12px;
}
.midcta-gifts {
  width: 100%;
  margin: 0 0 14px;
}
.midcta-gifts-badge {
  display: inline-block;
  background: var(--orange-dark);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.4px;
  padding: 6px 12px;
  border-radius: 6px;
  margin-bottom: 14px;
}
.midcta-gifts-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.midcta-gifts-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15.5px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.4;
}
.midcta-gifts-plus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
  color: var(--orange);
  flex-shrink: 0;
}
.midcta-amazon {
  width: 100%;
}

/* ===== Bundle picker modal (opened by midcta CTA) ===== */
.bundle-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.bundle-modal.is-open {
  display: flex;
}
.bundle-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(31, 20, 16, 0.55);
  backdrop-filter: blur(2px);
}
.bundle-modal-content {
  position: relative;
  width: 100%;
  max-width: 540px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: var(--bg-2);
  border-radius: 22px;
  padding: 32px 32px 28px;
  box-shadow: 0 30px 80px rgba(31, 20, 16, 0.35);
  animation: bundleModalIn 0.22s ease-out;
}
@keyframes bundleModalIn {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.bundle-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  color: var(--ink-2);
  transition: background-color 0.15s ease, color 0.15s ease;
}
.bundle-modal-close:hover {
  background: var(--line);
  color: var(--ink);
}
.bundle-modal-title {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 6px;
}
.bundle-modal-subtitle {
  font-size: 14px;
  color: var(--ink-2);
  margin: 0 0 22px;
  line-height: 1.45;
}
.bundle-modal-price-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 14px;
}
.bundle-modal-cta {
  width: 100%;
}
.bundle-modal-amazon {
  width: 100%;
}
body.bundle-modal-open {
  overflow: hidden;
}
.midcta .amazon-divider {
  width: 100%;
  margin: 20px 0 14px;
  color: var(--ink-2);
  opacity: 0.7;
}
.midcta .amazon-divider::before,
.midcta .amazon-divider::after {
  background: rgba(31, 20, 16, 0.14);
}
.midcta-countdown {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  padding: 0;
  margin: 0 0 4px;
}
.midcta-countdown-bolt {
  width: 18px;
  height: 18px;
  color: var(--orange);
  flex-shrink: 0;
}
.midcta-countdown-label {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.1px;
}
.midcta-countdown-time {
  margin-left: 4px;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 17px;
  font-weight: 800;
  color: var(--orange-dark);
  letter-spacing: 0.5px;
  font-variant-numeric: tabular-nums;
}
.midcta-button {
  width: 100%;
  padding: 22px 32px;
  font-size: 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

@media (max-width: 860px) {
  .midcta { padding: 32px 0 28px; }
  .midcta-header { margin-bottom: 20px; }
  .midcta-tagline { font-size: 15.5px; margin-top: 10px; }
  .midcta-eyebrow { font-size: 12px; letter-spacing: 1.8px; }
  .midcta-chips { gap: 22px; }
  .midcta-card {
    grid-template-columns: 1fr;
    max-width: 520px;
    gap: 14px;
  }
  .midcta-visual { aspect-ratio: 1 / 1; border-radius: 22px; }
  .midcta-info { padding: 0; }
  .midcta-rating { margin-bottom: 4px; }
  .midcta-rating-stars { height: 18px; }
  .midcta-rating-count { font-size: 14.5px; }
  .midcta-title { margin-bottom: 4px; }
  .midcta-gifts { margin-bottom: 22px; }
  .midcta-gifts-list li { font-size: 14.5px; }
  .midcta-countdown-label { font-size: 14px; }
  .midcta-countdown-time { font-size: 15.5px; }
}

@media (max-width: 540px) {
  /* Card-style modal on mobile: sized to content, centered on a dim
     backdrop. Was full-screen before, which left a huge empty band
     below the Amazon button. */
  .bundle-modal { padding: 16px; }
  .bundle-modal-content {
    max-width: none;
    max-height: calc(100vh - 32px);
    min-height: 0;
    border-radius: 18px;
    padding: 56px 20px 22px;
    text-align: center;
  }
  .bundle-modal-title {
    font-size: 22px;
    text-align: center;
    margin: 0 0 6px;
  }
  .bundle-modal-subtitle {
    font-size: 13.5px;
    margin-bottom: 18px;
    text-align: center;
  }
  /* Close button: bigger, with a soft background so it actually reads
     as a tappable control instead of disappearing into the corner. */
  .bundle-modal-close {
    width: 44px;
    height: 44px;
    top: 10px;
    right: 10px;
    background: rgba(31, 20, 16, 0.08);
    color: var(--ink);
  }
  .bundle-modal-close svg { width: 22px; height: 22px; }
  /* Inner blocks need to be left-aligned again — only the headline,
     subtitle, and CTA buttons are centered. */
  .bundle-modal .variant-block,
  .bundle-modal .bundle-modal-price-row { text-align: left; }
}

/* ===== Reviews carousel ===== */
.reviews { padding: 80px 0; background: var(--bg); }
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.review-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.3s, box-shadow 0.3s;
}
.review-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.review-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.review-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange-soft), var(--orange-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  flex-shrink: 0;
}
.review-meta strong { display: block; font-size: 14px; font-weight: 700; color: var(--ink); }
.review-meta .verified {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--green);
  margin-top: 2px;
  font-weight: 600;
}
.review-stars { color: var(--gold); font-size: 16px; letter-spacing: 1px; }
.review-headline {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--ink);
}
.review-text { font-size: 14.5px; color: var(--ink-2); line-height: 1.55; }

@media (max-width: 900px) {
  .reviews-grid { grid-template-columns: 1fr; }
}

/* ===== Testimonials carousel (ported from production index.html) ===== */
.testimonials-section {
  background: linear-gradient(135deg, #1f1410 0%, #4a1804 60%, #c2410c 140%);
  padding: 96px 0;
  overflow: hidden;
}
.testimonials-section .container {
  max-width: 1200px;
  margin: 0 auto;
}
.testimonials-title {
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-align: center;
  color: #fff;
  margin: 0 0 48px;
}
.testimonials-title span {
  color: var(--orange);
}
.testimonials-carousel-wrapper {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 80px, #000 calc(100% - 80px), transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 80px, #000 calc(100% - 80px), transparent 100%);
}
.testimonials-carousel {
  display: flex;
  gap: 20px;
  width: max-content;
  padding: 10px 0;
  will-change: transform;
}
.testimonial-card {
  flex: 0 0 320px;
  background: #fff;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 6px 24px rgba(31, 20, 16, 0.06);
  border: 1px solid var(--line);
}
.testimonial-card-image {
  background-size: cover;
  background-position: center;
  padding: 0;
  position: relative;
  min-height: 480px;
  overflow: hidden;
  border: none;
}
.testimonial-content-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.6) 70%, transparent 100%);
  color: #fff;
}
.testimonial-stars {
  color: #fbbf24;
  font-size: 16px;
  margin-bottom: 12px;
  letter-spacing: 2px;
}
.testimonial-text {
  font-size: 15px;
  line-height: 1.55;
  color: #fff;
  font-weight: 500;
  margin: 0 0 16px;
}
.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.testimonial-name {
  font-weight: 700;
  font-size: 14px;
  color: #fff;
}
.testimonial-verified {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #86efac;
  font-weight: 600;
}
.testimonial-verified svg {
  width: 14px;
  height: 14px;
}
@media (max-width: 768px) {
  .testimonials-section { padding: 36px 0 48px; }
  .testimonials-title { margin-bottom: 32px; }
  .testimonials-carousel { gap: 14px; }
  .testimonial-card-image { flex-basis: 280px; min-height: 420px; }
  .testimonials-carousel-wrapper {
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%);
            mask-image: linear-gradient(90deg, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%);
  }
}

/* ===== Reviews list (Ryze-style written reviews) ===== */
.reviews-list-section {
  background: var(--bg);
  padding: 80px 0 24px;
}
.reviews-list-section .container { max-width: 980px; }

.reviews-list-title {
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 28px;
  text-align: center;
}
.rl-summary {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.rl-summary-rating {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.rl-summary-number {
  font-size: 44px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.025em;
  line-height: 1;
}
.rl-summary-stars {
  color: var(--orange);
  font-size: 26px;
  letter-spacing: 4px;
}
.rl-summary-count {
  font-size: 15px;
  color: var(--ink-2);
  margin: 0;
}
.rl-distribution {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 520px;
  margin: 18px auto 36px;
}
.rl-dist-row {
  display: grid;
  grid-template-columns: 18px 18px 1fr;
  align-items: center;
  gap: 10px;
}
.rl-dist-label {
  font-size: 14px;
  color: var(--ink-2);
  font-weight: 600;
  text-align: center;
}
.rl-dist-star {
  color: var(--orange);
  font-size: 14px;
  line-height: 1;
}
.rl-dist-bar {
  height: 8px;
  background: var(--line);
  border-radius: 999px;
  overflow: hidden;
}
.rl-dist-fill {
  height: 100%;
  background: var(--orange);
  border-radius: 999px;
}

.reviews-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0 24px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 32px;
}
.reviews-list-count {
  font-size: 17px;
  color: var(--ink-2);
  font-weight: 500;
}
.reviews-list-count strong {
  color: var(--ink);
  font-weight: 800;
  margin-right: 6px;
}
.reviews-list-sort {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  letter-spacing: 0.2px;
}
.reviews-list-sort:disabled { cursor: default; }
.reviews-list-sort svg { color: var(--orange); }

.reviews-list-items {
  display: flex;
  flex-direction: column;
}
.rl-item {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 32px;
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
}
.rl-item:last-child { border-bottom: none; }

.rl-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}
.rl-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.rl-name {
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.rl-verified {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: 0.1px;
}
.rl-verified svg { flex-shrink: 0; }

.rl-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.rl-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.rl-stars {
  color: var(--orange);
  font-size: 18px;
  letter-spacing: 3px;
}
.rl-time {
  font-size: 13px;
  color: var(--ink-3);
  font-weight: 500;
}
.rl-headline {
  font-size: 17px;
  font-weight: 800;
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.01em;
}
.rl-text {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-2);
  margin: 0;
}
.rl-helpful {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
}
.rl-helpful-label {
  font-size: 13px;
  color: var(--ink-3);
  margin-right: auto;
}
.rl-helpful-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: transparent;
  border: none;
  color: var(--ink-3);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.15s ease, color 0.15s ease;
}
.rl-helpful-btn:hover {
  background: var(--bg-3);
  color: var(--ink);
}

@media (max-width: 700px) {
  .reviews-list-section { padding: 56px 0 24px; }
  .reviews-list-title { margin-bottom: 20px; }
  .rl-summary-number { font-size: 36px; }
  .rl-summary-stars { font-size: 22px; letter-spacing: 3px; }
  .rl-distribution { margin: 14px 0 28px; }
  .reviews-list-header { padding-bottom: 18px; margin-bottom: 24px; }
  .reviews-list-count { font-size: 15px; }
  .reviews-list-sort { padding: 8px 14px; font-size: 13.5px; }
  .rl-item {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 28px 0;
  }
  .rl-side {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    gap: 12px;
  }
  .rl-avatar { width: 48px; height: 48px; font-size: 20px; }
  .rl-meta { flex-wrap: wrap; gap: 8px; }
  .rl-headline { font-size: 16px; }
  .rl-text { font-size: 14.5px; }
}

/* ===== Bridge (transition between sections) ===== */
.section-bridge {
  background: linear-gradient(135deg, #1f1410 0%, #4a1804 60%, #c2410c 140%);
  padding: 96px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
@media (max-width: 900px) {
  .section-bridge { padding: 96px 24px; }
  .section-bridge p { font-size: 32px; line-height: 1.32; font-weight: 600; }
}
.section-bridge::before {
  content: '';
  position: absolute;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 720px;
  height: 720px;
  background: radial-gradient(circle, rgba(234,88,12,0.20) 0%, transparent 65%);
  filter: blur(40px);
  pointer-events: none;
}
.section-bridge .container {
  position: relative;
  z-index: 1;
}
.section-bridge p {
  max-width: 820px;
  margin: 0 auto;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.45;
  color: #fff;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.bridge-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s cubic-bezier(0.16,1,0.3,1), transform 0.55s cubic-bezier(0.16,1,0.3,1);
  white-space: pre-wrap;
}
.bridge-word.is-visible {
  opacity: 1;
  transform: none;
}
.section-bridge p em.bridge-accent {
  color: var(--orange);
  font-style: italic;
  font-family: Georgia, serif;
  font-weight: 700;
}
/* Shimmer kicks in only after the whole sentence has finished
   revealing (.section-bridge.is-finished). Same animation as
   .problems-title-accent for visual consistency. */
.section-bridge.is-finished p em.bridge-accent {
  background: linear-gradient(
    90deg,
    var(--orange) 0%,
    var(--orange) 35%,
    #ffc59a 50%,
    var(--orange) 65%,
    var(--orange) 100%
  );
  background-size: 260% 100%;
  background-position: 200% 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: problems-accent-shimmer 3.6s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  .bridge-word { opacity: 1; transform: none; transition: none; }
  .section-bridge.is-finished p em.bridge-accent { animation: none; background: none; -webkit-text-fill-color: var(--orange); }
}
@media (max-width: 720px) {
  .section-bridge { padding: 96px 24px; }
  .section-bridge p { font-size: 32px; line-height: 1.32; font-weight: 600; }
}

/* ===== Science Behind ===== */
.science {
  background: var(--bg-2);
  padding: 56px 0 8px;
  overflow: hidden;
}
.science-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 72px;
}
.science-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--orange);
  text-transform: uppercase;
  margin-bottom: 20px;
}
.science-eyebrow::before,
.science-eyebrow::after {
  content: '';
  width: 36px;
  height: 2px;
  background: var(--orange);
  border-radius: 2px;
  opacity: 0.5;
}
.science-title {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
}
.science-title em {
  color: var(--orange);
  font-style: italic;
  font-family: Georgia, serif;
  font-weight: 700;
}
.science-subtitle {
  font-size: 19px;
  color: var(--ink-2);
  line-height: 1.55;
  margin: 0;
}

/* Two named ingredient groups — Seed/Ritual style "cluster" framing.
   First group: 3 keystone strains. Second group: 2 prebiotics that
   feed them. Each group has its own label (───── LABEL ─────) above
   a grid of cards. */
.science-group {
  max-width: 1100px;
  margin: 0 auto 56px;
}
.science-group:last-of-type {
  margin-bottom: 48px;
}
.science-group-label {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}
.science-group-label span {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--orange);
  white-space: nowrap;
}
.science-group-label::before,
.science-group-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(234, 88, 12, 0.30);
}
.science-group-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
/* Two-up grid for the prebiotics group — same card width as the
   strains row by capping the container at 2/3 of the parent. */
.science-group-grid--two {
  grid-template-columns: repeat(2, 1fr);
  max-width: 727px; /* 2 cards + 1 gap at 1100px parent */
  margin: 0 auto;
}
.science-card {
  background: var(--bg);
  border-radius: 24px;
  padding: 28px;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.science-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(31,20,16,0.08);
}
.science-card-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  margin-bottom: 20px;
  border-radius: 16px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid var(--line);
}
.science-card-img img {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
}
.science-card-tag {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 1.4px;
  color: var(--orange);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.science-card-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
  font-style: italic;
  font-family: Georgia, serif;
}
.science-card-body {
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.6;
  margin: 0 0 18px;
  flex: 1;
}
.science-card-stat {
  font-size: 13px;
  font-weight: 600;
  color: var(--orange-dark);
  padding: 10px 14px;
  background: rgba(234,88,12,0.08);
  border-left: 3px solid var(--orange);
  border-radius: 0 8px 8px 0;
  line-height: 1.4;
}

@media (max-width: 900px) {
  .science { padding: 72px 0 8px; }
  .science-header { margin-bottom: 48px; }
  .science-group { margin-bottom: 16px; }
  .science-group-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .science-group-grid--two { grid-template-columns: repeat(2, 1fr); max-width: 100%; }
}
@media (max-width: 560px) {
  /* Convert each group's grid into a horizontal swipe carousel.
     Cards take 82vw so the next card peeks ~18vw — gives the user
     a visual hint that there's more to the side. JS adds pagination
     dots below each group. */
  .science-group-grid,
  .science-group-grid--two {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 14px;
    padding: 4px 24px;
    margin: 0 -24px;
    scroll-padding-left: 24px;
    max-width: none;
  }
  .science-group-grid::-webkit-scrollbar,
  .science-group-grid--two::-webkit-scrollbar { display: none; }
  .science-group-grid .science-card,
  .science-group-grid--two .science-card {
    flex: 0 0 82vw;
    scroll-snap-align: start;
  }
  /* Pagination dots (one per card, injected by JS) */
  .science-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
  }
  .science-pagination-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(31, 20, 16, 0.22);
    transition: background 0.25s ease, width 0.25s ease, transform 0.25s ease;
  }
  .science-pagination-dot.is-active {
    background: var(--orange);
    width: 22px;
    border-radius: 999px;
  }
}

/* ===== Problems (PAS hook) ===== */
.problems {
  background: linear-gradient(
    to bottom,
    #fff8f0 0%,
    #F7E7DD 120px,
    #F7E7DD 100%
  );
  padding: 48px 0 24px;
}
.problems-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 64px;
}
.problems-meds {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--orange);
  text-transform: uppercase;
  margin: 0 0 28px;
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}
.problems-meds span {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.problems-meds span::after {
  content: '';
  width: 4px;
  height: 4px;
  background: var(--orange);
  border-radius: 50%;
  opacity: 0.5;
}
.problems-meds span:last-child::after { display: none; }
.problems-title {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  color: var(--ink);
  margin: 0 0 20px;
  letter-spacing: -0.02em;
}
.problems-title-grad {
  background: linear-gradient(135deg, var(--ink) 40%, var(--orange) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.problems-title-accent {
  color: var(--orange);
  font-style: italic;
  font-family: Georgia, serif;
  font-weight: 700;
  position: relative;
  white-space: nowrap;
  background: linear-gradient(
    90deg,
    var(--orange) 0%,
    var(--orange) 35%,
    #ffc59a 50%,
    var(--orange) 65%,
    var(--orange) 100%
  );
  background-size: 260% 100%;
  background-position: 200% 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: problems-accent-shimmer 3.6s ease-in-out infinite;
}
.problems-title-accent::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 3px;
  background: var(--orange);
  border-radius: 2px;
  opacity: 0.6;
}
@keyframes problems-accent-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -100% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .problems-title-accent { animation: none; background: none; -webkit-text-fill-color: var(--orange); }
}
.problems-subtitle {
  font-size: 19px;
  color: var(--ink-2);
  line-height: 1.55;
  margin: 0 0 28px;
}
.problems-badges {
  display: flex;
  gap: 28px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}
.problems-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: 0.8px;
  text-transform: uppercase;
}
.problems-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}
.problems-image {
  border-radius: 20px;
  overflow: hidden;
  background: var(--bg-2);
  aspect-ratio: 1 / 1;
  box-shadow: 0 24px 48px rgba(55,20,19,0.10);
}
.problems-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.problems-eyebrow {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--orange);
  margin: 0 0 24px;
}
.problems-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 32px;
  margin: 0 0 32px;
  padding: 0;
}
.problems-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}
.problems-check {
  flex-shrink: 0;
  display: inline-flex;
  width: 26px;
  height: 26px;
}
.problems-tagline {
  font-style: italic;
  font-size: 17px;
  color: var(--orange);
  margin: 0;
  font-weight: 600;
}
@media (max-width: 900px) {
  .problems { padding: 24px 0 32px; }
  .problems-header { margin-bottom: 40px; }
  .problems-grid { grid-template-columns: 1fr; gap: 36px; }
  .problems-list { grid-template-columns: 1fr 1fr; gap: 14px 20px; }
  .problems-list li { font-size: 15px; }
}
@media (max-width: 560px) {
  .problems-list { grid-template-columns: 1fr; }
  .problems-badges { gap: 16px; }
}

/* Timeline strip with a panning track of 6 markers (same step
   as the scene carousel). Each marker rides above its scene:
   when the scene slides left, its dot slides left too; the next
   scene's dot enters from the right. The line collapses on
   scene 1 (no journey behind yet) and expands edge-to-edge on
   scene 2+. */
.problems-timeline {
  position: relative;
  width: 100%;
  padding: 20px 0 8px; /* tight against headline above + pin below */
  overflow: hidden;
}
.problems-timeline-line {
  position: absolute;
  /* Dot top = timeline padding-top (20px). Dot is 20px → center at 30px.
     Line is 1px; center at top + 0.5 → use top: 29.5px. */
  top: 29.5px;
  left: var(--line-left, 0);
  right: var(--line-right, 0);
  height: 1px;
  background: var(--orange);
  opacity: 0.30;
  z-index: 0;
  pointer-events: none;
  transform: scaleX(0);
  transform-origin: left center;
  transition: left 0.85s cubic-bezier(0.22, 1, 0.36, 1),
              right 0.85s cubic-bezier(0.22, 1, 0.36, 1),
              transform 2.4s cubic-bezier(0.22, 1, 0.36, 1) 0.2s;
}
.problems.has-entered .problems-timeline-line {
  transform: scaleX(1);
}

/* Hold scene 0's reveal state at zero until the user scrolls the
   section into view. .is-active is needed on scene 0 from page load
   so the carousel's positioning math works, but the entrance
   animation (text + visual + bars + pictogram) should wait for the
   viewer to actually arrive. .has-entered lives on the .problems
   section so it can gate both the timeline (sibling of .problems-stage)
   and the scene contents (descendants of .problems-stage). */
.problems:not(.has-entered) .problem-scene.is-active .problem-scene-content > *,
.problems:not(.has-entered) .problem-scene.is-active .problem-scene-visual {
  opacity: 0;
  transform: translateY(28px) scale(0.97);
  filter: blur(10px);
}
/* Pictogram + bar reveals are now per-element (gated on .is-revealed), so
   .has-entered no longer needs to hold them — IntersectionObserver fires
   them when each element actually enters the viewport. */
.problems-timeline-track {
  position: relative;
  z-index: 1;
  display: flex;
  width: max-content;
  padding: 0 6vw;
  transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
.problems-timeline-marker {
  width: 86vw;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.problems-timeline-marker-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  /* Liquid Glass dot — translucent orange + backdrop blur picks up
     the warm gradient behind. Bright top rim + inner shadow give
     it the polished iOS 26 lens look. */
  background: rgba(234, 88, 12, 0.55);
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow:
    0 4px 14px rgba(234, 88, 12, 0.38),
    inset 0 1.5px 0 rgba(255, 255, 255, 0.75),
    inset 0 -1.5px 0 rgba(234, 88, 12, 0.30),
    0 0 0 8px rgba(234, 88, 12, 0.14);
  opacity: 0;
  transform: scale(0.4);
  transition:
    opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
}
/* Dot appears at ~1.2s — when the line (2.4s total, 0.2s delay) has
   crossed ~40% of its growth, i.e. reaches the dot's position at
   marker 0's center. Slight overshoot on the scale for a "pop". */
.problems.has-entered .problems-timeline-marker-dot {
  opacity: 1;
  transform: scale(1);
  transition-delay: 1.2s;
}
.problems-timeline-marker-label {
  margin-top: 16px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.8px;
  color: var(--orange);
  text-transform: uppercase;
  white-space: nowrap;
}

/* 6-scene horizontal carousel — single continuous canvas */
.problems-stage {
  position: relative;
  margin-top: 0;
}
.problems-pagination { display: none; }
.problems-pin {
  position: relative;
  overflow: hidden;
  padding: 4px 0 16px;
  background-color: transparent;
  background-image:
    linear-gradient(to bottom, #F7E7DD 0%, rgba(247,231,221,0) 100%),
    linear-gradient(to right,
      #F7E7DD 49vw, #F7DFCA 135vw, #F6D6BE 221vw,
      #F0D2BE 307vw, #F0D9CB 393vw, #FAF6EE 479vw,
      #FAF6EE 800vw);
  background-size: 100% 32px, 800vw 100%;
  background-position: 0 0, var(--scene-offset, 0vw) 0;
  background-repeat: no-repeat;
  transition: background-position 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.problems-track {
  display: flex;
  width: max-content;
  padding: 0 6vw;
  transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
  background: none;
}
.problem-scene {
  width: 86vw;
  flex-shrink: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding: 4px max(48px, 4vw);
  box-sizing: border-box;
  background: transparent;
  border: 0;
  border-radius: 0;
  position: relative;
}
.problem-scene.is-reversed .problem-scene-content { order: 2; }
.problem-scene.is-reversed .problem-scene-visual { order: 1; }

/* Incidence callout on scene 0 — pictogram + big number + caption.
   Different visual vocabulary than the right column (which uses
   editorial typography for the timing comparison): here, a literal
   "how many people" pictogram for incidence rate. Avoids the
   placebo-vs-Ozempic chart that required statistical methodology
   to read. */
.stat-callout {
  margin-top: 32px;
  max-width: 460px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.stat-callout-eyebrow {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--orange);
}
.stat-callout-number {
  font-size: clamp(80px, 9.5vw, 120px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--orange);
  font-variant-numeric: tabular-nums;
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
}
.stat-callout-number b {
  font-weight: 800;
}
.stat-callout-number i {
  font-style: normal;
  font-size: 0.5em;
  opacity: 0.85;
  font-weight: 700;
}
.stat-callout-pictogram {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 8px;
  max-width: 360px;
  margin-top: 6px;
}
.stat-callout-figure {
  width: 100%;
  height: auto;
  fill: rgba(31, 20, 16, 0.14);
  transition: fill 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.stat-callout.is-revealed .stat-callout-figure.is-active {
  fill: var(--orange);
}
.stat-callout.is-revealed .stat-callout-figure.is-active:nth-of-type(1) { transition-delay: 0.10s; }
.stat-callout.is-revealed .stat-callout-figure.is-active:nth-of-type(2) { transition-delay: 0.22s; }
.stat-callout.is-revealed .stat-callout-figure.is-active:nth-of-type(3) { transition-delay: 0.34s; }
.stat-callout.is-revealed .stat-callout-figure.is-active:nth-of-type(4) { transition-delay: 0.46s; }
.stat-callout.is-revealed .stat-callout-figure.is-active:nth-of-type(5) { transition-delay: 0.58s; }
.stat-callout.is-revealed .stat-callout-figure.is-active:nth-of-type(6) { transition-delay: 0.70s; }
.stat-callout.is-revealed .stat-callout-figure.is-active:nth-of-type(7) { transition-delay: 0.82s; }
.stat-callout.is-revealed .stat-callout-figure.is-active:nth-of-type(8) { transition-delay: 0.94s; }
.stat-callout-caption {
  margin: 8px 0 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.55;
  color: var(--ink-2);
}
.stat-callout-caption b {
  font-weight: 800;
  color: var(--ink);
}
@media (max-width: 900px) {
  .stat-callout-number { font-size: clamp(64px, 16vw, 96px); }
  .stat-callout-pictogram { gap: 6px; max-width: 280px; }
}

/* Liquid Glass card around the text content — same formula as the
   visual card so both sides of the scene read as paired glass
   panels floating over the canvas gradient. */
.problem-scene-content {
  position: relative;
  padding: 40px 44px;
  background: rgba(255, 255, 255, 0.30);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 32px;
  box-shadow:
    0 18px 48px rgba(31, 20, 16, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    inset 0 -1px 0 rgba(255, 255, 255, 0.18);
}
/* Scene 0 hosts a photographic image + an inline bar chart, so the
   glass treatment around its text clashes — strip it. The other
   scenes (line-icon visuals) keep their paired-glass look. */
/* Scenes using the editorial layout (visual--stat + inline stat-callout
   instead of liquid-glass cards). Top-align so the title and the
   adjacent eyebrow start at the same Y. */
/* All six symptom scenes now use the editorial layout — promote the
   per-scene selectors to .problem-scene (applies to the whole carousel). */
.problem-scene {
  align-items: start;
  padding-top: 64px;
}
.problem-scene .problem-scene-content {
  padding: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 0;
  box-shadow: none;
}

/* Carousel arrows */
.problems-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255,255,255,0.95);
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(31,20,16,0.12);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
  color: var(--ink);
}
.problems-arrow:hover:not(:disabled) {
  background: #fff;
  transform: scale(1.08);
  box-shadow: 0 14px 36px rgba(31,20,16,0.16);
}
.problems-arrow:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.problems-arrow svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}
.problems-arrow-prev { left: 1.6vw; }
.problems-arrow-next { right: 1.6vw; }


/* Scene content choreography
   - Inactive scenes start dimmed + translated DOWN + blurred so
     content reads as fog lifting rather than a panel cut.
   - Active scene: pieces fade in + slide up + un-blur in a wide
     cascade. Long durations + heavy stagger overlap = continuous
     wave of motion (no discrete pops).
   - Exit (transition-delay 0) snaps everything back to dim
     immediately — leaving scene doesn't drag the timing. */
.problem-scene .problem-scene-content > *,
.problem-scene .problem-scene-visual {
  opacity: 0;
  transform: translateY(28px) scale(0.97);
  filter: blur(10px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.problem-scene.is-active .problem-scene-content > *,
.problem-scene.is-active .problem-scene-visual {
  opacity: 1;
  transform: none;
  filter: blur(0);
}
/* Exit cascade (scene losing .is-active) — REVERSE order so the
   bottom of the scene starts unbuilding first. Faster than entry
   so click-to-next feels snappy. */
.problem-scene .problem-scene-stat   { transition-delay: 0.00s; }
.problem-scene .stat-callout         { transition-delay: 0.00s; }
.problem-scene .problem-scene-body   { transition-delay: 0.08s; }
.problem-scene .problem-scene-why    { transition-delay: 0.16s; }
.problem-scene .problem-scene-title  { transition-delay: 0.24s; }
.problem-scene .problem-scene-visual { transition-delay: 0.32s; }
.problem-scene .problem-scene-num    { transition-delay: 0.40s; }
/* Entry cascade — FORWARD order, top first. Long delays so the
   reveal arrives AFTER the timeline line has had time to start
   drawing itself (line at scaleX 0 → 1 over 2.4s + 0.2s delay). */
.problem-scene.is-active .problem-scene-num    { transition-delay: 0.05s; }
.problem-scene.is-active .problem-scene-visual { transition-delay: 0.15s; }
.problem-scene.is-active .problem-scene-title  { transition-delay: 0.10s; }
.problem-scene.is-active .problem-scene-why    { transition-delay: 0.20s; }
.problem-scene.is-active .problem-scene-body   { transition-delay: 0.30s; }
.problem-scene.is-active .problem-scene-stat   { transition-delay: 0.40s; }
.problem-scene.is-active .stat-callout         { transition-delay: 0.40s; }

.problem-scene-num {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--orange);
  font-variant-numeric: tabular-nums;
  text-transform: uppercase;
  margin: 0 0 16px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.problem-scene-num::after {
  content: '';
  width: 56px;
  height: 2px;
  background: var(--orange);
  border-radius: 2px;
  opacity: 0.55;
}
.problem-scene-title {
  font-size: clamp(30px, 3.6vw, 44px);
  font-weight: 800;
  color: var(--ink);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
}
.problem-scene-why {
  font-size: 19px;
  color: var(--ink);
  line-height: 1.5;
  margin: 0 0 16px;
  font-weight: 600;
}
.problem-scene-why em {
  color: var(--orange);
  font-style: italic;
  font-family: Georgia, serif;
  font-weight: 700;
  font-size: 21px;
}
.problem-scene-body {
  font-size: 16.5px;
  color: var(--ink-2);
  line-height: 1.7;
  margin: 0 0 22px;
}
.problem-scene-stat {
  display: inline-block;
  padding: 12px 18px;
  background: rgba(234,88,12,0.10);
  border-left: 3px solid var(--orange);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--orange-dark);
  border-radius: 0 8px 8px 0;
  margin: 0;
  line-height: 1.4;
}
.problem-scene-visual {
  aspect-ratio: 1 / 1;
  /* Liquid Glass (iOS 26-inspired): translucent white over the
     colored gradient, heavy backdrop blur + saturate so the
     underlying canvas tints through. Inner highlight at top and
     subtle inner bottom shadow for the "polished glass" depth. */
  background: rgba(255, 255, 255, 0.32);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 32px;
  box-shadow:
    0 18px 48px rgba(31, 20, 16, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    inset 0 -1px 0 rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.problem-scene-visual::before {
  content: '';
  position: absolute;
  width: 70%;
  height: 70%;
  background: radial-gradient(circle, rgba(234,88,12,0.12) 0%, transparent 65%);
  border-radius: 50%;
  filter: blur(40px);
}
.problem-scene-visual svg {
  position: relative;
  width: 160px;
  height: 160px;
  stroke: var(--orange);
  stroke-width: 1.4;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* Photographic/illustrated visual — fills the card edge-to-edge.
   When the visual card contains an image (instead of the abstract
   line-art SVG icons used by the other scenes), the liquid-glass
   chrome around it clashes with the image itself — strip it. The
   image gets only the rounded crop. */
.problem-scene-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  z-index: 1;
}
.problem-scene-visual:has(img) {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 0;
  box-shadow: none;
}
.problem-scene-visual:has(img)::before { display: none; }

/* Stat-comparison display — replaces the visual card on scene 0 with
   an editorial typography piece comparing "Normal: 90 min" vs
   "On GLP-1: 240+ min" stomach emptying time. Big numbers, thin
   timeline bars sized to ratio (--w), brand-orange delta multiplier.
   Pendulum/Ritual-style editorial data display. */
.problem-scene-visual--stat {
  aspect-ratio: auto;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 0;
  box-shadow: none;
  overflow: visible;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  text-align: left;
  padding: 32px 8px;
  gap: 28px;
}
.problem-scene-visual--stat::before { display: none; }
.stat-compare-eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--orange);
  margin: 0;
}
.stat-compare {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.stat-compare-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}
.stat-compare-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--ink-2);
  opacity: 0.65;
}
.stat-compare-number {
  display: flex;
  align-items: baseline;
  gap: 10px;
  line-height: 1;
  color: var(--ink);
}
.stat-compare-number b {
  font-size: clamp(56px, 7.5vw, 92px);
  font-weight: 800;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.stat-compare-number i {
  font-style: normal;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink-2);
  opacity: 0.6;
}
.stat-compare-row--peak .stat-compare-number {
  color: var(--orange);
}
.stat-compare-row--peak .stat-compare-number b {
  font-size: clamp(72px, 9.5vw, 116px);
}
.stat-compare-row--peak .stat-compare-number i {
  color: var(--orange);
  opacity: 0.85;
}
/* Thick capsule-style bar with fighting-game-special fill animation.
   - Bar height bumped from 6px to 20px for the slumbr-app reference look
   - Inset shadow on the track for subtle depth
   - Fill uses scale-X transition that runs when .problem-scene becomes active
   - Peak (orange) bar gets a glow + horizontal shimmer overlay that loops
     after the fill completes, mimicking a charged-up special meter
*/
.stat-compare-bar {
  display: block;
  height: 20px;
  width: 100%;
  background: rgba(31, 20, 16, 0.08);
  border-radius: 999px;
  position: relative;
  overflow: hidden;
  margin-top: 14px;
  box-shadow: inset 0 1px 3px rgba(31, 20, 16, 0.12);
}
.stat-compare-bar::after {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--w, 0%);
  background: linear-gradient(90deg, rgba(31, 20, 16, 0.42) 0%, rgba(31, 20, 16, 0.56) 100%);
  border-radius: 999px;
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 1.4s cubic-bezier(0.34, 1.18, 0.64, 1) 0.8s;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
  z-index: 1;
}
.stat-compare-row--peak .stat-compare-bar::after {
  background: linear-gradient(90deg, #fb923c 0%, var(--orange) 50%, var(--orange-dark) 100%);
  box-shadow:
    0 0 18px rgba(234, 88, 12, 0.5),
    0 0 6px rgba(234, 88, 12, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition-delay: 1.4s;
}
.problem-scene-visual--stat.is-revealed .stat-compare-bar::after {
  transform: scaleX(1);
}

/* Special-bar shimmer — a moving highlight that sweeps across the bar
   after it fills. Only enabled on the peak/orange row so the effect
   feels like the GLP-1 bar is "charged". */
.stat-compare-row--peak .stat-compare-bar::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 35%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.55) 50%,
    transparent 100%
  );
  transform: translateX(-120%);
  z-index: 2;
  pointer-events: none;
  border-radius: 999px;
}
.problem-scene-visual--stat.is-revealed .stat-compare-row--peak .stat-compare-bar::before {
  animation: statBarShimmer 2.6s ease-in-out 2.6s infinite;
}
@keyframes statBarShimmer {
  0%   { transform: translateX(-120%); }
  60%  { transform: translateX(320%); }
  100% { transform: translateX(320%); }
}
@media (prefers-reduced-motion: reduce) {
  .stat-compare-bar::after { transition: none; transform: scaleX(1); }
  .stat-compare-row--peak .stat-compare-bar::before { animation: none; }
}
.stat-compare-delta {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--ink-2);
  opacity: 0.7;
  display: flex;
  align-items: center;
  gap: 12px;
}
.stat-compare-delta::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--orange);
  opacity: 0.6;
  flex-shrink: 0;
}
.stat-compare-delta-multiplier {
  color: var(--orange);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0;
  opacity: 1;
}
@media (max-width: 900px) {
  .problem-scene-visual--stat { padding: 8px 0; gap: 20px; }
  .stat-compare { gap: 20px; }
  .stat-compare-number b { font-size: clamp(48px, 14vw, 72px); }
  .stat-compare-row--peak .stat-compare-number b { font-size: clamp(60px, 18vw, 92px); }
}
.problems-closer {
  text-align: center;
  margin-top: 120px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.problems-closer p {
  font-size: 21px;
  color: var(--ink);
  line-height: 1.5;
  margin: 0;
  font-weight: 600;
}
.problems-closer p em {
  color: var(--orange);
  font-style: italic;
  font-family: Georgia, serif;
  font-weight: 700;
}
@media (max-width: 900px) {
  /* Mobile carousel: native horizontal scroll + scroll-snap so the user
     can swipe between scenes. JS attaches an IntersectionObserver to set
     .is-active on whichever scene is most in view, which triggers the
     same bar/number/figure animations the desktop carousel uses. */
  .problems-stage { margin-top: 16px; }
  .problems-pin {
    padding: 0;
    overflow-x: auto;
    overflow-y: visible;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    background-color: transparent;
    background-image: none;
  }
  .problems-pin::-webkit-scrollbar { display: none; }
  .problems-track {
    flex-direction: row;
    width: max-content;
    gap: 0;
    padding: 0;
    transform: none !important;
    background: none;
  }
  .problem-scene {
    width: 100vw;
    flex-shrink: 0;
    scroll-snap-align: start;
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 24px 24px 4px;
    border-radius: 0;
    background: transparent;
    border: 0;
  }
  /* Center only the symptom title + the stat-callout block (HOW COMMON
     + 44% + pictogram). Keep the 'Why this happens' / body text
     left-aligned so it reads as natural prose. */
  .problem-scene-num,
  .problem-scene-title { text-align: center; }
  .stat-callout { align-items: center; text-align: center; }
  .stat-callout-eyebrow,
  .stat-callout-number,
  .stat-callout-caption { text-align: center; }
  .stat-callout-number { justify-content: center; }
  .stat-callout-pictogram { justify-content: center; margin-left: auto; margin-right: auto; }
  .problem-scene.is-reversed .problem-scene-content,
  .problem-scene.is-reversed .problem-scene-visual { order: initial; }
  /* Force ALL scene content visible on mobile (default CSS hides them at
     opacity 0 for the desktop fade-in cascade). Specificity must match
     the hide rule (.problem-scene .problem-scene-content > *) or it loses. */
  .problem-scene .problem-scene-content > *,
  .problem-scene .problem-scene-visual {
    opacity: 1;
    transform: none;
    filter: none;
  }
  .problem-scene-visual {
    max-width: 360px;
    margin: 0 auto;
    background: var(--bg-2);
    border: 1px solid rgba(234, 88, 12, 0.10);
    border-radius: 20px;
    padding: 24px 20px;
    box-shadow: 0 6px 24px rgba(31, 20, 16, 0.05);
  }
  .problem-scene-visual svg { width: 110px; height: 110px; }
  /* Pagination dots — visible swipe indicator, sits close to the chart */
  .problems-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 4px;
    padding: 0 24px;
  }
  .problems-pagination-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(31, 20, 16, 0.22);
    transition: background 0.25s ease, transform 0.25s ease, width 0.25s ease;
  }
  .problems-pagination-dot.is-active {
    background: var(--orange);
    width: 22px;
    border-radius: 999px;
  }
  .problem-scene-title { font-size: 28px; }
  .problem-scene-why { font-size: 17px; }
  .problem-scene-why em { font-size: 19px; }
  .problem-scene-body { font-size: 15.5px; }
  .problems-arrow, .problems-timeline { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .problems-track { transition: none; }
}

/* ===== FAQ ===== */
.faq-section {
  background: linear-gradient(
    to bottom,
    #fff8f0 0%,
    #F7E7DD 120px,
    #F7E7DD calc(100% - 120px),
    #fff8f0 100%
  );
  padding: 48px 0 96px;
}
.faq-container {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 60px;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
}
.faq-sidebar { position: sticky; top: 24px; }
.faq-title {
  font-size: 32px;
  font-weight: 800;
  color: var(--orange);
  margin: 0;
  line-height: 1.2;
}
.faq-title-script {
  font-size: 38px;
  font-family: Georgia, serif;
  font-style: italic;
  color: var(--orange);
  font-weight: 400;
  margin: 0 0 28px;
}
.faq-tabs {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-tab {
  padding: 12px 32px;
  border: 2px solid var(--orange);
  border-radius: 30px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  background: transparent;
  color: var(--orange);
  text-align: center;
}
.faq-tab:hover { background: rgba(234,88,12,0.1); }
.faq-tab.active { background: var(--orange); color: #fff; }
.faq-category { display: none; }
.faq-category.active { display: block; }
.faq-list { display: flex; flex-direction: column; }
.faq-item { border-bottom: 1px solid var(--line); overflow: hidden; }
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  text-align: left;
  background: none;
  border: 0;
  cursor: pointer;
  transition: color 0.2s ease;
  font-family: inherit;
}
.faq-question:hover { color: var(--orange); }
.faq-icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
  color: var(--ink);
}
.faq-item.open .faq-icon { transform: rotate(180deg); color: var(--orange); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.faq-answer-inner {
  padding: 0 0 22px;
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.7;
}
@media (max-width: 900px) {
  .faq-section { padding: 32px 0 24px; }
  .faq-container { grid-template-columns: 1fr; gap: 32px; }
  .faq-sidebar { position: static; text-align: center; }
  .faq-title, .faq-title-script { text-align: center; }
  .faq-tabs {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 320px;
    margin: 0 auto;
  }
}

/* ===== Newsletter ===== */
.newsletter {
  padding: 80px 0;
  background: var(--bg);
  color: var(--ink);
}
@media (max-width: 900px) {
  .newsletter { padding: 16px 0 56px; }
}
.newsletter-card {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
}
.newsletter-card h3 {
  font-size: clamp(32px, 4.2vw, 48px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 10px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.newsletter-card h3 .brand-accent {
  color: var(--orange);
  font-weight: 800;
}
.newsletter-card h3 .brand-logo-inline {
  display: inline-block;
  height: 1.15em;
  width: auto;
  vertical-align: -0.18em;
  margin: 0 -0.1em 0 0.1em;
}
.newsletter-card p {
  font-size: 15px;
  color: var(--ink-2);
  margin-bottom: 24px;
}
.newsletter-form {
  display: flex;
  gap: 16px;
  max-width: 600px;
  margin: 0 auto;
}
.newsletter-form input {
  flex: 1;
  height: 71px;
  background: #fff3e6;
  border: 1.5px solid var(--orange);
  outline: 0;
  padding: 0 24px;
  color: var(--orange-dark);
  font-size: 18px;
  font-weight: 500;
  font-family: inherit;
  border-radius: 8px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.newsletter-form input:focus {
  border-color: var(--orange-dark);
  box-shadow: 0 0 0 3px rgba(234,88,12,0.15);
}
.newsletter-form input::placeholder { color: var(--orange-dark); opacity: 0.65; }
.newsletter-form button {
  height: 71px;
  padding: 0 28px;
  background: var(--orange);
  color: #fff;
  border: 0;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: background 0.15s ease;
  cursor: pointer;
  white-space: nowrap;
}
.newsletter-form button:hover { background: var(--orange-dark); }
@media (max-width: 540px) {
  .newsletter-form { flex-direction: column; gap: 12px; }
  /* flex: 1 from the base rule collapses the input's height in a
     flex-column (flex-basis: 0% wins over `height`). Reset flex so the
     explicit height takes effect. */
  .newsletter-form input,
  .newsletter-form button {
    flex: 0 0 auto;
    height: 72px;
    font-size: 20px;
  }
  .newsletter-form input { padding: 0 22px; }
}

/* ===== Footer (warm orange) ===== */
.footer { background: #c2410c; color: #fff; padding: 64px 0 28px; }
@media (max-width: 900px) {
  .footer { padding: 48px 0 24px; }
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand img { height: 34px; filter: brightness(0) invert(1); margin-bottom: 16px; }
.footer-brand p { font-size: 13.5px; color: rgba(255,255,255,0.82); line-height: 1.6; max-width: 320px; }
.footer-col h5 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 16px;
  color: #fff;
}
.footer-links a {
  display: block;
  font-size: 14px;
  color: rgba(255,255,255,0.82);
  padding: 5px 0;
  transition: color 0.2s;
}
.footer-links a:hover { color: #fff; }
.footer-bottom {
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.20);
  font-size: 11.5px;
  color: rgba(255,255,255,0.70);
  line-height: 1.6;
  text-align: center;
}
.footer-bottom a { color: rgba(255,255,255,0.85); text-decoration: none; }
.footer-bottom a:hover { color: #fff; text-decoration: underline; }
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

/* Scroll reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.16,1,0.3,1), transform 0.6s cubic-bezier(0.16,1,0.3,1);
}
[data-reveal].in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
}
