/* ============================================================
   Amber's App - shared site styles
   Playful / claymorphism-inspired kids brand.
   Used across every page (home, how-it-works, features,
   families, pricing, faq, safety, privacy, terms, support).
   ============================================================ */

:root {
  --purple: #7658f6;
  --purple-dark: #5537d8;
  --purple-soft: #eeeaff;
  --coral: #ff7c76;
  --yellow: #ffd76b;
  --mint: #6ddfc4;
  --sky: #70c8ff;
  --ink: #24304a;
  --ink-soft: #3a4763;
  --muted: #667085;
  --cream: #fffaf0;
  --white: #ffffff;
  --green: #22a96b;
  --red: #e34f5f;

  --surface: #ffffff;
  --surface-tint: #f7f4ff;
  --border: rgba(80, 58, 151, 0.12);

  --shadow-sm: 0 6px 18px rgba(67, 48, 130, 0.08);
  --shadow-md: 0 16px 40px rgba(67, 48, 130, 0.12);
  --shadow-lg: 0 28px 70px rgba(67, 48, 130, 0.16);
  --shadow-clay: 0 18px 40px rgba(67, 48, 130, 0.16), inset 0 -6px 14px rgba(85, 55, 216, 0.10), inset 0 5px 10px rgba(255, 255, 255, 0.7);

  --radius-2xl: 34px;
  --radius-xl: 26px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-pill: 999px;

  --grad-primary: linear-gradient(135deg, #8a6bff 0%, #5537d8 100%);
  --grad-warm: linear-gradient(135deg, #ff9d7c 0%, #ff7c76 55%, #ff6fae 100%);
  --grad-cool: linear-gradient(135deg, #70c8ff 0%, #6ddfc4 100%);

  --font-head: "Baloo 2", ui-rounded, "SF Pro Rounded", "Segoe UI", system-ui, sans-serif;
  --font-body: "Nunito", ui-rounded, "Segoe UI", system-ui, -apple-system, sans-serif;

  --header-h: 78px;
  --container: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% -4%, rgba(255, 215, 107, 0.40), transparent 26%),
    radial-gradient(circle at 96% 4%, rgba(112, 200, 255, 0.30), transparent 26%),
    linear-gradient(180deg, #fffdf8 0%, #f8f5ff 55%, #fffaf0 100%);
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 .4em;
}

p { margin: 0 0 1rem; color: var(--ink-soft); }

a { color: var(--purple-dark); text-decoration: none; }
a:hover { color: var(--purple); }

img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }

.container {
  width: min(var(--container), calc(100% - 40px));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  background: var(--purple-dark);
  color: #fff;
  padding: 10px 16px;
  border-radius: 12px;
  z-index: 200;
  transition: top .2s ease;
}
.skip-link:focus { top: 12px; color: #fff; }

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

/* ---------- Animated background blobs ---------- */
.bg-blobs {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(46px);
  opacity: .5;
  animation: drift 18s ease-in-out infinite;
}
.blob-1 { width: 360px; height: 360px; top: -80px; left: -70px; background: rgba(255, 215, 107, .55); }
.blob-2 { width: 320px; height: 320px; top: 18%; right: -90px; background: rgba(112, 200, 255, .45); animation-delay: -4s; }
.blob-3 { width: 300px; height: 300px; bottom: 8%; left: -60px; background: rgba(109, 223, 196, .45); animation-delay: -8s; }
.blob-4 { width: 280px; height: 280px; bottom: -70px; right: 10%; background: rgba(255, 124, 118, .40); animation-delay: -12s; }

@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(24px, -30px) scale(1.08); }
  66% { transform: translate(-20px, 22px) scale(.96); }
}

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 253, 248, 0.82);
  backdrop-filter: saturate(140%) blur(16px);
  -webkit-backdrop-filter: saturate(140%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s ease, border-color .25s ease, background .25s ease;
}
.site-header.scrolled {
  box-shadow: var(--shadow-sm);
  border-bottom-color: var(--border);
}

.nav {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.28rem;
  color: var(--ink);
  letter-spacing: -0.02em;
  flex: 0 0 auto;
}
.brand:hover { color: var(--ink); }

.brand-logo-wrap {
  width: 74px;
  height: 60px;
  flex: 0 0 auto;
  background-image: url("/assets/MainLogo.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  filter: drop-shadow(0 7px 12px rgba(82, 53, 151, 0.16));
  transition: transform .3s cubic-bezier(.34,1.56,.64,1);
}
.brand:hover .brand-logo-wrap { transform: rotate(-4deg) scale(1.05); }
.brand-logo-wrap.small { width: 56px; height: 46px; }

.nav-right {
  display: flex;
  align-items: center;
  gap: 22px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-weight: 700;
  color: var(--ink-soft);
}
.nav-links a { color: var(--ink-soft); position: relative; }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 3px;
  border-radius: 3px;
  background: var(--grad-primary);
  transition: width .25s ease;
}
.nav-links a:hover { color: var(--purple-dark); }
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after { width: 100%; }
.nav-links a[aria-current="page"] { color: var(--purple-dark); }

.nav-actions { display: flex; align-items: center; gap: 14px; }

.language-control {
  position: relative;
  display: flex;
  align-items: center;
  gap: 7px;
  background: #fff;
  border: 1px solid #ddd6f5;
  border-radius: var(--radius-pill);
  padding: 6px 12px;
  box-shadow: var(--shadow-sm);
}
.language-control span { font-size: 1rem; line-height: 1; }
.language-control select {
  border: 0; outline: 0;
  color: var(--ink);
  background: transparent;
  font-weight: 800;
  cursor: pointer;
  padding: 4px 18px 4px 0;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 46px; height: 46px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  padding: 0;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}
.nav-toggle span {
  width: 22px; height: 2.5px;
  border-radius: 3px;
  background: var(--ink);
  transition: transform .3s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--purple);
  border: 0;
  border-radius: var(--radius-pill);
  padding: 13px 22px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  text-align: center;
  touch-action: manipulation;
  transition: transform .18s cubic-bezier(.34,1.56,.64,1), box-shadow .2s ease, filter .2s ease;
}
.btn:active { transform: scale(.96); }
.btn-sm { padding: 10px 18px; font-size: .95rem; }
.btn-lg { padding: 16px 30px; font-size: 1.08rem; }
.btn.full { width: 100%; }

.btn-primary {
  color: #fff;
  background: var(--grad-primary);
  box-shadow: 0 12px 26px rgba(85, 55, 216, .32);
}
.btn-primary:hover { color: #fff; transform: translateY(-3px); box-shadow: 0 18px 34px rgba(85, 55, 216, .40); }

.btn-ghost {
  color: var(--purple-dark);
  background: #fff;
  border: 2px solid #e4dcff;
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { color: var(--purple-dark); transform: translateY(-3px); border-color: var(--purple); box-shadow: var(--shadow-md); }

/* Warm CTA button (used on .cta) */
.cta .btn {
  background: #fff;
  color: var(--purple-dark);
  box-shadow: var(--shadow-md);
}
.cta .btn:hover { transform: translateY(-3px) scale(1.02); color: var(--purple-dark); }

/* ---------- Sections & headings ---------- */
.section { padding: clamp(56px, 8vw, 100px) 0; position: relative; }
.section-tint {
  background: linear-gradient(180deg, rgba(247,244,255,.7), rgba(255,250,240,.5));
  border-block: 1px solid var(--border);
}

.section-heading {
  max-width: 720px;
  margin: 0 auto clamp(34px, 5vw, 56px);
  text-align: center;
}
.section-heading h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); font-weight: 800; }
.section-heading p { font-size: 1.1rem; color: var(--muted); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--purple-dark);
  background: var(--purple-soft);
  padding: 7px 15px;
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
}

.highlight {
  position: relative;
  background: var(--grad-warm);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

/* ---------- Reveal-on-scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .6s ease, transform .6s cubic-bezier(.22,1,.36,1);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }
/* Stagger children within a grid */
.steps .reveal.in { transition-delay: calc(var(--i, 0) * 80ms); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(28px, 5vw, 60px) 0 clamp(70px, 9vw, 120px); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(30px, 5vw, 60px);
  align-items: center;
}
.hero-brand-logo {
  width: min(280px, 62vw);
  aspect-ratio: 760 / 641;
  margin: -6px 0 14px;
  background-image: url("/assets/MainLogo.png");
  background-repeat: no-repeat;
  background-position: left center;
  background-size: contain;
  filter: drop-shadow(0 18px 30px rgba(82, 53, 151, 0.18));
  animation: floaty 6s ease-in-out infinite;
}
.hero h1 {
  font-size: clamp(2.3rem, 5.6vw, 4rem);
  font-weight: 800;
  margin-bottom: .3em;
}
.hero h1 span { display: block; }
.hero-copy { font-size: 1.16rem; color: var(--ink-soft); max-width: 34ch; margin-bottom: 26px; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }

.trust-row { display: flex; flex-wrap: wrap; gap: 10px; }
.trust-item {
  font-weight: 700;
  font-size: .92rem;
  color: var(--ink-soft);
  background: #fff;
  border: 1px solid var(--border);
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
}

/* Hero visual */
.hero-visual { position: relative; display: flex; justify-content: center; }
.story-card {
  position: relative;
  width: min(420px, 100%);
  background: #fff;
  border-radius: var(--radius-2xl);
  padding: 20px;
  box-shadow: var(--shadow-lg);
  z-index: 2;
}
.tilt { transform: rotate(-2deg); transition: transform .4s cubic-bezier(.34,1.56,.64,1); }
.tilt:hover { transform: rotate(0deg) translateY(-4px); }

.storybook-image {
  position: relative;
  height: 210px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: linear-gradient(180deg, #8bd6ff 0 55%, #8fe0b6 55% 100%);
}
.storybook-image .cloud {
  position: absolute; top: 26px; left: 30px;
  width: 70px; height: 26px; background: #fff; border-radius: 999px;
  box-shadow: 34px 8px 0 -3px #fff, -20px 6px 0 -5px #fff;
  animation: cloud-move 9s ease-in-out infinite;
}
.storybook-image .sun {
  position: absolute; top: 22px; right: 30px;
  width: 46px; height: 46px; border-radius: 50%;
  background: radial-gradient(circle, #fff2a0, #ffd76b);
  box-shadow: 0 0 30px rgba(255,215,107,.8);
  animation: floaty 5s ease-in-out infinite;
}
.page-chip {
  display: inline-block;
  margin: 16px 0 8px;
  font-weight: 800;
  font-size: .8rem;
  color: var(--purple-dark);
  background: var(--purple-soft);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
}
.story-card h3 { font-size: 1.15rem; font-weight: 700; }
.story-card p { font-size: .98rem; color: var(--muted); margin: 0; }

.floating-badge {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border-radius: var(--radius-pill);
  padding: 9px 14px;
  font-weight: 800;
  font-size: .86rem;
  box-shadow: var(--shadow-md);
  z-index: 3;
  animation: floaty 5s ease-in-out infinite;
}
.badge-icon {
  width: 26px; height: 26px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--purple-soft);
  font-size: .9rem;
}
.badge-mic { top: 6%; left: -6%; }
.badge-check { bottom: 20%; left: -10%; animation-delay: -1.5s; }
.badge-check .badge-icon { background: #d9f7e8; color: var(--green); }
.badge-pages { top: 12%; right: -6%; animation-delay: -3s; }
.badge-pages .badge-icon { background: #ffeccb; }

.spark { position: absolute; font-size: 1.4rem; z-index: 3; animation: twinkle 3s ease-in-out infinite; }
.spark.one { top: 2%; right: 22%; }
.spark.two { bottom: 8%; right: 8%; animation-delay: -1.5s; }

@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes twinkle { 0%,100% { opacity: .4; transform: scale(.85); } 50% { opacity: 1; transform: scale(1.15); } }
@keyframes cloud-move { 0%,100% { transform: translateX(0); } 50% { transform: translateX(18px); } }

/* Wave divider */
.wave-divider { position: absolute; left: 0; right: 0; bottom: -1px; line-height: 0; }
.wave-divider svg { width: 100%; height: clamp(50px, 8vw, 110px); display: block; }
.wave-divider path { fill: var(--surface-tint); }

/* ---------- Stats strip ---------- */
.stats-strip {
  background: var(--surface-tint);
  padding: clamp(30px, 5vw, 46px) 0;
  border-bottom: 1px solid var(--border);
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-num { font-family: var(--font-head); font-weight: 800; font-size: clamp(1.8rem, 4vw, 2.8rem); color: var(--purple-dark); font-variant-numeric: tabular-nums; }
.stat-label { font-weight: 600; color: var(--muted); font-size: .95rem; }

/* ---------- Cards: shared clay look ---------- */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  padding: 34px 26px 28px;
  box-shadow: var(--shadow-md);
  transition: transform .3s cubic-bezier(.34,1.56,.64,1), box-shadow .3s ease;
}
.step-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.step-number {
  position: absolute; top: -18px; left: 26px;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 14px;
  font-family: var(--font-head); font-weight: 800; color: #fff;
  background: var(--grad-primary);
  box-shadow: 0 10px 20px rgba(85,55,216,.35);
}
.step-icon {
  width: 66px; height: 66px;
  display: grid; place-items: center;
  font-size: 2rem;
  border-radius: 20px;
  background: var(--purple-soft);
  margin: 12px 0 16px;
}
.step-card h3 { font-size: 1.25rem; font-weight: 700; }
.step-card p { color: var(--muted); margin: 0; }

/* ---------- Features ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform .3s cubic-bezier(.34,1.56,.64,1), box-shadow .3s ease;
}
.feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.feature-icon {
  width: 58px; height: 58px;
  display: grid; place-items: center;
  font-size: 1.7rem;
  border-radius: 18px;
  background: var(--grad-cool);
  margin-bottom: 16px;
  box-shadow: inset 0 -4px 10px rgba(0,0,0,.06);
}
.feature-card:nth-child(2n) .feature-icon { background: var(--grad-warm); }
.feature-card:nth-child(3n) .feature-icon { background: linear-gradient(135deg, #b79bff, #7658f6); }
.feature-card h3 { font-size: 1.15rem; font-weight: 700; }
.feature-card p { color: var(--muted); margin: 0; font-size: .98rem; }

/* ---------- Family / household ---------- */
.family-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-bottom: 40px; }
.family-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px 24px;
  box-shadow: var(--shadow-md);
}
.family-badge {
  display: inline-block;
  font-family: var(--font-head); font-weight: 700; font-size: .8rem;
  color: var(--purple-dark);
  background: var(--purple-soft);
  padding: 6px 13px; border-radius: var(--radius-pill);
  margin-bottom: 14px;
}
.family-badge.alt { color: #b5541f; background: #ffe7d4; }
.family-badge.kids { color: #0f8a63; background: #d7f6e9; }
.family-card h3 { font-size: 1.2rem; font-weight: 700; }

.ticks li {
  position: relative;
  padding: 8px 0 8px 30px;
  color: var(--ink-soft);
  border-bottom: 1px dashed var(--border);
}
.ticks li:last-child { border-bottom: 0; }
.ticks li::before {
  content: "✓";
  position: absolute; left: 0; top: 8px;
  width: 20px; height: 20px;
  display: grid; place-items: center;
  font-size: .7rem; font-weight: 900; color: #fff;
  background: var(--green); border-radius: 50%;
}
.ticks li.cross::before { content: "✕"; background: var(--muted); }

/* Credits panel */
.credits-panel {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 30px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  padding: clamp(24px, 4vw, 40px);
  box-shadow: var(--shadow-md);
  margin-bottom: 34px;
}
.credits-copy h3 { font-size: 1.5rem; font-weight: 800; }
.credit-flow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 18px; }
.credit-chip {
  font-family: var(--font-head); font-weight: 700;
  background: var(--purple-soft); color: var(--purple-dark);
  padding: 9px 15px; border-radius: var(--radius-pill);
}
.credit-chip.alt { background: #ffe7d4; color: #b5541f; }
.credit-chip.total { background: var(--grad-primary); color: #fff; }
.credit-plus, .credit-eq { font-weight: 800; color: var(--muted); }

.credits-card {
  background: linear-gradient(160deg, #f7f4ff, #fff);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}
.credit-row { display: flex; justify-content: space-between; align-items: center; font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; margin-bottom: 12px; }
.credit-tag { font-size: .72rem; font-weight: 800; color: var(--green); background: #d9f7e8; padding: 4px 10px; border-radius: 999px; }
.credit-line { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px dashed var(--border); color: var(--ink-soft); }
.credit-line b { font-variant-numeric: tabular-nums; }
.credit-line.total { border-bottom: 0; font-family: var(--font-head); font-size: 1.15rem; color: var(--purple-dark); }
.credit-note { display: flex; gap: 8px; margin-top: 12px; font-size: .85rem; color: var(--muted); background: #fff; border: 1px dashed var(--border); border-radius: 12px; padding: 10px 12px; }

/* Invite flow */
.invite-flow {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  padding: clamp(24px, 4vw, 38px);
  box-shadow: var(--shadow-sm);
}
.invite-flow h3 { font-size: 1.4rem; font-weight: 800; text-align: center; }
.invite-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 22px 0 16px; }
.invite-steps li { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; background: var(--surface-tint); border-radius: var(--radius-lg); padding: 18px; color: var(--ink-soft); font-weight: 600; }
.invite-n { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 12px; font-family: var(--font-head); font-weight: 800; color: #fff; background: var(--grad-primary); }
.invite-note { text-align: center; color: var(--muted); font-size: .95rem; margin: 0; }

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; max-width: 860px; margin: 0 auto; align-items: start; }
.price-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  padding: 34px 30px;
  box-shadow: var(--shadow-md);
}
.price-card.featured {
  border: 2px solid transparent;
  background:
    linear-gradient(#fff, #fff) padding-box,
    var(--grad-primary) border-box;
  box-shadow: var(--shadow-lg);
}
.price-flag {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  font-family: var(--font-head); font-weight: 700; font-size: .78rem;
  color: #fff; background: var(--grad-warm);
  padding: 6px 16px; border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
}
.price-card h3 { font-size: 1.35rem; font-weight: 800; margin-top: 6px; }
.price { display: flex; align-items: baseline; gap: 6px; margin: 6px 0 4px; }
.price-amount { font-family: var(--font-head); font-weight: 800; font-size: clamp(2.2rem, 5vw, 3rem); color: var(--purple-dark); }
.price-period { font-weight: 700; color: var(--muted); }
.price-sub { color: var(--muted); }
.price-card .ticks { margin: 16px 0 22px; }
.price-fine { font-size: .82rem; color: var(--muted); text-align: center; margin: 12px 0 0; }

/* ---------- Safety / notifications split ---------- */
.safety {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: clamp(24px, 5vw, 54px);
  align-items: center;
}
.safety-visual {
  font-size: 6rem;
  text-align: center;
  filter: drop-shadow(0 16px 26px rgba(82,53,151,.2));
  animation: floaty 6s ease-in-out infinite;
}
.safety h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 800; }
.safety-list { display: grid; gap: 14px; margin-top: 20px; }
.safety-item { display: flex; align-items: flex-start; gap: 12px; color: var(--ink-soft); }
.safety-item .check {
  flex: 0 0 auto;
  width: 26px; height: 26px;
  display: grid; place-items: center;
  border-radius: 50%; color: #fff; font-weight: 900; font-size: .8rem;
  background: var(--green);
}
.safety-actions { margin-top: 22px; }

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 800px; }
.faq-list { display: grid; gap: 14px; }
.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 54px 18px 22px;
  position: relative;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--purple-soft); color: var(--purple-dark);
  font-weight: 800; font-size: 1.2rem;
  transition: transform .25s ease, background .25s ease;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); background: var(--purple); color: #fff; }
.faq-a { padding: 0 22px 20px; }
.faq-a p { margin: 0; color: var(--ink-soft); }
.faq-item[open] .faq-a { animation: fadeInFaq .3s ease; }
@keyframes fadeInFaq { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------- CTA ---------- */
.cta {
  text-align: center;
  background: var(--grad-primary);
  color: #fff;
  border-radius: var(--radius-2xl);
  padding: clamp(40px, 7vw, 72px) clamp(24px, 5vw, 60px);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.cta::before, .cta::after {
  content: ""; position: absolute; border-radius: 50%; background: rgba(255,255,255,.14);
}
.cta::before { width: 240px; height: 240px; top: -90px; right: -60px; }
.cta::after { width: 180px; height: 180px; bottom: -70px; left: -40px; }
.cta h2 { color: #fff; font-size: clamp(1.7rem, 3.8vw, 2.6rem); font-weight: 800; position: relative; }
.cta p { color: rgba(255,255,255,.9); max-width: 46ch; margin: 0 auto 26px; position: relative; }
.cta .btn { position: relative; }

/* ---------- Footer ---------- */
.site-footer {
  background: #201a3a;
  color: #cfc7ee;
  padding: clamp(44px, 6vw, 68px) 0 28px;
  margin-top: 20px;
}
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 30px; }
.footer-brand .brand { color: #fff; }
.footer-brand .brand-name { color: #fff; }
.footer-brand p { color: #a99fd6; margin-top: 12px; max-width: 34ch; }
.footer-col h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.footer-col a { display: block; color: #b7aee0; padding: 5px 0; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between;
  margin-top: 34px; padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.12);
  color: #9a90c9; font-size: .9rem;
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%; bottom: 26px;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: #fff;
  padding: 13px 20px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-lg);
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease, transform .3s cubic-bezier(.34,1.56,.64,1);
  z-index: 120;
  max-width: calc(100% - 32px);
  text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============================================================
   Interactive demo (story creator)
   ============================================================ */
.app-shell {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  max-width: 1080px;
  margin: 0 auto;
}
.app-topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 22px;
  background: linear-gradient(180deg, #f7f4ff, #fff);
  border-bottom: 1px solid var(--border);
}
.mini-brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 700; }
.app-status { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .9rem; color: var(--green); }
.status-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(34,169,107,.5); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(34,169,107,.5); } 70% { box-shadow: 0 0 0 8px rgba(34,169,107,0); } 100% { box-shadow: 0 0 0 0 rgba(34,169,107,0); } }

.builder { display: grid; grid-template-columns: 340px 1fr; }
.builder-sidebar { padding: 26px; border-right: 1px solid var(--border); background: #fdfcff; }
.builder-sidebar h3 { font-size: 1.15rem; font-weight: 700; }
.builder-sidebar > p { color: var(--muted); font-size: .95rem; }

.label { display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: .9rem; margin: 18px 0 8px; }
.counter { font-weight: 700; font-size: .8rem; color: var(--muted); background: var(--purple-soft); padding: 3px 10px; border-radius: 999px; }

.prompt-wrap { position: relative; }
.prompt-wrap textarea {
  width: 100%; min-height: 84px; resize: vertical;
  border: 2px solid #e6e0fb; border-radius: var(--radius-md);
  padding: 14px 52px 14px 14px;
  color: var(--ink); background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.prompt-wrap textarea:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 4px rgba(118,88,246,.15); }
.mic-btn {
  position: absolute; right: 10px; bottom: 10px;
  width: 38px; height: 38px; border: 0; border-radius: 12px;
  background: var(--purple-soft); font-size: 1.1rem;
  display: grid; place-items: center;
}
.mic-btn.listening { background: var(--red); color: #fff; animation: pulse-red 1s infinite; }
@keyframes pulse-red { 0%,100% { transform: scale(1); } 50% { transform: scale(1.1); } }
.example { font-size: .85rem; color: var(--muted); margin-top: 8px; font-style: italic; }

.upload-box { position: relative; border: 2px dashed #ddd5f7; border-radius: var(--radius-md); padding: 16px; text-align: center; background: #fff; transition: border-color .2s ease; }
.upload-box:hover { border-color: var(--purple); }
.upload-box input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload-copy { display: flex; flex-direction: column; gap: 4px; }
.upload-copy strong { color: var(--ink); }
.upload-copy span { font-size: .82rem; color: var(--muted); }
.avatar-preview { display: none; width: 74px; height: 74px; object-fit: cover; border-radius: 50%; margin: 0 auto; border: 3px solid var(--purple-soft); }

.privacy-note { display: flex; gap: 10px; margin: 18px 0; font-size: .82rem; color: var(--muted); background: #fff; border: 1px dashed var(--border); border-radius: 12px; padding: 12px; }
.generate-btn { width: 100%; }

/* Builder main / reader */
.builder-main { padding: 26px; }
.story-toolbar { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.story-toolbar h3 { font-size: 1.25rem; font-weight: 800; margin: 0; }
.mode-buttons { display: inline-flex; gap: 6px; background: var(--surface-tint); padding: 5px; border-radius: var(--radius-pill); }
.mode-btn {
  border: 0; background: transparent; border-radius: var(--radius-pill);
  padding: 8px 14px; font-weight: 700; font-size: .88rem; color: var(--ink-soft);
  display: inline-flex; align-items: center; gap: 6px;
  transition: background .2s ease, color .2s ease, box-shadow .2s ease;
}
.mode-btn.active { background: #fff; color: var(--purple-dark); box-shadow: var(--shadow-sm); }

.reader-card { border: 1px solid var(--border); border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-sm); }
.page-art { position: relative; height: 220px; overflow: hidden; transition: background .5s ease; }
.scene-hills { position: absolute; bottom: 0; left: 0; right: 0; height: 46%; background: radial-gradient(120% 100% at 50% 100%, rgba(255,255,255,.35), transparent 60%); }
.character { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; animation: floaty 4s ease-in-out infinite; }
.character-head { width: 56px; height: 56px; border-radius: 50%; background: #ffe0bd center/cover no-repeat; border: 3px solid #fff; box-shadow: var(--shadow-sm); }
.character-head.with-photo { background-size: cover; }
.character-body { width: 46px; height: 40px; background: var(--coral); border-radius: 16px 16px 12px 12px; margin-top: -6px; }
.scene-emoji { position: absolute; top: 18px; right: 22px; font-size: 2.4rem; animation: floaty 3.5s ease-in-out infinite; }

.page-copy { padding: 22px; }
.page-number { font-weight: 800; font-size: .78rem; color: var(--purple-dark); background: var(--purple-soft); padding: 4px 12px; border-radius: 999px; }
.page-copy h4 { font-size: 1.3rem; font-weight: 800; margin: 12px 0 8px; }
.story-text { font-size: 1.1rem; line-height: 1.8; color: var(--ink); }
.story-text .word { display: inline-block; padding: 0 2px; border-radius: 6px; cursor: pointer; transition: background .15s ease, color .15s ease, transform .15s ease; }
.story-text .word:hover { background: var(--purple-soft); }
.story-text .word.current { background: var(--yellow); color: var(--ink); transform: translateY(-1px); }
.story-text .word.correct { background: #d9f7e8; color: var(--green); }
.story-text .word.incorrect { background: #ffe0e0; color: var(--red); }

.reading-feedback { margin-top: 12px; min-height: 24px; font-weight: 700; color: var(--muted); }
.reading-feedback.success { color: var(--green); }
.reading-feedback.error { color: var(--red); }

.reader-controls { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.reader-control {
  border: 1px solid var(--border); background: #fff; border-radius: var(--radius-pill);
  padding: 9px 15px; font-weight: 700; font-size: .88rem; color: var(--ink-soft);
  display: inline-flex; align-items: center; gap: 6px;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.reader-control:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.reader-control.primary { background: var(--grad-primary); color: #fff; border-color: transparent; }
.reader-control:disabled { opacity: .5; cursor: not-allowed; transform: none; }

.page-navigation { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 20px; }
.page-nav-btn {
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--border); background: #fff; color: var(--purple-dark);
  font-size: 1.2rem; font-weight: 800;
  display: grid; place-items: center;
  transition: transform .15s ease, box-shadow .15s ease;
}
.page-nav-btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.page-nav-btn:disabled { opacity: .4; cursor: not-allowed; }
.page-dots { display: flex; gap: 8px; }
.page-dots .dot { width: 10px; height: 10px; border-radius: 50%; border: 0; background: #d9d1f2; transition: transform .2s ease, background .2s ease; }
.page-dots .dot.active { background: var(--purple); transform: scale(1.35); }

/* ============================================================
   Sub-page hero (how-it-works, features, families, pricing,
   faq, safety) + legal/content pages (privacy, terms, support)
   ============================================================ */
.page-hero {
  text-align: center;
  padding: clamp(48px, 8vw, 92px) 0 clamp(30px, 5vw, 54px);
  position: relative;
}
.page-hero h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800; }
.page-hero p { font-size: 1.15rem; color: var(--muted); max-width: 60ch; margin: 0 auto; }
.page-hero .eyebrow { margin-bottom: 18px; }

/* Breadcrumb */
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 8px; }
.crumbs a { color: var(--purple-dark); font-weight: 700; }
.crumbs span { margin: 0 6px; }

/* Long-form content (legal / support) */
.content-page { padding: clamp(30px, 5vw, 56px) 0 clamp(50px, 8vw, 90px); }
.content-wrap {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}
.content-nav {
  position: sticky;
  top: calc(var(--header-h) + 16px);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}
.content-nav h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 10px; }
.content-nav a { display: block; padding: 7px 10px; border-radius: 10px; color: var(--ink-soft); font-weight: 600; font-size: .95rem; }
.content-nav a:hover { background: var(--purple-soft); color: var(--purple-dark); }

.prose {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: clamp(24px, 4vw, 48px);
  box-shadow: var(--shadow-sm);
  max-width: 78ch;
}
.prose .updated { color: var(--muted); font-size: .9rem; margin-bottom: 8px; }
.prose h2 {
  font-size: 1.5rem; font-weight: 800; margin-top: 2em;
  padding-top: 1em; border-top: 1px solid var(--border);
  scroll-margin-top: calc(var(--header-h) + 20px);
}
.prose h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 1em; }
.prose h3 { font-size: 1.15rem; font-weight: 700; margin-top: 1.4em; }
.prose p, .prose li { color: var(--ink-soft); }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.1em; }
.prose ul li, .prose ol li { list-style: revert; padding: 4px 0; }
.prose a { color: var(--purple-dark); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.prose strong { color: var(--ink); }
.prose .callout {
  background: var(--surface-tint);
  border-left: 4px solid var(--purple);
  border-radius: 0 12px 12px 0;
  padding: 14px 18px;
  margin: 1.4em 0;
}
.prose table { width: 100%; border-collapse: collapse; margin: 1.2em 0; font-size: .95rem; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.prose th { font-family: var(--font-head); color: var(--ink); background: var(--surface-tint); }

/* Support: contact cards */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 34px; }
.contact-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-xl);
  padding: 26px; box-shadow: var(--shadow-sm); text-align: center;
  transition: transform .3s cubic-bezier(.34,1.56,.64,1), box-shadow .3s ease;
}
.contact-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.contact-card .feature-icon { margin: 0 auto 14px; }
.contact-card h3 { font-size: 1.15rem; font-weight: 700; }
.contact-card a { font-weight: 700; }

/* Generic centered CTA link row */
.center-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 30px; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; margin-bottom: 10px; }
  .hero-text { text-align: center; }
  .hero-copy { margin-inline: auto; }
  .hero-actions, .trust-row { justify-content: center; }
  .hero-brand-logo { margin-inline: auto; background-position: center; }
  .credits-panel { grid-template-columns: 1fr; }
  .invite-steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .content-wrap { grid-template-columns: 1fr; }
  .content-nav { position: static; }
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-right {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(255,253,248,.98);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    padding: 14px 20px 22px;
    transform: translateY(-140%);
    transition: transform .35s cubic-bezier(.22,1,.36,1);
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
  }
  .nav-right.open { transform: translateY(0); }
  .nav-links { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-links a { padding: 12px 8px; border-bottom: 1px solid var(--border); }
  .nav-links a::after { display: none; }
  .nav-actions { flex-direction: column; align-items: stretch; gap: 12px; margin-top: 14px; }
  .language-control { justify-content: center; }

  .steps, .feature-grid, .family-grid, .pricing-grid, .contact-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .builder { grid-template-columns: 1fr; }
  .builder-sidebar { border-right: 0; border-bottom: 1px solid var(--border); }
  .safety { grid-template-columns: 1fr; text-align: center; }
  .safety-list { text-align: left; max-width: 30rem; margin-inline: auto; }
  .safety-item { justify-content: flex-start; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .container { width: calc(100% - 32px); }
  .invite-steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .floating-badge { font-size: .78rem; padding: 7px 11px; }
  .badge-mic { left: 0; }
  .badge-check { left: -2%; }
  .badge-pages { right: 0; }
  .story-toolbar { flex-direction: column; align-items: flex-start; }
  .cta { padding: 40px 22px; }
}

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .blob { animation: none; }
}
