/* Smart Lingo's public site (236). Tokens from the app's palette
   (lib/app/theme/app_colors.dart, lingo_palette.dart). No web font: the
   system's own carries every Kazakh letter. */
:root {
  --brand: #6c4fe0;
  --brand-edge: #4b32b8;
  --brand-soft: #ece7ff;
  --on-brand-soft: #2a1a78;
  --go: #168542;
  --go-edge: #0f6a33;
  --bg: #fbfaff;
  --surface: #ffffff;
  --surface-soft: #f3f1fb;
  --text: #1b1830;
  --muted: #5e5a73;
  --line: #dcd8ea;
  --preview: #8a5a00;
  --preview-bg: #fff3d6;
  --ok-bg: #d5f0e2;
  --ok: #0b3d27;
  --radius: 18px;
  --radius-s: 10px;
  --shadow: 0 1px 2px rgba(27, 24, 48, .06), 0 8px 24px rgba(27, 24, 48, .06);
  --space: 16px;
  --wrap: 1120px;
  --step-0: 1rem;
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-3: clamp(2rem, 1.4rem + 3vw, 3.2rem);
  --motion: 160ms ease-out;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --brand: #b6a5ff;
    --brand-edge: #8f7bff;
    --brand-soft: #2e2360;
    --on-brand-soft: #e6e0ff;
    --go: #2fa862;
    --go-edge: #1f8a4c;
    --bg: #151322;
    --surface: #201c33;
    --surface-soft: #1b1830;
    --text: #eceaf6;
    --muted: #b9b4cc;
    --line: #3a3452;
    --preview: #f5c35a;
    --preview-bg: #4a3a12;
    --ok-bg: #1c3e30;
    --ok: #c4f0d9;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3);
  }
}
@media (prefers-reduced-motion: reduce) {
  :root { --motion: 0s; }
  html { scroll-behavior: auto !important; }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 var(--step-0)/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-edge); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: var(--step-3); font-weight: 800; }
h2 { font-size: var(--step-2); font-weight: 750; }
h3 { font-size: var(--step-1); font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--space); }
.narrow { max-width: 760px; }
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

/* Header */
.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; justify-content: space-between; min-height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem;
  color: var(--text); text-decoration: none; margin: 0; }
.brand img { border-radius: 8px; }
.links { display: none; }
.links ul, .nav-m ul { list-style: none; margin: 0; padding: 0; }
.links a, .nav-m a { display: block; padding: 10px 14px; border-radius: var(--radius-s); color: var(--text);
  text-decoration: none; font-weight: 600; }
.links a:hover, .links a[aria-current], .nav-m a:hover, .nav-m a[aria-current] { background: var(--brand-soft); color: var(--on-brand-soft); }
.nav-m summary { list-style: none; cursor: pointer; padding: 12px; border-radius: var(--radius-s); }
.nav-m summary::-webkit-details-marker { display: none; }
.burger, .burger::before, .burger::after { display: block; width: 22px; height: 2px; background: var(--text);
  border-radius: 2px; position: relative; }
.burger::before, .burger::after { content: ""; position: absolute; left: 0; }
.burger::before { top: -7px; } .burger::after { top: 7px; }
.nav-m nav { position: absolute; right: var(--space); left: var(--space); top: 60px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 8px; }
.langs { border-top: 1px solid var(--line); margin-top: 6px !important; padding-top: 6px !important; display: flex; flex-wrap: wrap; }
@media (min-width: 760px) {
  .nav-m { display: none; }
  .links { display: flex; align-items: center; gap: 8px; }
  .links ul { display: flex; gap: 4px; }
  .links .langs { border: 0; margin: 0 0 0 8px !important; padding: 0 !important; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 22px;
  border-radius: 14px; font-weight: 700; text-decoration: none; border: 2px solid transparent;
  transition: transform var(--motion), background var(--motion); }
.btn:active { transform: translateY(1px); }
.btn-go { background: var(--go); color: #fff; box-shadow: 0 3px 0 var(--go-edge); }
.btn-go:hover { color: #fff; background: var(--go-edge); }
.btn-ghost { background: var(--surface); color: var(--brand); border-color: var(--line); }
.btn-store { background: var(--text); color: var(--bg); }
.btn-store:hover { color: var(--bg); opacity: .9; }
.ctas, .stores { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.4em 0 .6em; }

/* Hero */
.hero { background: radial-gradient(1200px 500px at 85% -10%, var(--brand-soft), transparent 60%),
  linear-gradient(180deg, var(--surface-soft), var(--bg)); padding: 40px 0 48px; }
.hero-grid { display: grid; gap: 32px; align-items: center; }
.lead { font-size: 1.15rem; color: var(--muted); }
.lead p { margin: 0; }
.phone { margin: 0 auto; max-width: 300px; padding: 10px; background: var(--text); border-radius: 36px;
  box-shadow: 0 30px 60px -20px rgba(76, 50, 184, .45); }
.phone img { border-radius: 28px; }
@media (min-width: 900px) {
  .hero { padding: 72px 0; }
  .hero-grid { grid-template-columns: 1.2fr .8fr; }
}

/* Bands, cards, grids */
.band { padding: 48px 0; }
.band-soft { background: var(--surface-soft); }
.grid { display: grid; gap: 16px; list-style: none; margin: 0; padding: 0; }
@media (min-width: 700px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
  box-shadow: var(--shadow); }
.card h3 a { color: var(--text); text-decoration: none; }
.card h3 a:hover { color: var(--brand); }
.card p:last-child { margin-bottom: 0; }
.more { font-weight: 700; text-decoration: none; }
.badge { display: inline-block; font-size: .85rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; margin: 0 0 10px; }
.badge-available { background: var(--ok-bg); color: var(--ok); }
.badge-preview, .badge-coming_soon { background: var(--preview-bg); color: var(--preview); }

/* Steps */
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 16px; }
.steps li { counter-increment: step; position: relative; padding: 18px 18px 18px 72px; background: var(--surface);
  border-radius: var(--radius); border: 1px solid var(--line); }
.steps li::before { content: counter(step); position: absolute; left: 18px; top: 18px; width: 38px; height: 38px;
  border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; display: grid; place-items: center; }
.steps h3 { font-size: 1.05rem; margin-bottom: .3em; }
.steps p { margin: 0; color: var(--muted); }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(5, 1fr); } .steps li { padding: 70px 18px 18px; } }

/* Features */
.features h3 { font-size: 1.1rem; }
.features p { color: var(--muted); }
.icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; margin-bottom: 12px;
  background: var(--brand-soft); color: var(--on-brand-soft); font-weight: 800; font-size: 1.3rem; }
.icon-offline::before { content: "↓"; } .icon-cards::before { content: "Ә"; } .icon-sound::before { content: "♪"; }
.icon-dialogue::before { content: "…"; } .icon-daily::before { content: "☀"; } .icon-test::before { content: "✓"; }
.icon-free::before { content: "♥"; } .icon-path::before { content: "→"; } .icon-review::before { content: "↻"; }
.icon-reading::before { content: "¶"; }

/* Screenshots: a row that scrolls on a phone, a grid on a wide screen. */
.shots { list-style: none; margin: 0; padding: 0 0 8px; display: grid; grid-auto-flow: column;
  grid-auto-columns: minmax(180px, 46%); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; }
.shots li { scroll-snap-align: start; }
.shots img { border-radius: 20px; border: 1px solid var(--line); }
@media (min-width: 900px) { .shots { grid-auto-flow: row; grid-template-columns: repeat(6, 1fr); overflow: visible; } }

/* FAQ, text */
.faq { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { font-weight: 700; cursor: pointer; font-size: 1.05rem; }
.faq p { margin: .8em 0 0; color: var(--muted); }
.prose h2 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .4em 0; }

/* Course page */
.hero-course { padding: 32px 0 40px; }
.facts { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.4em 0; }
.facts div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 18px; min-width: 120px; }
.facts dt { color: var(--muted); font-size: .9rem; order: 2; }
.facts dd { margin: 0; font-size: 1.6rem; font-weight: 800; color: var(--brand); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 14px 0 0; margin: 0; font-size: .9rem; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin-right: 6px; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 36px 0 18px; margin-top: 24px; background: var(--surface-soft); }
.foot-grid { display: grid; gap: 24px; }
.foot-links { list-style: none; padding: 0; margin: 0; }
.foot-links li { margin: 6px 0; }
.foot-links a { color: var(--text); }
.copy { color: var(--muted); font-size: .9rem; margin-top: 18px; }
@media (min-width: 800px) { .foot-grid { grid-template-columns: 2fr 1fr 1fr; } }
