/* VocaPal — landing. Blue-led palette, system fonts only (no external fonts/CDNs). */
:root {
  --bg: #f3f5f9;
  --bg-deep: #e8ecf4;
  --surface: #ffffff;
  --card: #ffffff;
  --ink: #0f172a;
  --muted: #4f5a72;
  --brand: #2049c7;
  --brand-2: #1a3aa3;
  --brand-ink: #0d1b4d;
  --brand-soft: #e3e9fb;
  --sky: #9fb9ff;
  --coral: #ff8a6a;
  --coral-soft: #ffe7df;
  --sun: #ffb020;
  --sun-soft: #fff3d6;
  --sun-ink: #7a4d00;
  --ok: #157a52;
  --ok-soft: #e1f4ea;
  --night: #121521;
  --line: rgba(15, 23, 42, 0.1);
  --line-strong: rgba(15, 23, 42, 0.18);
  --shadow: 0 24px 50px -32px rgba(16, 37, 110, 0.45);
  --radius-lg: 28px;
  --radius: 20px;
  --font-ar: "SF Arabic", "Geeza Pro", "Noto Naskh Arabic", "Segoe UI", Tahoma, sans-serif;
  --font-latin: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --section-gap: clamp(72px, 9vw, 128px);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-latin), var(--font-ar);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
[lang="ar"] body, body:lang(ar) { font-family: var(--font-ar); }

::selection { background: var(--brand-soft); color: var(--brand-ink); }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
img, svg { max-width: 100%; }

.wrap { width: min(1200px, 100%); margin-inline: auto; padding-inline: clamp(20px, 5vw, 48px); }

.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: fixed; inset-block-start: 10px; inset-inline-start: 10px; z-index: 100;
  padding: 10px 16px; border-radius: 999px; background: var(--brand); color: #fff;
  text-decoration: none; transform: translateY(-180%); transition: transform 0.2s ease;
}
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 6px; }

/* Header */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 84px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 34px; height: 34px; color: var(--brand); flex: none; }
.brand-word { font-family: var(--font-latin); font-size: 1.28rem; font-weight: 800; letter-spacing: -0.02em; }
.brand-word b { font-weight: 800; color: var(--brand); margin-inline-start: 0.22em; }
.main-nav { display: flex; gap: clamp(16px, 2.4vw, 34px); }
.main-nav a { text-decoration: none; color: #2b3348; font-size: 0.98rem; padding: 6px 2px; }
.main-nav a:hover { color: var(--brand); }

.btn-pill, .btn.btn-pill {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 40px; padding: 8px 20px; border-radius: 999px;
  background: var(--brand); color: #fff; font-weight: 700; font-size: 0.95rem; text-decoration: none;
  box-shadow: none; border: 0; transition: background-color 0.18s ease;
}
.btn-pill:hover { background: var(--brand-2); }

/* Shared buttons (demo, forms) */
.hero-actions, .summary-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 12px 24px; border: 1px solid transparent; border-radius: 999px;
  background: transparent; color: var(--ink); font-family: inherit; font-size: 0.98rem; font-weight: 700;
  line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-2); }
.btn-ghost { border-color: var(--line-strong); background: var(--surface); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-small { min-height: 38px; padding: 8px 16px; font-size: 0.86rem; }
.btn-wide { width: 100%; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

/* Store-style dark buttons */
.store-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.store-row-start { justify-content: flex-start; }
.btn-store {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 52px; padding: 8px 20px; border-radius: 10px;
  background: var(--night); color: #fff; text-decoration: none; font-weight: 700; font-size: 1rem;
  border: 1px solid #000; transition: transform 0.18s ease, background-color 0.18s ease;
}
.btn-store:hover { transform: translateY(-1px); background: #1d2233; }
.btn-store svg { width: 24px; height: 24px; flex: none; }
.btn-store span { display: grid; line-height: 1.15; text-align: start; }
.btn-store small { font-size: 0.7rem; font-weight: 500; opacity: 0.78; }
.btn-store-light { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-store-light:hover { background: var(--surface); border-color: var(--brand); }

/* Hero */
.hero {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding-block: clamp(28px, 4vw, 40px) clamp(80px, 10vw, 140px);
}
.hero-mascot { position: relative; width: clamp(150px, 16vw, 200px); margin-bottom: 4px; animation: float-in 0.8s cubic-bezier(.2,.8,.2,1) both; }
.mascot { display: block; width: 100%; height: auto; }
.hero-bubble {
  position: absolute; inset-block-start: -6px; inset-inline-start: 72%; margin: 0;
  white-space: nowrap; padding: 10px 18px; border-radius: 14px; background: var(--surface);
  box-shadow: 0 10px 30px -14px rgba(16, 37, 110, 0.35), 0 0 0 1px var(--line);
  font-family: var(--font-latin); font-size: 0.98rem; color: #2b3348;
}
.hero-bubble::after {
  content: ""; position: absolute; bottom: -7px; left: 26px; width: 14px; height: 14px;
  background: var(--surface); transform: rotate(45deg);
  box-shadow: 1px 1px 0 0 var(--line);
}
.hero h1 {
  margin: 8px 0 18px; max-width: 15ch;
  font-size: clamp(2.5rem, 5.6vw, 4.4rem); line-height: 1.12; font-weight: 800; letter-spacing: -0.01em;
  text-wrap: balance;
}
.hero h1 span { color: var(--brand); }
.lede { max-width: 40rem; margin: 0 auto 30px; color: var(--muted); font-size: clamp(1.05rem, 1.5vw, 1.22rem); line-height: 1.75; }
.hero-meta { display: inline-flex; align-items: center; gap: 8px; margin: 22px 0 0; color: var(--muted); font-size: 0.9rem; }
.hero-meta .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px var(--ok-soft); }

/* Sections */
.section { padding-block-end: var(--section-gap); }
.section-title {
  margin: 0 0 14px; font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.2; font-weight: 800; letter-spacing: -0.01em;
  text-wrap: balance;
}
.section-title-sm { margin: 0 0 10px; font-size: clamp(1.7rem, 2.8vw, 2.35rem); line-height: 1.25; font-weight: 800; }
.section-sub { max-width: 42rem; margin: 0 0 36px; color: var(--muted); font-size: 1.08rem; }
.section-head { margin-bottom: 30px; max-width: 46rem; }
.section-head h2 { margin: 0 0 10px; font-size: clamp(1.8rem, 3vw, 2.5rem); line-height: 1.25; }
.section-head p { color: var(--muted); margin: 0 0 8px; }
.eyebrow { margin: 0 0 8px; color: var(--brand); font-weight: 700; font-size: 0.92rem; }

/* How: numbered step cards */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 44px; }
.step { padding: 32px; border-radius: var(--radius-lg); background: var(--bg-deep); }
.step-dot {
  display: block; width: 40px; height: 40px; border-radius: 50%; background: #c9d6f7; position: relative; margin-bottom: 22px;
}
.step-dot::after { content: ""; position: absolute; inset: 11px; border-radius: 50%; background: var(--brand); }
.step-num { margin: 0 0 8px; color: var(--brand); font-weight: 800; font-family: var(--font-latin); font-size: 1.1rem; }
.step h3 { margin: 0 0 12px; font-size: 1.28rem; }
.step p:last-child { margin: 0; color: var(--muted); font-size: 0.98rem; }

/* Blue band: four skills */
.band { background: var(--brand); color: #fff; padding-block: clamp(72px, 8vw, 104px); margin-block-end: var(--section-gap); }
.band .section-title { color: #fff; }
.band .section-sub { color: #dfe6ff; margin-bottom: 48px; }
.skill-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.skill-card {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: 280px; padding: 36px 26px; border-radius: var(--radius-lg); background: var(--bg); color: var(--ink);
}
.skill-card h3 { margin: 0 0 10px; font-size: 1.35rem; }
.skill-card p { margin: 0 0 18px; color: var(--muted); font-size: 0.98rem; max-width: 34ch; }
.skill-art { width: 92px; height: 92px; flex: none; }
.more { display: inline-flex; align-items: center; gap: 6px; color: var(--brand); font-weight: 700; text-decoration: none; font-size: 0.95rem; }
.more svg { width: 14px; height: 14px; }
[dir="ltr"] .more svg { transform: scaleX(-1); }
.more:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Languages */
.lang-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 28px; padding: 0; }
.lang-chips a {
  display: inline-flex; align-items: baseline; gap: 8px; min-height: 46px; padding: 10px 20px;
  border-radius: 999px; background: var(--surface); border: 1px solid var(--line-strong);
  text-decoration: none; color: var(--ink); font-size: 1rem; transition: border-color 0.18s ease, color 0.18s ease;
}
.lang-chips a span { font-weight: 600; }
.lang-chips a:hover { border-color: var(--brand); color: var(--brand); }
.lang-foot { margin: 0; color: var(--muted); }
.lang-foot a { color: var(--brand); font-weight: 700; text-decoration: none; }
.lang-foot a:hover { text-decoration: underline; }

/* Example corrections (in place of reviews; no names, no stars) */
.example-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.example-card {
  display: flex; flex-direction: column; padding: 28px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--line);
}
.ex-tag { margin: 0 0 16px; font-size: 0.88rem; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.ex-tag b { font-family: var(--font-latin); font-size: 0.74rem; letter-spacing: 0.06em; padding: 3px 8px; border-radius: 6px; background: var(--brand-soft); color: var(--brand-2); }
.ex-said { margin: 0 0 6px; color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(255, 106, 74, 0.7); font-size: 1rem; text-align: left; }
.ex-better { margin: 0 0 10px; font-size: 1.12rem; font-weight: 700; text-align: left; }
.ex-better.ok { color: var(--ok); }
.ex-said:has(+ .ex-better.ok) { text-decoration: none; }
.ex-note { margin: 0 0 22px; color: #2b3348; font-size: 0.95rem; }
.ex-foot { margin: auto 0 0; display: flex; justify-content: space-between; font-size: 0.82rem; color: var(--muted); }
.ex-foot span:first-child { font-weight: 700; color: var(--ink); }

/* Practice on the web */
.web-section { display: grid; grid-template-columns: 1fr 1.05fr; align-items: center; gap: clamp(32px, 6vw, 80px); }
.web-copy .section-sub { margin-bottom: 28px; }
.web-mock {
  display: grid; grid-template-columns: 150px 1fr; min-height: 340px; border-radius: 24px; overflow: hidden;
  background: var(--surface); box-shadow: var(--shadow), 0 0 0 1px var(--line); font-family: var(--font-latin); text-align: left;
}
.wm-side { border-right: 1px solid var(--line); padding: 18px 12px; }
.wm-logo { display: flex; align-items: center; gap: 6px; margin: 0 0 18px; font-weight: 800; font-size: 0.82rem; color: var(--ink); }
.wm-logo svg { width: 20px; height: 20px; color: var(--brand); }
.wm-nav { margin: 0 0 6px; padding: 7px 10px; border-radius: 9px; font-size: 0.78rem; color: var(--muted); }
.wm-nav.on { background: var(--brand-soft); color: var(--brand-2); font-weight: 700; box-shadow: inset 0 0 0 1px #c9d6f7; }
.wm-main { padding: 18px; background: #fafbfd; }
.wm-h { margin: 0 0 12px; font-weight: 800; font-size: 0.95rem; display: flex; justify-content: space-between; gap: 8px; }
.wm-h span { font-weight: 500; font-size: 0.72rem; color: var(--muted); }
.wm-card { padding: 12px 14px; border-radius: 12px; background: #fff; border: 1px solid var(--line); margin-bottom: 12px; }
.wm-k { margin: 0; font-size: 0.7rem; color: var(--brand); font-weight: 700; }
.wm-b { margin: 2px 0 8px; font-size: 0.82rem; font-weight: 700; }
.wm-bar { display: block; height: 6px; border-radius: 999px; background: var(--bg-deep); overflow: hidden; }
.wm-bar i { display: block; height: 100%; background: var(--brand); border-radius: inherit; }
.wm-next { padding: 16px; border-radius: 14px; background: linear-gradient(135deg, #2f5ce0, var(--brand-2)); color: #fff; margin-bottom: 12px; }
.wm-chip { display: inline-block; font-size: 0.62rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: rgba(255,255,255,0.2); }
.wm-t { margin: 8px 0 2px; font-weight: 800; font-size: 0.95rem; }
.wm-s { margin: 0 0 12px; font-size: 0.72rem; opacity: 0.85; }
.wm-btn { display: inline-block; padding: 5px 12px; border-radius: 999px; background: #fff; color: var(--brand-2); font-size: 0.72rem; font-weight: 700; }
.wm-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.wm-row span { text-align: center; padding: 6px; border-radius: 9px; font-size: 0.7rem; background: #fff; border: 1px solid var(--line); color: var(--muted); }
.wm-row span:first-child { background: var(--brand-soft); color: var(--brand-2); font-weight: 700; border-color: #c9d6f7; }

/* Final CTA */
.cta-final { border-top: 1px solid var(--line); padding-block: clamp(64px, 8vw, 96px); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.cta-inner .section-sub { margin-bottom: 26px; }
.mascot-small { width: clamp(120px, 14vw, 170px); flex: none; }

/* Footer */
.site-footer { background: var(--brand); color: #fff; padding-block: 48px 40px; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 28px; flex-wrap: wrap; padding-bottom: 26px; border-bottom: 1px solid rgba(255,255,255,0.18); }
.footer-brand { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 6px; font-family: var(--font-latin); font-weight: 800; font-size: 1.08rem; }
.footer-brand svg { width: 26px; height: 26px; color: #0f2c8a; }
.footer-tag { margin: 0; color: #dfe6ff; font-size: 0.94rem; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-legal a { color: #fff; text-decoration: none; font-size: 0.95rem; }
.footer-legal a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-langs { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 22px 0 14px; color: #dfe6ff; font-size: 0.86rem; }
.footer-legalnote { margin: 0; color: #dfe6ff; font-size: 0.84rem; }

/* FAQ */
.faq { max-width: 860px; padding-block-end: var(--section-gap); }
.faq .section-head { text-align: center; max-width: none; margin-bottom: 36px; }
.faq details { border-bottom: 1px solid var(--line-strong); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 22px 4px; font-size: 1.08rem; font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-size: 1.6rem; font-weight: 400; line-height: 1; transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 4px 18px; color: var(--muted); }
.faq details a { color: var(--brand); }

/* Voice consent */
.voice-consent {
  margin-top: 14px; padding: 14px 16px; border-radius: 14px; background: var(--sun-soft);
  border: 1px solid #f3d48a; color: #3d2a00; font-size: 0.93rem;
}
.voice-consent a { color: var(--brand-2); font-weight: 700; }

@keyframes float-in { from { opacity: 0; transform: translateY(14px) scale(0.96); } to { opacity: 1; transform: none; } }

/* ---------- Demo, pricing, waitlist components (kept from the validation kit, recoloured) ---------- */
/* Demo shell */
.demo-shell {
  position: relative;
  overflow: hidden;
  padding: clamp(14px, 2.4vw, 28px);
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 32px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.demo-shell::before {
  content: "";
  position: absolute;
  inset-block-start: 0;
  inset-inline: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand), var(--sun), var(--coral));
  opacity: 0.75;
}

.demo-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-block: 2px 12px;
}

.progress-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.voice-picker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 0.72rem;
}

.voice-picker select {
  padding: 5px 10px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 999px;
  background: #f6f8fc;
  color: var(--ink);
  font-family: inherit;
  font-size: 0.72rem;
  cursor: pointer;
}

.audio-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border: 1px solid rgba(16, 37, 110, 0.12);
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 0.72rem;
  font-weight: 700;
}

.spinner {
  width: 12px;
  height: 12px;
  border: 2px solid rgba(16, 37, 110, 0.22);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 11px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  background: #f6f8fc;
  color: var(--muted);
  font-size: 0.76rem;
}

.chip b {
  color: var(--ink);
  font-weight: 800;
}

.text-btn {
  padding: 2px;
  border: 0;
  background: none;
  color: var(--brand-2);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  cursor: pointer;
}

.text-btn:hover {
  color: var(--coral);
}

.text-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  text-decoration: none;
}

/* Scenario cards */
.scenario-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.noscript {
  grid-column: 1 / -1;
  padding: 16px;
  border-radius: 14px;
  background: var(--coral-soft);
  color: var(--coral);
}

.scenario-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 20px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 22px;
  background: #fafbfd;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.scenario-card::after {
  content: "";
  position: absolute;
  inset-block-start: -55px;
  inset-inline-end: -55px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 176, 32, 0.22), transparent 70%);
  pointer-events: none;
}

.scenario-card:hover {
  transform: translateY(-2px);
  border-color: rgba(16, 37, 110, 0.28);
  box-shadow: 0 22px 38px -30px rgba(16, 37, 110, 0.5);
}

.scenario-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  background: var(--card);
  font-size: 1.4rem;
  line-height: 1;
}

.scenario-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 0.72rem;
}

.level-tag {
  display: inline-flex;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 0.68rem;
  font-weight: 800;
}

.scenario-card h3 {
  margin: 0;
  font-size: 1.22rem;
  line-height: 1.25;
}

.scenario-title-fr {
  margin: -4px 0 0;
  color: var(--muted);
  font-family: var(--font-latin);
  font-size: 0.8rem;
  direction: ltr;
  text-align: start;
}

.scenario-goal {
  flex: 1;
  margin: 0;
  color: var(--muted);
  font-size: 0.83rem;
  line-height: 1.7;
}

.scenario-card .btn {
  align-self: flex-start;
  margin-top: 5px;
}

/* Session */
.session {
  padding-block-start: 10px;
}

.session-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.session-level {
  margin: 0 0 3px;
  color: var(--coral);
  font-family: var(--font-latin);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.session-head h3 {
  margin: 0 0 4px;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  line-height: 1.2;
}

.session-goal {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.turn-count {
  padding: 6px 11px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  background: #f6f8fc;
  color: var(--muted);
  font-size: 0.74rem;
  white-space: nowrap;
}

.progress-track {
  height: 6px;
  margin-block: 14px 4px;
  overflow: hidden;
  border-radius: 99px;
  background: #e3e8f2;
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  transition: width 0.35s ease;
}

.chat {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 250px;
  max-height: 470px;
  margin-block-start: 16px;
  padding: 18px;
  overflow-y: auto;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 22px;
  background: #f4f6fb;
  scroll-behavior: smooth;
}

.bubble {
  max-width: 88%;
  padding: 13px 16px;
  border: 1px solid transparent;
  border-radius: 18px;
  animation: rise 0.24s ease both;
}

.bubble-tutor {
  align-self: flex-start;
  border-color: rgba(15, 23, 42, 0.07);
  border-start-start-radius: 5px;
  background: var(--card);
}

.bubble-user {
  align-self: flex-end;
  border-end-end-radius: 5px;
  background: var(--brand);
  color: #ffffff;
}

.bubble-label {
  display: block;
  margin-bottom: 3px;
  color: var(--brand-2);
  font-size: 0.66rem;
  font-weight: 800;
}

.bubble .fr {
  margin: 0;
  font-family: var(--font-latin);
  font-size: 1.04rem;
  line-height: 1.6;
  color: var(--ink);
  direction: ltr;
  text-align: left;
}

.bubble .ar {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.6;
}

.bubble-user p {
  margin: 0;
  font-family: var(--font-latin);
  font-size: 1rem;
  line-height: 1.55;
  direction: ltr;
  text-align: left;
}

.bubble-actions {
  margin-block-start: 7px;
}

.bubble-actions button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--brand-2);
  font-size: 0.74rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.bubble-actions button:hover {
  color: var(--coral);
}

.feedback-card {
  align-self: stretch;
  max-width: 94%;
  padding: 13px 15px;
  border: 1px solid transparent;
  border-inline-start-width: 4px;
  border-radius: 15px;
  animation: rise 0.24s ease both;
}

.feedback-full {
  border-color: rgba(16, 37, 110, 0.12);
  border-inline-start-color: var(--brand);
  background: var(--brand-soft);
}

.feedback-partial {
  border-color: rgba(255, 176, 32, 0.28);
  border-inline-start-color: var(--sun);
  background: var(--sun-soft);
}

.feedback-miss {
  border-color: rgba(255, 138, 106, 0.2);
  border-inline-start-color: var(--coral);
  background: var(--coral-soft);
}

.feedback-title {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  font-size: 0.88rem;
  font-weight: 800;
}

.feedback-title::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.feedback-full .feedback-title {
  color: var(--brand);
}

.feedback-partial .feedback-title {
  color: var(--sun-ink);
}

.feedback-miss .feedback-title {
  color: var(--coral);
}

.feedback-card p {
  margin: 5px 0 0;
  color: var(--ink);
  font-size: 0.84rem;
  line-height: 1.7;
}

.feedback-card .expected {
  margin-block-start: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.56);
  font-family: var(--font-latin);
  font-size: 0.88rem;
  direction: ltr;
  text-align: left;
}

.feedback-card .tip {
  color: var(--muted);
  font-size: 0.78rem;
}

/* Controls */
.controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 13px;
  padding-block-start: 20px;
}

.mic-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mic-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  padding: 0;
  border: 8px solid rgba(16, 37, 110, 0.12);
  border-radius: 50%;
  background: var(--brand);
  color: #ffffff;
  box-shadow: 0 20px 34px -16px rgba(16, 37, 110, 0.72);
  cursor: pointer;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  transition:
    transform 0.16s ease,
    background-color 0.16s ease,
    border-color 0.16s ease;
}

.mic-btn svg {
  width: 34px;
  height: 34px;
}

.mic-btn:hover {
  transform: scale(1.03);
}

.mic-btn:active {
  transform: scale(0.97);
}

.mic-btn.is-listening {
  border-color: rgba(255, 138, 106, 0.2);
  background: var(--coral);
  animation: pulse 1.5s infinite;
}

.mic-btn:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  animation: none;
  transform: none;
}

.mic-status {
  min-height: 1.5em;
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  text-align: center;
}

.controls-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 12px;
}

.typing {
  display: flex;
  gap: 8px;
  width: min(100%, 580px);
}

.typing[hidden] {
  display: none;
}

.typing input {
  flex: 1;
  min-width: 0;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-family: var(--font-latin);
  font-size: 0.98rem;
  direction: ltr;
  text-align: left;
}

.typing input:focus {
  border-color: var(--brand);
  outline: 3px solid rgba(16, 37, 110, 0.12);
  outline-offset: 1px;
}

.hint {
  width: min(100%, 620px);
  padding: 14px 18px;
  border: 1px solid rgba(255, 176, 32, 0.3);
  border-radius: 18px;
  background: var(--sun-soft);
}

.hint[hidden] {
  display: none;
}

.hint p {
  margin: 0;
}

.hint-label {
  color: var(--sun-ink);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.hint-fr {
  margin-block-start: 4px !important;
  font-family: var(--font-latin);
  font-size: 1.04rem;
  font-weight: 700;
  direction: ltr;
  text-align: left;
}

.hint-ar {
  margin-block-start: 2px !important;
  color: var(--muted);
  font-size: 0.86rem;
}

.hint .text-btn {
  margin-block-start: 8px;
}

.next-row {
  display: flex;
  justify-content: center;
  width: 100%;
}

.next-row .btn {
  min-width: 190px;
}

/* Summary */
.summary {
  margin-block-start: 8px;
  scroll-margin-top: 96px;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid rgba(15, 23, 42, 0.09);
  border-radius: 26px;
  background: #fafbfd;
  text-align: center;
  animation: rise 0.3s ease both;
}

.summary[hidden] {
  display: none;
}

.summary h3 {
  margin: 0 0 18px;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  line-height: 1.2;
}

.summary-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 620px;
  margin: 0 auto 20px;
}

.summary-stats > div {
  padding: 14px 10px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  background: var(--card);
}

.summary-stats strong {
  display: block;
  color: var(--brand);
  font-family: var(--font-latin);
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.15;
}

.summary-stats span {
  color: var(--muted);
  font-size: 0.74rem;
}

.corrections {
  display: flex;
  flex-direction: column;
  gap: 9px;
  max-width: 700px;
  margin: 0 auto 22px;
  text-align: start;
}

.correction-item {
  padding: 12px 15px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  background: var(--card);
}

.correction-item strong {
  display: block;
  margin-bottom: 3px;
  font-size: 0.84rem;
}

.correction-item .fr {
  color: var(--brand);
  font-family: var(--font-latin);
  font-size: 0.9rem;
  direction: ltr;
  text-align: left;
}

.correction-item p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.summary-rating,
.summary-pay {
  max-width: 700px;
  margin: 0 auto 16px;
  padding: 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  background: var(--card);
}

.summary-rating > p,
.summary-pay > p {
  margin: 0 0 10px;
  font-size: 0.86rem;
  font-weight: 700;
}

.rating,
.pay-options {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.rating {
  direction: ltr;
}

.rating button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  font-family: var(--font-latin);
  font-weight: 700;
  cursor: pointer;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease;
}

.rating button:hover,
.rating button.is-selected {
  border-color: var(--brand);
  background: var(--brand);
  color: #ffffff;
}

.pay-options button {
  padding: 8px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease;
}

.pay-options button:hover,
.pay-options button.is-selected {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--brand);
}

.pay-note {
  margin: 10px 0 0 !important;
  color: var(--brand-2);
  font-size: 0.78rem !important;
  font-weight: 600 !important;
}

.summary-actions {
  justify-content: center;
  margin-block-start: 20px;
}

/* Limit */
.limit {
  max-width: 620px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 48px) 20px;
  text-align: center;
  animation: rise 0.3s ease both;
}

.limit[hidden] {
  display: none;
}

.limit-icon {
  display: block;
  margin-bottom: 8px;
  font-size: 2.6rem;
}

.limit h3 {
  margin: 0 0 8px;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
}

.limit p {
  margin: 0 auto;
  max-width: 48ch;
  color: var(--muted);
}

.limit .summary-actions {
  margin-block-start: 18px;
}

/* Pricing */
.pricing {
  padding-block: 10px 80px;
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 26px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 26px;
  background: var(--card);
}

.price-card h3 {
  margin: 0;
  font-size: 1.15rem;
}

.price {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin: 0;
}

.price-amount {
  color: var(--brand);
  font-family: var(--font-latin);
  font-size: clamp(2.2rem, 4vw, 2.9rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
}

.price-period {
  color: var(--muted);
  font-size: 0.82rem;
}

.price-meta {
  min-height: 2.5em;
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.6;
}

.price-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 4px 0 20px;
  padding: 0;
  list-style: none;
  font-size: 0.84rem;
  line-height: 1.6;
}

.price-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.price-list li::before {
  content: "✓";
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 19px;
  height: 19px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 0.64rem;
  font-weight: 800;
}

.price-card .btn {
  width: 100%;
  margin-top: auto;
}

.price-card-featured {
  border-color: var(--brand);
  background: var(--brand);
  color: #ffffff;
  box-shadow: 0 26px 50px -32px rgba(16, 37, 110, 0.75);
}

.price-card-featured h3,
.price-card-featured .price-amount {
  color: #ffffff;
}

.price-card-featured .price-period,
.price-card-featured .price-meta,
.price-card-featured .price-list {
  color: rgba(232, 236, 244, 0.8);
}

.price-card-featured .price-list li::before {
  background: rgba(255, 176, 32, 0.2);
  color: var(--sun);
}

.price-card-featured .btn-primary {
  background: var(--sun);
  color: var(--ink);
}

.price-card-featured .btn-primary:hover {
  background: #f3d48a;
}

.price-tag {
  position: absolute;
  inset-block-start: -13px;
  inset-inline-start: 22px;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--sun);
  color: var(--ink);
  font-size: 0.68rem;
  font-weight: 800;
}

.price-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.76rem;
  text-align: center;
}

ul.price-note {
  list-style: none;
  padding: 0;
  max-width: 760px;
  margin: 22px auto 0;
  display: grid;
  gap: 8px;
  font-size: 0.92rem;
  text-align: start;
}
ul.price-note b { color: var(--ink); }


/* Waitlist */
.waitlist-section {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
  margin-block: 20px 80px;
  padding: clamp(26px, 5vw, 54px);
  overflow: hidden;
  border-radius: 34px;
  background: var(--brand);
  color: #f4f6fb;
  box-shadow: 0 34px 70px -40px rgba(16, 37, 110, 0.75);
}

.waitlist-section::before {
  content: "";
  position: absolute;
  inset-block-start: -140px;
  inset-inline-end: -90px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 176, 32, 0.24), transparent 68%);
  pointer-events: none;
}

.waitlist-section::after {
  content: "";
  position: absolute;
  inset-block-end: -120px;
  inset-inline-start: -80px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 138, 106, 0.18), transparent 70%);
  pointer-events: none;
}

.waitlist-copy,
.waitlist-card {
  position: relative;
  z-index: 1;
}

.waitlist-copy .eyebrow {
  color: var(--sun);
}

.waitlist-copy h2 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: clamp(1.9rem, 3.4vw, 2.9rem);
  line-height: 1.14;
  letter-spacing: -0.02em;
}

.waitlist-copy > p {
  margin: 0;
  color: rgba(232, 236, 244, 0.78);
  line-height: 1.9;
}

.waitlist-points {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  color: rgba(232, 236, 244, 0.9);
  font-size: 0.86rem;
}

.waitlist-points li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
}

.waitlist-points li::before {
  content: "✓";
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 21px;
  height: 21px;
  margin-top: 1px;
  border-radius: 50%;
  background: rgba(255, 176, 32, 0.18);
  color: var(--sun);
  font-size: 0.7rem;
  font-weight: 800;
}

.waitlist-card {
  padding: clamp(20px, 3.5vw, 30px);
  border-radius: 24px;
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 24px 50px -30px rgba(0, 0, 0, 0.5);
}

.waitlist-card label {
  display: block;
  margin-bottom: 14px;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 700;
}

.waitlist-card label > span {
  color: var(--muted);
  font-weight: 400;
}

.waitlist-card input[type="text"],
.waitlist-card input[type="email"],
.waitlist-card textarea {
  width: 100%;
  margin-block-start: 6px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 400;
}

.waitlist-card input[dir="ltr"] {
  text-align: left;
}

.waitlist-card textarea {
  resize: vertical;
  min-height: 78px;
}

.waitlist-card input:focus,
.waitlist-card textarea:focus {
  border-color: var(--brand);
  outline: 3px solid rgba(16, 37, 110, 0.12);
  outline-offset: 1px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.waitlist-card fieldset {
  margin: 0 0 14px;
  padding: 0;
  border: 0;
}

.waitlist-card legend {
  margin-bottom: 7px;
  padding: 0;
  font-size: 0.82rem;
  font-weight: 700;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.pill {
  display: inline-flex !important;
  align-items: center;
  gap: 5px;
  margin: 0 !important;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  cursor: pointer;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease;
}

.pill:has(input:checked) {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--brand);
}

.pill input {
  width: auto;
  margin: 0;
  accent-color: var(--brand);
}

.consent {
  display: flex !important;
  align-items: flex-start;
  gap: 8px;
  margin-block: 4px 14px !important;
  color: var(--muted) !important;
  font-size: 0.76rem !important;
  font-weight: 400 !important;
  line-height: 1.6;
}

.consent input {
  flex: 0 0 auto;
  width: auto;
  margin: 3px 0 0;
  accent-color: var(--brand);
}

.form-status {
  min-height: 1.4em;
  margin: 10px 0 0;
  color: var(--coral);
  font-size: 0.8rem;
}

.waitlist-success {
  padding: 22px 6px;
  text-align: center;
}

.waitlist-success[hidden] {
  display: none;
}

.success-mark {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 1.7rem;
  font-weight: 800;
}

.waitlist-success h3 {
  margin: 0 0 8px;
  font-size: 1.35rem;
}

.waitlist-success p {
  margin: 0 auto 18px;
  max-width: 38ch;
  color: var(--muted);
  font-size: 0.88rem;
}

/* Motion */
@keyframes pulse {
  0% {
    box-shadow: 0 20px 34px -16px rgba(16, 37, 110, 0.72), 0 0 0 0 rgba(255, 138, 106, 0.3);
  }
  70% {
    box-shadow: 0 20px 34px -16px rgba(16, 37, 110, 0.72), 0 0 0 18px rgba(255, 138, 106, 0);
  }
  100% {
    box-shadow: 0 20px 34px -16px rgba(16, 37, 110, 0.72), 0 0 0 0 rgba(255, 138, 106, 0);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* MVP: coach note, upgrade + redeem forms */
.feedback-card .coach-note {
  font-size: 0.86rem;
  border-inline-start: 3px solid var(--brand-2);
  padding-inline-start: 0.6rem;
}

#upgrade-form,
#redeem-form {
  display: grid;
  gap: 0.75rem;
}

#redeem-form {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

/* Feature flags (see lib/features.mjs): flagged blocks stay hidden until features.js enables them. */
[data-feature]:not(.feature-on) {
  display: none !important;
}

/* ---------- Landing overrides for kept components ---------- */
.demo-section, .pricing, .waitlist-section { padding-block-end: var(--section-gap); }
.demo-shell { background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.price-card, .waitlist-card { background: var(--surface); border-radius: var(--radius-lg); }
.price-card-featured { background: var(--brand); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .main-nav { display: none; }
  .steps { grid-template-columns: 1fr; gap: 14px; }
  .example-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .web-section { grid-template-columns: 1fr; }
  .scenario-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .waitlist-section { grid-template-columns: 1fr; }
  .price-grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  body { font-size: 15px; }
  .header-inner { min-height: 68px; }
  .brand-mark { width: 30px; height: 30px; }
  .brand-word { font-size: 1.1rem; }
  .hero { padding-block-start: 30px; }
  .hero-bubble { inset-inline-start: 55%; inset-block-start: -18px; font-size: 0.86rem; padding: 8px 14px; }
  .hero h1 { font-size: clamp(2.2rem, 10.5vw, 2.8rem); }
  .store-row { flex-direction: column; align-items: stretch; width: 100%; max-width: 340px; margin-inline: auto; }
  .store-row-start { margin-inline: 0; }
  .btn-store { justify-content: center; }
  .hero-meta { font-size: 0.82rem; text-align: center; }
  .section-title { font-size: clamp(1.8rem, 8vw, 2.2rem); }
  .step { padding: 26px; }
  .skill-grid { grid-template-columns: 1fr; gap: 12px; }
  .skill-card { min-height: 0; padding: 24px 20px; align-items: flex-start; }
  .skill-art { width: 64px; height: 64px; }
  .lang-chips { gap: 8px; }
  .lang-chips a { min-height: 42px; padding: 8px 14px; font-size: 0.94rem; }
  .example-grid { grid-template-columns: 1fr; }
  .web-mock { grid-template-columns: 1fr; min-height: 0; }
  .wm-side { display: none; }
  .cta-inner { flex-direction: column-reverse; align-items: flex-start; }
  .mascot-small { width: 110px; }
  .footer-legal { gap: 10px 18px; }
  .chat { max-height: 56vh; padding: 13px; }
  .bubble { max-width: 96%; }
  .feedback-card { max-width: 100%; }
  .scenario-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .summary-stats { grid-template-columns: 1fr; }
  .summary-stats > div { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 11px 14px; }
  .summary-stats strong { font-size: 1.35rem; }
}

@media (max-width: 460px) {
  .demo-shell { border-radius: 24px; }
  .demo-topbar { align-items: flex-start; }
  .mic-btn { width: 84px; height: 84px; border-width: 7px; }
  .mic-btn svg { width: 30px; height: 30px; }
  .typing { flex-direction: column; }
  .typing .btn { width: 100%; }
  .summary-actions { flex-direction: column; align-items: stretch; }
  .summary-actions .btn { width: 100%; }
}

/* SEO pages: /learn, /learn/<language>, /compare (lib/seo-pages.mjs) */
.seo-hero { text-align: center; padding-block: clamp(48px, 7vw, 88px) clamp(40px, 5vw, 64px); }
.seo-hero h1 { margin: 0 0 18px; font-size: clamp(2.2rem, 4.6vw, 3.6rem); line-height: 1.15; font-weight: 800; }
.seo-hero h1 span { color: var(--brand); }
.seo-hero .store-row { justify-content: center; }
.seo-page .step-num { margin-top: 0; }
.example-card h3 { margin: 0 0 8px; font-size: 1.3rem; }
.example-card h3 a { color: var(--ink); text-decoration: none; }
.example-card h3 a:hover { color: var(--brand); }
.tip-list { margin: 0 0 8px; padding: 0 1.2em 0 0; max-width: 46rem; display: grid; gap: 12px; color: #2b3348; font-size: 1.04rem; line-height: 1.7; }
.tip-list b { color: var(--ink); }
.band .tip-list + .section-title-sm, .band .section-sub + .section-title-sm { margin-top: 36px; }
.compare-scroll { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.compare-table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 0.97rem; }
.compare-table th, .compare-table td { padding: 14px 16px; text-align: start; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare-table thead th { background: var(--brand-soft); color: var(--brand-ink); font-weight: 700; }
.compare-table thead th:nth-child(2), .compare-table td:nth-child(2) { color: var(--brand-2); font-weight: 700; }
.compare-table tbody th { font-weight: 600; }
.compare-table tr:last-child th, .compare-table tr:last-child td { border-bottom: 0; }
.footer-langs a { color: #dfe6ff; text-decoration: none; }
.footer-langs a:hover { color: #fff; text-decoration: underline; }

/* Comparison detail pages, blog posts and /download (lib/seo-pages.mjs, 2026-11-17) */
.seo-hero .eyebrow a, .post .eyebrow a { color: var(--brand); text-decoration: none; font-weight: 700; }
.prose { max-width: 46rem; }
.prose p { color: #2b3348; font-size: 1.06rem; line-height: 1.85; margin: 0 0 16px; }
.prose .section-title-sm { margin-top: 32px; }
.post { padding-block: clamp(40px, 6vw, 72px) 24px; }
.post h1 { margin: 0 0 14px; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.2; font-weight: 800; }
.post h2 { margin: 36px 0 12px; font-size: clamp(1.35rem, 2.2vw, 1.7rem); font-weight: 800; }
.post .lede { color: var(--muted); font-size: 1.15rem; }
.post .tip-list { margin-bottom: 16px; }
.post .takeaway { border-inline-start: 4px solid var(--brand); padding-inline-start: 16px; font-weight: 600; }
.post .lede { margin-inline: 0; max-width: none; }
