/* ──────────────────────────────────────────────────────────────
   Thryvera Marketing — v3
   Cream canvas. Elevated white cards. Violet structure. Pink as accent. No gold. No glass on white. Solid cards + tight violet shadows.
   ────────────────────────────────────────────────────────────── */

@import url('../../colors_and_type.css');

:root {
  --stagger-offset: 3rem;
  --editorial-offset-sm: 4rem;
  --editorial-offset-md: 6rem;
  --editorial-offset-lg: 8rem;
  --nav-height: 72px;

  /* Soft tints — never used as fills, only as scroll-tinted section
     washes (per Claude convo: warmth comes from imagery, not bg). */
  --tint-pink:   rgba(229, 106, 138, 0.04);
  --tint-pink-2: rgba(229, 106, 138, 0.07);
  --tint-violet: rgba(91, 79, 124, 0.03);
  --tint-violet-2: rgba(91, 79, 124, 0.06);
  --section-violet-deep: #4A4068; /* full violet section, footer + final CTA */
  /* --surface-blush is defined in colors_and_type.css */

  /* Solid card shadow (replaces glass) */
  --shadow-card: 0 1px 2px rgba(31, 22, 39, 0.04), 0 12px 32px -16px rgba(91, 79, 124, 0.18);
  --shadow-card-lift: 0 2px 4px rgba(31, 22, 39, 0.05), 0 24px 56px -20px rgba(91, 79, 124, 0.28);

  /* Header is scroll-driven via JS — defaults below */
  --header-bg: rgba(255, 255, 255, 0.92);
  --header-fg: var(--text-secondary);
  --header-fg-active: var(--brand-violet);
  --header-border: var(--border-muted);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background: #FFFFFF;
  color: var(--text-primary);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }
ul { list-style: none; }
em { font-style: italic; }

/* ───────────── Layout primitives ───────────── */
.shell { max-width: 80rem; margin: 0 auto; padding: 0 1.25rem; }
@media (min-width: 768px) { .shell { padding: 0 2.5rem; } }
.shell-narrow { max-width: 60rem; margin: 0 auto; padding: 0 1.25rem; }
@media (min-width: 768px) { .shell-narrow { padding: 0 2.5rem; } }

.section { padding-top: 6rem; padding-bottom: 6rem; }
@media (min-width: 1024px) { .section { padding-top: 9rem; padding-bottom: 9rem; } }
.section-tight { padding-top: 4rem; padding-bottom: 4rem; }
@media (min-width: 1024px) { .section-tight { padding-top: 5rem; padding-bottom: 5rem; } }
[data-section] { scroll-margin-top: calc(var(--nav-height) + 24px); }

.tone-pink   { background: var(--tint-pink); }
.tone-pink-2 { background: var(--tint-pink-2); }
.tone-violet { background: var(--tint-violet); }
.tone-violet-2 { background: var(--tint-violet-2); }
.tone-violet-deep { background: var(--section-violet-deep); color: #fff; }
.tone-blush { background: var(--surface-blush); }

.divider-hairline { height: 1px; width: 100%; background: rgba(var(--brand-violet-rgb), 0.14); }
.divider-pink { height: 1px; width: 100%; background: linear-gradient(90deg, transparent, rgba(var(--brand-pink-rgb), 0.55), transparent); }
.rule-vert { width: 1px; background: rgba(var(--brand-violet-rgb), 0.14); }

.stack-xs { display: flex; flex-direction: column; gap: 0.5rem; }
.stack-sm { display: flex; flex-direction: column; gap: 0.875rem; }
.stack-md { display: flex; flex-direction: column; gap: 1.25rem; }
.stack-lg { display: flex; flex-direction: column; gap: 1.75rem; }
.stack-xl { display: flex; flex-direction: column; gap: 2.5rem; }
.section__header { max-width: 48rem; }

/* ───────────── Type system ───────────── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-body); font-size: 11px; font-weight: 600;
  letter-spacing: 0.20em; text-transform: uppercase; color: var(--brand-violet);
}
.eyebrow::before { content: ""; display: block; width: 28px; height: 1px; background: var(--brand-pink); }
.eyebrow.no-rule::before { display: none; }
.eyebrow.muted { color: var(--text-muted); }
.eyebrow.muted::before { background: var(--text-disabled); }

.display-1 {
  font-family: var(--font-display);
  font-size: clamp(56px, 9vw, 104px);
  font-weight: 300;
  line-height: 0.98;
  letter-spacing: -0.025em;
  color: var(--text-primary);
}
.display-1 em { font-style: italic; color: var(--brand-pink); font-weight: 300; transform: skewX(-9deg); display: inline-block; transform-origin: left baseline; }

.display-2 {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.022em;
  color: var(--text-primary);
}
.display-2 em { font-style: italic; color: var(--brand-pink); font-weight: 400; }
.display-2 .accent-violet { color: var(--brand-violet); font-weight: 500; }

.display-3 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.014em;
  color: var(--text-primary);
}
.display-3 em { font-style: italic; color: var(--brand-pink); font-weight: 400; }

.lede {
  font-family: var(--font-body);
  font-size: clamp(17px, 2vw, 20px);
  font-weight: 400;
  line-height: 1.55;
  color: var(--text-secondary);
  max-width: 38rem;
}

.copy {
  font-family: var(--font-body);
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--text-secondary);
}
.copy-sm { font-size: 13.5px; line-height: 1.6; color: var(--text-secondary); }
.fine-print { font-size: 11.5px; line-height: 1.55; color: var(--text-muted); letter-spacing: 0.01em; }
.legal-microline {
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-muted);
  max-width: 48rem;
  margin-top: 0.5rem;
}

/* Kit inline-style migrations kept in CSS so React markup stays clean. */
.tone-violet-deep .eyebrow.no-rule,
[data-tone="violet-deep"] .eyebrow.no-rule {
  color: rgba(255, 255, 255, 0.65);
}

/* ───────────── Buttons ───────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 500; line-height: 1;
  border-radius: 9999px; border: 1px solid transparent;
  transition: background-color 200ms cubic-bezier(.2,.7,.2,1),
              color 200ms cubic-bezier(.2,.7,.2,1),
              border-color 200ms,
              transform 200ms;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-sm { font-size: 13px; padding: 8px 18px; min-height: 36px; }
.btn-md { font-size: 14.5px; padding: 14px 26px; min-height: 48px; }
.btn-lg { font-size: 16px; padding: 18px 32px; min-height: 56px; letter-spacing: 0.01em; }

.btn-violet { background: var(--brand-violet); color: #fff; }
.btn-violet:hover { background: var(--brand-violet-hover); }
.btn-violet-outline { background: transparent; color: var(--brand-violet); border-color: rgba(var(--brand-violet-rgb), 0.32); }
.btn-violet-outline:hover { background: rgba(var(--brand-violet-rgb), 0.06); border-color: rgba(var(--brand-violet-rgb), 0.55); }
.btn-white { background: #fff; color: var(--brand-violet); }
.btn-white:hover { background: rgba(255,255,255,0.92); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.42); }
.btn-ghost-light:hover { background: rgba(255,255,255,0.10); border-color: #fff; }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; color: var(--brand-violet); font-weight: 500; font-size: 14px; }
.link-arrow svg { transition: transform 200ms; width: 14px; height: 14px; }
.link-arrow:hover svg { transform: translateX(3px); }

/* ───────────── Header / Nav (scroll-driven tone) ───────────── */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: var(--nav-height);
  display: flex; align-items: center;
  background: var(--header-bg);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  border-bottom: 1px solid var(--header-border);
  transition: background-color 600ms cubic-bezier(.2,.6,.2,1),
              border-color 600ms,
              color 400ms;
  color: var(--header-fg);
}
.site-nav .nav-shell { display: flex; align-items: center; justify-content: space-between; width: 100%; height: 100%; padding: 0 1.25rem; max-width: 80rem; margin: 0 auto; gap: 12px; min-width: 0; }
@media (min-width: 768px) { .site-nav .nav-shell { padding: 0 2.5rem; } }
.site-nav .nav-logo img { height: 22px; width: auto; transition: filter 400ms; }
.site-nav nav.nav-links { display: none; flex: 1; align-items: center; justify-content: flex-end; gap: 28px; margin-left: 32px; font-size: 11.5px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; position: relative; }
@media (min-width: 1024px) { .site-nav nav.nav-links { display: flex; } }
.site-nav .nav-link { color: inherit; padding: 6px 0; position: relative; transition: opacity 200ms; opacity: 0.78; }
.site-nav .nav-link:hover { opacity: 1; }
.site-nav .nav-link--active { color: var(--header-fg-active); opacity: 1; font-weight: 500; }
.site-nav .nav-indicator {
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--header-fg-active);
  border-radius: 1px;
  opacity: 0;
  pointer-events: none;
  will-change: left, width;
  transition:
    left 320ms cubic-bezier(.2, .7, .2, 1),
    width 320ms cubic-bezier(.2, .7, .2, 1),
    background-color 400ms,
    opacity 200ms ease;
}
.site-nav .nav-indicator[data-on="true"] { opacity: 1; }

/* Tone variants set by IntersectionObserver via data-tone */
.site-nav[data-tone="white"]       { --header-bg: rgba(255,255,255,0.88); --header-fg: var(--text-secondary); --header-fg-active: var(--brand-violet); --header-border: var(--border-muted); }
.site-nav[data-tone="pink"]        { --header-bg: rgba(252, 244, 246, 0.92); --header-fg: var(--text-secondary); --header-fg-active: var(--brand-pink); --header-border: rgba(var(--brand-pink-rgb), 0.16); }
.site-nav[data-tone="violet"]      { --header-bg: rgba(247, 245, 250, 0.92); --header-fg: var(--text-secondary); --header-fg-active: var(--brand-violet); --header-border: rgba(var(--brand-violet-rgb), 0.16); }
.site-nav[data-tone="violet-deep"] { --header-bg: rgba(74, 64, 104, 0.78); --header-fg: rgba(255,255,255,0.82); --header-fg-active: #fff; --header-border: rgba(255,255,255,0.10); }
.site-nav[data-tone="blush"]      { --header-bg: rgba(245, 236, 236, 0.92); --header-fg: var(--text-secondary); --header-fg-active: var(--brand-violet); --header-border: rgba(var(--brand-violet-rgb), 0.10); }
.site-nav[data-tone="violet-deep"] .nav-logo img { filter: brightness(0) invert(1); }

.nav-cta { margin-left: 0; flex-shrink: 0; }
.site-nav .nav-logo { flex-shrink: 0; min-width: 0; }

/* Spacer so content clears the fixed header */
.nav-spacer { height: var(--nav-height); }

/* ───────────── HERO ───────────── */
.hero {
  position: relative;
  padding-top: 4rem;
  padding-bottom: 6rem;
  overflow: hidden;
}
@media (min-width: 1024px) { .hero { padding-top: 6rem; padding-bottom: 8rem; } }

.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 1024px) {
  .hero__grid { grid-template-columns: 6fr 6fr; gap: 4rem; align-items: center; }
}

.hero__text { display: flex; flex-direction: column; gap: 1.5rem; align-items: flex-start; }
@media (max-width: 1023px) { .hero__text { align-items: center; text-align: center; } }

.hero__pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px;
  background: rgba(var(--brand-pink-rgb), 0.06);
  border: 1px solid rgba(var(--brand-pink-rgb), 0.20);
  border-radius: 9999px;
  font-size: 12.5px; font-weight: 500;
  color: var(--brand-violet);
}
.hero__pill .price { color: var(--brand-pink); font-weight: 600; }
.hero__pill .sep { color: rgba(var(--brand-violet-rgb), 0.35); }

.hero__headline { max-width: 14ch; }
.hero__headline-nowrap { white-space: nowrap; hyphens: manual; }
@media (max-width: 1023px) { .hero__headline { max-width: 18ch; } }

.hero__lede { max-width: 30rem; }
.hero__lede em { font-style: normal; }
.hero__lede .wm { color: var(--brand-violet); font-weight: 500; }
.hero__lede .wm .a { font-style: italic; font-weight: 500; }
.hero__lede .wm .b { font-style: italic; font-weight: 300; }

.hero__cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 1023px) { .hero__cta-row { justify-content: center; } }

.hero__trust { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; }
@media (max-width: 1023px) { .hero__trust { justify-content: center; } }
.trust-chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--text-muted);
}
.trust-chip svg { width: 12px; height: 12px; color: var(--brand-violet); flex: 0 0 12px; }
.manhattan__chips { margin-top: 0.5rem; }
.manhattan__chips .trust-chip { font-size: 12px; }
.manhattan__chips .trust-chip svg { color: var(--brand-pink); }

/* Hero visual: layered placeholder (gradient + brand mark) */
.hero__visual {
  position: relative;
  aspect-ratio: 5 / 6;
  border-radius: 24px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 30% 25%, rgba(var(--brand-pink-rgb), 0.18), transparent 55%),
    radial-gradient(ellipse at 75% 80%, rgba(var(--brand-violet-rgb), 0.20), transparent 55%),
    linear-gradient(180deg, #FBF7F8, #F4F0F6);
  border: 1px solid rgba(var(--brand-violet-rgb), 0.10);
}
.hero__visual::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, transparent 50%, rgba(255,255,255,0.5) 100%);
  pointer-events: none;
}
.hero__visual .mark {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 38%;
  opacity: 0.78;
  filter: drop-shadow(0 10px 40px rgba(var(--brand-violet-rgb), 0.20));
}
.hero__visual .corner-tag {
  position: absolute; left: 20px; bottom: 20px;
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--brand-violet);
  background: rgba(255,255,255,0.78);
  backdrop-filter: blur(8px);
  padding: 6px 12px; border-radius: 9999px;
  border: 1px solid rgba(var(--brand-violet-rgb), 0.14);
}

/* ───────────── Manhattan delivery hook ───────────── */
.manhattan {
  position: relative;
  padding: 7rem 0;
}
.manhattan__grid { display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: center; }
@media (min-width: 1024px) { .manhattan__grid { grid-template-columns: 5fr 7fr; gap: 5rem; } }
.manhattan__visual {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 24px;
  background: #1F1B30;
}
.manhattan__visual .map {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
  pointer-events: none;
  /* Recolor a normal light Google Map into our dark-violet brand surface */
  filter: invert(0.92) hue-rotate(195deg) saturate(0.55) brightness(0.78) contrast(1.05);
}
.manhattan__visual .map__veil {
  position: absolute; inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 70% 30%, rgba(var(--brand-pink-rgb), 0.18), transparent 55%),
    linear-gradient(180deg, rgba(31, 27, 48, 0.55) 0%, rgba(31, 27, 48, 0.18) 28%, rgba(31, 27, 48, 0.20) 70%, rgba(31, 27, 48, 0.65) 100%);
}
.manhattan__visual .pin {
  position: absolute; top: 38%; left: 52%;
  width: 14px; height: 14px;
  background: var(--brand-pink);
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(var(--brand-pink-rgb), 0.25),
              0 0 0 12px rgba(var(--brand-pink-rgb), 0.12);
  animation: pin-pulse 2.4s ease-in-out infinite;
}
@keyframes pin-pulse {
  0%, 100% { box-shadow: 0 0 0 6px rgba(var(--brand-pink-rgb), 0.25), 0 0 0 12px rgba(var(--brand-pink-rgb), 0.12); }
  50%      { box-shadow: 0 0 0 10px rgba(var(--brand-pink-rgb), 0.20), 0 0 0 22px rgba(var(--brand-pink-rgb), 0.08); }
}
.manhattan__visual .timestamp {
  position: absolute; left: 24px; top: 24px;
  display: flex; flex-direction: column; gap: 2px;
  color: rgba(255,255,255,0.78); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
}
.manhattan__visual .timestamp strong { color: #fff; font-weight: 600; }
.manhattan__visual .badge {
  position: absolute; right: 24px; bottom: 24px;
  background: rgba(255,255,255,0.10);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.20);
  padding: 16px 20px; border-radius: 14px;
  display: flex; flex-direction: column; gap: 4px;
  color: #fff;
}
.manhattan__visual .badge .num { font-family: var(--font-display); font-size: 38px; font-weight: 300; font-style: italic; line-height: 1; }
.manhattan__visual .badge .lbl { font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.80; }

/* ───────────── Founder note ───────────── */
.founder { padding: 5rem 0 6rem; }
.founder__grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: center; }
@media (min-width: 1024px) { .founder__grid { grid-template-columns: 4fr 8fr; gap: 4rem; } }
.founder__photo {
  aspect-ratio: 4 / 5;
  border-radius: 18px;
  overflow: hidden;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 30%, rgba(var(--brand-pink-rgb), 0.10), transparent 45%),
    linear-gradient(160deg, #EDE7E5, #C9C0C4);
  filter: grayscale(0.30);
  position: relative;
}
.founder__photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.founder__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.20)); pointer-events: none; }
.founder__photo .mark { position: absolute; left: 24px; bottom: 20px; color: rgba(255,255,255,0.85); font-family: var(--font-display); font-size: 14px; letter-spacing: 0.16em; text-transform: uppercase; }
.founder__quote {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 400;
  line-height: 1.45;
  color: var(--text-primary);
  letter-spacing: -0.005em;
}
.founder__quote em { font-style: italic; color: var(--brand-violet); }
.founder__sig { display: flex; align-items: center; gap: 14px; }
.founder__sig .name { font-size: 13.5px; font-weight: 600; color: var(--brand-violet); letter-spacing: 0.04em; }
.founder__sig .role { font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); }

/* ───────────── Process timeline (sticky reveal) ───────────── */
.process {
  position: relative;
  padding: 6rem 0;
}
.process__grid {
  display: grid;
  gap: 3rem;
  grid-template-columns: 1fr;
}
@media (min-width: 1024px) {
  .process__grid { grid-template-columns: 5fr 7fr; gap: 4rem; align-items: start; }
}
.process__heading {
  position: relative;
}
@media (min-width: 1024px) {
  .process__heading { position: sticky; top: calc(var(--nav-height) + 4rem); align-self: start; }
}
.process__cta-row { margin-top: 1rem; }

.process__steps { list-style: none; display: flex; flex-direction: column; gap: 0; counter-reset: process; border-left: 1px solid rgba(var(--brand-violet-rgb), 0.18); }
.process__steps,
.process__steps::before { z-index: 0; }
.process__step {
  position: relative;
  padding: 2rem 0 2.5rem 3rem;
  counter-increment: process;
}
.process__step::before {
  content: "0" counter(process);
  position: absolute; left: -1px; top: 2rem;
  transform: translateX(-50%);
  display: inline-flex; align-items: center; justify-content: center;
  background: #FFFFFF;
  border: 1px solid rgba(var(--brand-violet-rgb), 0.30);
  color: var(--brand-violet);
  font-family: var(--font-body);
  font-size: 12px; font-weight: 600; letter-spacing: 0.08em;
  width: 42px; height: 42px; border-radius: 50%;
  box-shadow: 0 0 0 4px var(--bg-canvas, #FAF7F2);
  z-index: 1;
}
.process__step:last-child { padding-bottom: 0; }
.process__step h3 {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.6vw, 30px);
  font-weight: 400; line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  letter-spacing: -0.012em;
}
.process__step p { color: var(--text-secondary); font-size: 15.5px; line-height: 1.65; max-width: 38rem; }
.process__step .meta {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 1rem;
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--brand-pink);
}
.process__step .meta::before { content: ""; width: 10px; height: 1px; background: var(--brand-pink); }

/* ───────────── Difference (4-pillar) ───────────── */
.pillars { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .pillars { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1280px) { .pillars { grid-template-columns: repeat(4, 1fr); gap: 2.5rem; } }
.pillar {
  display: flex; flex-direction: column; gap: 1rem;
  padding: 2rem;
  background: #fff;
  border: 1px solid rgba(var(--brand-violet-rgb), 0.10);
  border-radius: 18px;
  box-shadow: var(--shadow-card);
  transition: box-shadow 300ms, transform 300ms;
}
.pillar:hover { box-shadow: var(--shadow-card-lift); transform: translateY(-2px); }
.pillar svg.icon { width: 28px; height: 28px; color: var(--brand-violet); stroke-width: 1.6; }
.pillar h3 {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 400; line-height: 1.2;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}
.pillar p { color: var(--text-secondary); font-size: 14.5px; line-height: 1.6; }

/* ───────────── Collection ───────────── */
.collection { padding: 7rem 0; }
.collection__grid { display: grid; grid-template-columns: 1fr; gap: 3rem; }
@media (min-width: 1024px) { .collection__grid { grid-template-columns: 4fr 8fr; gap: 5rem; align-items: start; } }
.collection__sidebar { position: relative; }
@media (min-width: 1024px) { .collection__sidebar { position: sticky; top: calc(var(--nav-height) + 3rem); } }
.collection__note { margin-top: 1rem; }

/* ───────── Index-style menu rows (collapsed by default, expand on click) ───────── */
.formula-card {
  display: grid;
  grid-template-columns: 32px minmax(180px, 1.2fr) minmax(160px, 2fr) auto;
  align-items: center;
  gap: 0.4rem 1.5rem;
  position: relative;
  padding: 1.5rem 3rem 1.5rem 0.5rem;
  border: 0;
  border-bottom: 1px solid rgba(var(--brand-violet-rgb), 0.10);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transition: background 280ms, padding 280ms;
  cursor: pointer;
  text-align: left;
  width: 100%;
  counter-increment: formula;
}
.formula-list { counter-reset: formula; }
.formula-list .tier-head + .formula-card { /* reset isn't reliable per tier; use a CSS counter scoped per .tier-head sibling group via separate counters */ }
.formula-card::before {
  content: counter(formula, decimal-leading-zero);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  font-feature-settings: 'tnum';
  align-self: center;
  transition: color 240ms;
}
.formula-card:hover::before,
.formula-card[aria-pressed="true"]::before { color: var(--brand-violet); }

/* Left accent stripe on hover/active */
.formula-card {
  background-image: linear-gradient(var(--brand-violet), var(--brand-violet));
  background-repeat: no-repeat;
  background-size: 0 60%;
  background-position: left center;
}
.formula-card:hover { background-size: 2px 60%; background-color: rgba(var(--brand-violet-rgb), 0.025); }
.formula-card[aria-pressed="true"] { background-size: 2px 70%; background-color: rgba(var(--brand-violet-rgb), 0.04); }
.formula-card:first-of-type { border-top: 1px solid rgba(var(--brand-violet-rgb), 0.10); }
.formula-card:hover { background: rgba(var(--brand-violet-rgb), 0.025); }
.formula-card[aria-pressed="true"] { background: rgba(var(--brand-violet-rgb), 0.04); }

/* + / − toggle (replaces generic chevron) */
.formula-card::after {
  content: "";
  position: absolute;
  right: 1.3rem; top: 50%;
  width: 12px; height: 12px;
  background:
    linear-gradient(var(--brand-violet), var(--brand-violet)) center/100% 1.5px no-repeat,
    linear-gradient(var(--brand-violet), var(--brand-violet)) center/1.5px 100% no-repeat;
  transform: translateY(-50%);
  transition: transform 280ms cubic-bezier(.6,.2,.2,1), opacity 240ms;
  opacity: 0.6;
  pointer-events: none;
}
.formula-card:hover::after { opacity: 1; }
.formula-card[aria-pressed="true"]::after {
  background:
    linear-gradient(var(--brand-violet), var(--brand-violet)) center/100% 1.5px no-repeat;
  transform: translateY(-50%) rotate(180deg);
  opacity: 1;
}

/* flatten the existing nested wrappers so children become grid items */
.formula-card .top,
.formula-card .top .stack-xs { display: contents; }

.formula-card .label-row { display: none; }

/* re-map grid columns since we added the counter prefix */
.formula-card .name {
  grid-column: 2;
  font-family: var(--font-display);
  font-size: clamp(24px, 2.2vw, 28px);
  font-weight: 300; color: var(--text-primary);
  line-height: 1.1; letter-spacing: -0.018em;
  transition: transform 360ms cubic-bezier(.6,.2,.2,1), color 240ms;
}
.formula-card:hover .name { transform: translateX(2px); color: var(--brand-violet); }
.formula-card[aria-pressed="true"] .name { color: var(--brand-violet); }

.formula-card .best-for {
  grid-column: 3;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-style: normal;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.005em;
  line-height: 1.4;
  margin: 0;
  padding-left: 1.5rem;
  border-left: 1px solid rgba(var(--brand-violet-rgb), 0.18);
  /* Keep whole words intact — never split a word character-by-character if
     the column gets squeezed at intermediate viewport widths. The column
     itself has a 160px min in the grid template so this is a safety net. */
  min-width: 0;
  overflow-wrap: normal;
  word-break: normal;
}

/* Right price block */
.formula-card .top > div:last-child {
  grid-column: 4;
  position: relative;
  /* Two price-rows (Initial / Refill) sit side-by-side, not stacked. */
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 18px;
  text-align: right;
}

.formula-card .price-row {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  flex: 0 0 auto;
}
.formula-card .price-label {
  font-family: var(--font-body);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  line-height: 1;
}
.formula-card .price {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 300;
  font-feature-settings: 'tnum';
  color: var(--text-primary);
  line-height: 1; letter-spacing: -0.02em;
  font-style: italic;
}
.formula-card .price--refill {
  color: var(--text-secondary);
}

/* ── Smooth expansion (mirrors the FAQ open animation) ── */
/* Enable height: 0 ↔ height: auto transitions */
html { interpolate-size: allow-keywords; }

.formula-card .formula-line,
.formula-card .built-on,
.formula-card .warn,
.formula-card .card-effects {
  /* collapsed state — always laid out so transitions can run */
  grid-column: 2 / -1;
  display: block;
  height: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
  border-top-width: 0;
  opacity: 0;
  transform: translateY(-4px);
  overflow: hidden;
  pointer-events: none;
  visibility: hidden;
  transition:
    height        420ms cubic-bezier(.2,.7,.2,1),
    margin        420ms cubic-bezier(.2,.7,.2,1),
    padding       420ms cubic-bezier(.2,.7,.2,1),
    opacity       260ms ease,
    transform     420ms cubic-bezier(.2,.7,.2,1),
    visibility       0s linear 420ms,
    border-top-width 420ms cubic-bezier(.2,.7,.2,1);
}

.formula-card[aria-pressed="true"] .formula-line,
.formula-card[aria-pressed="true"] .built-on,
.formula-card[aria-pressed="true"] .warn,
.formula-card[aria-pressed="true"] .card-effects {
  height: auto;
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
  transition:
    height        420ms cubic-bezier(.2,.7,.2,1),
    margin        420ms cubic-bezier(.2,.7,.2,1),
    padding       420ms cubic-bezier(.2,.7,.2,1),
    opacity       320ms ease 80ms,
    transform     420ms cubic-bezier(.2,.7,.2,1),
    visibility       0s linear 0s,
    border-top-width 420ms cubic-bezier(.2,.7,.2,1);
}

.formula-card[aria-pressed="true"] .formula-line {
  font-size: 12.5px; color: var(--text-secondary); line-height: 1.6;
  font-feature-settings: 'tnum';
  margin-top: 0.4rem;
  padding-left: 0;
  transition-delay: 0ms, 0ms, 0ms, 60ms, 0ms, 0s, 0ms;
}
.formula-card[aria-pressed="true"] .built-on {
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--text-muted);
  margin-top: 1.1rem;
  transition-delay: 30ms, 30ms, 30ms, 110ms, 30ms, 0s, 30ms;
}
.formula-card[aria-pressed="true"] .built-on em {
  font-family: var(--font-body); font-size: 10.5px;
  font-weight: 600; font-style: normal;
  color: var(--brand-violet); text-transform: uppercase; letter-spacing: 0.16em;
  margin-left: 8px;
}
.formula-card[aria-pressed="true"] .warn {
  display: inline-flex;
  align-items: center; gap: 6px;
  font-size: 11px; color: var(--brand-pink);
  font-weight: 600; letter-spacing: 0.06em;
  margin-top: 1rem;
  transition-delay: 60ms, 60ms, 60ms, 140ms, 60ms, 0s, 60ms;
}

.formula-card .formula-line .phase {
  display: inline-block; min-width: 28px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.18em;
  color: var(--brand-violet); margin-right: 10px;
}

/* Mobile: stack name/tag/price */
@media (max-width: 720px) {
  .formula-card {
    grid-template-columns: 28px 1fr auto;
    grid-template-rows: auto auto;
    gap: 0.4rem 0.75rem;
    padding: 1.2rem 2.4rem 1.2rem 0.5rem;
  }
  .formula-card::before { grid-column: 1; grid-row: 1 / span 2; align-self: start; padding-top: 6px; }
  .formula-card .name { grid-column: 2; grid-row: 1; font-size: 22px; }
  .formula-card .top > div:last-child { grid-column: 3; grid-row: 1; }
  .formula-card .best-for { grid-column: 2 / -1; grid-row: 2; padding-left: 0; border-left: 0; font-size: 12px; }
  .formula-card[aria-pressed="true"] .formula-line,
  .formula-card[aria-pressed="true"] .built-on,
  .formula-card[aria-pressed="true"] .warn { grid-column: 2 / -1; }
}

/* ───────── Per-card side-effects (inside the main expansion) ───────── */
.formula-card .card-effects {
  /* visual reset for collapsed state */
  border-top: 1px dashed rgba(var(--brand-violet-rgb), 0);
}
.formula-card[aria-pressed="true"] .card-effects {
  grid-column: 2 / -1;
  margin-top: 1.4rem;
  padding-top: 1.2rem;
  border-top: 1px dashed rgba(var(--brand-violet-rgb), 0.18);
  transition-delay: 100ms, 100ms, 100ms, 180ms, 100ms, 0s, 100ms;
}
.card-effects__label {
  display: block;
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-violet);
  margin-bottom: 0.6rem;
}
.card-effects__list {
  list-style: none;
  margin: 0 0 0.9rem 0;
  padding: 0;
}
.card-effects__list li {
  position: relative;
  padding-left: 1.1rem;
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-body);
  margin-bottom: 0.35rem;
}
.card-effects__list li::before {
  content: "·";
  position: absolute; left: 0.25rem; top: -1px;
  color: var(--brand-violet);
  font-weight: 700;
}
.card-effects__safety {
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 70ch;
}
.card-effects__safety strong { color: var(--brand-violet); font-weight: 600; }
@media (max-width: 720px) {
  .formula-card[aria-pressed="true"] .card-effects { grid-column: 2 / -1; }
}

/* ───────── (legacy) external sideeffects details — unused ───────── */
.card-sideeffects {
  border-bottom: 1px solid rgba(var(--brand-violet-rgb), 0.10);
  background: rgba(var(--brand-violet-rgb), 0.012);
}
.card-sideeffects > summary {
  list-style: none;
  cursor: pointer;
  padding: 0.7rem 1.5rem 0.7rem calc(32px + 1.5rem + 1rem);
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transition: color 200ms;
}
.card-sideeffects > summary::-webkit-details-marker { display: none; }
.card-sideeffects > summary::before {
  content: "⚠";
  font-size: 12px;
  color: var(--brand-violet);
  letter-spacing: 0;
}
.card-sideeffects > summary::after {
  content: "+";
  margin-left: auto;
  font-size: 16px;
  font-weight: 300;
  color: var(--text-muted);
  transition: transform 240ms;
  letter-spacing: 0;
}
.card-sideeffects[open] > summary::after { content: "−"; }
.card-sideeffects > summary:hover { color: var(--brand-violet); }
.card-sideeffects__body {
  padding: 0.2rem 1.5rem 1.6rem calc(32px + 1.5rem + 1rem);
  max-width: 70ch;
}
.card-sideeffects__body p,
.card-sideeffects__body ul {
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-body);
  margin-bottom: 0.7rem;
}
.card-sideeffects__body p:last-child { margin-bottom: 0; }
.card-sideeffects__lede { color: var(--text-muted); }
.card-sideeffects__list {
  list-style: none;
  padding: 0;
  margin: 0 0 0.9rem 0;
  display: grid;
  gap: 0.45rem;
}
.card-sideeffects__list li {
  position: relative;
  padding-left: 1.1rem;
  color: var(--text-body);
}
.card-sideeffects__list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.65em;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--brand-violet);
}
.card-sideeffects__extra {
  padding: 0.7rem 0.9rem;
  background: rgba(var(--brand-violet-rgb), 0.04);
  border-left: 2px solid var(--brand-violet);
  border-radius: 2px;
  font-size: 12.5px;
}
.card-sideeffects__emerg {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 0.7rem;
}
.card-sideeffects__body strong {
  font-weight: 600;
  color: var(--text-strong);
}
@media (max-width: 720px) {
  .card-sideeffects > summary,
  .card-sideeffects__body { padding-left: 1rem; padding-right: 1rem; }
}

.collection-tabs { display: flex; gap: 4px; padding: 4px; background: rgba(var(--brand-violet-rgb), 0.06); border-radius: 9999px; align-self: flex-start; }
.collection-tab { padding: 8px 18px; border-radius: 9999px; font-size: 12.5px; font-weight: 500; color: var(--text-secondary); transition: all 200ms; }
.collection-tab[aria-pressed="true"],
.collection-tab[aria-selected="true"] { background: #fff; color: var(--brand-violet); box-shadow: 0 1px 3px rgba(0,0,0,0.05); }

.formula-list { display: flex; flex-direction: column; gap: 0; }

/* Two-tier dividers — slim editorial */
.tier-head {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  padding: 2.5rem 0 1rem;
}
.tier-head:first-child { padding-top: 0.5rem; }
.tier-head .tier-num { display: none; }
.tier-head .tier-text { display: flex; align-items: baseline; gap: 1rem; }
.tier-head .tier-eyebrow {
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--brand-violet);
  white-space: nowrap;
}
.tier-head .tier-title {
  font-family: var(--font-display);
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 300;
  font-style: italic;
  letter-spacing: -0.01em;
  color: var(--text-secondary);
  line-height: 1.05;
}
.tier-head .tier-rule {
  flex: 1;
  height: 1px;
  background: rgba(var(--brand-violet-rgb), 0.18);
  align-self: center;
}

/* ───────────── Ingredients ───────────── */
.ingredients-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .ingredients-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .ingredients-grid { grid-template-columns: repeat(3, 1fr); } }
.ingredient {
  display: flex; flex-direction: column; gap: 0.75rem;
  padding: 1.5rem;
  border: 1px solid rgba(var(--brand-violet-rgb), 0.10);
  border-radius: 14px;
  background: #fff;
  transition: all 300ms;
}
.ingredient:hover { border-color: rgba(var(--brand-violet-rgb), 0.32); transform: translateY(-1px); }
.ingredient .top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.ingredient .name { font-size: 15.5px; font-weight: 600; color: var(--text-primary); }
.ingredient .pct { font-family: var(--font-display); font-size: 28px; font-weight: 300; color: var(--brand-violet); letter-spacing: -0.02em; line-height: 1; }
.ingredient .pct small { font-size: 14px; }
.ingredient .role { font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand-pink); }
.ingredient .desc { font-size: 13.5px; color: var(--text-secondary); line-height: 1.6; }
.ingredient.warning { border-color: rgba(var(--brand-pink-rgb), 0.30); }
.ingredient.warning .pct { color: var(--brand-pink); }
.ingredient .warn-tag { font-size: 11px; font-weight: 600; color: var(--brand-pink); letter-spacing: 0.04em; display: inline-flex; align-items: center; gap: 6px; }
.section .ingredients-grid + .fine-print { text-align: center; }

/* ───────────── AM/PM Ritual ───────────── */
.ritual { padding: 7rem 0; }
.ritual__grid { display: grid; grid-template-columns: 1fr; gap: 0; border: 1px solid rgba(var(--brand-violet-rgb), 0.12); border-radius: 24px; overflow: hidden; }
@media (min-width: 1024px) { .ritual__grid { grid-template-columns: 1fr 1fr; } }
.ritual__half { padding: 3rem; min-height: 480px; display: flex; flex-direction: column; gap: 1.5rem; position: relative; }
.ritual__half.am {
  background:
    radial-gradient(ellipse at 70% 20%, rgba(var(--brand-pink-rgb), 0.18), transparent 50%),
    linear-gradient(180deg, #FCF7F4, #F8EFE8);
}
.ritual__half.pm {
  background:
    radial-gradient(ellipse at 30% 80%, rgba(var(--brand-violet-rgb), 0.40), transparent 55%),
    linear-gradient(180deg, #2D2640, #1C1830);
  color: #fff;
}
.ritual__time { font-size: 11px; font-weight: 600; letter-spacing: 0.20em; text-transform: uppercase; color: var(--brand-violet); }
.ritual__half.pm .ritual__time { color: rgba(255,255,255,0.75); }
.ritual__half h3 { font-family: var(--font-display); font-size: clamp(36px, 4vw, 56px); font-weight: 300; line-height: 1; letter-spacing: -0.022em; }
.ritual__half h3 em { font-style: italic; color: var(--brand-pink); }
.ritual__half.pm h3 em { color: var(--brand-pink); }
.ritual__steps { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 1.5rem; }
.ritual__step { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.ritual__step .dot { width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 600; flex: 0 0 24px; }
.ritual__half.am .ritual__step .dot { background: rgba(var(--brand-violet-rgb), 0.10); color: var(--brand-violet); }
.ritual__half.pm .ritual__step .dot { background: rgba(255,255,255,0.10); color: #fff; }
.ritual__half.am .ritual__step .name { color: var(--text-primary); }
.ritual__half.pm .ritual__step .name { color: rgba(255,255,255,0.85); }
.ritual__half .visual {
  position: absolute; right: 24px; top: 24px;
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.ritual__half.am .visual { background: rgba(var(--brand-pink-rgb), 0.20); color: var(--brand-pink); }
.ritual__half.pm .visual { background: rgba(255,255,255,0.10); color: #fff; }
.ritual .fine-print { text-align: center; }

/* ───────────── Comparison · editorial ledger ───────────── */
.compare-wrap {
  position: relative;
  overflow-x: auto;
  overflow-y: clip;
  -webkit-overflow-scrolling: touch;
  padding: 8px 4px 0;
}
.compare {
  width: 100%; min-width: 720px;
  border-collapse: separate; border-spacing: 0;
  font-size: 14px;
  position: relative;
}
.compare th, .compare td { padding: 22px 24px; text-align: left; vertical-align: middle; }
/* Header eyebrows */
.compare thead th {
  font-family: var(--font-body); font-size: 10px; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-muted);
  padding-top: 8px; padding-bottom: 28px;
  background: transparent;
  border-bottom: 1px solid rgba(var(--brand-violet-rgb), 0.10);
}
/* The Thryvera column · floating violet ribbon */
.compare thead th.us {
  color: #fff;
  background: var(--brand-violet);
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  border-bottom: 0;
  padding-top: 8px; padding-bottom: 28px;
}
/* Subhead under a column header */
.compare thead th .col-sub {
  display: block;
  margin-top: 5px;
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 500;
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(var(--brand-violet-rgb), 0.55);
}
.compare thead th.us .col-sub { color: rgba(255,255,255,0.7); }

/* Editorial italic row labels */
.compare tbody td:first-child {
  font-family: var(--font-display);
  font-size: 18px; font-weight: 300; font-style: italic;
  letter-spacing: -0.012em;
  color: var(--text-primary);
  padding-left: 4px;
}
/* Hairlines */
.compare tbody tr td { border-bottom: 1px solid rgba(var(--brand-violet-rgb), 0.08); }
.compare tbody tr:last-child td { border-bottom: 0; }
/* Quiet competitor cells */
.compare tbody td.muted {
  color: var(--text-muted);
  font-weight: 400;
  font-size: 13px;
}
/* The hero column */
.compare tbody td.us {
  background: var(--brand-violet);
  color: #fff;
  font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,0.10);
}
.compare tbody tr:last-child td.us {
  border-bottom: 0;
  border-bottom-left-radius: 18px;
  border-bottom-right-radius: 18px;
}
/* Pink dot — replaces check inside the violet ribbon */
.us-dot { display: inline-flex; align-items: center; gap: 12px; font-weight: 500; }
.us-dot::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand-pink);
  box-shadow: 0 0 0 4px rgba(var(--brand-pink-rgb), 0.22);
  flex-shrink: 0;
}
/* En-dash for "no" — quieter than X */
.dash {
  display: inline-block;
  color: rgba(var(--brand-violet-rgb), 0.22);
  font-size: 22px; font-weight: 200;
  line-height: 1;
}
/* Legacy icons still supported */
.compare-icon { display: inline-flex; width: 18px; height: 18px; align-items: center; justify-content: center; }
.compare-icon.yes { color: var(--brand-violet); }
.compare-icon.us-yes { color: var(--brand-pink); }
.compare-icon.no  { color: rgba(var(--brand-violet-rgb), 0.18); }

/* Methodology footnote under the comparison table */
.compare-note {
  margin-top: 1.75rem;
  padding: 1.25rem 1.5rem;
  border-top: 1px solid rgba(var(--brand-violet-rgb), 0.12);
  font-family: var(--font-body);
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 880px;
}
.compare-note strong {
  font-weight: 600;
  color: var(--text-default);
  letter-spacing: 0.02em;
}
.compare-note em {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  color: var(--brand-violet);
  font-size: 14px;
}

/* ───────────── Pricing module ───────────── */
.price-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .price-grid { grid-template-columns: 1fr 1fr; } }
.price-card {
  position: relative;
  display: flex; flex-direction: column; gap: 1.5rem;
  padding: 2.5rem;
  border: 1px solid rgba(var(--brand-violet-rgb), 0.14);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow-card);
}
.price-card.featured { border-color: rgba(var(--brand-violet-rgb), 0.40); box-shadow: var(--shadow-card-lift); }
.price-card .ribbon {
  position: absolute; top: -12px; left: 28px;
  padding: 5px 14px;
  background: var(--brand-violet); color: #fff;
  font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  border-radius: 9999px;
}
.price-card .name {
  font-family: var(--font-body); font-size: 11.5px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-muted);
}
.price-card .amount { display: flex; align-items: baseline; gap: 6px; }
.price-card .amount .num { font-family: var(--font-display); font-size: 64px; font-weight: 300; color: var(--brand-violet); letter-spacing: -0.025em; line-height: 1; }
.price-card .amount .per { font-size: 13.5px; color: var(--text-muted); }
.price-card .amount .per:first-child { margin-right: 0.25rem; }
.price-card .summary { font-size: 14.5px; color: var(--text-secondary); line-height: 1.55; }
.price-card .feature-heading { font-size: 11.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); }
.price-card ul.features { display: flex; flex-direction: column; gap: 11px; }
.price-card ul.features li { display: flex; gap: 10px; font-size: 14px; color: var(--text-secondary); align-items: flex-start; line-height: 1.5; }
.price-card ul.features li svg { width: 16px; height: 16px; flex: 0 0 16px; color: var(--brand-violet); margin-top: 2px; }
.price-card .refill { font-size: 12.5px; color: var(--text-muted); padding-top: 0.75rem; border-top: 1px dashed rgba(var(--brand-violet-rgb), 0.18); }
.price-card .refill strong { color: var(--brand-violet); font-weight: 600; }

/* ───────────── Risk reversal banner ───────────── */
.risk {
  display: flex; gap: 2rem; align-items: center;
  padding: 3rem;
  background: linear-gradient(135deg, rgba(var(--brand-violet-rgb), 0.04) 0%, rgba(var(--brand-pink-rgb), 0.06) 100%);
  border: 1px solid rgba(var(--brand-violet-rgb), 0.14);
  border-radius: 22px;
}
@media (max-width: 767px) { .risk { flex-direction: column; text-align: center; padding: 2rem; } }
.risk__shield {
  flex: 0 0 80px; width: 80px; height: 80px;
  border-radius: 50%; background: #fff;
  border: 1px solid rgba(var(--brand-violet-rgb), 0.20);
  display: flex; align-items: center; justify-content: center;
  color: var(--brand-violet);
}
.risk__shield svg { width: 32px; height: 32px; stroke-width: 1.6; }
.risk__text { display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.risk__text h3 { font-family: var(--font-display); font-size: clamp(24px, 3vw, 32px); font-weight: 400; line-height: 1.15; color: var(--text-primary); letter-spacing: -0.012em; }
.risk__text h3 em { font-style: italic; color: var(--brand-violet); }
.risk__text p { font-size: 14.5px; color: var(--text-secondary); line-height: 1.6; max-width: 56ch; }
@media (max-width: 767px) { .risk__text p { margin: 0 auto; } }

/* ───────────── Testimonials ───────────── */
.testimonials__grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 1024px) { .testimonials__grid { grid-template-columns: 1.4fr 1fr; align-items: start; } }
.testimonial-feature {
  position: relative;
  padding: 3rem;
  background: #fff;
  border: 1px solid rgba(var(--brand-violet-rgb), 0.10);
  border-radius: 22px;
  box-shadow: var(--shadow-card);
}
.testimonial-feature .quotemark { position: absolute; left: 24px; top: 12px; font-family: var(--font-display); font-size: 120px; line-height: 1; color: rgba(var(--brand-pink-rgb), 0.16); pointer-events: none; }
.testimonial-feature blockquote {
  position: relative; z-index: 1;
  font-family: var(--font-display);
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 400; line-height: 1.45;
  color: var(--text-primary);
  letter-spacing: -0.005em;
}
.testimonial-feature .attribution { display: flex; align-items: center; gap: 14px; margin-top: 1.5rem; }
.attribution .mono {
  display: flex; align-items: center; justify-content: center;
  border-radius: 9999px;
  background: linear-gradient(135deg, rgba(var(--brand-pink-rgb), 0.18), rgba(var(--brand-violet-rgb), 0.10));
  border: 1px solid rgba(var(--brand-violet-rgb), 0.14);
  font-weight: 600; color: var(--brand-violet);
  width: 56px; height: 56px; font-size: 14px; flex: 0 0 56px;
}
.attribution .who { display: flex; flex-direction: column; gap: 2px; }
.attribution .who .name { font-size: 14px; font-weight: 600; color: var(--brand-violet); }
.attribution .who .line { font-size: 11px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); }

.testimonials-secondary { display: flex; flex-direction: column; gap: 1.5rem; }
@media (min-width: 1024px) { .testimonials-secondary { margin-top: 4rem; } }
.testimonials__note {
  font-size: 13px;
  color: var(--text-muted);
}
.testimonial-small {
  padding: 1.75rem;
  background: #fff;
  border: 1px solid rgba(var(--brand-violet-rgb), 0.10);
  border-radius: 18px;
  box-shadow: var(--shadow-card);
  display: flex; flex-direction: column; gap: 1.25rem;
}
.testimonial-small blockquote { font-size: 14.5px; line-height: 1.6; color: var(--text-secondary); }
.testimonial-small .mono {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  font-size: 12px;
}

/* ───────────── Outcomes (stats) ───────────── */
.outcomes-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .outcomes-grid { grid-template-columns: repeat(3, 1fr); } }
.outcome {
  padding: 2rem;
  border: 1px solid rgba(var(--brand-violet-rgb), 0.10);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-card);
  display: flex; flex-direction: column; gap: 0.5rem;
}
.outcome .num-row { display: flex; align-items: baseline; gap: 4px; }
.outcome .num { font-family: var(--font-display); font-size: 64px; font-weight: 300; color: var(--brand-violet); line-height: 1; letter-spacing: -0.025em; }
.outcome .num.timeline-label {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(2.75rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--brand-pink);
}
.outcome .pct { font-size: 22px; font-weight: 500; color: var(--brand-violet); }
.outcome p { font-size: 14.5px; color: var(--text-secondary); line-height: 1.55; }
.outcome .timeframe { font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand-pink); }

/* ───────────── Care panel ───────────── */
.care-panel {
  background: #fff;
  border: 1px solid rgba(var(--brand-violet-rgb), 0.12);
  border-radius: 18px;
  padding: 2.5rem;
  box-shadow: 0 1px 0 rgba(var(--brand-violet-rgb), 0.04);
}
@media (min-width: 768px) { .care-panel { padding: 3rem 3.5rem; } }
.care-pillars {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 2.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .care-pillars { grid-template-columns: repeat(3, 1fr); gap: 3rem; }
}
.care-pillars li { display: flex; flex-direction: column; gap: 0.75rem; }
.care-eyebrow {
  font-family: var(--font-body);
  font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--brand-violet);
}
.care-pillars p {
  font-family: var(--font-display);
  font-size: 18px; line-height: 1.4;
  font-weight: 300;
  color: var(--text-primary);
  letter-spacing: -0.005em;
  margin: 0;
}

/* legacy provider grid (unused) */
.providers-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .providers-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1280px) { .providers-grid { grid-template-columns: repeat(3, 1fr); } }
.provider-card {
  display: flex; flex-direction: column; gap: 1rem;
  background: #fff;
  border: 1px solid rgba(var(--brand-violet-rgb), 0.10);
  border-radius: 18px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.provider-card .photo {
  aspect-ratio: 4/5;
  background:
    radial-gradient(circle at 30% 20%, rgba(var(--brand-pink-rgb), 0.10), transparent 55%),
    linear-gradient(160deg, var(--brand-violet) 0%, #2A2440 100%);
  position: relative;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.provider-card .photo::before {
  content: "";
  position: absolute; inset: -1px;
  background:
    radial-gradient(circle at 80% 80%, rgba(255,255,255,0.06), transparent 40%);
  pointer-events: none;
}
.provider-card .photo .numeral {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(110px, 18vw, 180px);
  line-height: 1;
  color: rgba(255,255,255,0.92);
  letter-spacing: -0.02em;
  position: relative;
  z-index: 1;
}
.provider-card .photo .corner-mark {
  position: absolute;
  top: 18px; left: 22px;
  font-family: var(--font-body);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  z-index: 1;
}
.provider-card .photo .corner-mark--br {
  top: auto; left: auto;
  bottom: 18px; right: 22px;
  text-align: right;
}
.provider-card .meta { padding: 1.5rem; display: flex; flex-direction: column; gap: 0.5rem; }
.provider-card .name { font-family: var(--font-display); font-size: 22px; font-weight: 400; color: var(--text-primary); letter-spacing: -0.01em; }
.provider-card .creds { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.cred-chip {
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--brand-violet); background: rgba(var(--brand-violet-rgb), 0.06);
  border: 1px solid rgba(var(--brand-violet-rgb), 0.14);
  padding: 4px 10px; border-radius: 9999px;
}
.provider-card .lic { font-size: 12px; color: var(--text-muted); letter-spacing: 0.04em; }
.provider-foot {
  margin-top: 2rem;
  max-width: 56rem;
  font-family: var(--font-body);
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text-muted);
  letter-spacing: 0.005em;
  border-top: 1px solid rgba(var(--brand-violet-rgb), 0.10);
  padding-top: 1.25rem;
}

/* ───────────── FAQ ───────────── */
.faq-list { display: flex; flex-direction: column; }
.faq-item { border-bottom: 1px solid rgba(var(--brand-violet-rgb), 0.12); }
.faq-item:last-child { border-bottom: 0; }
.faq-trigger {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  width: 100%; min-height: 64px; padding: 1.25rem 0; text-align: left;
}
.faq-trigger .q { flex: 1; font-size: 16px; font-weight: 500; color: var(--text-primary); transition: color 200ms; line-height: 1.4; }
.faq-item[data-open="true"] .faq-trigger .q { color: var(--brand-violet); }
.faq-trigger .chev { width: 18px; height: 18px; color: var(--text-muted); transition: transform 300ms cubic-bezier(.2,.7,.2,1); flex: 0 0 18px; }
.faq-item[data-open="true"] .faq-trigger .chev { transform: rotate(180deg); color: var(--brand-violet); }
.faq-panel {
  display: grid; grid-template-rows: 0fr; opacity: 0; overflow: hidden;
  transition: grid-template-rows 350ms cubic-bezier(.2,.7,.2,1), opacity 250ms;
}
.faq-item[data-open="true"] .faq-panel { grid-template-rows: 1fr; opacity: 1; }
.faq-panel > div { overflow: hidden; }
.faq-panel p { padding-bottom: 1.5rem; color: var(--text-secondary); font-size: 15px; line-height: 1.7; max-width: 65ch; }

/* ───────────── Final CTA + Footer ───────────── */
.final-cta { padding: 7rem 0 5rem; text-align: center; position: relative; overflow: hidden; }
.final-cta::before {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 800px; height: 800px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(var(--brand-pink-rgb), 0.18) 0%, transparent 60%);
  filter: blur(60px); pointer-events: none;
}
.final-cta__inner { position: relative; display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }
.final-cta h1, .final-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(48px, 6vw, 80px);
  font-weight: 300; line-height: 1.0; letter-spacing: -0.025em;
  color: #fff; max-width: 18ch;
}
.final-cta h1 em, .final-cta h2 em { font-style: italic; color: rgba(var(--brand-pink-rgb), 1); }
.final-cta p { color: rgba(255,255,255,0.78); font-size: 17px; max-width: 36rem; line-height: 1.55; }
.final-cta .gradient-line { width: 80px; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent); margin: 0.5rem 0; }
.final-cta .ctas { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 1rem; }
.final-cta .trust-row {
  font-size: 11px; letter-spacing: 0.20em; text-transform: uppercase;
  color: rgba(255,255,255,0.55); margin-top: 1.5rem;
}

footer.footer { padding: 4rem 0 3rem; border-top: 1px solid rgba(255,255,255,0.10); }
main + footer.footer.tone-violet-deep { margin-top: 0; border-top: 0; }
.footer-grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(12, 1fr); } }
.footer-about { grid-column: span 1; }
.footer-links { grid-column: span 1; }
.footer-news { grid-column: span 1; }
@media (min-width: 768px) {
  .footer-about { grid-column: span 4; }
  .footer-links { grid-column: span 2; }
  .footer-news  { grid-column: span 4; }
}
.footer-logo img { height: 22px; filter: brightness(0) invert(1); }
.footer-about p { font-size: 13.5px; color: rgba(255,255,255,0.72); line-height: 1.6; max-width: 22rem; margin-top: 1rem; }
.footer-about address { font-style: normal; font-size: 12px; color: rgba(255,255,255,0.62); line-height: 1.7; margin-top: 1.25rem; max-width: 22rem; }
.footer-about address .lic { color: rgba(255,255,255,0.78); font-weight: 500; }
.footer-about .small-print { font-size: 11px; color: rgba(255,255,255,0.50); margin-top: 1rem; max-width: 28rem; line-height: 1.55; }

.footer-links h4, .footer-news h4 { font-family: var(--font-body); font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: #fff; margin-bottom: 1rem; }
.footer-links ul { display: flex; flex-direction: column; gap: 0.625rem; }
.footer-links a { font-size: 13.5px; color: rgba(255,255,255,0.62); transition: color 200ms; }
.footer-links a:hover { color: #fff; }
.footer-news p { font-size: 13.5px; color: rgba(255,255,255,0.62); margin-bottom: 1rem; line-height: 1.55; }
.footer-news form { display: flex; gap: 8px; }
.footer-news input {
  flex: 1; min-width: 0;
  padding: 12px 16px; border-radius: 9999px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff; font-family: var(--font-body); font-size: 13.5px;
}
.footer-news input::placeholder { color: rgba(255,255,255,0.40); }
.footer-news input:focus { outline: none; border-color: rgba(255,255,255,0.50); background: rgba(255,255,255,0.14); }

.footer-bottom {
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
  margin-top: 3rem; padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.10);
  font-size: 12px; color: rgba(255,255,255,0.55);
}
@media (min-width: 768px) { .footer-bottom { flex-direction: row; justify-content: space-between; } }
.footer-bottom .legal { display: flex; gap: 1.25rem; flex-wrap: wrap; justify-content: center; }
.footer-bottom .legal a { color: inherit; transition: color 200ms; }
.footer-bottom .legal a:hover { color: #fff; }

/* Medical credit + safety disclaimer block (per MDI partner agreement) */
.footer-medical {
  border-top: 1px solid rgba(255,255,255,0.10);
  margin-top: var(--spacing-lg);
  padding-top: var(--spacing-md);
  display: grid; gap: 12px;
}
.footer-medical p {
  font-size: 12px; line-height: 1.55;
  color: rgba(255,255,255,0.62);
  letter-spacing: 0.005em; margin: 0;
}
.footer-medical strong { color: rgba(255,255,255,0.88); font-weight: 500; }
.footer-medical a { color: rgba(255,255,255,0.88); text-decoration: underline; text-underline-offset: 2px; }
.footer-medical a:hover { color: #fff; }
.footer-medical__safety { font-size: 11px !important; color: rgba(255,255,255,0.50) !important; }

/* ───────────── Sticky bottom CTA bar ───────────── */
.sticky-cta {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(var(--brand-violet-rgb), 0.18);
  border-radius: 9999px;
  box-shadow: 0 12px 32px -8px rgba(31, 22, 39, 0.18);
  transform: translateY(140%);
  transition: transform 500ms cubic-bezier(.2,.7,.2,1);
  max-width: 720px; margin: 0 auto;
}
.sticky-cta[data-show="true"] { transform: translateY(0); }
.sticky-cta .lead { font-family: var(--font-display); font-size: 17px; font-weight: 400; color: var(--text-primary); letter-spacing: -0.005em; }
.sticky-cta .lead em { font-style: italic; color: var(--brand-pink); }
.sticky-cta .sub { font-size: 11.5px; color: var(--text-muted); margin-top: 2px; }
@media (max-width: 600px) { .sticky-cta .sub { display: none; } .sticky-cta .lead { font-size: 14px; } }
.sticky-cta .copy { min-width: 0; }
.sticky-cta .actions { display: flex; gap: 8px; flex-shrink: 0; }
@media (max-width: 600px) { .sticky-cta .actions .btn { padding: 10px 16px; font-size: 13px; } }

/* ───────────── Documentation banner ───────────── */
.kit-banner {
  position: relative; z-index: 80;
  background: #1F1627; color: #fff; font-size: 11.5px; padding: 8px 20px;
  display: flex; justify-content: space-between; align-items: center;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace; letter-spacing: 0.04em;
}
.kit-banner b { color: var(--brand-pink); font-weight: 500; }
@media (max-width: 640px) { .kit-banner span:last-child { display: none; } }


/* ─── Responsive type clamps & narrow-viewport fixes ─── */
.display-1 { font-size: clamp(2.25rem, 5.2vw, 4.5rem); line-height: 1.05; }
.display-2 { font-size: clamp(1.85rem, 4vw, 3.25rem); line-height: 1.1; }
.lede, .hero__lede { font-size: clamp(1rem, 1.4vw, 1.15rem); }
h1, h2, h3 { text-wrap: balance; word-break: normal; overflow-wrap: break-word; hyphens: auto; }
p, .lede { text-wrap: pretty; overflow-wrap: break-word; }

/* ───────────── Mobile pass ─────────────
   No overflow-x:hidden hack — every container respects the viewport. */
@media (max-width: 640px) {
  .btn { white-space: normal; }
  .btn-lg { font-size: 15px; padding: 16px 22px; min-height: 52px; }
  .btn-md { font-size: 14px; padding: 12px 20px; min-height: 44px; }
  /* Stack hero CTAs full-width so two big buttons never collide on small screens */
  .hero__cta-row, .ctas { width: 100%; flex-direction: column; align-items: stretch; gap: 10px; }
  .hero__cta-row .btn, .ctas .btn { width: 100%; justify-content: center; }
  .trust-row { display: block; text-align: center; }
  .display-1 { font-size: clamp(2rem, 11vw, 2.75rem); }
  .display-2 { font-size: clamp(1.65rem, 8vw, 2.25rem); }
  .display-3 { font-size: clamp(1.4rem, 6vw, 1.75rem); }
  /* Skewed italic em can push beyond container — clamp it */
  .display-1 em { transform: none; }
  .hero__headline br, .display-2 br { display: none; }
  .hero__headline { max-width: 100%; }
  .hero__pill { font-size: 10.5px; padding: 6px 12px; gap: 8px; }
  .hero__trust { gap: 8px 14px; }
  .trust-chip { font-size: 10px; letter-spacing: 0.08em; }
  /* Headline serif fonts overflow on long words at mobile sizes —
     allow safe breaks instead of letting them push the page wider. */
  .display-1, .display-2, .display-3 { overflow-wrap: anywhere; word-break: normal; hyphens: auto; }
  .nav-cta { padding: 7px 14px; font-size: 12.5px; min-height: 34px; }
  .site-nav .nav-logo img { height: 20px; }
}

@media (max-width: 768px) {
  /* Tables and other rare wide content get scroll containers below */
  .compare-wrap { margin: 0 -1.25rem; padding-left: 1.25rem; padding-right: 1.25rem; }
  /* Sticky CTA: shrink so it never collides with viewport edges */
  .sticky-cta { padding: 10px 14px; gap: 10px; }
}

@media (max-width: 640px) {
  /* Tighten the compare table on phones so columns stay readable while
     keeping the horizontal scroll contained inside .compare-wrap (the
     page itself must never grow wider than the viewport). */
  .compare { min-width: 560px; font-size: 12.5px; }
  .compare th, .compare td { padding: 14px 14px; }
  .compare tbody td:first-child { font-size: 15px; }
  .compare thead th { padding-bottom: 18px; }
}

/* Belt-and-braces: prevent rogue children from pushing the page wider
   than the viewport, without hiding genuine overflow elsewhere. */
html, body { max-width: 100%; }
