/* =========================================================================
   LevelReads — landing page stylesheet
   -------------------------------------------------------------------------
   One file, no build step. Used by index.html only; /privacy and /support
   keep their own plain /style.css.

   DESIGN SYSTEM (carried over from the app: apps/reading-app/tailwind.config.js
   and theme/tokens.ts, "Readrise Visual Direction v5")

   Colour   Bright white base, warm near-black ink, four brand pastels
            (amber, lilac, rose, mint). Pastels are FILLS only. Text on a
            pastel always uses that pastel's "deep" partner, which clears
            WCAG AA 4.5:1 (e.g. mint-deep on mint 5.56:1, amber-deep on
            amber 4.92:1, lilac-deep on lilac 5.7:1). Muted text is the app's
            accessibility-pass value #6B6358 (5.91:1 on white).
   Type     Display: Dosis 700, the app's wordmark face (self-hosted WOFF).
            Body: the platform UI font (SF Pro on Apple, like the app).
            Reading: Newsreader, the app's story face, for story text and the
            report's opening line. Fluid scale, --step--1 … --step-4.
   Space    4px base: --space-1 (4) … --space-10 (128).
   Radius   The app's radii: chip 8, button 12, card 16, screen 40, pill.
   Shadow   The app's four layered, low-alpha warm shadows.
   Motion   Gentle and slow. Everything that moves is decorative; all of it
            stops under prefers-reduced-motion (see the end of this file).
            Scroll reveals only apply when JS has added `.js` to <html>, so
            the page reads fully with JavaScript off.
   ========================================================================= */

/* ---------- Fonts (self-hosted, SIL OFL — licences in /fonts) ---------- */
@font-face {
  font-family: "Dosis";
  src: url("/fonts/dosis-700.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("/fonts/newsreader-400.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("/fonts/newsreader-400-italic.woff") format("woff");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  color-scheme: light;

  /* Colour — ink */
  --ink: #1a1714;
  --ink-soft: #241f1a;
  --ink-muted: #6b6358;
  --outline: #969084;           /* control boundary, 3.17:1 on white */

  /* Colour — surfaces */
  --bg: #ffffff;
  --paper: #fffdf7;             /* reader sheet */
  --hairline: #f0ece6;
  --hairline-warm: #ebe3d2;
  --hairline-strong: #ded6c8;

  /* Colour — brand pastels (fills) and their deep text partners */
  --amber: #fbd06b;
  --amber-tint: #fff5dc;
  --amber-deep: #6e5316;
  --amber-ink: #b07a12;         /* the app's dotted vocab underline */
  --lilac: #c4b2ff;
  --lilac-tint: #f3efff;
  --lilac-deep: #3f2f86;
  --rose: #ffb0c4;
  --rose-tint: #fff0f4;
  --rose-deep: #7a2440;
  --mint: #8fe6d2;
  --mint-tint: #e7f9f4;
  --mint-deep: #135a4c;

  --focus: #3f2f86;

  /* Type */
  --font-display: "Dosis", ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans",
    "Helvetica Neue", Arial, sans-serif;
  --font-read: "Newsreader", Georgia, "Times New Roman", serif;

  --step--1: 0.875rem;                                   /* 14 */
  --step-0: 1.0625rem;                                   /* 17 body */
  --step-1: clamp(1.1875rem, 1.1rem + 0.4vw, 1.375rem);  /* 19–22 */
  --step-2: clamp(1.375rem, 1.2rem + 0.8vw, 1.75rem);    /* 22–28 */
  --step-3: clamp(1.875rem, 1.45rem + 1.9vw, 2.75rem);   /* 30–44 h2 */
  --step-4: clamp(2.375rem, 1.6rem + 3.4vw, 4.25rem);    /* 38–68 h1 */

  --leading-tight: 1.08;
  --leading-snug: 1.3;
  --leading-body: 1.6;

  /* Space (4px base) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --space-10: 8rem;
  --section-pad: clamp(3.5rem, 2rem + 5vw, 6.5rem);
  --gutter: 16px;

  /* Radius */
  --radius-chip: 8px;
  --radius-btn: 12px;
  --radius-card: 16px;
  --radius-lg: 24px;
  --radius-screen: 40px;
  --radius-pill: 999px;

  /* Shadow */
  --shadow-paper: 0 6px 18px rgba(20, 17, 15, 0.06);
  --shadow-pop: 0 12px 26px rgba(20, 17, 15, 0.14);
  --shadow-soft: 0 18px 50px rgba(20, 17, 15, 0.1);
  --shadow-card: 0 22px 60px rgba(20, 17, 15, 0.16);

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 160ms;
  --dur: 320ms;
  --dur-slow: 900ms;

  --max: 1160px;
}

@media (min-width: 640px) {
  :root { --gutter: 24px; }
}
@media (min-width: 1024px) {
  :root { --gutter: 32px; }
}

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

html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--space-5);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: var(--leading-body);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}

h1 {
  font-size: var(--step-4);
  line-height: var(--leading-tight);
  letter-spacing: -0.02em;
}

h2 {
  font-size: var(--step-3);
  line-height: var(--leading-tight);
  letter-spacing: -0.015em;
}

h3 {
  font-size: var(--step-1);
  line-height: var(--leading-snug);
  letter-spacing: -0.005em;
}

p {
  margin: 0;
  text-wrap: pretty;
}

a {
  color: var(--ink);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-color: var(--amber-ink);
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

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

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -100px;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-btn);
  font-weight: 600;
  min-height: 44px;
}
.skip-link:focus {
  top: var(--space-4);
}

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

.section {
  padding-block: var(--section-pad);
  position: relative;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: var(--space-4);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 4px;
  border-radius: var(--radius-pill);
  background: var(--amber);
}

.section-head {
  max-width: 44rem;
  margin-bottom: var(--space-7);
}

.section-head p {
  margin-top: var(--space-4);
  font-size: var(--step-1);
  color: var(--ink-muted);
  line-height: 1.5;
}

.center {
  text-align: center;
  margin-inline: auto;
}

/* Wordmark: the word itself, lowercase Dosis, tight tracking (see
   components/rr/wordmark.tsx), with the amber underline from the app icon. */
.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.625rem;
  letter-spacing: -0.035em;
  line-height: 1;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding-block: var(--space-2);
  min-height: 44px;
  justify-content: center;
}
.wordmark::after {
  content: "";
  width: 1.1em;
  height: 3px;
  border-radius: var(--radius-pill);
  background: var(--amber);
}

/* Amber swash under a key word in a heading */
.swash {
  position: relative;
  white-space: nowrap;
  z-index: 0;
}
.swash::after {
  content: "";
  position: absolute;
  left: -0.04em;
  right: -0.04em;
  bottom: 0.06em;
  height: 0.28em;
  border-radius: var(--radius-pill);
  background: var(--amber);
  z-index: -1;
  transform-origin: left center;
  animation: swash-draw 900ms var(--ease-out) 400ms both;
}
@keyframes swash-draw {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 44px;
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: transform var(--dur-fast) var(--ease-out),
    background-color var(--dur-fast) var(--ease-out);
}
.btn:active {
  transform: scale(0.97);
}
.btn-solid {
  background: var(--ink);
  color: #fff;
}
.btn-solid:hover {
  background: #37302a;
}

/* App Store badge — a CSS/text stand-in that follows the look of Apple's
   badge (black, rounded, two lines). It deliberately draws no Apple logo.
   Swap for Apple's official badge artwork before launch. */
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  min-height: 56px;
  min-width: 190px;
  padding: var(--space-2) var(--space-5) var(--space-2) var(--space-4);
  border-radius: var(--radius-btn);
  background: #000;
  color: #fff;
  text-decoration: none;
  border: 1px solid #a6a6a6;
  transition: transform var(--dur-fast) var(--ease-out),
    box-shadow var(--dur) var(--ease-out);
}
.store-badge:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-pop);
}
.store-badge:active {
  transform: scale(0.98);
}
.store-badge svg {
  flex: none;
}
.store-badge-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.store-badge-small {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.store-badge-big {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3) var(--space-5);
}
.cta-note {
  flex: 1 1 12rem;
  min-width: 0;
  font-size: var(--step--1);
  color: var(--ink-muted);
  line-height: 1.45;
}
.cta-note strong {
  color: var(--ink);
  display: block;
  font-size: 0.9375rem;
}

/* ---------- Header ---------- */
.site-header {
  position: relative;
  z-index: 10;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block: var(--space-3);
}
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: var(--space-1);
}
.site-nav a:not(.btn) {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: var(--space-3);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  border-radius: var(--radius-pill);
}
.site-nav a:not(.btn):hover {
  background: var(--lilac-tint);
}
.nav-link {
  display: none !important;
}
@media (min-width: 860px) {
  .nav-link {
    display: inline-flex !important;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-block: var(--space-6) var(--section-pad);
  overflow: hidden;
}
.hero::before,
.hero::after {
  /* soft watercolour-ish colour pools behind the phone */
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.55;
}
.hero::before {
  width: 520px;
  height: 520px;
  right: -140px;
  top: 40px;
  background: radial-gradient(circle at 40% 40%, var(--lilac), transparent 70%);
}
.hero::after {
  width: 420px;
  height: 420px;
  right: 180px;
  bottom: -60px;
  background: radial-gradient(circle at 50% 50%, var(--mint), transparent 70%);
}
.hero-grid {
  display: grid;
  gap: var(--space-8);
  align-items: center;
}
.hero-grid > *,
.story-grid > *,
.report-grid > * {
  min-width: 0;
}
@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: 1.08fr 0.92fr;
    gap: var(--space-7);
  }
}
.hero-copy .lede {
  margin-top: var(--space-5);
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 34rem;
}
.hero-copy .cta-row {
  margin-top: var(--space-6);
}
.hero-points {
  list-style: none;
  padding: 0;
  margin: var(--space-6) 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.hero-points li {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 6px 12px 6px 8px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--hairline-strong);
  font-size: var(--step--1);
  font-weight: 500;
  color: var(--ink-soft);
  background: #fff;
}
.hero-points li::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--dot, var(--mint));
}

/* Device mock-ups: an iPad (story spread) with an iPhone overlapping its
   lower right corner. Both are drawn to Apple's current proportions: iPad
   4:3 with even bezels and a front camera on the long edge; iPhone ~9:19.5
   with a thin bezel, deep corner radius and the Dynamic Island floating
   inside the screen. */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  padding: var(--space-5) var(--space-4) 112px;
}
@media (min-width: 960px) {
  .hero-visual {
    padding: var(--space-5) var(--space-6) 120px;
  }
}
.devices {
  position: relative;
  width: min(560px, 100%);
  max-width: 100%;
  padding: 0 0 22% 0;
  container-type: inline-size;
}
.ipad-art, .ipad-page { min-width: 0; }
.ipad {
  position: relative;
  width: 90%;
  aspect-ratio: 4 / 3;
  background: #111;
  /* iPad: ~3.6% corner radius on the long side, even bezels */
  border-radius: 3.4cqw;
  padding: 3.2%;
  box-shadow: 0 0 0 1.5px #c9c4bd, var(--shadow-card);
}
.ipad-cam {
  position: absolute;
  top: 1.4%;
  left: 50%;
  width: 6px;
  height: 6px;
  margin-left: -3px;
  border-radius: 50%;
  background: #2b2b2b;
}
.ipad-screen {
  width: 100%;
  height: 100%;
  background: #fff;
  border-radius: 1.8cqw;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.ipad-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 14px 2px;
  font-size: 0.625rem;
  font-weight: 600;
}
.ipad-spread {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 12px;
  padding: 8px 14px 12px;
  min-height: 0;
}
.ipad-art {
  border-radius: 10px;
  overflow: hidden;
}
.ipad-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ipad-page {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
  background: var(--paper);
  border-radius: 10px;
  padding: 10px 12px;
  min-height: 0;
  overflow: hidden;
}
.ipad-page .chip { font-size: 0.625rem; padding: 2px 8px; }
.ipad-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(0.8rem, 1.6vw, 1rem);
  line-height: 1.2;
}
.ipad-text {
  font-family: var(--font-read);
  font-size: clamp(0.56rem, 1.25vw, 0.8rem);
  line-height: 1.5;
  color: var(--ink-soft);
}
.ipad-page .phone-dots { margin-top: auto; align-self: center; }
.bat {
  display: inline-block;
  width: 20px;
  height: 9px;
  border: 1.5px solid currentColor;
  border-radius: 3px;
  position: relative;
  opacity: 0.8;
}
.bat::before {
  content: "";
  position: absolute;
  inset: 1px;
  right: 3px;
  background: currentColor;
  border-radius: 1px;
}
.bat::after {
  content: "";
  position: absolute;
  right: -4px;
  top: 2px;
  width: 2px;
  height: 3px;
  background: currentColor;
  border-radius: 0 1px 1px 0;
}
.phone {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 38%;
  aspect-ratio: 9 / 19.5;
  background: #fff;
  /* iPhone proportions: the display's corner radius is ~14% of the phone's
     width and the bezel ~2.8%. The phone is 38% of .devices, so in .devices'
     container units: radius 0.155 x 38 = 5.9cqw, bezel 0.028 x 38 = 1.1cqw.
     The screen's inner curve follows from outer radius minus bezel. */
  border: max(4px, 1.1cqw) solid #111;
  border-radius: 5.9cqw;
  box-shadow: 0 0 0 1.5px #c9c4bd, var(--shadow-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  font-size: 0.86em;
}
/* side buttons, drawn on the rim */
.devices::after {
  content: "";
  position: absolute;
  right: -2px;
  bottom: calc(44% * 19.5 / 9 * 0.55);
  width: 3px;
  height: 46px;
  border-radius: 2px;
  background: #b9b3ab;
  display: none;
}
.phone-island {
  position: absolute;
  top: 9px;
  left: 50%;
  transform: translateX(-50%);
  width: 34%;
  height: 22px;
  border-radius: var(--radius-pill);
  background: #111;
  z-index: 2;
}
.phone-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 20px 8px 24px;
  font-size: 0.72rem;
  font-weight: 600;
  min-height: 40px;
}
.phone-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 14px 10px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.3;
}
.chip-lilac {
  background: var(--lilac);
  color: var(--lilac-deep);
}
.chip-mint {
  background: var(--mint);
  color: var(--mint-deep);
}
.chip-amber {
  background: var(--amber);
  color: var(--amber-deep);
}
.chip-outline {
  border: 1px solid var(--outline);
  color: var(--ink-soft);
  background: #fff;
}
.phone-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
}
.phone-art {
  margin: 0 12px;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 3 / 2;
}
.phone-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: art-drift 18s var(--ease-in-out) infinite alternate;
}
@keyframes art-drift {
  from { transform: scale(1.04) translate(0, 0); }
  to { transform: scale(1.12) translate(-3%, -2%); }
}
.phone-body {
  position: relative;
  flex: 1;
  padding: 14px 14px 18px;
  background: var(--paper);
  margin-top: 10px;
  border-top: 1px solid var(--hairline-warm);
}
.phone-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}
.phone-text {
  font-family: var(--font-read);
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--ink-soft);
}
.phone-dots {
  display: flex;
  gap: 5px;
  justify-content: center;
  margin-top: 12px;
}
.phone-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--hairline-strong);
}
.phone-dots span:last-child {
  width: 18px;
  border-radius: var(--radius-pill);
  background: var(--ink);
}

/* The tappable-word look, shared by the phone and the story demo:
   the app's dotted amber underline, then an amber glow when "tapped". */
.vocab {
  position: relative;
  text-decoration: underline dotted var(--amber-ink) 2px;
  text-underline-offset: 4px;
  background-image: linear-gradient(var(--amber-tint), var(--amber-tint));
  background-repeat: no-repeat;
  background-position: 0 90%;
  background-size: 0% 100%;
  border-radius: 4px;
  padding-inline: 1px;
}
.phone .vocab {
  animation: word-glow 1100ms var(--ease-out) 1200ms both;
}
@keyframes word-glow {
  from { background-size: 0% 100%; }
  to { background-size: 100% 100%; }
}
.phone-pop {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: calc(100% - 6px);
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-pop);
  border: 1px solid var(--hairline);
  padding: 10px 12px;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--ink-soft);
  animation: pop-in 500ms var(--ease-out) 1900ms both;
}
.phone-pop b {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--ink);
  display: block;
}
@keyframes pop-in {
  from { opacity: 0; transform: translateY(8px) scale(0.96); }
  to { opacity: 1; transform: none; }
}

/* Floating avatars + the mini report note around the phone */
.float {
  position: absolute;
  border-radius: 50%;
  background: #fff;
  padding: 5px;
  box-shadow: var(--shadow-pop);
  animation: float 6s var(--ease-in-out) infinite alternate;
}
.float img {
  border-radius: 50%;
  width: 100%;
  height: auto;
}
/* Mobile: avatars sit on the phone's frame beside the artwork, never over text */
.float-1 { width: 56px; left: 0; top: 0; animation-delay: -1s; }
.float-2 { width: 50px; right: 4%; top: 2%; animation-delay: -3s; animation-duration: 7s; }
.float-3 { display: none; width: 58px; animation-delay: -5s; animation-duration: 6.5s; }
.float-4 { display: none; width: 54px; animation-delay: -2s; animation-duration: 7.5s; }
@media (min-width: 560px) {
  .float-1 { width: 70px; left: 1%; top: 0; }
  .float-2 { width: 62px; right: 2%; top: 4%; }
  .float-3 { display: none; }
  .float-4 { display: block; left: -1%; top: 48%; }
}
@keyframes float {
  from { transform: translateY(-7px) rotate(-2deg); }
  to { transform: translateY(7px) rotate(2deg); }
}
.note-card {
  position: absolute;
  left: 0;
  bottom: 0;
  width: min(232px, 62vw);
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--hairline);
  padding: 12px 14px 14px;
  font-size: 0.8125rem;
  line-height: 1.4;
  animation: float 7s var(--ease-in-out) -2s infinite alternate;
}
.note-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.note-card-head b {
  font-family: var(--font-display);
  font-size: 1rem;
}
.note-card p {
  color: var(--ink-soft);
}
.note-card .mini-bar {
  height: 8px;
  border-radius: var(--radius-pill);
  background: var(--hairline);
  margin-top: 10px;
  overflow: hidden;
}
.note-card .mini-bar span {
  display: block;
  height: 100%;
  width: 83%;
  background: var(--mint-deep);
  border-radius: inherit;
  transform-origin: left;
  animation: bar-grow 1200ms var(--ease-out) 2400ms both;
}
@keyframes bar-grow {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
@media (min-width: 960px) {
  .note-card { left: 0; bottom: 8px; }
}

/* ---------- Why (two kinds of understanding) ---------- */
.why {
  background: var(--paper);
  border-block: 1px solid var(--hairline-warm);
}
.understand-grid {
  display: grid;
  gap: var(--space-5);
}
@media (min-width: 800px) {
  .understand-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.understand-card {
  position: relative;
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  overflow: hidden;
}
.understand-card.child {
  background: var(--mint-tint);
}
.understand-card.parent {
  background: var(--lilac-tint);
}
.understand-card .num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 3.5rem;
  line-height: 1;
  color: var(--mint-deep);
  opacity: 0.9;
}
.understand-card.parent .num {
  color: var(--lilac-deep);
}
.understand-card h3 {
  font-size: var(--step-2);
  margin: var(--space-4) 0 var(--space-3);
}
.understand-card p {
  color: var(--ink-soft);
  max-width: 30rem;
}
.understand-card .who {
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mint-deep);
}
.understand-card.parent .who {
  color: var(--lilac-deep);
}
.contrast-line {
  margin-top: var(--space-7);
  display: grid;
  gap: var(--space-4);
  font-size: var(--step-1);
  line-height: 1.45;
}
@media (min-width: 800px) {
  .contrast-line {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
  }
}
.contrast-line p {
  padding-left: var(--space-4);
  border-left: 4px solid var(--hairline-strong);
  color: var(--ink-muted);
}
.contrast-line p + p {
  border-left-color: var(--amber);
  color: var(--ink);
}

/* ---------- How it works ---------- */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-5);
  counter-reset: step;
}
@media (min-width: 860px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}
.step {
  position: relative;
  background: #fff;
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-5) var(--space-5);
  box-shadow: var(--shadow-paper);
  counter-increment: step;
}
.step::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.375rem;
  background: var(--step-fill, var(--amber));
  color: var(--step-ink, var(--amber-deep));
  margin-bottom: var(--space-4);
}
.step:nth-child(2) { --step-fill: var(--lilac); --step-ink: var(--lilac-deep); }
.step:nth-child(3) { --step-fill: var(--mint); --step-ink: var(--mint-deep); }
.step h3 {
  font-size: var(--step-2);
  margin-bottom: var(--space-2);
}
.step p {
  color: var(--ink-soft);
}

/* Level ladder: twelve rising steps, the reader climbing */
.ladder-wrap {
  margin-top: var(--space-7);
  display: grid;
  gap: var(--space-6);
  align-items: end;
}
@media (min-width: 900px) {
  .ladder-wrap {
    grid-template-columns: 1.2fr 1fr;
    gap: var(--space-8);
  }
}
.ladder {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 72px 0 0;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  align-items: end;
  gap: 4px;
  height: 250px;
}
.ladder li {
  position: relative;
  height: calc(18px + var(--i) * 13px);
  border-radius: 8px 8px 4px 4px;
  background: var(--hairline);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 4px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8125rem;
  color: var(--ink-muted);
  transform-origin: bottom;
  transition: transform 700ms var(--ease-out) calc(var(--i) * 60ms),
    background-color 400ms;
}
.ladder li.done {
  background: var(--mint);
  color: var(--mint-deep);
}
.ladder li.here {
  background: var(--lilac);
  color: var(--lilac-deep);
}
.ladder .climber {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 6px);
  width: 48px;
  translate: -50% 0;
  border-radius: 50%;
  background: #fff;
  padding: 3px;
  box-shadow: var(--shadow-pop);
  animation: bob 2.4s var(--ease-in-out) infinite alternate;
}
.ladder .climber img {
  border-radius: 50%;
}
@keyframes bob {
  from { transform: translateY(0); }
  to { transform: translateY(-6px); }
}
.ladder-caption {
  display: flex;
  justify-content: space-between;
  font-size: var(--step--1);
  color: var(--ink-muted);
  margin-top: var(--space-3);
}
.wisdom {
  position: relative;
  margin: 0;
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  background: var(--amber-tint);
}
.wisdom p {
  font-family: var(--font-read);
  font-size: var(--step-2);
  line-height: 1.35;
  color: var(--ink);
}
.wisdom p + p {
  margin-top: var(--space-4);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: var(--leading-body);
  color: var(--ink-soft);
}

/* ---------- Inside a story ---------- */
.story {
  background: linear-gradient(180deg, #fff 0%, var(--lilac-tint) 100%);
}
.story-grid {
  display: grid;
  gap: var(--space-7);
  align-items: start;
}
@media (min-width: 960px) {
  .story-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

/* Page-turn book. Three stacked pages; the top two turn away over the left
   edge in turn, then the first fades back on top and the cycle repeats. */
.book-figure {
  margin: 0;
}
@media (min-width: 960px) {
  .book-figure {
    position: sticky;
    top: var(--space-6);
  }
}
.book {
  position: relative;
  aspect-ratio: 3 / 2;
  perspective: 1800px;
  border-radius: var(--radius-card);
  background: var(--paper);
  box-shadow: var(--shadow-card);
}
.book::after {
  /* spine shadow */
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 26px;
  border-radius: var(--radius-card) 0 0 var(--radius-card);
  background: linear-gradient(90deg, rgba(20, 17, 15, 0.18), transparent);
  z-index: 5;
  pointer-events: none;
}
.page {
  position: absolute;
  inset: 0;
  margin: 0;
  border-radius: var(--radius-card);
  overflow: hidden;
  transform-origin: left center;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  background: var(--paper);
}
.page img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.page-1 { z-index: 3; animation: turn-1 15s var(--ease-in-out) infinite; }
.page-2 { z-index: 2; animation: turn-2 15s var(--ease-in-out) infinite; }
.page-3 { z-index: 1; }
@keyframes turn-1 {
  0%, 22% { transform: rotateY(0); opacity: 1; }
  34%, 88% { transform: rotateY(-180deg); opacity: 1; }
  88.01% { transform: rotateY(0); opacity: 0; }
  100% { transform: rotateY(0); opacity: 1; }
}
@keyframes turn-2 {
  0%, 55% { transform: rotateY(0); }
  67%, 99.9% { transform: rotateY(-180deg); }
  100% { transform: rotateY(0); }
}
.book-caption {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: center;
  margin-top: var(--space-4);
  font-size: var(--step--1);
  color: var(--ink-muted);
}

.reader {
  background: var(--paper);
  border: 1px solid var(--hairline-warm);
  border-radius: var(--radius-card);
  padding: var(--space-5);
  box-shadow: var(--shadow-paper);
}
.reader-text {
  font-family: var(--font-read);
  font-size: 1.1875rem;
  line-height: 1.65;
  color: var(--ink-soft);
}
.reader-hint {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--step--1);
  color: var(--ink-muted);
  margin-top: var(--space-3);
}

/* Tappable words in the demo: real buttons, 44px tall hit area */
.word {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  position: relative;
}
.word::before {
  /* invisible hit-area extender to reach 44px */
  content: "";
  position: absolute;
  inset: -12px -6px;
}
.word .vocab {
  transition: background-size 400ms var(--ease-out);
}
.word:hover .vocab,
.word:focus-visible .vocab,
.word[aria-expanded="true"] .vocab {
  background-size: 100% 100%;
}

.defs {
  display: grid;
  margin-top: var(--space-4);
}
.def {
  grid-area: 1 / 1;
  background: #fff;
  border-radius: var(--radius-card);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-pop);
  padding: var(--space-4) var(--space-5);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
  visibility: hidden;
}
.def-word {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.375rem;
}
.def-word small {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--step--1);
  color: var(--ink-muted);
}
.def p {
  margin-top: 2px;
}
.def .older {
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px dashed var(--hairline-strong);
  font-size: var(--step--1);
  color: var(--ink-muted);
}

/* Default (no interaction yet): "gnawed" lights up and its meaning shows */
.reader:not(.is-touched) .word-gnawed .vocab {
  animation: word-glow 900ms var(--ease-out) 600ms both;
}
.reader:not(.is-touched) .def-gnawed,
.reader[data-active="gnawed"] .def-gnawed,
.reader[data-active="scorned"] .def-scorned {
  opacity: 1;
  transform: none;
  visibility: visible;
}
/* Interaction, CSS-only where :has() exists; JS sets aria-expanded too */
.reader:has(.word-scorned:is(:hover, :focus-visible, [aria-expanded="true"])) .def-scorned,
.reader:has(.word-gnawed:is(:hover, :focus-visible, [aria-expanded="true"])) .def-gnawed {
  opacity: 1;
  transform: none;
  visibility: visible;
}
.reader:has(.word-scorned:is(:hover, :focus-visible, [aria-expanded="true"])) .def-gnawed {
  opacity: 0;
  visibility: hidden;
}

.quiz {
  margin-top: var(--space-5);
  background: #fff;
  border-radius: var(--radius-card);
  border: 1px solid var(--hairline-strong);
  padding: var(--space-5);
}
.quiz-q {
  font-weight: 600;
  font-size: 1.0625rem;
  margin: var(--space-3) 0 var(--space-4);
  line-height: 1.4;
}
.quiz ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-2);
}
.quiz li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-height: 44px;
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--outline);
  border-radius: var(--radius-btn);
  font-size: 0.9375rem;
}
.quiz li .letter {
  flex: none;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1.5px solid var(--outline);
  font-size: 0.75rem;
  font-weight: 700;
}
.quiz li.right {
  border-color: var(--mint-deep);
  background: var(--mint-tint);
  font-weight: 600;
}
.quiz li.right .letter {
  background: var(--mint-deep);
  border-color: var(--mint-deep);
  color: #fff;
}
.quiz-feedback {
  margin-top: var(--space-3);
  font-size: 0.9375rem;
  color: var(--mint-deep);
  font-weight: 500;
}

/* ---------- Weekly report ---------- */
.report-section {
  background: var(--paper);
  border-block: 1px solid var(--hairline-warm);
}
.report-grid {
  display: grid;
  gap: var(--space-7);
  align-items: start;
}
@media (min-width: 1000px) {
  .report-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.9fr);
    gap: var(--space-8);
  }
}
.report {
  background: #fff;
  border: 1px solid var(--hairline-warm);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
.report-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  background: var(--amber-tint);
  border-bottom: 1px solid var(--hairline-warm);
  font-size: var(--step--1);
  color: var(--amber-deep);
}
.report-band b {
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.75rem;
}
.report-body {
  padding: var(--space-5);
  display: grid;
  gap: var(--space-5);
}
@media (min-width: 640px) {
  .report-body {
    padding: var(--space-6) var(--space-6) var(--space-6);
  }
}
.report-who {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.report-who img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
}
.report-who h3 {
  font-size: var(--step-2);
}
.report-who span {
  font-size: var(--step--1);
  color: var(--ink-muted);
}
.report-lede {
  font-family: var(--font-read);
  font-size: 1.3125rem;
  line-height: 1.45;
  color: var(--ink);
}
.report-lede em {
  color: var(--mint-deep);
}
.report-say {
  color: var(--ink-soft);
  font-size: 1rem;
}
.report-split {
  display: grid;
  gap: var(--space-3);
}
@media (min-width: 560px) {
  .report-split {
    grid-template-columns: 1fr 1fr;
  }
}
.panel {
  border-radius: var(--radius-card);
  padding: var(--space-4);
}
.panel.good {
  background: var(--mint-tint);
}
.panel.nudge {
  background: var(--lilac-tint);
}
.panel h4,
.report h4 {
  margin: 0 0 var(--space-2);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-muted);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.panel.good h4 { color: var(--mint-deep); }
.panel.nudge h4 { color: var(--lilac-deep); }
.panel p {
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--ink-soft);
}
.marker {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0;
  flex: none;
}
.bars {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-3);
}
.bar-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  grid-template-areas:
    "thumb name num"
    "thumb track track";
  column-gap: var(--space-3);
  row-gap: 4px;
  align-items: center;
}
.bar-row img {
  grid-area: thumb;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
}
.bar-name {
  grid-area: name;
  font-size: 0.9375rem;
  color: var(--ink-soft);
  line-height: 1.25;
  min-width: 0;
}
.bar-num {
  grid-area: num;
  font-size: 0.875rem;
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.bar-track {
  grid-area: track;
  height: 12px;
  border-radius: var(--radius-pill);
  background: var(--hairline);
  overflow: hidden;
}
.bar-fill {
  display: block;
  height: 100%;
  width: var(--v);
  border-radius: inherit;
  background: var(--mint);
  transform-origin: left center;
  transition: transform 1100ms var(--ease-out) calc(var(--n, 0) * 120ms + 200ms);
}
.bar-fill.best {
  background: var(--mint-deep);
}
.bar-key {
  font-size: var(--step--1);
  color: var(--ink-muted);
  margin-top: var(--space-3);
}
.try {
  border-radius: var(--radius-card);
  border: 2px dashed var(--amber);
  background: var(--amber-tint);
  padding: var(--space-4) var(--space-5);
}
.try h4 {
  color: var(--amber-deep);
}
.try p {
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--ink);
}
.report-how {
  font-size: var(--step--1);
  color: var(--ink-muted);
  border-top: 1px solid var(--hairline);
  padding-top: var(--space-4);
}

.notes {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-5);
}
.notes li {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: var(--space-3);
}
.notes .marker {
  width: 32px;
  height: 32px;
  font-size: 0.9375rem;
}
.notes h3 {
  font-size: var(--step-1);
  margin-bottom: 2px;
}
.notes p {
  color: var(--ink-soft);
}
.aside-note {
  margin-top: var(--space-6);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-card);
  background: #fff;
  border: 1px solid var(--hairline-strong);
  font-size: 0.9375rem;
  color: var(--ink-soft);
}
@media (min-width: 1000px) {
  .report-aside {
    position: sticky;
    top: var(--space-6);
  }
}

/* ---------- Library strip ---------- */
.library {
  overflow: hidden;
}
.strip {
  margin-top: var(--space-7);
  position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.strip-track {
  display: flex;
  gap: var(--space-4);
  width: max-content;
  list-style: none;
  margin: 0;
  padding: var(--space-3) 0 var(--space-5);
  animation: drift 90s linear infinite;
}
.strip:hover .strip-track,
.strip:focus-within .strip-track {
  animation-play-state: paused;
}
@keyframes drift {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.tile {
  flex: none;
  width: 220px;
  margin: 0;
}
.tile:nth-child(odd) {
  transform: translateY(10px) rotate(-1deg);
}
.tile:nth-child(even) {
  transform: rotate(1deg);
}
.tile img {
  width: 220px;
  height: 147px;
  object-fit: cover;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-paper);
  border: 4px solid #fff;
}
.tile .cap {
  margin-top: var(--space-2);
  font-size: 0.875rem;
  line-height: 1.3;
  color: var(--ink-soft);
  padding-inline: 4px;
}
.tile .cap span {
  display: block;
  color: var(--ink-muted);
  font-size: 0.8125rem;
}
.library-facts {
  list-style: none;
  padding: 0;
  margin: var(--space-6) 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  justify-content: center;
}

/* ---------- Made for children, run by parents ---------- */
.trust-grid {
  display: grid;
  gap: var(--space-5);
}
@media (min-width: 760px) {
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1100px) {
  .trust-grid {
    grid-template-columns: 1.3fr 1fr 1fr;
  }
  .trust-card.avatars-card {
    grid-row: span 2;
  }
}
.trust-card {
  border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-5);
  background: #fff;
  border: 1px solid var(--hairline-strong);
}
.trust-card h3 {
  font-size: var(--step-2);
  margin-bottom: var(--space-2);
}
.trust-card p {
  color: var(--ink-soft);
}
.trust-card.avatars-card {
  background: var(--rose-tint);
  border-color: transparent;
}
.trust-card.lock {
  background: var(--lilac-tint);
  border-color: transparent;
}
.trust-card.noads {
  background: var(--mint-tint);
  border-color: transparent;
}
.trust-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  margin-bottom: var(--space-4);
  box-shadow: var(--shadow-paper);
}
.avatar-cloud {
  list-style: none;
  padding: 0;
  margin: var(--space-6) 0 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
  max-width: 360px;
}
@media (min-width: 1100px) {
  .avatar-cloud {
    max-width: none;
    gap: var(--space-4) var(--space-3);
    margin-top: var(--space-7);
  }
}
.avatar-cloud li {
  animation: float 5s var(--ease-in-out) infinite alternate;
  animation-delay: calc(var(--d) * -0.7s);
}
.avatar-cloud img {
  width: 100%;
  border-radius: 50%;
  border: 4px solid #fff;
  box-shadow: var(--shadow-paper);
}

/* ---------- Pricing ---------- */
.pricing {
  background: linear-gradient(180deg, #fff 0%, var(--amber-tint) 100%);
}
.price-grid {
  display: grid;
  gap: var(--space-5);
  max-width: 880px;
  margin-inline: auto;
}
@media (min-width: 720px) {
  .price-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.price-card {
  position: relative;
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--hairline-strong);
  padding: var(--space-6) var(--space-5);
  box-shadow: var(--shadow-paper);
  display: flex;
  flex-direction: column;
}
.price-card.featured {
  border: 2px solid var(--ink);
  box-shadow: var(--shadow-soft);
}
.price-card .chip {
  align-self: flex-start;
}
.price-card h3,
.price-card h4 {
  margin: var(--space-4) 0 0;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
  font-size: var(--step-2);
}
/* Pro and Family, each over its own pair of cards. */
.plan-group {
  max-width: 880px;
  margin: var(--space-6) auto var(--space-4);
  font-size: var(--step-1);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 var(--space-2);
}
.plan-group span {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.price {
  margin-top: var(--space-3);
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0 var(--space-2);
}
.price-now {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.5rem, 2rem + 2vw, 3.25rem);
  letter-spacing: -0.02em;
  line-height: 1;
}
.price-per {
  font-weight: 600;
  color: var(--ink-soft);
}
.price-then {
  margin-top: var(--space-2);
  color: var(--ink-muted);
  font-size: 0.9375rem;
}
.price-card ul {
  margin: var(--space-5) 0 0;
  padding: var(--space-5) 0 0;
  border-top: 1px solid var(--hairline);
  list-style: none;
  display: grid;
  gap: var(--space-2);
  font-size: 0.9375rem;
}
.price-card li {
  display: flex;
  gap: var(--space-2);
  align-items: flex-start;
}
.price-card li svg {
  flex: none;
  margin-top: 4px;
}
.free-week {
  max-width: 880px;
  margin: 0 auto var(--space-5);
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-card);
  background: var(--mint-tint);
  border: 1px solid var(--mint);
}
.free-week svg {
  flex: none;
}
.free-week b {
  font-family: var(--font-display);
  font-size: var(--step-1);
  display: block;
}
.free-week p {
  font-size: 0.9375rem;
  color: var(--ink-soft);
}
.fine-print {
  max-width: 880px;
  margin: var(--space-6) auto 0;
  font-size: var(--step--1);
  color: var(--ink-muted);
  line-height: 1.6;
}
.fine-print p + p {
  margin-top: var(--space-2);
}
.fine-print a {
  color: var(--ink-soft);
}

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 820px;
  margin-inline: auto;
  border-top: 1px solid var(--hairline-strong);
}
.faq-list details {
  border-bottom: 1px solid var(--hairline-strong);
}
.faq-list summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: 56px;
  padding: var(--space-4) 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step-1);
  line-height: 1.3;
}
.faq-list summary::-webkit-details-marker {
  display: none;
}
.faq-list summary::after {
  content: "";
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--lilac-tint)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='M7 1v12M1 7h12' stroke='%231a1714' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E")
    center / 12px no-repeat;
  transition: transform var(--dur) var(--ease-out);
}
.faq-list details[open] summary::after {
  transform: rotate(45deg);
}
.faq-list details > div {
  padding: 0 0 var(--space-5);
  color: var(--ink-soft);
  max-width: 44rem;
}
.faq-list details > div p + p {
  margin-top: var(--space-3);
}

/* ---------- Final call to action ---------- */
.final {
  padding-block: var(--space-6) var(--section-pad);
}
.final-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--paper);
  border: 1px solid var(--hairline-warm);
  box-shadow: var(--shadow-soft);
  display: grid;
  align-items: center;
}
@media (min-width: 860px) {
  .final-card {
    grid-template-columns: 1.2fr 0.8fr;
  }
}
.final-copy {
  position: relative;
  z-index: 1;
  padding: var(--space-7) var(--space-5);
}
@media (min-width: 640px) {
  .final-copy {
    padding: var(--space-8) var(--space-7);
  }
}
.final-copy p {
  margin-top: var(--space-4);
  font-size: var(--step-1);
  color: var(--ink-soft);
  max-width: 30rem;
}
.final-copy .cta-row {
  margin-top: var(--space-6);
}
.final-copy .cta-note {
  margin-top: 0;
  font-size: var(--step--1);
  color: var(--ink-muted);
}
.final-art {
  position: relative;
  height: 100%;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.final-art img.frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 70%;
  opacity: 0.95;
}
.final-art .float {
  position: relative;
  width: 104px;
}
@media (max-width: 859px) {
  .final-art {
    min-height: 240px;
    order: -1;
  }
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--hairline-strong);
  padding-block: var(--space-7) var(--space-8);
  font-size: 0.9375rem;
  color: var(--ink-muted);
}
.footer-grid {
  display: grid;
  gap: var(--space-5);
}
@media (min-width: 760px) {
  .footer-grid {
    grid-template-columns: 1fr auto;
    align-items: start;
  }
}
.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--space-2);
}
.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: var(--space-2);
  color: var(--ink);
}
.footer-small {
  margin-top: var(--space-5);
  font-size: 0.8125rem;
}

/* ---------- Scroll reveal (only when JS is on) ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 800ms var(--ease-out), transform 800ms var(--ease-out);
  transition-delay: calc(var(--delay, 0) * 90ms);
}
.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}
.js .report:not(.is-in) .bar-fill {
  transform: scaleX(0);
}
.js .ladder:not(.is-in) li {
  transform: scaleY(0.15);
}

/* ---------- Reduced motion: stop everything decorative ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
  .float,
  .note-card,
  .avatar-cloud li,
  .ladder .climber,
  .phone-art img,
  .page,
  .strip-track {
    animation: none !important;
  }
  .page-1,
  .page-2 {
    transform: none;
  }
  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
  /* The drifting strip becomes a plain scrollable row */
  .strip {
    -webkit-mask-image: none;
    mask-image: none;
    overflow-x: auto;
  }
  .strip-track [aria-hidden="true"] {
    display: none;
  }
  .strip-track {
    padding-inline: var(--gutter);
  }
}

@media print {
  .float,
  .note-card,
  .strip,
  .skip-link {
    display: none !important;
  }
  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* iPhone screen, sized to the phone itself (container units), so it reads the
   same at every page width. The word's meaning sits under the text, as a card
   the app shows after a tap, rather than floating over the picture. */
.phone { container-type: inline-size; }
.phone .phone-bar { font-size: 5.4cqw; padding: 4.6cqw 8cqw 2cqw 10cqw; min-height: 0; }
.phone .phone-island { top: 3.4cqw; height: 9cqw; width: 30%; }
.phone .phone-top { padding: 2cqw 6cqw 3cqw; }
.phone .phone-top .chip { font-size: 5cqw; padding: 1cqw 4cqw; }
.phone .phone-avatar { width: 12cqw; height: 12cqw; }
.phone .phone-art { margin: 0 5cqw; aspect-ratio: 16 / 11; border-radius: 6cqw; }
.phone .phone-body { padding: 5cqw 6cqw 6cqw; margin-top: 4cqw; display: flex; flex-direction: column; }
.phone .phone-title { font-size: 8.4cqw; margin-bottom: 2cqw; }
.phone .phone-text { font-size: 7cqw; line-height: 1.5; }
.phone .phone-pop {
  position: static;
  margin-top: 4cqw;
  padding: 3.5cqw 4.5cqw;
  font-size: 6cqw;
  border-radius: 5cqw;
}
.phone .phone-pop b { font-size: 6.4cqw; }
.phone .phone-dots { margin-top: auto; padding-top: 4cqw; }


.library-ask { margin-top: var(--space-3); font-weight: 600; color: var(--ink); }
.library-ask a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
