/* ============================================================
   Amber's App - premium marketing site
   Rebuilt for a high-stakes investor pitch.
   Design language: warm, premium claymorphism + soft glass,
   brand purple #7658F6, rounded display type, real device
   mockups with swappable app screenshots.
   Shared across every page. English is source-of-truth; all
   copy is translatable via /assets/i18n.js (7 languages).
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  /* Brand */
  --purple: #7658f6;
  --purple-2: #6b4ff2;
  --purple-dark: #4a2fc4;
  --purple-deep: #2c1a73;
  --purple-soft: #efeaff;
  --purple-tint: #f6f3ff;
  --coral: #ff7c76;
  --pink: #ff6fae;
  --amber: #ffbf5b;
  --yellow: #ffd76b;
  --mint: #58e0c0;
  --sky: #62c6ff;
  --lilac: #b79bff;

  /* Ink / neutrals */
  --ink: #1c1338;
  --ink-soft: #3d3660;
  --muted: #6b6690;
  --faint: #9a95b8;
  --line: rgba(76, 47, 196, 0.12);
  --line-soft: rgba(76, 47, 196, 0.08);

  /* Surfaces */
  --white: #ffffff;
  --cream: #fffdf9;
  --surface: #ffffff;
  --surface-tint: #f7f4ff;
  --surface-2: #f2edff;
  --night: #1a1436;
  --night-2: #241a4a;

  /* Gradients */
  --grad-primary: linear-gradient(135deg, #8b6bff 0%, #6b4ff2 50%, #4a2fc4 100%);
  --grad-primary-soft: linear-gradient(135deg, #a58bff 0%, #7658f6 100%);
  --grad-warm: linear-gradient(135deg, #ffb37c 0%, #ff7c76 52%, #ff6fae 100%);
  --grad-cool: linear-gradient(135deg, #62c6ff 0%, #58e0c0 100%);
  --grad-gold: linear-gradient(135deg, #ffd76b 0%, #ffbf5b 100%);
  --grad-hero: radial-gradient(1200px 700px at 82% -10%, rgba(118,88,246,0.16), transparent 60%),
               radial-gradient(900px 600px at 8% 0%, rgba(255,191,91,0.14), transparent 55%),
               linear-gradient(180deg, #fffdfa 0%, #f7f3ff 60%, #fffdf9 100%);

  /* Radii */
  --r-2xl: 34px;
  --r-xl: 26px;
  --r-lg: 20px;
  --r-md: 14px;
  --r-sm: 10px;
  --r-pill: 999px;

  /* Shadows (soft, layered, premium) */
  --sh-xs: 0 2px 8px rgba(44, 26, 115, 0.06);
  --sh-sm: 0 8px 22px rgba(44, 26, 115, 0.08);
  --sh-md: 0 18px 44px rgba(44, 26, 115, 0.12);
  --sh-lg: 0 30px 70px rgba(44, 26, 115, 0.16);
  --sh-xl: 0 44px 100px rgba(44, 26, 115, 0.22);
  --sh-purple: 0 18px 40px rgba(106, 79, 242, 0.36);
  --sh-inset: inset 0 1px 0 rgba(255,255,255,0.6);

  /* Type */
  --font-head: "Baloo 2", ui-rounded, "SF Pro Rounded", "Segoe UI", system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --header-h: 76px;
  --container: 1200px;
  --container-narrow: 900px;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--grad-hero);
  background-attachment: fixed;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 0.4em;
  font-weight: 800;
}

p { margin: 0 0 1rem; color: var(--ink-soft); }
a { color: var(--purple-dark); text-decoration: none; transition: color .2s ease; }
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; }
strong, b { font-weight: 700; }

.container { width: min(var(--container), calc(100% - 44px)); margin-inline: auto; }
.container-narrow { width: min(var(--container-narrow), calc(100% - 44px)); margin-inline: auto; }

.skip-link {
  position: absolute; left: 12px; top: -70px;
  background: var(--purple-dark); color: #fff;
  padding: 11px 18px; border-radius: 12px; z-index: 300;
  font-weight: 700; transition: top .2s ease;
}
.skip-link:focus { top: 12px; color: #fff; }

:focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; border-radius: 8px; }

.gradient-text {
  background: var(--grad-warm);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.gradient-text.cool { background: var(--grad-cool); -webkit-background-clip: text; background-clip: text; }
.gradient-text.purple { background: var(--grad-primary); -webkit-background-clip: text; background-clip: text; }

/* ---------- Ambient background ---------- */
.bg-blobs { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .42; animation: drift 22s ease-in-out infinite; }
.blob-1 { width: 420px; height: 420px; top: -110px; left: -90px; background: rgba(255, 191, 91, .5); }
.blob-2 { width: 380px; height: 380px; top: 14%; right: -120px; background: rgba(118, 88, 246, .4); animation-delay: -5s; }
.blob-3 { width: 340px; height: 340px; bottom: 10%; left: -80px; background: rgba(88, 224, 192, .38); animation-delay: -10s; }
.blob-4 { width: 320px; height: 320px; bottom: -90px; right: 8%; background: rgba(255, 111, 174, .32); animation-delay: -15s; }
@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(28px, -34px) scale(1.08); }
  66% { transform: translate(-22px, 26px) scale(.95); }
}

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 80;
  background: rgba(255, 253, 250, 0.72);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s ease, border-color .3s ease, background .3s ease;
}
.site-header.scrolled {
  box-shadow: var(--sh-sm);
  border-bottom-color: var(--line);
  background: rgba(255, 253, 250, 0.9);
}
.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: 11px; font-family: var(--font-head); font-weight: 800; font-size: 1.24rem; color: var(--ink); letter-spacing: -0.02em; flex: 0 0 auto; }
.brand:hover { color: var(--ink); }
.brand-logo-wrap {
  width: 46px; height: 46px; flex: 0 0 auto;
  background-image: url("/assets/MainLogo.png");
  background-repeat: no-repeat; background-position: center; background-size: contain;
  filter: drop-shadow(0 6px 12px rgba(76, 47, 196, 0.22));
  transition: transform .35s cubic-bezier(.34,1.56,.64,1);
}
.brand:hover .brand-logo-wrap { transform: rotate(-6deg) scale(1.08); }
.brand-logo-wrap.small { width: 38px; height: 38px; }

.nav-right { display: flex; align-items: center; gap: 24px; }
.nav-links { display: flex; align-items: center; gap: 26px; font-weight: 600; }
.nav-links a { color: var(--ink-soft); position: relative; font-size: 0.98rem; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -7px;
  width: 0; height: 3px; border-radius: 3px; background: var(--grad-primary);
  transition: width .28s cubic-bezier(.22,1,.36,1);
}
.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); font-weight: 700; }

.nav-actions { display: flex; align-items: center; gap: 12px; }
.language-control {
  position: relative; display: flex; align-items: center; gap: 7px;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-pill); padding: 7px 12px; box-shadow: var(--sh-xs);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.language-control:hover { border-color: var(--lilac); box-shadow: var(--sh-sm); }
.language-control span { font-size: 1.05rem; line-height: 1; }
.language-control select { border: 0; outline: 0; color: var(--ink); background: transparent; font-weight: 700; cursor: pointer; padding: 3px 16px 3px 0; font-size: .92rem; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  width: 46px; height: 46px; border: 1px solid var(--line);
  border-radius: 14px; background: #fff; padding: 0;
  align-items: center; justify-content: center; box-shadow: var(--sh-xs);
}
.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 {
  border: 0; border-radius: var(--r-pill); padding: 13px 24px;
  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 .22s ease, filter .2s ease;
}
.btn:active { transform: scale(.96); }
.btn-sm { padding: 10px 18px; font-size: .94rem; }
.btn-lg { padding: 16px 32px; font-size: 1.06rem; }
.btn.full { width: 100%; }

.btn-primary { color: #fff; background: var(--grad-primary); box-shadow: var(--sh-purple); }
.btn-primary:hover { color: #fff; transform: translateY(-3px); box-shadow: 0 24px 48px rgba(106, 79, 242, .46); }

.btn-ghost { color: var(--purple-dark); background: #fff; border: 2px solid var(--line); box-shadow: var(--sh-xs); }
.btn-ghost:hover { color: var(--purple-dark); transform: translateY(-3px); border-color: var(--purple); box-shadow: var(--sh-sm); }

.btn-white { background: #fff; color: var(--purple-dark); box-shadow: var(--sh-md); }
.btn-white:hover { color: var(--purple-dark); transform: translateY(-3px) scale(1.01); box-shadow: var(--sh-lg); }

/* Store badges */
.store-badges { display: flex; flex-wrap: wrap; gap: 12px; }
.store-badge {
  display: inline-flex; align-items: center; gap: 11px;
  background: #14101f; color: #fff; border-radius: 15px;
  padding: 10px 18px 10px 15px; box-shadow: var(--sh-md);
  transition: transform .2s cubic-bezier(.34,1.56,.64,1), box-shadow .2s ease;
  border: 1px solid rgba(255,255,255,.08);
}
.store-badge:hover { color: #fff; transform: translateY(-3px); box-shadow: var(--sh-lg); }
.store-badge svg { width: 26px; height: 26px; flex: 0 0 auto; }
.store-badge .sb-text { display: flex; flex-direction: column; line-height: 1.12; text-align: left; }
.store-badge .sb-small { font-family: var(--font-body); font-size: .66rem; font-weight: 600; opacity: .85; letter-spacing: .02em; }
.store-badge .sb-big { font-family: var(--font-head); font-size: 1.06rem; font-weight: 700; }

/* ---------- Sections ---------- */
.section { padding: clamp(60px, 8vw, 112px) 0; position: relative; }
.section-sm { padding: clamp(40px, 6vw, 72px) 0; }
.section-tint { background: linear-gradient(180deg, rgba(247,244,255,.85), rgba(255,253,249,.6)); border-block: 1px solid var(--line-soft); }
.section-dark {
  background: radial-gradient(900px 500px at 80% -10%, rgba(118,88,246,.4), transparent 60%), linear-gradient(160deg, #241a4a 0%, #1a1436 100%);
  color: #efeaff;
}
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: #fff; }
.section-dark p { color: #cdc4f0; }

.section-heading { max-width: 720px; margin: 0 auto clamp(38px, 5vw, 60px); text-align: center; }
.section-heading h2 { font-size: clamp(1.8rem, 3.8vw, 2.8rem); }
.section-heading p { font-size: 1.12rem; color: var(--muted); }
.section-dark .section-heading p { color: #b9aeea; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-head); font-weight: 700; font-size: .8rem;
  letter-spacing: .07em; text-transform: uppercase; color: var(--purple-dark);
  background: var(--purple-soft); padding: 7px 15px; border-radius: var(--r-pill);
  margin-bottom: 18px; border: 1px solid rgba(118,88,246,.14);
}
.section-dark .eyebrow { color: #d9ceff; background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.16); }

.center-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 34px; }

/* ---------- Reveal-on-scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.22,1,.36,1); will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: none; }
.reveal-grid > .reveal.in { transition-delay: calc(var(--i, 0) * 75ms); }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; padding: clamp(36px, 5vw, 72px) 0 clamp(80px, 10vw, 130px); }
.hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: clamp(32px, 5vw, 68px); align-items: center; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 9px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-pill);
  padding: 7px 15px 7px 8px; box-shadow: var(--sh-sm); margin-bottom: 22px;
  font-weight: 600; font-size: .9rem; color: var(--ink-soft);
}
.hero-badge .stars { color: #ffb020; letter-spacing: 1px; font-size: .88rem; }
.hero-badge .pill-count { background: var(--purple-soft); color: var(--purple-dark); font-weight: 800; font-size: .78rem; padding: 3px 9px; border-radius: var(--r-pill); }

.hero h1 { font-size: clamp(2.5rem, 5.8vw, 4.3rem); margin-bottom: .28em; letter-spacing: -0.02em; }
.hero h1 .line { display: block; }
.hero-copy { font-size: 1.2rem; color: var(--ink-soft); max-width: 38ch; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 24px; align-items: center; }

.hero-proof { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 8px; }
.avatar-stack { display: flex; }
.avatar-stack span {
  width: 38px; height: 38px; border-radius: 50%; border: 2.5px solid #fff;
  margin-left: -10px; background-size: cover; background-position: center;
  box-shadow: var(--sh-xs); display: grid; place-items: center; font-size: 1.1rem;
}
.avatar-stack span:first-child { margin-left: 0; }
.avatar-stack .a1 { background: var(--grad-warm); }
.avatar-stack .a2 { background: var(--grad-cool); }
.avatar-stack .a3 { background: var(--grad-gold); }
.avatar-stack .a4 { background: var(--grad-primary-soft); }
.hero-proof-text { font-size: .92rem; color: var(--muted); font-weight: 600; }
.hero-proof-text b { color: var(--ink); }

/* ---------- Device mockups (the premium centerpiece) ---------- */
.hero-visual { position: relative; display: flex; justify-content: center; align-items: center; }

.phone {
  position: relative;
  width: min(320px, 78vw);
  aspect-ratio: 320 / 660;
  border-radius: 46px;
  background: linear-gradient(160deg, #241a4a, #14101f);
  padding: 12px;
  box-shadow: var(--sh-xl), inset 0 0 0 2px rgba(255,255,255,.06);
  z-index: 2;
}
.phone::before { /* side buttons */
  content: ""; position: absolute; right: -3px; top: 130px; width: 3px; height: 62px;
  border-radius: 3px; background: linear-gradient(180deg, #3a2f60, #241a4a);
  box-shadow: 0 78px 0 #241a4a;
}
.phone-screen {
  position: relative; width: 100%; height: 100%;
  border-radius: 36px; overflow: hidden; background: var(--surface-tint);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.2);
}
.phone-notch {
  position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
  width: 106px; height: 26px; background: #14101f; border-radius: 999px; z-index: 6;
}
.phone.tilt { transform: rotate(3deg); transition: transform .5s cubic-bezier(.34,1.56,.64,1); }
.phone.tilt:hover { transform: rotate(0deg) translateY(-6px); }
.phone.floaty { animation: floaty 6.5s ease-in-out infinite; }

/* Secondary smaller phone behind */
.phone.phone-back {
  position: absolute; width: min(238px, 58vw); left: -8%; bottom: -4%;
  transform: rotate(-9deg) scale(.86); z-index: 1; opacity: .96; filter: saturate(1.05);
}
.phone.phone-back .phone-screen { border-radius: 30px; }

/* Image slot: swap in real screenshots; falls back to CSS screen */
.shot {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: top center; z-index: 4;
  background: var(--surface-tint);
}
.shot[src=""], .shot:not([src]) { opacity: 0; }

/* When a real screenshot is loaded, it carries its own status bar, so drop the
   drawn notch and the CSS fallback screen behind it for a clean, premium look. */
.phone.has-shot .phone-notch,
.showcase-phone.has-shot .phone-notch { opacity: 0; }
.phone.has-shot .app-screen,
.showcase-phone.has-shot .app-screen { display: none; }
.shot.is-loaded { z-index: 5; }

/* Floating UI chips around the phone */
.float-chip {
  position: absolute; z-index: 7; display: inline-flex; align-items: center; gap: 9px;
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 16px; padding: 10px 14px; font-weight: 700; font-size: .84rem; color: var(--ink);
  box-shadow: var(--sh-md); animation: floaty 5.5s ease-in-out infinite;
}
.float-chip .fc-icon { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; font-size: .95rem; flex: 0 0 auto; }
.float-chip.chip-mic { top: 8%; left: -14%; }
.float-chip.chip-mic .fc-icon { background: var(--grad-warm); color: #fff; }
.float-chip.chip-read { bottom: 24%; left: -18%; animation-delay: -1.6s; }
.float-chip.chip-read .fc-icon { background: #d9f7e8; color: var(--green, #22a96b); }
.float-chip.chip-pages { top: 16%; right: -12%; animation-delay: -3s; }
.float-chip.chip-pages .fc-icon { background: #ffeccb; }
.float-chip.chip-star { bottom: 8%; right: -8%; animation-delay: -2.2s; }
.float-chip.chip-star .fc-icon { background: var(--grad-gold); }
.float-chip.chip-photo { top: 10%; left: -16%; animation-delay: -0.8s; }
.float-chip.chip-photo .fc-photo { width: 34px; height: 34px; border-radius: 10px; object-fit: cover; flex: 0 0 auto; box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); }
.hero-visual .spark { position: absolute; z-index: 8; font-size: 1.5rem; animation: twinkle 3s ease-in-out infinite; }
.hero-visual .spark.s1 { top: 0; right: 26%; }
.hero-visual .spark.s2 { bottom: 6%; right: 34%; animation-delay: -1.5s; }

/* CSS-drawn fallback app screen (behind the .shot image slot) */
.app-screen { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; background: linear-gradient(180deg, #ffffff 0%, #f7f4ff 100%); }
.app-screen .as-status { height: 40px; }
.app-screen .as-illus { height: 46%; position: relative; overflow: hidden; background: linear-gradient(180deg, #8bd6ff 0 58%, #8fe0b6 58% 100%); }
.app-screen .as-sun { position: absolute; top: 20px; right: 26px; width: 44px; height: 44px; border-radius: 50%; background: radial-gradient(circle, #fff2a0, #ffd76b); box-shadow: 0 0 26px rgba(255,215,107,.8); }
.app-screen .as-cloud { position: absolute; top: 30px; left: 26px; width: 60px; height: 22px; background: #fff; border-radius: 999px; box-shadow: 28px 8px 0 -3px #fff, -16px 6px 0 -5px #fff; }
.app-screen .as-hero-char { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); width: 60px; height: 74px; }
.app-screen .as-hero-char::before { content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 46px; height: 46px; border-radius: 50%; background: #ffe0bd; border: 3px solid #fff; }
.app-screen .as-hero-char::after { content: ""; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 40px; height: 36px; background: var(--coral); border-radius: 14px 14px 10px 10px; }
.app-screen .as-body { flex: 1; padding: 16px 18px; }
.app-screen .as-chip { display: inline-block; font-size: .6rem; font-weight: 800; color: var(--purple-dark); background: var(--purple-soft); padding: 4px 10px; border-radius: 999px; }
.app-screen .as-line { height: 11px; border-radius: 6px; background: #e9e3fb; margin-top: 12px; }
.app-screen .as-line.w1 { width: 92%; } .app-screen .as-line.w2 { width: 78%; } .app-screen .as-line.w3 { width: 64%; }
.app-screen .as-line.hi { background: var(--yellow); width: 40%; }
.app-screen .as-controls { display: flex; gap: 8px; margin-top: 18px; }
.app-screen .as-controls span { flex: 1; height: 30px; border-radius: 999px; background: #efeaff; }
.app-screen .as-controls span.primary { background: var(--grad-primary); }
.app-screen .as-dots { display: flex; gap: 6px; justify-content: center; margin-top: 16px; }
.app-screen .as-dots i { width: 7px; height: 7px; border-radius: 50%; background: #d9d1f2; }
.app-screen .as-dots i.on { background: var(--purple); transform: scale(1.3); }

@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes twinkle { 0%,100% { opacity: .4; transform: scale(.85); } 50% { opacity: 1; transform: scale(1.18); } }

/* Trust logos row */
.trust-strip { padding: clamp(28px, 4vw, 44px) 0; border-top: 1px solid var(--line-soft); }
.trust-strip .trust-label { text-align: center; font-size: .82rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); margin-bottom: 20px; }
.trust-logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(22px, 5vw, 60px); }
.trust-logos .tl { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-head); font-weight: 700; font-size: 1.06rem; color: var(--muted); opacity: .78; }
.trust-logos .tl svg { width: 22px; height: 22px; }

/* ============================================================
   STATS
   ============================================================ */
.stats-strip { padding: clamp(30px, 4vw, 46px) 0; }
.stats-card {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
  background: rgba(255,255,255,.7); backdrop-filter: blur(10px);
  border: 1px solid var(--line); border-radius: var(--r-2xl);
  box-shadow: var(--sh-md); padding: clamp(22px, 3vw, 34px) clamp(18px, 3vw, 30px);
}
.stat { display: flex; flex-direction: column; gap: 4px; text-align: center; position: relative; }
.stat + .stat::before { content: ""; position: absolute; left: 0; top: 12%; height: 76%; width: 1px; background: var(--line); }
.stat-num { font-family: var(--font-head); font-weight: 800; font-size: clamp(1.9rem, 4vw, 3rem); color: var(--purple-dark); font-variant-numeric: tabular-nums; line-height: 1; }
.stat-label { font-weight: 600; color: var(--muted); font-size: .92rem; }

/* ============================================================
   SCREENSHOT SHOWCASE (real app images in device frames)
   ============================================================ */
.showcase { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 34px); align-items: start; }
.showcase-item { text-align: center; }
.showcase-phone {
  position: relative; width: min(280px, 100%); margin: 0 auto 22px;
  aspect-ratio: 280 / 580; border-radius: 40px;
  background: linear-gradient(160deg, #2a1f56, #15111f); padding: 10px;
  box-shadow: var(--sh-lg); transition: transform .4s cubic-bezier(.34,1.56,.64,1);
}
.showcase-item:hover .showcase-phone { transform: translateY(-8px) rotate(-1deg); }
.showcase-phone .phone-screen { border-radius: 31px; }
.showcase-phone .phone-notch { width: 88px; height: 22px; top: 8px; }
.showcase-item h3 { font-size: 1.2rem; margin-bottom: 6px; }
.showcase-item p { color: var(--muted); font-size: .98rem; max-width: 30ch; margin: 0 auto; }
.showcase-badge {
  display: inline-block; font-family: var(--font-head); font-weight: 700; font-size: .74rem;
  color: var(--purple-dark); background: var(--purple-soft); padding: 5px 13px;
  border-radius: var(--r-pill); margin-bottom: 14px;
}

/* ============================================================
   STEPS
   ============================================================ */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.step-card {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-2xl); padding: 40px 28px 30px; box-shadow: var(--sh-sm);
  transition: transform .32s cubic-bezier(.34,1.56,.64,1), box-shadow .32s ease;
  overflow: hidden;
}
.step-card::after { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px; background: var(--grad-primary); opacity: 0; transition: opacity .3s ease; }
.step-card:hover { transform: translateY(-8px); box-shadow: var(--sh-lg); }
.step-card:hover::after { opacity: 1; }
.step-number { position: absolute; top: -18px; left: 28px; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 15px; font-family: var(--font-head); font-weight: 800; font-size: 1.2rem; color: #fff; background: var(--grad-primary); box-shadow: var(--sh-purple); }
.step-icon { width: 66px; height: 66px; display: grid; place-items: center; border-radius: 20px; background: var(--purple-soft); margin: 14px 0 18px; }
.step-icon svg { width: 34px; height: 34px; color: var(--purple-dark); }
.step-card h3 { font-size: 1.3rem; }
.step-card p { color: var(--muted); margin: 0; }

/* ============================================================
   FEATURES (icon grid + bento)
   ============================================================ */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl);
  padding: 30px 26px; box-shadow: var(--sh-xs);
  transition: transform .32s cubic-bezier(.34,1.56,.64,1), box-shadow .32s ease;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--sh-md); }
.feature-icon { width: 60px; height: 60px; display: grid; place-items: center; border-radius: 18px; background: var(--grad-cool); margin-bottom: 18px; box-shadow: var(--sh-inset); }
.feature-icon svg { width: 30px; height: 30px; color: #fff; }
.feature-card:nth-child(3n+2) .feature-icon { background: var(--grad-warm); }
.feature-card:nth-child(3n) .feature-icon { background: var(--grad-primary-soft); }
.feature-card h3 { font-size: 1.2rem; }
.feature-card p { color: var(--muted); margin: 0; font-size: .99rem; }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(180px, auto); gap: 20px; }
.bento-cell {
  position: relative; overflow: hidden; border-radius: var(--r-xl);
  background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-sm);
  padding: 28px; display: flex; flex-direction: column; justify-content: flex-end;
  transition: transform .32s cubic-bezier(.34,1.56,.64,1), box-shadow .32s ease;
}
.bento-cell:hover { transform: translateY(-5px); box-shadow: var(--sh-md); }
.bento-cell h3 { font-size: 1.2rem; margin-bottom: 6px; }
.bento-cell p { font-size: .95rem; color: var(--muted); margin: 0; }
.bento-cell .b-icon { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; margin-bottom: auto; }
.bento-cell .b-icon svg { width: 27px; height: 27px; color: #fff; }
.bento-wide { grid-column: span 2; }
.bento-tall { grid-row: span 2; }
.bento-feature { grid-column: span 2; grid-row: span 2; color: #fff; background: var(--grad-primary); border: 0; }
.bento-feature h3 { color: #fff; font-size: 1.6rem; }
.bento-feature p { color: rgba(255,255,255,.9); }
.bento-feature .b-icon { background: rgba(255,255,255,.18); }
.bento-cell.tint { background: var(--surface-tint); }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.testi-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl);
  padding: 28px; box-shadow: var(--sh-sm); display: flex; flex-direction: column; gap: 14px;
}
.testi-stars { color: #ffb020; letter-spacing: 2px; font-size: 1rem; }
.testi-card blockquote { margin: 0; font-size: 1.04rem; line-height: 1.6; color: var(--ink); font-weight: 500; }
.testi-person { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.testi-avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-size: 1.2rem; color: #fff; flex: 0 0 auto; }
.testi-name { font-weight: 700; font-size: .96rem; color: var(--ink); }
.testi-role { font-size: .84rem; color: var(--muted); }

/* ============================================================
   FAMILY / ROLES
   ============================================================ */
.family-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 44px; }
.family-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); padding: 30px 26px; box-shadow: var(--sh-sm); }
.family-badge { display: inline-block; font-family: var(--font-head); font-weight: 700; font-size: .78rem; color: var(--purple-dark); background: var(--purple-soft); padding: 6px 14px; border-radius: var(--r-pill); margin-bottom: 16px; }
.family-badge.alt { color: #b5541f; background: #ffe7d4; }
.family-badge.kids { color: #0f8a63; background: #d7f6e9; }
.family-card h3 { font-size: 1.24rem; }

.ticks li { position: relative; padding: 9px 0 9px 32px; color: var(--ink-soft); border-bottom: 1px dashed var(--line); }
.ticks li:last-child { border-bottom: 0; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 12px; width: 21px; height: 21px; border-radius: 50%; background: var(--green, #22a96b) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/12px no-repeat; }
.ticks li.cross::before { background: var(--muted) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'/%3E%3Cline x1='6' y1='6' x2='18' y2='18'/%3E%3C/svg%3E") center/12px no-repeat; }

/* ---------- Credits panel ---------- */
.credits-panel { display: grid; grid-template-columns: 1.1fr .9fr; gap: 34px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--r-2xl); padding: clamp(26px, 4vw, 44px); box-shadow: var(--sh-md); margin-bottom: 36px; }
.credits-copy h3 { font-size: 1.6rem; }
.credit-flow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 20px; }
.credit-chip { font-family: var(--font-head); font-weight: 700; background: var(--purple-soft); color: var(--purple-dark); padding: 10px 16px; border-radius: var(--r-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(--line); border-radius: var(--r-xl); padding: 24px; box-shadow: var(--sh-xs); }
.credit-row { display: flex; justify-content: space-between; align-items: center; font-family: var(--font-head); font-weight: 700; font-size: 1.06rem; margin-bottom: 14px; }
.credit-tag { font-size: .72rem; font-weight: 800; color: var(--green, #22a96b); background: #d9f7e8; padding: 4px 10px; border-radius: 999px; }
.credit-line { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px dashed var(--line); 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.16rem; color: var(--purple-dark); }
.credit-note { display: flex; gap: 8px; margin-top: 14px; font-size: .85rem; color: var(--muted); background: #fff; border: 1px dashed var(--line); border-radius: 12px; padding: 11px 13px; }

/* ---------- Invite flow ---------- */
.invite-flow { background: #fff; border: 1px solid var(--line); border-radius: var(--r-2xl); padding: clamp(26px, 4vw, 40px); box-shadow: var(--sh-xs); }
.invite-flow h3 { font-size: 1.5rem; text-align: center; }
.invite-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin: 24px 0 18px; }
.invite-steps li { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; background: var(--surface-tint); border-radius: var(--r-lg); padding: 20px; color: var(--ink-soft); font-weight: 600; }
.invite-n { width: 36px; height: 36px; 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: 28px; max-width: 900px; margin: 0 auto; align-items: start; }
.price-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r-2xl); padding: 38px 32px; box-shadow: var(--sh-sm); }
.price-card.featured { border: 2px solid transparent; background: linear-gradient(#fff, #fff) padding-box, var(--grad-primary) border-box; box-shadow: var(--sh-lg); }
.price-flag { position: absolute; top: -15px; left: 50%; transform: translateX(-50%); font-family: var(--font-head); font-weight: 700; font-size: .78rem; color: #fff; background: var(--grad-warm); padding: 7px 18px; border-radius: var(--r-pill); box-shadow: var(--sh-sm); white-space: nowrap; }
.price-card h3 { font-size: 1.4rem; margin-top: 6px; }
.price { display: flex; align-items: baseline; gap: 6px; margin: 8px 0 4px; }
.price-amount { font-family: var(--font-head); font-weight: 800; font-size: clamp(2.4rem, 5vw, 3.2rem); color: var(--purple-dark); }
.price-period { font-weight: 700; color: var(--muted); }
.price-sub { color: var(--muted); }
.price-card .ticks { margin: 18px 0 24px; }
.price-fine { font-size: .82rem; color: var(--muted); text-align: center; margin: 14px 0 0; }

/* ---------- Safety split ---------- */
.safety { display: grid; grid-template-columns: 260px 1fr; gap: clamp(28px, 5vw, 58px); align-items: center; }
.safety-visual { position: relative; aspect-ratio: 1; border-radius: var(--r-2xl); background: var(--grad-primary); display: grid; place-items: center; box-shadow: var(--sh-lg); overflow: hidden; }
.safety-visual svg { width: 46%; height: 46%; color: #fff; position: relative; z-index: 2; }
.safety-visual::before { content: ""; position: absolute; width: 160%; height: 160%; background: radial-gradient(circle, rgba(255,255,255,.2), transparent 60%); animation: floaty 6s ease-in-out infinite; }
.safety h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
.safety-list { display: grid; gap: 16px; margin-top: 22px; }
.safety-item { display: flex; align-items: flex-start; gap: 13px; color: var(--ink-soft); }
.safety-item .check { flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%; background: var(--green, #22a96b); display: grid; place-items: center; }
.safety-item .check svg { width: 15px; height: 15px; color: #fff; }
.safety-actions { margin-top: 24px; }

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 820px; margin: 0 auto; }
.faq-list { display: grid; gap: 14px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-xs); overflow: hidden; transition: box-shadow .25s ease; }
.faq-item[open] { box-shadow: var(--sh-sm); }
.faq-item summary { list-style: none; cursor: pointer; padding: 20px 56px 20px 24px; position: relative; font-family: var(--font-head); font-weight: 700; font-size: 1.08rem; color: var(--ink); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: ""; position: absolute; right: 20px; top: 18px; width: 30px; height: 30px; border-radius: 50%; background: var(--purple-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234a2fc4' stroke-width='2.5' stroke-linecap='round'%3E%3Cline x1='12' y1='5' x2='12' y2='19'/%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3C/svg%3E") center/15px no-repeat; transition: transform .25s ease, background-color .25s ease; }
.faq-item[open] summary::after { transform: rotate(135deg); }
.faq-a { padding: 0 24px 22px; }
.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(--r-2xl); padding: clamp(44px, 7vw, 80px) clamp(24px, 5vw, 64px); box-shadow: var(--sh-lg); position: relative; overflow: hidden; }
.cta::before, .cta::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255,255,255,.13); }
.cta::before { width: 280px; height: 280px; top: -100px; right: -70px; }
.cta::after { width: 200px; height: 200px; bottom: -80px; left: -50px; }
.cta h2 { color: #fff; font-size: clamp(1.8rem, 3.8vw, 2.8rem); position: relative; }
.cta p { color: rgba(255,255,255,.92); max-width: 48ch; margin: 0 auto 28px; position: relative; }
.cta .center-actions { position: relative; margin-top: 0; }
.cta-note { position: relative; margin-top: 18px; font-size: .88rem; color: rgba(255,255,255,.8); }

/* ---------- Footer ---------- */
.site-footer { background: radial-gradient(700px 400px at 90% 0%, rgba(118,88,246,.28), transparent 60%), linear-gradient(160deg, #1f1840, #14101f); color: #cfc7ee; padding: clamp(48px, 6vw, 76px) 0 30px; margin-top: 24px; }
.footer-grid { display: grid; grid-template-columns: 1.7fr repeat(3, 1fr); gap: 32px; }
.footer-brand .brand, .footer-brand .brand-name { color: #fff; }
.footer-brand p { color: #a99fd6; margin-top: 14px; max-width: 34ch; }
.footer-badges { margin-top: 20px; }
.footer-col h4 { color: #fff; font-size: 1rem; margin-bottom: 15px; }
.footer-col a { display: block; color: #b7aee0; padding: 6px 0; font-size: .96rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; margin-top: 38px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); color: #9a90c9; font-size: .9rem; }
.footer-bottom .foot-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-bottom .foot-links a { color: #9a90c9; }
.footer-bottom .foot-links a:hover { color: #fff; }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(20px); background: var(--ink); color: #fff; padding: 14px 22px; border-radius: var(--r-pill); box-shadow: var(--sh-lg); font-weight: 700; opacity: 0; pointer-events: none; transition: opacity .3s ease, transform .3s cubic-bezier(.34,1.56,.64,1); z-index: 200; max-width: calc(100% - 32px); text-align: center; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============================================================
   STORY-COMES-TO-LIFE SHOWCASE (cinematic demo)
   ============================================================ */
.story-demo { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; max-width: 1080px; margin: 0 auto; }

/* --- Narrative column --- */
.demo-steps { list-style: none; display: flex; flex-direction: column; gap: 18px; margin: 0 0 26px; padding: 0; }
.demo-step { display: flex; gap: 16px; align-items: flex-start; opacity: .45; transform: translateY(2px); transition: opacity .4s ease, transform .4s ease; }
.demo-step.active { opacity: 1; transform: none; }
.demo-step-num { flex: 0 0 auto; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; font-size: 1rem; color: var(--purple-dark); background: var(--purple-soft); box-shadow: inset 0 0 0 1px rgba(118,88,246,.16); transition: background .4s ease, color .4s ease, box-shadow .4s ease; }
.demo-step.active .demo-step-num { background: var(--grad-primary); color: #fff; box-shadow: 0 8px 20px -8px rgba(118,88,246,.7); }
.demo-step strong { display: block; font-size: 1.08rem; color: var(--ink); margin-bottom: 2px; }
.demo-step span { color: var(--muted); font-size: .95rem; line-height: 1.5; }

.demo-prompt-card { position: relative; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--purple); border-radius: var(--r-lg); padding: 16px 18px; box-shadow: var(--sh-sm); margin-bottom: 26px; }
.demo-prompt-label { display: inline-block; font-weight: 800; font-size: .68rem; letter-spacing: .09em; text-transform: uppercase; color: var(--purple-dark); margin-bottom: 6px; }
.demo-prompt-text { margin: 0; font-size: 1.06rem; line-height: 1.5; color: var(--ink); font-weight: 500; min-height: 1.5em; }
.demo-prompt-text::after { content: "|"; color: var(--purple); font-weight: 400; margin-left: 1px; animation: demoCaret 1s step-end infinite; }
.demo-prompt-card.typed .demo-prompt-text::after { display: none; }
@keyframes demoCaret { 50% { opacity: 0; } }

.demo-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.demo-replay { gap: 8px; }

/* --- Phone stage --- */
.story-demo-stage { position: relative; display: flex; justify-content: center; }
.story-demo-stage .phone { width: min(310px, 80vw); }
.story-demo-stage .phone-screen { background: #f4f1fb; }

/* Scenes cross-fade within the screen */
.demo-scene { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .55s ease; }
.demo-scene.active { opacity: 1; visibility: visible; }
.demo-scene .shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; z-index: 2; }
.demo-scene-fallback { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; }

/* Fallback: create screen */
.demo-scene-describe .demo-scene-fallback { background: linear-gradient(180deg, #ffffff, #f5f1ff); padding: 46px 20px 20px; }
.dsf-topbar { text-align: center; font-family: var(--font-head); font-weight: 700; color: var(--ink); font-size: 1rem; margin-bottom: 20px; }
.dsf-typebox { flex: 1; background: #fff; border: 2px solid #e6e0fb; border-radius: 16px; padding: 16px; font-size: .98rem; line-height: 1.5; color: var(--ink); box-shadow: inset 0 1px 3px rgba(0,0,0,.03); }
.dsf-caret::after { content: "|"; color: var(--purple); animation: demoCaret 1s step-end infinite; }
.dsf-cta { margin-top: 16px; background: var(--grad-primary); color: #fff; text-align: center; font-weight: 700; padding: 14px; border-radius: 14px; box-shadow: 0 10px 22px -10px rgba(118,88,246,.8); }

/* Fallback: illustrating screen */
.demo-scene-illustrate .demo-scene-fallback { background: linear-gradient(180deg, #f7f4ff, #efeaff); align-items: center; justify-content: center; padding: 24px; }
.dsf-progress-wrap { text-align: center; width: 100%; }
.dsf-portrait { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0 auto 20px; }
.dsf-portrait .dsf-photo, .dsf-portrait .dsf-caricature { width: 62px; height: 62px; border-radius: 16px; object-fit: cover; box-shadow: var(--sh-sm); }
.dsf-portrait .dsf-photo { filter: saturate(.96); }
.dsf-portrait .dsf-caricature { width: 74px; height: 74px; border: 2px solid #fff; box-shadow: 0 10px 26px -8px rgba(118,88,246,.6); animation: demoPop 2.6s ease-in-out infinite; }
.dsf-portrait .dsf-arrow { color: var(--purple); font-weight: 800; font-size: 1.2rem; opacity: .8; }
@keyframes demoPop { 0%,100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@keyframes demoSpin { to { transform: rotate(360deg); } }
.dsf-progress-label { display: block; font-weight: 700; color: var(--ink); margin-bottom: 12px; }
.dsf-bar { height: 8px; border-radius: 999px; background: rgba(118,88,246,.16); overflow: hidden; }
.dsf-bar-fill { display: block; height: 100%; width: 0; border-radius: 999px; background: var(--grad-primary); transition: width .3s ease; }
.dsf-eta { display: block; margin-top: 10px; font-size: .82rem; color: var(--muted); font-weight: 600; }

/* Read scene */
.demo-scene-read .demo-reader { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; background: linear-gradient(180deg, #ffffff, #f6f2ff); }
.demo-reader-top { padding: 44px 16px 10px; text-align: center; }
.demo-reader-title { display: block; font-family: var(--font-head); font-weight: 700; font-size: 1rem; color: var(--ink); margin-bottom: 10px; }
.demo-reader-modes { display: inline-flex; gap: 4px; background: rgba(118,88,246,.1); padding: 4px; border-radius: 999px; }
.demo-mode { border: 0; background: transparent; border-radius: 999px; padding: 6px 13px; font-weight: 700; font-size: .78rem; color: var(--ink-soft); transition: background .2s ease, color .2s ease, box-shadow .2s ease; }
.demo-mode.active { background: #fff; color: var(--purple-dark); box-shadow: var(--sh-xs); }
.demo-reader-art { position: relative; flex: 1; margin: 6px 14px 0; border-radius: 18px; overflow: hidden; background: #ece6fb; box-shadow: inset 0 0 0 1px rgba(0,0,0,.05); }
.demo-reader-art .demo-page { position: absolute; inset: 0; opacity: 0; transition: opacity .5s ease; }
.demo-reader-art .demo-page.active { opacity: 1; }
.demo-reader-art .demo-page-ph { position: absolute; inset: 0; display: grid; place-items: center; font-size: 2.6rem; background: linear-gradient(160deg, #d7ecff, #ffe9c9); }
.demo-reader-art .demo-page-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.demo-reader-art .demo-page-img.failed { display: none; }
.demo-reader-caption { padding: 12px 16px 6px; }
.demo-page-num { font-weight: 800; font-size: .7rem; color: var(--purple-dark); background: var(--purple-soft); padding: 3px 10px; border-radius: 999px; }
.demo-page-text { margin: 8px 0 0; font-size: .92rem; line-height: 1.55; color: var(--ink); min-height: 2.8em; }
.demo-page-text .w { border-radius: 5px; padding: 0 1px; transition: background .2s ease, color .2s ease; }
.demo-page-text .w.lit { background: var(--yellow); color: var(--ink); }
.demo-reader-nav { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 4px 16px 16px; }
.demo-nav-btn { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--purple-dark); display: grid; place-items: center; transition: transform .15s ease, box-shadow .15s ease; }
.demo-nav-btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: var(--sh-xs); }
.demo-nav-btn:disabled { opacity: .4; cursor: not-allowed; }
.demo-dots { display: flex; gap: 6px; }
.demo-dots .dot { width: 7px; height: 7px; border-radius: 50%; background: #cfc6ef; transition: transform .2s ease, background .2s ease; }
.demo-dots .dot.active { background: var(--purple); transform: scale(1.4); }

/* ============================================================
   SUB-PAGE HERO + LEGAL/CONTENT
   ============================================================ */
.page-hero { text-align: center; padding: clamp(52px, 8vw, 100px) 0 clamp(32px, 5vw, 58px); position: relative; }
.page-hero h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
.page-hero p { font-size: 1.16rem; color: var(--muted); max-width: 62ch; margin: 0 auto; }
.page-hero .eyebrow { margin-bottom: 18px; }
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 10px; }
.crumbs a { color: var(--purple-dark); font-weight: 700; }
.crumbs span { margin: 0 6px; opacity: .6; }

.content-page { padding: clamp(30px, 5vw, 56px) 0 clamp(52px, 8vw, 92px); }
.content-wrap { display: grid; grid-template-columns: 244px 1fr; gap: clamp(26px, 4vw, 50px); align-items: start; }
.content-nav { position: sticky; top: calc(var(--header-h) + 16px); background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; box-shadow: var(--sh-xs); }
.content-nav h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 12px; }
.content-nav a { display: block; padding: 8px 11px; 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(--line); border-radius: var(--r-xl); padding: clamp(26px, 4vw, 50px); box-shadow: var(--sh-xs); max-width: 80ch; }
.prose .updated { color: var(--muted); font-size: .9rem; margin-bottom: 10px; }
.prose h2 { font-size: 1.5rem; margin-top: 2em; padding-top: 1em; border-top: 1px solid var(--line); 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.16rem; 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: 15px 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: 11px 13px; border-bottom: 1px solid var(--line); }
.prose th { font-family: var(--font-head); color: var(--ink); background: var(--surface-tint); }

.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-bottom: 36px; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); padding: 28px; box-shadow: var(--sh-xs); 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(--sh-md); }
.contact-card .feature-icon { margin: 0 auto 16px; }
.contact-card h3 { font-size: 1.16rem; }
.contact-card a { font-weight: 700; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-visual { order: -1; margin-bottom: 16px; }
  .hero-copy { margin-inline: auto; }
  .hero-actions, .hero-proof, .store-badges { justify-content: center; }
  .hero-badge { margin-inline: auto; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento-feature { grid-column: span 2; }
  .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; }
  .showcase { grid-template-columns: repeat(3, 1fr); gap: 16px; }
}

@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,250,.98); backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line); box-shadow: var(--sh-md);
    padding: 16px 22px 24px; 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: 13px 8px; border-bottom: 1px solid var(--line); font-size: 1.02rem; }
  .nav-links a::after { display: none; }
  .nav-actions { flex-direction: column; align-items: stretch; gap: 12px; margin-top: 16px; }
  .language-control { justify-content: center; }
  .steps, .feature-grid, .family-grid, .pricing-grid, .contact-grid, .testi-grid, .showcase { grid-template-columns: 1fr; }
  .stats-card { grid-template-columns: repeat(2, 1fr); gap: 22px; row-gap: 26px; }
  .stat + .stat::before { display: none; }
  .story-demo { grid-template-columns: 1fr; gap: 40px; max-width: 460px; }
  .story-demo-copy { order: 2; }
  .story-demo-stage { order: 1; }
  /* On stacked layouts the phone is centered/full-width, so the floating
     chips would overlap the reader UI - hide them here. */
  .story-demo-stage .float-chip { display: none; }
  .safety { grid-template-columns: 1fr; text-align: center; }
  .safety-visual { width: 200px; margin-inline: auto; }
  .safety-list { text-align: left; max-width: 32rem; margin-inline: auto; }
  .showcase-item { max-width: 340px; margin-inline: auto; }
  .bento { grid-template-columns: 1fr; }
  .bento-wide, .bento-tall, .bento-feature { grid-column: auto; grid-row: auto; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .container, .container-narrow { width: calc(100% - 32px); }
  .invite-steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { justify-content: center; text-align: center; }
  .float-chip { font-size: .76rem; padding: 8px 11px; }
  .float-chip.chip-mic { left: -4%; } .float-chip.chip-read { left: -6%; }
  .float-chip.chip-pages { right: -4%; } .float-chip.chip-star { right: -2%; }
  .phone.phone-back { display: none; }
  .cta { padding: 44px 22px; }
  .price-card { padding: 30px 24px; }
}

/* ============================================================
   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 !important; transform: none !important; }
  .blob, .phone.floaty, .float-chip, .dsf-caricature, .dsf-caret::after, .demo-prompt-text::after { animation: none !important; }
}
