/* arabically — website styles. Same palette and type as the app (src/theme). */
:root {
  --bg: #0b0c10;
  --bg2: #0e1016;
  --card: #15171e;
  --card2: #1d2029;
  --card3: #2a2d36;
  --line: rgba(255, 255, 255, .07);
  --border: rgba(255, 255, 255, .1);
  --border2: rgba(255, 255, 255, .16);
  --text: #f2f1ee;
  --text2: #dadbdf;
  --muted: #9a9ca5;
  --dim: #6b6e78;
  --blue: #2f4b9a;
  --blue-app: #4b94f0;
  --blueL: #8fa8f5;
  --blueXL: #b3c4f8;
  --green: #5fc08f;
  --amber: #e0a84a;
  --red: #e26d5a;
  --radius: 22px;
  --page: min(1180px, 100% - 40px);
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: dark;
}

*, *::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 17px/1.6 "Readex Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--blueL); text-decoration: none; }
a:hover { color: var(--blueXL); }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -.02em; line-height: 1.1; }
p { margin: 0; }
button { font: inherit; color: inherit; }
.ar { font-family: "Readex Pro", "Noto Naskh Arabic", sans-serif; direction: rtl; unicode-bidi: isolate; }
.mono { font-family: "JetBrains Mono", ui-monospace, monospace; }
.wrap { width: var(--page); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--blueL); outline-offset: 3px; border-radius: 8px; }

/* ------------------------------------------------------------------ header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  background: rgba(11, 12, 16, .6);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.site-header.scrolled { border-color: var(--line); background: rgba(11, 12, 16, .82); }
.nav { display: flex; align-items: center; gap: 28px; height: 70px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; font-size: 20px; letter-spacing: -.02em; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.brand:hover { color: var(--text); }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { color: var(--text2); font-size: 15px; }
.nav-links a:hover { color: var(--text); }
.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: transparent; border-radius: 12px; cursor: pointer; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--text); margin: 5px auto; border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ------------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 24px; border-radius: 16px; border: 0; cursor: pointer;
  font-weight: 500; font-size: 16px; white-space: nowrap;
  transition: transform .2s var(--ease), background .2s, box-shadow .3s;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 10px 30px -10px rgba(75, 148, 240, .6); }
.btn-primary:hover { background: #3a58ad; color: #fff; box-shadow: 0 14px 40px -10px rgba(75, 148, 240, .75); }
.btn-ghost { background: var(--card2); color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--card3); color: var(--text); }
.btn-sm { height: 42px; padding: 0 18px; font-size: 15px; border-radius: 13px; }

.store-row { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-flex; align-items: center; gap: 12px;
  height: 60px; padding: 0 22px 0 18px; border-radius: 16px;
  background: #fff; color: #0b0c10; border: 1px solid #fff;
  transition: transform .2s var(--ease), box-shadow .3s;
}
.store:hover { color: #0b0c10; transform: translateY(-2px); box-shadow: 0 16px 40px -16px rgba(255, 255, 255, .45); }
.store.dark { background: var(--card2); color: var(--text); border-color: var(--border2); }
.store.dark:hover { color: var(--text); box-shadow: 0 16px 40px -16px rgba(143, 168, 245, .35); }
.store svg { width: 26px; height: 26px; flex: none; }
.store small { display: block; font-size: 11px; line-height: 1; opacity: .7; letter-spacing: .02em; }
.store b { display: block; font-size: 18px; line-height: 1.2; font-weight: 600; letter-spacing: -.01em; }
.store.soon { position: relative; }
.store.soon::after {
  content: "Soon"; position: absolute; top: -9px; right: -8px;
  background: var(--blueL); color: var(--bg); font: 600 10px/1 "JetBrains Mono", monospace; letter-spacing: .06em;
  padding: 5px 7px; border-radius: 999px; text-transform: uppercase;
}

/* ------------------------------------------------------------------ hero */
.hero { position: relative; padding: 70px 0 110px; overflow: hidden; }
.glow { position: absolute; pointer-events: none; border-radius: 50%; filter: blur(90px); opacity: .55; }
.glow.g1 { width: 620px; height: 620px; background: radial-gradient(circle, rgba(75, 148, 240, .45), transparent 65%); top: -160px; right: -120px; }
.glow.g2 { width: 520px; height: 520px; background: radial-gradient(circle, rgba(47, 75, 154, .5), transparent 65%); bottom: -220px; left: -200px; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px 7px 8px; border-radius: 999px;
  background: rgba(143, 168, 245, .08); border: 1px solid rgba(143, 168, 245, .22);
  color: var(--blueXL); font-size: 14px;
}
.eyebrow .dot { width: 22px; height: 22px; border-radius: 50%; background: var(--blueL); color: var(--bg); display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.hero h1 { font-size: clamp(42px, 6.4vw, 76px); margin: 22px 0 22px; letter-spacing: -.035em; line-height: 1.02; }
.hero h1 em { font-style: normal; background: linear-gradient(100deg, #b3c4f8, #4b94f0 60%, #8fa8f5); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 540px; margin-bottom: 34px; }
.hero .fine { margin-top: 18px; font-size: 14px; color: var(--dim); }
.hero .fine b { color: var(--text2); font-weight: 500; }

/* phone */
.phone-stage { position: relative; display: grid; place-items: center; min-height: 640px; }
.phone {
  position: relative; width: 300px; aspect-ratio: 1206 / 2622;
  border-radius: 48px; padding: 10px; background: linear-gradient(145deg, #2b2f3a, #121419);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08) inset, 0 60px 120px -30px rgba(0, 0, 0, .85), 0 30px 80px -40px rgba(75, 148, 240, .5);
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 39px; }
.phone.tilt { transform: rotate(-3deg); }
.float {
  position: absolute; z-index: 2;
  background: rgba(29, 32, 41, .82); border: 1px solid var(--border2);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-radius: 18px; padding: 14px 16px; box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .8);
  animation: bob 6s ease-in-out infinite;
}
.float.f1 { top: 16%; left: -2%; animation-delay: -1s; }
.float.f2 { bottom: 20%; right: -4%; animation-delay: -3s; }
.float.f3 { top: 6%; right: 4%; animation-delay: -4.5s; padding: 10px 14px; }
.float .ar { font-size: 26px; line-height: 1.5; }
.float .t { font-size: 13px; color: var(--muted); }
.float .w { font-weight: 600; font-size: 15px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 7px; font: 600 11px/1.4 "JetBrains Mono", monospace; letter-spacing: .05em; }
.pill.blue { background: var(--blue); color: #fff; }
.pill.soft { background: rgba(143, 168, 245, .12); color: var(--blueXL); }
.pill.green { background: rgba(95, 192, 143, .14); color: var(--green); }
.pill.amber { background: rgba(224, 168, 74, .14); color: var(--amber); }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ------------------------------------------------------------------ sections */
section { position: relative; }
.section { padding: 110px 0; }
.section.tight { padding: 80px 0; }
.kicker { font: 500 13px/1 "JetBrains Mono", monospace; letter-spacing: .14em; text-transform: uppercase; color: var(--blueL); margin-bottom: 18px; }
.title { font-size: clamp(32px, 4.4vw, 54px); letter-spacing: -.03em; }
.subtitle { color: var(--muted); font-size: clamp(16px, 1.5vw, 19px); max-width: 640px; margin-top: 18px; }
.center { text-align: center; }
.center .subtitle { margin-inline: auto; }
.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--line), transparent); }

/* logos strip */
.trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 36px; color: var(--dim); font-size: 15px; padding: 26px 0; }
.trust span { display: inline-flex; align-items: center; gap: 8px; }
.trust svg { width: 18px; height: 18px; color: var(--blueL); }

/* demo */
.demo {
  margin: 56px auto 0; max-width: 860px;
  background: linear-gradient(180deg, var(--card), #111319);
  border: 1px solid var(--border); border-radius: 30px; padding: 30px;
  box-shadow: 0 40px 100px -50px rgba(75, 148, 240, .45);
}
.demo-top { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 30px; }
.toggles { display: flex; flex-wrap: wrap; gap: 8px; }
.toggle {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  height: 36px; padding: 0 14px; border-radius: 999px; font-size: 14px;
  background: transparent; border: 1px solid var(--border2); color: var(--muted);
  transition: all .2s;
}
.toggle[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.demo-nav { display: flex; gap: 8px; }
.icon-btn { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--card2); border: 1px solid var(--border); cursor: pointer; color: var(--text2); transition: background .2s; }
.icon-btn:hover { background: var(--card3); }
.icon-btn svg { width: 18px; height: 18px; }
.sentence { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 10px; font-size: clamp(30px, 5vw, 48px); line-height: 1.75; min-height: 1.8em; }
.word {
  position: relative; cursor: pointer; padding: 0 10px; border-radius: 12px; border: 0; background: transparent;
  font: inherit; color: var(--text); transition: background .25s, color .25s, transform .2s var(--ease);
}
.word:hover { background: rgba(143, 168, 245, .1); }
.word.on { background: var(--blue); color: #fff; }
.word.picked { background: rgba(143, 168, 245, .2); box-shadow: 0 0 0 2px var(--blueL) inset; }
.translit { text-align: center; color: var(--muted); font-style: italic; font-size: 17px; margin-top: 6px; min-height: 1.6em; }
.translation { text-align: center; font-size: 20px; margin-top: 8px; min-height: 1.6em; }
.hidden-line { visibility: hidden; }
.progress { height: 3px; border-radius: 3px; background: var(--line); margin-top: 28px; overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; background: var(--blueL); border-radius: 3px; }
.word-card {
  margin-top: 26px; display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center;
  background: var(--card2); border: 1px solid var(--border); border-radius: 20px; padding: 18px 20px;
  transform-origin: top; animation: pop .35s var(--ease);
}
.word-card .big { font-size: 40px; line-height: 1.4; }
.word-card .meaning { font-size: 20px; font-weight: 600; }
.word-card .meta { color: var(--muted); font-size: 14px; display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 4px; }
.save { height: 40px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--border2); background: transparent; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; transition: all .2s; }
.save svg { width: 16px; height: 16px; }
.save.saved { background: var(--blueL); color: var(--bg); border-color: var(--blueL); }
.demo-hint { text-align: center; color: var(--dim); font-size: 14px; margin-top: 18px; }
@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(.98); } to { opacity: 1; transform: none; } }

/* features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 60px; }
.feature {
  position: relative; padding: 28px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line);
  transition: transform .35s var(--ease), border-color .3s, background .3s; overflow: hidden;
}
.feature::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .4s;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(143, 168, 245, .1), transparent 45%);
}
.feature:hover { transform: translateY(-4px); border-color: var(--border2); }
.feature:hover::before { opacity: 1; }
.f-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: rgba(143, 168, 245, .1); color: var(--blueL); margin-bottom: 22px; }
.f-icon svg { width: 24px; height: 24px; }
.feature h3 { font-size: 20px; margin-bottom: 10px; letter-spacing: -.01em; }
.feature p { color: var(--muted); font-size: 15.5px; }

/* split rows */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.split.rev .split-media { order: -1; }
.steps { list-style: none; padding: 0; margin: 34px 0 0; display: grid; gap: 14px; }
.step { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 18px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.step .n { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--blue); font: 600 15px "JetBrains Mono", monospace; }
.step h3 { font-size: 17px; margin-bottom: 4px; }
.step p { color: var(--muted); font-size: 15px; }
.split-media { position: relative; display: grid; place-items: center; }
.split-media .phone { width: 290px; }
.duo { display: flex; gap: 22px; justify-content: center; align-items: flex-start; }
.duo .phone { width: 250px; }
.duo .phone:nth-child(2) { margin-top: 60px; }
.mode-tags { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 30px; }
.mode { flex: 1 1 220px; padding: 20px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.mode h3 { font-size: 18px; margin: 10px 0 6px; }
.mode p { color: var(--muted); font-size: 15px; }

/* review */
.review-box { display: grid; place-items: center; gap: 22px; }
.flash { width: min(340px, 100%); aspect-ratio: 3 / 4; perspective: 1200px; cursor: pointer; border: 0; background: transparent; padding: 0; }
.flash-inner { position: relative; width: 100%; height: 100%; transition: transform .7s var(--ease); transform-style: preserve-3d; }
.flash.flipped .flash-inner { transform: rotateY(180deg); }
.face {
  position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  border-radius: 28px; padding: 28px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  background: linear-gradient(160deg, #1f2433, #14161d); border: 1px solid var(--border2);
  box-shadow: 0 40px 90px -40px rgba(75, 148, 240, .55);
}
.face.back { transform: rotateY(180deg); background: linear-gradient(160deg, #22325f, #151b2e); }
.face .ar { font-size: 58px; line-height: 1.9; }
.face.front .t { margin-top: 6px; }
.face .t { color: var(--muted); font-size: 15px; }
.face .top { position: absolute; top: 20px; left: 22px; right: 22px; display: flex; justify-content: space-between; }
.face .ctx { font-size: 15px; color: var(--text2); text-align: center; margin-top: 8px; }
.face .ctx .ar { font-size: 22px; }
.grades { display: flex; gap: 8px; }
.grade { height: 42px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--border2); background: var(--card2); cursor: pointer; font-size: 14px; transition: all .2s; }
.grade:hover { background: var(--card3); }
.grade.g-again { color: var(--red); }
.grade.g-good { color: var(--blueL); }
.grade.g-easy { color: var(--green); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.chip { padding: 8px 14px; border-radius: 999px; background: var(--card2); border: 1px solid var(--border); font-size: 14px; color: var(--text2); }

/* private */
.private {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items: center;
  padding: 50px; border-radius: 32px; background: linear-gradient(135deg, rgba(95, 192, 143, .08), rgba(47, 75, 154, .12)); border: 1px solid var(--line);
}
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.checks li { display: flex; gap: 14px; align-items: flex-start; font-size: 16px; }
.checks svg { flex: none; width: 24px; height: 24px; color: var(--green); margin-top: 1px; }
.shield { display: grid; place-items: center; }
.shield-core { width: 190px; height: 190px; border-radius: 50%; display: grid; place-items: center; background: rgba(95, 192, 143, .1); box-shadow: 0 0 0 26px rgba(95, 192, 143, .05), 0 0 0 54px rgba(95, 192, 143, .025); }
.shield-core svg { width: 84px; height: 84px; color: var(--green); }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 380px)); gap: 20px; justify-content: center; margin-top: 56px; }
.plan { position: relative; padding: 34px 30px; border-radius: 26px; background: var(--card); border: 1px solid var(--border); display: flex; flex-direction: column; }
.plan.best { border: 2px solid var(--blueL); background: linear-gradient(180deg, rgba(47, 75, 154, .22), var(--card) 60%); box-shadow: 0 40px 90px -45px rgba(75, 148, 240, .6); }
.plan .badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--blueL); color: var(--bg); font: 600 11px/1 "JetBrains Mono", monospace; letter-spacing: .08em; padding: 7px 12px; border-radius: 999px; white-space: nowrap; }
.plan h3 { font-size: 20px; }
.price { font-size: 46px; font-weight: 600; letter-spacing: -.03em; margin: 16px 0 2px; }
.price span { font-size: 17px; color: var(--muted); font-weight: 400; letter-spacing: 0; }
.plan .per { color: var(--muted); font-size: 15px; }
.plan ul { list-style: none; padding: 0; margin: 26px 0 30px; display: grid; gap: 12px; flex: 1; align-content: start; }
.plan li { display: flex; gap: 10px; font-size: 15.5px; color: var(--text2); }
.plan li svg { flex: none; width: 20px; height: 20px; color: var(--blueL); margin-top: 2px; }
.plan .btn { width: 100%; }
.price-note { text-align: center; color: var(--dim); font-size: 14px; margin-top: 26px; max-width: 640px; margin-inline: auto; }

/* timeline */
.timeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; max-width: 820px; margin: 60px auto 0; position: relative; }
.timeline::before { content: ""; position: absolute; top: 22px; left: 16%; right: 16%; height: 2px; background: linear-gradient(90deg, var(--blueL), rgba(143, 168, 245, .15)); }
.tl { text-align: center; padding: 0 12px; position: relative; }
.tl .dot { width: 46px; height: 46px; border-radius: 50%; margin: 0 auto 14px; display: grid; place-items: center; background: var(--card2); border: 2px solid rgba(143, 168, 245, .35); color: var(--blueL); }
.tl:first-child .dot { background: var(--blueL); color: var(--bg); border-color: var(--blueL); }
.tl .dot svg { width: 20px; height: 20px; }
.tl h3 { font-size: 17px; margin-bottom: 4px; }
.tl p { color: var(--muted); font-size: 14.5px; }

/* faq */
.faq { max-width: 820px; margin: 50px auto 0; display: grid; gap: 10px; }
.faq details { border-radius: 18px; background: var(--card); border: 1px solid var(--line); overflow: hidden; transition: border-color .3s; }
.faq details[open] { border-color: var(--border2); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 22px; display: flex; justify-content: space-between; gap: 16px; align-items: center; font-weight: 500; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--card2); display: grid; place-items: center; transition: transform .3s var(--ease); }
.faq summary .plus svg { width: 14px; height: 14px; }
.faq details[open] .plus { transform: rotate(45deg); }
.faq .answer { padding: 0 22px 22px; color: var(--muted); font-size: 15.5px; }

/* cta */
.cta {
  position: relative; overflow: hidden; text-align: center;
  padding: 80px 30px; border-radius: 36px;
  background: radial-gradient(800px 400px at 50% 0%, rgba(75, 148, 240, .35), transparent 70%), linear-gradient(180deg, #16203d, #0f1322);
  border: 1px solid rgba(143, 168, 245, .2);
}
.cta img.logo { width: 120px; height: auto; margin: 0 auto 26px; filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .5)); }
.cta .store-row { justify-content: center; margin-top: 34px; }
.cta .ar-bg { position: absolute; font-size: 260px; opacity: .04; top: -40px; left: -20px; line-height: 1; pointer-events: none; }
.cta .ar-bg.r { left: auto; right: -30px; top: auto; bottom: -90px; }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 50px 0 40px; margin-top: 110px; color: var(--muted); font-size: 15px; }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.foot h4 { margin: 0 0 14px; color: var(--text); font-size: 14px; font-weight: 600; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot a { color: var(--muted); }
.foot a:hover { color: var(--text); }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--dim); }

/* ------------------------------------------------------------------ docs (legal, support) */
.doc-hero { padding: 70px 0 30px; }
.doc-hero h1 { font-size: clamp(36px, 5vw, 56px); letter-spacing: -.03em; }
.doc-hero .updated { margin-top: 14px; color: var(--dim); font-size: 14px; }
.doc { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 60px; align-items: start; padding-bottom: 40px; }
.toc { position: sticky; top: 100px; display: grid; gap: 2px; font-size: 14px; }
.toc a { color: var(--muted); padding: 7px 12px; border-radius: 10px; border-left: 2px solid transparent; }
.toc a:hover { color: var(--text); background: var(--card); }
.toc a.active { color: var(--text); background: var(--card); border-left-color: var(--blueL); }
.prose { max-width: 720px; color: var(--text2); font-size: 16.5px; line-height: 1.75; }
.prose h2 { font-size: 24px; margin: 46px 0 14px; color: var(--text); scroll-margin-top: 100px; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin: 0 0 14px; }
.prose ul { padding-left: 22px; margin: 0 0 14px; }
.prose li { margin-bottom: 6px; }
.prose strong { color: var(--text); font-weight: 600; }
.prose .intro { font-size: 19px; color: var(--text); margin-bottom: 30px; }
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 30px 0 10px; }
.card { display: block; padding: 24px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); color: var(--text); transition: border-color .3s, transform .3s var(--ease); }
a.card:hover { color: var(--text); border-color: var(--border2); transform: translateY(-2px); }
.card h3 { font-size: 18px; margin: 14px 0 6px; }
.card p { color: var(--muted); font-size: 15px; }
.card .f-icon { margin-bottom: 0; }
.steps-list { counter-reset: s; list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 10px; }
.steps-list li { counter-increment: s; display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; }
.steps-list li::before { content: counter(s); width: 30px; height: 30px; border-radius: 9px; background: var(--card2); border: 1px solid var(--border); display: grid; place-items: center; font: 600 13px "JetBrains Mono", monospace; color: var(--blueL); }
.notice { padding: 18px 20px; border-radius: 16px; background: rgba(224, 168, 74, .08); border: 1px solid rgba(224, 168, 74, .25); color: var(--text2); font-size: 15px; margin: 20px 0; }

/* 404 */
.lost { min-height: 70vh; display: grid; place-items: center; text-align: center; }
.lost .ar { font-size: 120px; line-height: 1.3; color: var(--blueL); }

/* ------------------------------------------------------------------ reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------------ responsive */
@media (max-width: 1020px) {
  .hero-grid, .split, .private { grid-template-columns: 1fr; }
  .hero { padding-top: 40px; }
  .hero-copy { text-align: center; }
  .hero .lead { margin-inline: auto; }
  .hero .store-row { justify-content: center; }
  .phone-stage { min-height: 560px; }
  .split.rev .split-media { order: 0; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .private { padding: 36px; }
  .doc { grid-template-columns: 1fr; gap: 20px; }
  .toc { position: static; display: flex; flex-wrap: wrap; gap: 6px; }
  .toc a { border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  :root { --page: calc(100% - 32px); }
  .nav-links {
    position: fixed; inset: 70px 0 auto 0; flex-direction: column; gap: 0; padding: 10px 16px 20px;
    background: rgba(11, 12, 16, .97); border-bottom: 1px solid var(--line);
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: all .3s var(--ease);
  }
  .nav-links a { padding: 14px 4px; font-size: 18px; border-bottom: 1px solid var(--line); }
  .nav-open .nav-links { transform: none; opacity: 1; pointer-events: auto; }
  .nav-toggle { display: block; }
  .nav .btn-sm { display: none; }
  .section { padding: 80px 0; }
  .phone { width: 250px; border-radius: 40px; padding: 8px; }
  .phone img { border-radius: 33px; }
  .phone-stage { min-height: 520px; }
  .float.f1 { left: 0; top: 12%; }
  .float.f2 { right: 0; bottom: 14%; }
  .float.f3 { display: none; }
  .features { grid-template-columns: 1fr; }
  .duo .phone { width: 46%; }
  .duo .phone:nth-child(2) { margin-top: 40px; }
  .plans { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; gap: 26px; }
  .timeline::before { top: 22px; bottom: 22px; left: 22px; right: auto; width: 2px; height: auto; background: linear-gradient(180deg, var(--blueL), rgba(143, 168, 245, .15)); }
  .tl { text-align: left; display: grid; grid-template-columns: 46px 1fr; gap: 16px; padding: 0; }
  .tl .dot { margin: 0; }
  .demo { padding: 20px 16px; border-radius: 24px; }
  .word { padding: 0 6px; }
  .word-card { grid-template-columns: 1fr; text-align: center; }
  .word-card .meta { justify-content: center; }
  .private { padding: 26px 20px; gap: 30px; }
  .shield-core { width: 140px; height: 140px; }
  .cta { padding: 56px 20px; border-radius: 28px; }
  .foot { grid-template-columns: 1fr 1fr; }
  .foot > div:first-child { grid-column: 1 / -1; }
  .cards { grid-template-columns: 1fr; }
  .store { height: 56px; }
}
