/* Spokey · лендинг. Белый фон, Noto Sans, живой маскот в демо. */
:root {
  --ink: #0B1533; --ink-2: #3C4A68; --muted: #66738F; --hair: #E4E9F5; --line: #DCE5FA;
  --haze: #EEF3FF; --blue50: #E7EEFF; --mist: #F3F5FB; --surface: #FFFFFF;
  --cobalt: #2051E5; --amber: #F0A23A; --red: #E5484D;
  --c-grammar: #1F4BD8; --c-vocabulary: #06809F; --c-pronunciation: #6A33D6;
  --shadow: 0 1px 2px rgba(11, 21, 51, .04), 0 12px 32px -8px rgba(11, 21, 51, .06);
  --font: "Noto Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--surface); color: var(--ink); font: 500 16px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 3px; }

.wrap { width: min(1120px, 100% - 80px); margin: 0 auto; }
.nav { display: flex; align-items: center; justify-content: space-between; padding: 28px 0; }
.logo { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 19px; letter-spacing: -.01em; }
.logo img { width: 28px; height: 28px; border-radius: 50%; }

.btn { display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; text-decoration: none; font-weight: 700; white-space: nowrap; transition: background .15s, transform .1s; }
.btn:active { transform: scale(.98); }
.btn-l { height: 52px; padding: 0 28px; font-size: 16px; }
.btn-m { height: 44px; padding: 0 18px; font-size: 14px; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #1A2648; }
.btn-light { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--hair); }
.btn-light:hover { background: var(--mist); }

.hero { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 72px 0 24px; }
.hero h1 { max-width: 20ch; font-size: 64px; line-height: 1; letter-spacing: -.035em; font-weight: 700; text-wrap: balance; }
.hero .lead { margin-top: 20px; font-size: 18px; color: var(--ink-2); }
.hero .btn { margin-top: 32px; }

/* ---------- Демо ---------- */
.card { background: var(--surface); border-radius: 32px; box-shadow: var(--shadow); }
.demo { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: center; margin-top: 40px; }
.demo-talk { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.mascot-slot { --mw: 340px; position: relative; width: calc(var(--mw) * 1.327); aspect-ratio: 1.367; margin: calc(var(--mw) * -.229) calc(var(--mw) * -.163) calc(var(--mw) * -.089); pointer-events: none; }
.mascot-slot .mascot-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .5s; }
.mascot-slot.mascot-ready .mascot-canvas { opacity: 1; }
.mascot-slot.fallback { background: url(/live-assets/mascot/dave.webp) center 62% / 76% auto no-repeat; }
.patience { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 18px; }
.patience .label { font-size: 15px; font-weight: 600; color: var(--muted); }
.segs { display: flex; gap: 5px; }
.segs i { width: 12px; height: 12px; border-radius: 3px; background: var(--hair); transition: background .35s; }
.segs.high i.on { background: var(--cobalt); }
.segs.mid i.on { background: var(--amber); }
.segs.low i.on { background: var(--red); }
.dialogue { margin-top: 32px; width: min(640px, 100%); padding: 36px 44px 32px; display: flex; flex-direction: column; gap: 16px; text-align: center; }
.dialogue .speaker { display: none; }
.dialogue .line { font-size: 36px; line-height: 1.08; letter-spacing: -.025em; font-weight: 700; text-wrap: balance; min-height: 2.16em; display: flex; align-items: center; justify-content: center; transition: opacity .25s; }
.dialogue .you { font-size: 16px; color: var(--muted); min-height: 24px; transition: opacity .25s; }
.dialogue .you-label::after { content: ": "; }
.fade { opacity: 0; }

.notes { padding: 28px 28px 12px; border-radius: 28px; }
.notes .empty { padding: 8px 0 16px; font-size: 14px; color: var(--muted); }
.notes:has(.err) .empty { display: none; }
.notes { min-height: 300px; }
.notes h2 { font-size: 18px; line-height: 1.28; font-weight: 600; padding-bottom: 8px; }
.err { display: flex; flex-direction: column; gap: 4px; padding: 16px 0; border-bottom: 1px solid var(--hair); }
.err:last-child { border-bottom: 0; }
.err .kind { display: flex; align-items: center; gap: 8px; font-size: 13px; line-height: 1.3; font-weight: 600; color: var(--k); }
.err .kind::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--k); }
.err .correct { font-size: 16px; font-weight: 700; }
.err .said { font-size: 14px; color: var(--muted); }
.err.grammar { --k: var(--c-grammar); }
.err.vocabulary { --k: var(--c-vocabulary); }
.err.pronunciation { --k: var(--c-pronunciation); }
.err.enter { animation: rise .4s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }

/* ---------- Блоки ---------- */
.block { padding-top: 128px; }
.block > h2 { font-size: 40px; line-height: 1.04; letter-spacing: -.025em; font-weight: 700; }
.pains { margin-top: 32px; border-top: 1px solid var(--hair); }
.pains li { padding: 28px 0; border-bottom: 1px solid var(--hair); font-size: 24px; line-height: 1.3; font-weight: 600; letter-spacing: -.01em; }
.steps { margin-top: 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; counter-reset: step; }
.steps li { padding-top: 24px; border-top: 2px solid var(--ink); counter-increment: step; }
.steps li::before { content: counter(step); display: block; font-size: 14px; font-weight: 700; color: var(--muted); margin-bottom: 20px; }
.steps h3 { font-size: 24px; line-height: 1.2; font-weight: 700; letter-spacing: -.01em; }
.steps p { margin-top: 8px; color: var(--ink-2); }
.people { margin-top: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.person .art { border-radius: 32px; aspect-ratio: 1.6; display: grid; place-items: center; overflow: hidden; }
.person .art.blue { background: var(--blue50); }
.person .art.mist { background: var(--mist); }
.person .art img { width: 72%; }
.person h3 { margin-top: 20px; font-size: 24px; font-weight: 700; letter-spacing: -.01em; }
.person p { margin-top: 4px; color: var(--ink-2); }
.soon { margin-top: 28px; color: var(--muted); }

.cta { margin-top: 128px; padding: 56px 32px 48px; border-radius: 40px; background: var(--blue50); display: flex; flex-direction: column; align-items: center; text-align: center; }
.cta img { width: 300px; margin-top: -12px; }
.cta h2 { margin-top: 12px; max-width: 16ch; font-size: 40px; line-height: 1.04; letter-spacing: -.025em; font-weight: 700; text-wrap: balance; }
.cta .btn { margin-top: 28px; }
.cta .fine { margin-top: 14px; font-size: 14px; color: var(--muted); }

.foot { display: flex; align-items: center; justify-content: space-between; padding: 48px 0 40px; color: var(--muted); font-size: 14px; }
.foot .logo { font-size: 16px; }
.foot .logo img { width: 24px; height: 24px; }

@media (max-width: 900px) {
  .demo { grid-template-columns: 1fr; justify-items: center; }
  .demo .notes { width: min(640px, 100%); }
}
@media (max-width: 640px) {
  .wrap { width: calc(100% - 40px); }
  .nav { padding: 16px 0; }
  .hero { padding: 36px 0 8px; }
  .hero h1 { font-size: 40px; line-height: 1.04; }
  .hero .lead { font-size: 16px; margin-top: 14px; }
  .hero .btn { margin-top: 24px; width: 100%; }
  .mascot-slot { --mw: 260px; }
  .dialogue { padding: 24px 22px; text-align: left; border-radius: 28px; }
  .dialogue .speaker { display: block; font-size: 13px; font-weight: 600; color: var(--cobalt); margin-bottom: -8px; }
  .dialogue .line { font-size: 24px; line-height: 1.28; font-weight: 600; letter-spacing: -.01em; justify-content: flex-start; min-height: 2.56em; }
  .dialogue .you { display: flex; flex-direction: column; gap: 2px; color: var(--ink-2); }
  .dialogue .you-label { font-size: 13px; font-weight: 600; color: var(--muted); }
  .dialogue .you-label::after { content: ""; }
  .notes { padding: 22px 22px 6px; min-height: 0; }
  .block { padding-top: 88px; }
  .block > h2, .cta h2 { font-size: 32px; }
  .pains li { font-size: 20px; padding: 22px 0; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .people { grid-template-columns: 1fr; gap: 36px; }
  .cta { margin-top: 88px; padding: 40px 22px 36px; border-radius: 32px; }
  .cta img { width: 220px; }
  .cta .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
