/* Prostir site. Colours and type follow the headset menu: a dark panel, one blue
   accent for the action that matters, Noto Sans. */
/* Noto Sans and Noto Sans Mono, served from this site (SIL OFL 1.1, fonts/OFL.txt).
   Latin and Cyrillic subsets, only the weights the pages use. */
@font-face {
  font-family: "Noto Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/noto-sans-cyrillic-400-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Noto Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/noto-sans-latin-400-normal.woff2") format("woff2");
  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: "Noto Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/noto-sans-cyrillic-500-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Noto Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/noto-sans-latin-500-normal.woff2") format("woff2");
  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: "Noto Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/noto-sans-cyrillic-600-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Noto Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/noto-sans-latin-600-normal.woff2") format("woff2");
  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: "Noto Sans Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/noto-sans-mono-cyrillic-400-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Noto Sans Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/noto-sans-mono-latin-400-normal.woff2") format("woff2");
  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;
}

:root {
  --bg: #11141b;
  --panel: #1a1e27;
  --line: #2a2f3a;
  --text: #e8eaf0;
  --muted: #9aa0ae;
  /* --accent is the focus ring and the menu blue; buttons with white text use the
     darker --accent-strong so the label keeps a 4.5:1 contrast. */
  --accent: #3d7eff;
  --accent-strong: #2c66e8;
  --accent-strong-hover: #2560d8;
  --accent-text: #6f9dff;
  --on-accent: #ffffff;
  --code: #0c0e13;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f7f9;
    --panel: #ffffff;
    --line: #dde1e8;
    --text: #151821;
    --muted: #4f5666;
    --accent: #2a63e0;
    --accent-strong: #2a63e0;
    --accent-strong-hover: #2357c8;
    --accent-text: #1f53c4;
    --on-accent: #ffffff;
    --code: #eef0f4;
    color-scheme: light;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  overflow-wrap: break-word;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 "Noto Sans", system-ui, sans-serif;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-text); }
a:focus-visible, button:focus-visible, .button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}
code, pre { font-family: "Noto Sans Mono", ui-monospace, monospace; font-size: 0.92em; }
pre {
  background: var(--code);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  margin: 10px 0;
  overflow-x: auto;
  line-height: 1.5;
}
:not(pre) > code { background: var(--code); padding: 1px 6px; border-radius: 5px; overflow-wrap: anywhere; }
code.nw { white-space: nowrap; } /* short commands that must not break at a hyphen */

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Header */
.top { border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 24px; min-height: 68px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 500; font-size: 20px; }
.brand img { width: 32px; height: 32px; }
.top nav.sections { display: flex; gap: 20px; margin-left: auto; flex-wrap: wrap; }
.top nav.sections a { color: var(--muted); text-decoration: none; padding: 8px 0; }
.top nav.sections a:hover { color: var(--text); }

/* First screen: what it is, the proof, the download */
.hero { display: grid; grid-template-columns: 5fr 7fr; gap: 48px; align-items: center; padding: 64px 0 56px; }
.hero h1 { font-size: 44px; line-height: 1.15; margin: 0 0 18px; font-weight: 600; letter-spacing: -0.01em; }
.hero p.lead { color: var(--muted); font-size: 19px; margin: 0 0 28px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px; border-radius: 10px;
  text-decoration: none; font-weight: 500;
  border: 1px solid var(--line); color: var(--text); background: var(--panel);
}
.button:hover { border-color: var(--muted); }
.button.primary { background: var(--accent-strong); border-color: var(--accent-strong); color: var(--on-accent); }
.button.primary:hover { background: var(--accent-strong-hover); border-color: var(--accent-strong-hover); }
.downloads { color: var(--muted); font-size: 15px; margin: 14px 0 0; min-height: 1.5em; }

/* Demo video. Without JS it has the browser's own controls and loads nothing until
   played; site.js swaps them for one pause/play button and autoplays it only when
   motion is welcome. */
.demo { position: relative; }
.demo video { border-radius: 14px; border: 1px solid var(--line); width: 100%; aspect-ratio: 16 / 9; background: #000; }
.demo-toggle {
  position: absolute; left: 12px; bottom: 12px;
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 40px; padding: 0 14px; border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.25); background: rgba(12, 14, 19, 0.78); color: #fff;
  font: 500 14px/1 "Noto Sans", system-ui, sans-serif; cursor: pointer;
}
.demo-toggle:hover { background: rgba(12, 14, 19, 0.92); }
.demo-toggle[hidden] { display: none; }
.demo-toggle svg { width: 14px; height: 14px; fill: currentColor; }

/* Sections */
section { padding: 56px 0; border-top: 1px solid var(--line); }
h2 { font-size: 30px; line-height: 1.25; margin: 0 0 20px; font-weight: 600; }
h3 { font-size: 19px; margin: 0 0 6px; font-weight: 600; }
.muted { color: var(--muted); }
.intro { color: var(--muted); margin: -8px 0 28px; max-width: 760px; }

/* The capture from the headset, full width: it is the product, not decoration */
figure { margin: 0; }
figure img { border-radius: 14px; border: 1px solid var(--line); }
figcaption { color: var(--muted); font-size: 15px; margin-top: 10px; }

.points { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 8px 40px; margin-top: 36px; padding: 0; list-style: none; }
.points li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.points li p { margin: 0; color: var(--muted); }

/* Install, requirements, help: two columns of short procedures and lists.
   min-width: 0 lets a long command scroll inside its block instead of
   widening the page on a phone. */
.steps, .needs, .faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 40px; }
.steps > *, .needs > *, .faq > * { min-width: 0; }
.steps + .steps { margin-top: 40px; }
.steps ol, .steps ul, .needs ul { padding-left: 22px; margin: 0; }
.steps li, .needs li { margin-bottom: 12px; }
.steps li li { margin-bottom: 8px; }
.steps ul.ways { margin-top: 12px; padding-left: 0; list-style: none; }
.steps h4 { font-size: 17px; margin: 0 0 4px; font-weight: 600; }
.faq h3 { font-size: 18px; }
.faq p { margin: 0 0 10px; color: var(--muted); }
.note { color: var(--muted); font-size: 15px; }

footer { border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--muted); font-size: 15px; }
footer p { margin: 0 0 8px; }

/* Privacy page: the text, and its contents beside it on wide screens */
.doc-layout { display: grid; grid-template-columns: minmax(0, 760px) 220px; gap: 64px; justify-content: space-between; padding: 48px 0 64px; }
.doc h1 { font-size: 36px; margin: 0 0 8px; }
.doc h2 { font-size: 22px; margin: 40px 0 10px; scroll-margin-top: 16px; }
.doc .summary { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 18px 24px; margin: 24px 0 8px; }
.doc .summary p { margin: 0 0 6px; font-weight: 500; }
.doc .summary ul { margin: 0; padding-left: 20px; }
.doc .summary li { margin: 6px 0; }
.toc { position: sticky; top: 24px; align-self: start; font-size: 15px; border-left: 1px solid var(--line); padding-left: 18px; }
.toc p { margin: 0 0 8px; color: var(--muted); }
.toc a { display: block; color: var(--muted); text-decoration: none; padding: 4px 0; }
.toc a:hover { color: var(--text); }
@media (max-width: 900px) {
  .doc-layout { grid-template-columns: minmax(0, 1fr); padding: 32px 0 48px; }
  .toc { display: none; }
}

/* Language switch: two small segments, the current one filled */
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; margin-left: 8px; }
.lang a { padding: 6px 12px; color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 500; }
.lang a[aria-current="page"] { background: var(--panel); color: var(--text); }
.lang a:hover { color: var(--text); }

/* Feature bands: one idea each, text beside its picture, sides alternating */
.band { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: center; padding: 40px 0; }
.band.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.band.flip .copy { order: 2; }
.band h3 { font-size: 26px; line-height: 1.25; margin: 0 0 12px; }
.band p { margin: 0 0 10px; color: var(--muted); }
.band img { border-radius: 12px; border: 1px solid var(--line); }
/* The latency band is a number and its explanation, no picture */
.band.stat { align-items: start; }
.band.stat h3 { margin: 0; }
.figure-number { display: block; font-size: 88px; line-height: 1; font-weight: 600; color: var(--text); letter-spacing: -0.03em; }
.figure-number small { font-size: 32px; color: var(--muted); font-weight: 500; margin-left: 6px; letter-spacing: 0; }
.figure-label { display: block; font-size: 19px; line-height: 1.35; font-weight: 500; color: var(--text); margin-top: 12px; }

/* Bands appear as they scroll in. Only when site.js runs and motion is welcome:
   without either, everything is simply there. */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
  .js .reveal.seen { opacity: 1; transform: none; }
}

@media (max-width: 860px) {
  .hero, .steps, .needs, .faq { grid-template-columns: minmax(0, 1fr); }
  .hero { padding: 40px 0; gap: 28px; }
  .hero h1 { font-size: 34px; }
  .top nav.sections { margin-left: 0; gap: 0 16px; order: 3; width: 100%; }
  .lang { margin-left: auto; }
  .band, .band.flip { grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 28px 0; }
  .band.flip .copy { order: 0; }
  .figure-number { font-size: 64px; }
}
@media (max-width: 420px) {
  .wrap { padding: 0 16px; }
  .hero h1 { font-size: 30px; }
  .button { width: 100%; }
  .steps ol, .steps ul, .needs ul { padding-left: 18px; }
  pre { padding: 12px; font-size: 0.85em; }
}

@media print {
  .reveal, .js .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .demo-toggle, .lang, .top nav.sections { display: none !important; }
  section { break-inside: auto; }
  pre { white-space: pre-wrap; }
}
