/* My Story marketing site v2 — "premium storybook".
   Palette and roles follow docs/DesignSystem.md: gold is a FILL (never text),
   grape carries links, ink carries type. Layout uses logical properties (RTL-safe). */

:root {
  --ink: #262450;
  --ink-soft: #4a4870;
  --muted: #64627a;
  --paper: #fff9f0;
  --paper-deep: #fdf0dc;
  --card: #ffffff;
  --gold: #fba919;
  --gold-soft: #ffe7b3;
  --grape: #5e34c9;
  --grape-deep: #3d2394;
  --grape-soft: #efe9ff;
  --coral: #ef5a78;
  --coral-soft: #ffe3e9;
  --teal: #2bd0c4;
  --teal-soft: #d9f7f3;
  --night: #1f1c3d;
  --line: rgba(38, 36, 80, 0.12);

  --font-display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --font-body: 'Lato', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --radius-sm: 12px;
  --radius: 22px;
  --radius-lg: 36px;
  --shadow-sm: 0 2px 6px rgba(38, 36, 80, 0.08);
  --shadow: 0 18px 40px -18px rgba(38, 36, 80, 0.35), 0 4px 10px rgba(38, 36, 80, 0.06);
  --shadow-lift: 0 30px 60px -24px rgba(38, 36, 80, 0.45), 0 8px 18px rgba(38, 36, 80, 0.08);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(72px, 10vw, 136px);
  color-scheme: light;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--grape); text-underline-offset: 3px; }
a:hover { color: var(--grape-deep); }
:focus-visible { outline: 3px solid var(--grape); outline-offset: 3px; border-radius: 6px; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
  font-variation-settings: 'SOFT' 100, 'WONK' 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.65rem); line-height: 1.2; }
p { margin: 0 0 1em; text-wrap: pretty; }
em.hand, .hand {
  font-style: italic;
  font-variation-settings: 'SOFT' 100, 'WONK' 1;
  color: var(--grape);
}

.skip-link {
  position: absolute; inset-inline-start: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px;
}
.skip-link:focus { top: 12px; color: #fff; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); position: relative; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 900; font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--grape); margin-bottom: 18px;
}
.eyebrow::before { content: ''; width: 22px; height: 3px; border-radius: 3px; background: var(--gold); }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--ink-soft); max-width: 40em; }
.center { text-align: center; }
.center .lede { margin-inline: auto; }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head.center { margin-inline: auto; }

/* Pre-launch placeholders: impossible to miss, must all be gone before the flip. */
.ph {
  background: repeating-linear-gradient(-45deg, #fff1a8, #fff1a8 6px, #ffe36e 6px, #ffe36e 12px);
  color: #5a4300; border-radius: 6px; padding: 0 6px; font-weight: 900;
  outline: 1px dashed #b38600;
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--gold);
  --btn-fg: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 26px; border-radius: 999px; border: 0;
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 900; font-size: 1.02rem; letter-spacing: 0.01em; text-decoration: none;
  cursor: pointer; white-space: nowrap;
  box-shadow: 0 6px 0 -1px rgba(38, 36, 80, 0.9), 0 14px 26px -10px rgba(251, 169, 25, 0.7);
  transition: transform 0.25s var(--spring), box-shadow 0.25s var(--ease), background 0.2s;
}
.btn:hover { color: var(--btn-fg); transform: translateY(-2px); box-shadow: 0 8px 0 -1px rgba(38, 36, 80, 0.9), 0 20px 30px -12px rgba(251, 169, 25, 0.75); }
.btn:active { transform: translateY(3px); box-shadow: 0 2px 0 -1px rgba(38, 36, 80, 0.9), 0 8px 16px -10px rgba(251, 169, 25, 0.7); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-lg { min-height: 60px; padding: 16px 32px; font-size: 1.1rem; }
.btn-ghost {
  --btn-bg: transparent; --btn-fg: var(--ink);
  box-shadow: inset 0 0 0 2px var(--ink);
}
.btn-ghost:hover { box-shadow: inset 0 0 0 2px var(--ink); background: rgba(38, 36, 80, 0.05); }
.btn-ghost:active { box-shadow: inset 0 0 0 2px var(--ink); }
.btn-light { --btn-bg: #fff; --btn-fg: var(--ink); box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.5); }
.btn-light:hover { box-shadow: 0 14px 28px -12px rgba(0, 0, 0, 0.55); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.text-link {
  font-weight: 900; text-decoration: none; display: inline-flex; align-items: center; gap: 6px;
}
.text-link::after { content: '→'; transition: transform 0.25s var(--spring); }
.text-link:hover::after { transform: translateX(4px); }
[dir='rtl'] .text-link::after { content: '←'; }

/* ---------- Header ---------- */
/* A floating white "island" over the cream page: separates nav from content
   without a heavy colour bar competing with the gold CTA. */
.site-header { position: sticky; top: 0; z-index: 50; padding-top: 12px; pointer-events: none; }
.site-header .nav {
  pointer-events: auto; background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-radius: 22px; box-shadow: 0 0 0 1px rgba(38, 36, 80, 0.07), 0 10px 30px -18px rgba(38, 36, 80, 0.35);
  max-width: calc(var(--wrap) - 2 * var(--gutter) + 48px); padding-inline: 24px 14px;
  transition: box-shadow 0.3s var(--ease);
}
.site-header.is-scrolled .nav { box-shadow: 0 0 0 1px rgba(38, 36, 80, 0.08), 0 16px 36px -16px rgba(38, 36, 80, 0.45); }
@media (max-width: 1240px) { .site-header .nav { margin-inline: var(--gutter); max-width: none; width: auto; } }
.nav { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: inline-flex; flex: none; }
.brand img { height: 40px; width: auto; }
.nav-links { display: flex; gap: 4px; list-style: none; margin: 0 auto; padding: 0; }
.nav-links a {
  display: block; padding: 10px 14px; border-radius: 999px;
  color: var(--ink); text-decoration: none; font-weight: 700; font-size: 0.98rem;
}
.nav-links a:hover, .nav-links a[aria-current='page'] { background: rgba(94, 52, 201, 0.08); color: var(--grape-deep); }
.nav-cta { display: flex; align-items: center; gap: 8px; }
.nav-cta .btn { min-height: 46px; padding: 10px 20px; font-size: 0.96rem; }
.nav-signin { font-weight: 700; color: var(--ink); text-decoration: none; padding: 10px 12px; }
.nav-toggle {
  display: none; margin-inline-start: auto; width: 48px; height: 48px; border-radius: 14px;
  border: 0; background: transparent; cursor: pointer; place-items: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 22px; height: 2.5px; border-radius: 2px; background: var(--ink); position: relative;
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.nav-toggle span::before, .nav-toggle span::after { content: ''; position: absolute; inset-inline-start: 0; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 980px) {
  .nav-toggle { display: grid; }
  .nav-links, .nav-cta { display: none; }
  .nav-open .nav-panel {
    display: flex; flex-direction: column; gap: 8px;
    position: fixed; inset: 92px var(--gutter) auto; padding: 14px 16px 22px; border-radius: 22px;
    background: #fff; box-shadow: 0 30px 50px -20px rgba(38, 36, 80, 0.4);
    max-height: calc(100dvh - 110px); overflow: auto; pointer-events: auto;
  }
  .nav-open .nav-links { display: flex; flex-direction: column; margin: 0; }
  .nav-open .nav-links a { font-size: 1.15rem; padding: 14px 12px; }
  .nav-open .nav-cta { display: flex; flex-direction: column; align-items: stretch; gap: 10px; margin-top: 8px; }
  .nav-open .nav-cta .btn { min-height: 54px; }
  .nav-signin { text-align: center; }
}
@media (min-width: 981px) { .nav-panel { display: contents; } }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(40px, 6vw, 80px) clamp(64px, 8vw, 110px); position: relative; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(closest-side, rgba(251, 169, 25, 0.22), rgba(251, 169, 25, 0) 70%);
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.hero h1 { margin-bottom: 22px; font-size: clamp(2.5rem, 4.3vw, 3.75rem); }
.hero h1 .hand { display: block; }
.hero .lede { margin-bottom: 32px; }
.hero .btn-lg { padding-inline: 24px; }
.hero-note { margin-top: 16px; font-size: 0.95rem; color: var(--muted); }
.trust-row { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px; align-items: center; font-size: 0.95rem; color: var(--ink-soft); }
.stars { color: var(--gold); letter-spacing: 2px; font-size: 1.1rem; }
.trust-row strong { color: var(--ink); }
.trust-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--line); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; }
  .hero .lede { margin-inline: auto; }
  .hero .btn-row, .trust-row { justify-content: center; }
}

/* ---------- Flip book ---------- */
/* A flat, open hardcover: the case sits behind two equal pages and a page
   stack peeks out at the fore-edges. Only the turning leaf goes 3D. */
.book-stage { position: relative; padding: 4% 2% 2%; }
.flipbook {
  --page: min(36vw, 290px);
  position: relative; margin-inline: auto; width: calc(var(--page) * 2); aspect-ratio: 2 / 1;
  perspective: 2400px;
}
@media (max-width: 900px) { .flipbook { --page: min(44vw, 280px); } }
/* Landscape books (e.g. 1024×791 pages): the spread fills the column, and page
   text scales with the book via container units. */
.flipbook.landscape { --page: auto; width: min(100%, 640px); aspect-ratio: 2048 / 791; container-type: inline-size; }
/* Home hero: the open book sits on a warm stage that fills the column, with
   La La stepping out of it, so the hero artifact uses the full height. */
.hero-stage { padding: 15% 5% 5%; isolation: isolate; }
.hero-stage::before {
  content: ''; position: absolute; inset: 0 -4% 0 -2%; z-index: -1; border-radius: var(--radius-lg);
  background:
    radial-gradient(60% 55% at 70% 30%, rgba(255, 231, 179, 0.95), rgba(255, 231, 179, 0) 70%),
    radial-gradient(70% 60% at 20% 85%, rgba(239, 233, 255, 0.95), rgba(239, 233, 255, 0) 70%),
    var(--paper-deep);
  box-shadow: inset 0 0 0 1px rgba(38, 36, 80, 0.05);
}
.hero-stage .flipbook.landscape { width: 100%; max-width: none; transform: rotate(-1.2deg); }
.hero-stage .flip-controls { margin-top: 26px; }
.stage-character {
  position: absolute; z-index: 7; width: 21%; height: auto; right: 1%; top: -3%;
  filter: drop-shadow(0 14px 16px rgba(38, 36, 80, 0.28)); pointer-events: none;
  animation: stage-bob 5s var(--ease) infinite alternate;
}
.stage-spark { position: absolute; z-index: 1; fill: var(--gold); opacity: 0.9; }
.stage-spark.sp1 { width: 30px; left: 8%; top: 8%; }
.stage-spark.sp2 { width: 18px; left: 20%; top: 4%; fill: var(--coral); }
.stage-spark.sp3 { width: 22px; left: 58%; top: 6%; fill: var(--grape); opacity: 0.7; }
.flip-thumbs { display: flex; gap: 8px; justify-content: center; margin-top: 18px; }
.flip-thumb {
  flex: 1 1 0; max-width: 64px; min-width: 0; aspect-ratio: 1024 / 791; padding: 0; border: 0; border-radius: 7px; overflow: hidden; cursor: pointer;
  background: #fff; box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line); opacity: 0.72;
  transition: transform 0.2s var(--spring), opacity 0.2s, box-shadow 0.2s;
}
.flip-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.flip-thumb:hover { opacity: 1; transform: translateY(-2px); }
.flip-thumb[aria-current] { opacity: 1; box-shadow: 0 0 0 3px var(--grape), var(--shadow-sm); }
.flip-thumb:focus-visible { outline: 3px solid var(--grape); outline-offset: 2px; }
@media (max-width: 560px) { .flip-thumbs { gap: 5px; } .flip-thumb { border-radius: 4px; } }
@keyframes stage-bob { from { transform: translateY(0) rotate(0); } to { transform: translateY(-8px) rotate(2deg); } }
@media (prefers-reduced-motion: reduce) { .stage-character { animation: none; } }
@media (max-width: 900px) {
  .hero-stage { padding: 16% 4% 5%; }
  .stage-character { width: 22%; right: 1%; top: -2%; }
}
.flipbook.landscape .page-text { font-size: clamp(0.58rem, 2.05cqw, 0.92rem); padding: 7% 9% 6%; line-height: 1.45; }
.flipbook::before {
  /* the hardcover case */
  content: ''; position: absolute; inset: -10px -14px -12px; border-radius: 14px;
  background: linear-gradient(90deg, #3d2394, #5e34c9 48%, #2f1b78 50%, #5e34c9 52%, #3d2394);
  box-shadow: 0 30px 50px -22px rgba(38, 36, 80, 0.55), 0 8px 16px -8px rgba(38, 36, 80, 0.3);
  opacity: 0; transition: opacity 0.5s var(--ease);
}
.flipbook.is-open::before { opacity: 1; }
.flipbook .page, .flipbook .leaf { position: absolute; top: 0; width: 50%; height: 100%; }
.flipbook .page { display: flex; }
.flipbook .page > * { flex: 1; min-width: 0; }
.flipbook .page-left { left: 0; border-radius: 4px 0 0 4px; }
.flipbook .page-right { left: 50%; border-radius: 0 4px 4px 0; }
/* page-stack edges on the outer sides */
.flipbook .page-left { box-shadow: -3px 0 0 #f1e9da, -5px 1px 0 #e4dac8, -7px 2px 0 #f1e9da; }
.flipbook .page-right { box-shadow: 3px 0 0 #f1e9da, 5px 1px 0 #e4dac8, 7px 2px 0 #f1e9da; }
.page-text {
  background: #fffdf7; display: flex; flex-direction: column; justify-content: center;
  padding: 11% 12% 9%; font-family: var(--font-display); color: var(--ink);
  font-size: clamp(0.72rem, 1.2vw, 0.98rem); line-height: 1.55; overflow: hidden; position: relative;
}
.page-text::after, .page-art::after {
  /* gutter shading toward the spine */
  content: ''; position: absolute; inset-block: 0; width: 18%; pointer-events: none;
}
.page-text::after { right: 0; background: linear-gradient(270deg, rgba(38, 36, 80, 0.16), transparent); }
.page-art::after { left: 0; background: linear-gradient(90deg, rgba(38, 36, 80, 0.22), transparent); }
.page-text p { margin: auto 0; }
.page-text .pn { font-family: var(--font-body); font-size: 0.7rem; color: var(--muted); text-align: center; }
.page-art { background: #fff; overflow: hidden; position: relative; }
.page-art img { width: 100%; height: 100%; object-fit: cover; }
.leaf { left: 50%; transform-origin: left center; transform-style: preserve-3d; transition: transform 1s var(--ease); z-index: 3; }
.leaf.is-turning { transform: rotateY(-180deg); }
.leaf > div { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; display: flex; }
.leaf > div > * { flex: 1; }
.leaf .leaf-back { transform: rotateY(180deg); }
.flipbook-cover {
  position: absolute; inset-block: 0; left: 25%; width: 50%; z-index: 5;
  border-radius: 4px 10px 10px 4px; overflow: hidden;
  box-shadow: 0 30px 50px -22px rgba(38, 36, 80, 0.55), inset 8px 0 10px -6px rgba(0, 0, 0, 0.35);
  transition: opacity 0.6s var(--ease), transform 0.9s var(--ease);
}
.flipbook-cover img { width: 100%; height: 100%; object-fit: cover; }
.flipbook.is-open .flipbook-cover { opacity: 0; transform: translateX(40%) scale(0.96); pointer-events: none; }
.flipbook:not(.is-open) .page { opacity: 0; }
.flipbook .page { transition: opacity 0.5s var(--ease) 0.2s; }
.flip-controls {
  display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 34px; position: relative; z-index: 6;
}
.flip-btn {
  width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  background: #fff; box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line);
  display: grid; place-items: center; transition: transform 0.2s var(--spring);
}
.flip-btn:hover { transform: scale(1.08); }
.flip-btn svg { width: 20px; height: 20px; }
.flip-caption { font-size: 0.9rem; color: var(--muted); text-align: center; min-width: 13em; margin: 0; }
.flip-caption strong { color: var(--ink); font-family: var(--font-display); font-weight: 600; font-style: italic; }

@media (max-width: 560px) {
  .flipbook { --page: 43vw; }
  .page-text { font-size: 0.58rem; padding: 9% 10%; }
  .page-text .pn { display: none; }
}

/* ---------- Stat band ---------- */
.stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0;
  background: var(--card); border-radius: var(--radius-lg); box-shadow: var(--shadow);
  margin-top: calc(var(--section) * -0.55); position: relative; z-index: 2;
}
.stat { padding: 30px 24px; text-align: center; }
.stat + .stat { border-inline-start: 1px solid var(--line); }
.stat b { display: block; font-family: var(--font-display); font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 700; line-height: 1.1; margin-bottom: 6px; }
.stat span { font-size: 0.95rem; color: var(--muted); }
@media (max-width: 760px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { border-inline-start: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
}

/* ---------- Journey ---------- */
.journey { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 36px); counter-reset: step; position: relative; list-style: none; margin: 0; padding: 0; }
.journey::before {
  content: ''; position: absolute; top: 96px; inset-inline: 16%; height: 3px;
  background-image: linear-gradient(90deg, var(--gold) 50%, transparent 50%); background-size: 16px 3px; opacity: 0.8;
}
.step { text-align: center; position: relative; }
.step-art {
  width: 192px; height: 192px; margin: 0 auto 22px; border-radius: 50%; display: grid; place-items: center;
  background: var(--card); box-shadow: var(--shadow); position: relative;
}
.step-art img { width: 78%; transition: transform 0.5s var(--spring); }
.step:hover .step-art img { transform: rotate(-4deg) scale(1.06); }
.step-art::after {
  counter-increment: step; content: counter(step);
  position: absolute; top: 8px; inset-inline-end: 8px; width: 40px; height: 40px; border-radius: 50%;
  background: var(--gold); color: var(--ink); font-weight: 900; display: grid; place-items: center;
  box-shadow: 0 3px 0 var(--ink);
}
.step:nth-child(2) .step-art { background: var(--grape-soft); }
.step:nth-child(1) .step-art { background: var(--teal-soft); }
.step:nth-child(3) .step-art { background: var(--coral-soft); }
.step p { color: var(--ink-soft); max-width: 22em; margin-inline: auto; }
@media (max-width: 820px) {
  .journey { grid-template-columns: 1fr; gap: 44px; }
  .journey::before { display: none; }
}

/* ---------- Feature rows ---------- */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 88px); align-items: center; }
.feature + .feature { margin-top: clamp(80px, 10vw, 140px); }
.feature.flip .feature-media { order: 2; }
.feature-media { position: relative; }
.photo-card { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lift); aspect-ratio: 3 / 2; background: var(--paper-deep); }
.photo-card img { width: 100%; height: 100%; object-fit: cover; }
.check-list { list-style: none; padding: 0; margin: 26px 0 30px; display: grid; gap: 14px; }
.check-list li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: start; }
.check-list li::before {
  content: ''; width: 26px; height: 26px; border-radius: 50%; margin-top: 2px;
  background: var(--teal-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23138a81' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 15px no-repeat;
}
.check-list b { display: block; }
.check-list span { color: var(--ink-soft); font-size: 0.98rem; }
@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; }
  .feature.flip .feature-media { order: 0; }
}

/* UI chips laid over photos — procedural product chrome, never baked into the art. */
.ui-float {
  position: absolute; background: #fff; border-radius: 18px; box-shadow: var(--shadow-lift);
  padding: 12px 14px; display: flex; align-items: center; gap: 10px; font-size: 0.88rem; font-weight: 700;
}
.ui-voice { inset-block-start: 8%; inset-inline-end: -4%; padding: 14px 18px; gap: 14px; }
.rec { width: 42px; height: 42px; border-radius: 50%; background: var(--coral); display: grid; place-items: center; position: relative; flex: none; }
.rec::after { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--coral); animation: pulse 2s var(--ease) infinite; }
.rec svg { width: 20px; height: 20px; }
@keyframes pulse { 0% { opacity: 0.8; transform: scale(0.85); } 100% { opacity: 0; transform: scale(1.35); } }
.wave { display: flex; align-items: center; gap: 3px; height: 34px; }
.wave i { width: 4px; border-radius: 4px; background: var(--grape); animation: wave 1.2s ease-in-out infinite; }
@keyframes wave { 0%, 100% { height: 20%; } 50% { height: 100%; } }
.ui-voice small { display: block; font-weight: 400; color: var(--muted); font-size: 0.78rem; }
.ui-print { inset-block-end: 8%; inset-inline-start: -4%; flex-direction: column; align-items: flex-start; gap: 2px; padding: 14px 18px; }
.ui-print small { color: var(--muted); font-weight: 400; }
@media (max-width: 860px) {
  .ui-voice { inset-inline-end: 4%; }
  .ui-print { inset-inline-start: 4%; }
}

/* Character cast: real characters from the in-app catalog, on a "stage". */
.cast-cloud {
  position: relative; aspect-ratio: 1 / 0.86; border-radius: var(--radius-lg); overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 120%, rgba(251, 169, 25, 0.35), transparent 55%),
    radial-gradient(circle at 15% 20%, rgba(43, 208, 196, 0.22), transparent 40%),
    radial-gradient(circle at 85% 15%, rgba(239, 90, 120, 0.2), transparent 40%),
    linear-gradient(180deg, #2a2463, #1f1c3d);
}
.cast-cloud::after {
  content: ''; position: absolute; inset: auto 0 0; height: 18%;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.25));
}
.cast-cloud img {
  position: absolute; height: auto; filter: drop-shadow(0 14px 14px rgba(0, 0, 0, 0.35));
  transition: transform 0.45s var(--spring); z-index: 1;
}
.cast-cloud img:hover { transform: translateY(-8px) scale(1.05); }
.cast-cloud .c1 { width: 29%; top: 5%; left: 3%; }
.cast-cloud .c2 { width: 17%; top: 4%; left: 33%; }
.cast-cloud .c8 { width: 12%; top: 6%; left: 52%; }
.cast-cloud .c3 { width: 21%; top: 5%; right: 5%; }
.cast-cloud .c4 { width: 26%; bottom: 3%; left: 1%; z-index: 2; }
.cast-cloud .c5 { width: 14%; bottom: 3%; left: 28%; z-index: 2; }
.cast-cloud .c6 { width: 26%; bottom: 3%; left: 43%; z-index: 2; }
.cast-cloud .c7 { width: 25%; bottom: 3%; right: 2%; z-index: 2; }
.cast-cloud .sticker-count { z-index: 3; top: 49%; left: 50%; translate: -50% -50%; background: var(--gold); color: var(--ink); box-shadow: 0 4px 0 var(--ink); }
.sticker-count {
  position: absolute; border-radius: 999px; padding: 10px 18px; font-weight: 900; font-size: 0.92rem; white-space: nowrap;
}

/* ---------- Quotes ---------- */
.quotes-section { background: var(--paper-deep); }
.quotes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.quote {
  background: var(--card); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 22px; margin: 0; position: relative;
}
.quote::before {
  content: '“'; position: absolute; top: -6px; inset-inline-end: 22px; font-family: var(--font-display);
  font-size: 7rem; line-height: 1; color: var(--gold-soft);
}
.quote blockquote { margin: 0; font-family: var(--font-display); font-size: 1.22rem; line-height: 1.5; position: relative; }
.quote figcaption { display: flex; align-items: center; gap: 12px; margin-top: auto; font-size: 0.95rem; }
.quote figcaption b { display: block; }
.quote figcaption span { color: var(--muted); }
.avatar { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; color: var(--ink); flex: none; }
.quote:nth-child(1) .avatar { background: var(--gold-soft); }
.quote:nth-child(2) .avatar { background: var(--teal-soft); }
.quote:nth-child(3) .avatar { background: var(--coral-soft); }
.quote:nth-child(4) .avatar { background: var(--grape-soft); }
@media (max-width: 760px) { .quotes { grid-template-columns: 1fr; } }

/* ---------- Bookshelf (Originals) ---------- */
.shelf-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 36px; }
.shelf-head .section-head { margin-bottom: 0; }
/* Bleeds to the viewport edges while the first book lines up with the page grid. */
.shelf {
  --edge: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(200px, 24vw, 280px); gap: 26px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--edge);
  padding: 24px var(--edge) 46px; margin-inline: calc(50% - 50vw); scrollbar-width: thin;
}
.shelf-book { scroll-snap-align: start; text-decoration: none; color: var(--ink); perspective: 900px; }
.shelf-cover {
  aspect-ratio: 1 / 1; border-radius: 6px 14px 14px 6px; overflow: hidden; position: relative;
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(0,0,0,0.05);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease); transform-origin: left center;
  background: var(--paper-deep);
}
.shelf-cover::before {
  content: ''; position: absolute; inset-block: 0; inset-inline-start: 0; width: 12px; z-index: 1;
  background: linear-gradient(90deg, rgba(0,0,0,0.25), rgba(255,255,255,0.25) 40%, transparent);
}
.shelf-cover img { width: 100%; height: 100%; object-fit: cover; }
.shelf-book:hover .shelf-cover { transform: rotateY(-14deg) translateY(-6px); box-shadow: var(--shadow-lift); }
.shelf-book h3 { font-size: 1.05rem; margin: 16px 0 2px; }
.shelf-book span { font-size: 0.88rem; color: var(--muted); }

/* ---------- Hero Books band ---------- */
.herobook {
  background: linear-gradient(135deg, #fff3d6 0%, #ffe6ec 100%);
  border-radius: var(--radius-lg); padding: clamp(32px, 6vw, 72px);
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center;
  overflow: hidden; position: relative;
}
/* One photo in, a stack of storybooks out. */
.hero-fan { display: grid; grid-template-columns: 0.32fr auto 2fr; align-items: center; gap: 6px; }
.hero-fan .photo-chip { border-radius: 18px; overflow: hidden; border: 6px solid #fff; rotate: -6deg; box-shadow: var(--shadow); }
.hero-fan .arrow { width: 48px; color: var(--coral); }
/* Real-looking hardcover picture books in CSS 3D (cover art carries the lettered
   title; the spine title is live text). --w is the cover size, --t the thickness. */
.pbooks { position: relative; aspect-ratio: 1 / 0.9; perspective: 1600px; }
.pbook {
  --w: 58%; --t: 16px;
  position: absolute; width: var(--w); aspect-ratio: 1000 / 771; transform-style: preserve-3d; /* Hero Books are landscape hardcovers */
  transition: transform 0.6s var(--spring);
}
.pbook > div { position: absolute; }
.pb-cover {
  inset: 0; border-radius: 2px 8px 8px 2px; overflow: hidden; transform: translateZ(calc(var(--t) / 2));
  box-shadow: inset 6px 0 6px -4px rgba(0, 0, 0, 0.45);
}
.pb-cover img { width: 100%; height: 100%; object-fit: cover; }
.pb-cover::after {
  /* the hinge groove and a laminate sheen (titles are lettered into the cover art) */
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.28) 0, rgba(255, 255, 255, 0.25) 3%, rgba(0, 0, 0, 0.12) 5%, transparent 7%),
    linear-gradient(115deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 35%);
}
/* page block (fore-edge) on the right, spine on the left, back cover behind */
.pb-pages {
  top: 1.5%; bottom: 1.5%; width: var(--t); left: calc(100% - var(--t) / 2 - 3px); transform: rotateY(90deg);
  background: repeating-linear-gradient(90deg, #fffdf6 0 1px, #e6dcc8 1px 2px);
}
.pb-spine {
  top: 0; bottom: 0; width: var(--t); left: calc(var(--t) / -2); transform: rotateY(-90deg);
  background: linear-gradient(90deg, #2f1b78, #5e34c9 50%, #2f1b78); display: grid; place-items: center; overflow: hidden;
}
.pb-spine span {
  writing-mode: vertical-rl; color: #ffe7b3; font-family: var(--font-display); font-weight: 700;
  font-size: 0.5rem; white-space: nowrap;
}
.pb-back { inset: 0; background: #3d2394; border-radius: 8px 2px 2px 8px; transform: translateZ(calc(var(--t) / -2)); box-shadow: 0 30px 40px -18px rgba(38, 36, 80, 0.6); }
.pbook.k1 { --w: 52%; left: 0; top: 2%; transform: rotateY(28deg) rotateZ(-4deg); z-index: 1; }
.pbook.k2 { --w: 52%; right: 0; top: 0; transform: rotateY(-30deg) rotateZ(4deg); z-index: 1; }
.pbook.k3 { --w: 58%; left: 21%; bottom: 0; transform: rotateY(-14deg) rotateX(3deg); z-index: 2; }
.herobook:hover .pbook.k1 { transform: rotateY(22deg) rotateZ(-6deg) translateX(-8px); }
.herobook:hover .pbook.k2 { transform: rotateY(-24deg) rotateZ(6deg) translateX(8px); }
.herobook:hover .pbook.k3 { transform: rotateY(-6deg) rotateX(3deg) translateY(-6px); }
.fan-count {
  position: absolute; z-index: 3; left: 4%; bottom: 10%; width: 74px; height: 74px; border-radius: 50%;
  display: grid; place-items: center; background: var(--coral); color: #fff; font-family: var(--font-display);
  font-weight: 700; font-size: 1.6rem; box-shadow: 0 5px 0 var(--ink), var(--shadow); rotate: 8deg;
}
.price-chip { display: inline-flex; align-items: baseline; gap: 6px; background: #fff; border-radius: 999px; padding: 6px 14px; font-weight: 900; font-size: 0.92rem; margin-bottom: 18px; box-shadow: var(--shadow-sm); }
@media (max-width: 860px) { .herobook { grid-template-columns: 1fr; } }

/* ---------- Classroom lane ---------- */
.classroom {
  background: var(--grape-deep) radial-gradient(circle at 85% 10%, rgba(251, 169, 25, 0.25), transparent 40%);
  color: #fff; border-radius: var(--radius-lg); overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
}
.classroom-copy { padding: clamp(36px, 6vw, 72px); }
.classroom h2 { color: #fff; }
.classroom .eyebrow { color: var(--gold-soft); }
.classroom .lede { color: rgba(255, 255, 255, 0.86); }
.classroom .check-list span { color: rgba(255, 255, 255, 0.8); }
.classroom .check-list li::before { background-color: rgba(255,255,255,0.14); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFE7B3' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
.classroom a.text-link { color: var(--gold-soft); }
.classroom-media { padding: clamp(20px, 3vw, 36px); padding-inline-start: 0; align-self: center; }
.classroom-media img { width: 100%; aspect-ratio: 3 / 2; height: auto; object-fit: cover; border-radius: var(--radius); box-shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.55); }
.soon-pill { display: inline-block; background: var(--gold); color: var(--ink); border-radius: 999px; padding: 2px 10px; font-size: 0.75rem; font-weight: 900; margin-inline-end: 6px; }
@media (max-width: 900px) { .classroom { grid-template-columns: 1fr; } .classroom-media { order: -1; padding: 16px 16px 0; } }

/* ---------- Safety trio ---------- */
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.trio-card { background: var(--card); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); }
.trio-card .icon { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; margin-bottom: 18px; }
.trio-card .icon svg { width: 28px; height: 28px; }
.trio-card:nth-child(1) .icon { background: var(--teal-soft); color: #138a81; }
.trio-card:nth-child(2) .icon { background: var(--gold-soft); color: #8a5a00; }
.trio-card:nth-child(3) .icon { background: var(--grape-soft); color: var(--grape); }
.trio-card p { color: var(--ink-soft); margin: 0; }
@media (max-width: 860px) { .trio { grid-template-columns: 1fr; } }

/* ---------- Platforms ---------- */
.platforms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.platform {
  border-radius: var(--radius); padding: 28px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line);
  display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--ink);
  transition: transform 0.3s var(--spring), box-shadow 0.3s var(--ease);
}
.platform:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: var(--ink); }
.platform svg { width: 36px; height: 36px; color: var(--grape); margin-bottom: 8px; }
.platform b { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; }
.platform span { color: var(--ink-soft); font-size: 0.98rem; }
@media (max-width: 760px) { .platforms { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: 12px; }
.faq details { background: var(--card); border-radius: 18px; box-shadow: inset 0 0 0 1px var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 60px 22px 26px; font-weight: 900; font-size: 1.08rem; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; position: absolute; inset-inline-end: 22px; top: 50%; translate: 0 -50%;
  width: 30px; height: 30px; border-radius: 50%; background: var(--paper-deep); display: grid; place-items: center;
  font-size: 1.3rem; transition: rotate 0.3s var(--ease);
}
.faq details[open] summary::after { rotate: 45deg; }
.faq details > div { padding: 0 26px 22px; color: var(--ink-soft); }

/* ---------- Finale ---------- */
/* Copy sits on the right half: the art's girl is left of centre. */
.finale {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; color: #fff; background: var(--night);
  min-height: clamp(460px, 48vw, 600px); display: grid; align-items: center; justify-items: end;
  padding: clamp(28px, 5vw, 64px);
}
.finale > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% center; }
.finale::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(31, 28, 61, 0) 38%, rgba(31, 28, 61, 0.78) 62%, rgba(31, 28, 61, 0.9) 100%);
}
.finale-copy { position: relative; z-index: 2; max-width: 440px; }
.finale h2 { color: #fff; }
.finale p { color: rgba(255, 255, 255, 0.9); font-size: 1.15rem; }
@media (max-width: 760px) {
  .finale { display: block; padding: 0; min-height: 0; }
  .finale > img { position: static; aspect-ratio: 16 / 10; height: auto; }
  .finale::before { display: none; }
  .finale-copy { padding: 28px 24px 32px; max-width: none; text-align: center; }
  .finale .btn-row { justify-content: center; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: rgba(255, 255, 255, 0.78); padding-block: 72px 36px; }
.site-footer a { color: rgba(255, 255, 255, 0.86); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 2fr); gap: 56px; }
.footer-brand img { height: 40px; width: auto; margin-bottom: 18px; }
.footer-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.footer-cols h4 { font-family: var(--font-body); font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: #fff; margin-bottom: 14px; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 0.96rem; }
.footer-bottom {
  margin-top: 56px; padding-top: 26px; border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; font-size: 0.9rem;
}
.social { display: flex; gap: 10px; }
.social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.08); }
.social svg { width: 18px; height: 18px; }
.app-badges { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.app-badge {
  display: inline-flex; align-items: center; gap: 10px; border-radius: 12px; padding: 8px 14px;
  background: #000; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.3); color: #fff !important; line-height: 1.15;
}
.app-badge svg { width: 22px; height: 22px; }
.app-badge small { display: block; font-size: 0.68rem; opacity: 0.85; }
.app-badge b { font-size: 0.98rem; }
.cookie-link { background: none; border: 0; padding: 0; cursor: pointer; color: rgba(255, 255, 255, 0.86); font-size: inherit; }
.cookie-link:hover { text-decoration: underline; color: #fff; }
@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Mobile sticky CTA ---------- */
.mobile-cta {
  position: fixed; inset-inline: 12px; bottom: 12px; z-index: 40; display: none;
  transform: translateY(140%); transition: transform 0.45s var(--ease);
}
.mobile-cta .btn { width: 100%; }
.mobile-cta.is-visible { transform: none; }
@media (max-width: 700px) { .mobile-cta { display: block; } }

/* ---------- Reveal on scroll ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal='2'] { transition-delay: 0.12s; }
.js [data-reveal='3'] { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* Small utilities */
.section.tight-top { padding-top: 0; }
.after-grid { margin-top: 32px; }
.hand.on-dark { color: var(--gold-soft); }
.price-chip .ph { white-space: nowrap; }

/* =====================================================================
   Subpage component kit (MSW-346..348). Pages compose these; page-only
   styles go in marketing/assets/css/pages/<page>.css via meta "styles".
   ===================================================================== */

/* Page hero: a shorter, warm band at the top of every subpage. */
.page-hero { position: relative; overflow: hidden; padding-block: clamp(40px, 6vw, 84px) clamp(48px, 7vw, 96px); }
.page-hero::before {
  content: ''; position: absolute; inset: -30% -10% auto auto; width: 60vw; height: 60vw; max-width: 760px; max-height: 760px;
  background: radial-gradient(closest-side, rgba(94, 52, 201, 0.12), rgba(94, 52, 201, 0) 70%); pointer-events: none;
}
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(32px, 5vw, 72px); align-items: center; position: relative; }
.page-hero h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); margin-bottom: 20px; }
.page-hero .lede { margin-bottom: 28px; }
.page-hero.center { text-align: center; }
.page-hero.center .lede { margin-inline: auto; }
.page-hero.center .btn-row { justify-content: center; }
.page-hero-media { position: relative; }
@media (max-width: 900px) {
  .page-hero-grid { grid-template-columns: 1fr; }
  .page-hero-copy { text-align: center; }
  .page-hero-copy .lede { margin-inline: auto; }
  .page-hero-copy .btn-row { justify-content: center; }
}

/* Card grids */
.cards { display: grid; gap: 24px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card {
  background: var(--card); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line);
  display: flex; flex-direction: column; gap: 10px; color: var(--ink); text-decoration: none; position: relative;
}
a.card { transition: transform 0.3s var(--spring), box-shadow 0.3s var(--ease); }
a.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: var(--ink); }
.card h3 { margin: 0; }
.card p { margin: 0; color: var(--ink-soft); }
.card .icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--grape-soft); color: var(--grape); margin-bottom: 6px; }
.card .icon svg { width: 26px; height: 26px; }
.card .icon.gold { background: var(--gold-soft); color: #8a5a00; }
.card .icon.teal { background: var(--teal-soft); color: #138a81; }
.card .icon.coral { background: var(--coral-soft); color: #b8274a; }
.card-media { margin: -28px -28px 12px; aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; background: var(--paper-deep); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 960px) { .cards, .cards.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .cards, .cards.cols-2, .cards.cols-4 { grid-template-columns: 1fr; } }

/* Numbered steps in a row */
.steps-row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; counter-reset: s; }
.steps-row.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.steps-row li { counter-increment: s; background: var(--card); border-radius: var(--radius); padding: 28px 24px 24px; box-shadow: inset 0 0 0 1px var(--line); position: relative; }
.steps-row li::before {
  content: counter(s); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; margin-bottom: 14px;
  background: var(--gold); color: var(--ink); font-weight: 900; box-shadow: 0 3px 0 var(--ink);
}
.steps-row h3 { font-size: 1.2rem; margin-bottom: 6px; }
.steps-row p { margin: 0; color: var(--ink-soft); font-size: 0.98rem; }
@media (max-width: 960px) { .steps-row, .steps-row.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps-row, .steps-row.cols-3 { grid-template-columns: 1fr; } }

/* Pricing cards */
.price-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
.price-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 860px; margin-inline: auto; }
.price-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.price-card {
  background: var(--card); border-radius: var(--radius-lg); padding: 32px 28px; box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line);
  display: flex; flex-direction: column; position: relative;
}
.price-card.featured { box-shadow: var(--shadow-lift), inset 0 0 0 3px var(--gold); }
.price-card .tag {
  position: absolute; top: -14px; left: 50%; translate: -50% 0; white-space: nowrap; background: var(--gold); color: var(--ink);
  border-radius: 999px; padding: 4px 14px; font-weight: 900; font-size: 0.8rem; box-shadow: 0 3px 0 var(--ink);
}
.price-card h3 { margin-bottom: 4px; }
.price-card .for { color: var(--muted); font-size: 0.95rem; margin: 0 0 18px; }
.price { font-family: var(--font-display); font-size: 2.6rem; font-weight: 700; line-height: 1; margin: 0 0 4px; }
.price small { font-family: var(--font-body); font-size: 0.95rem; font-weight: 700; color: var(--muted); }
.price-alt { color: var(--muted); font-size: 0.92rem; font-weight: 700; margin: 6px 0 0; }
.price-card .check-list { margin: 20px 0 26px; flex: 1; }
.price-card .btn { width: 100%; }
@media (max-width: 1000px) { .price-grid, .price-grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .price-grid, .price-grid.cols-2, .price-grid.cols-4 { grid-template-columns: 1fr; } }

/* Comparison table */
.compare-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--line); background: var(--card); }
.compare { width: 100%; border-collapse: collapse; min-width: 560px; font-size: 0.98rem; }
.compare th, .compare td { padding: 16px 20px; text-align: start; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { font-family: var(--font-display); font-size: 1.1rem; background: var(--paper-deep); }
.compare tbody th { font-weight: 700; }
.compare tr:last-child td, .compare tr:last-child th { border-bottom: 0; }
.compare .yes, .compare .no { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-weight: 900; font-size: 0.9rem; }
.compare .yes { background: var(--teal-soft); color: #138a81; }
.compare .no { background: #f1eef2; color: var(--muted); }

/* Call-to-action band */
.cta-band {
  border-radius: var(--radius-lg); padding: clamp(36px, 6vw, 64px); text-align: center; color: #fff;
  background: var(--grape-deep) radial-gradient(circle at 15% 0%, rgba(251, 169, 25, 0.3), transparent 45%);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, 0.88); max-width: 40em; margin-inline: auto; }
.cta-band .btn-row { justify-content: center; margin-top: 24px; }
.cta-band .text-link { color: var(--gold-soft); }

/* Callout / notice */
.notice { display: flex; gap: 14px; align-items: flex-start; background: var(--gold-soft); border-radius: var(--radius); padding: 18px 22px; color: var(--ink); }
.notice.grape { background: var(--grape-soft); }
.notice.teal { background: var(--teal-soft); }
.notice svg { width: 22px; height: 22px; flex: none; margin-top: 2px; }
.notice p { margin: 0; }

/* Forms */
.form-card { background: var(--card); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.form-grid .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 900; font-size: 0.92rem; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink); background: #fff; border: 0; border-radius: 14px; padding: 12px 14px; min-height: 48px;
  box-shadow: inset 0 0 0 1.5px rgba(38, 36, 80, 0.2); transition: box-shadow 0.2s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; box-shadow: inset 0 0 0 2px var(--grape), 0 0 0 4px rgba(94, 52, 201, 0.15); }
.field .hint { font-size: 0.85rem; color: var(--muted); }
.form-actions { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.form-note { font-size: 0.85rem; color: var(--muted); margin: 14px 0 0; }
.form-card [data-form-status] { font-weight: 700; color: #138a81; margin: 14px 0 0; min-height: 1.4em; }
.form-card.is-sent form { display: none; }
.form-done { display: none; text-align: center; padding: 24px 0; }
.form-card.is-sent .form-done { display: block; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

/* Waitlist sections: pitch on the left, form card on the right. */
.waitlist-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.waitlist-photo { margin-top: 28px; }
@media (max-width: 900px) {
  .waitlist-grid { grid-template-columns: 1fr; }
  .waitlist-photo { display: none; }
}
.form-done .btn { margin-top: 10px; }

/* Chip-style choices (checkboxes and radios) inside lead forms. */
.field.checks { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 10px; flex-direction: row; }
.field.checks legend { font-weight: 900; font-size: 0.92rem; margin-bottom: 8px; width: 100%; }
.field.checks label {
  display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: 0.92rem; cursor: pointer;
  background: #fff; border-radius: 999px; padding: 9px 16px 9px 12px; box-shadow: inset 0 0 0 1.5px rgba(38, 36, 80, 0.16);
  transition: background 0.15s, box-shadow 0.15s;
}
.field.checks label:hover { box-shadow: inset 0 0 0 1.5px rgba(94, 52, 201, 0.45); }
.field.checks label:has(input:checked) { background: var(--grape-soft); box-shadow: inset 0 0 0 2px var(--grape); }
.field.checks label:has(input:focus-visible) { outline: 3px solid var(--grape); outline-offset: 2px; }
/* Override the kit's text-input styling (padding, height, inset border) for checkbox and radio chips. */
.field.checks input[type='checkbox'], .field.checks input[type='radio'] {
  appearance: none; -webkit-appearance: none; flex: none; margin: 0; padding: 0; min-height: 0;
  width: 18px; height: 18px; border-radius: 6px; background: #fff; box-shadow: inset 0 0 0 1.5px rgba(38, 36, 80, 0.35);
  display: grid; place-items: center; cursor: pointer;
}
.field.checks input[type='checkbox']:checked {
  background: var(--grape) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 13px no-repeat;
  box-shadow: none;
}
.field.checks input[type='checkbox']:focus, .field.checks input[type='radio']:focus { outline: none; box-shadow: inset 0 0 0 1.5px rgba(38, 36, 80, 0.35); }
.field.checks input[type='checkbox']:checked:focus { box-shadow: none; }
.field.checks input[type='radio'] { border-radius: 50%; }
.field.checks input[type='radio']:checked { background: #fff; box-shadow: inset 0 0 0 5px var(--grape); }
.field.checks input[type='radio']:checked:focus { box-shadow: inset 0 0 0 5px var(--grape); }

/* Long-form text (about, safety, help answers, blog, legal) */
.prose { max-width: 720px; font-size: 1.08rem; }
.prose h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); margin-top: 1.8em; }
.prose h3 { margin-top: 1.5em; }
.prose p, .prose li { color: var(--ink-soft); }
.prose ul, .prose ol { padding-inline-start: 1.3em; display: grid; gap: 6px; }
.prose blockquote { margin: 1.5em 0; padding: 4px 0 4px 22px; border-inline-start: 4px solid var(--gold); font-family: var(--font-display); font-size: 1.3rem; color: var(--ink); }
.prose img { border-radius: var(--radius); margin: 1.5em 0; }

/* In-page section pills (help, pricing) */
.anchor-nav { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 40px; }
.anchor-nav a { padding: 10px 16px; border-radius: 999px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); font-weight: 700; text-decoration: none; }
.anchor-nav a:hover { box-shadow: inset 0 0 0 2px var(--grape); color: var(--grape-deep); }

.stats.flat { margin-top: 0; }
.section.alt { background: var(--paper-deep); }
.eyebrow.center-line { justify-content: center; }

/* App Store badges work anywhere, not just the footer. */
a.app-badge { text-decoration: none; transition: transform 0.25s var(--spring); }
a.app-badge:hover { color: #fff !important; transform: translateY(-2px); text-decoration: none; }
.price.price-tbd { font-size: 1.9rem; }
.price.price-tbd small { display: block; margin-top: 6px; }
.hp-field { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status-line { min-height: 1.4em; margin: 12px 0 0; font-weight: 700; color: var(--coral); }
