@font-face {
  font-family: Saydrift; src: url("./assets/urbanist-latin-wght.woff2") format("woff2");
  font-weight: 100 900; font-display: swap;
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: Saydrift; src: url("./assets/manrope-cyrillic-wght.woff2") format("woff2");
  font-weight: 200 800; font-display: swap; unicode-range: U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
:root {
  color-scheme: dark; --bg:#141119; --ink:#fff4fa; --sub:#d6c9df; --muted:#b9acc4;
  --accent:#ddd0fa; --rule:#433949; --side:clamp(1.2rem,4.75vw,6rem);
  font-family: Saydrift,-apple-system,BlinkMacSystemFont,sans-serif;
  background:var(--bg); color:var(--ink); text-size-adjust:100%;
}
*,*::before,*::after {box-sizing:border-box}
body,h1,h2,h3,p,figure,ol {margin:0}
body {font-size:1rem;line-height:1.5;-webkit-font-smoothing:antialiased}
a {color:inherit;text-decoration:none}
button,input {font:inherit}
button,a,label {touch-action:manipulation}
a:focus-visible,button:focus-visible,input:focus-visible+span {outline:3px solid #bd96ff;outline-offset:5px}
[hidden]{display:none!important}
.wrap {width:min(100% - var(--side) * 2,92rem);margin-inline:auto}
.symbols,.sr-only {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.skip {position:fixed;z-index:5;top:.6rem;left:1rem;transform:translateY(-180%);padding:.7rem 1.1rem;background:var(--ink);color:var(--bg);border-radius:2rem}
.skip:focus {transform:translateY(0)}
.header,footer {display:flex;align-items:center;justify-content:space-between}
.header {position:relative;z-index:1;height:clamp(4.8rem,6.7vw,6.3rem);border-bottom:1px solid var(--rule)}
.wordmark {display:inline-flex;gap:.56rem;align-items:center;font-size:clamp(1.5rem,2.1vw,2.1rem);letter-spacing:-.055em;font-weight:760;line-height:1}
.wordmark img {border-radius:24%;box-shadow:0 2px 8px #0002}
nav {display:flex;align-items:center;gap:clamp(1.2rem,3vw,3rem);font-weight:590}
nav a {display:inline-flex;align-items:center;min-height:44px}
.how-link {color:var(--muted)}
.nav-download {gap:.6rem}
.nav-download svg {width:1rem;height:1rem}
nav a:hover,footer>a:last-child:hover {text-decoration:underline;text-underline-offset:.3em}
.hero {overflow:hidden;isolation:isolate;text-align:center;padding:clamp(2.3rem,4.7vw,5.3rem) 0 clamp(3rem,5.5vw,6rem);background:radial-gradient(ellipse 64% 41% at 48% 54%,#281a32 0%,#19131e 59%,var(--bg) 100%)}
.eyebrow {font-size:clamp(1rem,1.45vw,1.27rem);color:var(--sub);font-weight:560;letter-spacing:.012em}
h1,h2,h3 {line-height:1.09;font-weight:625;letter-spacing:-.055em}
h1 {font-size:clamp(3.4rem,7.05vw,6.8rem);margin:clamp(.9rem,1.7vw,1.65rem) 0 1.45rem;letter-spacing:-.06em;text-wrap:balance}
.subtitle,.example-intro>p,.install-body>div>p {font-size:clamp(1.1rem,1.6vw,1.5rem);text-wrap:pretty}
.subtitle {color:var(--sub)}
.demo {margin:0 auto .1rem;position:relative}
.art {height:clamp(12rem,21.5vw,22rem);max-width:128rem;margin-inline:auto;position:relative;display:grid;place-items:center}
.art>img,.art>canvas {position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.art[data-drawn] .wave-poster {visibility:hidden}
.demo[data-phase="result"] .wave-poster {transform:translateY(20%) scaleY(.42);opacity:.65}
.result {position:relative;white-space:nowrap;font-size:clamp(1.75rem,3.4vw,3.45rem);letter-spacing:-.045em;line-height:1.2;opacity:0;transition:opacity 140ms ease-out}
.demo[data-phase="result"] .result {opacity:1}
.caret {display:inline-block;height:.94em;width:.065em;min-width:2px;vertical-align:-.09em;border-radius:8px;margin-inline-start:.12em;background:#c5a5ed}
.result .phrase {display:block;clip-path:inset(-2px 100% -2px 0);transition:clip-path 540ms cubic-bezier(.22,.61,.36,1)}
.result .caret {position:absolute;top:.13em;left:0;transition:left 540ms cubic-bezier(.22,.61,.36,1)}
.demo[data-phase="result"] .phrase {clip-path:inset(-2px 0 -2px 0)}
.demo[data-phase="result"] .caret {left:100%}
.demo-pill,.mini-pill {display:inline-flex;align-items:center;justify-content:center;background:#201f2b;color:#e9e5f1;border:1px solid #ffffff12;border-radius:5rem;box-shadow:0 2px 8px #0004}
.demo-pill {min-height:44px;gap:.6rem;padding:.6rem 1.2rem;font-size:.94rem;font-weight:600;cursor:pointer;transition:background 140ms,transform 140ms,box-shadow 140ms}
.demo-pill:hover {background:#302a3a;box-shadow:0 3px 14px #0005}
.demo-pill:active,.cta:active {transform:scale(.97)}
.pill-icon {display:inline-grid;place-items:center;width:1.5rem;color:#b8a5f1}
.pill-icon svg {width:.9rem;height:.9rem}
.pill-icon>*:not(.play) {display:none}
.demo[data-running] .pill-icon .play,.demo[data-phase="result"]:not([data-paused]) .pill-icon .play {display:none}
.demo[data-running][data-phase="listening"] .bars,.demo[data-running][data-phase="polish"] .dots,.demo[data-running][data-phase="returning"] .bars {display:inline-flex;align-items:center;gap:2px}
.demo[data-phase="result"]:not([data-paused]) .inserted {display:block}
.demo-pill .pause-icon {display:none;width:1em;height:1em;color:var(--muted)}
.demo[data-running] .pause-icon {display:block}
.bars i {width:2px;background:currentColor;height:10px;border-radius:4px;animation:level .52s ease-in-out alternate infinite}
.bars i:nth-child(2n) {animation-delay:-.33s;height:14px}
.bars i:nth-child(3n) {animation-delay:-.13s;height:17px}
.dots i {background:currentColor;width:4px;height:4px;border-radius:50%;animation:dot .7s ease-in-out alternate infinite}
.dots i:nth-child(2){animation-delay:-.23s}.dots i:last-child{animation-delay:-.46s}
@keyframes level {from{transform:scaleY(.35)}to{transform:scaleY(1)}}
@keyframes dot {from{opacity:.25}to{opacity:1}}
.hero-action {padding:clamp(1.8rem,3.25vw,3.4rem) var(--side) 0}
.cta {display:inline-flex;align-items:center;justify-content:center;gap:.67rem;min-height:3.5rem;padding:.92rem 1.7rem;background:var(--accent);color:#251a2d;border:0;border-radius:4rem;font-weight:700;font-size:1.16rem;line-height:1.25;cursor:pointer;transition:transform .16s ease-out,background-color .16s}
.cta svg {width:1.14em;height:1.14em;flex:none}.cta:hover{background:#eee1ff}
.compat,.version {margin-top:.82rem;font-size:.94rem;color:var(--muted)}.compat span{padding:0 .2em}
.how {border-top:1px solid var(--rule);padding-block:clamp(3.3rem,6.2vw,6rem) clamp(4rem,7.8vw,7rem)}
h2 {font-size:clamp(2.25rem,4.1vw,4.3rem);text-wrap:balance}
.steps {list-style:none;padding:0;margin-top:clamp(2.2rem,4.5vw,4.5rem);display:grid;grid-template-columns:repeat(3,1fr);gap:clamp(1rem,4vw,4rem)}
.steps li {border-top:1px solid #76677e;padding-top:1.5rem}
.steps h3 {font-size:clamp(1.8rem,3vw,3rem);margin:1.55rem 0 .85rem}
.steps p,.example-intro>p {color:var(--sub);max-width:30ch;font-size:clamp(1.05rem,1.4vw,1.3rem)}
kbd {font:inherit;font-weight:690;color:var(--ink)}
.mini-pill,.mini-text {height:2.3rem;font-weight:620}.mini-pill{padding-inline:.8rem;gap:.45rem;font-size:.85rem}
.mini-bars {display:inline-flex;align-items:center;gap:2px;color:#b9a5ff}
.mini-bars i {height:4px;width:2px;border-radius:2px;background:currentColor}
.mini-bars i:nth-child(2),.mini-bars i:nth-child(6) {height:8px}
.mini-bars i:nth-child(3),.mini-bars i:nth-child(5) {height:12px}
.mini-bars i:nth-child(4) {height:16px}
.mini-dots {font:normal .5rem/1 sans-serif;letter-spacing:.08em;color:#b9a5ff}
.mini-text {display:flex;align-items:center;color:#dcbff5;font-size:clamp(1rem,1.6vw,1.4rem)}
.examples {display:grid;grid-template-columns:.9fr 1.1fr;gap:clamp(1.6rem,6vw,6rem);padding-block:clamp(3rem,5vw,5rem) clamp(4rem,7vw,7rem);border-top:1px solid var(--rule);align-items:start}
.example-intro>p {margin-top:1.2rem}
.example-card {padding:clamp(1.2rem,2.5vw,2.4rem);border:1px solid #4c3f52;border-radius:1.5rem;background:radial-gradient(at right top,#36243e,#211a28 70%)}
.choices {display:flex;gap:.2rem;padding:0;border:0;min-width:0;margin:0 0 1.4rem}
.choices label {cursor:pointer;position:relative}.choices input {position:absolute;opacity:0}
.choices span {display:block;padding:.65rem clamp(.55rem,1vw,1.05rem);font-size:.95rem;font-weight:650;color:var(--sub);border-radius:2rem}
.choices input:checked+span {color:#2b1c31;background:#dac6e7}
.pair {display:none}
.example-card:has([value="correction"]:checked) [data-example="correction"],
.example-card:has([value="mixed"]:checked) [data-example="mixed"],
.example-card:has([value="question"]:checked) [data-example="question"] {display:grid;gap:1.3rem}
.pair>div+div {border-top:1px solid #504054;padding-top:1rem}
.term {font-size:.9rem;color:var(--muted);margin-bottom:.35rem}
.raw {font-size:1.18rem;color:#ded1de}
.clean {font-size:clamp(1.45rem,2.2vw,2.1rem);font-weight:590;letter-spacing:-.035em;min-height:2.5em}
.install {color:#281f2d;background:#d8c9ed;color-scheme:light}
.install-body {display:flex;justify-content:space-between;align-items:center;gap:2rem;padding-block:clamp(3.2rem,6vw,5.5rem)}
.install-body>div>p,.version {color:#594b62}
.install-body>div>p {margin-top:1rem}.install-body .version {font-size:.94rem}
.install-action {text-align:center;flex:none}
.install .cta {background:#2a2130;color:#fff4fa}.install .cta:hover{background:#473650}
footer {border-top:1px solid #ab99b9;padding-block:1.55rem 2.5rem}
footer>a:last-child {color:#4e3e56;font-weight:600}
.toast {position:fixed;z-index:5;left:50%;bottom:1.6rem;transform:translateX(-50%);width:max-content;max-width:calc(100% - 2rem);border:1px solid #6a5c75;padding:.8rem 1.25rem;border-radius:1rem;background:#28222e;color:white;box-shadow:0 5px 22px #0004;text-align:center}
@media(max-width:720px){
  .wordmark img {width:28px;height:28px}.how-link{display:none}.nav-download{font-size:.94rem}
  .hero {padding-top:2.8rem}.hero-copy {max-width:34rem}.hero h1 {margin:1.15rem auto 1.2rem;max-width:11ch;font-size:clamp(3.4rem,11.8vw,5rem)}
  .subtitle {max-width:31ch;margin:auto}.art{height:clamp(11.4rem,43vw,14.4rem);margin-top:.55rem}
  .steps,.examples {grid-template-columns:1fr}.steps{gap:1.9rem}.steps li{padding-top:1.15rem}.steps h3{margin:.85rem 0 .55rem}.steps p{max-width:37ch}
  .install-body{align-items:flex-start;flex-direction:column}.install-action{text-align:left}.clean{min-height:2.5em}
}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}
