/* ==================================================================
       ACF PDP v2 — Post-Decision Two-Zone Design
         Top = Buying Zone (hero, proof, offer visible immediately)
         Bottom = Validation Zone (science, ingredients, FAQ)
       ================================================================== */
:root {
  /* ===== Design system color tokens ===== */
  --mmd-navy: #0c426d; /* Navy Primary */
  --mmd-navy-dark: #08324f; /* darker navy for depth */
  --mmd-cyan: #1ca9e4; /* Cyan Accent */
  --mmd-cyan-deep: #0987c7; /* Cyan Deep */
  --mmd-ice: #eaf5fc; /* Pale Ice Blue */
  --mmd-yellow: #ffc633; /* CTA Yellow (accent) */
  --mmd-green: #00b67a; /* Trust Green */
  --mmd-gold: #ffb400; /* Star Gold */
  --mmd-red: #e14d4d; /* Alert Red */
  --mmd-body: #334a5c; /* Body Text */
  --mmd-white: #fff;

  /* ===== Type system ===== */
  --font-head: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI',
    Helvetica, Arial, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica,
    Arial, sans-serif;
  --font-display: 'Poppins', Georgia, serif; /* serif-display role (Lora substitute) */

  /* ===== Back-compat aliases (existing rules reference these) ===== */
  --mmd-blue: var(--mmd-cyan);
  --mmd-blue-dark: var(--mmd-cyan-deep);
  --mmd-blue-soft: var(--mmd-ice);
  --mmd-text: var(--mmd-body);
  --mmd-meta: #5c6b76;
  --mmd-rule: #e5e8ec;
  --mmd-pale: #f4f8fc;
  --mmd-band: var(--mmd-ice);
}
* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}
html {
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}
html,
body {
  margin: 0;
  padding: 0;
}
body {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.5;
  color: var(--mmd-body);
  font-weight: 400;
  background: var(--mmd-white);
  -webkit-font-smoothing: antialiased;
  padding-bottom: 0;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: var(--mmd-cyan);
  text-decoration: none;
}
h1,
h2,
h3,
h4 {
  color: var(--mmd-navy);
  margin: 0 0 12px;
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.2;
}
h1 {
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1.15;
}
h2 {
  /* Shared section-heading recipe for the whole funnel.
     Sections keep only their deltas (margin, text-align, size exceptions). */
  font-weight: 700;
  font-size: clamp(26px, 4vw, 40px);
  letter-spacing: -0.01em;
}
h3 {
  font-size: 20px;
}
p {
  margin: 0 0 12px;
}
strong {
  color: var(--mmd-navy);
  font-weight: 700;
}
@media (min-width: 768px) {
  h1 {
    font-size: 46px;
  }
  h3 {
    font-size: 24px;
  }
}

/* ========== NAV ========== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(140%) blur(6px);
  -webkit-backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid #ebebeb;
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 18px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.nav img {
  height: 46px;
  width: auto;
  display: block;
}
.nav-cta {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
  min-height: 46px;
  padding: 12px 24px;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
  background: linear-gradient(180deg, #20b4ef 0%, #0d7cc0 100%);
  box-shadow: 0 14px 30px -8px rgba(13, 124, 192, 0.55);
  transition:
    transform 0.18s ease,
    background 0.18s ease;
}
.nav-cta:hover {
  background: linear-gradient(180deg, #15a6e2 0%, #0a6ca8 100%);
}
.nav-cta:active {
  transform: scale(0.985);
}
.nav-cta .arw {
  font-size: 1.05em;
  transform: translateY(1px);
}
@media (max-width: 767px) {
  .nav-inner {
    height: 60px;
    padding: 0 16px;
    gap: 12px;
  }
  .nav img {
    height: 38px;
  }
  .nav-cta {
    font-size: 15px;
    padding: 10px 18px;
    min-height: 42px;
  }
}

/* ========== SECTION 2 — HERO (product + pricing + CTA) ========== */
.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 18px 32px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  overflow: hidden;
}
/* Grid items must opt out of min-width:auto so the 1fr track
   never inflates past the viewport on narrow screens. */
.hero .gal,
.hero .buyer {
  min-width: 0;
}
@media (min-width: 960px) {
  .hero {
    grid-template-columns: minmax(0, 45fr) minmax(0, 55fr);
    gap: 40px;
    padding: 32px 24px;
  }
}

/* Hero header: TrustPilot rating + big quote, spans full width above
   the two-column buying zone. */
.hero-head {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2px;
  margin-bottom: 4px;
}
.hero-quote {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--mmd-navy);
  text-align: center;
  font-size: clamp(28px, 7vw, 72px);
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-wrap: balance;
  margin: 4px 0 0;
}
@media (max-width: 767px) {
  .hero-quote {
    align-self: stretch;
    text-align: left;
    text-wrap: pretty;
  }
}

.gal .main {
  width: 100%;
  background: var(--mmd-pale);
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 1/1;
  position: relative;
}
/* Sliding track: all slides side by side, translated by JS */
.gal-track {
  display: flex;
  height: 100%;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}
.gal-slide {
  flex: 0 0 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* Sizes both the track slides (domestic) and intl's single main image */
.gal .main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
/* Edge arrows on the main image (cycle through the gallery thumbs) */
.gal-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.92);
  color: var(--mmd-navy);
  box-shadow: 0 2px 10px rgba(10, 28, 46, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.2s ease;
}
.gal-arrow:hover {
  background: #fff;
}
.gal-arrow--prev {
  left: 10px;
}
.gal-arrow--next {
  right: 10px;
}
.gal-arrow svg {
  display: block;
}
@media (max-width: 760px) {
  .gal .main {
    max-height: 70vh;
  }
}
.gal .thumbs {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  justify-content: center;
  flex-wrap: nowrap;
  overflow-x: hidden;
}
.gal .thumbs img {
  flex: 1 1 0;
  width: auto;
  max-width: 72px;
  aspect-ratio: 1/1;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  border: 2px solid var(--mmd-rule);
  background: var(--mmd-pale);
  padding: 3px;
  cursor: pointer;
  min-width: 0;
  transition:
    border-color 0.15s,
    transform 0.15s,
    box-shadow 0.15s;
  box-shadow: 0 1px 3px rgba(10, 45, 79, 0.06);
}
@media (max-width: 420px) {
  .gal .thumbs {
    gap: 6px;
  }
  .gal .thumbs img {
    padding: 2px;
  }
}
.gal .thumbs img:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(10, 45, 79, 0.1);
}
.gal .thumbs img.active {
  border-color: var(--mmd-blue);
  background: #fff;
  box-shadow: 0 3px 10px rgba(31, 130, 224, 0.25);
}

.buyer .confirm {
  font-size: 13px;
  color: var(--mmd-green);
  font-weight: 600;
  margin-bottom: 8px;
}
.buyer .stars {
  color: #f7a500;
  letter-spacing: 1px;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.buyer .stars small {
  color: var(--mmd-meta);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: normal;
}
.buyer .prod-title {
  color: var(--mmd-navy);
  font-family: Georgia, serif;
  font-weight: 700;
  font-size: 28px;
  line-height: 1.15;
  margin-bottom: 4px;
}
@media (min-width: 960px) {
  .buyer .prod-title {
    font-size: 36px;
  }
}
.buyer .sub {
  font-size: 15px;
  color: var(--mmd-meta);
  font-weight: 500;
  margin-bottom: 8px;
}
.buyer .hook {
  font-size: 16px;
  color: var(--mmd-text);
  margin-bottom: 18px;
  line-height: 1.55;
}
.buyer .hook em {
  color: var(--mmd-blue);
  font-style: italic;
  font-weight: 600;
}

/* Sub/OneTime toggle */
/* ========== OFFER SELECTION — package cards ========== */
.offer {
  background: var(--mmd-ice);
  padding: 44px 18px;
}
.offer-inner {
  max-width: 900px;
  margin: 0 auto;
}
.tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
.tier {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 34px 12px 16px;
  border: 2px solid var(--mmd-rule);
  border-radius: 16px;
  background: #fff;
  cursor: pointer;
  transition:
    border-color 0.15s,
    background 0.15s,
    box-shadow 0.15s;
  box-shadow: 0 8px 20px -14px rgba(12, 66, 109, 0.25);
}
.tier:hover {
  border-color: var(--mmd-cyan);
}
.tier.selected {
  border-color: var(--mmd-cyan);
  background: #f2fbff;
  box-shadow:
    inset 0 0 0 1px var(--mmd-cyan),
    0 10px 24px -14px rgba(28, 169, 228, 0.45);
}

/* Radio dot (top-left) */
.tier .radio {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--mmd-rule);
  background: #fff;
}
.tier.selected .radio {
  border-color: var(--mmd-cyan);
}
.tier.selected .radio::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--mmd-cyan);
}

/* Badge (pill near the top of each card) */
.tier .badge {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  max-width: calc(100% - 20px);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  background: var(--mmd-navy);
  color: #fff;
}
.tier .badge.best {
  background: var(--mmd-green);
}
.tier .badge.popular {
  background: var(--mmd-cyan);
}
.tier .badge.starter {
  background: var(--mmd-navy);
}

/* Jar image */
.tier .tier-jar {
  width: 100%;
  max-width: 128px;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  margin-top: 8px;
}

/* Title */
.tier .qty {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--mmd-navy);
  font-size: 16px;
  line-height: 1.2;
}

/* Price + savings */
.tier .price-col {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 2px 8px;
}
.tier .price-col .per {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--mmd-navy);
  line-height: 1;
}
.tier .price-col .per small {
  font-size: 12px;
  font-weight: 600;
  color: var(--mmd-meta);
}
.tier .price-col .save-pill {
  color: var(--mmd-green);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

/* Shipping line */
.tier .ship {
  font-size: 12px;
  font-weight: 600;
  color: var(--mmd-meta);
}

/* Subscribe & Save checkbox banner */
.sub-toggle {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  padding: 14px 16px;
  background: transparent;
  border: 1.5px dashed var(--mmd-cyan);
  border-radius: 12px;
  cursor: pointer;
  text-align: left;
  font: inherit;
}
.sub-toggle .sub-box {
  position: relative;
  flex: none;
  width: 24px;
  height: 24px;
  margin-top: 1px;
  border-radius: 6px;
  border: 2px solid var(--mmd-rule);
  background: #fff;
  transition:
    background 0.15s,
    border-color 0.15s;
}
.sub-toggle.is-checked .sub-box {
  background: var(--mmd-cyan);
  border-color: var(--mmd-cyan);
}
.sub-toggle.is-checked .sub-box::after {
  content: '';
  position: absolute;
  left: 7px;
  top: 3px;
  width: 6px;
  height: 11px;
  border: solid #fff;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}
.sub-toggle .sub-copy {
  font-size: 14px;
  line-height: 1.4;
  color: var(--mmd-body);
}
.sub-toggle .sub-copy strong {
  color: var(--mmd-navy);
}

/* Mobile: stacked full-width rows (dsc/v40 style) */
@media (max-width: 640px) {
  .tiers {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .tier {
    display: grid;
    grid-template-columns: auto auto 1fr auto;
    grid-template-areas:
      'badge badge badge badge'
      'radio jar name  price'
      'radio jar ship  price';
    align-items: center;
    column-gap: 10px;
    row-gap: 1px;
    text-align: left;
    padding: 14px;
  }
  /* Badge: left-anchored, single-line pill above the row */
  .tier .badge {
    position: static;
    transform: none;
    grid-area: badge;
    justify-self: start;
    max-width: none;
    white-space: nowrap;
    margin-bottom: 8px;
  }
  /* Radio: left-anchored, vertically centered with the row */
  .tier .radio {
    position: relative;
    top: auto;
    left: auto;
    grid-area: radio;
    align-self: center;
  }
  .tier .tier-jar {
    grid-area: jar;
    width: 56px;
    max-width: 56px;
    margin-top: 0;
  }
  .tier .qty {
    grid-area: name;
    font-size: 16px;
    line-height: 1.15;
  }
  .tier .ship {
    grid-area: ship;
  }
  .tier .price-col {
    grid-area: price;
    flex-direction: column;
    align-items: flex-end;
    align-self: center;
    gap: 0;
  }
  .tier .price-col .per {
    font-size: 22px;
  }
}

/* Total row */
.total-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px 12px;
  text-align: center;
  font-size: 15px;
  margin: 6px 0 14px;
  padding: 12px 0;
  border-top: 1px solid var(--mmd-rule);
  border-bottom: 1px solid var(--mmd-rule);
}
.total-row b {
  color: var(--mmd-navy);
  font-size: 17px;
}
.total-row .was {
  text-decoration: line-through;
  color: var(--mmd-meta);
  font-weight: 500;
  margin-left: 8px;
}
.total-row .save {
  background: var(--mmd-green);
  color: #fff;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.total-row .retail-ref {
  flex-basis: 100%;
  margin-top: 2px;
  font-size: 11px;
  color: var(--mmd-meta);
  font-weight: 500;
  font-style: italic;
  text-align: center;
}

/* Primary CTA */
.cta {
  display: block;
  width: 100%;
  text-align: center;
  background: var(--mmd-blue);
  color: #fff;
  padding: 18px 24px;
  border: none;
  border-radius: 999px;
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.15s;
  box-shadow: 0 10px 24px -8px rgba(9, 135, 199, 0.5);
  min-height: 58px;
}
.cta:hover {
  background: var(--mmd-blue-dark);
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  justify-content: center;
  font-size: 12px;
  color: var(--mmd-meta);
  margin: 12px 0 10px;
}
.trust-row div {
  display: flex;
  align-items: center;
  gap: 4px;
}
.pay-row {
  text-align: center;
  font-size: 11px;
  color: var(--mmd-meta);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 600;
}
.pay-row.help-row {
  margin-top: 8px;
  font-size: 13px;
  letter-spacing: 0.02em;
  text-transform: none;
  font-weight: 500;
  color: var(--mmd-text);
}
.pay-row.help-row a {
  color: var(--mmd-blue);
  font-weight: 700;
  text-decoration: none;
}
.pay-row.help-row a:hover {
  text-decoration: underline;
}

/* ========== INGREDIENT QUAD (4 cards) ========== */
.ing-quad {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 640px) {
  .ing-quad {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
}
@media (min-width: 1024px) {
  .ing-quad {
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
  }
}
.ing-quad .ing-card .thumb {
  width: 100%;
  height: auto;
  aspect-ratio: 1/1;
  border-radius: 8px;
  object-fit: cover;
  margin-bottom: 14px;
}

/* ========== APPLICATION GALLERY (new section) ========== */
.apply {
  padding: 56px 18px;
  background: var(--mmd-white);
}
.apply .inner {
  max-width: 980px;
  margin: 0 auto;
}
.apply h2 {
  text-align: center;
  font-family: Georgia, serif;
  margin-bottom: 8px;
}
.apply p.lead {
  text-align: center;
  color: var(--mmd-meta);
  font-size: 15px;
  max-width: 620px;
  margin: 0 auto 32px;
  line-height: 1.55;
}
.apply-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 520px) {
  .apply-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
}
@media (min-width: 960px) {
  .apply-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
  }
}
.apply-card {
  background: #fff;
  border: 1px solid var(--mmd-rule);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(31, 130, 224, 0.04);
}
.apply-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 1/1;
  object-fit: cover;
  display: block;
}
.apply-card .body {
  padding: 12px 14px 14px;
}
.apply-card h4 {
  font-size: 15px;
  color: var(--mmd-navy);
  font-weight: 800;
  margin-bottom: 4px;
}
.apply-card p {
  font-size: 13px;
  color: var(--mmd-meta);
  line-height: 1.5;
  margin: 0;
}

/* ========== FULL INCI LIST (new, inside section 14) ========== */
.inci-box {
  background: #fff;
  border: 1px solid var(--mmd-rule);
  border-radius: 8px;
  padding: 22px 24px;
  margin-top: 24px;
}
.inci-box summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 16px;
  font-weight: 800;
  color: var(--mmd-navy);
}
.inci-box summary::-webkit-details-marker {
  display: none;
}
.inci-box summary::after {
  content: '+';
  font-size: 22px;
  color: var(--mmd-blue);
  font-weight: 700;
  line-height: 1;
  transition: transform 180ms ease;
}
.inci-box[open] summary::after {
  transform: rotate(45deg);
}
.inci-box .inci-sub {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--mmd-meta);
  margin-top: 2px;
}
.inci-list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}
.inci-list li {
  padding: 12px 0;
  border-top: 1px solid var(--mmd-rule-soft);
  display: grid;
  gap: 4px;
}
.inci-list li:first-child {
  border-top: none;
  padding-top: 4px;
}
.inci-list .name {
  font-size: 14px;
  font-weight: 800;
  color: var(--mmd-navy);
}
.inci-list .name .common {
  display: inline;
  font-weight: 600;
  color: var(--mmd-meta);
  font-size: 13px;
  font-style: italic;
}
.inci-list .desc {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--mmd-text);
}
.inci-raw {
  margin-top: 18px;
  padding: 12px 14px;
  background: var(--mmd-band);
  border-radius: 6px;
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--mmd-meta);
  word-break: break-word;
}
.inci-raw b {
  color: var(--mmd-navy);
}

/* ========== SECTION 3 — GUARANTEE STRIP ========== */
.g-strip {
  background: var(--mmd-blue-soft);
  padding: 24px 18px;
  text-align: center;
}
.g-strip p {
  max-width: 640px;
  margin: 0 auto;
  font-size: 15px;
  color: var(--mmd-navy);
  line-height: 1.55;
}
.g-strip p b {
  color: var(--mmd-navy);
  font-weight: 700;
}
.g-strip p em {
  color: var(--mmd-meta);
  font-style: normal;
  font-weight: 500;
  display: block;
  margin-top: 4px;
  font-size: 13px;
}

/* ========== SECTION 4 — B&A CAROUSEL ========== */
.section {
  padding: 48px 18px;
}
.section h2.center {
  text-align: center;
  font-family: var(--font-head);
}
.section .sub {
  text-align: center;
  color: var(--mmd-meta);
  max-width: 620px;
  margin: 0 auto 28px;
  font-size: 15px;
}

.ba8-head {
  text-align: center;
  margin-bottom: 10px;
}
.ba8-head .trust {
  font-size: 13px;
  color: var(--mmd-meta);
  margin-bottom: 4px;
  letter-spacing: 0.02em;
}
.ba8-head .trust b {
  color: var(--mmd-navy);
}
.ba8-head .stars {
  color: #f7a500;
  font-size: 15px;
  letter-spacing: 2px;
}

.ba8-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0;
  position: relative;
}

/* Swipe hint + counter (above carousel) */
.ba8-hint {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1180px;
  margin: 0 auto 12px;
  padding: 0 6px;
  font-size: 13px;
  color: var(--mmd-meta);
}
.ba8-hint .swipe-cue {
  font-weight: 600;
  color: var(--mmd-blue);
  display: none;
}
.ba8-hint .counter {
  font-weight: 700;
  color: var(--mmd-navy);
  font-variant-numeric: tabular-nums;
}
.ba8-hint .counter .div {
  color: var(--mmd-rule);
  margin: 0 2px;
  font-weight: 400;
}
/* Show "Swipe" cue ONLY on touch devices (no fine pointer).
       Any device with a mouse/trackpad gets the arrow buttons — no swipe hint. */
@media (hover: none) and (pointer: coarse) {
  .ba8-hint .swipe-cue {
    display: inline;
  }
}
@media (max-width: 520px) {
  .ba8-hint {
    font-size: 12px;
  }
}

/* Gently pulsing swipe cue on mobile (first 3 cycles) */
@keyframes swipe-pulse {
  0% {
    transform: translateX(0);
    opacity: 0.7;
  }
  40% {
    transform: translateX(6px);
    opacity: 1;
  }
  80% {
    transform: translateX(0);
    opacity: 0.7;
  }
  100% {
    transform: translateX(0);
    opacity: 0.7;
  }
}
.ba8-hint .swipe-cue {
  animation: swipe-pulse 2s ease-in-out 3;
}

/* Desktop arrows */
.ba8-arrow {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--mmd-rule);
  cursor: pointer;
  z-index: 10;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
  transition: background 0.15s;
}
@media (min-width: 860px) {
  .ba8-arrow {
    display: flex;
  }
}
.ba8-arrow:hover {
  background: var(--mmd-blue-soft);
}
.ba8-arrow.prev {
  left: -4px;
}
.ba8-arrow.next {
  right: -4px;
}
.ba8-arrow::before {
  content: '';
  width: 10px;
  height: 10px;
  border-top: 2px solid var(--mmd-navy);
  border-right: 2px solid var(--mmd-navy);
}
.ba8-arrow.prev::before {
  transform: rotate(-135deg);
  margin-left: 3px;
}
.ba8-arrow.next::before {
  transform: rotate(45deg);
  margin-right: 3px;
}

/* BIG senior-friendly nav bar (always visible) */
.ba8-bignav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  max-width: 620px;
  margin: 18px auto 0;
  padding: 0 6px;
  align-items: center;
}
.ba8-bigbtn {
  background: var(--mmd-navy);
  color: #fff;
  border: 2px solid var(--mmd-navy);
  border-radius: 8px;
  min-height: 60px;
  padding: 10px 16px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition:
    background 0.15s,
    transform 0.1s;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.15);
  letter-spacing: 0.01em;
}
.ba8-bigbtn:hover,
.ba8-bigbtn:focus {
  background: var(--mmd-blue);
  border-color: var(--mmd-blue);
  outline: none;
}
.ba8-bigbtn:active {
  transform: translateY(1px);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.15);
}
.ba8-bigbtn .arr {
  font-size: 22px;
  line-height: 1;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.ba8-bigbtn .lbl {
  line-height: 1.1;
}
.ba8-bigbtn[disabled] {
  background: var(--mmd-rule);
  border-color: var(--mmd-rule);
  color: var(--mmd-meta);
  cursor: not-allowed;
  box-shadow: none;
}
.ba8-bigcounter {
  font-size: 16px;
  color: var(--mmd-text);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-align: center;
  padding: 0 6px;
  white-space: nowrap;
}
.ba8-bigcounter b {
  color: var(--mmd-navy);
  font-size: 20px;
}

@media (max-width: 480px) {
  .ba8-bignav {
    grid-template-columns: 1fr auto 1fr;
    gap: 6px;
    padding: 0 2px;
  }
  .ba8-bigbtn {
    min-height: 56px;
    padding: 8px 10px;
    font-size: 14px;
  }
  .ba8-bigbtn .arr {
    font-size: 20px;
    width: 22px;
    height: 22px;
  }
  .ba8-bigcounter {
    font-size: 14px;
  }
  .ba8-bigcounter b {
    font-size: 18px;
  }
  /* On narrowest screens, hide the text label so buttons fit — icons convey meaning */
}
@media (max-width: 380px) {
  .ba8-bigbtn .lbl {
    display: none;
  }
  .ba8-bigbtn {
    padding: 8px 12px;
  }
}

/* Dot indicators (visual progress only — primary nav is the big bar above) */
.ba8-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 14px 0 0;
}
.ba8-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mmd-rule);
  border: 0;
  padding: 0;
  cursor: pointer;
  transition:
    background 0.15s,
    transform 0.15s;
  min-height: 8px;
}
.ba8-dots button.active {
  background: var(--mmd-blue);
  transform: scale(1.4);
}
.ba8-track {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 6px 4px 10px;
}
.ba8-track::-webkit-scrollbar {
  display: none;
}
.ba8-card {
  flex: 0 0 calc(100% - 8px);
  scroll-snap-align: start;
  background: #fff;
  border: 1px solid var(--mmd-rule);
  border-radius: 8px;
  overflow: hidden;
}
@media (min-width: 640px) {
  .ba8-card {
    flex: 0 0 calc(50% - 12px);
  }
}
@media (min-width: 980px) {
  .ba8-card {
    flex: 0 0 calc(33.333% - 12px);
  }
}
.ba8-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  aspect-ratio: 1/1;
  background: #fff;
}
.ba8-pair > div {
  position: relative;
  aspect-ratio: 1/2;
  overflow: hidden;
}
.ba8-pair img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ba8-pair .tag {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  background: rgba(10, 45, 79, 0.9);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 3px;
}
.ba8-pair .tag.after {
  background: rgba(31, 130, 224, 0.95);
  left: auto;
  right: 10px;
}
.ba8-body {
  padding: 14px 16px 18px;
}
.ba8-body .bp {
  font-size: 10px;
  color: var(--mmd-blue);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.ba8-body .q {
  font-size: 14px;
  font-style: italic;
  color: var(--mmd-text);
  margin: 0 0 10px;
  line-height: 1.5;
}
.ba8-body .who {
  font-size: 12px;
  color: var(--mmd-navy);
  font-weight: 700;
  padding-top: 8px;
  border-top: 1px solid var(--mmd-rule);
}
.ba8-body .who .age {
  color: var(--mmd-meta);
  font-weight: 500;
}

.inline-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--mmd-blue);
  color: #fff;
  padding: 16px 32px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 600;
  text-decoration: none;
  font-size: 16px;
  min-height: 56px;
  box-shadow: 0 10px 24px -8px rgba(9, 135, 199, 0.5);
  transition: background 0.15s;
}
.inline-cta:hover {
  background: var(--mmd-blue-dark);
  color: #fff;
}

.ba8-mid-cta {
  text-align: center;
  padding: 18px 0 0;
}

/* ========== SECTION 5 — REVIEWS ========== */
.rev-grid {
  max-width: 1120px;
  margin: 32px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}
.rev-card {
  background: #fff;
  border: 1px solid var(--mmd-rule);
  border-radius: 14px;
  padding: 26px 26px 28px;
  box-shadow: 0 10px 28px rgba(12, 66, 109, 0.06);
}
.rev-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.rev-av {
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--mmd-navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 20px;
}
.rev-id {
  line-height: 1.25;
}
.rev-name {
  display: block;
  color: var(--mmd-navy);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 18px;
}
.rev-vfy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  color: var(--mmd-green);
  font-weight: 700;
  font-size: 14px;
}
.rev-vfy-ic {
  flex: none;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--mmd-green);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.rev-vfy-ic svg {
  width: 11px;
  height: 11px;
}
.rev-stars {
  color: #f7a500;
  letter-spacing: 2px;
  font-size: 18px;
  margin-bottom: 12px;
}
.rev-quote {
  font-size: 16px;
  line-height: 1.55;
  color: var(--mmd-body);
  margin: 0;
}
@media (max-width: 899px) {
  .rev-grid {
    grid-template-columns: 1fr;
    max-width: 560px;
    gap: 18px;
  }
}
/* ========== SECTION 6 — DR. J ========== */
.drj {
  background: linear-gradient(180deg, #fff 0%, var(--mmd-blue-soft) 100%);
  padding: 56px 18px;
}
.drj-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mmd-cyan);
  font-weight: 700;
  margin: 0 0 16px;
}
.eyebrow::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--mmd-cyan);
}
.drj-head {
  font-family: var(--font-head);
  color: var(--mmd-navy);
  font-weight: 700;
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 28px;
}
.drj-portrait {
  width: 168px;
  height: 168px;
  margin: 0 auto 4px;
  border-radius: 50%;
  overflow: hidden;
  background: #fff;
}
.drj-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.drj-qmark {
  display: block;
  font-family: Georgia, serif;
  font-size: 56px;
  line-height: 1;
  color: var(--mmd-cyan);
  margin: 4px 0 12px;
}
.drj-quote {
  font-family: var(--font-head);
  color: var(--mmd-navy);
  font-weight: 500;
  font-size: clamp(17px, 2.2vw, 20px);
  line-height: 1.55;
  max-width: 600px;
  margin: 0 auto 24px;
}
.drj-body {
  color: var(--mmd-body);
  font-size: 16px;
  line-height: 1.7;
  max-width: 620px;
  margin: 0 auto 28px;
}
.drj-sig {
  color: var(--mmd-navy);
  font-weight: 700;
  font-size: 17px;
  margin: 0;
}
.drj-sig-sub {
  color: var(--mmd-meta);
  font-size: 14px;
  margin: 4px 0 0;
}

/* ========== SECTION 7 — SCIENCE ========== */
.sci {
  padding: 56px 18px;
  background: #fff;
}
.sci .inner {
  max-width: 960px;
  margin: 0 auto;
}
.sci h2 {
  text-align: center;
  margin: 0 0 12px;
}
.sci .lead {
  text-align: center;
  color: var(--mmd-meta);
  max-width: 620px;
  margin: 0 auto 28px;
  font-size: 16px;
}
.sci-diagram {
  max-width: 620px;
  margin: 0 auto 28px;
  border-radius: 16px;
  overflow: hidden;
}
.sci-diagram img {
  width: 100%;
  display: block;
}
.sci-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 28px;
}
@media (min-width: 860px) {
  .sci-steps {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
  }
}
.sci-step {
  background: var(--mmd-ice);
  border-radius: 14px;
  padding: 22px 22px;
}
.sci-step .n {
  display: inline-block;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--mmd-navy);
  color: #fff;
  font-weight: 700;
  text-align: center;
  line-height: 30px;
  font-size: 14px;
  margin-bottom: 12px;
}
.sci-step p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--mmd-text);
  margin: 0;
}
.sci-takeaway {
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
  color: var(--mmd-navy);
  font-weight: 600;
  font-size: 17px;
  line-height: 1.6;
}
.sci-cta-wrap {
  text-align: center;
  margin-top: 28px;
  padding-bottom: 24px;
}
.sci-cta-wrap .cta {
  display: inline-block;
  width: auto;
  padding: 16px 48px;
}
@media (max-width: 767px) {
  /* Number badge sits inline with the step text */
  .sci-step {
    display: flex;
    align-items: flex-start;
    gap: 14px;
  }
  .sci-step .n {
    margin-bottom: 0;
    flex-shrink: 0;
  }
  /* Full-width CTA */
  .sci-cta-wrap .cta {
    display: block;
    width: 100%;
  }
}

/* ========== SECTION 8 — GOOD VS GENERIC ========== */
.gvg {
  background: var(--mmd-ice);
  padding: 56px 18px;
}
.gvg .inner {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 800px) {
  .gvg .inner {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: stretch;
  }
}
.gvg-card {
  border-radius: 16px;
  padding: 28px 26px;
}
.gvg-card--generic {
  background: #fff;
  border: 1.5px solid var(--mmd-cyan);
}
.gvg-card--restore {
  background: #fff;
  border: 1.5px solid var(--mmd-cyan);
}
.gvg-card h3 {
  color: var(--mmd-navy);
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 18px;
}
.gvg-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.gvg-card li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--mmd-body);
}
.gvg-ic {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}
.gvg-ic--x {
  background: var(--mmd-red);
}
.gvg-ic--check {
  background: var(--mmd-cyan);
}

/* ========== SECTION 10 — HOW TALLOW REBUILDS YOUR CERAMIDE BARRIER ========== */
.ribose {
  padding: 56px 18px;
  background: #fff
}
.ribose .inner {
  max-width: 860px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 800px) {
  .ribose .inner {
    grid-template-columns: 1fr 260px;
    align-items: center;
    gap: 40px;
  }
}
.ribose h2 {
  font-family: var(--font-head);
  margin-bottom: 14px;
}
.ribose p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--mmd-text);
  margin-bottom: 14px;
}
.ribose .cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 320px;
  width: auto;
  padding: 14px 26px;
  font-size: 15px;
  margin-top: 6px;
}
.ribose .gtr {
  font-size: 12px;
  color: var(--mmd-meta);
  margin-top: 8px;
}
.ribose .gtr::before {
  content: '🛡 ';
}
.ribose .pimg img {
  width: 100%;
  max-width: 260px;
  margin: 0 auto;
  border-radius: 8px;
}
.ribose-cta-wrap {
  text-align: center;
  margin-top: 14px;
}
.ribose-gtr {
  text-align: center;
}

/* ========== SECTIONS 10 / 11 — USE PANELS (image beside copy) ========== */
.usesec {
  padding: 56px 18px;
  background: var(--mmd-band);
}
.usesec--tint {
  background: #fff;
}
.usesec .inner {
  max-width: 960px;
  margin: 0 auto;
}
.usesec h2 {
  margin: 0 0 24px;
}
.usepanel {
  background: #fff;
  border-radius: 20px;
  padding: 28px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
}
.usesec--tint .usepanel {
  background: var(--mmd-band);
}
.usepanel-img {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
}
.usesec--tint .usepanel-img {
  background: var(--mmd-ice);
}
.usepanel-img img {
  width: 100%;
  display: block;
}
.usepanel-copy {
  font-size: 17px;
  line-height: 1.7;
  color: var(--mmd-body);
  margin: 0;
}
@media (min-width: 800px) {
  .usepanel {
    grid-template-columns: 360px 1fr;
    gap: 40px;
    padding: 36px;
  }
  .usepanel--reverse {
    grid-template-columns: 1fr 360px;
  }
  .usepanel--reverse .usepanel-img {
    order: 2;
  }
}

/* ========== SECTION 13 — COMPARISON TABLE ========== */
.cmp {
  padding: 56px 18px;
}
.cmp .inner {
  max-width: 900px;
  margin: 0 auto;
}
.cmp h2 {
  text-align: center;
  margin: 0 0 28px;
}
@media (max-width: 767px) {
  .cmp h2 {
    text-align: left;
  }
}

/* 4-column comparison chart — fits mobile viewport, no horizontal scroll */
.cmp-chart {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  background: #fff;
  border: 1px solid var(--mmd-rule);
  border-radius: 12px;
  overflow: hidden;
}
.cmp-chart th,
.cmp-chart td {
  padding: 12px 6px;
  text-align: center;
  vertical-align: middle;
  border-bottom: 1px solid var(--mmd-rule);
  word-wrap: break-word;
}
.cmp-chart tbody tr:last-child th,
.cmp-chart tbody tr:last-child td {
  border-bottom: none;
}
.cmp-chart thead th {
  font-family: var(--font-head);
  color: var(--mmd-navy);
  font-weight: 700;
  font-size: 12px;
  line-height: 1.25;
  background: var(--mmd-pale);
  border-bottom: 2px solid var(--mmd-rule);
}
.cmp-chart th:first-child,
.cmp-chart td:first-child {
  width: 34%;
  text-align: left;
  padding-left: 12px;
}
.cmp-chart tbody th {
  font-weight: 600;
  color: var(--mmd-body);
  font-size: 13px;
  line-height: 1.3;
}
.cmp-chart tbody tr:nth-child(even) {
  background: var(--mmd-pale);
}
.cmp-chart .cmp-tr {
  background: #e0f0fb;
}
.cmp-chart thead .cmp-tr {
  color: var(--mmd-cyan-deep);
}
.cmp-val {
  color: var(--mmd-meta);
  font-size: 12px;
  line-height: 1.25;
}
.cmp-ic {
  display: inline-flex;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}
.cmp-ic--check {
  background: var(--mmd-cyan);
}
.cmp-ic--x {
  background: var(--mmd-red);
}
@media (max-width: 520px) {
  .cmp-chart th,
  .cmp-chart td {
    padding: 10px 3px;
  }
  .cmp-chart thead th {
    font-size: 10.5px;
  }
  .cmp-chart th:first-child,
  .cmp-chart td:first-child {
    width: 36%;
    padding-left: 8px;
  }
  .cmp-chart tbody th {
    font-size: 11.5px;
  }
  .cmp-val {
    font-size: 10.5px;
  }
  .cmp-ic {
    width: 20px;
    height: 20px;
    font-size: 11px;
  }
}

.cmp-three {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 32px;
}
@media (min-width: 800px) {
  .cmp-three {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
  }
}
.cmp-pillar {
  padding: 20px 18px;
  background: var(--mmd-pale);
  border-radius: 8px;
}
.cmp-pillar .ico {
  font-size: 26px;
  margin-bottom: 8px;
}
.cmp-pillar h4 {
  color: var(--mmd-navy);
  font-size: 16px;
  margin-bottom: 8px;
}
.cmp-pillar p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--mmd-text);
  margin: 0;
}

/* Comparison table — fits 390px mobile without horizontal scroll */
.cmp-table-scroller {
  position: relative;
  margin-bottom: 28px;
}
.cmp-table-wrap {
  -webkit-overflow-scrolling: touch;
}
.cmp-scroll-hint {
  display: none;
}
.cmp-tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: #fff;
  border: 1px solid var(--mmd-rule);
  border-radius: 8px;
  overflow: hidden;
  table-layout: fixed;
}
.cmp-tbl th {
  text-align: center;
  padding: 10px 6px;
  font-size: 12px;
  font-weight: 700;
  border-bottom: 1px solid var(--mmd-rule);
  background: var(--mmd-pale);
  color: var(--mmd-text);
  word-wrap: break-word;
  line-height: 1.25;
}
.cmp-tbl th:first-child {
  text-align: left;
  padding-left: 12px;
  width: 38%;
}
.cmp-tbl th.hi {
  background: var(--mmd-blue);
  color: #fff;
}
.cmp-tbl td {
  padding: 10px 6px;
  text-align: center;
  border-bottom: 1px solid var(--mmd-rule);
  font-size: 14px;
  word-wrap: break-word;
  line-height: 1.3;
}
.cmp-tbl td:first-child {
  text-align: left;
  padding-left: 12px;
  font-weight: 500;
  color: var(--mmd-text);
  font-size: 13px;
}
.cmp-tbl td.on {
  color: var(--mmd-green);
  font-size: 17px;
  font-weight: 800;
}
.cmp-tbl td.off {
  color: var(--mmd-rule);
  font-size: 15px;
}
.cmp-tbl .hi-col {
  background: rgba(31, 130, 224, 0.06);
}
.cmp-cta {
  text-align: center;
}
@media (max-width: 520px) {
  .cmp-tbl {
    font-size: 12px;
  }
  .cmp-tbl th {
    padding: 8px 3px;
    font-size: 10px;
    letter-spacing: -0.01em;
  }
  .cmp-tbl th:first-child {
    padding-left: 8px;
    width: 40%;
  }
  .cmp-tbl td {
    padding: 9px 3px;
    font-size: 12px;
  }
  .cmp-tbl td:first-child {
    padding-left: 8px;
    font-size: 11px;
    line-height: 1.25;
  }
  .cmp-tbl td.on {
    font-size: 14px;
  }
  .cmp-tbl td.off {
    font-size: 13px;
  }
}

/* ========== SECTION 14 — INGREDIENTS ========== */
.ing {
  padding: 56px 18px;
  background: var(--mmd-band);
}
.ing .inner {
  max-width: 960px;
  margin: 0 auto;
}
.ing h2 {
  text-align: center;
  margin: 0 0 28px;
}
@media (max-width: 767px) {
  .ing h2 {
    text-align: left;
  }
}
/* Compact ingredient tiles (3-up, 120px square) */
.ing-tiles {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 767px) {
  .ing-tiles {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
  }
}
/* Mobile: horizontal card — image left, text right (title may wrap) */
.ing-tile {
  background: #fff;
  border: 1px solid var(--mmd-rule);
  border-radius: 12px;
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 18px;
  text-align: left;
}
.ing-tile img {
  width: 120px;
  height: 120px;
  border-radius: 12px;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}
.ing-tile-body {
  flex: 1;
  min-width: 0;
}
.ing-tile h4 {
  font-family: var(--font-head);
  color: var(--mmd-navy);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 0 0 6px;
}
.ing-tile p {
  font-size: 15px;
  line-height: 1.5;
  color: var(--mmd-body);
  margin: 0;
}
/* Desktop 3-up: stacked, centered, single-line title */
@media (min-width: 767px) {
  .ing-tile {
    display: block;
    padding: 24px 14px;
    text-align: center;
  }
  .ing-tile img {
    margin: 0 auto 14px;
  }
  .ing-tile h4 {
    font-size: clamp(12px, 1.5vw, 16px);
    white-space: nowrap;
  }
  .ing-tile p {
    font-size: 14px;
  }
}
.ing h3.sub {
  text-align: center;
  color: var(--mmd-navy);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 24px 0 16px;
}
.ing-trio {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 760px) {
  .ing-trio {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
  }
}
.ing-card {
  background: #fff;
  border: 1px solid var(--mmd-rule);
  border-radius: 8px;
  padding: 22px 20px 20px;
  position: relative;
}
.ing-card .thumb {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 14px;
}
.ing-card h4 {
  color: var(--mmd-navy);
  font-size: 17px;
  margin-bottom: 4px;
}
.ing-card .fn {
  color: var(--mmd-blue);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.ing-card p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--mmd-text);
  margin: 0;
}

.ing-rc {
  margin-top: 22px;
  background: #fff;
  border: 1px solid var(--mmd-rule);
  border-radius: 8px;
}
.ing-rc summary {
  padding: 18px 20px;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 15px;
  font-weight: 700;
  color: var(--mmd-navy);
  min-height: 56px;
}
.ing-rc summary::-webkit-details-marker {
  display: none;
}
.ing-rc summary::after {
  content: '+';
  font-size: 22px;
  color: var(--mmd-meta);
  font-weight: 400;
}
.ing-rc[open] summary::after {
  content: '−';
}
.ing-rc summary .lead-txt {
  font-weight: 500;
  color: var(--mmd-meta);
  font-size: 13px;
  display: block;
  margin-top: 4px;
}
.ing-rc .body {
  padding: 0 20px 20px;
}
.ing-rc .body ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
@media (min-width: 700px) {
  .ing-rc .body ul {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
}
.ing-rc .body li {
  padding: 12px 14px;
  background: var(--mmd-pale);
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.5;
}
.ing-rc .body li b {
  color: var(--mmd-navy);
}

/* ========== SECTION 15 — FAQ ========== */
.faq {
  padding: 56px 18px;
}
.faq .inner {
  max-width: 820px;
  margin: 0 auto;
}
.faq h2 {
  text-align: center;
  font-family: var(--font-head);
  margin-bottom: 28px;
}
.faq details {
  background: #fff;
  border: 1px solid var(--mmd-rule);
  border-radius: 8px;
  margin-bottom: 10px;
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 20px;
  font-size: 15px;
  font-weight: 600;
  color: var(--mmd-navy);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 56px;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '+';
  font-size: 22px;
  color: var(--mmd-meta);
  font-weight: 400;
  flex-shrink: 0;
}
.faq details[open] summary::after {
  content: '−';
}
.faq .body {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--mmd-text);
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq .body-inner {
  padding: 0 20px 18px;
}
.faq .body strong {
  color: var(--mmd-navy);
}

/* ========== SECTION 17 — STICKY FOOTER CTA ========== */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 45;
  background: var(--mmd-navy);
  color: #fff;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  box-shadow: 0 -4px 14px rgba(0, 0, 0, 0.18);
  min-height: 64px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom));
}
.sticky-cta.on {
  transform: translateY(0);
}
.sticky-cta img {
  width: 46px;
  height: 46px;
  border-radius: 4px;
  background: #fff;
  padding: 2px;
  flex-shrink: 0;
  object-fit: contain;
}
.sticky-cta .info {
  flex: 1;
  min-width: 0;
  line-height: 1.25;
}
.sticky-cta .info b {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: block;
}
.sticky-cta .info .r {
  color: var(--mmd-yellow);
  font-size: 12px;
  letter-spacing: 0.5px;
}
.sticky-cta .info .r small {
  color: rgba(255, 255, 255, 0.7);
  font-size: 11px;
  margin-left: 4px;
}
.sticky-cta .btn {
  background: var(--mmd-yellow);
  color: var(--mmd-navy);
  padding: 11px 18px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.sticky-cta .btn:hover {
  background: #e8c25a;
}

/* ========== FOOTER ========== */
footer {
  background: #fff;
  padding: 24px 18px 32px;
  text-align: center;
  font-size: 12px;
  color: var(--mmd-meta);
  line-height: 1.6;
}
footer .dis {
  max-width: 780px;
  margin: 0 auto 12px;
  font-style: italic;
}
footer .legal a {
  color: var(--mmd-meta);
  text-decoration: underline;
  margin: 0 6px;
}
/* Spacer in normal flow below footer — height matches the sticky bar's actual rendered height (set via JS --sticky-h).
       Fallback covers first paint before JS fires: 120px desktop, more on iOS with home indicator. */
.sticky-spacer {
  display: block;
  height: var(--sticky-h, max(120px, calc(90px + env(safe-area-inset-bottom))));
  pointer-events: none;
}

/* ========== v3 additions ========== */

/* Hero benefit bullets */
.buyer ul.benefits {
  list-style: none;
  margin: 20px 0 18px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.buyer ul.benefits li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 16px;
  line-height: 1.4;
  color: var(--mmd-body);
}
.buyer ul.benefits .bft-check {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--mmd-cyan);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.buyer ul.benefits .bft-check svg {
  width: 17px;
  height: 17px;
}

/* Trust grid (3-col on desktop, stacked on mobile) */
.trust-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin: 14px 0 10px;
}
.trust-grid .t-item {
  text-align: center;
  padding: 8px 4px;
  font-size: 11px;
  color: var(--mmd-meta);
  line-height: 1.35;
}
.trust-grid .t-ico {
  display: block;
  font-size: 20px;
  margin-bottom: 4px;
}
.trust-grid .t-lbl {
  display: block;
  font-weight: 600;
}
@media (max-width: 480px) {
  .trust-grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 4px;
  }
  .trust-grid .t-item {
    font-size: 10.5px;
    padding: 6px 2px;
  }
  .trust-grid .t-ico {
    font-size: 18px;
  }
}

/* Guarantee strip 3rd line */
.g-strip p .timeline-note {
  display: block;
  color: var(--mmd-blue);
  font-size: 13px;
  font-weight: 600;
  margin-top: 6px;
  font-style: normal;
}

/* Press logo strip */
.as-seen-strip {
  background: #fff;
  padding: 22px 18px;
  text-align: center;
  border-top: 1px solid var(--mmd-rule);
  border-bottom: 1px solid var(--mmd-rule);
}
.as-seen-strip .label {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mmd-meta);
  font-weight: 700;
  margin: 0 0 14px;
}
.as-seen-strip .logos {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
  list-style: none;
}
.as-seen-strip .logos li {
  flex: 0 0 auto;
  margin: 0;
}
.as-seen-strip .logo {
  display: block;
  height: auto;
  margin: 0 auto;
}
.as-seen-strip .logo-1 { width: 150px; }
.as-seen-strip .logo-2 { width: 100px; }
.as-seen-strip .logo-3 { width: 145px; }
.as-seen-strip .logo-4 { width: 85px; }
.as-seen-strip .logo-5 { width: 95px; }
.as-seen-strip .logo-6 { width: 95px; }
.as-seen-strip .marquee {
  display: none;
  overflow: hidden;
  flex-wrap: nowrap;
  width: 100%;
}
.as-seen-strip .marquee-track {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  flex-shrink: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  animation: as-seen-marquee 20s linear infinite;
}
.as-seen-strip .marquee-track li {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
}
@keyframes as-seen-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-100%); }
}
@media (max-width: 767px) {
  .as-seen-strip { padding: 18px 0 22px; }
  .as-seen-strip .label { font-size: 10px; margin: 0 0 10px; }
  .as-seen-strip .desk-only { display: none; }
  .as-seen-strip .mob-only { display: flex; }
}

/* B&A card timeline stamps */
.ba8-body .when {
  color: var(--mmd-blue);
  font-size: 12px;
  font-weight: 600;
  margin: 6px 0 0;
  letter-spacing: 0.02em;
}

/* Zone divider outlined CTA */
.cta-outline {
  background: #fff;
  color: var(--mmd-blue);
  border: 2px solid var(--mmd-blue);
  padding: 12px 26px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  transition: all 0.15s;
}
.cta-outline:hover {
  background: var(--mmd-blue-soft);
  color: var(--mmd-blue-dark);
}

/* ========== TRANSFORMATION TIMELINE ========== */
.tl {
  padding: 64px 18px;
  background: var(--mmd-navy);
}
.tl .inner {
  max-width: 1100px;
  margin: 0 auto;
}
.tl h2 {
  font-family: var(--font-head);
  color: #fff;
  text-align: center;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.015em;
  font-size: clamp(28px, 5.4vw, 44px);
  margin: 0;
  text-wrap: balance;
}
.tl .sub {
  text-align: center;
  color: #aebfd2;
  font-size: clamp(17px, 2.3vw, 21px);
  line-height: 1.5;
  max-width: 760px;
  margin: 16px auto 0;
}
.tl-track {
  list-style: none;
  padding: 0;
  margin: 36px 0 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 900px) {
  .tl-track {
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    position: relative;
  }
  .tl-track::before {
    content: '';
    position: absolute;
    top: 22px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: var(--mmd-blue);
    opacity: 0.3;
    z-index: 0;
  }
}
.tl-step {
  position: relative;
  text-align: center;
}
.tl-node {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--mmd-blue);
  color: #fff;
  font-weight: 700;
  font-size: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  position: relative;
  z-index: 1;
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(31, 130, 224, 0.3);
}
.tl-card {
  background: #fff;
  border: 1px solid var(--mmd-rule);
  border-radius: 8px;
  padding: 16px 14px;
  text-align: left;
}
@media (min-width: 900px) {
  .tl-card {
    text-align: center;
  }
}
.tl-when {
  color: var(--mmd-blue);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  margin: 0 0 4px;
}
.tl-card h4 {
  font-family: Georgia, serif;
  color: var(--mmd-navy);
  font-size: 15px;
  margin: 0 0 6px;
}
.tl-card p {
  font-size: 13px;
  line-height: 1.5;
  color: var(--mmd-text);
  margin: 0;
}

/* Day-by-day milestones — centered vertical timeline (V40-style) */
.dbd {
  margin: 44px auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.dbd-row {
  width: 100%;
  max-width: 620px;
  text-align: center;
}
.dbd-row:not(:last-child)::after {
  content: '';
  display: block;
  width: 1px;
  height: 56px;
  margin: 22px auto;
  background: rgba(255, 198, 51, 0.4);
}
.dbd-day {
  font-family: var(--font-head);
  color: var(--mmd-yellow);
  font-weight: 800;
  font-size: clamp(28px, 5vw, 40px);
  line-height: 1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.dbd-body h4 {
  font-family: var(--font-head);
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 8px;
}
.dbd-body p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 15px;
  line-height: 1.6;
  margin: 0 auto;
  max-width: 560px;
}

.tl-callout {
  background: #fff;
  border-radius: 16px;
  padding: 28px 32px;
  margin: 40px auto 0;
  max-width: 620px;
}
.tl-callout h3 {
  font-family: var(--font-head);
  color: var(--mmd-navy);
  font-weight: 700;
  font-size: 22px;
  text-align: center;
  margin: 0 0 10px;
}
.tl-callout p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--mmd-body);
  margin: 0;
}

/* ========== GUARANTEE MODULE ========== */
.gm {
  padding: 40px 18px;
  background: var(--mmd-band);
}
.gm .inner {
  max-width: 1000px;
  margin: 0 auto;
}
.gm-seal {
  display: block;
  margin: 0 auto 16px;
}
.gm h2 {
  text-align: center;
  font-size: clamp(22px, 3.4vw, 32px);
  margin: 0 0 24px;
}
.gm-single {
  max-width: 560px;
  margin: 0 auto;
}
.gm-single .gm-card {
  padding: 28px 26px;
}
.gm-single .gm-card h4 {
  font-size: 18px;
}
.gm-single .gm-card p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--mmd-body);
}
.gm-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 720px) {
  .gm-grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 18px;
  }
}
.gm-card {
  background: #fff;
  border: 1px solid var(--mmd-rule);
  border-radius: 8px;
  padding: 20px 20px;
  text-align: left;
}
.gm-ico {
  font-size: 32px;
  margin-bottom: 8px;
}
.gm-card h4 {
  color: var(--mmd-navy);
  font-size: 15px;
  margin-bottom: 6px;
  text-align: left;
}
.gm-card p {
  font-size: 13px;
  line-height: 1.55;
  color: var(--mmd-meta);
  margin: 0;
  text-align: left;
}

/* ========== MOBILE-FIRST FINE-TUNING (primary traffic source) ========== */
@media (max-width: 960px) {
  /* Hero: stack image on top (55vh cap) then pricing immediately below */
  .hero {
    gap: 16px;
    padding: 16px 16px 24px;
  }
  .gal .main {
    aspect-ratio: 1/1;
    max-height: 52vh;
  }
  .buyer h1 {
    font-size: 28px;
    margin-bottom: 2px;
  }
  .buyer .hook {
    font-size: 15px;
  }
}
@media (max-width: 420px) {
  h1 {
    font-size: 24px;
  }
  .buyer h1 {
    font-size: 24px;
  }
  .section {
    padding: 36px 14px;
  }
  .hero {
    padding: 14px 14px 22px;
  }
  .tl {
    padding: 44px 14px;
  }
  .gm {
    padding: 32px 14px;
  }
  .gm h2 {
    font-size: 20px;
  }
  .tl-callout h3 {
    font-size: 18px;
  }
  .drj {
    padding: 40px 16px;
  }
  .drj-portrait {
    width: 132px;
    height: 132px;
  }
  .fo-inner {
    padding: 28px 18px;
  }
}

/* ========== PERFORMANCE + A11Y ==========
       content-visibility:auto tells the browser to skip layout+paint for
       offscreen sections until they scroll near the viewport. Biggest win
       on long pages like this PDP — cuts initial Total Blocking Time
       significantly. Supported: Chrome, Safari 18+, Firefox 125+.
       contain-intrinsic-size reserves vertical space so scrollbars don't
       jump as sections hydrate.
    */
.ba8-wrap,
.rev-grid,
.vg,
.drj-inner,
.sci .inner,
.gvg .inner,
.ribose .inner,
.how .inner,
.tl .inner,
.cmp .inner,
.ing .inner,
.faq .inner,
.gm .inner,
.fo-inner,
.tr-grid,
.zone-grid {
  content-visibility: auto;
  contain-intrinsic-size: 600px;
}
/* Cheaper: layout/paint containment on repeating cards */
.ba8-card,
.rev-card,
.vt,
.tl-card,
.gm-card,
.ing-card,
.how-m,
.cmp-pillar,
.sci-step,
.t8-card {
  contain: layout paint;
}
/* Honor reduced-motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
/* Larger tap targets on all interactive elements */
.tog button,
.cta,
.tier,
.ing-rc summary,
.faq summary,
.cta-outline,
.inline-cta,
.gm-card {
  min-height: 44px;
}

/* ========== ALIGNMENT POLISH ==========
       Ensures consistent centering/spacing across every section on both
       desktop and mobile, and prevents wide-desktop stretching.
    */

/* Hero buyer column: cap reading width on very wide screens */
@media (min-width: 1200px) {
  .buyer {
    max-width: 560px;
  }
}

/* Trust grid: true center alignment on each item */
.trust-grid .t-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

/* Pay row: ensure it reads as a centered line, not left-creep */
.pay-row,
.buyer .pay-row {
  text-align: center;
  margin-top: 6px;
}

/* Section level default: all .section inner containers center on the page */
.section {
  text-align: left;
}
.section h2,
.section > h2.center,
.section > .sub {
  text-align: center;
}

/* Timeline: vertical alignment of node circle + card on mobile */
@media (max-width: 899px) {
  .tl-step {
    display: grid;
    grid-template-columns: 56px 1fr;
    align-items: start;
    gap: 14px;
  }
  .tl-node {
    margin: 4px 0 0;
  }
  .tl-card {
    text-align: left;
  }
}

/* Guarantee module: equal-height cards, centered content */
.gm-card {
  display: flex;
  flex-direction: column;
  align-items: left;
  justify-content: flex-start;
}

/* Final offer: ensure the whole inner card centers, but tier/toggle rows
       remain left-aligned within their max-width constraint */
.final-offer .fo-inner h2,
.final-offer .fo-inner .recap,
.final-offer .fo-inner .pay-row,
.final-offer .fo-inner .cta {
  text-align: center;
}
.final-offer .fo-inner .tog,
.final-offer .fo-inner .tiers,
.final-offer .fo-inner .total-row,
.final-offer .fo-inner .trust-grid {
  text-align: left;
}

/* Zone-shift divider: equalize card heights + center-align inner content */
.zone-col > div {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Inline CTA: always center on single-column layouts */
.ba8-mid-cta,
.tl-cta,
.cmp-cta {
  text-align: center;
}

/* Video grid: center align play overlay and label */
.vt {
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.vt .lbl {
  width: 100%;
  text-align: center;
}

/* Safety: no element should cause horizontal overflow */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

