/* ============================================================
   MY STUDY BUDDY — Shared Stylesheet
   Brand tokens mirror the app: MyStudyBuddy/lib/core/theme/app_colors.dart
   Fonts mirror app_text_styles.dart: Fredoka (headings) + Inter (body)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@500;600;700&family=Inter:wght@400;500;600;700&display=swap');

/* ─── Brand tokens ─────────────────────────────────────── */
:root {
  /* Primary — Deep Navy */
  --navy:          #0A2540;
  --navy-dark:     #071A2E;
  --navy-light:    #1A3A5C;
  --navy-medium:   #0D3260;
  /* Accent — Rich Gold */
  --gold:          #D4AF37;
  --gold-light:    #E8C84A;
  --gold-dark:     #B8960A;
  --gold-soft:     #F5E27A;
  /* Background — Cream */
  --cream:         #F8F4E9;
  --cream-dark:    #EFE9D5;
  --cream-deep:    #E5DEC8;
  --white:         #FFFFFF;
  /* Highlight — Emerald / Teal */
  --emerald:       #10B981;
  --emerald-light: #34D399;
  --teal:          #0D9488;
  /* Semantic */
  --error:         #EF4444;
  --warning:       #F59E0B;
  /* Text */
  --text-primary:  #0A2540;
  --text-secondary:#4A5568;
  --text-muted:    #5F6B7D;   /* app #718096 darkened slightly for AA contrast on cream */
  --text-on-dark:  #F8F4E9;
  --text-on-dark-muted: #CBD5E0;
  /* Dark surfaces */
  --dark-bg:       #0D1B2A;
  --dark-surface:  #1A2A3A;
  --dark-card:     #1E3448;
  --dark-border:   #2D4A63;
  --divider:       #E8E3D5;

  --font-display: 'Fredoka', 'Nunito', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-round: 100px;

  --shadow-card:     0 4px 14px rgba(10, 37, 64, 0.06);
  --shadow-elevated: 0 12px 32px rgba(10, 37, 64, 0.18);
  --glow-gold:       0 10px 30px rgba(212, 175, 55, 0.35);

  --sp-1: 8px;
  --sp-2: 16px;
  --sp-3: 24px;
  --sp-4: 32px;
  --sp-5: 48px;
  --sp-6: 64px;
  --sp-7: 96px;

  --nav-h: 68px;
}

/* ─── Reset & Base ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; scroll-padding-top: calc(var(--nav-h) + 12px); }
body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a  { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.2; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 2000;
  background: var(--gold); color: var(--navy); font-weight: 700;
  padding: 10px 16px; border-radius: var(--radius-md);
  transition: top .2s;
}
.skip-link:focus { top: 12px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.pixel { image-rendering: pixelated; image-rendering: crisp-edges; }

/* ─── Navigation ─────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 999;
  background: rgba(10, 37, 64, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.18);
}
.nav__inner {
  max-width: 1200px; margin: 0 auto;
  padding: 0 var(--sp-3);
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
}
.nav__logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-weight: 700; font-size: 1.3rem;
  color: var(--cream); letter-spacing: -0.01em;
}
.nav__logo em { color: var(--gold); font-style: normal; }
.nav__logo-img { width: 38px; height: 38px; border-radius: 10px; }
.nav__links { display: flex; align-items: center; gap: 32px; }
.nav__links a {
  font-size: 0.9rem; font-weight: 500;
  color: var(--text-on-dark-muted);
  position: relative; padding-bottom: 4px;
  transition: color 0.2s;
}
.nav__links a:hover { color: var(--white); }
.nav__links a.active { color: var(--white); font-weight: 600; }
.nav__links a.active::after {
  content: ''; position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 2px; background: var(--gold); border-radius: 2px;
}
.btn-nav {
  background: var(--gold);
  color: var(--navy) !important;
  padding: 10px 20px;
  border-radius: var(--radius-round);
  font-weight: 700; font-size: 0.875rem;
  transition: background 0.2s, transform 0.15s, box-shadow .2s;
  white-space: nowrap;
  display: inline-block;
}
.btn-nav:hover { background: var(--gold-light); transform: translateY(-1px); box-shadow: var(--glow-gold); }
.btn-nav::after { display: none !important; }

.nav__hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; padding: 10px;
}
.nav__hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--cream); border-radius: 2px;
  transition: 0.3s;
}
.nav__hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav__hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__mobile {
  display: none; flex-direction: column;
  padding: var(--sp-1) var(--sp-3) var(--sp-3);
  border-top: 1px solid rgba(212, 175, 55, 0.18);
  background: var(--navy);
}
.nav__mobile.open { display: flex; }
.nav__mobile a {
  font-size: 1rem; font-weight: 500;
  color: var(--text-on-dark-muted);
  padding: 13px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav__mobile a:last-of-type { border-bottom: none; }
.nav__mobile a:hover, .nav__mobile a.active { color: var(--white); font-weight: 600; }
.nav__mobile .btn-nav { margin-top: var(--sp-2); display: block; text-align: center; padding: 14px 20px; }

@media (max-width: 860px) {
  .nav__links    { display: none; }
  .nav__hamburger { display: flex; }
}

/* ─── Footer ─────────────────────────────────────────────── */
.footer {
  background: var(--navy-dark);
  padding: var(--sp-6) var(--sp-3) var(--sp-4);
  border-top: 1px solid rgba(212, 175, 55, 0.15);
}
.footer__inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; justify-content: space-between;
  align-items: flex-start; gap: var(--sp-4);
  flex-wrap: wrap;
}
.footer__brand { max-width: 360px; }
.footer__brand-name {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-size: 1.3rem; font-weight: 700;
  color: var(--white); margin-bottom: 8px;
}
.footer__brand-name img { width: 40px; height: 40px; border-radius: 10px; }
.footer__tagline {
  font-size: 0.875rem;
  color: rgba(248,244,233,0.68);
  margin-bottom: var(--sp-2);
  line-height: 1.5;
}
.footer__copy { font-size: 0.78rem; color: rgba(248,244,233,0.5); }
.footer__links {
  display: flex; flex-direction: column;
  gap: 10px; text-align: right;
}
.footer__links a {
  font-size: 0.875rem;
  color: rgba(248,244,233,0.75);
  transition: color 0.2s;
}
.footer__links a:hover { color: var(--gold); }
.footer__stores { display: flex; gap: 10px; flex-wrap: wrap; margin-top: var(--sp-2); }
@media (max-width: 640px) {
  .footer__links { text-align: left; flex-direction: row; flex-wrap: wrap; gap: 8px 20px; }
}

/* ─── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; font-family: var(--font-body);
  font-weight: 600; font-size: 1rem;
  border-radius: var(--radius-md);
  min-height: 52px; padding: 0 var(--sp-4);
  border: none; cursor: pointer;
  transition: all 0.2s; text-decoration: none;
  white-space: nowrap; line-height: 1;
}
.btn-primary { background: var(--gold); color: var(--navy); }
.btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: var(--glow-gold); }
.btn-outline-gold { background: transparent; color: var(--gold); border: 1.5px solid var(--gold); }
.btn-outline-gold:hover { background: rgba(212,175,55,0.12); transform: translateY(-2px); }
.btn-navy { background: var(--navy); color: var(--cream); }
.btn-navy:hover { background: var(--navy-medium); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(10,37,64,0.3); }

/* Primary download CTA (A/B experiment "cta") */
.cta-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 30px;
  font-family: var(--font-body); font-weight: 700; font-size: 1.05rem;
  background: var(--gold); color: var(--navy);
  border-radius: var(--radius-md); border: none;
  transition: transform .15s, box-shadow .2s, background .2s;
}
.cta-primary:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: var(--glow-gold); }
.cta-primary svg { width: 20px; height: 20px; flex-shrink: 0; }
/* Variant B: rounded emerald pill (the app's highlight colour) */
[data-ab-cta="b"] .cta-primary {
  background: linear-gradient(135deg, var(--emerald-light) 0%, var(--emerald) 100%);
  color: var(--navy-dark);
  border-radius: var(--radius-round);
  padding: 0 34px;
  box-shadow: 0 10px 28px rgba(16,185,129,0.35);
}
[data-ab-cta="b"] .cta-primary:hover { background: var(--emerald-light); box-shadow: 0 12px 30px rgba(16,185,129,0.45); }

/* Store badges */
.store-badges { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.store-badge {
  display: inline-flex; align-items: center; gap: 10px;
  height: 54px; padding: 0 18px 0 14px;
  background: #000; color: #fff;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 12px;
  transition: transform .15s, box-shadow .2s, border-color .2s;
  line-height: 1.1;
  min-width: 170px;
}
.store-badge:hover { transform: translateY(-2px); border-color: var(--gold); box-shadow: 0 8px 22px rgba(0,0,0,0.35); }
.store-badge svg { width: 26px; height: 26px; flex-shrink: 0; }
.store-badge__text { display: flex; flex-direction: column; }
.store-badge__small { font-size: 0.66rem; letter-spacing: .02em; opacity: .9; }
.store-badge__big { white-space: nowrap; font-size: 1.12rem; font-weight: 600; font-family: var(--font-body); letter-spacing: -.01em; }
.store-badge.is-preferred { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(212,175,55,0.35); }
.store-badge.is-soon { opacity: .75; }
.store-badge.is-soon .store-badge__small::after { content: ' · coming soon'; color: var(--gold-light); }
.store-badge--sm { height: 44px; min-width: 140px; padding: 0 14px 0 10px; }
.store-badge--sm .store-badge__big { font-size: .95rem; }
.store-badge--sm svg { width: 22px; height: 22px; }

/* ─── Section helpers ────────────────────────────────────── */
.section         { padding: var(--sp-7) var(--sp-3); }
.section--md     { padding: var(--sp-6) var(--sp-3); }
.container       { max-width: 1200px; margin: 0 auto; }
.container--text { max-width: 760px;  margin: 0 auto; }
.text-center     { text-align: center; }

.section-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: #8a6d00;
  background: rgba(212,175,55,0.14);
  border: 1px solid rgba(212,175,55,0.35);
  padding: 6px 14px; border-radius: var(--radius-round);
  margin-bottom: var(--sp-2);
}
.section-label--dark { color: var(--gold-light); background: rgba(212,175,55,0.1); border-color: rgba(212,175,55,0.28); }
.section-heading {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.9rem, 3.4vw, 2.75rem);
  line-height: 1.15; margin-bottom: 14px; letter-spacing: -0.01em;
}
.section-sub {
  font-size: 1.0625rem; color: var(--text-secondary);
  line-height: 1.7; margin: 0 auto var(--sp-5);
  max-width: 600px;
}

/* ─── Animations ─────────────────────────────────────────── */
@keyframes shimmer { 0% { background-position: -600px 0; } 100% { background-position: 600px 0; } }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes pulsePill {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.04); }
}
@keyframes glowPulse {
  0%, 100% { opacity: .55; transform: scale(1); }
  50% { opacity: .85; transform: scale(1.06); }
}

.animate-on-scroll { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.animate-on-scroll.visible { opacity: 1; transform: translateY(0); }
.no-js .animate-on-scroll { opacity: 1; transform: none; }
.delay-1 { transition-delay: 0.08s; }
.delay-2 { transition-delay: 0.16s; }
.delay-3 { transition-delay: 0.24s; }
.delay-4 { transition-delay: 0.32s; }
.delay-5 { transition-delay: 0.40s; }
.delay-6 { transition-delay: 0.48s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .animate-on-scroll { opacity: 1; transform: none; }
}

/* ============================================================
   LANDING PAGE (index.html)
   ============================================================ */

/* ─── Hero ─────────────────────────────────────────────── */
.hero {
  background:
    radial-gradient(ellipse 60% 70% at 78% 45%, rgba(212,175,55,0.16) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 5% 90%, rgba(13,50,96,0.9) 0%, transparent 70%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--text-on-dark);
  padding: var(--sp-6) var(--sp-3) var(--sp-7);
  position: relative; overflow: hidden;
}
.hero::after { /* soft star field */
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 18%, rgba(245,226,122,.7), transparent),
    radial-gradient(1px 1px at 32% 72%, rgba(255,255,255,.5), transparent),
    radial-gradient(1.5px 1.5px at 58% 12%, rgba(245,226,122,.6), transparent),
    radial-gradient(1px 1px at 88% 80%, rgba(255,255,255,.45), transparent),
    radial-gradient(1px 1px at 70% 60%, rgba(255,255,255,.35), transparent),
    radial-gradient(1.5px 1.5px at 22% 48%, rgba(255,255,255,.3), transparent);
}
.hero__inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1.05fr 1fr;
  gap: var(--sp-5); align-items: center;
  position: relative; z-index: 1;
}
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--gold-light);
  background: rgba(212,175,55,0.12);
  border: 1px solid rgba(212,175,55,0.3);
  padding: 6px 14px; border-radius: var(--radius-round);
  margin-bottom: var(--sp-3);
}
.hero__eyebrow .dot { width: 7px; height: 7px; background: var(--emerald-light); border-radius: 50%; animation: pulsePill 2s ease-in-out infinite; }
.hero__title {
  font-weight: 700;
  font-size: clamp(2.3rem, 5vw, 3.7rem);
  line-height: 1.08; letter-spacing: -0.015em;
  color: var(--white);
  margin-bottom: var(--sp-3);
}
.hero__title em { color: var(--gold); font-style: normal; }
.hero__sub {
  font-size: 1.125rem;
  color: rgba(248,244,233,0.82);
  line-height: 1.7;
  margin-bottom: var(--sp-4);
  max-width: 540px;
}
.hero__cta { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.hero__micro {
  display: flex; flex-wrap: wrap; gap: 6px 18px;
  font-size: .85rem; color: rgba(248,244,233,0.75);
}
.hero__micro span { display: inline-flex; align-items: center; gap: 6px; }
.hero__micro svg { width: 16px; height: 16px; color: var(--emerald-light); }

/* Hero visual variants (A/B experiment "hero_visual") */
.hero__visual { position: relative; min-height: 460px; display: flex; align-items: center; justify-content: center; }
.hero-visual--character { display: none; }
[data-ab-hero_visual="b"] .hero-visual--phone { display: none; }
[data-ab-hero_visual="b"] .hero-visual--character { display: flex; }

/* Phone mockup (variant A / control) */
.phone-scene {
  display: flex; justify-content: center; align-items: center;
  position: relative;
  padding: 40px 80px;
  animation: floatY 4.5s ease-in-out infinite;
}
.phone-frame {
  width: 240px; height: 486px;
  border: 3px solid rgba(212,175,55,0.55);
  border-radius: 42px;
  background: linear-gradient(160deg, var(--navy-medium) 0%, var(--navy-dark) 100%);
  position: relative; overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,0.45), 0 0 0 8px rgba(7,26,46,0.9), 0 0 60px rgba(212,175,55,0.18);
}
.phone-screenshot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.phone-notch {
  position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
  width: 70px; height: 18px; background: #050d17; border-radius: 12px; z-index: 3;
}
.phone-shimmer {
  position: absolute; inset: 0; z-index: 4; pointer-events: none;
  background: linear-gradient(105deg, transparent 20%, rgba(255,255,255,0.07) 48%, rgba(255,255,255,0.04) 52%, transparent 80%);
  background-size: 600px 100%;
  animation: shimmer 4s ease-in-out infinite;
}
.phone-pill {
  position: absolute; z-index: 10;
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--navy-dark);
  border: 1px solid rgba(212,175,55,0.4);
  color: var(--gold-light);
  font-size: 0.75rem; font-weight: 600;
  padding: 8px 14px; border-radius: var(--radius-round);
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
}
.phone-pill--1 { top: 16%;  left: -4px;  animation: pulsePill 2.8s ease-in-out infinite; }
.phone-pill--2 { top: 36%;  right: -4px; animation: pulsePill 2.8s ease-in-out infinite .7s; }
.phone-pill--3 { bottom: 30%; left: -4px; animation: pulsePill 2.8s ease-in-out infinite 1.4s; }
.phone-pill--4 { bottom: 12%; right: -4px; animation: pulsePill 2.8s ease-in-out infinite 2.1s; }
.phone-buddy {
  position: absolute; z-index: 11; bottom: 4px; left: 22px;
  width: 96px; height: 96px;
  filter: drop-shadow(0 6px 10px rgba(0,0,0,.4));
}

/* Character scene (variant B) */
.char-scene { position: relative; width: 100%; max-width: 480px; aspect-ratio: 1 / 1; align-items: center; justify-content: center; }
.char-scene__glow {
  position: absolute; inset: 12%;
  background: radial-gradient(circle, rgba(212,175,55,0.45) 0%, rgba(212,175,55,0.08) 55%, transparent 70%);
  border-radius: 50%; animation: glowPulse 4s ease-in-out infinite;
}
.char-scene__owl { position: relative; width: 70%; animation: floatY 5s ease-in-out infinite; filter: drop-shadow(0 0 28px rgba(232,200,74,.35)); }
.char-scene__buddy { position: absolute; width: 26%; height: auto; filter: drop-shadow(0 8px 12px rgba(0,0,0,.45)); }
.char-scene__buddy--1 { left: 0; bottom: 4%; }
.char-scene__buddy--2 { right: 0; bottom: 8%; transform: scaleX(-1); }
.speech {
  position: absolute; z-index: 2;
  background: var(--white); color: var(--navy);
  font-size: .82rem; font-weight: 600; line-height: 1.35;
  padding: 10px 14px; border-radius: 16px;
  box-shadow: 0 10px 24px rgba(0,0,0,.3);
  max-width: 190px;
}
.speech::after { content: ''; position: absolute; width: 14px; height: 14px; background: inherit; transform: rotate(45deg); }
.speech--1 { top: 4%; left: 0; }
.speech--1::after { bottom: -6px; left: 28px; }
.speech--2 { top: 20%; right: -2%; background: var(--gold); }
.speech--2::after { bottom: -6px; right: 30px; }

/* ─── Trust strip ────────────────────────────────────── */
.trust-strip { background: var(--cream); border-bottom: 1px solid var(--cream-dark); padding: var(--sp-4) var(--sp-3); }
.trust-strip__inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-2);
}
.trust-item { display: flex; align-items: center; gap: 12px; justify-content: center; text-align: left; }
.trust-item__icon {
  width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px;
  background: var(--navy); color: var(--gold);
  display: grid; place-items: center; font-size: 1.3rem;
}
.trust-item strong { display: block; font-family: var(--font-display); font-size: 1.1rem; color: var(--navy); line-height: 1.2; }
.trust-item span { font-size: .82rem; color: var(--text-muted); }
@media (max-width: 900px) { .trust-strip__inner { grid-template-columns: repeat(2, 1fr); } .trust-item { justify-content: flex-start; } }
@media (max-width: 420px) {
  .trust-strip__inner { gap: 14px 10px; }
  .trust-item { gap: 8px; }
  .trust-item__icon { width: 36px; height: 36px; font-size: 1.05rem; border-radius: 10px; }
  .trust-item strong { font-size: .98rem; }
  .trust-item span { font-size: .74rem; }
}

/* ─── Feature rows ───────────────────────────────────── */
.features { background: var(--cream); }
.feature-row {
  max-width: 1100px; margin: 0 auto var(--sp-7);
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-6); align-items: center;
}
.feature-row:last-child { margin-bottom: 0; }
.feature-row--flip .feature-row__media { order: 2; }
.feature-row__kicker {
  font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 10px; display: block;
}
.feature-row__title { font-size: clamp(1.6rem, 2.8vw, 2.2rem); font-weight: 700; margin-bottom: 14px; color: var(--navy); }
.feature-row__body { font-size: 1.05rem; color: var(--text-secondary); margin-bottom: var(--sp-3); }
.check-list { display: grid; gap: 10px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; font-size: .98rem; color: var(--text-primary); }
.check-list li::before {
  content: ''; flex-shrink: 0; margin-top: 3px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--emerald) 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;
}
.feature-row__media { position: relative; display: flex; justify-content: center; align-items: center; min-height: 380px; }
.media-card {
  position: relative; width: 100%; max-width: 440px; min-height: 380px;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-medium) 100%);
  border-radius: 28px; overflow: hidden;
  box-shadow: var(--shadow-elevated);
  display: flex; align-items: center; justify-content: center; gap: 18px;
  padding: var(--sp-4) var(--sp-3);
}
.media-card::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 110%, rgba(212,175,55,.28), transparent 60%);
}
.mini-phone {
  position: relative; z-index: 1;
  width: 150px; aspect-ratio: 9 / 18.5;
  border-radius: 24px; overflow: hidden;
  border: 2px solid rgba(212,175,55,.45);
  box-shadow: 0 16px 36px rgba(0,0,0,.45);
  background: var(--navy-dark);
  flex-shrink: 0;
}
.mini-phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.mini-phone--tilt-l { transform: rotate(-5deg) translateY(10px); }
.mini-phone--tilt-r { transform: rotate(5deg) translateY(-6px); }
.media-card__buddy { position: absolute; z-index: 2; width: 88px; height: 88px; bottom: 10px; right: 16px; filter: drop-shadow(0 6px 10px rgba(0,0,0,.45)); }

/* Buddy wardrobe card */
.wardrobe { flex-direction: column; gap: var(--sp-2); }
.wardrobe__stage { position: relative; z-index: 1; display: flex; align-items: flex-end; justify-content: center; gap: 10px; }
.wardrobe__stage img { width: 104px; height: 104px; }
.wardrobe__stage img.is-main { width: 160px; height: 160px; }
.wardrobe__chips { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .78rem; font-weight: 600;
  padding: 6px 12px; border-radius: var(--radius-round);
  background: rgba(255,255,255,.08); color: var(--cream);
  border: 1px solid rgba(255,255,255,.15);
}
.chip--lock { color: var(--gold-light); border-color: rgba(212,175,55,.35); background: rgba(212,175,55,.1); }


/* Illustrated in-app mock cards (used where no real screenshot exists yet) */
.mock { position: relative; z-index: 1; width: 100%; max-width: 330px; display: flex; flex-direction: column; gap: 12px; color: var(--cream); }
.mock__label { font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-on-dark-muted); }
.mock-voice { align-items: center; text-align: center; }
.mock-voice__orb {
  width: 132px; height: 132px; border-radius: 50%;
  background: radial-gradient(circle, var(--teal) 0%, #0b6d64 60%, rgba(13,148,136,.15) 61%, transparent 72%);
  box-shadow: 0 0 0 14px rgba(13,148,136,.12), 0 0 0 28px rgba(13,148,136,.06);
  display: flex; align-items: center; justify-content: center; gap: 5px;
}
.mock-voice__orb span { width: 6px; border-radius: 4px; background: var(--white); animation: wave 1.1s ease-in-out infinite; }
.mock-voice__orb span:nth-child(1) { height: 18px; }
.mock-voice__orb span:nth-child(2) { height: 34px; animation-delay: .15s; }
.mock-voice__orb span:nth-child(3) { height: 46px; animation-delay: .3s; }
.mock-voice__orb span:nth-child(4) { height: 30px; animation-delay: .45s; }
.mock-voice__orb span:nth-child(5) { height: 16px; animation-delay: .6s; }
@keyframes wave { 0%, 100% { transform: scaleY(.55); } 50% { transform: scaleY(1); } }
.mock-bubble { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 16px; padding: 12px 14px; font-size: .88rem; line-height: 1.45; text-align: left; }
.mock-voice__btn { font-size: .8rem; font-weight: 600; padding: 9px 16px; border-radius: var(--radius-round); border: 1px solid rgba(255,255,255,.25); }
.mock-flash {
  background: linear-gradient(160deg, var(--navy-light), var(--navy-dark));
  border: 1px solid rgba(212,175,55,.35); border-radius: 18px;
  padding: 22px 18px; text-align: center; display: flex; flex-direction: column; gap: 8px;
  transform: rotate(-2deg); box-shadow: 0 14px 30px rgba(0,0,0,.35);
}
.mock-flash strong { font-family: var(--font-display); font-size: 1.25rem; color: var(--white); font-weight: 600; }
.mock-flash small { font-size: .75rem; color: var(--gold-light); }
.mock-quiz { background: var(--cream); color: var(--navy); border-radius: 18px; padding: 14px; display: flex; flex-direction: column; gap: 8px; box-shadow: 0 14px 30px rgba(0,0,0,.35); }
.mock-quiz .mock__label { color: var(--text-muted); }
.mock-opt { display: flex; justify-content: space-between; gap: 8px; font-size: .82rem; font-weight: 500; padding: 9px 12px; border-radius: 10px; border: 1.5px solid var(--emerald); background: rgba(16,185,129,.1); }
.mock-opt b { color: var(--emerald); }
.mock-opt--wrong { border-color: var(--error); background: rgba(239,68,68,.08); }
.mock-opt--wrong b { color: var(--error); }
.mock-opt--plain { border-color: var(--cream-deep); background: var(--white); }
.wardrobe__row { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 14px; }
.wardrobe__row .wardrobe__stage { flex-direction: column; align-items: center; gap: 4px; }
.wardrobe__row .wardrobe__stage img { width: 72px; height: 72px; }
.wardrobe__row .wardrobe__stage img.is-main { width: 120px; height: 120px; }

/* Badges grid */
.badge-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 100%; }
.badge-tile {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px; padding: 12px 8px; text-align: center; color: var(--cream);
}
.badge-tile__emoji { font-size: 1.6rem; display: block; margin-bottom: 4px; }
.badge-tile strong { display: block; font-family: var(--font-display); font-size: .9rem; color: var(--gold-light); font-weight: 600; }
.badge-tile small { font-size: .7rem; color: var(--text-on-dark-muted); line-height: 1.3; display: block; }
.xp-bar { position: relative; z-index: 1; width: 100%; margin-top: 4px; }
.xp-bar__label { display: flex; justify-content: space-between; font-size: .75rem; color: var(--text-on-dark-muted); margin-bottom: 6px; }
.xp-bar__track { height: 10px; background: rgba(255,255,255,.1); border-radius: 10px; overflow: hidden; }
.xp-bar__fill { height: 100%; width: 68%; background: linear-gradient(90deg, var(--gold) 0%, var(--gold-soft) 100%); border-radius: 10px; }
.stack { flex-direction: column; }

@media (max-width: 900px) {
  .feature-row { grid-template-columns: 1fr; gap: var(--sp-4); margin-bottom: var(--sp-6); }
  .feature-row--flip .feature-row__media { order: 0; }
  .feature-row__media { min-height: 0; }
}
@media (max-width: 480px) {
  .media-card { min-height: 320px; padding: var(--sp-3) var(--sp-2); gap: 10px; }
  .mini-phone { width: 122px; }
  .badge-grid { grid-template-columns: repeat(2, 1fr); }
  .wardrobe__row .wardrobe__stage img { width: 56px; height: 56px; }
  .wardrobe__row .wardrobe__stage img.is-main { width: 96px; height: 96px; }
}

/* ─── Screens carousel ───────────────────────────────── */
.screens { background: var(--navy-dark); color: var(--text-on-dark); overflow: hidden; }
.screens .section-heading { color: var(--white); }
.screens .section-sub { color: rgba(248,244,233,0.75); }
.screens__track {
  display: flex; gap: var(--sp-3);
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding: var(--sp-1) var(--sp-3) var(--sp-3);
  -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: var(--navy-light) transparent;
  max-width: 1300px; margin: 0 auto;
}
.screen-item { scroll-snap-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; flex-shrink: 0; }
.screen-item .mini-phone { width: 170px; }
.screen-item__name { font-size: .85rem; font-weight: 600; color: var(--cream); }
.screen-item__tag { font-size: .72rem; color: var(--gold-light); margin-top: -6px; }

/* ─── How it works ───────────────────────────────────── */
.how { background: var(--white); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); max-width: 1100px; margin: 0 auto; }
.step-card {
  background: var(--cream); border: 1px solid var(--cream-dark);
  border-radius: var(--radius-xl); padding: var(--sp-4) var(--sp-3);
  position: relative;
}
.step-card__num {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--navy); color: var(--gold);
  font-family: var(--font-display); font-weight: 700; font-size: 1.3rem;
  display: grid; place-items: center; margin-bottom: var(--sp-2);
}
.step-card h3 { font-size: 1.25rem; color: var(--navy); margin-bottom: 8px; }
.step-card p { color: var(--text-secondary); font-size: .95rem; }
.how__cta { display: flex; justify-content: center; margin-top: var(--sp-5); }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }

/* ─── Levels & languages ─────────────────────────────── */
.levels { background: var(--cream); }
.level-track { display: flex; gap: var(--sp-2); justify-content: center; flex-wrap: wrap; margin-bottom: var(--sp-5); }
.level-chip {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 18px 22px; min-width: 150px;
  background: var(--white); border: 1.5px solid var(--cream-deep);
  border-radius: var(--radius-xl); box-shadow: var(--shadow-card);
  transition: transform .2s, border-color .2s;
}
.level-chip:hover { transform: translateY(-3px); border-color: var(--gold); }
.level-chip__emoji { font-size: 1.6rem; }
.level-chip__name { font-family: var(--font-display); font-weight: 600; color: var(--navy); }
.level-chip__age { font-size: .78rem; color: var(--text-muted); }
.sub-heading { font-size: 1.35rem; color: var(--navy); margin-bottom: var(--sp-2); text-align: center; }
.lang-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.lang-chip {
  font-size: .88rem; font-weight: 500; color: var(--navy);
  background: var(--white); border: 1px solid var(--cream-deep);
  padding: 8px 14px; border-radius: var(--radius-round);
}
.tone-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-2); max-width: 1100px; margin: var(--sp-5) auto 0; }
.tone-card { background: var(--white); border-radius: var(--radius-lg); padding: var(--sp-3); box-shadow: var(--shadow-card); border: 1px solid var(--cream-dark); }
.tone-card h3 { font-size: 1.05rem; color: var(--navy); margin-bottom: 6px; }
.tone-card p { font-size: .88rem; color: var(--text-secondary); font-style: italic; }
@media (max-width: 900px) { .tone-row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) {
  .tone-row { grid-template-columns: 1fr; }
  .level-track { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; padding-bottom: 8px; -webkit-overflow-scrolling: touch; }
  .level-chip { min-width: 128px; flex-shrink: 0; }
}

/* ─── Social proof ───────────────────────────────────── */
.proof { background: var(--white); }
.proof__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); max-width: 1100px; margin: 0 auto; }
.review-card {
  background: var(--cream); border: 1.5px dashed var(--cream-deep);
  border-radius: var(--radius-xl); padding: var(--sp-4) var(--sp-3);
  display: flex; flex-direction: column; gap: 12px; align-items: flex-start;
}
.review-card img { width: 64px; height: 64px; }
.review-card p { color: var(--text-secondary); font-size: .95rem; }
.review-card strong { font-family: var(--font-display); color: var(--navy); font-size: 1.1rem; }
.proof__cta { margin-top: var(--sp-4); text-align: center; color: var(--text-secondary); font-size: .95rem; }
@media (max-width: 900px) { .proof__grid { grid-template-columns: 1fr; } }

/* ─── Privacy & pricing ──────────────────────────────── */
.promise { background: var(--cream); }
.promise__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); max-width: 1100px; margin: 0 auto; }
.promise-card { background: var(--white); border-radius: var(--radius-xl); padding: var(--sp-4); box-shadow: var(--shadow-card); border-top: 5px solid var(--emerald); }
.promise-card--gold { border-top-color: var(--gold); }
.promise-card h3 { font-size: 1.45rem; color: var(--navy); margin-bottom: 10px; }
.promise-card p { color: var(--text-secondary); margin-bottom: var(--sp-2); }
.promise-card .check-list { margin-bottom: var(--sp-2); }
.promise-card .check-list li { font-size: .95rem; }
.text-link { color: var(--navy); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 800px) { .promise__grid { grid-template-columns: 1fr; } .promise-card { padding: var(--sp-3); } }

/* ─── FAQ ────────────────────────────────────────────── */
.faq { background: var(--white); }
.faq__list { max-width: 800px; margin: 0 auto; display: grid; gap: 12px; text-align: left; }
.faq__item { background: var(--cream); border: 1px solid var(--cream-dark); border-radius: var(--radius-lg); }
.faq__item summary {
  list-style: none; cursor: pointer;
  padding: 18px 60px 18px 22px; position: relative;
  font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; color: var(--navy);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: '+'; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--navy); color: var(--gold);
  display: grid; place-items: center; font-size: 1.2rem; font-family: var(--font-body); line-height: 1;
}
.faq__item[open] summary::after { content: '–'; }
.faq__item p { padding: 0 22px 20px; color: var(--text-secondary); }

/* ─── Final CTA ──────────────────────────────────────── */
.final-cta {
  background:
    radial-gradient(ellipse at 50% 120%, rgba(212,175,55,0.22) 0%, transparent 60%),
    linear-gradient(135deg, var(--navy) 0%, var(--navy-medium) 100%);
  color: var(--text-on-dark);
  padding: var(--sp-7) var(--sp-3);
  text-align: center; position: relative; overflow: hidden;
}
.final-cta__owl { width: 120px; height: auto; margin: 0 auto var(--sp-3); filter: drop-shadow(0 0 24px rgba(232,200,74,.4)); }
.final-cta__heading { font-size: clamp(2rem, 4.2vw, 3.1rem); font-weight: 700; color: var(--white); margin-bottom: 14px; }
.final-cta__sub { font-size: 1.1rem; color: rgba(248,244,233,0.8); margin: 0 auto var(--sp-4); max-width: 560px; }
.final-cta .store-badges { justify-content: center; }
.final-cta__primary { display: flex; justify-content: center; margin-bottom: var(--sp-3); }
.final-cta__buddies { display: flex; justify-content: center; gap: 12px; margin-top: var(--sp-4); }
.final-cta__buddies img { width: 72px; height: 72px; }

/* ─── Sticky mobile download bar ─────────────────────── */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 998;
  display: none; align-items: center; gap: 12px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(7, 26, 46, 0.97);
  border-top: 1px solid rgba(212,175,55,.3);
  box-shadow: 0 -8px 24px rgba(0,0,0,.25);
  transform: translateY(110%); transition: transform .3s ease;
}
.sticky-cta.is-visible { transform: translateY(0); }
.sticky-cta__icon { width: 42px; height: 42px; border-radius: 10px; flex-shrink: 0; }
.sticky-cta__text { flex: 1; min-width: 0; color: var(--cream); line-height: 1.25; }
.sticky-cta__text strong { display: block; font-family: var(--font-display); font-size: 1rem; }
.sticky-cta__text span { font-size: .75rem; color: var(--text-on-dark-muted); }
.sticky-cta .cta-primary { min-height: 44px; padding: 0 18px; font-size: .95rem; }
@media (max-width: 768px) {
  .sticky-cta { display: flex; }
  body.has-sticky-cta { padding-bottom: 72px; }
}

/* ─── Hero responsive (keeps the June mobile phone-scene fixes) ─── */
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { min-height: 0; }
  .phone-scene { padding: 20px 80px; }
}
@media (max-width: 640px) {
  .hero { padding: var(--sp-4) 16px var(--sp-5); }
  .hero__title { font-size: 2.15rem; }
  .hero__sub { font-size: 1.02rem; }
  .hero__cta, .hero__cta .cta-primary { width: 100%; }
  .hero__cta .store-badges { width: 100%; }
  .hero__cta .store-badge { flex: 1 1 140px; min-width: 0; justify-content: center; padding: 0 10px; }
  .store-badge__big { font-size: 1rem; }
  .phone-scene { padding: 20px; }
  .phone-frame { width: 200px; height: 405px; border-radius: 36px; }
  .phone-pill { font-size: 0.64rem; padding: 5px 9px; }
  .phone-pill--1, .phone-pill--3 { left: 4px; }
  .phone-pill--2, .phone-pill--4 { right: 4px; }
  .phone-buddy { width: 72px; height: 72px; left: 8px; }
  .char-scene { max-width: 340px; }
  .speech { font-size: .72rem; max-width: 150px; padding: 8px 11px; }
  .section { padding: var(--sp-6) 16px; }
  .section--md { padding: var(--sp-5) 16px; }
  .trust-strip { padding: var(--sp-3) 16px; }
}
@media (max-width: 360px) {
  .phone-pill { display: none; }
}

/* ─── Legal / prose pages ────────────────────────────────── */
.legal-hero {
  background:
    radial-gradient(ellipse 50% 80% at 80% 20%, rgba(212,175,55,0.14) 0%, transparent 60%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-dark) 100%);
  padding: var(--sp-6) var(--sp-3) var(--sp-5);
  text-align: center;
}
.legal-hero__logo { width: 72px; height: 72px; margin: 0 auto var(--sp-2); border-radius: 18px; }
.legal-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700; color: var(--white);
  margin-bottom: var(--sp-2);
}
.legal-hero__meta { font-size: 0.9rem; color: rgba(248,244,233,0.72); }
.legal-body { background: var(--cream); padding: var(--sp-7) var(--sp-3); }
.legal-content { max-width: 760px; margin: 0 auto; }
.legal-content h2 {
  font-family: var(--font-display);
  font-size: 1.45rem; font-weight: 600;
  color: var(--navy);
  margin: var(--sp-5) 0 var(--sp-2);
  padding-bottom: 8px;
  border-bottom: 2px solid var(--cream-dark);
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content p { font-size: 1rem; color: var(--text-secondary); line-height: 1.75; margin-bottom: var(--sp-2); }
.legal-content a { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.legal-content a:hover { color: var(--gold-dark); }
.legal-content ul { list-style: disc; padding-left: var(--sp-4); margin-bottom: var(--sp-2); }
.legal-content ul li { font-size: 1rem; color: var(--text-secondary); line-height: 1.75; margin-bottom: 6px; }
@media (max-width: 640px) { .legal-body { padding: var(--sp-5) 16px; } }
