/* Eduksha — marketing site. Mirrors the in-app design system:
   SF Pro + Gilroy, brand blue (#2F7DFF), warm orange accent.
   Editorial structure (eyebrows, Roman numerals, slow reveals)
   adapted for the app's modern sans typography. */

@font-face {
  font-family: "SF Pro";
  src: url("/assets/fonts/sf_pro_regular.OTF") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "SF Pro";
  src: url("/assets/fonts/sf_pro_medium.OTF") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "SF Pro";
  src: url("/assets/fonts/sf_pro_semibold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "SF Pro";
  src: url("/assets/fonts/sf_pro_bold.OTF") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "SF Pro";
  src: url("/assets/fonts/sf_pro_light_italic.OTF") format("opentype");
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Gilroy";
  src: url("/assets/fonts/gilroy_bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Brand — exact match with app's Color.kt */
  --primary:           #2f7dff;
  --primary-dark:      #1e6bef;
  --primary-light:     #4a90ff;
  --primary-container: #dbeafe;
  --primary-soft:      #eef4ff;

  /* Surfaces */
  --bg:                #ffffff;
  --surface:           #ffffff;
  --surface-alt:       #f8faff;
  --border:            #e5ebf5;
  --border-muted:      #f0f2f7;

  /* Text */
  --ink:               #1a2b4a;
  --ink-2:             #2a3a58;
  --ink-3:             #4d5b75;
  --ink-muted:         #6b7a99;
  --ink-soft:          #a0adc2;
  --on-primary:        #ffffff;

  /* Accents */
  --accent:            #f59e0b;
  --accent-soft:       #fef3c7;
  --success:           #22c55e;
  --success-soft:      #dcfce7;

  /* Newspaper paper */
  --paper:             #fbf6e9;

  /* Shadows */
  --shadow-xs:    0 1px 2px rgba(26, 43, 74, 0.04);
  --shadow-sm:    0 4px 14px rgba(26, 43, 74, 0.06);
  --shadow-md:    0 14px 32px rgba(26, 43, 74, 0.10);
  --shadow-lg:    0 30px 60px rgba(26, 43, 74, 0.16);
  --shadow-blue:  0 16px 32px rgba(47, 125, 255, 0.24);

  /* Radii — matches app's rounded-corner aesthetic */
  --radius-sm:    10px;
  --radius:       16px;
  --radius-lg:    22px;

  /* Easing */
  --ease:         cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out:     cubic-bezier(0.16, 1, 0.3, 1);
  --ease-cinema:  cubic-bezier(0.65, 0, 0.35, 1);
}

* { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  font-family: "SF Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-3);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  color: var(--ink);
  margin: 0 0 0.5em;
  letter-spacing: -0.018em;
}
h1, h2 {
  font-family: "Gilroy", "SF Pro", sans-serif;
  font-weight: 700;
}
h1 {
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: -0.028em;
}
h2 {
  font-size: clamp(1.8rem, 4.2vw, 2.8rem);
  line-height: 1.12;
  letter-spacing: -0.022em;
}
h3 {
  font-family: "SF Pro", sans-serif;
  font-weight: 600;
  font-size: 1.18rem;
  line-height: 1.3;
}
h4 {
  font-family: "SF Pro", sans-serif;
  font-size: 1rem;
  font-weight: 600;
}

/* Color emphasis (replaces italic accent) */
.em-blue { color: var(--primary); }
.em-orange { color: var(--accent); }
em.tilt {
  font-style: italic;
  font-weight: 300;
  font-family: "SF Pro", sans-serif;
  color: var(--primary);
}

p {
  margin: 0 0 1em;
  color: var(--ink-3);
}

a {
  color: var(--primary-dark);
  text-decoration: none;
  transition: color 200ms var(--ease);
}
a:hover { color: var(--primary); }

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

::selection { background: rgba(47, 125, 255, 0.18); color: var(--ink); }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 720px) { .container { padding: 0 22px; } }

/* ── Eyebrow (tracked, with rule line) ────────────────────────── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: "SF Pro", sans-serif;
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--primary-dark);
  font-weight: 500;
  margin-bottom: 22px;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 36px;
  height: 1px;
  background: var(--primary-dark);
  flex-shrink: 0;
}
.eyebrow.center { justify-content: center; }
.eyebrow.center::before, .eyebrow.center::after {
  content: "";
  width: 36px; height: 1px;
  background: var(--primary-dark);
}

/* Roman numeral section labels */
.roman {
  font-family: "Gilroy", "SF Pro", sans-serif;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--primary-dark);
  letter-spacing: 0.06em;
  display: inline-flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 18px;
  text-transform: uppercase;
}
.roman::after {
  content: "";
  width: 60px; height: 1px;
  background: var(--border);
  display: inline-block;
  margin-bottom: 6px;
}

/* ── Scroll progress (thin gradient) ──────────────────────────── */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  z-index: 100;
  transition: width 80ms linear;
  pointer-events: none;
}

/* ── Reveal-on-scroll (slow, cinematic) ───────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1100ms var(--ease-cinema), transform 1100ms var(--ease-cinema);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal.delay-1 { transition-delay: 120ms; }
.reveal.delay-2 { transition-delay: 240ms; }
.reveal.delay-3 { transition-delay: 360ms; }
.reveal.delay-4 { transition-delay: 480ms; }
.reveal.delay-5 { transition-delay: 600ms; }

/* ── Header ───────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 280ms var(--ease), background 280ms var(--ease);
}
.site-header.scrolled {
  border-bottom-color: var(--border);
  background: rgba(255, 255, 255, 0.94);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: "Gilroy", "SF Pro", sans-serif;
  font-weight: 700;
  font-size: 1.32rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.brand:hover { color: var(--ink); }
.brand-mark {
  width: 36px; height: 36px;
  border-radius: 9px;
  display: block;
  object-fit: cover;
  box-shadow: var(--shadow-xs);
  transition: transform 500ms var(--ease-cinema);
}
.brand:hover .brand-mark { transform: rotate(-4deg) scale(1.04); }
.nav {
  display: flex;
  gap: 32px;
  align-items: center;
}
.nav a {
  color: var(--ink-3);
  font-family: "SF Pro", sans-serif;
  font-size: 0.92rem;
  font-weight: 500;
  position: relative;
  transition: color 200ms var(--ease);
}
.nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  height: 2px; width: 0;
  background: var(--primary);
  transition: width 320ms var(--ease-cinema);
  border-radius: 2px;
}
.nav a:not(.btn):hover { color: var(--ink); }
.nav a:not(.btn):hover::after { width: 100%; }

@media (max-width: 800px) {
  .nav { gap: 14px; }
  .nav a:not(.btn) { display: none; }
}

/* ── Buttons (matches app's pill style) ───────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: "SF Pro", sans-serif;
  font-weight: 600;
  font-size: 0.94rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 320ms var(--ease), color 320ms var(--ease), border-color 320ms var(--ease), transform 320ms var(--ease), box-shadow 320ms var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
  box-shadow: var(--shadow-blue);
  border-color: var(--primary);
}
.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 22px 44px rgba(47, 125, 255, 0.32);
}
.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--border);
}
.btn-ghost:hover {
  background: var(--primary-soft);
  border-color: var(--primary-container);
  transform: translateY(-1px);
}
.btn-arrow::after {
  content: "→";
  transition: transform 320ms var(--ease-cinema);
}
.btn-arrow:hover::after { transform: translateX(5px); }

/* ── Hero ─────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 92vh;
  padding: 64px 0 100px;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: center;
}
.hero::before {
  content: "";
  position: absolute;
  width: 720px; height: 720px;
  background: radial-gradient(circle, rgba(47, 125, 255, 0.16), transparent 65%);
  top: -200px; right: -200px;
  border-radius: 50%;
  filter: blur(80px);
  z-index: -1;
  animation: drift 22s var(--ease-cinema) infinite alternate;
}
.hero::after {
  content: "";
  position: absolute;
  width: 540px; height: 540px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.18), transparent 65%);
  bottom: -160px; left: -200px;
  border-radius: 50%;
  filter: blur(80px);
  z-index: -1;
  animation: drift 26s var(--ease-cinema) infinite alternate -10s;
}
@keyframes drift {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(60px, 40px) scale(1.08); }
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 72px;
  align-items: center;
  width: 100%;
}
.hero h1 { margin-bottom: 26px; }
.hero h1 em {
  font-family: "SF Pro", sans-serif;
  font-style: italic;
  font-weight: 300;
  color: var(--primary);
}
.hero p.lead {
  font-size: 1.12rem;
  line-height: 1.65;
  color: var(--ink-3);
  max-width: 540px;
  margin: 0 0 36px;
}
.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}
.hero-stats {
  display: flex;
  gap: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  max-width: 540px;
}
.hero-stat .v {
  font-family: "Gilroy", "SF Pro", sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
  letter-spacing: -0.02em;
}
.hero-stat .v em { color: var(--primary); font-style: italic; font-weight: 700; }
.hero-stat .l {
  font-family: "SF Pro", sans-serif;
  font-size: 0.7rem;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 8px;
  display: block;
  font-weight: 500;
}

.hero-art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 600px;
}
.hero-art .phone-frame {
  box-shadow: var(--shadow-lg);
}
.hero-art .phone-frame.front {
  position: relative;
  z-index: 3;
  animation: float-cinema 9s var(--ease-cinema) infinite;
}
.hero-art .phone-frame.right {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  max-width: 320px;
  opacity: 0.97;
  animation: float-right 11s var(--ease-cinema) infinite -3s;
}
@keyframes float-cinema {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-14px); }
}
@keyframes float-right {
  0%, 100% { transform: translate(22%, -42%) rotate(8deg) scale(0.74); }
  50%      { transform: translate(22%, -48%) rotate(7deg) scale(0.74); }
}

/* Floating "today" tag */
.today-tag {
  position: absolute;
  top: 6%; left: -16%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 22px;
  box-shadow: var(--shadow-md);
  z-index: 4;
  text-align: center;
  min-width: 130px;
  animation: float-cinema 11s var(--ease-cinema) infinite -3s;
}
.today-tag .day {
  font-size: 0.62rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--primary-dark);
  font-weight: 600;
  margin-bottom: 4px;
}
.today-tag .date {
  font-family: "Gilroy", sans-serif;
  font-size: 1.9rem;
  color: var(--ink);
  font-weight: 700;
  line-height: 1;
}
.today-tag .month {
  font-size: 0.66rem;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-top: 4px;
  font-weight: 500;
}

.streak-tag {
  position: absolute;
  bottom: 8%; left: -10%;
  background: var(--ink);
  color: var(--surface);
  padding: 12px 18px;
  border-radius: 999px;
  font-family: "SF Pro", sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-md);
  z-index: 4;
  animation: float-cinema 10s var(--ease-cinema) infinite -5s;
}
.streak-tag .flame {
  display: inline-block;
  animation: flame 1.6s var(--ease) infinite;
}
@keyframes flame {
  0%, 100% { transform: scale(1) rotate(-3deg); }
  50%      { transform: scale(1.16) rotate(3deg); }
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 28px; left: 50%;
  transform: translateX(-50%);
  font-family: "SF Pro", sans-serif;
  font-size: 0.66rem;
  letter-spacing: 3.6px;
  text-transform: uppercase;
  color: var(--ink-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  z-index: 2;
  font-weight: 500;
}
.scroll-indicator::before {
  content: "";
  width: 1px;
  height: 48px;
  background: var(--primary);
  position: relative;
  animation: scroll-line 2.4s var(--ease-cinema) infinite;
  transform-origin: top;
}
@keyframes scroll-line {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

@media (max-width: 940px) {
  .hero { padding: 48px 0 80px; min-height: auto; }
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .hero-art { order: -1; min-height: 480px; }
  .hero-art .phone-frame.right { display: none; }
  .today-tag { left: 4%; }
  .streak-tag { left: 4%; bottom: 4%; }
  .scroll-indicator { display: none; }
  .hero-stats { gap: 28px; }
}
@media (max-width: 540px) {
  .hero-stats { flex-wrap: wrap; gap: 22px; }
  .hero-stat .v { font-size: 1.7rem; }
}

/* ── Phone mockup (matches in-app card style) ─────────────────── */
.phone-frame {
  width: 100%;
  max-width: 360px;
  aspect-ratio: 9 / 19;
  border-radius: 42px;
  background: var(--ink);
  padding: 9px;
  position: relative;
}
.phone-frame::before {
  content: "";
  position: absolute;
  top: 14px; left: 50%;
  transform: translateX(-50%);
  width: 104px; height: 22px;
  background: var(--ink);
  border-radius: 0 0 14px 14px;
  z-index: 5;
}
.phone-screen {
  width: 100%; height: 100%;
  border-radius: 32px;
  overflow: hidden;
  background: var(--surface);
  display: flex;
  flex-direction: column;
}
.phone-screen.shot {
  background: var(--ink);
}
.phone-screen.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Today's Learning feed — mimics app's layout */
.phone-screen.feed { background: var(--surface); }
.phone-screen.feed .app-bar {
  padding: 38px 18px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.phone-screen.feed .avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--on-primary);
  display: grid;
  place-items: center;
  font-family: "Gilroy", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  flex-shrink: 0;
}
.phone-screen.feed .greet {
  margin: 0;
  font-size: 0.66rem;
  color: var(--ink-soft);
  font-weight: 500;
  letter-spacing: 0.04em;
}
.phone-screen.feed .greet strong {
  font-family: "Gilroy", sans-serif;
  font-weight: 700;
  font-size: 0.96rem;
  color: var(--ink);
  display: block;
  margin-top: 2px;
}
.phone-screen.feed .streak {
  margin-left: auto;
  font-size: 0.72rem;
  font-weight: 600;
  background: var(--accent-soft);
  color: #b45309;
  padding: 5px 11px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.phone-screen.feed .feed-title {
  padding: 14px 18px 8px;
  margin: 0;
  font-family: "Gilroy", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-muted);
  margin-top: 4px;
  padding-top: 16px;
}
.phone-screen.feed .feed-title small {
  font-family: "SF Pro", sans-serif;
  font-weight: 600;
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary-dark);
  background: var(--primary-soft);
  padding: 3px 8px;
  border-radius: 999px;
}
.phone-screen.feed .feed-list {
  padding: 4px 14px 8px;
  display: grid;
  gap: 8px;
}
.phone-screen.feed .feed-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 11px 13px;
  display: flex;
  align-items: center;
  gap: 11px;
}
.phone-screen.feed .feed-item.done { background: var(--surface-alt); }
.phone-screen.feed .feed-icon {
  width: 30px; height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-size: 0.92rem;
  flex-shrink: 0;
  background: var(--primary-soft);
}
.phone-screen.feed .feed-meta { flex: 1; min-width: 0; }
.phone-screen.feed .feed-meta .t {
  margin: 0;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--ink);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.phone-screen.feed .feed-meta .s {
  margin: 1px 0 0;
  font-size: 0.6rem;
  color: var(--ink-muted);
  font-weight: 500;
}
.phone-screen.feed .feed-pct {
  font-family: "Gilroy", sans-serif;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--primary-dark);
  flex-shrink: 0;
}
.phone-screen.feed .feed-pct.tick { color: var(--success); font-size: 0.74rem; }
.phone-screen.feed .nav-bar {
  margin-top: auto;
  display: flex;
  justify-content: space-around;
  padding: 12px 18px 22px;
  border-top: 1px solid var(--border-muted);
  background: var(--surface);
}
.phone-screen.feed .nav-item {
  display: grid;
  place-items: center;
  font-size: 0.92rem;
  color: var(--ink-soft);
  width: 32px; height: 32px;
  border-radius: 9px;
}
.phone-screen.feed .nav-item.active { background: var(--primary-soft); color: var(--primary-dark); }

/* Parent review screen */
.phone-screen.review { background: var(--surface); }
.phone-screen.review .app-bar {
  padding: 38px 16px 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.phone-screen.review .app-bar .back {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--surface-alt);
  display: grid; place-items: center;
  font-size: 0.95rem;
  color: var(--ink-2);
}
.phone-screen.review .app-bar .ttl {
  font-family: "Gilroy", sans-serif;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ink);
  margin: 0;
}
.phone-screen.review .badge {
  margin-left: auto;
  background: linear-gradient(135deg, var(--accent), #fb923c);
  color: var(--on-primary);
  font-size: 0.62rem;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 999px;
  letter-spacing: 0.04em;
}
.phone-screen.review .review-card {
  margin: 12px 14px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}
.phone-screen.review .review-photo {
  height: 130px;
  background:
    repeating-linear-gradient(0deg, rgba(26, 43, 74, 0.07) 0 1px, transparent 1px 14px),
    linear-gradient(135deg, var(--accent-soft), #fde68a);
  display: grid;
  place-items: center;
  font-size: 2rem;
}
.phone-screen.review .review-body { padding: 10px 12px; }
.phone-screen.review .review-body .who {
  font-size: 0.66rem;
  color: var(--ink-muted);
  margin: 0;
  letter-spacing: 0.04em;
}
.phone-screen.review .review-body .what {
  font-family: "Gilroy", sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--ink);
  margin: 2px 0 0;
}
.phone-screen.review .review-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 0 12px 12px;
}
.phone-screen.review .review-actions button {
  border: none;
  padding: 9px 0;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.74rem;
  font-weight: 600;
  cursor: default;
}
.phone-screen.review .review-actions .approve {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--on-primary);
  box-shadow: 0 4px 10px rgba(47, 125, 255, 0.32);
}
.phone-screen.review .review-actions .redo {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--border);
}
.phone-screen.review .stat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 6px 14px;
}
.phone-screen.review .stat-card {
  background: var(--surface-alt);
  border-radius: 12px;
  padding: 10px;
  text-align: center;
}
.phone-screen.review .stat-card .v {
  font-family: "Gilroy", sans-serif;
  font-size: 1.06rem;
  font-weight: 700;
  color: var(--ink);
}
.phone-screen.review .stat-card .l {
  font-size: 0.6rem;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
  margin-top: 2px;
}
.phone-screen.review .quiz-pill {
  margin: 12px 14px 8px;
  padding: 10px 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 14px;
  color: var(--on-primary);
  font-size: 0.74rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 6px 16px rgba(47, 125, 255, 0.32);
}
.phone-screen.review .quiz-pill .num {
  background: rgba(255, 255, 255, 0.22);
  padding: 3px 8px;
  border-radius: 999px;
  font-weight: 700;
}

/* ── Sections ─────────────────────────────────────────────────── */
section { padding: 120px 0; position: relative; }
@media (max-width: 720px) { section { padding: 80px 0; } }

.section-head { max-width: 760px; margin-bottom: 64px; }
.section-head p { font-size: 1.06rem; line-height: 1.65; color: var(--ink-3); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 em {
  color: var(--primary);
  font-style: italic;
  font-family: "SF Pro", sans-serif;
  font-weight: 300;
}

.alt-bg { background: var(--surface-alt); }

/* ── Trust strip ──────────────────────────────────────────────── */
.trust {
  padding: 32px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface-alt);
}
.trust-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
}
.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: "SF Pro", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
  font-weight: 500;
}
.trust-item .ico {
  font-family: "Gilroy", sans-serif;
  font-weight: 700;
  font-size: 0.86rem;
  color: var(--primary);
  letter-spacing: 0.04em;
  display: inline-block;
  padding-right: 12px;
  border-right: 1px solid var(--border);
  min-width: 22px;
}

/* ── Bento (mirrors app's card aesthetic) ─────────────────────── */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: minmax(220px, auto);
  gap: 18px;
}
.bento-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: border-color 380ms var(--ease-cinema), box-shadow 380ms var(--ease-cinema), transform 380ms var(--ease-cinema);
}
.bento-card:hover {
  border-color: var(--primary-container);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.bento-card .bc-num {
  font-family: "Gilroy", sans-serif;
  font-weight: 700;
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  color: var(--primary-dark);
  margin-bottom: 18px;
  display: block;
}
.bento-card .feature-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
  transition: transform 380ms var(--ease-cinema);
}
.bento-card:hover .feature-icon { transform: scale(1.06) rotate(-3deg); }
.bento-card .feature-icon.warm { background: var(--accent-soft); color: #b45309; }
.bento-card .feature-icon.green { background: var(--success-soft); color: #15803d; }
.bento-card h3 {
  font-family: "Gilroy", sans-serif;
  font-weight: 700;
  font-size: 1.34rem;
  letter-spacing: -0.018em;
  line-height: 1.2;
  margin-bottom: 10px;
  color: var(--ink);
}
.bento-card h3 em {
  color: var(--primary);
  font-style: italic;
  font-weight: 700;
}
.bento-card p {
  font-size: 0.95rem;
  line-height: 1.62;
  color: var(--ink-3);
  margin: 0;
}

.bento-card.span-2 { grid-column: span 2; }
.bento-card.span-3 { grid-column: span 3; }
.bento-card.span-4 { grid-column: span 4; }
.bento-card.row-2 { grid-row: span 2; }

.bento-card.feature {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-color: transparent;
  color: var(--on-primary);
  box-shadow: var(--shadow-blue);
}
.bento-card.feature h3 { color: var(--on-primary); }
.bento-card.feature h3 em { color: var(--accent-soft); }
.bento-card.feature p { color: rgba(255, 255, 255, 0.86); }
.bento-card.feature .bc-num { color: rgba(255, 255, 255, 0.7); }
.bento-card.feature .feature-icon { background: rgba(255, 255, 255, 0.18); color: var(--on-primary); }
.bento-card.feature:hover { transform: translateY(-3px); box-shadow: 0 24px 48px rgba(47, 125, 255, 0.32); }

.bento-card.feature .preview-feed {
  margin-top: 24px;
  display: grid;
  gap: 8px;
}
.bento-card.feature .preview-feed .pf-row {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.bento-card.feature .preview-feed .pf-t {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--on-primary);
  flex: 1;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bento-card.feature .preview-feed .pf-s {
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
}
.bento-card.feature .preview-feed .pf-pct {
  font-family: "Gilroy", sans-serif;
  font-weight: 700;
  font-size: 0.86rem;
  color: var(--accent-soft);
}

@media (max-width: 940px) {
  .bento { grid-template-columns: repeat(4, 1fr); }
  .bento-card.span-3, .bento-card.span-4 { grid-column: span 4; }
  .bento-card.span-2 { grid-column: span 2; }
}
@media (max-width: 600px) {
  .bento { grid-template-columns: 1fr 1fr; gap: 14px; }
  .bento-card.span-2, .bento-card.span-3, .bento-card.span-4, .bento-card.row-2 {
    grid-column: span 2;
    grid-row: auto;
  }
  .bento-card { padding: 24px; }
}

/* ── Subjects (pastel candy-card grid + phone with chips) ────── */
.subjects-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.subject-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.subject-card {
  border-radius: var(--radius);
  padding: 28px 26px;
  position: relative;
  overflow: hidden;
  transition: transform 380ms var(--ease-cinema), box-shadow 380ms var(--ease-cinema);
}
.subject-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.subject-card.peach { background: #ffe8d3; }
.subject-card.blue  { background: #d6e6ff; }
.subject-card.green { background: #dfeed9; }
.subject-card.mint  { background: #d3eee6; }

.subject-card .sc-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: #fff;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  margin-bottom: 18px;
  box-shadow: var(--shadow-xs);
  transition: transform 380ms var(--ease-cinema);
}
.subject-card:hover .sc-icon { transform: rotate(-8deg) scale(1.06); }

.subject-card .sc-class {
  font-family: "SF Pro", sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 4px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.subject-card h3 {
  font-family: "Gilroy", sans-serif;
  font-size: 1.24rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 8px;
  letter-spacing: -0.018em;
}

.subject-card p {
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--ink-3);
  margin: 0 0 18px;
}

.subject-card .sc-cta {
  background: var(--ink);
  color: var(--surface);
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: background 280ms var(--ease), color 280ms var(--ease), transform 280ms var(--ease);
}
.subject-card .sc-cta:hover {
  background: var(--primary);
  color: var(--surface);
  transform: translateX(3px);
}

/* Phone with floating subject chips */
.subjects-art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 540px;
}
.subjects-art::before {
  content: "";
  position: absolute;
  width: 460px; height: 460px;
  background:
    radial-gradient(circle, rgba(245, 158, 11, 0.18), transparent 60%);
  border-radius: 50%;
  filter: blur(40px);
  z-index: 0;
  animation: drift 22s var(--ease-cinema) infinite alternate;
}
.subjects-art .phone-frame {
  position: relative;
  z-index: 2;
  max-width: 300px;
  animation: float-cinema 10s var(--ease-cinema) infinite;
  box-shadow: var(--shadow-md);
}

.subject-chip {
  position: absolute;
  background: var(--surface);
  border-radius: 14px;
  padding: 12px 16px;
  font-family: "SF Pro", sans-serif;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-md);
  z-index: 3;
  white-space: nowrap;
}
.subject-chip .ch-emoji {
  width: 26px; height: 26px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  font-size: 0.95rem;
}
.subject-chip.c1 { top: 6%;  left: -8%;  animation: drift-a 11s var(--ease-cinema) infinite; }
.subject-chip.c1 .ch-emoji { background: #ffe8d3; }
.subject-chip.c2 { top: 0;   right: -10%; animation: drift-b 13s var(--ease-cinema) infinite -3s; }
.subject-chip.c2 .ch-emoji { background: #d6e6ff; }
.subject-chip.c3 { bottom: 32%; left: -16%; animation: drift-c 12s var(--ease-cinema) infinite -5s; }
.subject-chip.c3 .ch-emoji { background: #dfeed9; }
.subject-chip.c4 { bottom: 8%; right: -12%; animation: drift-d 14s var(--ease-cinema) infinite -7s; }
.subject-chip.c4 .ch-emoji { background: #d3eee6; }
.subject-chip.c5 { top: 48%; right: -16%; animation: drift-a 15s var(--ease-cinema) infinite -2s; }
.subject-chip.c5 .ch-emoji { background: #fde2f3; }

@media (max-width: 940px) {
  .subjects-grid { grid-template-columns: 1fr; gap: 40px; }
  .subjects-art { min-height: 460px; order: -1; }
  .subjects-art .phone-frame { max-width: 260px; }
  .subject-chip.c1, .subject-chip.c5 { left: 2%; }
  .subject-chip.c2 { right: 2%; }
  .subject-chip.c3 { left: 4%; }
  .subject-chip.c4 { right: 4%; }
}
@media (max-width: 540px) {
  .subject-cards { grid-template-columns: 1fr; }
  .subjects-art .phone-frame { max-width: 220px; }
  .subject-chip { font-size: 0.78rem; padding: 9px 12px; }
  .subject-chip.c5 { display: none; }
}

/* ── Wavy hand-drawn underline accent ─────────────────────────── */
.wavy {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}
.wavy::after {
  content: "";
  position: absolute;
  left: -3%; right: -3%;
  bottom: -10px;
  height: 9px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 9' preserveAspectRatio='none'><path d='M2 5 Q 12 1, 22 5 T 42 5 T 62 5 T 82 5 T 102 5 T 118 5' stroke='%23F59E0B' stroke-width='3' fill='none' stroke-linecap='round'/></svg>");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  transform-origin: left center;
  animation: wavy-draw 1.2s var(--ease-cinema) 600ms both;
}
@keyframes wavy-draw {
  0%   { transform: scaleX(0); }
  100% { transform: scaleX(1); }
}

/* ── Audience split ───────────────────────────────────────────── */
.audience {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.audience-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 42px;
  position: relative;
  overflow: hidden;
  transition: border-color 380ms var(--ease-cinema), box-shadow 380ms var(--ease-cinema);
}
.audience-card:hover {
  border-color: var(--primary-container);
  box-shadow: var(--shadow-md);
}
.audience-card.warm {
  background:
    radial-gradient(circle at 100% 0%, rgba(245, 158, 11, 0.10), transparent 60%),
    var(--surface);
}
.audience-card.cool {
  background:
    radial-gradient(circle at 0% 100%, rgba(47, 125, 255, 0.10), transparent 60%),
    var(--surface);
}
.audience-card .tag {
  font-family: "SF Pro", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--primary-dark);
  font-weight: 600;
  margin-bottom: 22px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.audience-card.warm .tag { color: #b45309; }
.audience-card .tag::before {
  content: "";
  width: 28px; height: 1px;
  background: currentColor;
}
.audience-card h3 {
  font-family: "Gilroy", sans-serif;
  font-weight: 700;
  font-size: 1.65rem;
  line-height: 1.18;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.audience-card h3 em {
  color: var(--primary);
  font-style: italic;
  font-weight: 700;
}
.audience-card.warm h3 em { color: var(--accent); }
.audience-card p { font-size: 1rem; line-height: 1.68; }
.audience-card ul {
  list-style: none; padding: 0; margin: 28px 0 0;
  display: grid; gap: 14px;
}
.audience-card li {
  display: flex; align-items: flex-start; gap: 14px;
  font-size: 0.96rem;
  line-height: 1.55;
  color: var(--ink-3);
}
.audience-card li::before {
  content: "";
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--primary);
  background-image: url("data:image/svg+xml;utf8,<svg 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'><polyline points='20 6 9 17 4 12'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 11px;
  flex-shrink: 0;
  margin-top: 3px;
}
.audience-card.warm li::before { background-color: var(--accent); }

@media (max-width: 880px) {
  .audience { grid-template-columns: 1fr; }
  .audience-card { padding: 36px 28px; }
}

/* ── How it works (4 steps with Roman numerals) ───────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.step { position: relative; }
.step .step-num {
  font-family: "Gilroy", sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.14em;
  color: var(--primary);
  display: block;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
  text-transform: uppercase;
}
.step h4 {
  font-family: "Gilroy", sans-serif;
  font-weight: 700;
  font-size: 1.18rem;
  letter-spacing: -0.012em;
  margin-bottom: 8px;
  color: var(--ink);
}
.step p { font-size: 0.95rem; line-height: 1.6; margin: 0; }

@media (max-width: 880px) {
  .steps { grid-template-columns: repeat(2, 1fr); gap: 28px; }
}
@media (max-width: 540px) {
  .steps { grid-template-columns: 1fr; }
}

/* ── Safety strip ─────────────────────────────────────────────── */
.safety {
  background: var(--ink);
  color: var(--surface);
  padding: 72px 60px;
  border-radius: var(--radius-lg);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.safety::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 100% 0%, rgba(47, 125, 255, 0.24), transparent 60%);
  pointer-events: none;
}
.safety > * { position: relative; z-index: 1; }
.safety h2 { color: var(--surface); }
.safety h2 em { color: var(--primary-light); font-style: italic; font-weight: 300; }
.safety .eyebrow { color: var(--primary-light); }
.safety .eyebrow::before { background: var(--primary-light); }
.safety p { color: rgba(255, 255, 255, 0.74); font-size: 1rem; line-height: 1.68; }
.safety-list {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 16px;
}
.safety-list li {
  display: flex; gap: 14px;
  align-items: flex-start;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.6;
}
.safety-list li svg {
  flex-shrink: 0;
  color: var(--primary-light);
  margin-top: 2px;
}
.safety a { color: var(--surface); text-decoration: underline; text-underline-offset: 4px; }

@media (max-width: 880px) {
  .safety { grid-template-columns: 1fr; padding: 48px 32px; gap: 32px; }
}

/* ── FAQ ──────────────────────────────────────────────────────── */
.faq {
  display: grid;
  gap: 0;
  max-width: 880px;
  border-top: 1px solid var(--border);
}
.faq details {
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
  transition: padding 320ms var(--ease-cinema);
}
.faq details[open] { padding-bottom: 28px; }
.faq summary {
  cursor: pointer;
  list-style: none;
  font-family: "Gilroy", sans-serif;
  font-weight: 700;
  font-size: 1.12rem;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  letter-spacing: -0.012em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: "Gilroy", sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--primary);
  transition: transform 360ms var(--ease-cinema);
  flex-shrink: 0;
  line-height: 1;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p {
  margin: 14px 0 0;
  max-width: 760px;
  font-size: 0.96rem;
  line-height: 1.68;
  color: var(--ink-3);
  animation: slide-down 460ms var(--ease-cinema);
}
@keyframes slide-down {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── CTA strip ────────────────────────────────────────────────── */
.cta-strip {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--on-primary);
  padding: 88px 80px;
  text-align: center;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-blue);
}
.cta-strip::before, .cta-strip::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.cta-strip::before {
  width: 460px; height: 460px;
  background: rgba(245, 158, 11, 0.36);
  top: -180px; left: -160px;
  animation: drift 24s var(--ease-cinema) infinite alternate;
}
.cta-strip::after {
  width: 380px; height: 380px;
  background: rgba(255, 255, 255, 0.22);
  bottom: -140px; right: -140px;
  animation: drift 28s var(--ease-cinema) infinite alternate -10s;
}
.cta-strip > * { position: relative; z-index: 1; }
.cta-strip .eyebrow { color: var(--accent-soft); }
.cta-strip .eyebrow::before, .cta-strip .eyebrow::after { background: var(--accent-soft); }
.cta-strip h2 {
  color: var(--on-primary);
  font-size: clamp(1.8rem, 4.4vw, 2.8rem);
  margin-bottom: 16px;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
.cta-strip h2 em { color: var(--accent-soft); font-style: italic; font-weight: 300; }
.cta-strip p {
  color: rgba(255, 255, 255, 0.88);
  max-width: 580px;
  margin: 0 auto 36px;
  font-size: 1.04rem;
  line-height: 1.65;
}
.cta-strip .btn-primary {
  background: var(--surface);
  color: var(--primary-dark);
  border-color: var(--surface);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
}
.cta-strip .btn-primary:hover {
  background: var(--accent-soft);
  color: var(--primary-dark);
  border-color: var(--accent-soft);
}

@media (max-width: 720px) { .cta-strip { padding: 56px 28px; } }

/* ── Footer ───────────────────────────────────────────────────── */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.7);
  padding: 72px 0 36px;
  margin-top: 0;
}
.site-footer a { color: rgba(255, 255, 255, 0.84); transition: color 200ms var(--ease); }
.site-footer a:hover { color: var(--surface); }
.footer-grid {
  display: grid;
  grid-template-columns: 2.4fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand .brand { color: var(--surface); margin-bottom: 16px; display: inline-flex; }
.footer-brand p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.96rem;
  line-height: 1.65;
  max-width: 340px;
}
.footer-col h5 {
  color: var(--surface);
  font-family: "SF Pro", sans-serif;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin: 0 0 16px;
  font-weight: 600;
}
.footer-col ul {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 12px;
  font-size: 0.94rem;
}
.legal-line {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 26px;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.5);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ── Long-form (policy / terms / support / delete) ────────────── */
.policy {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 64px;
  margin: 56px 0 96px;
  box-shadow: var(--shadow-xs);
}
.policy h1 {
  font-family: "Gilroy", sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 4.6vw, 3rem);
  margin-bottom: 8px;
  color: var(--ink);
  letter-spacing: -0.022em;
}
.policy .updated {
  font-family: "SF Pro", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 500;
  margin-bottom: 36px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--border);
}
.policy h2 {
  margin-top: 40px;
  font-size: 1.55rem;
  font-family: "Gilroy", sans-serif;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.016em;
}
.policy h3 {
  margin-top: 24px;
  font-family: "SF Pro", sans-serif;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.policy p, .policy li {
  font-family: "SF Pro", sans-serif;
  font-size: 1rem;
  color: var(--ink-3);
  line-height: 1.72;
}
.policy ul, .policy ol { padding-left: 22px; margin: 0 0 1em; }
.policy li { margin-bottom: 8px; }
.policy a {
  color: var(--primary-dark);
  text-decoration: underline;
  text-decoration-color: rgba(47, 125, 255, 0.32);
  text-underline-offset: 4px;
}
.policy a:hover { text-decoration-color: var(--primary); }
.policy strong { color: var(--ink); font-weight: 600; }
.policy table {
  width: 100%;
  border-collapse: collapse;
  margin: 22px 0;
  font-size: 0.94rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.policy table th, .policy table td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.policy table tr:last-child td { border-bottom: none; }
.policy table th {
  background: var(--surface-alt);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.policy .muted { color: var(--ink-muted); font-size: 0.94rem; }
.policy .btn-primary { color: var(--on-primary); text-decoration: none; }
.policy .btn-primary:hover { color: var(--on-primary); text-decoration: none; }

@media (max-width: 720px) { .policy { padding: 36px 28px; margin: 28px 0 64px; } }

/* ── Page hero (small pages) ──────────────────────────────────── */
.page-hero {
  padding: 80px 0 24px;
  text-align: center;
}
.page-hero h1 { margin-bottom: 12px; }
.page-hero p { max-width: 640px; margin: 0 auto; font-size: 1.06rem; }

/* ── Kid-friendly floating decorations ────────────────────────── */
.kid-deco {
  position: absolute;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  font-size: 1.6rem;
  filter: drop-shadow(0 6px 12px rgba(26, 43, 74, 0.12));
  will-change: transform;
}

@keyframes drift-a {
  0%   { transform: translate(0, 0) rotate(-6deg); }
  50%  { transform: translate(14px, -22px) rotate(8deg); }
  100% { transform: translate(0, 0) rotate(-6deg); }
}
@keyframes drift-b {
  0%   { transform: translate(0, 0) rotate(8deg); }
  50%  { transform: translate(-18px, -16px) rotate(-4deg); }
  100% { transform: translate(0, 0) rotate(8deg); }
}
@keyframes drift-c {
  0%   { transform: translate(0, 0) rotate(0deg) scale(1); }
  50%  { transform: translate(8px, 18px) rotate(12deg) scale(1.05); }
  100% { transform: translate(0, 0) rotate(0deg) scale(1); }
}
@keyframes drift-d {
  0%   { transform: translate(0, 0) rotate(-12deg); }
  50%  { transform: translate(-12px, -8px) rotate(6deg); }
  100% { transform: translate(0, 0) rotate(-12deg); }
}

.kid-deco.book   { top: 12%; left: 6%;   animation: drift-a 11s var(--ease-cinema) infinite; }
.kid-deco.pencil { top: 70%; left: 12%;  animation: drift-b 13s var(--ease-cinema) infinite -3s; font-size: 1.4rem; }
.kid-deco.star   { top: 22%; right: 8%;  animation: drift-c 9s var(--ease-cinema) infinite -5s; font-size: 1.2rem; color: var(--accent); }
.kid-deco.plane  { top: 82%; right: 14%; animation: drift-d 14s var(--ease-cinema) infinite -7s; font-size: 1.5rem; }

@media (max-width: 940px) {
  .kid-deco { display: none; }
}

/* Decorations in audience / faq sections (drift very slowly) */
.kid-deco.section-deco {
  font-size: 1.4rem;
  opacity: 0.6;
}
.kid-deco.section-deco.s1 { top: 8%; left: 4%; animation: drift-a 16s var(--ease-cinema) infinite; }
.kid-deco.section-deco.s2 { bottom: 12%; right: 6%; animation: drift-b 18s var(--ease-cinema) infinite -8s; }

/* ── Twinkling sparkles around hero stickers ──────────────────── */
.sparkle-cluster {
  position: absolute;
  width: 60px; height: 60px;
  pointer-events: none;
  z-index: 5;
}
.sparkle-cluster.near-today  { top: 0; left: -22%; }
.sparkle-cluster.near-streak { top: -16%; right: -16%; }

.sparkle-cluster i {
  position: absolute;
  display: block;
  width: 8px; height: 8px;
  background: var(--accent);
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
  animation: twinkle 2.4s var(--ease) infinite;
}
.sparkle-cluster i:nth-child(1) { top: 0;   left: 0;   animation-delay: 0s; }
.sparkle-cluster i:nth-child(2) { top: 30%; right: 0;  animation-delay: 0.6s; width: 6px; height: 6px; background: var(--primary); }
.sparkle-cluster i:nth-child(3) { bottom: 0; left: 30%; animation-delay: 1.2s; width: 5px; height: 5px; background: var(--accent); }

@keyframes twinkle {
  0%, 100% { opacity: 0; transform: scale(0.4) rotate(0deg); }
  50%      { opacity: 1; transform: scale(1) rotate(180deg); }
}

@media (max-width: 940px) {
  .sparkle-cluster { display: none; }
}

/* ── Stats counter animation ──────────────────────────────────── */
.hero-stat .v {
  display: inline-block;
}
.hero-stat.is-counted .v em {
  animation: stat-pop 700ms var(--ease-out) both;
}
@keyframes stat-pop {
  0%   { transform: translateY(8px) scale(0.92); opacity: 0; }
  60%  { transform: translateY(-2px) scale(1.06); opacity: 1; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

/* ── Process step number — bounce-stamp on reveal ─────────────── */
.step.is-visible .step-num {
  animation: stamp 700ms var(--ease-out) both;
}
@keyframes stamp {
  0%   { transform: scale(0.6) rotate(-6deg); opacity: 0; }
  60%  { transform: scale(1.08) rotate(2deg); opacity: 1; }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

/* ── Bento number hover bounce ────────────────────────────────── */
.bento-card:hover .bc-num {
  animation: tag-wiggle 600ms var(--ease-out);
}
@keyframes tag-wiggle {
  0%   { transform: rotate(0deg) scale(1); }
  30%  { transform: rotate(-4deg) scale(1.06); }
  60%  { transform: rotate(3deg) scale(1.04); }
  100% { transform: rotate(0deg) scale(1); }
}

/* ── Wavy section divider SVG ─────────────────────────────────── */
.wave-divider {
  display: block;
  width: 100%;
  height: 36px;
  margin: -1px 0;
  background: var(--surface-alt);
}
.wave-divider svg { display: block; width: 100%; height: 100%; }

/* ── Reduced motion ───────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
