/* ==========================================================================
   Bol — marketing site stylesheet
   One shared stylesheet for every page. Design language mirrors the iOS app
   (Theme.swift / Components.swift): a dark, glassy "night-sky" theme with a
   warm rose brand, amber XP accent, and violet "proceed" accent, over an
   atmospheric defocused-photo background of soft colour orbs.

   Sections:
     1. Design tokens (custom properties)
     2. Reset & base elements
     3. Typography
     4. Layout primitives (container, section, grid)
     5. Atmospheric background
     6. Glass surfaces & components (cards, chips, buttons, App Store badge)
     7. Header & footer
     8. Phone mockups (recreations of real app screens)
     9. Page-specific sections (hero, features, stats, gallery, etc.)
    10. Scroll-reveal animation system
    11. Responsive breakpoints
    12. Reduced-motion & accessibility
   ========================================================================== */

/* ------------------------------------------------------------------ */
/* 1. Design tokens                                                    */
/* ------------------------------------------------------------------ */
:root {
  /* Surfaces — deep plum base from Theme.bg (#140C1E / #140A22) */
  --bg:            #120A1C;
  --bg-deep:       #0A0514;
  --surface:       rgba(255, 255, 255, 0.07);
  --surface-2:     rgba(255, 255, 255, 0.10);
  --line:          rgba(255, 255, 255, 0.14);
  --track:         rgba(255, 255, 255, 0.16);

  /* Text on dark glass */
  --ink:           #ffffff;
  --muted:         rgba(255, 255, 255, 0.66);
  --faint:         rgba(255, 255, 255, 0.42);

  /* Brand (rose) — Theme.brand / brandDark / tint */
  --brand:         #E0619B;
  --brand-dark:    #97274E;
  --brand-tint:    #E08BB4;
  --brand-soft:    rgba(224, 97, 155, 0.22);

  /* Accent gradient — Theme.brandGradient (#E0568E → #8E2F66) */
  --grad-from:     #E0568E;
  --grad-to:       #8E2F66;
  --brand-gradient: linear-gradient(135deg, #E0568E 0%, #8E2F66 100%);

  /* Amber (XP / saved) and violet (proceed / correct) */
  --amber:         #E8B84F;
  --amber-bright:  #EAC468;
  --amber-soft:    rgba(232, 184, 79, 0.20);
  --go:            #9B7DF2;
  --go-soft:       rgba(155, 125, 242, 0.22);
  --go-text:       #C9B6FF;
  --red:           #F0705E;

  /* Radii */
  --r-sm:  12px;
  --r-md:  18px;
  --r-lg:  26px;
  --r-xl:  34px;
  --r-pill: 999px;

  /* Shadows / depth */
  --shadow-card:  0 18px 50px -18px rgba(0, 0, 0, 0.55);
  --shadow-glow:  0 22px 60px -16px rgba(224, 86, 142, 0.45);
  --shadow-phone: 0 40px 90px -30px rgba(0, 0, 0, 0.75),
                  0 8px 24px -8px rgba(0, 0, 0, 0.5);

  /* Layout */
  --maxw:        1180px;
  --gutter:      clamp(1.25rem, 5vw, 3rem);

  /* Easing — refined, Apple-style */
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  /* Type — fluid scale built on clamp() */
  --fs-eyebrow: clamp(0.72rem, 0.68rem + 0.2vw, 0.82rem);
  --fs-body:    clamp(1rem, 0.96rem + 0.3vw, 1.18rem);
  --fs-lead:    clamp(1.15rem, 1.02rem + 0.7vw, 1.5rem);
  --fs-h3:      clamp(1.25rem, 1.1rem + 0.9vw, 1.7rem);
  --fs-h2:      clamp(1.9rem, 1.4rem + 2.4vw, 3.2rem);
  --fs-h1:      clamp(2.8rem, 1.9rem + 4.6vw, 5.6rem);
  --fs-display: clamp(3.4rem, 2rem + 7vw, 8rem);

  /* Type — "Plus Jakarta Sans" (loaded via Google Fonts in each page <head>),
     with a graceful system fallback if offline. Distinct, modern, premium —
     and a clear step away from the default system font. */
  --font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont,
          "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ------------------------------------------------------------------ */
/* 2. Reset & base                                                     */
/* ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

* { margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Anchor links land below the fixed header */
  scroll-padding-top: 96px;
}

body {
  font-family: var(--font);
  font-size: var(--fs-body);
  font-weight: 500;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* Guard against accidental horizontal scroll. `clip` (not `hidden`) so we
     don't turn <body> into a scroll container, which would break the
     position: sticky used by the scroll-driven showcase. `hidden` is a
     fallback for engines without `clip`. */
  overflow-x: hidden;
  overflow-x: clip;
  min-height: 100vh;
}

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

a { color: inherit; text-decoration: none; }

button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

ul { list-style: none; }

:focus-visible {
  outline: 2px solid var(--brand-tint);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--brand); color: #fff; }

/* ------------------------------------------------------------------ */
/* 3. Typography                                                       */
/* ------------------------------------------------------------------ */
h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;   /* tighten the wider Jakarta forms for big headlines */
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); letter-spacing: -0.015em; }

p { color: var(--muted); }

.eyebrow {
  display: inline-block;
  font-size: var(--fs-eyebrow);
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-tint);
  margin-bottom: 1.1rem;
}

.lead {
  font-size: var(--fs-lead);
  line-height: 1.45;
  color: var(--muted);
  font-weight: 500;
}

.text-gradient {
  background: linear-gradient(115deg, #FF9ECE 0%, #F274B2 45%, #D8458C 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.balance { text-wrap: balance; }

/* ------------------------------------------------------------------ */
/* 4. Layout primitives                                                */
/* ------------------------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  position: relative;
  padding-block: clamp(4.5rem, 3rem + 8vw, 9rem);
}

.section--tight { padding-block: clamp(3rem, 2rem + 5vw, 6rem); }

.section-head {
  max-width: 46rem;
  margin-bottom: clamp(2.5rem, 1.5rem + 4vw, 4.5rem);
}

.section-head.center { margin-inline: auto; text-align: center; }

.grid { display: grid; gap: clamp(1.1rem, 0.8rem + 1.2vw, 1.75rem); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ------------------------------------------------------------------ */
/* 5. Atmospheric background (recreation of GlassBg)                   */
/* ------------------------------------------------------------------ */
.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--bg-deep);
  overflow: hidden;
  pointer-events: none;
}

/* Soft, blurred colour orbs — the "defocused photograph" the glass refracts. */
.atmosphere::before {
  content: "";
  position: absolute;
  inset: -10%;
  background:
    radial-gradient(38vw 38vw at 8% 2%,  rgba(240, 106, 166, 0.78), transparent 60%),
    radial-gradient(26vw 26vw at 70% 6%, rgba(249, 182, 214, 0.50), transparent 60%),
    radial-gradient(40vw 40vw at 96% 38%, rgba(138, 82, 230, 0.62), transparent 62%),
    radial-gradient(36vw 36vw at 18% 44%, rgba(180, 58, 120, 0.55), transparent 62%),
    radial-gradient(38vw 38vw at 86% 76%, rgba(106, 60, 196, 0.55), transparent 62%),
    radial-gradient(36vw 36vw at 10% 90%, rgba(192, 58, 110, 0.55), transparent 62%),
    radial-gradient(30vw 30vw at 50% 62%, rgba(224, 86, 142, 0.42), transparent 60%);
  filter: blur(56px);
}

/* Vignette to keep cards & text legible over the colour. */
.atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 120% at 50% 50%, transparent 42%, rgba(10, 5, 20, 0.55) 100%),
    linear-gradient(180deg, rgba(10, 5, 20, 0.30) 0%, transparent 28%, transparent 72%, rgba(10, 5, 20, 0.5) 100%);
}

/* ------------------------------------------------------------------ */
/* 6. Glass surfaces & components                                      */
/* ------------------------------------------------------------------ */
.glass {
  background: var(--surface);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}

.card {
  background: var(--surface);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(1.5rem, 1.1rem + 1.4vw, 2.25rem);
  box-shadow: var(--shadow-card);
  transition: transform 0.5s var(--ease-out), border-color 0.5s var(--ease-out),
              box-shadow 0.5s var(--ease-out);
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.24);
}

/* Chip / pill */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  padding: 0.45em 0.9em;
  border-radius: var(--r-pill);
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
}
.chip svg { width: 1em; height: 1em; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  min-height: 52px;
  padding: 0 1.6rem;
  border-radius: var(--r-sm);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.01em;
  transition: transform 0.25s var(--ease-out), box-shadow 0.35s var(--ease-out),
              background 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
  will-change: transform;
}
.btn:active { transform: scale(0.97); }

.btn--primary {
  background: var(--brand-gradient);
  color: #fff;
  box-shadow: var(--shadow-glow);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 26px 70px -14px rgba(224, 86, 142, 0.6); }

.btn--ghost {
  background: var(--surface);
  border: 1.5px solid var(--line);
  color: var(--ink);
}
.btn--ghost:hover { border-color: var(--brand); color: var(--brand-tint); }

/* --- App Store badge (styled like the official badge) --- */
.appstore-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 1.25rem;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 14px;
  color: #fff;
  transition: transform 0.25s var(--ease-out), box-shadow 0.35s var(--ease-out), border-color 0.3s;
  box-shadow: 0 12px 36px -12px rgba(0, 0, 0, 0.7);
}
.appstore-badge:hover { transform: translateY(-2px); border-color: rgba(255, 255, 255, 0.55); }
.appstore-badge:active { transform: scale(0.97); }
.appstore-badge svg { width: 26px; height: 26px; flex: none; }
.appstore-badge .as-text { display: flex; flex-direction: column; line-height: 1.05; text-align: left; }
.appstore-badge .as-text small { font-size: 0.62rem; font-weight: 500; letter-spacing: 0.02em; opacity: 0.9; }
.appstore-badge .as-text span { font-size: 1.22rem; font-weight: 600; letter-spacing: -0.01em; }

/* ------------------------------------------------------------------ */
/* 7. Header & footer                                                  */
/* ------------------------------------------------------------------ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background 0.4s var(--ease-out), border-color 0.4s var(--ease-out),
              backdrop-filter 0.4s var(--ease-out);
  border-bottom: 1px solid transparent;
}
/* JS toggles .is-scrolled once the user moves past the hero top. */
.site-header.is-scrolled {
  background: rgba(18, 10, 28, 0.72);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--line);
}

.site-header .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
}
.brand img { width: 32px; height: 32px; border-radius: 9px; box-shadow: 0 4px 14px -4px rgba(224, 86, 142, 0.6); }
.brand span {
  background: linear-gradient(90deg, #FF9ECE 0%, #F274B2 45%, #E0589C 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-weight: 800; letter-spacing: -0.03em;
}

.nav { display: flex; align-items: center; gap: 2rem; }
.nav a { font-size: 0.95rem; font-weight: 600; color: var(--muted); transition: color 0.25s; }
.nav a:hover { color: var(--ink); }
.nav-links { display: flex; gap: 1.8rem; }

.site-footer {
  position: relative;
  border-top: 1px solid var(--line);
  padding-block: clamp(3rem, 2rem + 3vw, 4.5rem);
  margin-top: 2rem;
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2.5rem;
}
.footer-brand { max-width: 22rem; }
.footer-brand p { font-size: 0.92rem; margin-top: 0.9rem; }
.footer-cols { display: flex; flex-wrap: wrap; gap: clamp(2.5rem, 5vw, 5rem); }
.footer-col h4 { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); margin-bottom: 1rem; font-weight: 800; }
.footer-col a { display: block; color: var(--muted); font-size: 0.95rem; padding: 0.32rem 0; transition: color 0.25s; }
.footer-col a:hover { color: var(--ink); }
.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--faint);
}

/* ------------------------------------------------------------------ */
/* 8. Phone mockups (recreations of the real app screens)              */
/* ------------------------------------------------------------------ */
.phone {
  position: relative;
  width: 300px;
  aspect-ratio: 300 / 620;
  border-radius: 46px;
  padding: 11px;
  background: linear-gradient(160deg, #2a2336, #0f0a17);
  box-shadow: var(--shadow-phone);
  border: 1px solid rgba(255, 255, 255, 0.12);
  flex: none;
}
/* Outer titanium-style rim highlight */
.phone::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 46px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  pointer-events: none;
}
.phone__screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 36px;
  overflow: hidden;
  background: var(--bg-deep);
  isolation: isolate;
}
/* Per-screen atmospheric backdrop so the glass app UI reads correctly. */
.phone__screen::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(70% 50% at 12% 0%, rgba(240, 106, 166, 0.6), transparent 60%),
    radial-gradient(70% 50% at 100% 30%, rgba(138, 82, 230, 0.5), transparent 60%),
    radial-gradient(60% 50% at 50% 100%, rgba(192, 58, 110, 0.5), transparent 60%);
  filter: blur(22px);
  z-index: 0;
}
/* Dynamic-island style pill */
.phone__island {
  position: absolute;
  top: 9px;
  left: 50%;
  transform: translateX(-50%);
  width: 86px;
  height: 24px;
  background: #000;
  border-radius: 999px;
  z-index: 5;
}
.phone__ui {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 42px 14px 16px;
  font-size: 11px;
  overflow: hidden;
}

/* Mini glass card inside a phone screen */
.m-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  padding: 11px 12px;
}
.m-row { display: flex; align-items: center; gap: 9px; }
.m-icon {
  width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center; flex: none;
  background: var(--brand-soft); color: var(--brand-tint);
}
.m-icon svg { width: 17px; height: 17px; }
.m-title { font-weight: 700; font-size: 11.5px; color: #fff; }
.m-sub { font-size: 9.5px; color: var(--muted); }
.m-chev { margin-left: auto; color: var(--faint); }

/* Home hero header (rose gradient with rounded bottom) */
.m-hero {
  margin: -42px -14px 0;
  padding: 46px 16px 18px;
  background: var(--brand-gradient);
  border-radius: 0 0 24px 24px;
}
.m-hero__top { display: flex; align-items: center; justify-content: space-between; }
.m-hero__greet { font-weight: 800; font-size: 15px; color: #fff; }
.m-ring { width: 42px; height: 42px; flex: none; }
.m-chips { display: flex; gap: 6px; margin-top: 12px; }
.m-chip {
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff; font-weight: 700; font-size: 9.5px;
  padding: 5px 8px; border-radius: 9px;
}
.m-chip svg { width: 10px; height: 10px; }

.m-stack { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.m-card--primary {
  background: var(--brand-gradient);
  border: none;
}
.m-card--primary .m-sub { color: rgba(255, 255, 255, 0.85); }
.m-card--primary .m-icon { background: rgba(255, 255, 255, 0.2); color: #fff; }

.m-label { font-size: 9px; font-weight: 800; letter-spacing: 0.08em; color: var(--faint); text-transform: uppercase; }

/* Chand greeting bubble */
.m-chand { display: flex; align-items: center; gap: 9px; margin-top: 4px; }
.m-chand .moon { width: 34px; height: 34px; flex: none; }
.m-chand .bubble { flex: 1; }

/* Learn path nodes */
.m-path { display: flex; flex-direction: column; align-items: center; gap: 0; padding-top: 6px; }
.m-node {
  width: 50px; height: 50px; border-radius: 50%;
  display: grid; place-items: center; position: relative;
}
.m-node--done { background: var(--brand); color: #fff; box-shadow: 0 6px 16px -6px rgba(224, 86, 142, 0.7); }
.m-node--active { background: rgba(255,255,255,0.08); border: 3px solid var(--brand); color: var(--brand-tint); }
.m-node--lock { background: rgba(255,255,255,0.06); color: var(--faint); }
.m-node svg { width: 20px; height: 20px; }
.m-connector { width: 3px; height: 16px; background: var(--line); }
.m-connector--done { background: rgba(224, 97, 155, 0.5); }
.m-start {
  position: absolute; top: -16px; left: 50%; transform: translateX(-50%);
  background: var(--brand); color: #fff; font-size: 7.5px; font-weight: 800;
  padding: 2px 7px; border-radius: 6px; letter-spacing: 0.05em; white-space: nowrap;
}

/* Phrase rows */
.m-phrase { display: flex; align-items: center; gap: 8px; }
.m-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); flex: none; }
.m-phrase .de { font-weight: 700; font-size: 11px; color: #fff; }
.m-phrase .ur { font-size: 10px; color: var(--brand-tint); font-weight: 600; }
.m-spk { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center;
  background: rgba(255,255,255,0.08); border: 1px solid var(--line); color: var(--muted); margin-left: auto; }
.m-spk svg { width: 12px; height: 12px; }

/* Lesson screen */
.m-progress { height: 7px; border-radius: 999px; background: var(--track); overflow: hidden; }
.m-progress > i { display: block; height: 100%; border-radius: 999px; background: var(--brand); }
.m-prompt { font-weight: 800; font-size: 14px; color: #fff; line-height: 1.3; }
.m-option {
  border-radius: 12px; padding: 11px 12px; font-weight: 700; font-size: 11.5px; color: #fff;
  background: rgba(255,255,255,0.08); border: 1.5px solid var(--line);
}
.m-option--ok { background: var(--go-soft); border-color: var(--go); color: var(--go-text); }
.m-option--sel { background: var(--brand-soft); border-color: var(--brand); }

/* Profile stat cells */
.m-stat { text-align: left; }
.m-stat b { font-size: 18px; font-weight: 800; display: block; line-height: 1; }
.m-stat span { font-size: 9px; color: var(--muted); }
.m-badge { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; }
.m-badge svg { width: 15px; height: 15px; }
.m-badge--on { background: var(--brand); color: #fff; }
.m-badge--off { background: var(--track); color: var(--faint); }

/* ------------------------------------------------------------------ */
/* 9. Page sections                                                    */
/* ------------------------------------------------------------------ */

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 96px;
  padding-bottom: clamp(3rem, 2rem + 4vw, 5rem);
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(2rem, 1rem + 4vw, 5rem);
  width: 100%;
}
.hero__title {
  font-size: clamp(2.6rem, 1.3rem + 4.8vw, 5.4rem);
  line-height: 0.98;
  margin-bottom: 1.4rem;
  overflow-wrap: break-word;   /* never let a long word force horizontal scroll */
  /* One smooth gradient across the whole headline (top white → brand pink), so every
     word participates — no hard white-to-pink break mid-sentence. */
  background: linear-gradient(180deg, #FFFFFF 0%, #FDD9EA 50%, #F274B2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__phone-wrap {
  display: flex;
  justify-content: center;
  position: relative;
}
/* Soft glow behind the hero phone */
.hero__phone-wrap::before {
  content: "";
  position: absolute;
  width: 120%;
  height: 80%;
  top: 10%;
  background: radial-gradient(closest-side, rgba(224, 86, 142, 0.45), transparent 75%);
  filter: blur(40px);
  z-index: -1;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin-top: 1.8rem; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 2rem; }

/* Hero learning-plan picker — the main hook: pre-made trajectories with honest minutes/day. */
.hero__plans { list-style: none; display: grid; gap: 0.55rem; margin-top: 1.6rem; }
.plan-pick {
  display: flex; align-items: center; gap: 0.8rem;
  padding: 0.65rem 0.85rem;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.plan-pick__icon {
  flex: none; width: 38px; height: 38px; border-radius: 11px;
  display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand-tint);
}
.plan-pick__icon svg { width: 19px; height: 19px; }
.plan-pick__txt { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.plan-pick__txt b { font-weight: 700; color: var(--ink); font-size: 0.98rem; }
.plan-pick__txt small { color: var(--muted); font-size: 0.82rem; font-weight: 600; }
.plan-pick__min {
  margin-left: auto; flex: none;
  font-weight: 800; color: var(--brand-tint); font-size: 0.88rem; white-space: nowrap;
}
.plan-pick--free .plan-pick__icon { background: rgba(255, 255, 255, 0.08); color: var(--muted); }
.hero__trust { color: var(--faint); font-size: 0.85rem; font-weight: 600; margin-top: 1.1rem; }
.hero__plan-note { color: var(--faint); font-size: 0.82rem; font-weight: 600; margin-top: 0.7rem; }

/* --- Feature cards --- */
.feature .feature__icon {
  width: 56px; height: 56px; border-radius: 16px;
  display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand-tint);
  margin-bottom: 1.4rem;
}
.feature__icon svg { width: 28px; height: 28px; }
.feature h3 { margin-bottom: 0.6rem; }
.feature p { font-size: 0.98rem; }
.feature--amber .feature__icon { background: var(--amber-soft); color: var(--amber-bright); }
.feature--go .feature__icon { background: var(--go-soft); color: var(--go-text); }

/* --- Angle / split section --- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 1rem + 4vw, 5rem);
  align-items: center;
}
.angle-list { margin-top: 1.8rem; display: grid; gap: 1.1rem; }
.angle-list li { display: flex; gap: 0.9rem; align-items: flex-start; }
.angle-list .tick {
  flex: none; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; margin-top: 2px;
  background: var(--brand-soft); color: var(--brand-tint);
}
.angle-list .tick svg { width: 14px; height: 14px; }
.angle-list strong { color: var(--ink); font-weight: 700; }
.angle-list span { color: var(--muted); }

/* word-pair illustration card used in the angle section */
.pair-card { display: grid; gap: 0.9rem; }
.pair {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem 1.2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
}
.pair .de { font-weight: 700; }
.pair .ur { color: var(--brand-tint); font-weight: 700; direction: rtl; font-size: 1.15rem; }
.pair .latin { color: var(--muted); font-size: 0.88rem; }

/* --- Stats / course depth --- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 0.8rem + 2vw, 2.5rem);
  text-align: center;
}
.stat .num {
  font-size: clamp(3rem, 1.8rem + 5vw, 6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  background: linear-gradient(120deg, #fff, var(--brand-tint));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat .label { color: var(--muted); font-weight: 600; margin-top: 0.5rem; }

/* --- Gallery --- */
.gallery {
  display: flex;
  gap: clamp(1.25rem, 0.5rem + 2.5vw, 2.5rem);
  justify-content: center;
  flex-wrap: wrap;
  align-items: flex-start;
}
.gallery .phone { width: clamp(220px, 26vw, 280px); }
.gallery figure { display: flex; flex-direction: column; align-items: center; gap: 1.1rem; }
.gallery figcaption { color: var(--muted); font-weight: 600; font-size: 0.95rem; text-align: center; }

/* --- Showcase: Apple-style scroll-driven scaling gallery ---
   DEFAULT (no JS / reduced motion): a clean, responsive row of phone screens —
   always fully visible and usable. When JS runs with motion allowed, it adds
   `.is-dynamic`, which turns this into a tall scroll "track" with a sticky,
   pinned stage; JS then sets --scale on the phone stack (it grows) and
   cross-fades the app screens while the caption changes. */
.showcase { position: relative; }

/* -- Default static row -- */
.showcase__track { height: auto; }
.showcase__pin { padding-block: 1rem; }
.showcase__captions { display: none; }
.showcase__phones {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(1.5rem, 4vw, 2.5rem);
}
.showcase__phone { display: grid; place-items: center; }
.showcase__phone .phone { width: clamp(220px, 26vw, 280px); }
.showcase__phone figcaption {
  display: block;
  text-align: center;
  margin-top: 1.1rem;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
}

/* -- Dynamic: pinned scaling + cross-fade (added by JS) -- */
.showcase.is-dynamic .showcase__track { height: 320vh; }  /* scroll distance driving the effect */
.showcase.is-dynamic .showcase__pin {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding-block: 0;
}

/* Rotating captions, anchored near the top of the stage. */
.showcase.is-dynamic .showcase__captions {
  display: block;
  position: absolute;
  top: clamp(3.5rem, 11vh, 7.5rem);
  left: 0; right: 0;
  text-align: center;
  padding-inline: var(--gutter);
  pointer-events: none;
}
.showcase.is-dynamic .showcase__caption {
  position: absolute;
  left: 0; right: 0;
  opacity: 0;
  will-change: opacity, transform;
}
.showcase.is-dynamic .showcase__caption .eyebrow { margin-bottom: 0.5rem; }
.showcase.is-dynamic .showcase__caption h3 { font-size: var(--fs-h3); margin-bottom: 0.4rem; }
.showcase.is-dynamic .showcase__caption p { color: var(--muted); max-width: 26rem; margin-inline: auto; }

/* The phone stack — sized by height so it always fits the viewport, then scaled. */
.showcase.is-dynamic .showcase__phones {
  position: relative;
  display: block;
  width: auto;
  height: clamp(360px, 54vh, 560px);
  aspect-ratio: 300 / 620;
  margin: 6vh auto 0;                           /* centred, just below the caption */
  gap: 0;
  transform: scale(var(--scale, 0.95));
  transform-origin: center 56%;
  will-change: transform;
  filter: drop-shadow(0 50px 90px rgba(0, 0, 0, 0.55));
}
.showcase.is-dynamic .showcase__phone {
  position: absolute;
  inset: 0;
  place-items: center;
  opacity: 0;                                   /* JS cross-fades these */
  will-change: opacity, transform;
}
.showcase.is-dynamic .showcase__phone .phone {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
}
.showcase.is-dynamic .showcase__phone figcaption { display: none; }

/* --- Testimonials --- */
.quote { display: flex; flex-direction: column; gap: 1.25rem; height: 100%; }
.quote__stars { display: flex; gap: 3px; color: var(--amber); }
.quote__stars svg { width: 18px; height: 18px; }
.quote blockquote { font-size: 1.08rem; color: var(--ink); line-height: 1.5; font-weight: 500; }
.quote__by { display: flex; align-items: center; gap: 0.8rem; margin-top: auto; }
.quote__avatar {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800;
  background: var(--brand-soft); color: var(--brand-tint);
}
.quote__name { font-weight: 700; font-size: 0.95rem; }
.quote__role { color: var(--faint); font-size: 0.85rem; }
.placeholder-note {
  text-align: center; margin-top: 2.5rem; color: var(--faint);
  font-size: 0.85rem; font-style: italic;
}

/* --- Final CTA --- */
.cta-band {
  text-align: center;
  padding: clamp(3rem, 2rem + 5vw, 6rem) clamp(1.5rem, 1rem + 3vw, 4rem);
  border-radius: var(--r-xl);
  background:
    radial-gradient(120% 140% at 50% 0%, rgba(224, 86, 142, 0.35), transparent 60%),
    var(--surface);
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-card);
}
.cta-band h2 { margin-bottom: 1rem; }
.cta-band .lead { margin-inline: auto; max-width: 34rem; }
.cta-band .hero__cta { justify-content: center; }

/* ------------------------------------------------------------------ */
/* Sub-page (privacy / support / coming-soon) helpers                  */
/* ------------------------------------------------------------------ */
.page-top { padding-top: clamp(8rem, 6rem + 6vw, 11rem); }

/* Language toggle */
.lang-toggle {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  margin-bottom: 2.5rem;
}
.lang-toggle button {
  padding: 0.5rem 1.2rem;
  border-radius: var(--r-pill);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--muted);
  transition: background 0.3s var(--ease-out), color 0.3s var(--ease-out);
}
.lang-toggle button.is-active { background: var(--brand-gradient); color: #fff; }

/* Long-form prose (privacy / support content) */
.prose { max-width: 48rem; }
.prose h2 { font-size: var(--fs-h3); margin-top: 2.8rem; margin-bottom: 0.9rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.15rem; margin-top: 1.8rem; margin-bottom: 0.5rem; }
.prose p, .prose li { color: var(--muted); margin-bottom: 0.9rem; }
.prose ul { display: grid; gap: 0.5rem; margin: 0 0 1.2rem; padding-left: 0; }
.prose ul li { position: relative; padding-left: 1.4rem; }
.prose ul li::before {
  content: ""; position: absolute; left: 0; top: 0.65em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--brand);
}
.prose strong { color: var(--ink); }
.prose a { color: var(--brand-tint); text-decoration: underline; text-underline-offset: 3px; }
.updated { color: var(--faint); font-size: 0.9rem; margin-top: 0.5rem; }

/* Hidden language panel */
[data-lang-panel] { display: none; }
[data-lang-panel].is-active { display: block; }

/* FAQ accordion */
.faq { max-width: 48rem; display: grid; gap: 0.9rem; }
.faq__item { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); overflow: hidden; }
.faq__q {
  width: 100%; text-align: left; display: flex; align-items: center; gap: 1rem;
  padding: 1.15rem 1.35rem; font-weight: 700; font-size: 1.02rem;
}
.faq__q .mark { margin-left: auto; flex: none; transition: transform 0.35s var(--ease-out); color: var(--brand-tint); }
.faq__item.is-open .faq__q .mark { transform: rotate(45deg); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height 0.45s var(--ease-out); }
.faq__a-inner { padding: 0 1.35rem 1.25rem; color: var(--muted); }
.faq__item.is-open .faq__a { max-height: 320px; }

/* Email capture (visual only) */
.capture {
  display: flex;
  gap: 0.6rem;
  max-width: 30rem;
  margin-top: 2rem;
}
.capture input {
  flex: 1;
  min-width: 0;
  min-height: 52px;
  padding: 0 1.1rem;
  border-radius: var(--r-sm);
  background: var(--surface);
  border: 1.5px solid var(--line);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  transition: border-color 0.3s;
}
.capture input::placeholder { color: var(--faint); }
.capture input:focus { outline: none; border-color: var(--brand); }
.capture .btn { flex: none; }
.capture-note { color: var(--faint); font-size: 0.82rem; margin-top: 0.85rem; }
.capture-ok { color: var(--go-text); font-weight: 600; margin-top: 0.85rem; min-height: 1.2em; }

/* coming-soon centred layout */
.soon {
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 7rem var(--gutter) 4rem;
}
.soon__inner { max-width: 38rem; }
.soon__icon {
  width: 96px; height: 96px; margin: 0 auto 2rem;
  border-radius: 24px; box-shadow: var(--shadow-glow);
}
.contact-card { max-width: 34rem; }
.contact-card a { color: var(--brand-tint); font-weight: 700; }

/* ------------------------------------------------------------------ */
/* 10. Scroll-reveal animation system                                  */
/* ------------------------------------------------------------------ */
/* Initial hidden state applies ONLY when JS is active (html.js). Without JS the
   content is shown normally — see the inline no-js→js swap in each page <head>. */
.js .reveal {
  opacity: 0;
  transform: translateY(34px) scale(0.97);
  filter: blur(8px);
  transition:
    opacity 0.9s var(--ease-out),
    transform 0.9s var(--ease-out),
    filter 0.9s var(--ease-out);
  will-change: opacity, transform, filter;
}
/* Variants */
.js .reveal--left  { transform: translateX(-44px); }
.js .reveal--right { transform: translateX(44px); }
.js .reveal--scale { transform: scale(0.9); }

.reveal.is-visible {
  opacity: 1;
  transform: none;
  filter: blur(0);
}

/* Stagger children: set --i on each child for incremental delay */
.stagger > * { transition-delay: calc(var(--i, 0) * 90ms); }

/* Subtle continuous float for the hero phone (paused for reduced motion) */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-14px); }
}
.floaty { animation: float 6s var(--ease-in-out) infinite; }

/* ------------------------------------------------------------------ */
/* 11. Responsive                                                      */
/* ------------------------------------------------------------------ */
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; text-align: center; gap: 3rem; }
  .hero__title { font-size: clamp(2.4rem, 7vw, 3.8rem); }
  .hero__copy { max-width: 34rem; margin-inline: auto; }
  .hero__cta, .hero__meta { justify-content: center; }
  .hero { min-height: auto; padding-top: 120px; }
  .split { grid-template-columns: 1fr; }
  .split .order-first { order: -1; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }   /* keep header light on tablet/mobile */
}

@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-grid { flex-direction: column; gap: 2.5rem; }
  .capture { flex-direction: column; }
  .capture .btn { width: 100%; }
  .hero__title { font-size: clamp(2.1rem, 8.5vw, 3rem); }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .appstore-badge { width: 100%; justify-content: center; }

  /* Compact App Store badge in the fixed header so it never overflows. */
  .site-header .appstore-badge { padding: 0.5rem 0.85rem; gap: 0.5rem; }
  .site-header .appstore-badge svg { width: 22px; height: 22px; }
  .site-header .appstore-badge .as-text span { font-size: 1.02rem; }
  .brand { font-size: 1.15rem; }

  /* On narrow screens, reveal only vertically — a horizontal slide-in would
     briefly extend content past the viewport edge. Keeps it bulletproof. */
  .js .reveal--left,
  .js .reveal--right { transform: translateY(30px) scale(0.97); }
}

/* Larger tablets: 3-up features stay, gallery wraps cleanly already. */
@media (min-width: 961px) {
  .nav-cta-mobile { display: none; }
}

/* ------------------------------------------------------------------ */
/* 12. Reduced motion & accessibility                                  */
/* ------------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
  .floaty { animation: none !important; }
}

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

.skip-link {
  position: absolute;
  left: 1rem; top: -3rem;
  background: var(--brand);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 0 0 10px 10px;
  z-index: 200;
  transition: top 0.25s var(--ease-out);
}
.skip-link:focus { top: 0; }

/* ------------------------------------------------------------------ */
/* 13. Rehaul components (languages, steps, use-cases, pricing)        */
/* ------------------------------------------------------------------ */
/* Audio button in the angle pair card (plays a real native-voice clip) */
.pair-spk {
  flex: none;
  width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand-tint);
  border: 0; padding: 0; margin: 0; cursor: pointer; font: inherit;
  -webkit-appearance: none; appearance: none;
  transition: transform 0.2s var(--ease-out), background 0.25s var(--ease-out), color 0.25s var(--ease-out);
}
.pair-spk:hover { background: var(--brand-tint); color: #fff; }
.pair-spk:active { transform: scale(0.92); }
.pair-spk.is-playing { background: var(--brand-tint); color: #fff; animation: spk-pulse 0.9s var(--ease-out) infinite; }
.pair-spk svg { width: 16px; height: 16px; }

@keyframes spk-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.12); }
}
@media (prefers-reduced-motion: reduce) {
  .pair-spk, .pair-spk.is-playing { transition: none; animation: none; }
}

/* Soft level / beta pills */
.pill-soft {
  display: inline-block;
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.3em 0.7em; border-radius: var(--r-pill);
  background: var(--brand-soft); color: var(--brand-tint);
}
.pill-soft--beta { background: var(--amber-soft); color: var(--amber-bright); }

/* Language cards */
.lang-card { display: flex; flex-direction: column; align-items: flex-start; gap: 0.7rem; }
.lang-card .flag { font-size: 2.4rem; line-height: 1; }
.lang-card h3 { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.lang-card p { font-size: 0.98rem; margin-top: 0.2rem; }

/* How-it-works steps */
.step__n {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--brand-gradient); color: #fff;
  font-weight: 800; font-size: 1.1rem;
  margin-bottom: 1.2rem; box-shadow: var(--shadow-glow);
}
.step h3 { margin-bottom: 0.5rem; }
.step p { font-size: 0.98rem; }

/* Use-case cards */
.usecase__emoji { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--brand-soft); color: var(--brand-tint); margin-bottom: 1rem; }
.usecase__emoji svg { width: 23px; height: 23px; }
.usecase h3 { margin-bottom: 0.5rem; font-size: 1.15rem; }
.usecase p { font-size: 0.95rem; }

/* Pricing */
.price-card { text-align: center; max-width: 42rem; margin-inline: auto; }
.price-tag {
  font-size: clamp(2rem, 1.5rem + 2.5vw, 3rem); font-weight: 800; letter-spacing: -0.03em;
  margin-top: 0.4rem; line-height: 1.1;
  background: linear-gradient(120deg, #fff, var(--brand-tint));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.price-tag span {
  font-size: 1rem; font-weight: 700; margin-left: 0.4rem;
  color: var(--muted); -webkit-text-fill-color: var(--muted);
}
.price-list { max-width: 28rem; margin: 1.6rem auto 0.5rem; text-align: left; }
.price-list li { color: var(--muted); }
