/* ============================================================================
   compound.BUZZ — Independent Pharmacy Growth (isolated Google Ads funnel)
   Dark award identity. LIME is an accent, never a fill. Max ~2 lime moments
   per viewport. Everything else = carbon, bone text, hairline rules.
   NO medication names. NO molecular imagery. NO links off-site.
   ============================================================================ */

:root {
  --carbon: #0a0b0d;
  --carbon-1: #101216;
  --carbon-2: #16191f;
  --carbon-3: #1d2128;
  --carbon-4: #262b33;

  --bone: #f6f3ec;
  --bone-dim: #d2d6dd;
  --muted: #99a0aa;
  --faint: #6b727c;

  --lime: #c6ff3d;
  --lime-deep: #a6e000;
  --on-lime: #0a0b0d;

  --rule: rgba(242, 239, 232, 0.10);
  --rule-strong: rgba(242, 239, 232, 0.18);
  --card: rgba(242, 239, 232, 0.025);
  --card-hover: rgba(242, 239, 232, 0.05);

  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', monospace;

  --step--2: clamp(0.72rem, 0.70rem + 0.10vw, 0.78rem);
  --step--1: clamp(0.83rem, 0.79rem + 0.18vw, 0.92rem);
  --step-0: clamp(1rem, 0.95rem + 0.25vw, 1.15rem);
  --step-1: clamp(1.25rem, 1.13rem + 0.6vw, 1.6rem);
  --step-2: clamp(1.6rem, 1.35rem + 1.2vw, 2.3rem);
  --step-3: clamp(2.1rem, 1.6rem + 2.4vw, 3.4rem);
  --step-4: clamp(2.7rem, 1.9rem + 3.9vw, 5rem);
  --step-5: clamp(3.1rem, 2rem + 5.6vw, 6.4rem);

  --maxw: 1180px;
  --measure: 62ch;
  --gutter: clamp(1.1rem, 0.6rem + 2.4vw, 2.6rem);
  --section-y: clamp(4.5rem, 3rem + 7vw, 9rem);
  --radius: 16px;

  --honeycomb: url("data:image/svg+xml,%3Csvg width='28' height='49' viewBox='0 0 28 49' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23f2efe8' fill-opacity='0.022' fill-rule='evenodd'%3E%3Cpath d='M13.99 9.25l13 7.5v15l-13 7.5L1 31.75v-15l12.99-7.5zM3 17.9v12.7l11 6.35 11-6.35V17.9l-11-6.34L3 17.9zM0 15l12.98-7.5V0h-2v6.35L0 12.69v2.3zm0 18.5L12.98 41v8h-2v-6.85L0 35.81v-2.3zM15 0v7.5L27.99 15H28v-2.31h-.01L17 6.35V0h-2zm0 49v-8l12.99-7.5H28v2.31h-.01L17 42.15V49h-2z'/%3E%3C/g%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--carbon);
  color: var(--bone);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
strong { color: var(--bone); font-weight: 600; }
em { font-style: italic; color: var(--lime); font-variation-settings: 'opsz' 20; }

::selection { background: var(--lime); color: var(--on-lime); }

/* ---- Layers -------------------------------------------------------------- */
#scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  /* Instant LCP backdrop before WebGL paints. */
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(198,255,61,0.06), transparent 55%),
    radial-gradient(90% 60% at 80% 110%, rgba(56,72,20,0.20), transparent 60%),
    var(--carbon);
  pointer-events: none;
}
#scene canvas { display: block; width: 100%; height: 100%; opacity: 0; transition: opacity 1.4s ease; }
/* Deliberately barely-there — an ambient texture, never a focal point. */
#scene.ready canvas { opacity: 0.14; }

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

/* Vignette so content always reads over the scene. */
.page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    var(--honeycomb),
    radial-gradient(130% 92% at 50% 42%, rgba(10,11,13,0.34) 0%, rgba(10,11,13,0.30) 34%, rgba(10,11,13,0.74) 100%),
    linear-gradient(180deg, rgba(10,11,13,0.42), rgba(10,11,13,0.14) 26%, rgba(10,11,13,0.42));
}

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

/* ---- Nav ----------------------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem var(--gutter);
  backdrop-filter: blur(10px);
  background: linear-gradient(180deg, rgba(10,11,13,0.72), rgba(10,11,13,0));
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.nav.scrolled { border-color: var(--rule); background: rgba(10,11,13,0.86); }
.brand { display: flex; align-items: center; gap: .6rem; }
.brand img { height: 26px; width: auto; }
.brand .wordmark { font-family: var(--font-display); font-size: 1.12rem; letter-spacing: -0.02em; color: var(--bone); }
.brand .wordmark b { color: var(--lime); font-weight: 600; }

/* ---- Buttons ------------------------------------------------------------- */
.btn {
  --pad-y: 0.9rem; --pad-x: 1.5rem;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-body); font-weight: 600; font-size: var(--step--1);
  letter-spacing: 0.01em;
  padding: var(--pad-y) var(--pad-x);
  border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .18s ease, box-shadow .25s ease, background .2s ease, color .2s ease, border-color .2s ease;
  will-change: transform;
}
.btn--primary {
  background: var(--lime); color: var(--on-lime);
  box-shadow: 0 0 0 rgba(198,255,61,0);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px -12px rgba(198,255,61,0.55); }
.btn--ghost { background: transparent; color: var(--bone); border-color: var(--rule-strong); }
.btn--ghost:hover { border-color: var(--bone-dim); transform: translateY(-2px); }
.btn--sm { --pad-y: 0.6rem; --pad-x: 1.05rem; font-size: var(--step--2); }
.btn--lg { --pad-y: 1.05rem; --pad-x: 2rem; font-size: var(--step-0); }
.btn .arw { transition: transform .2s ease; }
.btn:hover .arw { transform: translateX(3px); }

/* ---- Eyebrow / markers --------------------------------------------------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-mono); font-size: var(--step--2);
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted);
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--lime); }

/* ---- Reveal engine (clean, content-first: fade + rise, NO blur) ----------
   JS adds .in via IntersectionObserver once the element scrolls into view. --- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* content-first layer: below the hero, everything sits on a solid surface so the
   ambient scene never competes with the copy. */
.below { position: relative; z-index: 1; background: var(--carbon); }
.below::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: var(--honeycomb); opacity: .6; }

/* ---- Section shell ------------------------------------------------------- */
section { padding-block: var(--section-y); position: relative; }
.section-head { max-width: 44ch; margin-bottom: clamp(2rem, 1rem + 3vw, 3.4rem); }
.section-head h2 { font-size: var(--step-3); margin-top: .9rem; }
.section-head p { color: var(--bone-dim); margin-top: 1rem; font-size: var(--step-1); line-height: 1.4; font-family: var(--font-display); font-weight: 400; }
.lead { color: var(--bone-dim); max-width: var(--measure); }

/* ---- Hero ---------------------------------------------------------------- */
.hero { min-height: 92svh; display: flex; flex-direction: column; justify-content: center; padding-top: clamp(2rem, 6vh, 5rem); }
.hero .eyebrow { margin-bottom: 1.4rem; }
.hero h1 { font-size: var(--step-5); max-width: 16ch; text-shadow: 0 2px 40px rgba(0,0,0,0.6); }
.hero h1 .hl { color: var(--lime); font-style: italic; }
.hero .sub { margin-top: 1.6rem; color: var(--bone-dim); max-width: 54ch; font-size: var(--step-1); line-height: 1.45; text-shadow: 0 1px 20px rgba(0,0,0,0.55); }
.hero .cta-row { margin-top: 2.2rem; display: flex; flex-wrap: wrap; gap: .9rem; align-items: center; }
.hero .cta-note { margin-top: 1.1rem; color: var(--muted); font-size: var(--step--1); max-width: 46ch; }
.hero .cta-note b { color: var(--bone-dim); }
.scroll-cue { margin-top: clamp(2rem, 5vh, 4rem); display: inline-flex; align-items: center; gap: .6rem; color: var(--faint); font-family: var(--font-mono); font-size: var(--step--2); letter-spacing: .18em; text-transform: uppercase; }
.scroll-cue .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--lime); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0%,100%{ transform: translateY(0); opacity: 1 } 50%{ transform: translateY(6px); opacity: .4 } }

/* ---- Proof bar ----------------------------------------------------------- */
.proofbar { margin-top: clamp(2.4rem, 4vh, 3.6rem); display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; }
.proofbar .cell { background: rgba(10,11,13,0.55); padding: 1.1rem 1.2rem; }
.proofbar .v { font-family: var(--font-display); font-size: var(--step-2); color: var(--bone); line-height: 1; }
.proofbar .l { color: var(--muted); font-size: var(--step--1); margin-top: .35rem; }

/* ---- Split (problem / dream) --------------------------------------------- */
.split { display: grid; gap: clamp(1.2rem, 1rem + 2vw, 2.2rem); grid-template-columns: 1fr; }
.bigline { font-family: var(--font-display); font-size: var(--step-3); line-height: 1.08; letter-spacing: -0.02em; max-width: 20ch; text-shadow: 0 2px 30px rgba(0,0,0,0.5); }
.bigline .hl { color: var(--lime); font-style: italic; }
.prose p { color: var(--bone-dim); max-width: var(--measure); }
.prose p + p { margin-top: 1rem; }

/* ---- The Trust Engine (system) ------------------------------------------- */
.marquee { display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; margin-bottom: 1px; }
.mrow { background: rgba(10,11,13,0.55); padding: clamp(1.4rem, 1rem + 2vw, 2.4rem); display: grid; gap: .5rem 1.4rem; grid-template-columns: 1fr; align-items: start; transition: background .25s ease; }
.mrow:hover { background: var(--card-hover); }
.mrow .n { font-family: var(--font-mono); color: var(--lime-deep); font-size: var(--step--1); letter-spacing: .1em; }
.mrow h3 { font-size: var(--step-1); }
.mrow .d { color: var(--bone-dim); max-width: 56ch; }
.mrow .anchor { color: var(--faint); font-size: var(--step--1); font-family: var(--font-mono); letter-spacing: .01em; }
.mrow .anchor b { color: var(--muted); font-weight: 500; }

/* full 11-part grid */
.stackgrid { display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; grid-template-columns: 1fr; }
.stackgrid .cell { background: rgba(10,11,13,0.5); padding: 1.3rem 1.4rem; display: flex; gap: 1rem; align-items: baseline; transition: background .2s ease; }
.stackgrid .cell:hover { background: var(--card-hover); }
.stackgrid .cell .n { font-family: var(--font-mono); color: var(--lime-deep); font-size: var(--step--1); min-width: 2ch; }
.stackgrid .cell .t { font-family: var(--font-display); font-size: var(--step-0); color: var(--bone); }
.stackgrid .cell .b { color: var(--muted); font-size: var(--step--1); margin-top: .2rem; }

.anchor-summary { margin-top: 1.6rem; padding: 1.3rem 1.5rem; border-left: 2px solid var(--lime); background: linear-gradient(90deg, rgba(198,255,61,0.06), transparent 70%); border-radius: 0 var(--radius) var(--radius) 0; color: var(--bone-dim); max-width: var(--measure); }
.anchor-summary b { color: var(--bone); }

.speed-chip { display: inline-flex; align-items: center; gap: .55rem; margin-top: 1.4rem; padding: .55rem 1rem; border: 1px solid var(--rule-strong); border-radius: 999px; font-family: var(--font-mono); font-size: var(--step--1); color: var(--bone-dim); }
.speed-chip b { color: var(--lime); }

/* ---- Stats count-up ------------------------------------------------------ */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.4rem, 1rem + 2vw, 2.6rem); }
.stat .v { font-family: var(--font-display); font-size: var(--step-4); line-height: 1; color: var(--bone); font-variation-settings: 'opsz' 40; }
.stat .v .u { color: var(--lime); }
.stat .l { color: var(--muted); font-size: var(--step--1); margin-top: .6rem; max-width: 26ch; }

/* ---- Testimonials -------------------------------------------------------- */
.quotes { display: grid; gap: 1.2rem; grid-template-columns: 1fr; margin-top: 2.6rem; }
.quote { border: 1px solid var(--rule); background: var(--card); border-radius: var(--radius); padding: clamp(1.4rem, 1rem + 2vw, 2rem); }
.quote p { font-family: var(--font-display); font-weight: 400; font-size: var(--step-1); line-height: 1.4; color: var(--bone); }
.quote .who { margin-top: 1.2rem; display: flex; flex-direction: column; gap: .1rem; }
.quote .who .nm { color: var(--bone); font-weight: 600; font-size: var(--step--1); }
.quote .who .rl { color: var(--faint); font-size: var(--step--2); }
.quote .metric { margin-top: .9rem; font-family: var(--font-mono); font-size: var(--step--2); letter-spacing: .02em; color: var(--lime-deep); }
.disclaimer { margin-top: 2rem; color: var(--faint); font-size: var(--step--2); max-width: var(--measure); line-height: 1.55; }

/* ---- Value stack --------------------------------------------------------- */
.vs-groups { display: grid; gap: 1.2rem; grid-template-columns: 1fr; }
.vs-group { border: 1px solid var(--rule); background: var(--card); border-radius: var(--radius); padding: clamp(1.4rem, 1rem + 2vw, 1.9rem); }
.vs-group h3 { font-size: var(--step-1); margin-bottom: 1rem; }
.vs-group ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.vs-group li { display: flex; gap: .7rem; align-items: baseline; color: var(--bone-dim); font-size: var(--step--1); line-height: 1.4; }
.vs-group li::before { content: ""; flex: 0 0 auto; width: 9px; height: 9px; margin-top: .35rem; background: var(--lime); clip-path: polygon(25% 0,75% 0,100% 50%,75% 100%,25% 100%,0 50%); }
.vs-close { margin-top: 1.6rem; font-family: var(--font-display); font-size: var(--step-1); line-height: 1.35; color: var(--bone); max-width: 40ch; }

/* ---- FAQ ----------------------------------------------------------------- */
.faq { border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; padding: 1.3rem 0; display: flex; justify-content: space-between; gap: 1.5rem; align-items: baseline; font-family: var(--font-display); font-size: var(--step-1); color: var(--bone); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { flex: 0 0 auto; color: var(--lime); font-family: var(--font-mono); transition: transform .25s ease; }
.faq details[open] summary .ic { transform: rotate(45deg); }
.faq .ans { padding: 0 0 1.4rem; color: var(--bone-dim); max-width: var(--measure); }

/* ---- Booking ------------------------------------------------------------- */
.book-wrap { border: 1px solid var(--rule-strong); background: rgba(16,18,22,0.66); border-radius: var(--radius); padding: clamp(1rem, .6rem + 2vw, 1.6rem); backdrop-filter: blur(6px); }
.book-wrap iframe { width: 100%; min-height: 720px; border: 0; border-radius: 12px; background: var(--carbon-1); }

/* ---- Lead form (secondary path) ------------------------------------------ */
.form { display: grid; gap: .9rem; max-width: 520px; }
.form .row { display: grid; gap: .9rem; grid-template-columns: 1fr; }
.field label { display: block; font-size: var(--step--2); color: var(--muted); font-family: var(--font-mono); letter-spacing: .06em; text-transform: uppercase; margin-bottom: .4rem; }
.field input, .field select {
  width: 100%; background: var(--carbon-1); color: var(--bone); border: 1px solid var(--rule-strong);
  border-radius: 10px; padding: .85rem 1rem; font: inherit; font-size: var(--step--1); transition: border-color .2s ease;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--lime); }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2399a0aa' d='M6 8 0 0h12z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.4rem; }
.hp { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; opacity: 0; pointer-events: none; }
.form-note { color: var(--faint); font-size: var(--step--2); }
.form-status { font-size: var(--step--1); min-height: 1.2em; }
.form-status.ok { color: var(--lime); }
.form-status.err { color: #ff6b6b; }

/* ---- Sticky CTA ---------------------------------------------------------- */
.sticky-cta {
  position: fixed; left: 50%; bottom: 1rem; transform: translate(-50%, 140%);
  z-index: 50; transition: transform .35s cubic-bezier(.2,.9,.3,1);
  box-shadow: 0 20px 50px -18px rgba(0,0,0,.7);
}
.sticky-cta.show { transform: translate(-50%, 0); }

/* ---- Footer -------------------------------------------------------------- */
.foot { border-top: 1px solid var(--rule); padding-block: clamp(2.4rem, 2rem + 3vw, 4rem); color: var(--muted); position: relative; z-index: 1; background: var(--carbon); }
.foot .top { display: flex; flex-wrap: wrap; gap: 1.4rem; justify-content: space-between; align-items: flex-end; }
.foot .fine { margin-top: 2rem; color: var(--faint); font-size: var(--step--2); max-width: 70ch; line-height: 1.6; }
.foot .cprt { margin-top: 1rem; color: var(--faint); font-size: var(--step--2); }

/* ---- CTA band ------------------------------------------------------------ */
.ctaband { text-align: center; }
.ctaband h2 { font-size: var(--step-4); max-width: 18ch; margin-inline: auto; }
.ctaband h2 .hl { color: var(--lime); font-style: italic; }
.ctaband p { color: var(--bone-dim); margin: 1.2rem auto 0; max-width: 46ch; }
.ctaband .cta-row { margin-top: 2rem; display: flex; justify-content: center; flex-wrap: wrap; gap: .9rem; }

/* ---- Pre-sell (simple, no WebGL) ----------------------------------------- */
.presell { background: var(--carbon); }
.presell .page::before { background: var(--honeycomb), radial-gradient(120% 80% at 50% -5%, rgba(198,255,61,0.05), transparent 55%); }
.article { max-width: 720px; margin-inline: auto; padding-block: clamp(3rem, 2rem + 5vw, 6rem); }
.article .kicker { color: var(--lime-deep); font-family: var(--font-mono); font-size: var(--step--2); letter-spacing: .18em; text-transform: uppercase; }
.article h1 { font-size: var(--step-4); margin-top: 1rem; max-width: 20ch; }
.article h1 .hl { color: var(--lime); font-style: italic; }
.article .dek { color: var(--bone-dim); font-size: var(--step-1); margin-top: 1.2rem; line-height: 1.45; font-family: var(--font-display); font-weight: 400; }
.article .body { margin-top: 2.4rem; }
.article .body p { color: var(--bone-dim); font-size: var(--step-0); line-height: 1.7; }
.article .body p + p { margin-top: 1.2rem; }
.article .body h2 { font-size: var(--step-2); margin: 2.6rem 0 1rem; }
.article .pullstat { margin: 2.4rem 0; padding: 1.4rem 1.6rem; border-left: 2px solid var(--lime); background: linear-gradient(90deg, rgba(198,255,61,0.06), transparent 70%); }
.article .pullstat .v { font-family: var(--font-display); font-size: var(--step-3); color: var(--bone); line-height: 1; }
.article .pullstat .l { color: var(--muted); font-size: var(--step--1); margin-top: .4rem; }
.article .cta-inline { margin: 2.6rem 0; display: flex; flex-wrap: wrap; gap: .9rem; align-items: center; }

/* ============================================================================
   RESPONSIVE
   ============================================================================ */
@media (min-width: 720px) {
  .proofbar { grid-template-columns: repeat(4, 1fr); }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .split { grid-template-columns: 1.1fr 1fr; align-items: center; }
  .mrow { grid-template-columns: auto 1fr auto; align-items: baseline; }
  .stackgrid { grid-template-columns: repeat(2, 1fr); }
  .vs-groups { grid-template-columns: repeat(3, 1fr); }
  .quotes { grid-template-columns: repeat(3, 1fr); }
  .form .row { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .stackgrid { grid-template-columns: repeat(3, 1fr); }
}

/* ---- Reduced motion / no-JS: everything readable, no transforms ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .scroll-cue .dot { animation: none; }
  #scene canvas { transition: none; }
}
.no-js .reveal { opacity: 1; transform: none; }
.no-fx .reveal { opacity: 1; transform: none; }

/* ============================================================================
   LIGHT THEME  (A/B variant — <html data-theme="light">)
   Flips the token scale + adds light surfaces for the few hardcoded darks.
   Lime stays the accent FILL (buttons); accent TEXT darkens so it reads on white.
   ============================================================================ */
:root[data-theme="light"] {
  --carbon: #f5f4ef;
  --carbon-1: #ffffff;
  --carbon-2: #faf9f5;
  --carbon-3: #f0efe9;
  --carbon-4: #e6e5dd;

  --bone: #17181f;
  --bone-dim: #3f434d;
  --muted: #646a76;
  --faint: #949aa4;

  --lime-deep: #4d6b00;              /* readable accent text on white */

  --rule: rgba(20,22,28,0.12);
  --rule-strong: rgba(20,22,28,0.22);
  --card: rgba(20,22,28,0.022);
  --card-hover: rgba(20,22,28,0.05);

  --honeycomb: url("data:image/svg+xml,%3Csvg width='28' height='49' viewBox='0 0 28 49' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23141820' fill-opacity='0.03' fill-rule='evenodd'%3E%3Cpath d='M13.99 9.25l13 7.5v15l-13 7.5L1 31.75v-15l12.99-7.5zM3 17.9v12.7l11 6.35 11-6.35V17.9l-11-6.34L3 17.9zM0 15l12.98-7.5V0h-2v6.35L0 12.69v2.3zm0 18.5L12.98 41v8h-2v-6.85L0 35.81v-2.3zM15 0v7.5L27.99 15H28v-2.31h-.01L17 6.35V0h-2zm0 49v-8l12.99-7.5H28v2.31h-.01L17 42.15V49h-2z'/%3E%3C/g%3E%3C/svg%3E");
}

/* page vignette: drop the dark radial on light, keep a whisper of texture */
:root[data-theme="light"] .page::before {
  background: var(--honeycomb), radial-gradient(130% 92% at 50% 42%, transparent 45%, rgba(20,22,28,0.05) 100%);
}

/* accent TEXT → dark olive-green so it reads on white (fills stay lime) */
:root[data-theme="light"] .hl,
:root[data-theme="light"] em,
:root[data-theme="light"] .brand .wordmark b,
:root[data-theme="light"] .foot .wordmark b,
:root[data-theme="light"] .stat .v .u,
:root[data-theme="light"] .step .sn,
:root[data-theme="light"] .plat .chip b,
:root[data-theme="light"] .speed-chip b,
:root[data-theme="light"] .faq summary .ic,
:root[data-theme="light"] .level li.on .lv { color: #4d6b00; }

/* light surfaces for the components that hardcode a dark fill */
:root[data-theme="light"] .nav { background: linear-gradient(180deg, rgba(245,244,239,0.86), rgba(245,244,239,0)); }
:root[data-theme="light"] .nav.scrolled { background: rgba(245,244,239,0.92); border-color: var(--rule); }
:root[data-theme="light"] .proofbar .cell,
:root[data-theme="light"] .mrow,
:root[data-theme="light"] .stackgrid .cell,
:root[data-theme="light"] .tstep { background: #ffffff; }
:root[data-theme="light"] .book-wrap { background: #ffffff; }
:root[data-theme="light"] .compare .crow.head .cc { background: rgba(20,22,28,0.035); }
:root[data-theme="light"] .reason .ic { background: rgba(77,107,0,0.12); color: #4d6b00; }
:root[data-theme="light"] .vs-group li::before,
:root[data-theme="light"] .target::before { background: #6a8f00; }

/* kill the over-scene text shadows on light (they were for the dark corridor) */
:root[data-theme="light"] .hero h1,
:root[data-theme="light"] .hero .sub,
:root[data-theme="light"] .bigline { text-shadow: none; }

/* selection reads fine either way */
:root[data-theme="light"] ::selection { background: var(--lime); color: #14160f; }
