/* ==========================================================================
   Lectuna Classroom — site
   Tokens come from the app (lib/core/theme.dart) so the site and the app read
   as one product. The one addition is --caption: subtitle gold, reserved for
   translated captions and the primary download action.
   ========================================================================== */

@font-face { font-family: "Vazirmatn"; src: url("../fonts/vazirmatn-arabic-wght-normal.05d9ce2a23d3.woff2") format("woff2");
  font-weight: 100 900; font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Vazirmatn"; src: url("../fonts/vazirmatn-latin-wght-normal.e7eada615dc3.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: "Naskh"; src: url("../fonts/noto-naskh-arabic-arabic-500-normal.e9c39d20be11.woff2") format("woff2"); font-weight: 400 500; font-display: swap; }
@font-face { font-family: "Naskh"; src: url("../fonts/noto-naskh-arabic-arabic-600-normal.4d5244016bf6.woff2") format("woff2"); font-weight: 600 800; font-display: swap; }
@font-face { font-family: "Math"; src: url("../fonts/stix-two-text-latin-500-italic.36a8d099cb9a.woff2") format("woff2"); font-style: italic; font-display: swap; }
@font-face { font-family: "Math"; src: url("../fonts/stix-two-text-latin-500-normal.de13a76511a6.woff2") format("woff2"); font-style: normal; font-display: swap; }

:root {
  --night: #120D2B;
  --night-2: #1C1540;
  --night-line: rgba(255,255,255,.12);
  --violet: #7C3AED;
  --violet-soft: #EEE7FD;
  --blue: #3654F4;
  --paper: #FBFAFE;
  --mist: #F1EDFB;
  --line: #E7E0F7;
  --ink: #15122B;
  --muted: #6E6A85;
  --caption: #F4B740;
  --live: #1FA971;
  --red: #D64550;

  --font: "Vazirmatn", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  --font-caption: "Naskh", "Vazirmatn", serif;
  --font-math: "Math", "Cambria Math", "Times New Roman", serif;

  --wrap: 1180px;
  --r-lg: 28px;
  --r-md: 18px;
  --r-sm: 10px;
  --shadow: 0 30px 80px -30px rgba(18,13,43,.45);
  --ease: cubic-bezier(.2,.7,.2,1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--paper);
  font-size: 17px; line-height: 1.85; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
body.lang-en { line-height: 1.6; font-size: 17px; }
img, svg { max-width: 100%; }
a { color: var(--violet); text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2, h3, h4 { margin: 0; line-height: 1.35; font-weight: 800; }
.lang-en h1, .lang-en h2, .lang-en h3 { line-height: 1.15; letter-spacing: -.015em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--caption); outline-offset: 3px; border-radius: 6px; }
.sr, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--caption); color: var(--night); padding: 8px 14px; border-radius: 8px; z-index: 100; font-weight: 700; }
.skip:focus { top: 12px; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 40px); }
.muted { color: var(--muted); }
.ico { flex: none; }

/* bidi-safe math — the same job utils/bidi.dart does in the app */
.m { font-family: var(--font-math); font-style: italic; unicode-bidi: isolate; white-space: nowrap; font-weight: 500; letter-spacing: .01em; }

/* ------------------------------------------------------------------ type */
.h2 { font-size: clamp(1.7rem, 1.1rem + 2vw, 2.55rem); }
.h3 { font-size: 1.35rem; margin-bottom: 18px; }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 62ch; margin-top: 14px; }
.night .lead { color: rgba(255,255,255,.72); }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: .95rem; color: var(--violet); margin-bottom: 18px; }
.night .kicker { color: var(--caption); }
.section { padding-block: clamp(64px, 8vw, 112px); }
.section.tight-top { padding-top: 24px; }
.section.mist { background: var(--mist); }
.section-head { margin-bottom: clamp(32px, 4vw, 52px); }
.night { background: var(--night); color: #fff; }

/* ------------------------------------------------------------------ buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 10px 22px;
  border-radius: 999px; font-weight: 700; font-size: 1rem; text-decoration: none; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .15s var(--ease), background-color .15s, border-color .15s, color .15s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 40px; padding: 6px 16px; font-size: .92rem; }
.btn-lg { min-height: 54px; padding-inline: 28px; font-size: 1.05rem; }
.btn-primary { background: var(--violet); color: #fff; }
.btn-primary:hover { background: #6A2BD9; }
.btn-gold { background: var(--caption); color: var(--night); }
.btn-gold:hover { background: #FFC85A; }
.btn-light { background: #fff; color: var(--night); }
.btn-light:hover { background: var(--mist); }
.btn-outline { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-outline:hover { border-color: var(--violet); color: var(--violet); }
.btn-outline-light { border-color: rgba(255,255,255,.35); color: #fff; }
.btn-outline-light:hover { border-color: #fff; background: rgba(255,255,255,.06); }
.btn-ghost { background: var(--mist); color: var(--violet); }
.btn-ghost:hover { background: var(--violet-soft); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; margin-top: 22px; }
.link-arrow::after { content: ""; width: 18px; height: 2px; background: currentColor; transition: width .2s var(--ease); }
.link-arrow:hover::after { width: 28px; }
.link-arrow.light { color: #fff; }

/* ------------------------------------------------------------------ announce + header */
.announce { background: var(--caption); color: var(--night); font-weight: 700; font-size: .92rem; text-align: center; padding: 8px 0; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(18,13,43,.92); backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--night-line); color: #fff; }
.header-row { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: #fff; text-decoration: none; }
.brand-mark { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center;
  background: linear-gradient(145deg, #8B4CF0, #3654F4); box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }
.brand-mark img { width: 15px; height: auto; }
.brand-word { font-weight: 800; font-size: 1.15rem; letter-spacing: -.01em; direction: ltr; display: inline-flex; align-items: baseline; gap: 6px; font-family: "Vazirmatn", sans-serif; }
.brand-sub { font-weight: 500; font-size: .82rem; color: rgba(255,255,255,.6); }
.main-nav { display: flex; gap: 4px; margin-inline-start: auto; }
.main-nav a { color: rgba(255,255,255,.78); text-decoration: none; font-weight: 600; font-size: .96rem; padding: 8px 12px; border-radius: 999px; }
.main-nav a:hover { color: #fff; background: rgba(255,255,255,.07); }
.main-nav a[aria-current="page"] { color: #fff; background: rgba(255,255,255,.12); }
.nav-web-mobile { display: none; }
.header-tools { display: flex; align-items: center; gap: 12px; }
.lang-menu { position: relative; }
.lang-menu summary { list-style: none; display: inline-flex; align-items: center; gap: 7px; cursor: pointer; color: rgba(255,255,255,.85);
  font-size: .92rem; font-weight: 600; padding: 8px 10px; border-radius: 999px; }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary:hover { background: rgba(255,255,255,.07); }
.lang-list { position: absolute; inset-inline-end: 0; top: calc(100% + 8px); background: #fff; border-radius: 14px; padding: 6px; min-width: 150px;
  box-shadow: var(--shadow); display: grid; }
.lang-list a { color: var(--ink); text-decoration: none; padding: 9px 14px; border-radius: 9px; font-weight: 600; }
.lang-list a:hover { background: var(--mist); }
.lang-list a[aria-current="true"] { color: var(--violet); background: var(--violet-soft); }
.burger { display: none; width: 44px; height: 44px; border: 0; background: transparent; border-radius: 12px; cursor: pointer; position: relative; }
.burger span, .burger span::before, .burger span::after { position: absolute; width: 20px; height: 2px; background: #fff; border-radius: 2px;
  inset-inline-start: 12px; transition: transform .2s var(--ease), opacity .2s; content: ""; }
.burger span { top: 21px; } .burger span::before { top: -6px; inset-inline-start: 0; } .burger span::after { top: 6px; inset-inline-start: 0; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* ------------------------------------------------------------------ HERO + STAGE */
.hero { padding-top: clamp(56px, 8vw, 104px); position: relative; overflow-x: clip; display: flow-root; }
.hero::before { /* the only atmospheric element: a single soft light behind the stage */
  content: ""; position: absolute; inset-inline: 10% 10%; top: 42%; height: 60%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(124,58,237,.42), rgba(54,84,244,.14) 60%, transparent); filter: blur(20px); pointer-events: none; }
.hero-copy { position: relative; max-width: var(--wrap); }
.hero-title { font-size: clamp(2.1rem, 1.1rem + 4.2vw, 4.2rem); font-weight: 900; max-width: 23ch; line-height: 1.22; letter-spacing: -.01em; }
.lang-en .hero-title { max-width: 20ch; line-height: 1.06; letter-spacing: -.03em; }
.hero-lead { font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); color: rgba(255,255,255,.74); max-width: 60ch; margin-top: 22px; }
.light .hero-lead, .page-hero.light .hero-lead { color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-web { margin-top: 18px; font-size: .92rem; color: rgba(255,255,255,.58); }
.hero-web a { color: #fff; font-weight: 600; }

.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 0 rgba(31,169,113,.6); animation: pulse 2s infinite; flex: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(31,169,113,.55); } 70% { box-shadow: 0 0 0 9px rgba(31,169,113,0); } 100% { box-shadow: 0 0 0 0 rgba(31,169,113,0); } }

.stage-wrap { position: relative; margin-top: clamp(44px, 6vw, 72px); margin-bottom: -150px; z-index: 2; }
.stage { margin: 0; background: #0B0820; border: 1px solid rgba(255,255,255,.1); border-radius: var(--r-lg); box-shadow: var(--shadow), 0 0 0 8px rgba(255,255,255,.03);
  overflow: hidden; color: #fff; }
.stage-top { display: flex; align-items: center; gap: 16px; padding: 14px 22px; border-bottom: 1px solid rgba(255,255,255,.08); font-size: .9rem; }
.stage-live { display: inline-flex; align-items: center; gap: 8px; color: #7EE2B5; font-weight: 700; background: rgba(31,169,113,.14); padding: 4px 12px; border-radius: 999px; }
.stage-class { font-weight: 700; color: rgba(255,255,255,.9); }
.stage-meta { margin-inline-start: auto; display: inline-flex; align-items: center; gap: 16px; color: rgba(255,255,255,.6); }
.stage-people { display: inline-flex; align-items: center; gap: 6px; }
.bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; direction: ltr; }
.bars i { width: 3px; background: var(--live); border-radius: 1px; }
.bars i:nth-child(1) { height: 25%; } .bars i:nth-child(2) { height: 50%; } .bars i:nth-child(3) { height: 75%; } .bars i:nth-child(4) { height: 100%; }

.stage-body { display: grid; grid-template-columns: 1fr auto 1.25fr; align-items: stretch; }
.speech { padding: 26px 26px 30px; }
.speech-head { display: flex; align-items: center; gap: 10px; font-size: .88rem; color: rgba(255,255,255,.6); font-weight: 600; margin-bottom: 16px; }
.chip-lang { font-size: .78rem; padding: 2px 10px; border-radius: 999px; background: rgba(255,255,255,.08); color: rgba(255,255,255,.75); }
.wave { display: inline-flex; align-items: center; gap: 3px; height: 22px; direction: ltr; }
.wave i { width: 3px; height: 30%; border-radius: 2px; background: var(--violet); animation: wave 1.1s ease-in-out infinite; }
.wave i:nth-child(2) { animation-delay: .1s; } .wave i:nth-child(3) { animation-delay: .25s; } .wave i:nth-child(4) { animation-delay: .05s; }
.wave i:nth-child(5) { animation-delay: .3s; } .wave i:nth-child(6) { animation-delay: .15s; } .wave i:nth-child(7) { animation-delay: .4s; }
.stage.is-quiet .wave i { animation-play-state: paused; height: 20%; }
@keyframes wave { 0%,100% { height: 22%; } 50% { height: 100%; } }
.speech-text { font-size: 1.28rem; line-height: 1.95; min-height: 3.9em; color: rgba(255,255,255,.9); font-weight: 500; font-family: "Vazirmatn", sans-serif; }
.speech-text .spoken { color: #C9B6FF; background: rgba(124,58,237,.22); border-radius: 6px; padding: 1px 6px; box-decoration-break: clone; -webkit-box-decoration-break: clone; transition: opacity .3s; }
.speech-text .spoken.out { opacity: 0; }
.speech-text .spoken:empty { padding: 0; }
.speech-text .m { color: #fff; background: rgba(244,183,64,.16); box-shadow: inset 0 -2px 0 var(--caption); padding: 0 6px; border-radius: 4px; animation: pop .45s var(--ease); display: inline-block; }
.speech-text .caret { display: inline-block; width: 2px; height: 1.1em; background: rgba(255,255,255,.7); vertical-align: -3px; margin-inline-start: 2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@keyframes pop { from { transform: scale(.85); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.pipeline { display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 20px 6px; position: relative; }
.pipeline::before { content: ""; position: absolute; top: 22px; bottom: 22px; inset-inline-start: 50%; width: 1px; background: rgba(255,255,255,.1); }
.pipeline li { position: relative; font-size: .76rem; font-weight: 700; color: rgba(255,255,255,.38); background: #0B0820; border: 1px solid rgba(255,255,255,.1);
  padding: 5px 12px; border-radius: 999px; text-align: center; white-space: nowrap; transition: color .3s, border-color .3s, background-color .3s; }
.pipeline li.on { color: var(--night); background: var(--caption); border-color: var(--caption); }
.pipeline li.done { color: rgba(255,255,255,.85); border-color: rgba(244,183,64,.5); }

.caption-screen { background: #000; display: flex; flex-direction: column; border-inline-start: 1px solid rgba(255,255,255,.08); }
.caption-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 22px 0; font-size: .85rem; color: rgba(255,255,255,.5); font-weight: 600; }
.caption-langs { display: inline-flex; background: rgba(255,255,255,.07); border-radius: 999px; padding: 3px; }
.caption-langs button { border: 0; background: transparent; color: rgba(255,255,255,.65); padding: 4px 12px; border-radius: 999px; cursor: pointer; font-size: .82rem; font-weight: 700; }
.caption-langs button[aria-pressed="true"] { background: var(--caption); color: var(--night); }
.captions { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 12px; padding: 18px 26px 28px; min-height: 230px; overflow: hidden; }
.cap-line { font-family: var(--font-caption); font-weight: 600; font-size: clamp(1.25rem, 1rem + .8vw, 1.6rem); line-height: 1.7; color: var(--caption); transition: opacity .5s, font-size .5s;
  animation: capIn .6s var(--ease); }
.cap-line[lang="en"] { font-family: var(--font); font-weight: 600; line-height: 1.45; }
.cap-line.old { opacity: .38; font-size: 1.05rem; color: #fff; }
.cap-line .m { color: inherit; }
@keyframes capIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.stage-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 22px; border-top: 1px solid rgba(255,255,255,.08);
  font-size: .82rem; color: rgba(255,255,255,.5); }
.stage-toggle { width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); background: transparent; color: #fff; cursor: pointer; display: grid; place-items: center; flex: none; }
.stage-toggle:hover { background: rgba(255,255,255,.08); }

/* ------------------------------------------------------------------ context */
.context { padding-top: calc(150px + clamp(56px, 7vw, 96px)); }
.narrow-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.pain-list li { padding-block: 22px; border-top: 1px solid var(--line); }
.pain-list li:last-child { border-bottom: 1px solid var(--line); }
.pain-list h3 { font-size: 1.15rem; margin-bottom: 6px; }
.pain-list p { color: var(--muted); }

/* ------------------------------------------------------------------ journey timeline */
.journey { background: var(--mist); }
.timeline { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 0; counter-reset: s; }
.tl-stage { padding-inline-end: clamp(20px, 3vw, 40px); }
.tl-marker { display: flex; align-items: center; gap: 12px; padding-bottom: 20px; margin-bottom: 26px; position: relative; }
.tl-marker::after { content: ""; position: absolute; bottom: 0; inset-inline-start: 0; inset-inline-end: calc(-1 * clamp(20px, 3vw, 40px)); height: 2px; background: linear-gradient(to var(--tl-dir, left), var(--violet), var(--blue)); opacity: .35; }
[dir="rtl"] .tl-marker::after { --tl-dir: left; }
[dir="ltr"] .tl-marker::after { --tl-dir: right; }
.tl-stage:last-child .tl-marker::after { inset-inline-end: 0; }
.tl-num { width: 38px; height: 38px; border-radius: 50%; background: var(--violet); color: #fff; display: grid; place-items: center; font-weight: 800; flex: none; position: relative; z-index: 1; }
.tl-stage:nth-child(2) .tl-num { background: #5A47F2; } .tl-stage:nth-child(3) .tl-num { background: var(--blue); }
.tl-marker h3 { font-size: 1.3rem; }
.tl-items li { margin-bottom: 24px; }
.tl-items h4 { font-size: 1.04rem; margin-bottom: 4px; }
.tl-items p { color: var(--muted); font-size: .98rem; }

/* ------------------------------------------------------------------ accuracy */
.acc { display: grid; grid-template-columns: minmax(200px, 260px) 1fr; gap: clamp(20px, 4vw, 48px); align-items: start; }
.acc-tabs { display: grid; gap: 6px; }
.acc-tabs button, .scr-tabs button { text-align: start; border: 0; background: transparent; padding: 12px 16px; border-radius: 12px; cursor: pointer; font-weight: 700; color: var(--muted); font-size: 1rem; border-inline-start: 3px solid transparent; }
.acc-tabs button:hover { color: var(--ink); background: var(--mist); }
.acc-tabs button[aria-selected="true"] { color: var(--violet); background: var(--violet-soft); border-inline-start-color: var(--violet); border-radius: 4px 12px 12px 4px; }
[dir="rtl"] .acc-tabs button[aria-selected="true"] { border-radius: 12px 4px 4px 12px; }
.specimen { display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.spec-heard, .spec-shown { padding: 26px 28px 30px; }
.spec-heard { background: repeating-linear-gradient(-45deg, #FAF8FF, #FAF8FF 8px, #F5F1FF 8px, #F5F1FF 16px); }
.spec-label { display: block; font-size: .82rem; font-weight: 700; color: var(--muted); margin-bottom: 10px; }
.spec-heard p { font-size: 1.15rem; color: #57517A; line-height: 1.9; }
.spec-shown p { font-size: 1.35rem; font-weight: 700; line-height: 1.75; }
.spec-shown p.is-formula { font-size: 2rem; direction: ltr; text-align: center; }
.spec-shown p.is-arabic { font-family: var(--font-caption); font-size: 1.55rem; }
.spec-arrow { display: grid; place-items: center; padding-inline: 4px; color: var(--violet); background: linear-gradient(to right, #F5F1FF 50%, #fff 50%); }
[dir="rtl"] .spec-arrow { background: linear-gradient(to left, #F5F1FF 50%, #fff 50%); }
[dir="rtl"] .spec-arrow svg { transform: scaleX(-1); }
.spec-arrow svg { background: #fff; border: 1px solid var(--line); border-radius: 50%; padding: 8px; width: 40px; height: 40px; }
.acc-why { margin-top: 20px; color: var(--muted); max-width: 70ch; }
.acc-panel { animation: fade .3s var(--ease); }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ------------------------------------------------------------------ screens */
.screens { position: relative; overflow: hidden; }
.scr { display: grid; grid-template-columns: minmax(200px, 260px) 1fr; gap: clamp(20px, 4vw, 56px); align-items: center; }
.scr-tabs { display: grid; gap: 6px; }
.scr-tabs button { color: rgba(255,255,255,.6); }
.scr-tabs button:hover { color: #fff; background: rgba(255,255,255,.05); }
.scr-tabs button[aria-selected="true"] { color: #fff; background: rgba(255,255,255,.08); border-inline-start-color: var(--caption); }
.scr-panel { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; animation: fade .35s var(--ease); }
.scr-panel[hidden] { display: none; }
.scr-cap { font-size: 1.12rem; color: rgba(255,255,255,.78); max-width: 38ch; }

.phone { width: 300px; height: 620px; border-radius: 44px; padding: 10px; background: #1F1A38; box-shadow: 0 40px 90px -30px rgba(0,0,0,.7), inset 0 0 0 1.5px rgba(255,255,255,.14); }
.ph { width: 100%; height: 100%; border-radius: 35px; overflow: hidden; background: #FBFAFE; color: var(--ink); display: flex; flex-direction: column; font-size: 12px; line-height: 1.6; position: relative; }
.ph::before { content: ""; position: absolute; top: 9px; left: 50%; transform: translateX(-50%); width: 84px; height: 22px; border-radius: 14px; background: #0B0820; z-index: 2; }
.ph-bar { display: flex; align-items: center; gap: 10px; padding: 40px 16px 10px; background: #fff; border-bottom: 1px solid var(--line); }
.ph-bar b { font-size: 13.5px; flex: 1; }
.ph-back { font-size: 20px; line-height: 1; color: var(--muted); }
.ph-ic { color: var(--violet); display: inline-flex; min-width: 16px; }
.ph-status { display: flex; align-items: center; gap: 6px; padding: 6px 14px; background: #E6F6EF; color: #137A52; font-weight: 700; font-size: 11px; }
.ok-dot { width: 7px; height: 7px; background: var(--live); border-radius: 50%; }
.ph-status-end { margin-inline-start: auto; display: inline-flex; align-items: center; gap: 6px; color: #3C6B58; }
.mini-bars { display: inline-flex; align-items: flex-end; gap: 1.5px; height: 10px; direction: ltr; }
.mini-bars i { width: 2px; background: var(--live); } .mini-bars i:nth-child(1){height:30%}.mini-bars i:nth-child(2){height:55%}.mini-bars i:nth-child(3){height:80%}.mini-bars i:nth-child(4){height:100%}
.ph-board { margin: 10px; background: #fff; border: 1.5px solid #D9D2EE; border-radius: 12px; position: relative; padding: 4px; }
.ph-board svg { display: block; width: 100%; height: auto; }
.ph-board-tag { position: absolute; top: 6px; inset-inline-start: 8px; font-size: 10px; font-weight: 700; color: var(--muted); }
.ph-captions { flex: 1; padding: 4px 12px; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; overflow: hidden; }
.ph-captions .cap { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; }
.ph-captions .cap.old { opacity: .55; }
.cap-src { color: var(--muted); font-size: 10.5px; }
.cap-tr { font-family: var(--font-caption); font-size: 14.5px; font-weight: 600; line-height: 1.65; }
.ph-captions.compact { justify-content: flex-start; padding-top: 8px; }
.ph-bottom { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px 18px; }
.ph-pill { display: inline-flex; align-items: center; gap: 6px; background: var(--violet); color: #fff; font-weight: 700; padding: 8px 14px; border-radius: 999px; }
.ph-pill em { font-style: normal; background: var(--red); border-radius: 999px; padding: 0 6px; font-size: 10px; }
.ph-round { width: 40px; height: 40px; border-radius: 50%; background: var(--mist); color: var(--violet); display: grid; place-items: center; }
.ph-paper-bg { flex: 1; background: #E9E5F4; padding: 12px; overflow: hidden; }
.ph-paper { background: #fff; border-radius: 4px; padding: 16px 16px; box-shadow: 0 2px 8px rgba(21,18,43,.12); font-size: 10.5px; line-height: 1.8; font-family: var(--font-caption); }
.ph-paper h5 { font-size: 14px; margin: 0 0 8px; color: var(--violet); font-family: var(--font); }
.pp-kicker { color: var(--muted); font-size: 9px; font-family: var(--font); }
.pp-h { font-weight: 700; margin-top: 8px; font-family: var(--font); font-size: 11px; }
.pp-formula { text-align: center; background: var(--mist); border-radius: 6px; padding: 5px; margin: 6px 0; font-size: 11.5px; }
.ph-paper ul { list-style: disc; padding-inline-start: 16px; }
.ph-pager { display: flex; justify-content: center; align-items: center; gap: 18px; padding: 10px 0 18px; color: var(--muted); font-size: 14px; }
.ph-pager b { font-size: 12px; color: var(--ink); }
.ph-board.small { margin-bottom: 6px; }
.ph-seg { display: flex; margin: 4px 12px; background: var(--mist); border-radius: 999px; padding: 3px; }
.ph-seg span { flex: 1; text-align: center; padding: 4px; border-radius: 999px; font-weight: 700; color: var(--muted); }
.ph-seg .on { background: #fff; color: var(--violet); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.ph-player { padding: 10px 16px 20px; background: #fff; border-top: 1px solid var(--line); }
.pl-track { height: 4px; background: var(--mist); border-radius: 4px; position: relative; direction: ltr; }
.pl-fill { position: absolute; inset: 0 74% 0 0; background: var(--violet); border-radius: 4px; }
.pl-knob { position: absolute; left: 26%; top: 50%; width: 12px; height: 12px; border-radius: 50%; background: var(--violet); transform: translate(-50%,-50%); }
.pl-times { display: flex; justify-content: space-between; color: var(--muted); font-size: 10px; margin-top: 4px; direction: ltr; }
.pl-ctrl { display: flex; justify-content: center; align-items: center; gap: 28px; margin-top: 4px; color: var(--ink); font-weight: 700; }
.pl-play { width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(145deg, #8B4CF0, #3654F4); color: #fff; display: grid; place-items: center; font-size: 12px; }
.ph-list { flex: 1; padding: 12px; display: flex; flex-direction: column; gap: 8px; overflow: hidden; }
.as-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.as-card b { display: block; font-size: 12px; }
.as-card span { color: var(--muted); font-size: 10.5px; }
.due { font-style: normal; font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--mist); color: var(--muted); white-space: nowrap; }
.due.warn { background: #FDF3DD; color: #9A6A05; } .due.ok { background: #E6F6EF; color: #137A52; } .due.late { background: #FBE9EB; color: var(--red); }
.as-submit { background: #fff; border: 1.5px solid var(--violet); border-radius: 12px; padding: 10px 12px; display: grid; gap: 7px; }
.as-field { border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; color: var(--muted); min-height: 38px; }
.as-files { display: flex; gap: 6px; } .as-files span { display: inline-flex; gap: 4px; align-items: center; background: var(--mist); padding: 2px 8px; border-radius: 6px; font-size: 10.5px; }
.as-btn { background: linear-gradient(145deg, #8B4CF0, #3654F4); color: #fff; text-align: center; border-radius: 10px; padding: 7px; font-weight: 700; }
.pr-head { background: linear-gradient(135deg, #8B4CF0, #3654F4); color: #fff; border-radius: 14px; padding: 14px; }
.pr-head b { font-size: 16px; display: block; } .pr-head > span { opacity: .8; font-size: 10.5px; }
.pr-meta { display: flex; gap: 10px; margin-top: 8px; font-size: 10.5px; } .pr-meta span { background: rgba(255,255,255,.18); padding: 1px 8px; border-radius: 999px; }
.pr-start { display: block; text-align: center; background: var(--violet); color: #fff; border-radius: 12px; padding: 9px; font-weight: 800; }
.pr-sec { font-weight: 800; margin-top: 4px; }
.pr-row { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; }
.pr-row i { width: 28px; height: 28px; border-radius: 8px; background: var(--violet-soft); color: var(--violet); display: grid; place-items: center; }
.pr-row b { flex: 1; font-size: 12px; }
.pr-row em { font-style: normal; font-size: 10.5px; font-weight: 700; background: var(--mist); border-radius: 999px; padding: 1px 8px; color: var(--muted); }
.pr-row em.warn { background: #FDF3DD; color: #9A6A05; } .pr-row em.red { background: var(--red); color: #fff; }
.pr-invite { display: flex; align-items: center; gap: 8px; border: 1.5px dashed #CDBFF3; border-radius: 12px; padding: 8px 10px; }
.pr-invite b { font-family: ui-monospace, monospace; letter-spacing: .12em; font-size: 13px; flex: 1; }
.pr-invite span:first-child { color: var(--muted); } .pr-share { color: var(--violet); font-weight: 700; }

/* ------------------------------------------------------------------ audiences */
.aud-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); }
.aud { padding-inline: clamp(18px, 3vw, 36px); border-inline-start: 1px solid var(--line); }
.aud:first-child { padding-inline-start: 0; border-inline-start: 0; }
.aud-name { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--violet); margin-bottom: 14px; }
.aud h3 { font-size: 1.35rem; margin-bottom: 10px; }
.aud p { color: var(--muted); }

/* ------------------------------------------------------------------ trust */
.trust { background: var(--mist); }
.trust-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.trust-grid li { background: var(--paper); padding: 28px 26px 30px; }
.trust-ico { width: 44px; height: 44px; border-radius: 12px; background: var(--violet-soft); color: var(--violet); display: grid; place-items: center; margin-bottom: 16px; }
.trust-grid h3 { font-size: 1.1rem; margin-bottom: 8px; }
.trust-grid p { color: var(--muted); font-size: .98rem; }

/* ------------------------------------------------------------------ platforms */
.platforms { padding-block: clamp(56px, 6vw, 84px); }
.plat-row { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; }
.plat-row li { display: flex; gap: 16px; align-items: flex-start; }
.plat-row .ico { color: var(--violet); margin-top: 4px; }
.plat-row h3 { font-size: 1.1rem; }
.plat-row p { color: var(--muted); font-size: .96rem; }
.plat-langs { display: flex; gap: 10px; align-items: flex-start; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); }
.plat-langs .ico { color: var(--violet); margin-top: 5px; }

/* ------------------------------------------------------------------ plans */
.pricing-home { padding-top: 0; }
.plans > * { min-width: 0; }
.plans { display: grid; grid-template-columns: minmax(260px, 340px) minmax(0, 1fr); gap: 24px; align-items: start; }
.plan-prof { background: var(--night); color: #fff; border-radius: var(--r-lg); padding: 30px 28px; }
.plan-name { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--violet); margin-bottom: 12px; }
.plan-prof .plan-name { color: var(--caption); }
.plan-price { font-size: 2.4rem; font-weight: 900; line-height: 1.2; }
.plan-sub { color: rgba(255,255,255,.65); margin-bottom: 20px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; }
.checks .ico { color: var(--live); margin-top: 5px; }
.plan-prof .checks .ico { color: var(--caption); }
.plan-prof .btn { margin-top: 14px; width: 100%; }
.checks.big li { font-size: 1.05rem; margin-bottom: 18px; }
.plan-students { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px 26px 20px; }
.table-scroll { position: relative; overflow-x: auto; margin-inline: -8px; padding-inline: 8px; }
.compare { width: 100%; border-collapse: collapse; min-width: 560px; }
.compare th, .compare td { padding: 14px 12px; text-align: center; border-bottom: 1px solid var(--line); vertical-align: middle; }
.compare tbody th { text-align: start; font-weight: 600; font-size: .98rem; }
.compare thead th { vertical-align: bottom; border-bottom: 2px solid var(--line); }
.compare .c-feat { width: 44%; }
.c-name { display: block; font-weight: 800; font-size: 1.05rem; }
.c-price { display: block; font-size: 1.6rem; font-weight: 900; line-height: 1.3; margin-top: 4px; }
.c-price small { font-size: .85rem; font-weight: 600; color: var(--muted); }
.c-price-hidden { font-size: .92rem; font-weight: 700; color: var(--muted); }
.c-note { display: block; font-size: .8rem; font-weight: 500; color: var(--muted); }
.compare .c-sub { background: #F8F4FF; }
.compare thead .c-sub { border-radius: 14px 14px 0 0; box-shadow: inset 0 3px 0 var(--violet); }
.compare tfoot td { border-bottom: 0; padding-top: 18px; }
.compare tfoot .c-sub { border-radius: 0 0 14px 14px; }
.mark { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; }
.mark.yes { background: #E6F6EF; color: var(--live); }
.mark.no { color: #BDB6D3; }
.mark-text { font-size: .9rem; font-weight: 600; color: var(--ink); }
.soon, .badge { display: inline-block; font-size: .78rem; font-weight: 700; color: #9A6A05; background: #FDF3DD; padding: 2px 10px; border-radius: 999px; }
.plan-mobile-cta { display: none; }
.plan-foot { color: var(--muted); font-size: .92rem; margin-top: 16px; }

/* ------------------------------------------------------------------ download band */
.dl-band-grid { display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: center; }
.dl-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 28px; }
.dl-meta { color: rgba(255,255,255,.6); font-size: .92rem; }
.dl-empty { margin-top: 24px; color: rgba(255,255,255,.7); border-inline-start: 3px solid var(--caption); padding-inline-start: 14px; }
.dl-web { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 20px; }
.dl-web .link-arrow { margin-top: 0; }
.qr-card { background: #fff; color: var(--ink); border-radius: var(--r-md); padding: 18px; text-align: center; font-size: .85rem; font-weight: 600; width: 200px; }
.qr svg { width: 100%; height: auto; display: block; }
.qr-card p { margin-top: 8px; color: var(--muted); }

/* ------------------------------------------------------------------ FAQ */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 0; cursor: pointer; font-weight: 700; font-size: 1.08rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .ico { color: var(--violet); transition: transform .25s var(--ease); flex: none; }
.faq-item[open] summary .ico { transform: rotate(45deg); }
.faq-a { padding-bottom: 22px; color: var(--muted); max-width: 70ch; }

/* ------------------------------------------------------------------ CTA */
.cta-sec { padding-block: 0 clamp(64px, 8vw, 112px); }
.cta-box { background: linear-gradient(120deg, #8B4CF0, #3654F4); color: #fff; border-radius: var(--r-lg); padding: clamp(32px, 5vw, 56px);
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-box h2 { font-size: clamp(1.5rem, 1rem + 1.6vw, 2.2rem); }
.cta-box p { color: rgba(255,255,255,.85); margin-top: 8px; max-width: 54ch; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ------------------------------------------------------------------ inner pages */
.page-hero { padding-block: clamp(56px, 8vw, 100px) clamp(48px, 6vw, 80px); }
.page-hero.light { background: var(--paper); border-bottom: 1px solid var(--line); }
.page-title { font-size: clamp(2rem, 1.2rem + 3vw, 3.4rem); font-weight: 900; max-width: 20ch; line-height: 1.25; }
.page-title.wide { max-width: 26ch; }
.lang-en .page-title { line-height: 1.08; letter-spacing: -.025em; }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.same-list { background: rgba(255,255,255,.05); border: 1px solid var(--night-line); border-radius: var(--r-md); padding: 24px 24px 12px; }
.same-list li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 14px; color: rgba(255,255,255,.85); }
.same-list .ico { color: var(--caption); margin-top: 5px; }
.same-head { font-weight: 800; color: #fff !important; font-size: 1.05rem; }

.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 22px; }
.steps.three { grid-template-columns: repeat(3, minmax(0,1fr)); }
.steps li { position: relative; padding-top: 58px; }
.steps li::before { content: ""; position: absolute; top: 20px; inset-inline-start: 46px; inset-inline-end: -22px; height: 2px; background: var(--line); }
.steps li:last-child::before { display: none; }
.step-n { position: absolute; top: 0; inset-inline-start: 0; width: 42px; height: 42px; border-radius: 50%; border: 2px solid var(--violet); color: var(--violet); display: grid; place-items: center; font-weight: 800; background: var(--paper); }
.mist .step-n { background: var(--mist); }
.steps h3 { font-size: 1.08rem; margin-bottom: 6px; }
.steps p { color: var(--muted); font-size: .96rem; }
.steps.vertical { grid-template-columns: 1fr; gap: 0; }
.steps.vertical li { padding-top: 0; padding-inline-start: 64px; padding-bottom: 28px; }
.steps.vertical li::before { top: 46px; bottom: 4px; height: auto; width: 2px; inset-inline-start: 20px; inset-inline-end: auto; }
.update-note { margin-top: 28px; color: var(--muted); border-inline-start: 3px solid var(--violet); padding-inline-start: 14px; }

.tools-sec { background: var(--mist); }
.tools { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 30px 48px; }
.tools li { display: flex; gap: 18px; align-items: flex-start; }
.tool-ico { width: 48px; height: 48px; border-radius: 14px; background: #fff; border: 1px solid var(--line); color: var(--violet); display: grid; place-items: center; flex: none; }
.tools h3 { font-size: 1.1rem; margin-bottom: 4px; }
.tools p { color: var(--muted); font-size: .98rem; }
.free-note { background: var(--night); color: #fff; border-radius: var(--r-lg); padding: 34px; }
.free-note .lead { color: rgba(255,255,255,.75); }

.values { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 32px; }
.values li { border-top: 3px solid var(--violet); padding-top: 20px; }
.values li:nth-child(2) { border-color: #5A47F2; } .values li:nth-child(3) { border-color: #4750F3; } .values li:nth-child(4) { border-color: var(--blue); }
.values h3 { font-size: 1.15rem; margin-bottom: 8px; }
.values p { color: var(--muted); font-size: .98rem; }

.flow-sec { background: var(--night); color: #fff; }
.flow { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 14px; }
.flow li { background: rgba(255,255,255,.05); border: 1px solid var(--night-line); border-radius: var(--r-md); padding: 20px 18px 22px; position: relative; }
.flow li:not(:last-child)::after { content: ""; position: absolute; top: 50%; inset-inline-end: -12px; width: 10px; height: 10px; border-top: 2px solid var(--caption); border-inline-end: 2px solid var(--caption); transform: translateY(-50%) rotate(45deg); z-index: 1; }
[dir="rtl"] .flow li:not(:last-child)::after { transform: translateY(-50%) rotate(-135deg); border-inline-end: 0; border-inline-start: 2px solid var(--caption); }
.flow-n { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--caption); color: var(--night); font-weight: 800; font-size: .9rem; margin-bottom: 12px; }
.flow h3 { font-size: 1.05rem; margin-bottom: 6px; }
.flow p { color: rgba(255,255,255,.65); font-size: .92rem; }
.after-row { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; margin-top: 36px; padding-top: 30px; border-top: 1px dashed rgba(255,255,255,.2); }
.after-row h3 { display: flex; gap: 8px; align-items: center; font-size: 1.02rem; color: var(--caption); margin-bottom: 4px; }
.after-row p { color: rgba(255,255,255,.7); font-size: .95rem; }
.data-list > div { padding-block: 20px; border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(140px, 200px) 1fr; gap: 20px; }
.data-list > div:last-child { border-bottom: 1px solid var(--line); }
.data-list dt { font-weight: 800; }
.data-list dd { margin: 0; color: var(--muted); }
.needs { margin-top: 44px; background: var(--mist); border-radius: var(--r-md); padding: 26px 28px; }
.needs h3 { font-size: 1.1rem; margin-bottom: 12px; }
.needs ul { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px 32px; }
.needs li { position: relative; padding-inline-start: 18px; color: var(--ink); }
.needs li::before { content: ""; position: absolute; inset-inline-start: 0; top: .8em; width: 7px; height: 7px; border-radius: 50%; background: var(--violet); }
.tg-big { margin-top: 26px; max-width: 100%; white-space: normal; flex-wrap: wrap; text-align: center; }
.tg-handle { opacity: .75; font-weight: 600; }

/* ------------------------------------------------------------------ download page */
.dl-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.dl-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; }
.dl-card > p { color: var(--muted); margin-bottom: 18px; }
.dl-card.primary { border-color: #D9CCF8; box-shadow: 0 24px 60px -40px rgba(124,58,237,.6); }
.dl-card-head { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.dl-card-head h2 { font-size: 1.35rem; }
.dl-card-head p { color: var(--muted); }
.ver { font-weight: 800; color: var(--violet); }
.dl-ico { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--violet-soft); color: var(--violet); flex: none; }
.dl-card-body { display: grid; grid-template-columns: 1fr 200px; gap: 28px; }
.dl-facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 8px 32px; margin: 0 0 22px; }
.dl-facts dt { font-size: .82rem; color: var(--muted); font-weight: 600; }
.dl-facts dd { margin: 0; font-weight: 800; }
.notes { margin-top: 26px; }
.notes h3 { font-size: 1rem; margin-bottom: 8px; }
.notes li, .history ul li { position: relative; padding-inline-start: 18px; color: var(--muted); margin-bottom: 4px; }
.notes li::before, .history ul li::before { content: ""; position: absolute; inset-inline-start: 2px; top: .75em; width: 6px; height: 6px; border-radius: 50%; background: var(--violet); }
.dl-side .qr { border: 1px solid var(--line); border-radius: 14px; padding: 12px; }
.stable { margin-top: 14px; }
.stable-h { font-weight: 700; font-size: .88rem; }
.copy-row { display: flex; align-items: center; gap: 6px; margin-top: 6px; background: var(--mist); border-radius: 10px; padding: 4px 4px 4px 10px; }
.copy-row code { flex: 1; font-size: .75rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.copy-btn { display: inline-flex; gap: 4px; align-items: center; border: 0; background: #fff; border-radius: 8px; padding: 6px 8px; cursor: pointer; font-size: .78rem; font-weight: 700; color: var(--violet); }
.stable-note { font-size: .8rem; color: var(--muted); margin-top: 6px; line-height: 1.6; }
.checksum { margin-top: 22px; border-top: 1px solid var(--line); padding-top: 14px; font-size: .88rem; color: var(--muted); }
.checksum summary { cursor: pointer; font-weight: 600; }
.checksum code { display: block; margin-top: 8px; word-break: break-all; font-size: .8rem; background: var(--mist); padding: 10px; border-radius: 8px; color: var(--ink); }
.dl-empty-card { background: var(--mist); border-radius: var(--r-md); padding: 22px; }
.dl-empty-card h3 { margin-bottom: 6px; }
.dl-empty-card p { color: var(--muted); }
.tip { display: flex; gap: 10px; align-items: flex-start; margin-top: 22px; font-size: .92rem; color: var(--muted); background: var(--mist); padding: 14px; border-radius: 12px; }
.tip .ico { color: var(--violet); margin-top: 3px; }
.history > li { border-bottom: 1px solid var(--line); padding-block: 18px; }
.hist-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.hist-ver { font-weight: 800; font-size: 1.1rem; display: inline-flex; gap: 8px; align-items: center; }
.hist-meta { color: var(--muted); font-size: .92rem; }
.hist-dl { margin-inline-start: auto; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--mist); color: var(--violet); }
.hist-dl:hover { background: var(--violet-soft); }
.history ul { margin-top: 8px; }
.badge.beta { background: var(--violet-soft); color: var(--violet); }

/* ------------------------------------------------------------------ contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.form { display: grid; gap: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(22px, 3vw, 34px); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field > span, .field legend { font-weight: 700; font-size: .92rem; padding: 0; margin-bottom: 6px; }
.field em { color: var(--red); font-style: normal; }
.field input, .field select, .field textarea { font: inherit; font-size: 1rem; border: 1.5px solid var(--line); border-radius: 12px; padding: 11px 14px; background: var(--paper); color: var(--ink); width: 100%; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 4px var(--violet-soft); background: #fff; }
.field input[aria-invalid="true"] { border-color: var(--red); }
.field input[dir="ltr"] { text-align: left; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: inline-block; padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--line); cursor: pointer; font-weight: 600; font-size: .95rem; }
.seg input:checked + span { background: var(--violet); border-color: var(--violet); color: #fff; }
.seg input:focus-visible + span { outline: 3px solid var(--caption); outline-offset: 2px; }
.form-error { background: #FBE9EB; color: var(--red); padding: 10px 14px; border-radius: 10px; font-weight: 600; }
.form .btn { justify-self: start; }
.direct { display: grid; gap: 12px; }
.direct-item { display: flex; gap: 14px; align-items: center; text-decoration: none; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px; }
.direct-item:hover { border-color: var(--violet); }
.direct-item b { display: block; font-size: .95rem; }
.direct-item bdi { color: var(--muted); font-size: .92rem; }
.sent-box { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 40px; text-align: center; }
.sent-ico { width: 64px; height: 64px; border-radius: 50%; background: #E6F6EF; color: var(--live); display: inline-grid; place-items: center; margin-bottom: 16px; }
.sent-box h2 { margin-bottom: 8px; }
.sent-box p { color: var(--muted); margin-bottom: 22px; }

/* ------------------------------------------------------------------ footer */
.site-footer { background: var(--night); color: rgba(255,255,255,.72); padding-top: 64px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 32px; padding-bottom: 44px; }
.footer-grid h2 { font-size: .9rem; color: #fff; margin-bottom: 14px; }
.footer-grid a { display: block; color: rgba(255,255,255,.72); text-decoration: none; margin-bottom: 8px; }
.footer-grid a:hover { color: #fff; }
.footer-brand p { margin-top: 14px; max-width: 32ch; }
.footer-brand .brand { margin-bottom: 0; }
.footer-ver { font-size: .85rem; color: rgba(255,255,255,.5); }
.footer-langs { display: flex; gap: 12px; margin-top: 14px; }
.footer-langs a { display: inline; font-size: .88rem; }
.footer-langs a[aria-current="true"] { color: var(--caption); }
.footer-base { border-top: 1px solid var(--night-line); padding-block: 22px; font-size: .85rem; color: rgba(255,255,255,.5); }
.notfound { min-height: 50vh; }
.notfound .btn { margin-top: 28px; }

/* ------------------------------------------------------------------ responsive */
@media (max-width: 1080px) {
  .main-nav { position: fixed; inset: 68px 0 auto 0; flex-direction: column; background: var(--night); padding: 12px 20px 24px; gap: 2px;
    border-bottom: 1px solid var(--night-line); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: .2s var(--ease); }
  .main-nav.open { transform: none; opacity: 1; visibility: visible; }
  .main-nav a { padding: 12px 14px; font-size: 1.05rem; }
  .nav-web-mobile { display: block; color: var(--caption) !important; }
  .burger { display: block; }
  .header-tools { margin-inline-start: auto; }
  .header-web { display: none; }
  .steps { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .steps li::before { display: none; }
  .flow { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .flow li::after { display: none; }
  .values { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 900px) {
  .stage-body { grid-template-columns: 1fr; }
  .pipeline { flex-direction: row; justify-content: center; padding: 0 16px 16px; flex-wrap: wrap; }
  .pipeline::before { display: none; }
  .caption-screen { border-inline-start: 0; border-top: 1px solid rgba(255,255,255,.08); }
  .captions { min-height: 190px; }
  .narrow-split, .page-hero-grid, .contact-grid, .dl-grid, .plans { grid-template-columns: minmax(0, 1fr); }
  .timeline { grid-template-columns: 1fr; gap: 12px; }
  .tl-marker::after { inset-inline-end: 0 !important; }
  .acc, .scr { grid-template-columns: 1fr; }
  .acc-tabs, .scr-tabs { display: flex; overflow-x: auto; gap: 6px; padding-bottom: 4px; scrollbar-width: none; }
  .acc-tabs button, .scr-tabs button { white-space: nowrap; border-inline-start: 0 !important; border-radius: 999px !important; padding: 8px 16px; }
  .acc-tabs button { background: #fff; border: 1px solid var(--line) !important; }
  .scr-tabs button { border: 1px solid var(--night-line) !important; }
  .scr-tabs button[aria-selected="true"] { background: var(--caption); color: var(--night); }
  .scr-panel { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .aud-grid, .trust-grid, .plat-row, .after-row, .tools { grid-template-columns: 1fr; }
  .aud { padding: 24px 0; border-inline-start: 0; border-top: 1px solid var(--line); }
  .aud:first-child { border-top: 0; padding-top: 0; }
  .dl-band-grid { grid-template-columns: 1fr; }
  .qr-card { display: none; }
  .dl-card-body { grid-template-columns: 1fr; }
  .dl-side .qr { max-width: 180px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .stage-wrap { margin-bottom: -110px; }
  .context { padding-top: calc(110px + 56px); }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .specimen { grid-template-columns: 1fr; }
  .spec-arrow { background: #F5F1FF !important; padding-block: 0; height: 0; position: relative; z-index: 1; }
  .spec-arrow svg { transform: rotate(90deg) !important; position: absolute; }
  .spec-shown { padding-top: 34px; }
  .steps, .steps.three, .flow, .values, .needs ul, .field-row { grid-template-columns: 1fr; }
  .data-list > div { grid-template-columns: 1fr; gap: 4px; }
  .stage-top { flex-wrap: wrap; gap: 10px; padding: 12px 16px; }
  .stage-class { order: 3; width: 100%; }
  .speech { padding: 20px 18px 16px; }
  .speech-text { font-size: 1.1rem; }
  .captions { padding: 14px 18px 22px; }
  .stage-foot { font-size: .76rem; }
  .phone { transform: scale(.92); margin-block: -24px; }
  .dl-facts { grid-template-columns: repeat(2, auto); }
  .footer-grid { grid-template-columns: 1fr; }
  .compare { min-width: 0; table-layout: fixed; }
  .compare .c-feat { width: 40%; }
  .compare th, .compare td { padding: 12px 6px; }
  .compare tbody th { font-size: .88rem; }
  .mark-text, .c-note { font-size: .78rem; }
  .c-price { font-size: 1.25rem; }
  .compare tfoot { display: none; }
  .plan-mobile-cta { display: grid; gap: 10px; margin-top: 18px; }
  .plan-mobile-cta .btn { width: 100%; }
  .plan-students { padding: 18px 12px; }
  .cta-box { flex-direction: column; align-items: flex-start; }
  .brand-sub { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
