/* ==========================================================================
   LumaSkin DTC Product Landing Page
   Mobile-first, hand-coded CSS with strict 3-size body typography discipline
   ========================================================================== */

:root {
  /* Color palette: cool mineral porcelain, deep marine ink, sunlit vitamin C */
  --bg: #f8fafc;
  --surface: #eef2f6;
  --surface-elevated: #ffffff;
  --surface-sunlit: #fff6eb;
  --ink: #0d1f2d;
  --ink-soft: #1a3347;
  --text: #0d1f2d;
  --text-muted: #475569;
  --text-on-dark: #f8fafc;
  --text-on-dark-muted: #cbd5e1;
  --accent: #c2410c;
  --accent-hover: #9a3412;
  --accent-sun: #ffb84d;
  --accent-tint: #fff3e6;
  --border: #d7e0e8;
  --border-dark: rgba(248, 250, 252, 0.16);

  /* Typography: 1 sans family + exempt wordmark/hero + strict 3 body sizes */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --text-wordmark: 1.375rem;
  --text-hero: clamp(2.5rem, 6.2vw, 4.75rem);
  --text-heading: clamp(1.625rem, 3.1vw, 2.375rem);
  --text-body: 1rem;
  --text-sm: 0.875rem;

  /* Spacing & geometry */
  --container-max: 1120px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Reset & base */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-body);
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

body.has-drawer-open {
  overflow: hidden;
}

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

button,
input {
  font: inherit;
  color: inherit;
}

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

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd {
  margin: 0;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 1000;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: var(--text-on-dark);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  font-weight: 600;
  transition: top 160ms var(--ease-out);
}

.skip-link:focus {
  top: 0.75rem;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ==========================================================================
   Announcement Bar
   ========================================================================== */
.announcement-bar {
  background-color: var(--ink);
  color: var(--text-on-dark);
  padding-block: 0.55rem;
}

.announcement-bar__inner {
  text-align: center;
}

.announcement-bar__text {
  font-size: var(--text-sm);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.005em;
}

/* ==========================================================================
   Site Header (seamless over hero canvas, crisp separation on scroll)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(248, 250, 252, 0.72);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background-color 200ms var(--ease-out), border-color 200ms var(--ease-out), box-shadow 200ms var(--ease-out);
}

.site-header.is-scrolled {
  background-color: rgba(248, 250, 252, 0.94);
  border-bottom-color: var(--border);
  box-shadow: 0 4px 18px rgba(13, 31, 45, 0.05);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 4rem;
}

.brand-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: var(--text-wordmark);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink);
  flex-shrink: 0;
}

.brand-wordmark--light {
  color: var(--text-on-dark);
}

.brand-wordmark__icon {
  flex-shrink: 0;
}

.site-nav {
  display: none;
  align-items: center;
  gap: 1.75rem;
}

.site-nav a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  transition: color 160ms var(--ease-out);
}

.site-nav a:hover {
  color: var(--ink);
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.header-rating {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: var(--text-sm);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--ink);
  transition: color 160ms var(--ease-out);
}

.header-rating:hover {
  color: var(--accent);
}

.header-rating__score {
  font-weight: 700;
}

.header-rating__count {
  color: var(--text-muted);
}

.star-icon--single {
  color: var(--accent);
  flex-shrink: 0;
}

.cart-trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 2.5rem;
  padding: 0.4rem 0.7rem;
  background-color: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--ink);
  transition: border-color 160ms var(--ease-out), background-color 160ms var(--ease-out), transform 160ms var(--ease-out);
}

.cart-trigger:hover {
  border-color: var(--ink);
  background-color: var(--surface);
}

.cart-trigger:active {
  transform: scale(0.97);
}

.cart-trigger__count {
  font-size: var(--text-sm);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

/* ==========================================================================
   Hero: Monumental Centered Display + Layered Optical Bottle Workbench
   ========================================================================== */
.hero {
  position: relative;
  padding-top: clamp(1.25rem, 2.8vw, 2.25rem);
  padding-bottom: clamp(2.75rem, 5.5vw, 4.5rem);
  overflow: hidden;
}

.hero__prism {
  position: absolute;
  inset: -4.5rem 0 auto 0;
  height: 36rem;
  pointer-events: none;
  background:
    radial-gradient(62% 72% at 50% 8%, rgba(255, 212, 146, 0.45) 0%, rgba(255, 236, 206, 0.24) 45%, rgba(248, 250, 252, 0) 78%),
    linear-gradient(180deg, rgba(238, 244, 249, 0.65) 0%, rgba(248, 250, 252, 0) 100%);
  z-index: 0;
}

.hero__inner {
  position: relative;
  z-index: 1;
}

.hero__headline-block {
  max-width: 58rem;
  margin-inline: auto;
  text-align: center;
  margin-bottom: clamp(1.25rem, 2.5vw, 1.85rem);
}

.hero__title {
  font-size: var(--text-hero);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.04em;
  color: var(--ink);
  text-wrap: balance;
}

.hero__subtitle {
  max-width: 48ch;
  margin: 0.85rem auto 0;
  font-size: var(--text-body);
  line-height: 1.55;
  color: var(--text-muted);
}

/* Wide interactive product + buy workbench */
.hero-stage {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.35rem;
  background-color: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1rem, 2.6vw, 2rem);
  box-shadow: 0 24px 60px -28px rgba(13, 31, 45, 0.14);
}

.hero-stage__visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 0.5rem 0.65rem;
  border-radius: var(--radius-md);
  background: radial-gradient(75% 75% at 50% 48%, #fff6e8 0%, #f3f6fa 74%, #eef2f6 100%);
}

.bottle-stage-svg {
  width: min(100%, 260px);
  height: auto;
  overflow: visible;
}

/* Smooth GPU-accelerated bundle bottle count staging */
.bottle-slot {
  transform-origin: 200px 350px;
  transition: transform 320ms var(--ease-out), opacity 240ms var(--ease-out);
}

.hero-stage__visual[data-qty="1"] .bottle-slot--center {
  transform: translate(0, 0) scale(1);
  opacity: 1;
}

.hero-stage__visual[data-qty="1"] .bottle-slot--left,
.hero-stage__visual[data-qty="1"] .bottle-slot--right {
  transform: translate(0, 12px) scale(0.8);
  opacity: 0;
}

.hero-stage__visual[data-qty="2"] .bottle-slot--center {
  transform: translate(-34px, 4px) scale(0.96);
  opacity: 1;
}

.hero-stage__visual[data-qty="2"] .bottle-slot--right {
  transform: translate(52px, -8px) scale(0.88);
  opacity: 0.96;
}

.hero-stage__visual[data-qty="2"] .bottle-slot--left {
  transform: translate(-18px, 10px) scale(0.78);
  opacity: 0;
}

.hero-stage__visual[data-qty="3"] .bottle-slot--center {
  transform: translate(0, 8px) scale(0.96);
  opacity: 1;
}

.hero-stage__visual[data-qty="3"] .bottle-slot--left {
  transform: translate(-84px, -10px) scale(0.84);
  opacity: 0.94;
}

.hero-stage__visual[data-qty="3"] .bottle-slot--right {
  transform: translate(84px, -10px) scale(0.84);
  opacity: 0.94;
}

.hero-stage__caption {
  margin-top: 0.35rem;
  font-size: var(--text-sm);
  color: var(--text-muted);
  text-align: center;
  font-variant-numeric: tabular-nums;
}

/* Purchase workbench */
.buy-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.25rem;
}

.buy-panel__meta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.rating-summary {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  font-size: var(--text-sm);
  color: var(--text-muted);
  width: fit-content;
}

.rating-summary strong {
  color: var(--ink);
  font-weight: 700;
}

.stars {
  display: inline-flex;
  align-items: center;
  gap: 0.12rem;
  color: var(--accent);
}

.star--muted {
  color: #cbd5e1;
}

.price-block {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.65rem;
  font-variant-numeric: tabular-nums;
}

.price-block__current {
  font-size: var(--text-heading);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.price-block__compare {
  font-size: var(--text-body);
  font-weight: 500;
  color: var(--text-muted);
}

.price-block__savings {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--accent);
}

.shipping-status {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--ink-soft);
}

/* Bundle selector (semantic radiogroup) */
.bundle-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.bundle-fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.bundle-legend {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.625rem;
}

.bundle-option {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.85rem;
  padding: 0.9rem 1rem;
  background-color: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: border-color 160ms var(--ease-out), background-color 160ms var(--ease-out);
}

.bundle-option:hover {
  border-color: #94a3b8;
}

.bundle-option.is-selected {
  background-color: var(--surface-sunlit);
  border-color: var(--ink);
}

.bundle-option__input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.bundle-option__input:focus-visible + .bundle-option__radio {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.bundle-option__radio {
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  border: 2px solid #94a3b8;
  background-color: var(--surface-elevated);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 160ms var(--ease-out);
}

.bundle-option__radio::after {
  content: '';
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background-color: var(--accent);
  transform: scale(0);
  transition: transform 160ms var(--ease-out);
}

.bundle-option.is-selected .bundle-option__radio {
  border-color: var(--ink);
}

.bundle-option.is-selected .bundle-option__radio::after {
  transform: scale(1);
}

.bundle-option__info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.bundle-option__title {
  font-size: var(--text-body);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}

.bundle-option__note {
  margin-left: 0.4rem;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--accent);
}

.bundle-option__sub {
  font-size: var(--text-sm);
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.bundle-option__pricing {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-variant-numeric: tabular-nums;
}

.bundle-option__price {
  font-size: var(--text-body);
  font-weight: 800;
  color: var(--ink);
}

.bundle-option__compare {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

/* Primary CTA Button */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 3.35rem;
  padding: 0.85rem 1.5rem;
  background-color: var(--accent);
  color: #ffffff;
  border: 0;
  border-radius: var(--radius-md);
  font-size: var(--text-body);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: background-color 180ms var(--ease-out), transform 140ms var(--ease-out);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
}

.btn-primary:active {
  transform: scale(0.985);
}

.buy-panel__reassurance {
  font-size: var(--text-sm);
  color: var(--text-muted);
  text-align: center;
}

/* ==========================================================================
   Shared Section Typography & Rhythm
   ========================================================================== */
.section {
  padding-block: clamp(3.5rem, 7vw, 5.75rem);
}

.section-header {
  max-width: 44rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section-heading {
  font-size: var(--text-heading);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-wrap: balance;
}

.section-heading--light {
  color: var(--text-on-dark);
}

.section-lead {
  margin-top: 0.9rem;
  max-width: 60ch;
  font-size: var(--text-body);
  color: var(--text-muted);
}

.item-heading {
  font-size: var(--text-body);
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
}

.item-body {
  font-size: var(--text-body);
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 62ch;
}

/* ==========================================================================
   Section 1: Benefits (Asymmetric Editorial Split)
   ========================================================================== */
.benefits {
  border-top: 1px solid var(--border);
}

.benefits__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 4.5vw, 4rem);
}

.benefits__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}

.benefit-item {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--border);
}

.benefit-item__icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-sm);
  background-color: var(--accent-tint);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.25rem;
}

/* ==========================================================================
   Section 2: Results / Stats Band (Full-Bleed Deep Marine Ink)
   ========================================================================== */
.stats-band {
  background-color: var(--ink);
  color: var(--text-on-dark);
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: clamp(2rem, 4vw, 3rem);
}

.stat-item {
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-dark);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.stat-item__value {
  font-size: var(--text-heading);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--accent-sun);
}

.stat-item__track {
  width: 100%;
  height: 3px;
  background-color: rgba(248, 250, 252, 0.16);
  border-radius: 2px;
  overflow: hidden;
}

.stat-item__fill {
  --fill-scale: 1;
  display: block;
  width: 100%;
  height: 100%;
  background-color: var(--accent-sun);
  transform-origin: left center;
  transform: scaleX(var(--fill-scale));
  transition: transform 650ms var(--ease-out);
}

.stats-band.is-awaiting-reveal .stat-item__fill {
  transform: scaleX(0);
}

.stat-item__desc {
  font-size: var(--text-body);
  color: var(--text-on-dark);
  line-height: 1.55;
}

.stats-band__footnote {
  margin-top: clamp(2rem, 4vw, 3rem);
  font-size: var(--text-sm);
  color: var(--text-on-dark-muted);
  max-width: 65ch;
}

/* ==========================================================================
   Section 3: Ingredients Highlights & Formula Sheet
   ========================================================================== */
.ingredients__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}

.ingredient-list {
  display: flex;
  flex-direction: column;
}

.ingredient-row {
  padding-block: 1.35rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.ingredient-row:last-child {
  border-bottom: 1px solid var(--border);
}

.ingredient-row__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.4rem 1rem;
}

.ingredient-row__role {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--accent);
}

.formula-sheet {
  background-color: var(--surface);
  border-radius: var(--radius-lg);
  padding: clamp(1.35rem, 3vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.formula-facts {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border);
}

.formula-facts__row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.75rem;
  border-bottom: 1px solid var(--border);
  font-size: var(--text-sm);
}

.formula-facts__row dt {
  color: var(--text-muted);
  font-weight: 500;
}

.formula-facts__row dd {
  color: var(--ink);
  font-weight: 600;
  text-align: right;
}

.inci-details {
  padding-top: 0.25rem;
}

.inci-details__summary {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.inci-details__summary::-webkit-details-marker {
  display: none;
}

.inci-details__summary::after {
  content: '+';
  font-weight: 700;
  color: var(--accent);
}

.inci-details[open] .inci-details__summary::after {
  content: '-';
}

.inci-details__copy {
  margin-top: 0.75rem;
  font-size: var(--text-sm);
  line-height: 1.65;
  color: var(--text-muted);
}

/* ==========================================================================
   Section 4: How to Use (3-Step Morning Ritual)
   ========================================================================== */
.ritual {
  background-color: var(--surface);
}

.steps-grid {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.step-item {
  background-color: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.step-item__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.35rem;
}

.step-item__num {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--accent);
}

.step-item__icon {
  color: var(--ink);
}

/* ==========================================================================
   Section 5: Comparison Table vs. Generic Serums
   ========================================================================== */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background-color: var(--surface-elevated);
}

.compare-table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
  text-align: left;
}

.compare-table thead th {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--text-muted);
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background-color: var(--bg);
}

.compare-table thead th.compare-table__featured {
  color: var(--ink);
  background-color: var(--surface-sunlit);
  border-top: 3px solid var(--accent);
}

.compare-table tbody th,
.compare-table tbody td {
  padding: 1.05rem 1.25rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  font-size: var(--text-body);
  line-height: 1.5;
}

.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td {
  border-bottom: 0;
}

.compare-table tbody th {
  font-weight: 700;
  color: var(--ink);
  width: 24%;
}

.compare-table tbody td {
  position: relative;
  color: var(--text-muted);
  width: 38%;
  padding-left: 2.75rem;
}

.compare-table tbody td.compare-table__featured {
  background-color: var(--surface-sunlit);
  color: var(--ink);
  font-weight: 500;
}

.cell-mark {
  position: absolute;
  left: 1.15rem;
  top: 1.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cell-mark--yes {
  color: var(--accent);
}

.cell-mark--no {
  color: #94a3b8;
}

/* ==========================================================================
   Section 6: Customer Reviews (Verified Proof + Interactive Topic Filter)
   ========================================================================== */
.reviews {
  background-color: var(--surface);
}

.reviews__header {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: clamp(1.75rem, 3.5vw, 2.5rem);
}

.reviews__aggregate {
  margin-top: 0.6rem;
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: var(--text-sm);
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.reviews__aggregate strong {
  color: var(--ink);
}

/* Connected segmented filter control (non-button cluster) */
.filter-segment {
  display: inline-flex;
  flex-wrap: wrap;
  background-color: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.25rem;
  gap: 0.2rem;
  width: fit-content;
}

.filter-segment__tab {
  border: 0;
  background: transparent;
  padding: 0.45rem 0.85rem;
  border-radius: 6px;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: background-color 160ms var(--ease-out), color 160ms var(--ease-out);
}

.filter-segment__tab:hover {
  color: var(--ink);
}

.filter-segment__tab.is-active {
  background-color: var(--ink);
  color: var(--text-on-dark);
}

.reviews__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem;
}

.review-card {
  background-color: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.review-card[hidden] {
  display: none;
}

.review-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.review-card__date {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.review-card__author {
  margin-top: auto;
  padding-top: 0.9rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: var(--text-sm);
}

.review-card__name {
  font-weight: 600;
  color: var(--ink);
}

.verified-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--accent);
}

/* ==========================================================================
   Section 7: 60-Day Money-Back Guarantee Block
   ========================================================================== */
.guarantee__box {
  background-color: var(--surface-sunlit);
  border: 1px solid #f0d7bd;
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: center;
}

.guarantee__content {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.guarantee__points {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.guarantee__points li {
  position: relative;
  padding-left: 1.25rem;
  font-size: var(--text-body);
  font-weight: 600;
  color: var(--ink);
}

.guarantee__points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background-color: var(--accent);
}

/* ==========================================================================
   Section 8: FAQ Accordion
   ========================================================================== */
.faq {
  border-top: 1px solid var(--border);
}

.faq__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.75rem, 4vw, 3.5rem);
}

.accordion {
  border-top: 1px solid var(--border);
}

.accordion__item {
  border-bottom: 1px solid var(--border);
}

.accordion__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.2rem;
  background: transparent;
  border: 0;
  text-align: left;
  font-size: var(--text-body);
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  transition: color 160ms var(--ease-out);
}

.accordion__trigger:hover {
  color: var(--accent);
}

.accordion__chevron {
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform 200ms var(--ease-out), color 160ms var(--ease-out);
}

.accordion__trigger[aria-expanded="true"] .accordion__chevron {
  transform: rotate(180deg);
  color: var(--accent);
}

.accordion__panel-inner {
  padding-bottom: 1.25rem;
}

/* ==========================================================================
   Section 9: Final Buy Section
   ========================================================================== */
.final-buy {
  background: linear-gradient(180deg, var(--bg) 0%, var(--surface) 100%);
  padding-bottom: clamp(4rem, 7vw, 6rem);
}

.final-buy__stage {
  background-color: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.75rem);
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: center;
}

.final-buy__copy {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.final-buy__price {
  margin-top: 0.4rem;
}

/* ==========================================================================
   Footer with Disclaimers
   ========================================================================== */
.site-footer {
  background-color: var(--ink);
  color: var(--text-on-dark);
  padding-top: clamp(3rem, 5vw, 4rem);
  padding-bottom: calc(clamp(3rem, 5vw, 4rem) + 4.75rem);
}

.site-footer__top {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-dark);
}

.site-footer__tagline {
  margin-top: 0.6rem;
  font-size: var(--text-sm);
  color: var(--text-on-dark-muted);
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.5rem;
}

.site-footer__nav a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-on-dark-muted);
  transition: color 160ms var(--ease-out);
}

.site-footer__nav a:hover {
  color: var(--text-on-dark);
}

.site-footer__disclaimers {
  margin-top: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--text-on-dark-muted);
  max-width: 72ch;
}

.site-footer__disclaimers strong {
  color: var(--text-on-dark);
}

.site-footer__copyright {
  margin-top: 0.5rem;
  color: #94a3b8;
}

/* ==========================================================================
   Mobile Sticky Buy Bar
   ========================================================================== */
.sticky-buy-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 0.75rem var(--gutter) calc(0.75rem + env(safe-area-inset-bottom));
  background-color: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--border);
  box-shadow: 0 -10px 30px rgba(13, 31, 45, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transform: translateY(115%);
  transition: transform 220ms var(--ease-out);
}

.sticky-buy-bar.is-visible {
  transform: translateY(0);
}

.sticky-buy-bar__info {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  font-variant-numeric: tabular-nums;
}

.sticky-buy-bar__bundle {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-muted);
}

.sticky-buy-bar__price {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  font-size: var(--text-body);
}

.sticky-buy-bar__price strong {
  font-weight: 800;
  color: var(--ink);
}

.sticky-buy-bar__price s {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.sticky-buy-bar__btn {
  width: auto;
  min-width: 9.75rem;
  min-height: 2.9rem;
  padding: 0.65rem 1.25rem;
}

/* ==========================================================================
   Slide-Over Cart Drawer (Accessible, No Backend)
   ========================================================================== */
.cart-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background-color: rgba(13, 31, 45, 0.52);
  opacity: 0;
  transition: opacity 220ms var(--ease-out);
}

.cart-backdrop.is-open {
  opacity: 1;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 210;
  width: min(100%, 26rem);
  background-color: var(--surface-elevated);
  display: flex;
  flex-direction: column;
  box-shadow: -16px 0 44px rgba(13, 31, 45, 0.18);
  transform: translateX(100%);
  transition: transform 240ms var(--ease-out);
}

.cart-drawer.is-open {
  transform: translateX(0);
}

.cart-drawer[hidden],
.cart-backdrop[hidden] {
  display: none;
}

.cart-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

.cart-drawer__title {
  font-size: var(--text-body);
  font-weight: 800;
  color: var(--ink);
}

.cart-drawer__close {
  width: 2.35rem;
  height: 2.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background-color: var(--bg);
  color: var(--ink);
  cursor: pointer;
  transition: border-color 160ms var(--ease-out), background-color 160ms var(--ease-out);
}

.cart-drawer__close:hover {
  border-color: var(--ink);
  background-color: var(--surface);
}

.cart-shipping {
  padding: 0.85rem 1.25rem;
  background-color: var(--surface);
  border-bottom: 1px solid var(--border);
}

.cart-shipping__text {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.45rem;
}

.cart-shipping__track {
  width: 100%;
  height: 5px;
  border-radius: 3px;
  background-color: var(--border);
  overflow: hidden;
}

.cart-shipping__fill {
  display: block;
  width: 100%;
  height: 100%;
  background-color: var(--accent);
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 240ms var(--ease-out);
}

.cart-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem;
}

.cart-empty {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding-block: 2rem;
}

.cart-empty[hidden],
.cart-confirmation[hidden],
.cart-drawer__footer[hidden] {
  display: none;
}

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

.cart-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.cart-item__thumb {
  width: 3.5rem;
  height: 4.25rem;
  border-radius: var(--radius-sm);
  background: radial-gradient(75% 75% at 50% 45%, #fff5e6 0%, #eef2f6 100%);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-item__details {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.cart-item__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}

.cart-item__title {
  font-size: var(--text-body);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}

.cart-item__sub {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.cart-item__remove {
  border: 0;
  background: transparent;
  padding: 0.1rem 0.25rem;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 160ms var(--ease-out);
}

.cart-item__remove:hover {
  color: var(--accent);
}

.cart-item__controls {
  margin-top: 0.35rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background-color: var(--bg);
}

.qty-stepper__btn {
  width: 2rem;
  height: 2rem;
  border: 0;
  background: transparent;
  font-size: var(--text-body);
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
}

.qty-stepper__btn:hover {
  color: var(--accent);
}

.qty-stepper__val {
  min-width: 1.75rem;
  text-align: center;
  font-size: var(--text-sm);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.cart-item__prices {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  font-variant-numeric: tabular-nums;
}

.cart-item__prices strong {
  font-size: var(--text-body);
  font-weight: 800;
  color: var(--ink);
}

.cart-item__prices s {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.cart-confirmation {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.9rem;
  padding-block: 1.25rem;
}

.cart-confirmation__icon {
  color: var(--accent);
}

.cart-drawer__footer {
  padding: 1.15rem 1.25rem calc(1.15rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
  background-color: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.cart-totals {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-variant-numeric: tabular-nums;
}

.cart-totals__row {
  display: flex;
  justify-content: space-between;
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.cart-totals__savings {
  color: var(--accent);
  font-weight: 700;
}

.cart-totals__row--grand {
  padding-top: 0.55rem;
  border-top: 1px solid var(--border);
  font-size: var(--text-body);
  font-weight: 800;
  color: var(--ink);
}

.cart-drawer__note {
  font-size: var(--text-sm);
  color: var(--text-muted);
  text-align: center;
}

/* ==========================================================================
   Responsive Breakpoints (Mobile-First min-width scaling)
   ========================================================================== */
@media (max-width: 359px) {
  .header-rating__count {
    display: none;
  }
}

@media (min-width: 640px) {
  .bottle-stage-svg {
    width: min(100%, 315px);
  }

  .benefits__grid,
  .stats-grid,
  .reviews__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .guarantee__box {
    grid-template-columns: auto 1fr;
    gap: 2.25rem;
  }

  .site-footer__top {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (min-width: 900px) {
  .site-nav {
    display: flex;
  }

  .hero-stage {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 2.25rem;
    align-items: stretch;
  }

  .bottle-stage-svg {
    width: min(100%, 350px);
  }

  .benefits__layout {
    grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
    align-items: start;
  }

  .benefits__intro {
    position: sticky;
    top: 5.5rem;
  }

  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .ingredients__layout {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr);
  }

  .reviews__header {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }

  .reviews__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .faq__layout {
    grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
    align-items: start;
  }

  .final-buy__stage {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  }

  /* Hide mobile sticky buy bar on desktop */
  .sticky-buy-bar {
    display: none;
  }

  .site-footer {
    padding-bottom: clamp(3rem, 5vw, 4rem);
  }
}

/* ==========================================================================
   Reduced Motion Preference
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .stats-band.is-awaiting-reveal .stat-item__fill {
    transform: scaleX(var(--fill-scale, 1));
  }
}
