/* ═══════════════════════════════════════════════════════════════════
   Chapterino — landing page
   Palette synced with flutter_app/lib/core/constants/app_colors.dart
   ═══════════════════════════════════════════════════════════════════ */

:root {
  --primary: #6c5ce7;
  --primary-light: #9b8ff0;
  --primary-dark: #4a3db5;
  --secondary: #fdcb6e;
  --secondary-light: #ffe0a3;
  --secondary-dark: #e0a840;
  --bg: #fff8f0;
  --surface: #ffffff;
  --surface-variant: #f5f0ff;
  --text: #2d3436;
  --text-soft: #636e72;
  --text-hint: #b2bec3;
  --divider: #dfe6e9;
  --border: #e5e5e5;
  --shadow: 0 18px 40px -18px rgba(108, 92, 231, 0.35);
  --shadow-soft: 0 10px 30px -16px rgba(45, 52, 54, 0.18);
  --radius-s: 12px;
  --radius: 18px;
  --radius-l: 28px;
  --radius-xl: 36px;
  --max: 1180px;
  --pad: clamp(20px, 4vw, 56px);
  --ease-soft: cubic-bezier(0.22, 1, 0.36, 1);

  --font-display: "Baloo 2", "Nunito", "Hiragino Maru Gothic ProN", "Yu Gothic UI", "Meiryo", system-ui, sans-serif;
  --font-body: "Nunito", "Hiragino Maru Gothic ProN", "Yu Gothic UI", "Meiryo", system-ui, sans-serif;
}

/* Per-script display font: Japanese uses M PLUS Rounded 1c */
:root[data-lang="ja"] {
  --font-display: "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", "Yu Gothic UI", system-ui, sans-serif;
  --font-body: "M PLUS Rounded 1c", "Hiragino Sans", "Yu Gothic UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

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

/* Custom Fluent emoji icons (replaces OS-default emoji rendering) */
.fl-emoji {
  width: 1em;
  height: 1em;
  display: inline-block;
  vertical-align: -0.15em;
  flex-shrink: 0;
  user-select: none;
}
.pillar__glyph .fl-emoji { width: 44px; height: 44px; }
.theme__emoji  .fl-emoji { width: 32px; height: 32px; }
.mode__head span .fl-emoji { width: 22px; height: 22px; vertical-align: 0; }
.float-emoji .fl-emoji { width: 1em; height: 1em; vertical-align: 0; filter: drop-shadow(0 6px 12px rgba(108, 92, 231, 0.25)); }
.plan__ribbon .fl-emoji { width: 13px; height: 13px; margin-right: 3px; vertical-align: -2px; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

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

/* ───────── Sky backdrop ───────── */
.sky {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(155, 143, 240, 0.25), transparent 60%),
    radial-gradient(900px 500px at -10% 20%, rgba(253, 203, 110, 0.18), transparent 60%),
    linear-gradient(180deg, #fff8f0 0%, #f5f0ff 100%);
}
.aurora {
  position: absolute;
  width: 60vmax; height: 60vmax;
  filter: blur(80px); opacity: 0.55;
  border-radius: 50%;
  mix-blend-mode: screen;
  animation: drift 24s var(--ease-soft) infinite alternate;
}
.aurora--a { left: -20vmax; top: -20vmax; background: radial-gradient(circle, #9b8ff0, transparent 60%); }
.aurora--b { right: -25vmax; top: 10vmax; background: radial-gradient(circle, #fdcb6e, transparent 60%); animation-delay: -6s; animation-duration: 30s; }
.aurora--c { left: 10vmax; bottom: -30vmax; background: radial-gradient(circle, #ffe0a3, transparent 60%); animation-delay: -12s; animation-duration: 28s; }
@keyframes drift {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(8vmax, -6vmax) scale(1.08); }
  100% { transform: translate(-6vmax, 4vmax) scale(0.95); }
}
.stars { position: absolute; inset: 0; width: 100%; height: 100%; }

.dust { position: absolute; inset: 0; }
.dust .speck {
  position: absolute;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffe0a3 0%, rgba(255,224,163,0) 70%);
  filter: blur(0.4px);
  animation: float-up var(--dur, 18s) linear infinite;
  animation-delay: var(--delay, 0s);
  opacity: 0.85;
}
@keyframes float-up {
  0%   { transform: translate3d(var(--x, 0), 110vh, 0) scale(0.8); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 0.8; }
  100% { transform: translate3d(calc(var(--x, 0) + var(--drift, 0px)), -10vh, 0) scale(1.1); opacity: 0; }
}

.cursor-sparkle {
  position: fixed; inset: 0; pointer-events: none; z-index: 5;
  width: 100%; height: 100%;
}

/* ───────── Navigation ───────── */
.nav {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 24px;
  padding: 14px var(--pad);
  background: rgba(255, 248, 240, 0.78);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(108, 92, 231, 0.08);
}
.nav__logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-weight: 800; font-size: 22px; color: var(--primary-dark);
  letter-spacing: -0.01em;
}
.logo-mark {
  display: inline-flex;
  filter: drop-shadow(0 4px 10px rgba(108, 92, 231, 0.35));
  animation: book-bob 4.5s var(--ease-soft) infinite;
}
@keyframes book-bob {
  0%, 100% { transform: rotate(-3deg) translateY(0); }
  50%      { transform: rotate(3deg) translateY(-3px); }
}
.nav__links {
  margin-left: auto;
  display: flex; align-items: center; gap: 26px;
  font-weight: 600; font-size: 15px;
}
.nav__links a { position: relative; color: var(--text); transition: color .2s; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  height: 2px; width: 0; background: var(--primary);
  transition: width .3s var(--ease-soft);
  border-radius: 2px;
}
.nav__links a:hover { color: var(--primary-dark); }
.nav__links a:hover::after { width: 100%; }
@media (max-width: 820px) {
  .nav__links { display: none; }
  /* push lang-picker + CTA to the right when links are hidden */
  .nav .lang-picker { margin-left: auto; }
  .nav { gap: 12px; }
}

/* ───────── Language picker (custom dropdown) ───────── */
.lang-picker {
  position: relative;
}
.lang-picker__btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid rgba(108, 92, 231, 0.18);
  font-family: var(--font-body);
  font-size: 13px; font-weight: 700;
  color: var(--primary-dark);
  letter-spacing: 0.5px;
  transition: background .25s, border-color .25s, transform .2s;
}
.lang-picker__btn svg { width: 16px; height: 16px; color: var(--primary); }
.lang-picker__chev {
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  margin-left: 2px;
  transition: transform .25s var(--ease-soft);
}
.lang-picker__btn:hover {
  background: var(--surface-variant);
  border-color: rgba(108, 92, 231, 0.4);
}
.lang-picker.open .lang-picker__chev { transform: rotate(180deg); }
.lang-picker__menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 180px;
  margin: 0; padding: 6px;
  list-style: none;
  background: var(--surface);
  border: 1px solid rgba(108, 92, 231, 0.14);
  border-radius: 16px;
  box-shadow: 0 24px 48px -16px rgba(74, 61, 181, 0.3);
  z-index: 40;
  display: none;
  flex-direction: column;
  gap: 2px;
  transform-origin: top right;
}
.lang-picker.open .lang-picker__menu {
  display: flex;
  animation: lang-pop 0.22s var(--ease-soft);
}
@keyframes lang-pop {
  from { opacity: 0; transform: scale(0.94) translateY(-6px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.lang-picker__menu li { margin: 0; }
.lang-picker__menu button {
  width: 100%;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  text-align: left;
  font-family: var(--font-body); font-size: 14px; color: var(--text);
  transition: background .2s;
}
.lang-picker__menu button:hover { background: var(--surface-variant); }
.lang-picker__menu button.is-active {
  background: linear-gradient(135deg, rgba(108,92,231,0.12), rgba(253,203,110,0.18));
  color: var(--primary-dark);
  font-weight: 700;
}
.lang-picker__menu b {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--primary);
  background: rgba(108, 92, 231, 0.1);
  padding: 3px 8px;
  border-radius: 6px;
  min-width: 32px; text-align: center;
}
.lang-picker__menu span { flex: 1; }

@media (max-width: 540px) {
  .lang-picker__btn span:not(.lang-picker__chev):not(.lang-picker__code) { display: none; }
  .lang-picker__menu { right: -8px; min-width: 170px; }
}

/* ───────── Custom CTA Button (magical glow + sparkle) ───────── */
.cta-btn {
  --c1: #6c5ce7; --c2: #9b8ff0;
  position: relative;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 26px;
  font-family: var(--font-body);
  font-weight: 800; font-size: 16px; letter-spacing: 0.3px;
  color: #fff;
  background: linear-gradient(135deg, var(--c1) 0%, var(--c2) 100%);
  border-radius: 999px;
  box-shadow:
    0 12px 28px -10px rgba(108, 92, 231, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  isolation: isolate;
  overflow: hidden;
  transition: transform .25s var(--ease-soft), box-shadow .25s var(--ease-soft);
}
.cta-btn::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--c2), var(--c1));
  opacity: 0; transition: opacity .35s;
  z-index: -1;
}
.cta-btn::after {
  content: "";
  position: absolute; inset: -2px;
  border-radius: inherit;
  background: conic-gradient(from 0deg, transparent 70%, #ffe0a3 80%, transparent 92%);
  z-index: -2; opacity: 0;
  animation: spin 3s linear infinite;
  filter: blur(6px);
}
.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow:
    0 18px 36px -10px rgba(108, 92, 231, 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
.cta-btn:hover::before { opacity: 1; }
.cta-btn:hover::after { opacity: 1; }
.cta-btn:active { transform: translateY(0); }
.cta-btn--small { padding: 10px 18px; font-size: 14px; }
.cta-btn--full { width: 100%; justify-content: center; }
.cta-btn--alt { --c1: #fdcb6e; --c2: #e0a840; color: #2d3436; }
.cta-btn__sparkle {
  position: absolute; inset: 0;
  pointer-events: none;
  background:
    radial-gradient(2px 2px at 20% 30%, #fff 30%, transparent 40%),
    radial-gradient(2px 2px at 70% 60%, #ffe0a3 30%, transparent 40%),
    radial-gradient(1.5px 1.5px at 40% 80%, #fff 30%, transparent 40%),
    radial-gradient(1.5px 1.5px at 85% 20%, #ffe0a3 30%, transparent 40%);
  opacity: 0; transition: opacity .3s;
}
.cta-btn:hover .cta-btn__sparkle { opacity: 1; animation: twinkle 1.6s ease-in-out infinite; }
@keyframes twinkle {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(0, -2px); }
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ───────── Hero ───────── */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(24px, 5vw, 80px);
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(40px, 8vw, 100px) var(--pad) clamp(60px, 10vw, 120px);
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.4px;
  color: var(--primary-dark);
  background: rgba(155, 143, 240, 0.16);
  border: 1px solid rgba(108, 92, 231, 0.18);
  border-radius: 999px;
  text-transform: uppercase;
}
.eyebrow__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 4px rgba(108, 92, 231, 0.18);
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(108, 92, 231, 0.18); }
  50%      { box-shadow: 0 0 0 8px rgba(108, 92, 231, 0); }
}

h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(38px, 6vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 18px 0 22px;
}
.grad-text {
  background: linear-gradient(120deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
}
.grad-text::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -4px;
  height: 8px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 8' preserveAspectRatio='none'><path d='M2 5 Q 50 1 100 5 T 198 5' fill='none' stroke='%23fdcb6e' stroke-width='3' stroke-linecap='round'/></svg>") center/100% 100% no-repeat;
  opacity: 0.7;
}
.reveal-words span {
  display: inline-block;
  opacity: 0; transform: translateY(20px);
  animation: word-in 0.6s var(--ease-soft) forwards;
}
.reveal-words span:nth-child(1)  { animation-delay: 0.05s; }
.reveal-words span:nth-child(2)  { animation-delay: 0.12s; }
.reveal-words span:nth-child(3)  { animation-delay: 0.19s; }
.reveal-words span:nth-child(4)  { animation-delay: 0.26s; }
.reveal-words span:nth-child(5)  { animation-delay: 0.33s; }
.reveal-words span:nth-child(6)  { animation-delay: 0.40s; }
.reveal-words span:nth-child(7)  { animation-delay: 0.47s; }
.reveal-words span:nth-child(8)  { animation-delay: 0.54s; }
@keyframes word-in {
  to { opacity: 1; transform: translateY(0); }
}

.hero__lead {
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--text-soft);
  max-width: 520px;
  margin-bottom: 28px;
}
.hero__lead strong { color: var(--text); font-weight: 800; }

.hero__ctas {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin-bottom: 18px;
}

/* ───────── Custom App Store badge ───────── */
.store-badge {
  display: inline-grid;
  grid-template-columns: auto auto;
  grid-template-rows: auto auto;
  align-items: center;
  justify-content: start;
  column-gap: 12px;
  row-gap: 2px;
  padding: 12px 22px 12px 18px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #2d3436 0%, #1a1d1e 100%);
  color: #fff;
  box-shadow: var(--shadow);
  position: relative;
  transition: transform .25s var(--ease-soft), box-shadow .25s var(--ease-soft);
  overflow: hidden;
}
.store-badge svg {
  width: 30px; height: 30px;
  grid-row: 1 / 3;
  grid-column: 1;
  align-self: center;
  flex-shrink: 0;
}
.store-badge__top {
  grid-column: 2; grid-row: 1;
  display: block;
  font-size: 11px; line-height: 1.1;
  opacity: 0.75;
  letter-spacing: 0.2px;
  text-transform: uppercase;
  font-weight: 600;
}
.store-badge__big {
  grid-column: 2; grid-row: 2;
  display: block;
  font-family: var(--font-display);
  font-weight: 700; font-size: 20px; line-height: 1.1;
  letter-spacing: -0.01em;
}
.store-badge::after {
  content: "";
  position: absolute; top: -50%; left: -120%;
  width: 60%; height: 200%;
  background: linear-gradient(120deg, transparent, rgba(255, 224, 163, 0.35), transparent);
  transform: skewX(-20deg);
  transition: left .9s ease;
}
.store-badge:hover { transform: translateY(-2px); box-shadow: 0 24px 50px -16px rgba(45, 52, 54, 0.5); }
.store-badge:hover::after { left: 130%; }

.trust {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; color: var(--text-soft);
  margin-top: 6px;
}

/* ───────── Phone stage ───────── */
.phone-stage {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  height: clamp(420px, 52vw, 620px);
}
.orbit {
  position: absolute;
  border: 1.5px dashed rgba(108, 92, 231, 0.25);
  border-radius: 50%;
  pointer-events: none;
}
.orbit--small {
  width: 60%; aspect-ratio: 1; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation: spin 30s linear infinite;
}
.orbit--big {
  width: 90%; aspect-ratio: 1; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation: spin 50s linear infinite reverse;
  border-color: rgba(253, 203, 110, 0.32);
}
.float-emoji {
  position: absolute;
  font-size: 28px;
  filter: drop-shadow(0 6px 12px rgba(108, 92, 231, 0.25));
  animation: float 6s ease-in-out infinite;
}
.float-emoji--star  { top: 8%; left: 12%; color: var(--secondary); animation-delay: -0.5s; }
.float-emoji--moon  { top: 18%; right: 8%; font-size: 36px; animation-delay: -2s; color: var(--secondary-light); }
.float-emoji--cloud { bottom: 12%; left: 6%; font-size: 32px; animation-delay: -4s; }
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50%      { transform: translateY(-14px) rotate(3deg); }
}

.phone {
  position: relative;
  width: clamp(240px, 28vw, 320px);
  aspect-ratio: 9 / 19.5;
  background: linear-gradient(160deg, #2d3436 0%, #0e0f10 100%);
  border-radius: 44px;
  padding: 12px;
  box-shadow:
    0 60px 80px -30px rgba(74, 61, 181, 0.45),
    0 30px 60px -20px rgba(45, 52, 54, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  animation: phone-bob 7s var(--ease-soft) infinite;
}
@keyframes phone-bob {
  0%, 100% { transform: translateY(0) rotate(-1.5deg); }
  50%      { transform: translateY(-12px) rotate(1.5deg); }
}
.phone__notch {
  position: absolute; top: 18px; left: 50%;
  transform: translateX(-50%);
  width: 90px; height: 24px;
  background: #0a0a0a;
  border-radius: 999px;
  z-index: 2;
}
.phone__screen {
  width: 100%; height: 100%;
  background: linear-gradient(180deg, #fff8f0 0%, #f5f0ff 100%);
  border-radius: 32px;
  overflow: hidden;
  position: relative;
}

/* ───── Phone story-card (real reader UI) ───── */
.story-card {
  height: 100%;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  padding: 50px 14px 14px;
  gap: 14px;
}

.story-card__topbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px;
}
.story-card__icon-btn {
  width: 30px; height: 30px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--surface);
  color: var(--primary-dark);
  box-shadow: 0 3px 8px -3px rgba(45,52,54,.15);
  transition: background .2s;
}
.story-card__icon-btn:hover { background: var(--surface-variant); }
.story-card__icon-btn svg { width: 14px; height: 14px; }
.story-card__counter {
  display: inline-flex; align-items: baseline; gap: 3px;
  padding: 6px 14px;
  background: rgba(108, 92, 231, 0.1);
  border-radius: 999px;
  font-family: var(--font-display);
  color: var(--primary-dark);
  letter-spacing: 0.3px;
}
.story-card__counter strong {
  font-weight: 800; font-size: 14px; line-height: 1;
}
.story-card__counter small {
  font-weight: 600; font-size: 11px; color: var(--text-soft);
}

.story-card__illust {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 22px -10px rgba(74, 61, 181, 0.45);
  aspect-ratio: 4 / 3;
  background: #4A3DB5;
}
.story-card__illust .cover-art {
  width: 100%; height: 100%;
  display: block;
}
.story-card__chip {
  position: absolute;
  bottom: 10px; left: 10px;
  padding: 4px 10px;
  font-family: var(--font-display);
  font-weight: 700; font-size: 10px;
  letter-spacing: 0.5px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 999px;
  max-width: calc(100% - 20px);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cover-art .cover-stars circle { animation: star-blink 2.5s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
.cover-art .cover-stars circle:nth-child(2) { animation-delay: -.5s; }
.cover-art .cover-stars circle:nth-child(3) { animation-delay: -1s; }
.cover-art .cover-stars circle:nth-child(4) { animation-delay: -1.5s; }
.cover-art .cover-stars circle:nth-child(5) { animation-delay: -2s; }
.cover-art .cover-stars circle:nth-child(6) { animation-delay: -1.2s; }
@keyframes star-blink {
  0%, 100% { opacity: 0.4; }
  50%      { opacity: 1; }
}

.story-card__body {
  padding: 0 6px;
  overflow: hidden;
}
.story-card__text {
  margin: 0;
  font-size: 13px; line-height: 1.55;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.char-name {
  background: linear-gradient(180deg, transparent 60%, var(--secondary-light) 60%);
  font-weight: 800; padding: 0 2px;
}

.story-card__player {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  background: linear-gradient(135deg, rgba(108,92,231,0.08), rgba(155,143,240,0.04));
  border: 1px solid rgba(108, 92, 231, 0.1);
  border-radius: 16px;
}
.story-card__play {
  width: 34px; height: 34px; flex-shrink: 0;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  box-shadow: 0 6px 14px -4px rgba(108, 92, 231, 0.5);
  transition: transform .2s;
}
.story-card__play:hover { transform: scale(1.06); }
.story-card__play svg { width: 14px; height: 14px; margin-left: 1px; }
.story-card__player-meta {
  flex: 1;
  display: flex; flex-direction: column; gap: 4px;
  min-width: 0;
}
.story-card__bar {
  position: relative;
  height: 4px;
  background: rgba(108, 92, 231, 0.18);
  border-radius: 2px;
  overflow: visible;
}
.story-card__bar-fill {
  display: block;
  height: 100%;
  width: 30%;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  border-radius: 2px;
  animation: bar-grow 7s linear infinite;
}
.story-card__bar-thumb {
  position: absolute; top: 50%;
  left: 30%;
  width: 10px; height: 10px;
  background: #fff;
  border: 2px solid var(--primary);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 2px 6px -1px rgba(108, 92, 231, 0.4);
  animation: thumb-glide 7s linear infinite;
}
@keyframes bar-grow {
  0%   { width: 0%; }
  100% { width: 100%; }
}
@keyframes thumb-glide {
  0%   { left: 0%; }
  100% { left: 100%; }
}
.story-card__times {
  display: flex; justify-content: space-between;
  font-size: 10px; color: var(--text-soft);
  font-weight: 600; font-variant-numeric: tabular-nums;
  letter-spacing: 0.2px;
}

@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; }
  .phone-stage { order: -1; height: 460px; }
}

/* ───────── Sections common ───────── */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(60px, 9vw, 110px) var(--pad);
}
.section__head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto clamp(36px, 6vw, 64px);
}
.kicker {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 14px;
  padding: 6px 14px;
  background: rgba(108, 92, 231, 0.08);
  border-radius: 999px;
}
.section__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0;
}
.section__title em {
  font-style: italic;
  color: var(--primary);
}
.section__lead {
  margin-top: 16px;
  font-size: clamp(15px, 1.4vw, 18px);
  color: var(--text-soft);
}
.section__footnote {
  margin-top: 32px;
  text-align: center;
  font-size: 14px;
  color: var(--text-soft);
}

.text-link {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 36px auto 0; width: max-content;
  font-weight: 700; color: var(--primary-dark);
  border-bottom: 1.5px dashed transparent;
  transition: gap .25s var(--ease-soft), border-color .25s;
}
.text-link svg { transition: transform .25s var(--ease-soft); }
.text-link:hover { gap: 14px; border-color: var(--primary); }
.text-link:hover svg { transform: translateX(4px); }

/* ───────── Animations: rise, tilt ───────── */
[data-anim] { opacity: 0; transform: translateY(40px); transition: opacity .9s var(--ease-soft), transform .9s var(--ease-soft); }
[data-anim].in { opacity: 1; transform: none; }
[data-anim="rise"]:nth-child(2)  { transition-delay: 0.08s; }
[data-anim="rise"]:nth-child(3)  { transition-delay: 0.16s; }
[data-anim="rise"]:nth-child(4)  { transition-delay: 0.24s; }

/* ───────── Steps ───────── */
.steps {
  list-style: none; padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  position: relative;
}
.steps::before {
  content: "";
  position: absolute; left: 5%; right: 5%; top: 64px;
  height: 2px;
  background: repeating-linear-gradient(90deg, rgba(108,92,231,0.3) 0 8px, transparent 8px 16px);
  z-index: 0;
  pointer-events: none;
}
@media (max-width: 740px) { .steps::before { display: none; } }
.step {
  position: relative; z-index: 1;
  background: var(--surface);
  border-radius: var(--radius-l);
  padding: 32px 24px 26px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(108, 92, 231, 0.06);
  transition: transform .35s var(--ease-soft), box-shadow .35s var(--ease-soft);
}
.step:hover { transform: translateY(-6px); box-shadow: 0 24px 50px -22px rgba(108, 92, 231, 0.35); }
.step__number {
  position: absolute; top: -18px; left: 24px;
  width: 44px; height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 800; font-size: 16px;
  box-shadow: 0 12px 24px -8px rgba(108, 92, 231, 0.5);
}
.step__icon {
  width: 64px; height: 64px;
  margin: 14px 0 18px;
  border-radius: 18px;
  background: var(--surface-variant);
  display: inline-flex; align-items: center; justify-content: center;
}
.step h3 {
  font-family: var(--font-display); font-weight: 700;
  font-size: 19px; margin: 0 0 8px;
}
.step p { color: var(--text-soft); font-size: 15px; margin: 0; }

/* ───────── Pillars ───────── */
.pillars {
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.pillar {
  position: relative;
  padding: 38px 32px 32px;
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(108, 92, 231, 0.06);
  overflow: hidden;
  isolation: isolate;
  transition: transform .4s var(--ease-soft), box-shadow .4s var(--ease-soft);
  transform-style: preserve-3d;
}
.pillar > * { position: relative; z-index: 1; }
.pillar__decor { z-index: 0; }
.pillar--voice { padding-bottom: 60px; }
.pillar:hover { transform: translateY(-8px) rotateX(2deg); box-shadow: 0 30px 60px -24px rgba(108, 92, 231, 0.4); }
.pillar__glyph {
  font-size: 44px;
  display: inline-flex;
  width: 80px; height: 80px;
  align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--surface-variant), #fff);
  border-radius: 24px;
  box-shadow: inset 0 0 0 1px rgba(108, 92, 231, 0.08);
  margin-bottom: 18px;
  transition: transform .5s var(--ease-soft);
}
.pillar:hover .pillar__glyph { transform: scale(1.08) rotate(-6deg); }
.pillar h3 {
  font-family: var(--font-display); font-weight: 700;
  font-size: 22px; margin: 0 0 10px; letter-spacing: -0.005em;
}
.pillar p { color: var(--text-soft); margin: 0; font-size: 15.5px; }
.pillar__decor {
  position: absolute; pointer-events: none;
}
.pillar__decor--orb {
  right: -40px; top: -40px;
  width: 160px; height: 160px;
  background: radial-gradient(circle, rgba(155,143,240,0.35), transparent 70%);
  border-radius: 50%;
}
.pillar__decor--brush {
  right: -10px; bottom: -10px;
  width: 120px; height: 120px;
  background: radial-gradient(circle, rgba(253,203,110,0.5), transparent 65%);
  border-radius: 50%;
}
.pillar__decor--wave {
  right: 24px; bottom: 24px;
  display: flex; align-items: flex-end; gap: 4px;
  height: 32px;
}
.pillar__decor--wave i {
  display: block; width: 4px; height: 100%; border-radius: 2px;
  background: linear-gradient(180deg, var(--primary), var(--primary-light));
  opacity: 0.6;
  animation: wave 1.3s ease-in-out infinite;
}
.pillar__decor--wave i:nth-child(2) { animation-delay: -.2s; }
.pillar__decor--wave i:nth-child(3) { animation-delay: -.4s; }
.pillar__decor--wave i:nth-child(4) { animation-delay: -.6s; }
.pillar__decor--wave i:nth-child(5) { animation-delay: -.8s; }
.pillar__decor--wave i:nth-child(6) { animation-delay: -1.0s; }
.pillar__decor--wave i:nth-child(7) { animation-delay: -1.2s; }
.pillar__decor--wave i:nth-child(8) { animation-delay: -1.4s; }

/* ───────── Demo section ───────── */
.section--demo { padding-top: clamp(40px, 6vw, 80px); }
.demo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(28px, 5vw, 80px);
}
@media (max-width: 880px) { .demo { grid-template-columns: 1fr; } }

.demo__copy h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  margin: 12px 0 16px;
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.demo__copy .lead { color: var(--text-soft); font-size: 17px; margin-bottom: 22px; }
.demo__stats {
  list-style: none; padding: 0; margin: 0 0 28px;
  display: flex; gap: 22px; flex-wrap: wrap;
}
.demo__stats li {
  font-size: 13px; color: var(--text-soft); font-weight: 600;
  display: inline-flex; flex-direction: column; gap: 4px;
}
.demo__stats span {
  font-family: var(--font-display);
  font-weight: 800; font-size: 28px;
  color: var(--primary-dark);
}

/* Book mockup */
.book {
  position: relative;
  perspective: 1200px;
}
.book__spread {
  position: relative;
  display: grid; grid-template-columns: 1fr 1fr;
  background: #fff;
  border-radius: 18px;
  box-shadow:
    0 30px 60px -24px rgba(74, 61, 181, 0.4),
    0 16px 30px -16px rgba(45, 52, 54, 0.18);
  overflow: hidden;
  aspect-ratio: 4 / 2.6;
  transform: rotate(-1.5deg);
  animation: book-tilt 8s var(--ease-soft) infinite;
}
@keyframes book-tilt {
  0%, 100% { transform: rotate(-1.5deg); }
  50%      { transform: rotate(1deg) translateY(-6px); }
}
.book__page {
  position: relative;
  padding: 22px 22px 18px;
}
.book__page--left { padding: 14px; background: var(--surface-variant); }
.book__page--right {
  background: #fff;
  display: flex; flex-direction: column; gap: 12px;
  padding-top: 38px;
}
.book__page--right p {
  font-family: var(--font-body);
  font-size: 15px; color: var(--text);
  margin: 0;
  line-height: 1.65;
}
.book__moral {
  margin-top: auto !important;
  padding-top: 12px;
  border-top: 1.5px dashed var(--divider);
  font-size: 13.5px !important;
  color: var(--primary-dark) !important;
}
.page-tag {
  position: absolute; top: 12px; right: 12px;
  font-size: 10px; font-weight: 800;
  letter-spacing: 0.6px; text-transform: uppercase;
  color: var(--primary-dark);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 5px 10px;
  border-radius: 999px;
  box-shadow: 0 4px 10px -4px rgba(45, 52, 54, 0.25);
  z-index: 2;
}
/* Cover (left) page — keep tag clear of moon SVG */
.book__page--left .page-tag {
  top: 12px; left: 12px; right: auto;
}
.book__turn {
  position: absolute; left: 50%; top: 0; bottom: 0;
  width: 50%;
  pointer-events: none;
  transform-origin: left center;
  animation: page-turn 7s var(--ease-soft) infinite;
}
.book__turn svg { width: 100%; height: 100%; }
@keyframes page-turn {
  0%, 18%   { transform: rotateY(0deg); }
  35%, 70%  { transform: rotateY(-160deg); }
  88%, 100% { transform: rotateY(0deg); }
}
.book__shadow {
  position: absolute; left: 50%; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, transparent, rgba(45,52,54,.18), transparent);
  transform: translateX(-50%);
}

/* ───────── Learn ───────── */
.learn-grid {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.learn-card {
  padding: 28px 26px;
  background: var(--surface);
  border-radius: var(--radius-l);
  border: 1px solid rgba(108, 92, 231, 0.06);
  box-shadow: var(--shadow-soft);
  text-align: left;
  transition: transform .35s var(--ease-soft);
}
.learn-card:hover { transform: translateY(-6px); }
.learn-card__icon {
  width: 64px; height: 64px;
  border-radius: 18px;
  background: var(--surface-variant);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.learn-card__icon--math { background: linear-gradient(135deg, #f5f0ff, #e6dffd); }
.learn-card__icon--sci  { background: linear-gradient(135deg, #fff3df, #ffe0a3); }
.learn-card__icon--soft { background: linear-gradient(135deg, #ffeef0, #ffe0a3); }
.learn-card h3 { font-family: var(--font-display); font-weight: 700; font-size: 19px; margin: 0 0 8px; }
.learn-card p { color: var(--text-soft); margin: 0; font-size: 15px; }

/* ───────── Bilingual modes ───────── */
.section--bilingual { background: linear-gradient(180deg, transparent, rgba(155,143,240,0.06) 30%, transparent 100%); }
.modes {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.mode {
  padding: 28px 26px;
  background: var(--surface);
  border-radius: var(--radius-l);
  border: 1px solid rgba(108, 92, 231, 0.08);
  box-shadow: var(--shadow-soft);
}
.mode__head {
  font-family: var(--font-display); font-weight: 800; font-size: 19px;
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 8px;
}
.mode__head span {
  display: inline-flex; width: 36px; height: 36px;
  border-radius: 12px;
  align-items: center; justify-content: center;
  background: var(--surface-variant);
  font-size: 18px;
}
.mode p { color: var(--text-soft); font-size: 15px; margin: 0 0 14px; }
.mode__sample {
  background: var(--surface-variant);
  padding: 14px 16px;
  border-radius: 14px;
  font-size: 15px; line-height: 1.6;
  border-left: 3px solid var(--primary);
}
.mode__sample em {
  background: var(--secondary-light);
  font-style: normal; font-weight: 700;
  padding: 0 5px; border-radius: 5px;
}
.mode__sample .tip {
  display: inline-block;
  font-size: 12px; font-weight: 700; color: var(--primary-dark);
  margin-left: 6px;
}
.mode__sample--two {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  border-left: none;
  background: linear-gradient(90deg, rgba(155,143,240,0.12), rgba(253,203,110,0.18));
}
.mode__sample--two > div:first-child { border-right: 1px dashed rgba(45,52,54,0.15); padding-right: 12px; }

.lang-row {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
  margin-top: 36px;
}
.lang-pill {
  font-family: var(--font-display);
  font-weight: 700; font-size: 13px; letter-spacing: 1px;
  padding: 8px 14px;
  background: var(--surface);
  color: var(--primary-dark);
  border: 1px solid rgba(108, 92, 231, 0.18);
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
  transition: transform .25s, background .25s;
}
.lang-pill:hover { background: var(--primary); color: #fff; transform: translateY(-3px); }

/* ───────── Themes grid ───────── */
.themes {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.theme {
  position: relative;
  padding: 26px 22px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid rgba(108, 92, 231, 0.08);
  box-shadow: var(--shadow-soft);
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
  text-align: left;
  transition: transform .3s var(--ease-soft), box-shadow .3s var(--ease-soft);
  overflow: hidden;
}
.theme::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(155,143,240,0.18), rgba(253,203,110,0.18));
  opacity: 0; transition: opacity .3s;
  z-index: 0;
}
.theme > * { position: relative; z-index: 1; }
.theme:hover { transform: translateY(-5px) rotate(-1.5deg); box-shadow: 0 20px 36px -16px rgba(108, 92, 231, 0.35); }
.theme:hover::before { opacity: 1; }
.theme__emoji {
  font-size: 32px;
  display: inline-flex; width: 52px; height: 52px;
  align-items: center; justify-content: center;
  background: var(--surface-variant);
  border-radius: 14px;
  transition: transform .35s var(--ease-soft);
}
.theme:hover .theme__emoji { transform: rotate(-12deg) scale(1.1); }
.theme__name {
  font-family: var(--font-display); font-weight: 700; font-size: 16px;
}
.theme--custom {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-color: transparent;
  color: #fff;
}
.theme--custom .theme__emoji {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-weight: 800;
}
.theme--custom .theme__name { color: #fff; }
.theme--custom:hover { box-shadow: 0 24px 40px -16px rgba(108, 92, 231, 0.55); }

/* ───────── Privacy ───────── */
.privacy {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.privacy__card {
  padding: 28px 24px;
  background: var(--surface);
  border-radius: var(--radius-l);
  border: 1px solid rgba(108, 92, 231, 0.08);
  box-shadow: var(--shadow-soft);
  text-align: center;
  transition: transform .3s;
}
.privacy__card:hover { transform: translateY(-6px); }
.privacy__icon {
  width: 72px; height: 72px;
  margin: 0 auto 18px;
  border-radius: 22px;
  background: var(--surface-variant);
  display: inline-flex; align-items: center; justify-content: center;
}
.privacy__card h3 { font-family: var(--font-display); font-weight: 700; font-size: 19px; margin: 0 0 8px; }
.privacy__card p { color: var(--text-soft); font-size: 15px; margin: 0; }
.compliance {
  margin-top: 32px; text-align: center;
  font-size: 13px; color: var(--text-soft);
  letter-spacing: 0.4px;
}

/* ───────── Pricing ───────── */
.section--pricing { background: linear-gradient(180deg, transparent, rgba(253,203,110,0.06), transparent); }
.plans {
  display: grid; gap: 18px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
}
@media (max-width: 1080px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 540px)  { .plans { grid-template-columns: 1fr; } }
.plan {
  position: relative;
  padding: 28px 22px 26px;
  background: var(--surface);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(108, 92, 231, 0.08);
  box-shadow: var(--shadow-soft);
  display: flex; flex-direction: column; gap: 12px;
  transition: transform .3s var(--ease-soft), box-shadow .3s var(--ease-soft);
}
.plan:hover { transform: translateY(-6px); }
.plan h3 { font-family: var(--font-display); font-weight: 700; font-size: 19px; margin: 0; }
.plan__price {
  display: flex; align-items: baseline; gap: 6px;
  flex-wrap: wrap;
  margin: 2px 0 4px;
}
.plan__big {
  font-family: var(--font-display); font-weight: 800; font-size: 36px; line-height: 1;
  color: var(--text);
  letter-spacing: -0.02em;
}
.plan__per { color: var(--text-soft); font-weight: 600; font-size: 14px; }
.plan__trial { color: var(--primary); font-weight: 700; font-size: 13px; margin: 0; }
.plan ul {
  list-style: none; padding: 0; margin: 0 0 8px;
  display: flex; flex-direction: column; gap: 8px;
  flex: 1;
}
.plan li {
  position: relative; padding-left: 24px;
  font-size: 14px; color: var(--text);
  line-height: 1.45;
}
.plan li::before {
  content: "";
  position: absolute; left: 0; top: 6px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--success);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'><path d='M2 6 l3 3 l5 -6' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-size: 70%;
  background-position: center;
  background-repeat: no-repeat;
}
.plan--annual {
  background: linear-gradient(165deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 30px 60px -24px rgba(108, 92, 231, 0.55);
}
.plan--annual h3,
.plan--annual .plan__big { color: #fff; }
.plan--annual .plan__per,
.plan--annual .plan__trial { color: rgba(255, 224, 163, 1); }
.plan--annual li { color: rgba(255, 255, 255, 0.95); }
.plan--annual li::before { background-color: var(--secondary); }

.plan--edu {
  background: linear-gradient(165deg, var(--secondary) 0%, var(--secondary-dark) 100%);
  border-color: transparent;
  color: var(--text);
  box-shadow: 0 30px 60px -24px rgba(253, 203, 110, 0.55);
}
.plan--edu h3,
.plan--edu .plan__big { color: var(--text); }
.plan--edu .plan__per { color: rgba(45, 52, 54, 0.65); }
.plan--edu .plan__trial { color: var(--primary-dark); }
.plan--edu li { color: rgba(45, 52, 54, 0.95); }
.plan--edu li::before { background-color: var(--primary); }

.plan__ribbon {
  position: absolute;
  top: -14px;
  right: 18px;
  background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
  color: var(--text);
  font-family: var(--font-display); font-weight: 800; font-size: 11px;
  padding: 6px 12px;
  border-radius: 999px;
  letter-spacing: 0.4px;
  white-space: nowrap;
  box-shadow: 0 10px 22px -6px rgba(253, 203, 110, 0.55);
  z-index: 2;
}
.plan__ribbon--edu {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 10px 22px -6px rgba(108, 92, 231, 0.55);
}

/* ───────── Ghost button (free / weekly) ───────── */
.ghost-btn {
  display: inline-flex; justify-content: center; align-items: center;
  width: 100%;
  padding: 14px 22px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--primary-dark);
  font-family: var(--font-body);
  font-weight: 800; font-size: 15px; letter-spacing: 0.2px;
  border: 1.5px solid var(--primary);
  transition: background .25s, color .25s, transform .25s;
}
.ghost-btn:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }
.ghost-btn--accent { background: var(--secondary-light); border-color: var(--secondary); color: var(--text); }
.ghost-btn--accent:hover { background: var(--secondary); color: var(--text); }

.fineprint {
  margin-top: 28px;
  text-align: center;
  font-size: 12.5px; color: var(--text-hint);
  max-width: 720px; margin-left: auto; margin-right: auto;
}

/* ───────── Quotes / testimonials ───────── */
.quotes {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.quote {
  margin: 0;
  padding: 28px 26px;
  background: var(--surface);
  border-radius: var(--radius-l);
  border: 1px solid rgba(108, 92, 231, 0.08);
  box-shadow: var(--shadow-soft);
  position: relative;
  isolation: isolate;
}
.quote > * { position: relative; z-index: 1; }
.quote::before {
  content: "“";
  position: absolute; top: -18px; left: 14px;
  font-family: var(--font-display); font-weight: 800;
  font-size: 80px; color: var(--primary-light);
  opacity: 0.25;
  line-height: 1;
  z-index: 0;
  pointer-events: none;
}
.quote__stars {
  color: var(--secondary);
  letter-spacing: 2px;
  font-size: 14px;
  margin-bottom: 8px;
}
.quote blockquote {
  margin: 0 0 16px;
  font-size: 15.5px; line-height: 1.6;
  color: var(--text);
}
.quote figcaption {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px; color: var(--text-soft); font-weight: 600;
}
.avatar {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  font-family: var(--font-display);
  font-weight: 800;
  color: #fff;
  font-size: 14px;
}
.avatar--s { background: linear-gradient(135deg, #fdcb6e, #e0a840); color: var(--text); }
.avatar--d { background: linear-gradient(135deg, #6c5ce7, #4a3db5); }
.avatar--p { background: linear-gradient(135deg, #9b8ff0, #6c5ce7); }

/* ───────── FAQ ───────── */
.faq {
  list-style: none; padding: 0; margin: 0;
  max-width: 760px; margin-inline: auto;
  display: flex; flex-direction: column; gap: 12px;
}
.faq__item {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid rgba(108, 92, 231, 0.08);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: border-color .25s;
}
.faq__item.open { border-color: rgba(108, 92, 231, 0.4); }
.faq__q {
  width: 100%;
  padding: 18px 22px;
  font-family: var(--font-display);
  font-weight: 700; font-size: 17px;
  text-align: left;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  cursor: pointer;
}
.faq__chev {
  width: 28px; height: 28px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--surface-variant);
  position: relative;
  transition: background .25s, transform .35s var(--ease-soft);
}
.faq__chev::before, .faq__chev::after {
  content: "";
  position: absolute; left: 50%; top: 50%;
  width: 12px; height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transform: translate(-50%, -50%);
  transition: transform .35s var(--ease-soft);
}
.faq__chev::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__item.open .faq__chev { background: var(--primary); }
.faq__item.open .faq__chev::before { background: #fff; }
.faq__item.open .faq__chev::after  { background: #fff; transform: translate(-50%, -50%) rotate(0); }
.faq__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .35s var(--ease-soft);
}
.faq__a > p {
  overflow: hidden;
  margin: 0;
  padding: 0 22px;
  color: var(--text-soft);
  font-size: 15.5px;
}
.faq__item.open .faq__a { grid-template-rows: 1fr; }
.faq__item.open .faq__a > p { padding: 0 22px 20px; }

/* ───────── Final CTA ───────── */
.section--final { padding-top: clamp(60px, 8vw, 100px); padding-bottom: clamp(60px, 8vw, 100px); }
.final-cta {
  position: relative;
  max-width: 860px; margin: 0 auto;
  padding: clamp(40px, 7vw, 80px) clamp(24px, 6vw, 64px);
  background:
    radial-gradient(600px 300px at 90% 0%, rgba(253, 203, 110, 0.5), transparent 70%),
    radial-gradient(500px 300px at 0% 100%, rgba(155, 143, 240, 0.5), transparent 70%),
    linear-gradient(160deg, #fff 0%, #fff8f0 100%);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(108, 92, 231, 0.08);
  box-shadow: 0 40px 80px -32px rgba(108, 92, 231, 0.4);
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.final-cta > * { position: relative; z-index: 1; }
.final-cta::before, .final-cta::after { z-index: 0; pointer-events: none; }
.final-cta::before {
  content: "✦";
  position: absolute; top: 22px; left: 32px;
  font-size: 24px; color: var(--secondary);
  animation: float 6s ease-in-out infinite;
}
.final-cta::after {
  content: "✦";
  position: absolute; bottom: 22px; right: 32px;
  font-size: 18px; color: var(--primary-light);
  animation: float 7s ease-in-out infinite reverse;
}
.final-cta h2 {
  font-family: var(--font-display);
  font-weight: 800; font-size: clamp(28px, 4.5vw, 48px);
  margin: 0 0 12px; letter-spacing: -0.015em;
  line-height: 1.1;
}
.final-cta > p { color: var(--text-soft); margin: 0 auto 28px; max-width: 540px; }
.final-cta .hero__ctas { justify-content: center; margin-bottom: 36px; }

/* ───────── Custom input + waitlist ───────── */
.waitlist {
  margin-top: 12px;
  padding-top: 28px;
  border-top: 1.5px dashed var(--divider);
}
.waitlist h3 {
  font-family: var(--font-display); font-weight: 700;
  font-size: 18px; margin: 0 0 6px;
}
.waitlist > p { color: var(--text-soft); margin: 0 0 18px; font-size: 14.5px; }
.waitlist__row {
  display: flex; gap: 10px; flex-wrap: wrap;
  max-width: 520px; margin: 0 auto;
}
.custom-input {
  flex: 1 1 220px;
  padding: 14px 18px;
  font-family: var(--font-body); font-size: 15px; font-weight: 500;
  background: var(--surface);
  border: 1.5px solid var(--border);
  color: var(--text);
  border-radius: 999px;
  outline: none;
  transition: border-color .25s, box-shadow .25s, background .25s;
}
.custom-input::placeholder { color: var(--text-hint); }
.custom-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(108, 92, 231, 0.15);
  background: #fff;
}
.waitlist__ok {
  margin-top: 14px;
  font-size: 14px; font-weight: 700; color: var(--success);
}

/* ───────── Footer ───────── */
.footer {
  margin-top: clamp(40px, 6vw, 80px);
  padding: clamp(40px, 6vw, 64px) var(--pad) 28px;
  background: linear-gradient(180deg, transparent, rgba(155, 143, 240, 0.1));
  border-top: 1px solid rgba(108, 92, 231, 0.08);
}
.footer__cols {
  max-width: var(--max); margin: 0 auto;
  display: grid; gap: 32px;
  grid-template-columns: 1.4fr repeat(4, 1fr);
}
@media (max-width: 880px) { .footer__cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer__cols { grid-template-columns: 1fr; } }
.footer__col h4 {
  font-family: var(--font-display); font-weight: 700;
  font-size: 14px; letter-spacing: 0.4px;
  text-transform: uppercase; color: var(--primary-dark);
  margin: 0 0 14px;
}
.footer__col a {
  display: block; padding: 4px 0;
  color: var(--text-soft); font-size: 14.5px; font-weight: 600;
  transition: color .2s;
}
.footer__col a:hover { color: var(--primary); }
.footer__tag { color: var(--text-soft); font-size: 14px; margin-top: 12px; max-width: 280px; }
.footer__bottom {
  max-width: var(--max); margin: 36px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(108, 92, 231, 0.08);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  font-size: 13px; color: var(--text-hint);
}
.footer__social {
  display: flex; gap: 10px;
}
.footer__social a {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid rgba(108, 92, 231, 0.1);
  color: var(--primary-dark);
  transition: background .25s, color .25s, transform .25s;
}
.footer__social a:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }
.footer__social svg { width: 18px; height: 18px; }

/* ───────── Reduced motion ───────── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal-words span { opacity: 1; transform: none; }
}
