/* ============================================================
   Biorobic — wellness/ecom UI. Pure CSS, no deps.
   System serif (Iowan Old Style → Palatino → Georgia) + system sans.
   ============================================================ */

/* === TOKENS === */
:root {
  /* surfaces — warm cream, not white */
  --bg: #faf6ee;
  --bg-card: #ffffff;
  --bg-muted: #f0e9d6;
  --bg-soft: #f5eedb;
  --bg-deep: #1f3d2e;

  /* text */
  --fg: #1a1612;
  --fg-muted: #6b5e4f;
  --fg-soft: #8a7d6b;

  /* borders — warm sand */
  --border: #e6dec9;
  --border-soft: #efe9d9;

  /* brand */
  --primary: #1f3d2e;
  --primary-fg: #faf6ee;
  --basil: #2d5a3d;
  --basil-fg: #ffffff;
  --basil-soft: #c8dccc;
  --basil-tint: #e8efe6;
  --ice: #6b9aa3;
  --ice-fg: #ffffff;
  --ice-soft: #c5dae0;
  --ice-tint: #e6eff1;
  --accent: #c97b5a;
  --accent-fg: #ffffff;
  --accent-soft: #f0d6c5;
  --accent-tint: #f5e6dc;

  /* shape — generous radii for wellness feel */
  --radius: 24px;
  --radius-sm: 14px;
  --radius-pill: 999px;

  /* type */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;

  /* shadows — warm, soft, never gray */
  --shadow-sm: 0 2px 6px rgba(45, 40, 30, 0.05);
  --shadow: 0 8px 28px -6px rgba(45, 40, 30, 0.10), 0 2px 6px rgba(45, 40, 30, 0.04);
  --shadow-lg: 0 20px 60px -12px rgba(45, 40, 30, 0.15);

  --container: 1200px;
  --container-sm: 64rem;
  --container-xs: 42rem;
}

[data-theme="dark"] {
  --bg: #14110d;
  --bg-card: #1f1a14;
  --bg-muted: #1a1611;
  --bg-soft: #221c15;
  --bg-deep: #0f0d0a;
  --fg: #f7f1e3;
  --fg-muted: #a39a8b;
  --fg-soft: #7a7164;
  --border: #2e2820;
  --border-soft: #2a241c;
  --primary: #f7f1e3;
  --primary-fg: #1a1612;
  --basil: #8eb89a;
  --basil-fg: #14110d;
  --basil-soft: #2a3c30;
  --basil-tint: #1c2a22;
  --ice: #9cc1c8;
  --ice-fg: #14110d;
  --ice-soft: #2a3a3e;
  --ice-tint: #1c2a2c;
  --accent: #d99878;
  --accent-fg: #14110d;
  --accent-soft: #3d2a20;
  --accent-tint: #2a1d15;
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.30);
  --shadow: 0 8px 28px -6px rgba(0, 0, 0, 0.40), 0 2px 6px rgba(0, 0, 0, 0.20);
  --shadow-lg: 0 20px 60px -12px rgba(0, 0, 0, 0.50);
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  flex-direction: column;
}
img, svg { display: block; max-width: 100%; }
svg { stroke-width: 1.75; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul, ol { list-style: none; }
em { font-style: italic; }
strong { font-weight: 600; }
::selection { background: var(--basil); color: var(--basil-fg); }

/* === LAYOUT === */
.container { max-width: var(--container); margin: 0 auto; padding: 0 1.25rem; width: 100%; }
@media (min-width: 768px) { .container { padding: 0 2rem; } }
main { flex: 1; }
.section { padding: 5rem 0; position: relative; overflow: hidden; }
@media (min-width: 768px) { .section { padding: 7rem 0; } }
.section--hero { padding: 4rem 0 5rem; }
@media (min-width: 768px) { .section--hero { padding: 5rem 0 7rem; } }
.section--basil { background: var(--basil-tint); }
.section--ice { background: var(--ice-tint); }
.section--accent { background: var(--accent-tint); }
.section--cream { background: var(--bg-muted); }
.section--soft { background: var(--bg-soft); }
.section--deep { background: var(--bg-deep); color: var(--bg); }
.section--deep h1, .section--deep h2, .section--deep h3, .section--deep h4 { color: var(--bg); }
.section--deep p, .section--deep .muted { color: color-mix(in srgb, var(--bg) 75%, transparent); }

.section > .container { position: relative; z-index: 1; }

/* === TYPOGRAPHY === */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--fg);
}
h1 { font-size: clamp(2.75rem, 5vw + 1rem, 5rem); line-height: 1.02; letter-spacing: -0.025em; }
h2 { font-size: clamp(2rem, 3vw + 0.75rem, 3.5rem); }
h3 { font-size: 1.5rem; line-height: 1.2; }
h4 { font-size: 1.125rem; font-family: var(--font-sans); font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
p { color: var(--fg-muted); }
.lead { font-size: 1.1875rem; line-height: 1.65; max-width: 38rem; color: var(--fg-muted); }

/* italic accent inside headlines */
h1 em, h2 em { font-family: var(--font-serif); font-style: italic; color: var(--basil); }
[data-theme="dark"] h1 em, [data-theme="dark"] h2 em { color: var(--basil); }

/* eyebrow — serif italic with leading dash, for editorial feel */
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--fg-muted);
  margin-bottom: 1.5rem;
}
.eyebrow::before { content: ""; width: 1.5rem; height: 1px; background: currentColor; opacity: .5; }
.eyebrow:has(.pulse-dot)::before { display: none; }
.eyebrow--basil { color: var(--basil); }
.eyebrow--ice { color: var(--ice); }
.eyebrow--accent { color: var(--accent); }
.eyebrow svg { width: 14px; height: 14px; flex: 0 0 auto; }

.kicker {
  display: inline-block;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--fg-muted);
  margin-bottom: .5rem;
}

/* === HEADER === */
.site-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid var(--border-soft);
}
/* Blur lives on ::before so backdrop-filter is not on .site-header (avoids trapping fixed .mobile-nav). */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  pointer-events: none;
}
.site-header__inner {
  position: relative;
  z-index: 1;
  display: flex; align-items: center; justify-content: space-between; height: 4.5rem;
}
.brand { display: flex; align-items: center; gap: .625rem; }
.brand__mark {
  width: 2rem; height: 2rem;
  background: var(--primary);
  color: var(--primary-fg);
  border-radius: 50%;
  display: grid; place-items: center;
  flex: 0 0 auto;
}
.brand__mark svg { width: 16px; height: 16px; }
.brand > span:not(.brand__mark),
.brand__name {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--fg);
}
.nav { display: none; gap: 2.25rem; font-size: .9375rem; }
@media (min-width: 768px) { .nav { display: flex; } }
.nav a {
  color: var(--fg-muted);
  transition: color .15s ease;
  position: relative;
}
.nav a:hover, .nav a.is-active { color: var(--fg); }
.nav a.is-active::after {
  content: "";
  position: absolute;
  bottom: -1.5rem; left: 50%;
  transform: translateX(-50%);
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--basil);
}
.header-actions { display: flex; align-items: center; gap: .5rem; }
.icon-btn {
  width: 2.5rem; height: 2.5rem;
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--fg);
  transition: background .15s ease;
}
.icon-btn:hover { background: var(--bg-muted); }
.icon-btn svg { width: 18px; height: 18px; }
.menu-toggle { display: grid; }
@media (min-width: 768px) { .menu-toggle { display: none; } }
[data-theme="dark"] .icon-btn .icon-sun { display: block; }
[data-theme="dark"] .icon-btn .icon-moon { display: none; }
.icon-btn .icon-sun { display: none; }
.icon-btn .icon-moon { display: block; }
.header-actions .btn { display: none; }
@media (min-width: 768px) { .header-actions .btn { display: inline-flex; } }

/* Full-screen panel below header */
.mobile-nav {
  position: fixed;
  top: 4.5rem; left: 0; right: 0; bottom: 0;
  background: var(--bg);
  z-index: 49;
  overflow-y: auto;
  padding: 2rem 0 2rem;
  display: none;
  flex-direction: column;
}
.mobile-nav.is-open { display: flex; animation: mobile-nav-in .25s ease; }
@keyframes mobile-nav-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { .mobile-nav.is-open { animation: none; } }
@media (min-width: 768px) { .mobile-nav { display: none !important; } }
.mobile-nav > .container { display: flex; flex-direction: column; flex: 1; }
.mobile-nav__group { margin-bottom: 1.75rem; }
.mobile-nav__group:last-of-type { margin-bottom: 0; }
.mobile-nav__label {
  display: block;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: .9375rem;
  color: var(--fg-muted);
  margin-bottom: .25rem;
  padding-left: .25rem;
}
.mobile-nav__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.125rem .25rem;
  border-bottom: 1px solid var(--border-soft);
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.625rem;
  color: var(--fg);
  letter-spacing: -0.015em;
  line-height: 1.2;
  transition: color .15s ease;
}
.mobile-nav__link > span { display: flex; align-items: center; gap: .625rem; }
.mobile-nav__link:hover, .mobile-nav__link:active { color: var(--basil); }
.mobile-nav__link svg {
  width: 18px; height: 18px;
  color: var(--fg-muted);
  flex: 0 0 auto;
  transition: transform .2s ease, color .2s ease;
}
.mobile-nav__link:hover svg { transform: translateX(3px); color: var(--basil); }
.mobile-nav__link[aria-current="page"] { color: var(--basil); }
.mobile-nav__link[aria-current="page"] > span::before {
  content: "";
  width: 8px; height: 8px;
  background: var(--basil);
  border-radius: 50%;
  display: inline-block;
}
.mobile-nav__cta {
  margin-top: auto;
  padding-top: 1.5rem;
}
.mobile-nav__cta .btn { width: 100%; }
.mobile-nav__contact {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-soft);
  font-size: .9375rem;
  color: var(--fg-muted);
  display: flex; align-items: center; gap: .625rem;
}
.mobile-nav__contact svg { width: 16px; height: 16px; color: var(--basil); flex: 0 0 auto; }
.mobile-nav__contact a { color: var(--fg); }

/* hamburger ↔ close icon swap */
.menu-toggle .icon-close { display: none; }
body.menu-open .menu-toggle .icon-menu { display: none; }
body.menu-open .menu-toggle .icon-close { display: block; }

/* lock body scroll while menu is open */
body.menu-open { overflow: hidden; }

/* === BUTTONS — pill === */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  height: 3rem; padding: 0 1.75rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: .9375rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: transform .15s ease, opacity .15s ease, background .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease;
  border: 1px solid transparent;
  white-space: nowrap;
  cursor: pointer;
}
.btn svg { width: 16px; height: 16px; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--primary); color: var(--primary-fg); }
.btn--primary:hover { box-shadow: var(--shadow); }
.btn--basil { background: var(--basil); color: var(--basil-fg); }
.btn--basil:hover { box-shadow: var(--shadow); }
.btn--ice { background: var(--ice); color: var(--ice-fg); }
.btn--ice:hover { box-shadow: var(--shadow); }
.btn--accent { background: var(--accent); color: var(--accent-fg); }
.btn--outline { background: transparent; color: var(--fg); border-color: var(--fg); }
.btn--outline:hover { background: var(--fg); color: var(--bg); }
.btn--ghost { background: transparent; color: var(--fg); }
.btn--ghost:hover { background: var(--bg-muted); }
.btn--lg { height: 3.5rem; padding: 0 2.25rem; font-size: 1rem; }
.btn--sm { height: 2.5rem; padding: 0 1.25rem; font-size: .875rem; }
.btn--block { width: 100%; }

/* === HERO === */
.hero {
  display: grid;
  gap: 3rem;
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 1024px) {
  .hero { grid-template-columns: 1.05fr 1fr; gap: 4rem; }
}
.hero__copy { max-width: 36rem; }
.hero__copy h1 { margin: 0 0 1.5rem; }
.hero__cta { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 2.25rem; }
.hero--centered { grid-template-columns: 1fr; text-align: center; }
.hero--centered .hero__copy { max-width: 52rem; margin: 0 auto; }
.hero--centered .hero__copy .lead { margin-left: auto; margin-right: auto; }
.hero--centered .hero__cta { justify-content: center; }
.hero__art { position: relative; min-height: 24rem; display: grid; place-items: center; }

/* === DECORATIVE BLOBS === */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: .35;
  pointer-events: none;
  z-index: 0;
}
.blob--basil { background: var(--basil-soft); }
.blob--ice { background: var(--ice-soft); }
.blob--accent { background: var(--accent-soft); }

/* === PRODUCT MOCK (CSS-rendered "label" cards) === */
.product-mock {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 2.25rem 1.75rem;
  text-align: center;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.product-mock--basil { background: linear-gradient(180deg, var(--basil-tint), var(--bg-card) 70%); border-top: 4px solid var(--basil); }
.product-mock--ice { background: linear-gradient(180deg, var(--ice-tint), var(--bg-card) 70%); border-top: 4px solid var(--ice); }
.product-mock--accent { background: linear-gradient(180deg, var(--accent-tint), var(--bg-card) 70%); border-top: 4px solid var(--accent); }
.product-mock--deep { background: var(--bg-deep); color: var(--bg); border: none; }
.product-mock--deep .product-mock__name,
.product-mock--deep .product-mock__kicker,
.product-mock--deep .product-mock__desc { color: var(--bg); }
.product-mock__kicker {
  display: block;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: .9375rem;
  color: var(--fg-muted);
  margin-bottom: 1.25rem;
}
.product-mock__name {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.625rem;
  color: var(--fg);
  letter-spacing: -0.015em;
  margin-bottom: .375rem;
  line-height: 1.1;
}
.product-mock__desc {
  font-size: .75rem;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: 1.25rem;
}
.product-mock__icon {
  width: 5rem; height: 5rem;
  border-radius: 50%;
  background: var(--bg-muted);
  display: grid; place-items: center;
  margin: 0 auto 1.25rem;
}
.product-mock--basil .product-mock__icon { background: var(--basil); color: var(--basil-fg); }
.product-mock--ice .product-mock__icon { background: var(--ice); color: var(--ice-fg); }
.product-mock--accent .product-mock__icon { background: var(--accent); color: var(--accent-fg); }
.product-mock--deep .product-mock__icon { background: var(--bg); color: var(--bg-deep); }
.product-mock__icon svg { width: 30px; height: 30px; }
.product-mock__pill {
  display: inline-block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: .3125rem .875rem;
  border-radius: var(--radius-pill);
  font-size: .75rem;
  font-weight: 500;
  color: var(--fg-muted);
  margin-bottom: .25rem;
  letter-spacing: .02em;
}
.product-mock--deep .product-mock__pill {
  background: color-mix(in srgb, var(--bg) 12%, transparent);
  border-color: color-mix(in srgb, var(--bg) 20%, transparent);
  color: var(--bg);
}

/* hero stack — three product cards layered */
.product-stack {
  position: relative;
  width: 100%;
  max-width: 26rem;
  margin: 0 auto;
}
.product-stack .product-mock { position: relative; }
.product-stack .product-mock:nth-child(1) {
  z-index: 3;
  margin-bottom: -2.5rem;
  margin-right: 2.5rem;
  transform: rotate(-3deg);
}
.product-stack .product-mock:nth-child(2) {
  z-index: 2;
  margin-bottom: -2.5rem;
  margin-left: 2.5rem;
  transform: rotate(3deg);
}
.product-stack .product-mock:nth-child(3) {
  z-index: 1;
  transform: rotate(-1deg);
}

/* === GRIDS === */
.grid { display: grid; gap: 1.5rem; }
.grid--2 { grid-template-columns: 1fr; }
@media (min-width: 768px) { .grid--2 { grid-template-columns: 1fr 1fr; gap: 2.5rem; } }
.grid--3 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid--3 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }
.grid--4 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid--4 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .grid--4 { grid-template-columns: repeat(4, 1fr); } }

/* === CARDS === */
.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s ease, transform .2s ease;
  border: 1px solid transparent;
}
.card--bordered { border-color: var(--border); box-shadow: none; }
.card--soft { background: var(--bg-soft); box-shadow: none; }
.card--hover:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card--lg { padding: 2.5rem; }
.card__num {
  display: inline-block;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--fg-muted);
  margin-bottom: 1rem;
}
.card__icon {
  width: 3rem; height: 3rem;
  border-radius: 50%;
  background: var(--bg-muted);
  display: grid; place-items: center;
  margin-bottom: 1.5rem;
  color: var(--fg);
}
.card__icon svg { width: 20px; height: 20px; }
.card--basil { background: var(--basil-tint); }
.card--basil .card__icon { background: var(--basil); color: var(--basil-fg); }
.card--ice { background: var(--ice-tint); }
.card--ice .card__icon { background: var(--ice); color: var(--ice-fg); }
.card--accent { background: var(--accent-tint); }
.card--accent .card__icon { background: var(--accent); color: var(--accent-fg); }
.card h3 { margin-bottom: .5rem; }
.card p { font-size: .9375rem; line-height: 1.65; }

/* === STAT (large serif numbers) === */
.stat-large__value {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(3rem, 5vw + 1rem, 5rem);
  color: var(--fg);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: .75rem;
  display: block;
}
.stat-large__label {
  font-size: .9375rem;
  color: var(--fg-muted);
  line-height: 1.55;
}

/* === FEATURE ROW (label + body, editorial) === */
.feature-row {
  display: grid;
  gap: .5rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--border);
  grid-template-columns: 1fr;
}
.feature-row:last-child { border-bottom: none; }
@media (min-width: 768px) { .feature-row { grid-template-columns: 12rem 1fr; gap: 3rem; padding: 2.25rem 0; } }
.feature-row__label {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--fg-muted);
  font-size: 1.0625rem;
}
.feature-row h4 { margin-bottom: .375rem; font-size: 1.125rem; }
.feature-row p { font-size: 1rem; line-height: 1.65; }

/* === FORMAT CARDS === */
.format-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
  margin-bottom: 3rem;
}
@media (min-width: 640px) { .format-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .format-grid { grid-template-columns: repeat(4, 1fr); } }
.format-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow-sm);
  text-align: center;
  display: flex; flex-direction: column;
  align-items: center;
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
  cursor: pointer;
  border: 2px solid transparent;
}
.format-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.format-card.is-active { border-color: var(--ice); box-shadow: var(--shadow); }
.format-card__icon {
  width: 4rem; height: 4rem;
  border-radius: 50%;
  margin-bottom: 1rem;
  display: grid; place-items: center;
  background: var(--ice-tint);
  color: var(--ice);
}
.format-card__icon svg { width: 26px; height: 26px; }
.format-card__name {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  margin-bottom: .25rem;
  letter-spacing: -0.01em;
}
.format-card__desc { font-size: .875rem; color: var(--fg-muted); line-height: 1.5; }

/* === FACTS TABLE === */
.facts-table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.facts-table caption {
  text-align: left;
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--fg-muted);
  padding-bottom: 1rem;
  font-size: 1rem;
}
.facts-table th, .facts-table td {
  padding: .875rem 0;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.facts-table thead th {
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--fg-muted);
  border-bottom: 1px solid var(--fg);
}
.facts-table td:last-child, .facts-table th:last-child {
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: var(--fg);
}

/* === FAQ === */
.faq { display: grid; gap: .75rem; max-width: 48rem; margin: 0 auto; }
.faq details {
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .15s ease;
}
.faq details:hover { box-shadow: var(--shadow); }
.faq details[open] { box-shadow: var(--shadow); }
.faq summary {
  padding: 1.5rem 1.75rem;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.125rem;
  color: var(--fg);
  display: flex; align-items: center; justify-content: space-between;
  list-style: none;
  gap: 1.5rem;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  width: 10px; height: 10px;
  border-right: 1.5px solid var(--fg-muted);
  border-bottom: 1.5px solid var(--fg-muted);
  transform: rotate(45deg);
  margin-top: -2px;
  flex: 0 0 auto;
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.faq details > div {
  padding: 0 1.75rem 1.75rem;
  font-size: 1rem;
  color: var(--fg-muted);
  line-height: 1.75;
}
.faq details > div p + p { margin-top: .875rem; }

/* === CALLOUT / QUOTE === */
.callout {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 2rem 2.25rem;
  box-shadow: var(--shadow-sm);
  border-left: 3px solid var(--basil);
}
.callout--ice { border-left-color: var(--ice); }
.callout--accent { border-left-color: var(--accent); }
.callout p { color: var(--fg); font-size: 1.0625rem; line-height: 1.65; }
.callout strong { font-family: var(--font-serif); font-style: italic; font-weight: 500; }

.quote {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.25vw + 0.5rem, 2.5rem);
  line-height: 1.3;
  color: var(--fg);
  letter-spacing: -0.015em;
  max-width: 48rem;
  margin: 0 auto;
  text-align: center;
}
.quote::before { content: "\201C"; font-size: 1.25em; line-height: 0; vertical-align: -.3em; margin-right: .15em; color: var(--basil); }
.quote::after { content: "\201D"; font-size: 1.25em; line-height: 0; vertical-align: -.4em; margin-left: .05em; color: var(--basil); }
.quote-attr {
  display: block;
  text-align: center;
  margin-top: 1.5rem;
  font-family: var(--font-sans);
  font-size: .8125rem;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: .1em;
}

/* === INGREDIENT LIST === */
.ingredient-list { display: grid; gap: 0; max-width: 100%; }
.ingredient {
  display: grid;
  grid-template-columns: 1.5rem 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}
.ingredient:last-child { border-bottom: none; }
.ingredient__dot {
  width: .75rem; height: .75rem;
  border-radius: 50%;
  background: var(--basil);
}
.ingredient__dot--ice { background: var(--ice); }
.ingredient__dot--accent { background: var(--accent); }
.ingredient__dot--muted { background: var(--fg-soft); }
.ingredient__name { font-weight: 500; color: var(--fg); }
.ingredient__amt { font-family: var(--font-serif); color: var(--fg-muted); font-variant-numeric: tabular-nums; }

/* === MARQUEE / TRUST === */
.marquee {
  background: var(--bg-deep);
  color: var(--bg);
  padding: 1.5rem 0;
  border-top: 1px solid color-mix(in srgb, var(--bg) 10%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--bg) 10%, transparent);
}
.marquee__inner {
  display: flex;
  gap: 2.5rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.0625rem;
  color: color-mix(in srgb, var(--bg) 92%, transparent);
}
.marquee__item { display: flex; align-items: center; gap: .75rem; white-space: nowrap; }
.marquee__sep { opacity: .3; }

.trust-strip {
  background: var(--bg-muted);
  padding: 2rem 0;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}
.trust-strip ul {
  display: flex; gap: 2.5rem; flex-wrap: wrap;
  align-items: center; justify-content: center;
}
.trust-strip li {
  display: flex; align-items: center; gap: .5rem;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: .9375rem;
  color: var(--fg-muted);
}
.trust-strip svg { width: 14px; height: 14px; color: var(--basil); flex: 0 0 auto; }

/* === STEPS === */
.steps {
  display: grid; gap: 1.25rem;
  grid-template-columns: 1fr;
  counter-reset: step;
  max-width: 64rem;
  margin: 0 auto;
}
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 2.25rem 2rem;
  counter-increment: step;
  box-shadow: var(--shadow-sm);
}
.step::before {
  content: "0" counter(step);
  display: block;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 2.75rem;
  color: var(--basil);
  line-height: 1;
  margin-bottom: 1.25rem;
}
.step h4 { margin-bottom: .5rem; font-size: 1.25rem; font-family: var(--font-serif); font-weight: 500; line-height: 1.2; }
.step p { font-size: .9375rem; line-height: 1.65; }

/* === CHECK LIST === */
.check-list { display: grid; gap: .875rem; margin: 1.5rem 0; }
.check-list li { display: flex; align-items: center; gap: .75rem; font-size: .9375rem; color: var(--fg); }
.check-list svg { width: 16px; height: 16px; color: var(--basil); flex: 0 0 auto; }
.check-list--ice svg { color: var(--ice); }

/* === TAGS === */
.tag {
  display: inline-flex; align-items: center;
  padding: .3125rem .875rem;
  border-radius: var(--radius-pill);
  font-size: .75rem; font-weight: 500;
  background: var(--bg-card);
  color: var(--fg-muted);
  border: 1px solid var(--border);
  letter-spacing: .02em;
}
.tag--basil { background: var(--basil-soft); color: var(--basil); border-color: transparent; }
.tag--ice { background: var(--ice-soft); color: var(--ice); border-color: transparent; }
.tag--accent { background: var(--accent-soft); color: var(--accent); border-color: transparent; }

/* === TABS (legacy hook for ice-plant — restyled) === */
.tabs {
  display: flex; gap: .5rem;
  overflow-x: auto;
  margin-bottom: 2rem;
  padding-bottom: .5rem;
  scrollbar-width: thin;
}
.tabs button {
  padding: .75rem 1.25rem;
  border-radius: var(--radius-pill);
  background: var(--bg-card);
  color: var(--fg-muted);
  font-weight: 500;
  font-size: .9375rem;
  white-space: nowrap;
  border: 1px solid var(--border);
  transition: all .15s ease;
}
.tabs button:hover { color: var(--fg); border-color: var(--fg-muted); }
.tabs button.is-active {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}
.tab-panel { display: none; }
.tab-panel.is-active { display: block; }

/* === FORM === */
.form { display: grid; gap: 1.25rem; }
.form__field { display: grid; gap: .5rem; }
.form__field label { font-size: .9375rem; font-weight: 500; color: var(--fg); }
.form__field input,
.form__field select,
.form__field textarea {
  height: 3rem;
  padding: 0 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  color: var(--fg);
  font: inherit;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form__field textarea { height: auto; padding: .875rem 1rem; resize: vertical; min-height: 7rem; }
.form__field input:focus,
.form__field select:focus,
.form__field textarea:focus {
  outline: none;
  border-color: var(--basil);
  box-shadow: 0 0 0 3px var(--basil-soft);
}
.form__hint { font-size: .8125rem; color: var(--fg-muted); }
.radio-group { display: grid; gap: .75rem; }
.radio {
  display: flex; align-items: flex-start; gap: .875rem;
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.radio:hover { border-color: var(--fg-muted); }
.radio:has(input:checked) {
  border-color: var(--basil);
  background: var(--basil-tint);
  box-shadow: 0 0 0 1px var(--basil);
}
.radio input { margin-top: .25rem; accent-color: var(--basil); }
.radio strong { display: block; font-family: var(--font-serif); font-size: 1.1875rem; color: var(--fg); margin-bottom: .25rem; font-weight: 500; line-height: 1.2; }
.radio span { font-size: .9375rem; color: var(--fg-muted); line-height: 1.5; }
.checkbox-row {
  display: flex; gap: .75rem;
  align-items: flex-start;
  font-size: .9375rem; color: var(--fg);
  line-height: 1.55;
}
.checkbox-row input { accent-color: var(--basil); margin-top: .25rem; flex: 0 0 auto; }

.form-section {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}
.form-section + .form-section { margin-top: 1.25rem; }
.form-section__head { display: flex; align-items: center; gap: .875rem; margin-bottom: 1.5rem; }
.form-section__num {
  display: grid; place-items: center;
  width: 2rem; height: 2rem;
  border-radius: 50%;
  background: var(--basil);
  color: var(--basil-fg);
  font-family: var(--font-serif);
  font-size: 1rem;
  flex: 0 0 auto;
}
.form-section h3 { font-size: 1.375rem; margin: 0; line-height: 1.2; }

.was-validated input:invalid,
.was-validated select:invalid,
.was-validated textarea:invalid {
  border-color: #b13a2c;
  box-shadow: 0 0 0 3px rgba(177, 58, 44, 0.12);
}

.field-row { display: grid; gap: 1rem; }
.field-row--2 { grid-template-columns: 1fr; }
.field-row--3 { grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .field-row--2 { grid-template-columns: 1fr 1fr; }
  .field-row--3 { grid-template-columns: 2fr 1fr 1fr; }
}

.form-success {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.form-success__icon {
  width: 4.5rem; height: 4.5rem;
  border-radius: 50%;
  background: var(--basil-soft);
  color: var(--basil);
  display: grid; place-items: center;
  margin: 0 auto 1.75rem;
}
.form-success__icon svg { width: 32px; height: 32px; stroke-width: 3; }
.form-success h2 { margin-bottom: 1rem; }
.form-success p { font-size: 1.0625rem; max-width: 32rem; margin: 0 auto 1rem; line-height: 1.65; }

.btn[aria-busy="true"] { opacity: .7; pointer-events: none; cursor: progress; }
.btn[aria-busy="true"] svg { display: none; }
.btn[aria-busy="true"]::after {
  content: "";
  width: 14px; height: 14px;
  margin-left: .5rem;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 999px;
  animation: btn-spin .6s linear infinite;
}
@keyframes btn-spin { to { transform: rotate(360deg); } }

/* === FOOTER === */
.site-footer {
  background: var(--bg-deep);
  color: var(--bg);
  padding: 5rem 0 2.5rem;
  margin-top: 0;
}
[data-theme="dark"] .site-footer { background: var(--bg-muted); color: var(--fg); }
.site-footer .brand > span:not(.brand__mark),
.site-footer .brand__name { color: var(--bg); }
[data-theme="dark"] .site-footer .brand > span:not(.brand__mark),
[data-theme="dark"] .site-footer .brand__name { color: var(--fg); }
.site-footer .brand__mark { background: var(--bg); color: var(--bg-deep); }
[data-theme="dark"] .site-footer .brand__mark { background: var(--fg); color: var(--bg); }
.site-footer__grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .site-footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; } }
.site-footer p { font-size: .9375rem; max-width: 26rem; line-height: 1.65; margin-top: 1.25rem; color: color-mix(in srgb, var(--bg) 70%, transparent); }
[data-theme="dark"] .site-footer p { color: var(--fg-muted); }
.site-footer h4 {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1.0625rem;
  margin-bottom: 1.25rem;
  color: color-mix(in srgb, var(--bg) 90%, transparent);
}
[data-theme="dark"] .site-footer h4 { color: var(--fg); }
.site-footer ul { display: grid; gap: .75rem; font-size: .9375rem; }
.site-footer ul a { color: color-mix(in srgb, var(--bg) 70%, transparent); transition: color .15s ease; }
.site-footer ul a:hover { color: var(--bg); }
[data-theme="dark"] .site-footer ul a { color: var(--fg-muted); }
[data-theme="dark"] .site-footer ul a:hover { color: var(--fg); }
.site-footer__bottom {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid color-mix(in srgb, var(--bg) 12%, transparent);
  display: flex; flex-direction: column; gap: 1.25rem;
  font-size: .8125rem; line-height: 1.65;
  color: color-mix(in srgb, var(--bg) 60%, transparent);
}
[data-theme="dark"] .site-footer__bottom { color: var(--fg-muted); border-top-color: var(--border); }
@media (min-width: 768px) {
  .site-footer__bottom { flex-direction: row; justify-content: space-between; align-items: flex-start; }
  .site-footer__bottom p:last-child { max-width: 42rem; text-align: right; }
}

/* === SECTION HEAD === */
.section-head { max-width: 48rem; margin: 0 auto 3.5rem; text-align: center; }
.section-head .eyebrow { margin-bottom: 1rem; }
.section-head h2 { margin-bottom: 1rem; }
.section-head p { margin: 0 auto; max-width: 36rem; }
.section-head--left { text-align: left; margin-left: 0; }

/* === DISCLAIMER === */
.disclaimer-box {
  background: var(--bg-muted);
  padding: 1.5rem 1.75rem;
  border-radius: var(--radius-sm);
  font-size: .875rem; line-height: 1.65;
  color: var(--fg-muted);
}
.disclaimer-box strong { color: var(--fg); font-family: var(--font-serif); font-style: italic; font-weight: 500; }

/* === SPLIT === */
.split { display: grid; gap: 3rem; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 768px) { .split { grid-template-columns: 1fr 1fr; gap: 5rem; } }
.split--center { align-items: center; }

/* === PULSE === */
.pulse-dot {
  display: inline-block;
  width: .5rem; height: .5rem;
  border-radius: 50%;
  background: var(--basil);
  margin-right: .5rem;
  position: relative;
}
.pulse-dot::after {
  content: ""; position: absolute; inset: 0;
  border-radius: 50%;
  background: var(--basil);
  animation: pulse-ring 2s ease-out infinite;
}
@keyframes pulse-ring {
  0% { transform: scale(1); opacity: .6; }
  100% { transform: scale(2.5); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .pulse-dot::after { animation: none; } }

/* === A11Y === */
:focus-visible { outline: 2px solid var(--basil); outline-offset: 2px; border-radius: 4px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; }
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--primary); color: var(--primary-fg);
  padding: .75rem 1rem; z-index: 100;
  border-radius: var(--radius-sm);
}
.skip-link:focus { left: 1rem; top: 1rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* anchor offset for sticky header */
.section[id], h2[id], h3[id] { scroll-margin-top: 6rem; }

/* back-to-top */
.back-to-top {
  position: fixed; bottom: 1.5rem; right: 1.5rem;
  width: 3rem; height: 3rem;
  border-radius: 50%;
  background: var(--primary); color: var(--primary-fg);
  display: grid; place-items: center;
  box-shadow: var(--shadow);
  opacity: 0; pointer-events: none;
  transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease;
  z-index: 40;
}
.back-to-top.is-visible { opacity: 1; pointer-events: auto; transform: none; }
.back-to-top svg { width: 18px; height: 18px; }
.back-to-top:hover { opacity: .9; }

/* === UTILITIES === */
.text-center { text-align: center; }
.muted { color: var(--fg-muted); }
.stack > * + * { margin-top: 1rem; }
.stack-lg > * + * { margin-top: 2rem; }
.mw-md { max-width: 36rem; margin-left: auto; margin-right: auto; }
.mw-lg { max-width: 48rem; margin-left: auto; margin-right: auto; }
[hidden] { display: none !important; }
