/* SubBuild Studio — website
   Palette and type follow the app itself (frontend/src/index.css):
   zinc surfaces, indigo→violet accent, Heebo / Inter / JetBrains Mono. */

:root {
  --bg: #09090b;
  --sunken: #121214;
  --surface: #18181b;
  --raised: #1d1d20;
  --line: #27272a;
  --line-2: #3f3f46;
  --text: #f4f4f5;
  --text-2: #d4d4d8;
  --muted: #a1a1aa;
  --dim: #71717a;

  --indigo: #6366f1;
  --indigo-600: #4f46e5;
  --indigo-300: #a5b4fc;
  --violet: #8b5cf6;
  --cyan: #67e8f9;
  --amber: #fcd34d;
  --emerald: #6ee7b7;
  --rose: #fda4af;

  --font-he: 'Heebo', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-en: 'Inter', 'Heebo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font: var(--font-he);

  --wrap: 1200px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
html[lang="en"] { --font: var(--font-en); }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  overflow-x: clip;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: var(--indigo); color: #fff; }
img, svg { display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.1; letter-spacing: -0.02em; }
p { margin: 0; }
button { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--indigo-300); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(100% - 48px, var(--wrap)); margin-inline: auto; }

.skip {
  position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100;
  background: var(--indigo); color: #fff; padding: 8px 14px; border-radius: 8px; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  height: 48px; padding: 0 22px; border-radius: 12px;
  font-weight: 700; font-size: 1rem; text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transition: background-color .2s, border-color .2s, transform .2s var(--ease);
}
.btn--sm { height: 38px; padding: 0 16px; font-size: .9375rem; border-radius: 10px; }
.btn--primary {
  background: linear-gradient(180deg, #6d70f5, var(--indigo-600));
  box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 8px 28px -8px rgba(99,102,241,.7);
  color: #fff;
}
.btn--primary:hover { background: linear-gradient(180deg, #7c7ff7, #5b55ec); }
.btn--primary:active { transform: translateY(1px); }
.btn--ghost { background: rgba(255,255,255,.03); border-color: var(--line-2); color: var(--text); }
.btn--ghost:hover { background: rgba(255,255,255,.07); border-color: #52525b; }
.btn__ic { width: 20px; height: 20px; fill: currentColor; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(9,9,11,.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(39,39,42,.7);
}
.nav__inner { display: flex; align-items: center; gap: 32px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__mark { width: 34px; height: 34px; filter: drop-shadow(0 6px 16px rgba(99,102,241,.45)); }
.brand__name { font-family: var(--font-en); font-weight: 800; font-size: 1.125rem; letter-spacing: -0.02em; display: inline-flex; align-items: center; gap: 6px; }
.brand__studio {
  font-size: .625rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--indigo-300); background: rgba(99,102,241,.16); border: 1px solid rgba(99,102,241,.35);
  padding: 2px 6px; border-radius: 5px;
}
.nav__links { display: flex; gap: 26px; margin-inline-start: auto; }
.nav__links a { text-decoration: none; color: var(--muted); font-size: .9375rem; font-weight: 500; transition: color .2s; }
.nav__links a:hover { color: var(--text); }
.nav__actions { display: flex; align-items: center; gap: 10px; }
.lang {
  height: 38px; min-width: 44px; padding: 0 10px; border-radius: 10px;
  background: transparent; border: 1px solid var(--line-2); cursor: pointer;
  font-family: var(--font-en); font-weight: 600; font-size: .8125rem; color: var(--text-2);
}
.lang:hover { border-color: #52525b; color: var(--text); }

/* ---------- hero ---------- */
.hero { position: relative; padding: 72px 0 96px; isolation: isolate; overflow-x: clip; }
.hero::before { /* faint editing grid */
  content: ""; position: absolute; inset: 0; z-index: -2;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 75%);
          mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 75%);
}
/* projector beam falling onto the screen */
.beam {
  position: absolute; z-index: -1; left: 50%; top: -20px; width: min(1500px, 150vw); height: 1150px;
  transform: translateX(-50%);
  filter: blur(36px);
  pointer-events: none;
}
.beam::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 18% 8% at 50% 0%, rgba(199,210,254,.5), transparent 70%),
    linear-gradient(180deg, rgba(99,102,241,.30), rgba(139,92,246,.12) 50%, transparent 80%);
  clip-path: polygon(46.5% 0, 53.5% 0, 96% 100%, 4% 100%);
}

.hero__head {
  display: grid; grid-template-columns: 1.55fr 1fr; gap: 56px; align-items: end;
  margin-bottom: 56px;
}
.cue-meta {
  display: flex; gap: 14px; align-items: baseline; justify-content: flex-end;
  font-family: var(--font-mono); font-size: .8125rem; color: var(--dim); margin-bottom: 18px;
}
html[dir="rtl"] .cue-meta { justify-content: flex-end; }
html[dir="ltr"] .cue-meta { justify-content: flex-start; }
.cue-meta__n { color: var(--indigo-300); font-weight: 700; }
.hero__title {
  font-weight: 900;
  font-size: clamp(2.5rem, 5.6vw, 5.1rem);
  line-height: 1.0;
  letter-spacing: -0.035em;
  text-wrap: balance;
  background: linear-gradient(180deg, #fff 30%, #c7c9f9 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-bottom: .06em;
}
html[lang="en"] .hero__title { font-weight: 800; letter-spacing: -0.045em; }
.hero__lead { color: var(--text-2); font-size: 1.125rem; max-width: 46ch; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero__note { margin-top: 16px; font-size: .875rem; color: var(--dim); }

/* ---------- player ---------- */
.player {
  position: relative;
  border-radius: 20px;
  background: linear-gradient(180deg, #141418, #0c0c0f);
  border: 1px solid #2c2c33;
  padding: 10px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.02) inset,
    0 40px 120px -40px rgba(99,102,241,.55),
    0 30px 60px -30px rgba(0,0,0,.9);
}
.player__screen {
  position: relative; overflow: hidden; border-radius: 12px; background: #000;
  aspect-ratio: 2.39 / 1;
}
.scene { position: absolute; inset: 0; opacity: 0; transition: opacity 1s var(--ease); }
.scene svg { width: 100%; height: 100%; }
.scene.is-on { opacity: 1; }
.scene.is-on svg { animation: kenburns 9s linear forwards; }
@keyframes kenburns { from { transform: scale(1.0); } to { transform: scale(1.06); } }
.rings circle { transform-origin: 600px 210px; animation: ring 2.4s ease-out infinite; }
.rings circle:nth-child(2) { animation-delay: .4s; }
.rings circle:nth-child(3) { animation-delay: .8s; }
@keyframes ring { 0% { opacity: .9; } 100% { opacity: .2; } }

.grain {
  position: absolute; inset: 0; pointer-events: none; opacity: .16; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.player__screen::after { /* vignette */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,.55));
}

/* translation scan line */
.scan {
  position: absolute; top: 0; bottom: 0; width: 22%; left: -25%; pointer-events: none; z-index: 3;
  background: linear-gradient(90deg, transparent, rgba(129,140,248,.0) 20%, rgba(129,140,248,.28) 50%, rgba(167,139,250,.0) 80%, transparent);
  mix-blend-mode: screen; opacity: 0;
}
.scan::after { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 1.5px; background: rgba(199,210,254,.9); box-shadow: 0 0 18px 2px rgba(129,140,248,.9); }
.player.is-translating .scan { animation: sweep 1.15s var(--ease) forwards; }
@keyframes sweep { 0% { left: -25%; opacity: 1; } 100% { left: 105%; opacity: 1; } }

.hud {
  position: absolute; top: 14px; inset-inline-end: 14px; z-index: 4;
  display: flex; gap: 8px; align-items: center; direction: inherit;
}
.hud__status, .hud__tag {
  display: inline-flex; align-items: center; gap: 7px;
  height: 28px; padding: 0 11px; border-radius: 8px;
  background: rgba(9,9,11,.62); border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-size: .8125rem; font-weight: 600; color: var(--text-2);
}
.hud__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--rose); box-shadow: 0 0 10px var(--rose); animation: blink 1.1s steps(2) infinite; }
.player[data-stage="2"] .hud__dot { background: var(--indigo-300); box-shadow: 0 0 10px var(--indigo); animation: none; }
.player[data-stage="3"] .hud__dot { background: var(--emerald); box-shadow: 0 0 10px var(--emerald); animation: none; }
@keyframes blink { 50% { opacity: .25; } }
.hud__tag { font-family: var(--font-mono); font-size: .6875rem; letter-spacing: .04em; opacity: 0; transform: translateY(-4px); transition: opacity .35s, transform .35s var(--ease); }
.hud__tag.is-on { opacity: 1; transform: none; }
.hud__tag[data-kind="DIALOGUE"] { color: var(--indigo-300); border-color: rgba(129,140,248,.4); }
.hud__tag[data-kind="ON_SCREEN"] { color: var(--cyan); border-color: rgba(103,232,249,.4); }
.hud__tag[data-kind="COMMS"] { color: var(--amber); border-color: rgba(252,211,77,.4); }
.hud__tag[data-kind="FOREIGN"] { color: #c4b5fd; border-color: rgba(196,181,253,.45); }

/* subtitle layers */
.sub {
  position: absolute; left: 6%; right: 6%; z-index: 5; text-align: center;
  font-family: 'Heebo', 'Inter', sans-serif; font-weight: 600;
  font-size: clamp(1rem, 2.35vw, 1.95rem); line-height: 1.3; color: #fff;
  text-shadow: 0 0 2px #000, 0 0 2px #000, 0 2px 6px rgba(0,0,0,.9);
  min-height: 1.3em;
}
.sub--bottom { bottom: 8%; }
.sub--top { top: 9%; font-size: clamp(.9rem, 1.9vw, 1.55rem); font-weight: 500; }
.sub .src { font-family: 'Inter', sans-serif; font-weight: 500; }
.sub .src .w { opacity: 0; transition: opacity .18s; }
.sub .src .w.is-on { opacity: 1; }
.sub .scr { color: #e0e7ff; }
.sub .scr .g { color: var(--indigo-300); text-shadow: 0 0 12px rgba(129,140,248,.9), 0 0 2px #000; }
.sub .done { animation: settle .5s var(--ease); }
@keyframes settle { from { filter: brightness(1.6); } to { filter: none; } }

.gender {
  position: absolute; z-index: 6; left: 50%; top: 9%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 6px; padding: 5px;
  background: rgba(9,9,11,.7); border: 1px solid rgba(255,255,255,.14); border-radius: 12px;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  animation: pop .4s var(--ease);
}
.gender[hidden] { display: none; }
@keyframes pop { from { opacity: 0; transform: translate(-50%, 6px); } to { opacity: 1; transform: translate(-50%, 0); } }
.gender__label { font-size: .8125rem; color: var(--muted); padding-inline: 8px 4px; }
.gender button {
  height: 32px; padding: 0 12px; border-radius: 8px; border: 1px solid transparent; background: transparent;
  font-size: .875rem; font-weight: 600; color: var(--text-2); cursor: pointer;
}
.gender button:hover { background: rgba(255,255,255,.07); }
.gender button[aria-pressed="true"] { background: var(--indigo-600); color: #fff; }

/* timeline */
.timeline {
  direction: ltr;
  display: grid; grid-template-columns: 128px 1fr; align-items: center; gap: 14px;
  margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: var(--sunken); border: 1px solid var(--line);
}
.timeline__tc { font-family: var(--font-mono); font-size: .8125rem; color: var(--indigo-300); }
.timeline__track { position: relative; height: 52px; }
.wave { position: absolute; inset: 4px 0 18px; display: flex; align-items: center; gap: 2px; }
.wave i { flex: 1; min-width: 1px; border-radius: 2px; background: #3f3f46; transition: background-color .3s; }
.wave i.is-hot { background: #818cf8; }
.cues { position: absolute; left: 0; right: 0; bottom: 0; height: 14px; }
.cues span {
  position: absolute; top: 0; bottom: 0; border-radius: 4px;
  background: rgba(99,102,241,.18); border: 1px solid rgba(99,102,241,.45);
  transition: background-color .3s, border-color .3s, transform .4s var(--ease);
}
.cues span.is-active { background: rgba(99,102,241,.6); border-color: #a5b4fc; }
.cues span.is-snap { animation: snap .45s var(--ease); }
@keyframes snap { 0% { transform: scaleX(1.25); } 100% { transform: scaleX(1); } }
.playhead {
  position: absolute; top: -4px; bottom: -4px; width: 2px; left: 0; background: #fff; border-radius: 2px;
  box-shadow: 0 0 12px rgba(255,255,255,.8);
}
.playhead::before { content: ""; position: absolute; top: -3px; left: -4px; width: 10px; height: 8px; background: #fff; clip-path: polygon(0 0, 100% 0, 50% 100%); }

.player__bar { display: flex; align-items: center; gap: 16px; margin-top: 10px; padding: 4px 2px 2px; flex-wrap: wrap; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  height: 34px; padding: 0 14px; border-radius: 999px; cursor: pointer;
  background: transparent; border: 1px solid var(--line-2);
  font-size: .875rem; font-weight: 500; color: var(--muted);
  transition: color .2s, border-color .2s, background-color .2s;
}
.chip:hover { color: var(--text); border-color: #52525b; }
.chip[aria-pressed="true"] { color: #fff; background: rgba(99,102,241,.22); border-color: rgba(129,140,248,.7); }
.stages { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 0; margin-inline-start: auto; }
.stages li { display: flex; align-items: center; font-size: .8125rem; color: var(--dim); white-space: nowrap; transition: color .3s; }
.stages li + li::before { content: ""; width: 22px; height: 1px; background: var(--line-2); margin-inline: 8px; }
.stages li span { display: inline-flex; align-items: center; gap: 6px; }
.stages li span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid currentColor; transition: background-color .3s, box-shadow .3s; }
.stages li.is-done { color: var(--text-2); }
.stages li.is-done span::before { background: var(--emerald); border-color: var(--emerald); }
.stages li.is-active { color: #fff; }
.stages li.is-active span::before { background: var(--indigo); border-color: var(--indigo-300); box-shadow: 0 0 10px var(--indigo); }
.playtoggle {
  width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line-2); background: transparent; cursor: pointer;
  display: grid; place-items: center; color: var(--text-2);
}
.playtoggle svg { width: 16px; height: 16px; fill: currentColor; }
.playtoggle .i-play { display: none; }
.player.is-paused .playtoggle .i-play { display: block; }
.player.is-paused .playtoggle .i-pause { display: none; }
.player__caption { margin-top: 14px; padding-inline: 4px; font-size: .9375rem; color: var(--muted); min-height: 1.65em; max-width: 80ch; }

/* ---------- sections ---------- */
.section { padding: 120px 0; position: relative; }
.section__head { max-width: 62ch; margin-bottom: 56px; }
.section__head h2, .privacy h2, .faq h2 { font-size: clamp(2rem, 4.2vw, 3.25rem); font-weight: 800; text-wrap: balance; }
.section__head p { margin-top: 18px; color: var(--muted); font-size: 1.125rem; }

/* how — the four steps are cues of an .srt file */
.how { border-top: 1px solid var(--line); }
.srt { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: none; }
.srt__cue { padding: 28px 28px 8px; border-inline-start: 1px solid var(--line); }
.srt__cue:first-child { border-inline-start: 0; padding-inline-start: 0; }
.srt__meta { font-family: var(--font-mono); font-size: .75rem; color: var(--dim); display: flex; flex-direction: column; gap: 4px; margin-bottom: 22px; }
html[dir="rtl"] .srt__meta { align-items: flex-end; }
.srt__meta b { color: var(--indigo-300); font-size: 1.5rem; font-weight: 700; line-height: 1; }
.srt__cue h3 { font-size: 1.375rem; font-weight: 700; margin-bottom: 10px; }
.srt__cue p { color: var(--muted); }
.file { font-family: var(--font-mono); font-size: .875em; color: var(--text-2); background: rgba(255,255,255,.05); padding: 1px 6px; border-radius: 5px; }

/* features — an editor table */
.editor { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--sunken); }
.editor__head, .row__btn {
  display: grid; grid-template-columns: 56px 128px 1fr 104px; align-items: center; gap: 16px;
  padding: 0 22px;
}
.editor__head { height: 44px; font-size: .8125rem; color: var(--dim); background: var(--surface); border-bottom: 1px solid var(--line); }
.row { border-bottom: 1px solid var(--line); position: relative; }
.row:last-child { border-bottom: 0; }
.row::before { content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; width: 3px; background: var(--indigo); opacity: 0; transition: opacity .25s; }
.row.is-open { background: rgba(99,102,241,.06); }
.row.is-open::before { opacity: 1; }
.row__btn {
  width: 100%; min-height: 64px; background: transparent; border: 0; cursor: pointer; text-align: start;
  transition: background-color .15s;
}
.row__btn:hover { background: rgba(255,255,255,.025); }
.row__n { font-family: var(--font-mono); font-size: .8125rem; color: var(--dim); }
.row__tc { font-family: var(--font-mono); font-size: .8125rem; color: var(--indigo-300); text-align: start; }
html[dir="rtl"] .row__tc { text-align: right; }
.row__t { font-size: 1.125rem; font-weight: 600; color: var(--text); padding-block: 14px; }
.row__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--ease); }
.row__body > p { overflow: hidden; color: var(--text-2); max-width: 72ch; padding-inline: calc(22px + 56px + 16px + 128px + 16px) 22px; }
.row.is-open .row__body { grid-template-rows: 1fr; }
.row.is-open .row__body > p { padding-bottom: 22px; }

.tag {
  justify-self: start; display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 6px;
  font-size: .75rem; font-weight: 600; border: 1px solid;
}
.tag--listen    { color: var(--rose);  border-color: rgba(253,164,175,.35); background: rgba(244,63,94,.08); }
.tag--translate { color: var(--indigo-300); border-color: rgba(165,180,252,.35); background: rgba(99,102,241,.1); }
.tag--screen    { color: var(--cyan);  border-color: rgba(103,232,249,.35); background: rgba(34,211,238,.08); }
.tag--timing    { color: var(--amber); border-color: rgba(252,211,77,.35); background: rgba(245,158,11,.08); }
.tag--edit      { color: #c4b5fd;      border-color: rgba(196,181,253,.35); background: rgba(139,92,246,.1); }
.tag--export    { color: var(--emerald); border-color: rgba(110,231,183,.35); background: rgba(16,185,129,.08); }

/* pros — translators, accessibility, organisations */
.pros { border-top: 1px solid var(--line); }
.pros__grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
  background: linear-gradient(180deg, var(--surface), var(--sunken));
}
.pro { padding: 34px 32px 38px; }
.pro + .pro { border-inline-start: 1px solid var(--line); }
.pro__ic {
  width: 44px; height: 44px; padding: 10px; border-radius: 12px; margin-bottom: 22px;
  fill: none; stroke: var(--indigo-300); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
  background: rgba(99,102,241,.12); border: 1px solid rgba(99,102,241,.3);
}
.pro h3 { font-size: 1.375rem; font-weight: 700; margin-bottom: 12px; }
.pro p { color: var(--muted); }

/* privacy */
.privacy { background: linear-gradient(180deg, transparent, rgba(99,102,241,.05) 40%, transparent); border-top: 1px solid var(--line); }
.privacy__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.privacy__copy h2 { margin-bottom: 26px; }
.privacy__copy p { color: var(--text-2); max-width: 54ch; }
.privacy__copy p + p { margin-top: 16px; color: var(--muted); }

.flow { display: grid; grid-template-columns: 1fr 120px 1fr; align-items: center; }
.flow__box { border-radius: 16px; padding: 22px; border: 1px solid var(--line); background: var(--surface); }
.flow__box--pc { border-color: rgba(129,140,248,.45); box-shadow: 0 20px 60px -30px rgba(99,102,241,.7); background: linear-gradient(180deg, #1b1b2a, var(--surface)); }
.flow__title { font-weight: 700; font-size: 1rem; margin-bottom: 14px; }
.flow__box ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: .9375rem; color: var(--text-2); }
.flow__box li { display: flex; align-items: center; gap: 10px; }
.ic { width: 26px; height: 26px; border-radius: 7px; background: rgba(99,102,241,.16); border: 1px solid rgba(99,102,241,.35); position: relative; flex: none; }
.ic::after { content: ""; position: absolute; inset: 7px; background: var(--indigo-300); }
.ic--film::after { clip-path: polygon(20% 10%, 90% 50%, 20% 90%); }
.ic--wave::after { clip-path: polygon(0 45%, 15% 45%, 25% 10%, 40% 90%, 55% 25%, 70% 70%, 80% 45%, 100% 45%, 100% 55%, 82% 55%, 70% 90%, 55% 50%, 40% 100%, 25% 35%, 18% 55%, 0 55%); }
.ic--text::after { clip-path: polygon(0 15%, 100% 15%, 100% 30%, 0 30%, 0 45%, 100% 45%, 100% 60%, 0 60%, 0 75%, 60% 75%, 60% 90%, 0 90%); }
.ic--save::after { clip-path: polygon(0 0, 75% 0, 100% 25%, 100% 100%, 0 100%, 0 0, 20% 15%, 20% 40%, 70% 40%, 70% 15%); border-radius: 1px; }
.flow__wire { position: relative; height: 70px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.flow__wire::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1.5px dashed #52525b; }
.flow__packet { position: relative; font-family: var(--font-en); font-size: .75rem; font-weight: 600; background: var(--bg); border: 1px solid rgba(129,140,248,.6); color: var(--indigo-300); padding: 3px 8px; border-radius: 6px; }
.flow__label { position: relative; font-size: .75rem; color: var(--muted); background: var(--bg); padding: 0 6px; }
.providers li { font-family: var(--font-en); font-weight: 600; justify-content: flex-start; }
.providers li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #52525b; }
.providers__local::before { background: var(--emerald) !important; box-shadow: 0 0 8px var(--emerald); }
.providers em { font-style: normal; font-family: var(--font); font-weight: 500; font-size: .8125rem; color: var(--emerald); }

/* download */
.download { border-top: 1px solid var(--line); }
.os { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 16px; }
.os__card { position: relative; padding: 28px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); display: flex; flex-direction: column; gap: 10px; min-height: 230px; }
.os__card--main { border-color: rgba(129,140,248,.5); background: radial-gradient(120% 100% at 50% 0%, rgba(99,102,241,.18), var(--surface) 60%); }
.os__logo { width: 34px; height: 34px; fill: var(--text-2); margin-bottom: 8px; }
.os__card h3 { font-family: var(--font-en); font-size: 1.5rem; font-weight: 700; }
.os__card p { color: var(--muted); font-size: .9375rem; }
.soon {
  margin-top: auto; align-self: flex-start;
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 10px;
  border: 1px dashed #52525b; color: var(--muted); font-weight: 600; font-size: .9375rem;
}
.os__btn { margin-top: auto; align-self: flex-start; }
.os__hint { font-size: .8125rem !important; color: var(--dim) !important; line-height: 1.55; }
.os__hint a { color: var(--indigo-300); }
.soon::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 8px var(--amber); }
.dl__bottom { display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; margin-top: 16px; }
.reqs, .gh { padding: 28px; border-radius: 18px; border: 1px solid var(--line); }
.reqs h3 { font-size: 1.125rem; font-weight: 700; margin-bottom: 14px; }
.reqs ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; color: var(--text-2); font-size: .9375rem; }
.reqs li { position: relative; padding-inline-start: 22px; }
.reqs li::before { content: ""; position: absolute; inset-inline-start: 0; top: .62em; width: 8px; height: 8px; border-radius: 2px; background: var(--indigo); }
.gh { display: flex; flex-direction: column; justify-content: space-between; gap: 20px; background: var(--sunken); }
.gh p { color: var(--muted); }
.gh .btn { align-self: flex-start; }

/* faq */
.faq { border-top: 1px solid var(--line); }
.faq__wrap { display: grid; grid-template-columns: 1fr 1.6fr; gap: 64px; align-items: start; }
.faq h2 { position: sticky; top: 110px; }
.faq__list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 0; font-size: 1.1875rem; font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 14px; height: 14px;
  background: linear-gradient(currentColor, currentColor) center/100% 2px no-repeat, linear-gradient(currentColor, currentColor) center/2px 100% no-repeat;
  color: var(--indigo-300); transition: transform .3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 24px; color: var(--muted); max-width: 66ch; }

/* footer */
.footer { border-top: 1px solid var(--line); padding: 36px 0 48px; }
.footer__inner { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.brand--sm img { border-radius: 7px; }
.brand--sm .brand__name { font-size: 1rem; }
.footer p { color: var(--dim); font-size: .875rem; }
.footer__links { display: flex; gap: 20px; margin-inline-start: auto; }
.footer__links a { color: var(--muted); text-decoration: none; font-size: .875rem; }
.footer__links a:hover { color: var(--text); }

/* ---------- responsive ---------- */
@media (max-width: 1040px) {
  .stages { display: none; }
  .srt { grid-template-columns: repeat(2, 1fr); row-gap: 24px; }
  .srt__cue:nth-child(3) { border-inline-start: 0; padding-inline-start: 0; }
  .privacy__grid { grid-template-columns: 1fr; gap: 48px; }
  .pros__grid { grid-template-columns: 1fr; }
  .pro + .pro { border-inline-start: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 900px) {
  .nav__links { display: none; }
  .hero { padding-top: 48px; }
  .hero__head { grid-template-columns: 1fr; gap: 24px; margin-bottom: 40px; }
  .player__screen { aspect-ratio: 16 / 9; }
  .os { grid-template-columns: 1fr; }
  .os__card { min-height: 0; }
  .dl__bottom { grid-template-columns: 1fr; }
  .faq__wrap { grid-template-columns: 1fr; gap: 24px; }
  .faq h2 { position: static; }
  .section { padding: 88px 0; }
}
@media (max-width: 640px) {
  .wrap { width: min(100% - 32px, var(--wrap)); }
  .btn--sm { display: none; }
  .player { padding: 6px; border-radius: 16px; }
  .player__screen { aspect-ratio: 4 / 3; border-radius: 10px; }
  .scene svg { transform-origin: center; }
  .sub { font-size: 1.05rem; left: 4%; right: 4%; }
  .sub--top { font-size: .95rem; top: 15%; }
  .hud { top: 10px; inset-inline-end: 10px; }
  .gender { top: 20%; }
  .gender__label { display: none; }
  .timeline { grid-template-columns: 1fr; gap: 6px; }
  .wave { gap: 1px; }
  .player__bar { gap: 10px; }
  .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
  .srt { grid-template-columns: 1fr; }
  .srt__cue { border-inline-start: 0; padding-inline: 0; border-top: 1px solid var(--line); }
  .editor__head { display: none; }
  .row__btn { grid-template-columns: 1fr auto; gap: 4px 12px; padding: 14px 18px; }
  .row__n, .row__tc { display: none; }
  .row__t { padding: 0; font-size: 1.0625rem; }
  .row__body > p { padding-inline: 18px; }
  .flow { grid-template-columns: 1fr; }
  .flow__wire { height: 90px; }
  .flow__wire::before { left: 50%; right: auto; top: 0; bottom: 0; border-top: 0; border-left: 1.5px dashed #52525b; }
  .footer__links { margin-inline-start: 0; width: 100%; }
}

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

/* ---------- policy pages (privacy.html, code-signing.html) ---------- */
/* Both languages are in the page; show the one that matches <html lang> */
html[lang="he"] body.docpage [lang="en"],
html[lang="en"] body.docpage [lang="he"] { display: none !important; }

.doc { padding: 72px 0 120px; max-width: 780px; }
.doc__head h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); font-weight: 800; text-wrap: balance; }
.doc__meta { margin-top: 12px; font-size: .875rem; color: var(--dim); }
.doc__lead { margin: 28px 0 8px; font-size: 1.1875rem; color: var(--text-2); max-width: 64ch; }
.doc h2 { margin: 48px 0 14px; font-size: 1.375rem; font-weight: 700; }
.doc p, .doc li { color: var(--text-2); }
.doc p + p { margin-top: 14px; }
.doc ul { margin: 0; padding-inline-start: 22px; display: grid; gap: 10px; }
.doc li::marker { color: var(--indigo-300); }
.doc a { color: var(--indigo-300); text-underline-offset: 3px; }
.doc a:hover { color: #c7d2fe; }
.doc code {
  font-family: var(--font-mono); font-size: .85em; color: var(--text);
  background: rgba(255,255,255,.06); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px;
}
.doc__note {
  margin-top: 28px; padding: 14px 18px; border-radius: 12px;
  border: 1px solid rgba(252,211,77,.35); background: rgba(245,158,11,.07);
}
.doc__note p { color: var(--text-2); }
.doc__note b { color: var(--amber); }
.doc__table { margin: 6px 0 22px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--sunken); }
.doc__row {
  display: grid; grid-template-columns: 1.15fr 1.7fr 1.25fr; gap: 20px;
  padding: 16px 20px; border-top: 1px solid var(--line); font-size: .9375rem; color: var(--text-2); line-height: 1.6;
}
.doc__row:first-child { border-top: 0; }
.doc__row b { color: var(--text); }
.doc__row--head { padding-block: 10px; background: var(--surface); font-size: .8125rem; color: var(--dim); }
.doc__table--2 .doc__row { grid-template-columns: 1.7fr 1fr; }
@media (max-width: 720px) {
  .doc { padding-top: 48px; }
  .doc__row, .doc__table--2 .doc__row { grid-template-columns: 1fr; gap: 6px; }
  .doc__row--head { display: none; }
}
