/* =========================================================
   Online Reading Tutor — dyslexia-friendly design system

   Principles baked in:
   - Lexend (research-validated for reading proficiency) as default
   - OpenDyslexic toggle available via accessibility toolbar
   - Cream backgrounds, never pure white (reduces glare)
   - Dark slate text, never pure black (reduces contrast strain)
   - Generous line-height (1.65+) and letter-spacing
   - Left-aligned body text (never justified — avoids "rivers")
   - No italics on body, no all-caps blocks of text
   - Calm motion, with prefers-reduced-motion respected
   ========================================================= */

/* OpenDyslexic — loaded via data URL fallback (CDN) */
@font-face {
  font-family: "OpenDyslexic";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("https://cdn.jsdelivr.net/npm/open-dyslexic@1.0.3/woff/OpenDyslexic-Regular.woff") format("woff");
}
@font-face {
  font-family: "OpenDyslexic";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("https://cdn.jsdelivr.net/npm/open-dyslexic@1.0.3/woff/OpenDyslexic-Bold.woff") format("woff");
}

/* ---------- TOKENS ---------- */
:root {
  /* Brand */
  --c-coral: #FF8C61;
  --c-coral-deep: #E56C3C;
  --c-coral-soft: #FFE3D4;
  --c-sky: #4A90E2;
  --c-sky-soft: #E1ECF7;
  --c-mint: #88B6A3;
  --c-mint-soft: #E3F1E5;
  --c-butter: #FFD86B;
  --c-butter-soft: #FFF3C2;

  /* Cream theme (default) */
  --bg: #FBF6EE;
  --bg-soft: #FFFCF7;
  --bg-tint: #F3EBDB;
  --surface: #FFFFFF;
  --ink: #2D3142;        /* deep slate — not pure black */
  --ink-soft: #5C6378;
  --ink-mute: #8A91A4;
  --border: #ECE2CE;
  --border-soft: #F2EADA;
  --ring: rgba(255, 140, 97, 0.35);
  --shadow-sm: 0 1px 2px rgba(45,49,66,.05), 0 2px 6px rgba(45,49,66,.04);
  --shadow-md: 0 4px 12px rgba(45,49,66,.06), 0 10px 28px rgba(45,49,66,.06);
  --shadow-lg: 0 12px 24px rgba(45,49,66,.08), 0 30px 60px rgba(45,49,66,.08);

  /* Type scale (1.2 minor third — soft) */
  --fs-xs: 0.86rem;
  --fs-sm: 0.95rem;
  --fs-base: 1.08rem;   /* 17.3px — generous for dyslexia */
  --fs-lg: 1.22rem;
  --fs-xl: 1.5rem;
  --fs-2xl: 2rem;
  --fs-3xl: 2.7rem;
  --fs-4xl: 3.5rem;

  /* Spacing */
  --gap-1: .5rem;
  --gap-2: .75rem;
  --gap-3: 1rem;
  --gap-4: 1.5rem;
  --gap-5: 2rem;
  --gap-6: 3rem;
  --gap-7: 4.5rem;
  --gap-8: 6rem;

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 26px;
  --radius-xl: 36px;

  /* Dyslexia-friendly text rhythm */
  --leading: 1.65;
  --tracking: 0.01em;
  --word-spacing: 0.05em;
  --para-max: 64ch;
}

/* THEME VARIANTS via [data-theme] */
[data-theme="butter"] { --bg:#FFF3C2; --bg-soft:#FFF9DD; --bg-tint:#F3E59C; --border:#EBD680; --border-soft:#F4E6A0; }
[data-theme="mint"]   { --bg:#E3F1E5; --bg-soft:#EFF7EF; --bg-tint:#C8E3CD; --border:#B7D6BD; --border-soft:#D1E6D5; }
[data-theme="sky"]    { --bg:#E1ECF7; --bg-soft:#F0F4FB; --bg-tint:#C5D9EE; --border:#B5C8E0; --border-soft:#D1DEF0; }
[data-theme="dim"]    {
  --bg:#23262F; --bg-soft:#2A2E38; --bg-tint:#161821; --surface:#2F3340;
  --ink:#F4EDD9; --ink-soft:#C3BDA8; --ink-mute:#8C8775;
  --border:#3A3F4E; --border-soft:#2D313D;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow-md: 0 6px 18px rgba(0,0,0,.35);
  --shadow-lg: 0 20px 50px rgba(0,0,0,.5);
  --c-coral-soft: rgba(255,140,97,.18);
  --c-sky-soft:   rgba(74,144,226,.20);
  --c-mint-soft:  rgba(136,182,163,.20);
  --c-butter-soft:rgba(255,216,107,.18);
}

/* FONT VARIANTS */
[data-font="lexend"]  { --font-body: "Lexend", system-ui, -apple-system, "Segoe UI", sans-serif; --font-display: "Fraunces", Georgia, serif; }
[data-font="opendys"] { --font-body: "OpenDyslexic", "Lexend", system-ui, sans-serif; --font-display: "OpenDyslexic", "Fraunces", Georgia, serif; }
[data-font="system"]  { --font-body: system-ui, -apple-system, "Segoe UI", sans-serif; --font-display: Georgia, "Times New Roman", serif; }

/* SPACING VARIANTS */
[data-spacing="normal"] { --leading: 1.5;  --tracking: 0;       --word-spacing: 0; }
[data-spacing="cozy"]   { --leading: 1.65; --tracking: 0.01em;  --word-spacing: 0.05em; }
[data-spacing="airy"]   { --leading: 1.85; --tracking: 0.04em;  --word-spacing: 0.12em; }

/* SIZE VARIANTS — scaled via root font-size */
html[data-size="90"]  { font-size: 14.5px; }
html[data-size="100"] { font-size: 16px; }
html[data-size="115"] { font-size: 18.4px; }
html[data-size="135"] { font-size: 21.6px; }

/* ---------- BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body, "Lexend", system-ui, sans-serif);
  font-size: var(--fs-base);
  line-height: var(--leading);
  letter-spacing: var(--tracking);
  word-spacing: var(--word-spacing);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  transition: background-color .35s ease, color .35s ease;
}
/* Prevent horizontal scroll from decorative blobs/floaters,
   while keeping vertical scroll on the document root. */
main, .footer { overflow-x: clip; }

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

h1, h2, h3, h4 {
  font-family: var(--font-display, "Fraunces", Georgia, serif);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0 0 .6em;
  color: var(--ink);
}
p { margin: 0 0 1em; max-width: var(--para-max); }
strong { font-weight: 600; }
em { font-style: normal; background: var(--c-coral-soft); padding: 0 .25em; border-radius: 6px; }
a { color: var(--c-coral-deep); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

button { font: inherit; cursor: pointer; }
:focus-visible {
  outline: 3px solid var(--c-coral);
  outline-offset: 3px;
  border-radius: 6px;
}
[data-theme="dim"] :focus-visible { outline-color: var(--c-butter); }

::selection { background: var(--c-coral-soft); color: var(--ink); }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .8rem 1.25rem;
  border-radius: 999px;
  border: 2px solid transparent;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none !important;
  transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn--lg { padding: 1rem 1.55rem; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn--primary {
  background: var(--c-coral);
  color: #fff;
  box-shadow: 0 6px 16px rgba(255, 140, 97, .35), inset 0 -2px 0 rgba(0,0,0,.08);
}
.btn--primary:hover { background: var(--c-coral-deep); transform: translateY(-1px); box-shadow: 0 10px 22px rgba(255, 140, 97, .40); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--border);
}
.btn--ghost:hover { background: var(--bg-soft); border-color: var(--ink-mute); }
[data-theme="dim"] .btn--ghost { color: var(--ink); border-color: var(--border); }
[data-theme="dim"] .btn--ghost:hover { background: var(--bg-soft); }

/* ---------- ACCESSIBILITY TOOLBAR ---------- */
.a11y {
  position: fixed;
  bottom: 1.25rem; right: 1.25rem;
  z-index: 200;
  font-family: var(--font-body);
}
.a11y__toggle {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--surface);
  color: var(--ink);
  border: 1.5px solid var(--border);
  padding: .55rem .9rem;
  border-radius: 999px;
  box-shadow: var(--shadow-md);
  font-weight: 500;
  font-size: .95rem;
  transition: all .2s ease;
}
.a11y__toggle:hover { transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.a11y__toggle span { display: none; }
@media (min-width: 720px) { .a11y__toggle span { display: inline; } }

.a11y__panel {
  position: absolute; bottom: calc(100% + .6rem); right: 0;
  width: min(340px, 88vw);
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 1.25rem 1.1rem;
  display: grid;
  gap: 1rem;
  animation: pop .25s ease;
}
.a11y__panel[hidden] { display: none; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }

.a11y__group { display: grid; gap: .5rem; }
.a11y__label { font-size: .82rem; font-weight: 500; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .08em; }
.a11y__row { display: flex; flex-wrap: wrap; gap: .35rem; }
.a11y__row button {
  flex: 1; min-width: 0;
  padding: .5rem .55rem;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: var(--bg-soft);
  color: var(--ink);
  font-size: .9rem;
  font-weight: 500;
  transition: all .15s ease;
}
.a11y__row button:hover { background: var(--bg-tint); }
.a11y__row button.is-active {
  background: var(--c-coral);
  border-color: var(--c-coral);
  color: #fff;
}
.a11y__row--swatches button {
  width: 38px; height: 38px; min-width: 0; flex: 0 0 38px;
  border-radius: 50%;
  background: var(--sw);
  padding: 0;
}
.a11y__row--swatches button.is-active {
  outline: 3px solid var(--c-coral);
  outline-offset: 2px;
  background: var(--sw);
}
.a11y__group--toggles { gap: .4rem; }
.a11y__switch {
  display: flex; align-items: center; gap: .65rem;
  padding: .55rem .65rem;
  border-radius: 12px;
  background: var(--bg-soft);
  font-size: .95rem;
  cursor: pointer;
}
.a11y__switch input { accent-color: var(--c-coral); width: 18px; height: 18px; }
.a11y__reset {
  background: transparent; border: 0; color: var(--ink-soft);
  font-size: .85rem; text-decoration: underline; text-underline-offset: 3px;
  padding: .25rem; justify-self: start;
}

/* Reading ruler */
.ruler {
  position: fixed;
  left: 0; right: 0; top: -100px;
  height: 38px;
  background: rgba(255, 140, 97, 0.18);
  border-top: 1px solid rgba(255, 140, 97, .45);
  border-bottom: 1px solid rgba(255, 140, 97, .45);
  pointer-events: none;
  z-index: 150;
  transition: opacity .2s ease;
  opacity: 0;
}
.ruler.is-on { opacity: 1; }

/* ---------- NAV ---------- */
.nav {
  position: sticky; top: 0;
  z-index: 100;
  background: rgba(251, 246, 238, .85);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--border-soft);
}
[data-theme="dim"] .nav { background: rgba(35, 38, 47, .85); }
.nav__inner {
  display: flex; align-items: center; gap: 1.5rem;
  padding: .9rem 1.5rem;
}
.brand {
  display: inline-flex; align-items: center; gap: .65rem;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}
.brand__name {
  font-family: var(--font-display);
  font-size: 1.18rem;
  letter-spacing: -.01em;
}
.brand__mark svg { display: block; }
.nav__links {
  display: none;
  flex: 1;
  gap: 1.25rem;
}
.nav__links a {
  color: var(--ink-soft);
  font-size: .98rem;
  font-weight: 500;
  padding: .35rem .2rem;
}
.nav__links a:hover { color: var(--ink); text-decoration: none; }
.nav__cta { display: none; }
.nav__burger {
  margin-left: auto;
  background: transparent;
  border: 1.5px solid var(--border);
  width: 42px; height: 42px;
  border-radius: 12px;
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 4px;
}
.nav__burger span {
  width: 18px; height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
@media (min-width: 880px) {
  .nav__links { display: flex; }
  .nav__cta { display: inline-flex; margin-left: auto; }
  .nav__burger { display: none; }
}

/* Mobile open state */
body.nav-open .nav__links {
  display: flex; flex-direction: column;
  position: absolute; top: 100%; left: 0; right: 0;
  padding: 1rem 1.5rem 1.5rem;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border-soft);
  gap: .9rem;
}
body.nav-open .nav__links a { font-size: 1.1rem; }

/* ---------- ATOMS ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--ink-soft);
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  padding: .4rem .75rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}
.eyebrow--center { margin-left: auto; margin-right: auto; }
.eyebrow .dot, .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--c-coral);
  display: inline-block;
}
.dot--coral { background: var(--c-coral); }

.h2 {
  font-size: clamp(1.85rem, 1rem + 2.5vw, var(--fs-3xl));
  letter-spacing: -0.015em;
  max-width: 22ch;
}
.section__head { max-width: 720px; margin: 0 auto var(--gap-6); text-align: center; }
.section__head--left { text-align: left; margin: 0 0 var(--gap-5); }
.section__head--left .h2 { margin-left: 0; }
.lead {
  font-size: var(--fs-lg);
  color: var(--ink-soft);
  max-width: 56ch;
  margin-left: auto; margin-right: auto;
}
.section__head--left .lead { margin-left: 0; }

.section { padding: clamp(3.5rem, 6vw, var(--gap-8)) 0; }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  padding: clamp(3rem, 5vw, 5rem) 0 clamp(2rem, 4vw, 3rem);
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: .55;
  animation: float 14s ease-in-out infinite;
}
.blob--coral { width: 360px; height: 360px; background: var(--c-coral); top: -80px; right: -60px; }
.blob--sky   { width: 320px; height: 320px; background: var(--c-sky);   bottom: -120px; left: -40px; animation-delay: -4s; }
.blob--mint  { width: 240px; height: 240px; background: var(--c-mint);  top: 40%; left: 35%; opacity: .25; animation-delay: -8s; }
[data-theme="dim"] .blob { opacity: .35; }
@keyframes float { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-22px) } }

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 960px) {
  .hero__inner { grid-template-columns: 1.05fr 1fr; gap: 4rem; }
}

.hero__title {
  font-size: clamp(2.4rem, 1.4rem + 4vw, var(--fs-4xl));
  line-height: 1.06;
  letter-spacing: -0.025em;
  margin: .25rem 0 1.1rem;
  max-width: 16ch;
}
.hero__title .ink {
  background: linear-gradient(120deg, transparent 0 6%, var(--c-coral-soft) 6% 94%, transparent 94% 100%);
  padding: 0 .15em;
  border-radius: 8px;
}

.hero__lead {
  font-size: clamp(1.05rem, .9rem + .4vw, 1.25rem);
  color: var(--ink-soft);
  max-width: 52ch;
}
.hero__cta {
  display: flex; flex-wrap: wrap; gap: .8rem;
  margin: 1.5rem 0 1.25rem;
}
.hero__chips {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: .35rem 1rem;
  font-size: .95rem;
  color: var(--ink-soft);
}
.hero__chips li { display: inline-flex; align-items: center; gap: .4rem; }
.hero__chips svg { color: var(--c-coral); }

/* HERO ART — phone mockup */
.hero__art {
  position: relative;
  justify-self: center;
  display: grid;
  place-items: center;
  isolation: isolate;
}
.phone {
  width: clamp(260px, 30vw, 320px);
  background: var(--surface);
  border-radius: 38px;
  border: 1.5px solid var(--border);
  padding: 1.6rem 1.1rem 1.25rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  transform: rotate(-3deg);
  transition: transform .4s ease;
}
.phone:hover { transform: rotate(-1deg) translateY(-4px); }
.phone__notch {
  position: absolute;
  top: 12px; left: 50%; transform: translateX(-50%);
  width: 70px; height: 18px;
  background: var(--ink); border-radius: 12px;
  opacity: .85;
}
.phone__screen {
  background: var(--bg);
  border-radius: 24px;
  padding: 1.5rem 1.1rem 1.1rem;
  display: grid; gap: .85rem;
  margin-top: 1rem;
}
.phone__chip {
  display: inline-block;
  background: var(--c-sky-soft);
  color: var(--c-sky);
  padding: .25rem .6rem;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 500;
  width: max-content;
}
.phone__word {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: 0;
  display: flex;
  gap: .25rem;
  padding: .5rem 0 .35rem;
}
.phone__word .syl {
  padding: .1em .3em;
  border-radius: 10px;
  background: var(--bg-soft);
  border-bottom: 3px solid var(--border);
}
.phone__word .s1 { background: var(--c-coral-soft); border-bottom-color: var(--c-coral); }
.phone__word .s2 { background: var(--c-sky-soft);   border-bottom-color: var(--c-sky); }
.phone__word .s3 { background: var(--c-mint-soft);  border-bottom-color: var(--c-mint); }
.phone__hint { font-size: .88rem; color: var(--ink-soft); margin: 0; }
.phone__progress {
  height: 8px; background: var(--bg-tint);
  border-radius: 999px; overflow: hidden;
}
.phone__progress span {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--c-coral) 0%, var(--c-coral-deep) 100%);
  border-radius: 999px;
  animation: grow 2s ease-out both;
}
@keyframes grow { from { width: 0 } }
.phone__row {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: .35rem;
}
.phone__streak { display: inline-flex; align-items: center; gap: .35rem; font-size: .85rem; color: var(--ink-soft); }
.phone__btn {
  background: var(--ink); color: var(--bg);
  border: 0; border-radius: 999px;
  padding: .5rem .85rem; font-size: .85rem; font-weight: 500;
}

/* Floating letter tokens around the phone */
.floater {
  position: absolute;
  font-family: var(--font-display);
  font-weight: 700;
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 18px;
  font-size: 1.6rem;
  box-shadow: var(--shadow-md);
  animation: drift 9s ease-in-out infinite;
}
.floater--a { background: var(--c-coral-soft);  color: var(--c-coral-deep); top: -10px; left: -8%; transform: rotate(-10deg); }
.floater--b { background: var(--c-sky-soft);    color: var(--c-sky);        top: 30%;   left: -14%; animation-delay: -2s; transform: rotate(8deg); }
.floater--c { background: var(--c-butter-soft); color: #C28E12;             bottom: 8%; right: -10%; animation-delay: -4s; transform: rotate(-6deg); font-size: 1.4rem; }
.floater--d { background: var(--c-mint-soft);   color: #5E8F7A;             top: 8%;    right: -14%; animation-delay: -6s; transform: rotate(12deg); }
@keyframes drift {
  0%,100% { transform: translateY(0) rotate(var(--r, 0)); }
  50%     { transform: translateY(-10px) rotate(var(--r, 0)); }
}

/* HERO STRIP */
.hero__strip {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  position: relative; z-index: 1;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 1rem 1.5rem;
  padding: 1.25rem 1.5rem;
  border: 1.5px solid var(--border-soft);
  background: var(--bg-soft);
  border-radius: var(--radius-lg);
  font-size: .95rem;
  color: var(--ink-soft);
}
.strip__item strong { color: var(--ink); font-weight: 600; }
.strip__sep { width: 1px; height: 18px; background: var(--border); }
.strip__stores { display: inline-flex; gap: .5rem; }
.store {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .45rem .8rem;
  border-radius: 999px;
  background: var(--ink); color: var(--bg);
  font-size: .85rem; font-weight: 500;
  text-decoration: none !important;
}
.store:hover { transform: translateY(-1px); }

/* ---------- HOW IT WORKS ---------- */
.section--how { background: linear-gradient(180deg, transparent 0%, var(--bg-soft) 100%); }
.steps {
  list-style: none; padding: 0; margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 760px)  { .steps { grid-template-columns: repeat(3, 1fr); } }
.step {
  position: relative;
  background: var(--surface);
  border: 1.5px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--border); }
.step__num {
  position: absolute; top: -16px; left: 1.5rem;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  background: var(--c-coral); color: #fff;
  border-radius: 12px;
  font-weight: 600;
  font-family: var(--font-display);
  box-shadow: 0 4px 12px rgba(255,140,97,.35);
}
.step__art { margin: .25rem 0 1.25rem; }
.step__title { font-size: 1.3rem; }
.step__body { color: var(--ink-soft); margin-bottom: 0; }

/* ---------- SCIENCE ---------- */
.section--science { padding-top: clamp(3rem, 5vw, 5rem); }
.science {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 920px) { .science { grid-template-columns: 1.1fr 1fr; gap: 4rem; } }
.bullets { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; gap: 1rem; }
.bullets li { display: flex; gap: 1rem; align-items: flex-start; }
.bullets__icon {
  flex: 0 0 40px; width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 12px;
}
.bullets li div { flex: 1; }
.bullets li strong { display: block; margin-bottom: .15rem; }

.science__card {
  background: var(--surface);
  border: 1.5px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
}
.science__pill {
  display: inline-block;
  font-size: .8rem; font-weight: 500;
  background: var(--bg-soft); border: 1px solid var(--border-soft);
  padding: .25rem .7rem; border-radius: 999px;
  color: var(--ink-soft);
}
.science__chart { margin: 1rem 0; }
.science__chart svg { width: 100%; height: auto; max-height: 200px; }
.science__legend {
  display: flex; justify-content: space-between; align-items: center;
  font-size: .9rem; color: var(--ink-soft);
}
.science__legend > div:first-child { display: inline-flex; align-items: center; gap: .4rem; }
.muted { color: var(--ink-mute); }
.science__stats {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1rem; margin-top: 1.25rem;
  padding-top: 1.25rem; border-top: 1px dashed var(--border);
}
.science__stats > div { display: flex; flex-direction: column; }
.science__stats strong {
  font-family: var(--font-display);
  font-size: 1.8rem; line-height: 1;
  color: var(--ink);
  margin-bottom: .2rem;
}
.science__stats span { font-size: .85rem; color: var(--ink-soft); }

/* ---------- FEATURES ---------- */
.section--features { background: var(--bg-soft); border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }
.grid--features {
  display: grid; gap: 1.1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px)  { .grid--features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px)  { .grid--features { grid-template-columns: repeat(3, 1fr); } }
.feature {
  background: var(--surface);
  border: 1.5px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 1.6rem 1.4rem;
  transition: transform .2s ease, box-shadow .25s ease, border-color .25s ease;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--border); }
.feature__icon {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 14px;
  margin-bottom: 1rem;
}
.feature h3 { font-size: 1.2rem; margin-bottom: .35rem; }
.feature p { color: var(--ink-soft); margin: 0; }

/* ---------- PRICING ---------- */
.toggle {
  display: inline-flex; align-items: center; gap: .25rem;
  padding: .35rem;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1.5px solid var(--border-soft);
  margin-top: 1.25rem;
}
.toggle__opt {
  background: transparent;
  border: 0;
  padding: .55rem 1.1rem;
  border-radius: 999px;
  color: var(--ink-soft);
  font-weight: 500;
  font-size: .95rem;
  display: inline-flex; align-items: center; gap: .5rem;
}
.toggle__opt.is-active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.toggle__save {
  background: var(--c-mint-soft);
  color: #4F7A66;
  padding: .15rem .45rem;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 600;
}
[data-theme="dim"] .toggle__save { color: var(--c-mint); }

.grid--pricing {
  display: grid; gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 860px) { .grid--pricing { grid-template-columns: repeat(3, 1fr); align-items: stretch; } }
.plan {
  position: relative;
  background: var(--surface);
  border: 1.5px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.plan--featured {
  border: 2px solid var(--c-coral);
  background: linear-gradient(180deg, var(--bg-soft) 0%, var(--surface) 65%);
  box-shadow: 0 18px 40px rgba(255,140,97,.18);
  transform: translateY(-6px);
}
@media (min-width: 860px) { .plan--featured { transform: translateY(-12px); } }
.plan__ribbon {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--c-coral); color: #fff;
  padding: .35rem .8rem; border-radius: 999px;
  font-size: .8rem; font-weight: 500; letter-spacing: .02em;
  box-shadow: 0 6px 14px rgba(255,140,97,.4);
}
.plan__head { margin-bottom: 1rem; }
.plan__name { font-size: 1.6rem; margin-bottom: .15rem; }
.plan__tag { color: var(--ink-soft); margin: 0; font-size: .95rem; }
.plan__price { display: flex; align-items: baseline; gap: .2rem; margin: .5rem 0 1.25rem; }
.plan__currency { font-size: 1.2rem; color: var(--ink-soft); }
.plan__amount {
  font-family: var(--font-display);
  font-size: 3rem; line-height: 1; font-weight: 700;
  color: var(--ink);
}
.plan__per { color: var(--ink-soft); font-size: .95rem; }
.plan__list { list-style: none; padding: 0; margin: 0 0 1.5rem; flex: 1; }
.plan__list li {
  display: flex; align-items: flex-start; gap: .55rem;
  padding: .45rem 0;
  border-bottom: 1px dashed var(--border-soft);
  color: var(--ink-soft);
  font-size: .98rem;
}
.plan__list li:last-child { border-bottom: 0; }
.plan__list li::before {
  content: "";
  flex: 0 0 18px; height: 18px; margin-top: .2rem;
  background: var(--c-coral-soft) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23E56C3C' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center/12px no-repeat;
  border-radius: 50%;
}
.plan__list li strong { color: var(--ink); }
.pricing__note {
  margin-top: 1.75rem; text-align: center;
  font-size: .9rem; color: var(--ink-mute);
}

/* ---------- STORIES ---------- */
.grid--stories {
  display: grid; gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 760px) { .grid--stories { grid-template-columns: repeat(3, 1fr); } }
.story {
  margin: 0;
  background: var(--surface);
  border: 1.5px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem 1.5rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: transform .25s ease, box-shadow .25s ease;
}
.story::before {
  content: "“";
  position: absolute; top: -.3rem; left: 1.25rem;
  font-family: var(--font-display);
  font-size: 5rem; line-height: 1;
  color: var(--c-coral);
  opacity: .4;
}
.story:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.story blockquote {
  font-size: 1.05rem;
  margin: 0 0 1.25rem;
  color: var(--ink);
  padding-top: 1.5rem;
}
.story figcaption { display: flex; align-items: center; gap: .8rem; }
.avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 600; color: var(--ink);
  font-family: var(--font-display);
}
.story figcaption strong { display: block; font-size: .98rem; }
.story figcaption span { font-size: .85rem; color: var(--ink-soft); }

/* ---------- FAQ ---------- */
.section--faq { background: var(--bg-soft); }
.faq { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 880px) { .faq { grid-template-columns: 1fr 1.4fr; gap: 4rem; align-items: start; } }
.faq__list { display: grid; gap: .75rem; }
.qa {
  background: var(--surface);
  border: 1.5px solid var(--border-soft);
  border-radius: var(--radius);
  padding: .25rem 1.25rem;
  transition: border-color .2s ease, box-shadow .25s ease;
}
.qa[open] { border-color: var(--border); box-shadow: var(--shadow-sm); }
.qa summary {
  list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  cursor: pointer;
  padding: 1.1rem 0;
  font-weight: 500;
  color: var(--ink);
  font-size: 1.05rem;
}
.qa summary::-webkit-details-marker { display: none; }
.qa__chev { transition: transform .25s ease; flex-shrink: 0; color: var(--ink-soft); }
.qa[open] .qa__chev { transform: rotate(-180deg); }
.qa p {
  margin: 0; padding: 0 0 1.1rem;
  color: var(--ink-soft);
  max-width: none;
}

/* ---------- CTA ---------- */
.section--cta { padding-bottom: clamp(4rem, 6vw, 6rem); }
.cta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  background: linear-gradient(135deg, var(--c-coral-soft) 0%, var(--bg-soft) 100%);
  border: 1.5px solid var(--border-soft);
  border-radius: var(--radius-xl);
  padding: clamp(2rem, 4vw, 3rem);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute; right: -120px; top: -120px;
  width: 320px; height: 320px;
  background: var(--c-coral);
  border-radius: 50%;
  opacity: .15;
  filter: blur(40px);
  pointer-events: none;
}
@media (min-width: 880px) { .cta { grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: center; } }
.cta__copy .h2 { max-width: 18ch; }
.cta__bullets { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; gap: .5rem; }
.cta__bullets li { display: inline-flex; align-items: center; gap: .55rem; color: var(--ink); }
.cta__bullets svg { color: var(--c-coral); flex-shrink: 0; }

.cta__form {
  position: relative; z-index: 1;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  display: grid; gap: 1rem;
  box-shadow: var(--shadow-md);
}
.field { display: grid; gap: .35rem; }
.field span {
  font-size: .9rem; font-weight: 500;
  color: var(--ink-soft);
}
.field input, .field select {
  font: inherit;
  background: var(--bg-soft);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: .8rem 1rem;
  color: var(--ink);
  transition: border-color .2s ease, background-color .2s ease;
  width: 100%;
}
.field input:focus, .field select:focus {
  outline: none;
  border-color: var(--c-coral);
  background: var(--surface);
}
.cta__fineprint {
  font-size: .82rem; color: var(--ink-mute);
  text-align: center; margin: -.25rem 0 0;
  max-width: none;
}
.cta__success {
  background: var(--c-mint-soft);
  color: #4F7A66;
  padding: .85rem 1rem;
  border-radius: 12px;
  font-size: .95rem;
  text-align: center;
}
[data-theme="dim"] .cta__success { color: var(--c-mint); }

/* ---------- FOOTER ---------- */
.footer {
  background: var(--bg-tint);
  border-top: 1px solid var(--border-soft);
  padding: clamp(2.5rem, 4vw, 4rem) 0 0;
  margin-top: var(--gap-6);
}
[data-theme="dim"] .footer { background: var(--bg-tint); }
.footer__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}
@media (min-width: 880px) { .footer__inner { grid-template-columns: 1.2fr 2fr; gap: 4rem; } }
.footer__tag { color: var(--ink-soft); margin: 1rem 0 1.25rem; max-width: 40ch; }
.footer__stores { display: flex; gap: .6rem; flex-wrap: wrap; }
.store--dark { background: var(--ink); color: var(--bg); }

.footer__cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem 1.5rem;
}
@media (min-width: 600px) { .footer__cols { grid-template-columns: repeat(3, 1fr); } }
.footer__col h4 {
  font-family: var(--font-body);
  font-size: .85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--ink-soft);
  margin-bottom: 1rem;
}
.footer__col a {
  display: block;
  color: var(--ink);
  padding: .25rem 0;
  font-size: .98rem;
}
.footer__col a:hover { color: var(--c-coral-deep); text-decoration: none; }

.footer__bar {
  border-top: 1px solid var(--border-soft);
  padding: 1.25rem 0;
  font-size: .9rem;
  color: var(--ink-soft);
}
.footer__barInner {
  display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between;
}
.footer__barInner p { margin: 0; }
.footer__legal { display: flex; gap: 1.25rem; }
.footer__legal a { color: var(--ink-soft); font-size: .9rem; }

/* ---------- REDUCED MOTION ---------- */
body.reduce-motion *,
body.reduce-motion *::before,
body.reduce-motion *::after,
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}
body.reduce-motion .blob,
body.reduce-motion .floater { animation: none !important; }

/* ---------- DIM THEME PATCHES ---------- */
[data-theme="dim"] .nav { border-bottom-color: #353A48; }
[data-theme="dim"] .feature,
[data-theme="dim"] .step,
[data-theme="dim"] .plan,
[data-theme="dim"] .story,
[data-theme="dim"] .qa,
[data-theme="dim"] .science__card,
[data-theme="dim"] .a11y__panel,
[data-theme="dim"] .a11y__toggle,
[data-theme="dim"] .cta__form,
[data-theme="dim"] .hero__strip { background: var(--surface); }
[data-theme="dim"] .plan--featured { background: linear-gradient(180deg, #2F3340 0%, #353A48 100%); }
[data-theme="dim"] .phone { background: #2F3340; }
[data-theme="dim"] .phone__screen { background: #23262F; }
[data-theme="dim"] .field input, [data-theme="dim"] .field select { background: var(--bg-soft); color: var(--ink); }
[data-theme="dim"] .a11y__row button { background: var(--bg-tint); color: var(--ink); }
[data-theme="dim"] .a11y__switch { background: var(--bg-tint); }
[data-theme="dim"] .cta { background: linear-gradient(135deg, rgba(255,140,97,.18) 0%, #2A2E38 100%); }
[data-theme="dim"] .toggle { background: var(--bg-tint); }

/* ---------- PRINT ---------- */
@media print {
  .a11y, .ruler, .nav, .footer__bar, .cta__form, .blob, .floater { display: none !important; }
  body { background: white; color: black; }
}
