/* openMIX site — one motif: the logo's 3×3 grid (blue inputs, orange Preview, green Program, as in the app's input bar) */
@font-face { font-family: "Unbounded"; font-weight: 800; font-display: swap; src: url(fonts/unbounded-800-cyrillic.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Unbounded"; font-weight: 800; font-display: swap; src: url(fonts/unbounded-800-latin.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+20BD, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Onest"; font-weight: 400 500; font-display: swap; src: url(fonts/onest-cyrillic.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Onest"; font-weight: 400 500; font-display: swap; src: url(fonts/onest-latin.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+20BD, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #d4e8fd;          /* ground: the brand blue, pale */
  --surface: #c2dcf8;     /* one tone step */
  --ink: #1c2026;         /* the app's charcoal, also the ink */
  --muted: #2f4459;
  --accent: #0087ff;      /* brand blue: the motif, the action */
  --accent-ink: #1c2026;
  --pvw: #ff8c00;         /* Preview (orange header in the app) */
  --pgm: #18a33e;         /* Program (green header in the app) */
  --stone: #e3e5e8;      /* low-chroma second ground */
  --pgm-ui: #1f7a2c;     /* Program header green with white text (app UI) */
  --dark: #1c2026;        /* the app's own charcoal */
  --dark-2: #262b33;
  --dark-ink: #eef1f4;
  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-mid: clamp(1.25rem, 0.95rem + 0.9vw, 1.75rem);
  --step-head: clamp(1.75rem, 1.1rem + 2.6vw, 3.5rem);
  --step-display: clamp(2.5rem, 0.8rem + 3.9vw, 4.75rem);
  --step-giant: clamp(6.5rem, 2rem + 15vw, 18rem);
  --m: clamp(16px, 3vw, 40px);
  --gap: 16px;
  --tile-gap: 0.333;     /* logo: tile 6, gap 2 */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 var(--step-body)/1.5 "Onest", system-ui, sans-serif; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 0.08em; }
h1, h2, h3 { font-family: "Unbounded", "Onest", sans-serif; font-weight: 800; letter-spacing: -0.03em; line-height: 1.0; margin: 0; text-wrap: balance; }
h2 { font-size: var(--step-head); }
p { margin: 0; text-wrap: pretty; }
code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 3px solid var(--pvw); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* bilingual: Russian first, English on request */
html:not([data-lang="en"]) .en, html[data-lang="en"] .ru { display: none !important; }

/* ---------- buttons: square, one fill ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 28px; border: 0; border-radius: 0;
  background: var(--accent); color: var(--accent-ink); font: 500 var(--step-body)/1 "Onest", sans-serif; text-decoration: none; cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 160ms; }
.btn:hover { background: #2a99ff; }
.btn:active { transform: scale(0.97); }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.link { font-weight: 500; text-decoration: underline; }
.link:hover { text-decoration-thickness: 0.14em; }

/* ---------- bar ---------- */
.bar { position: absolute; inset: 0 0 auto 0; z-index: 5; display: flex; align-items: center; gap: 28px; padding: 22px var(--m); background: var(--bg); }
.mark { display: inline-flex; align-items: center; gap: 12px; font: 800 var(--step-mid)/1 "Unbounded", sans-serif; letter-spacing: -0.04em; text-decoration: none; }
.mark-grid { display: grid; grid-template-columns: repeat(3, 8px); gap: 3px; }
.mark-grid i { width: 8px; height: 8px; background: var(--accent); }
.mark-grid i.p { background: var(--pvw); } .mark-grid i.g { background: var(--pgm); }
.bar nav { margin-left: auto; display: flex; align-items: center; gap: 24px; }
.bar nav a { text-decoration: none; font-weight: 500; }
.bar nav a:hover { text-decoration: underline; }
.lang { background: none; border: 0; padding: 8px 0; font: 500 var(--step-body)/1 "Onest", sans-serif; color: inherit; cursor: pointer; }
.lang:hover { text-decoration: underline; }

/* ---------- hero: the logo at enormous scale, cropped by the viewport ---------- */
.hero { position: relative; min-height: 100svh; overflow: hidden; display: flex; align-items: center; padding: 120px var(--m) 80px; }
.hero-text { position: relative; z-index: 2; width: min(46vw, 700px); }
.hero h1 { font-size: var(--step-display); }
.hero p { margin-top: 28px; max-width: 34ch; }
.hero .actions { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.motif { --t: min(33svh, 21vw); position: absolute; z-index: 1; left: 50vw; top: calc(57svh - 1.8333 * var(--t));
  display: grid; grid-template-columns: repeat(3, var(--t)); grid-auto-rows: var(--t); gap: calc(var(--t) * var(--tile-gap)); }
.tile { position: relative; overflow: hidden; background: var(--accent); }
.tile.p { background: var(--pvw); } .tile.g { background: var(--pgm); }
.tile > img, .tile > video { width: 100%; height: 100%; object-fit: cover; }
.tile.duo > img { filter: grayscale(1) contrast(1.1) brightness(1.25); mix-blend-mode: multiply; opacity: 0.62; }
.tile.inset { padding: 7%; }
.tile.inset > video, .tile.inset > img { width: 100%; height: 100%; }

/* ---------- showcase: the app's Cut panel, blown up and working ---------- */
.switch { position: relative; min-height: 92svh; overflow: hidden; background: var(--dark); color: var(--dark-ink); padding: 112px var(--m) 72px; transition: background-color 420ms var(--ease-out); }
.switch.flash { background: #0d3a66; }
.switch h2 { max-width: 13ch; }
.switch h2 .cam { color: inherit; }
.switch .lede { margin-top: 20px; max-width: 40ch; }
.pgm-mon { margin-top: 40px; width: min(36vw, 560px); aspect-ratio: 16 / 9; position: relative; background: #000; }
.pgm-mon img { width: 100%; height: 100%; object-fit: cover; }
.pgm-mon .hdr, .thumb .hdr { position: absolute; inset: 0 0 auto 0; height: 2.2em; display: flex; align-items: center; gap: 0.6em; padding: 0 0.6em; background: var(--pgm-ui); color: #fff; font: 500 var(--step-small)/1 "Onest", sans-serif; }
.api { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; max-width: 44ch; }
.api code { color: #fff; background: var(--dark-2); padding: 6px 10px; overflow-wrap: anywhere; }
.panel { position: absolute; right: -6vw; bottom: 8svh; font-size: var(--step-mid); width: 24em; display: grid; gap: 0.5em; }
.panel .row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.4em; }
.ui-btn { font: 500 1em/1 "Onest", sans-serif; color: #e8ecef; background: #3a4149; border: 0.06em solid #4b545e; border-radius: 0.12em; min-height: 2.6em; cursor: pointer; transition: background-color 140ms, transform 120ms var(--ease-out); }
.ui-btn:hover { background: #46505a; }
.ui-btn:active { transform: scale(0.97); }
.ui-btn.on { background: var(--pvw); border-color: #ffb050; color: #111; }
.ui-btn.live { background: var(--pgm-ui); border-color: #3fae55; color: #fff; }
.ui-cut { font-size: var(--step-display); min-height: 2.2em; letter-spacing: -0.01em; }
.thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.4em; }
.thumb { position: relative; aspect-ratio: 16 / 11; padding: 0; border: 0; background: #000; cursor: pointer; font-size: var(--step-small); overflow: hidden; }
.thumb img { position: absolute; inset: 2.2em 0 0 0; width: 100%; height: calc(100% - 2.2em); object-fit: cover; }
.thumb:hover .hdr { filter: brightness(1.15); }
.thumb .hdr { background: #1d4f91; }
.thumb.pvw .hdr { background: var(--pvw); color: #111; }
.thumb.pgm .hdr { background: var(--pgm-ui); }

/* ---------- main window band ---------- */
.window { background: var(--dark); color: var(--dark-ink); padding: 96px 0 0; }
.window-head { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); padding: 0 var(--m) 48px; align-items: end; }
.window-head h2 { grid-column: 1 / span 6; }
.window-head p { grid-column: 8 / span 5; }
.window figure { margin: 0; }
.window figure img { width: 100%; height: auto; }

/* ---------- latency figure ---------- */
.latency { min-height: 88svh; background: var(--pvw); padding: 112px var(--m) 72px; display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); grid-template-rows: auto 1fr auto; }
.latency h2 { grid-column: 1 / span 7; }
.lat-ctrl { grid-column: 1 / span 5; margin-top: 28px; width: min(100%, 440px); background: var(--dark); color: var(--dark-ink); padding: 18px 20px 20px; font-size: var(--step-small); }
.lat-ctrl label { display: flex; justify-content: space-between; font-weight: 500; }
.lat-ctrl output { font-variant-numeric: tabular-nums; }
.lat-ctrl input[type=range] { width: 100%; margin: 14px 0 18px; accent-color: var(--accent); height: 28px; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.seg button { /* taste-skill-ignore: the app's own segmented control (data-ui) */ font: 500 var(--step-small)/1 "Onest", sans-serif; min-height: 40px; color: #e8ecef; background: #3a4149; border: 1px solid #4b545e; border-radius: 2px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--accent); border-color: #5db3ff; color: #08121c; }
.lat-fig { grid-column: 1 / span 8; align-self: end; font: 800 var(--step-giant)/0.8 "Unbounded", sans-serif; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lat-fig small { font-size: var(--step-head); letter-spacing: -0.02em; margin-left: 0.15em; }
.lat-note { grid-column: 9 / span 4; align-self: end; max-width: 34ch; }

/* ---------- features: specimens on colour tiles ---------- */
.features { padding: 160px var(--m) 140px; display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); }
.features > header { grid-column: 1 / span 4; }
.features > header p { margin-top: 20px; max-width: 30ch; }
.specimens { grid-column: 5 / span 8; display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px 10px; }
.spec .plate { aspect-ratio: 4 / 5; display: flex; align-items: center; justify-content: center; padding: 8%; background: var(--surface); overflow: hidden; }
.spec.wide { grid-column: span 2; }
.spec.wide .plate { aspect-ratio: 8 / 5; }
.spec:nth-child(3n+2) .plate { background: var(--stone); }
.spec:nth-child(3n) .plate { background: var(--dark); }
.spec .plate img { width: 100%; height: auto; max-height: 100%; object-fit: contain; }
.spec h3 { margin-top: 14px; font: 500 var(--step-body)/1.25 "Onest", sans-serif; letter-spacing: -0.01em; }
.spec p { margin-top: 4px; }

/* ---------- everything else: a long list on colour ---------- */
.more { background: var(--accent); color: var(--ink); padding: 140px var(--m); display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); }
.more h2 { grid-column: 1 / span 4; }
.more .cols { grid-column: 5 / span 8; columns: 2 300px; column-gap: 48px; }
.more .group { break-inside: avoid; margin: 0 0 36px; }
.more h3 { font: 500 var(--step-body)/1.25 "Onest", sans-serif; margin-bottom: 8px; }
.sq { list-style: none; margin: 0; padding: 0; }
.sq li { position: relative; padding-left: 22px; margin: 6px 0; }
.sq li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 9px; height: 9px; background: currentColor; }

/* ---------- how it works: one card, four fields ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); }
.step { position: relative; min-height: 84svh; padding: 96px 28px 36px; display: flex; flex-direction: column; }
.step:nth-child(1) { background: var(--bg); } .step:nth-child(2) { background: var(--stone); }
.step:nth-child(3) { background: var(--pvw); } .step:nth-child(4) { background: var(--dark); color: var(--dark-ink); }
.step h2 { font-size: var(--step-mid); position: absolute; top: 40px; left: 28px; right: 28px; }
.step .clause { margin-top: auto; font: 800 var(--step-mid)/1.1 "Unbounded", sans-serif; letter-spacing: -0.03em; }
.lic { margin: 18svh auto 0; width: min(100%, 280px); background: #23282f; color: #e8ecef; font-size: var(--step-small); line-height: 1.4; padding: 14px 16px 16px; border-radius: 2px; }
.lic .t { font-weight: 500; margin-bottom: 10px; color: #fff; }
.lic dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; }
.lic dt { color: #9aa3ad; } .lic dd { margin: 0; overflow-wrap: anywhere; }
.lic .bar-ok { margin-top: 14px; min-height: 36px; padding: 8px 14px; display: flex; align-items: center; justify-content: center; background: #2e353d; color: #c3cad1; }
.lic .bar-ok.live { background: var(--pgm-ui); color: #fff; }

/* ---------- free licence: the price, very large ---------- */
.free { padding: 160px var(--m) 150px; display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); align-items: start; min-height: 80svh; scroll-margin-top: 0; }
.free > header { grid-column: 1 / span 5; }
.free > header p { margin-top: 20px; max-width: 34ch; }
.price { grid-column: 7 / span 6; }
.price-fig { position: relative; display: inline-block; font: 800 var(--step-display)/0.9 "Unbounded", sans-serif; letter-spacing: -0.04em; }
.price-fig .cur { font-size: var(--step-mid); vertical-align: top; position: relative; top: 0.08em; margin-left: 0.04em; }
.price-fig .per { font: 500 var(--step-body)/1 "Onest", sans-serif; letter-spacing: 0; margin-left: 0.8em; }
.incl { margin: 36px 0 0; padding: 0; list-style: none; }
.incl li { margin: 4px 0; }
.form { margin-top: 36px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 640px; }
.form label { display: grid; gap: 6px; font-size: var(--step-small); font-weight: 500; }
.form input { font: 400 var(--step-body)/1 "Onest", sans-serif; min-height: 52px; padding: 0 14px; border: 2px solid transparent; border-radius: 0; background: #fff; color: var(--ink); }
.form input:focus { outline: none; border-color: var(--accent); }
.form .hint { grid-column: 1 / -1; font-size: var(--step-small); color: var(--muted); }
.form .go { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 8px; }
.form .err { color: #b3261e; font-weight: 500; }
.hp { position: absolute; left: -9999px; top: 0; overflow: hidden; clip-path: inset(50%); }
.keybox { margin-top: 36px; max-width: 640px; background: var(--dark); color: var(--dark-ink); padding: 24px; }
.keybox[hidden] { display: none; }
.keybox .k { display: block; margin: 10px 0 16px; font-size: var(--step-mid); color: #fff; letter-spacing: 0.02em; overflow-wrap: anywhere; }
.keybox .row { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }
.keybox .btn { min-height: 48px; }
.keybox p + p { margin-top: 10px; }

/* ---------- download band ---------- */
.dl { background: var(--dark); color: var(--dark-ink); padding: 120px var(--m); display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); align-items: end; }
.dl h2 { grid-column: 1 / span 6; }
.dl .facts { grid-column: 1 / span 6; margin-top: 28px; }
.dl .facts p + p { margin-top: 6px; }
.dl .act { grid-column: 7 / span 6; display: grid; gap: 22px; justify-items: start; }
.dl .soon { color: #b9c2cc; }
.dl a.link { color: #fff; }

/* ---------- FAQ: accordion of filled tiles ---------- */
.faq { padding: 160px var(--m); display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); align-items: start; }
.faq h2 { grid-column: 1 / span 4; position: sticky; top: 96px; }
.faq .list { grid-column: 5 / span 8; display: grid; gap: 8px; }
.faq details { background: var(--surface); transition: background-color 200ms; }
.faq details[open] { background: var(--accent); color: var(--accent-ink); }
.faq summary { list-style: none; min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px 24px; cursor: pointer; font-weight: 500; font-size: var(--step-body); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { position: relative; flex: none; width: 16px; height: 16px; }
.faq summary .pm::before, .faq summary .pm::after { content: ""; position: absolute; left: 0; top: 6.5px; width: 16px; height: 3px; background: currentColor; transition: transform 220ms var(--ease-out); }
.faq summary .pm::after { transform: rotate(90deg); }
.faq details[open] .pm::after { transform: rotate(0deg); }
.faq summary:hover { background: rgba(0, 0, 0, 0.04); }
.faq .ans { padding: 0 24px 24px; max-width: 60ch; }
.faq .ans p + p, .faq .ans ol { margin-top: 10px; }
.faq .ans ol { padding-left: 1.2em; }

/* ---------- footer: the mark, built large ---------- */
.foot { background: var(--dark); color: var(--dark-ink); padding: 96px var(--m) 32px; }
.bigmark { display: flex; align-items: flex-end; gap: clamp(16px, 2vw, 28px); }
.bigmark .mark-grid { grid-template-columns: repeat(3, calc(var(--step-display) * 0.27)); gap: calc(var(--step-display) * 0.09); }
.bigmark .mark-grid i { width: auto; height: auto; aspect-ratio: 1; }
.bigmark .word { font: 800 var(--step-display)/0.8 "Unbounded", sans-serif; letter-spacing: -0.05em; white-space: nowrap; }
.foot-cols { margin-top: 64px; display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px var(--gap); font-size: var(--step-small); }
.foot-cols > div { grid-column: span 3; }
.foot-cols > div.credits { grid-column: span 6; color: #b9c2cc; }
.foot-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-cols a { text-decoration: none; } .foot-cols a:hover { text-decoration: underline; }
.foot-cols h3 { font: 500 var(--step-small)/1.3 "Onest", sans-serif; color: #fff; margin-bottom: 10px; }
.foot .last { margin-top: 56px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; color: #b9c2cc; font-size: var(--step-small); }
.foot .last .btn { min-height: 44px; padding: 0 18px; font-size: var(--step-small); }
.foot .last .btn.info { width: 44px; padding: 0; }
.foot .last .gets { gap: 10px 12px; }

/* ---------- download page ---------- */
.dlp { min-height: 100svh; position: relative; overflow: hidden; padding: 140px var(--m) 100px; display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); align-content: start; }
.dlp > header { grid-column: 1 / span 7; position: relative; z-index: 2; }
.dlp h1 { font-size: var(--step-display); }
.dlp > header p { margin-top: 24px; max-width: 40ch; }
.dlp .motif { --t: 26svh; left: calc(88vw - 1.8333 * var(--t)); top: calc(38svh - 1.8333 * var(--t)); }
.filecard { grid-column: 1 / span 7; position: relative; z-index: 2; margin-top: 48px; background: var(--dark); color: var(--dark-ink); padding: 28px; }
.filecard h2 { font-size: var(--step-mid); }
.filecard > p { margin-top: 14px; max-width: 62ch; }
.filecard .gets { margin-top: 26px; }
.filecard ol { margin-top: 18px; padding-left: 1.3em; display: grid; gap: 8px; max-width: 62ch; }
.filecard code { overflow-wrap: anywhere; }
.filecard dl, .filedlg dl { margin: 22px 0 26px; display: grid; grid-template-columns: max-content 1fr; gap: 8px 24px; }
.filecard dt, .filedlg dt { color: #a9b3bd; } .filecard dd, .filedlg dd { margin: 0; overflow-wrap: anywhere; }
.filecard .row, .filedlg .row { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; }
.filecard a.link, .filedlg a.link { color: #fff; }

/* ---------- download buttons: one per system; the ⓘ beside each opens that file's card ---------- */
.gets { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.get { display: inline-flex; }
.get .btn.info { width: 56px; padding: 0; margin-left: 2px; }
.get .btn.info svg { width: 22px; height: 22px; }
.filedlg { width: min(620px, calc(100% - 32px)); max-height: calc(100svh - 32px); margin: auto; padding: 0; border: 0; background: var(--dark); color: var(--dark-ink); overflow: auto; overscroll-behavior: contain; }
.filedlg::backdrop { background: rgb(28 32 38 / 0.64); }
.filedlg .in { position: relative; padding: 28px; }
.filedlg h2 { font-size: var(--step-mid); padding-right: 48px; }
.filedlg h3 { font: 500 var(--step-body)/1.25 "Onest", sans-serif; color: #fff; margin-top: 4px; }
.filedlg .note { margin: -8px 0 24px; color: #b9c2cc; font-size: var(--step-small); }
.filedlg .x { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; display: grid; place-items: center; padding: 0; border: 0; background: none; color: #fff; cursor: pointer; }
.filedlg .x:hover { background: var(--dark-2); }
.filedlg[open] { animation: dlg-in 260ms var(--ease-out); }
.filedlg[open]::backdrop { animation: dlg-fade 260ms; }
@keyframes dlg-in { from { opacity: 0; transform: translateY(14px); } }
@keyframes dlg-fade { from { opacity: 0; } }
html:has(.filedlg[open]) { overflow: hidden; }

/* ---------- What's new: every release, newest first (changelog.json, the log the app's What's New shows) ---------- */
.btn.ghost { background: none; color: inherit; box-shadow: inset 0 0 0 2px currentColor; }
.btn.ghost:hover { background: color-mix(in srgb, currentColor 10%, transparent); }
.filedlg.changes { width: min(760px, calc(100% - 32px)); }
.changes .head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 14px 16px 28px; background: var(--dark); box-shadow: 0 1px 0 rgb(255 255 255 / 0.1); }
.changes .head h2 { padding-right: 0; }
.changes .head .x { position: static; flex: none; }
.changes .in { padding-top: 4px; }
.changes .rel { padding: 24px 0; }
.changes .rel + .rel { border-top: 1px solid rgb(255 255 255 / 0.1); }
.changes .rel h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 0; font: 800 var(--step-mid)/1.1 "Unbounded", sans-serif; }
.changes .tag { padding: 5px 8px; background: var(--pgm-ui); color: #fff; font: 500 var(--step-small)/1 "Onest", sans-serif; letter-spacing: 0; }
.changes .when { margin-top: 6px; color: #a9b3bd; font-size: var(--step-small); }
.changes ul { margin-top: 14px; padding-left: 1.2em; display: grid; gap: 10px; max-width: 68ch; }
.changes li::marker { color: var(--accent); }
.changes li.hit, .changes .rel.hit h3 { background: rgb(0 135 255 / 0.22); box-shadow: -8px 0 0 rgb(0 135 255 / 0.22), 8px 0 0 rgb(0 135 255 / 0.22); }
.changes .msg { padding: 24px 0; color: #b9c2cc; }
.platforms { grid-column: 1 / span 7; position: relative; z-index: 2; margin-top: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.platforms > div { background: var(--surface); padding: 22px 24px; }
.platforms h3 { font: 500 var(--step-body)/1.2 "Onest", sans-serif; }
.platforms p { margin-top: 6px; }
.install { padding: 140px var(--m); background: var(--stone); display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); }
.install h2 { grid-column: 1 / span 4; }
.install .body { grid-column: 6 / span 7; }
.install ol { margin: 0; padding-left: 1.3em; display: grid; gap: 14px; }
.install h3 { font: 500 var(--step-body)/1.25 "Onest", sans-serif; margin: 40px 0 12px; }
.install .body > p { margin-top: 12px; }
.req { padding: 140px var(--m); display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); }
.req h2 { grid-column: 1 / span 4; }
.req .body { grid-column: 6 / span 7; }
.req table { width: 100%; border-collapse: collapse; }
.req th, .req td { text-align: left; padding: 14px 12px 14px 0; border-bottom: 2px solid var(--surface); vertical-align: top; }
.req th { width: 34%; font-weight: 500; }

/* ---------- phone compositions ---------- */
@media (max-width: 900px) {
  .bar { gap: 16px; padding-top: 18px; }
  .bar nav a:not(.keep) { display: none; }
  .hero { align-items: flex-start; padding-top: 15svh; min-height: 100svh; }
  .hero-text { width: 100%; }
  .hero h1 { font-size: clamp(2rem, 9vw, 3.4rem); }
  .hero p { margin-top: 18px; }
  .hero .actions { margin-top: 24px; }
  .motif { --t: 35vw; left: calc(50vw - 1.8333 * var(--t)); top: auto; bottom: calc(-1.1 * var(--t)); }
  /* the hero's grid follows the text (two download buttons make it tall), cropped by the hero's bottom edge */
  .hero { flex-direction: column; padding-bottom: 0; }
  .hero .motif { position: relative; left: auto; bottom: auto; flex: none; margin: 48px 0 calc(-2 * var(--t)) calc(50vw - var(--m) - 1.8333 * var(--t)); }
  .switch { min-height: 86svh; padding-top: 88px; }
  .pgm-mon { width: 100%; max-width: 520px; margin-top: 28px; }
  .panel { position: relative; right: auto; bottom: auto; margin: 36px 0 0; width: 100%; font-size: var(--step-body); }
  .ui-cut { font-size: var(--step-head); }
  .window { padding-top: 72px; }
  .window-head { display: block; padding-bottom: 28px; }
  .window-head p { margin-top: 16px; }
  .window figure { aspect-ratio: 4 / 5; overflow: hidden; }
  .window figure img { width: auto; height: 100%; max-width: none; object-fit: cover; object-position: 0 0; }
  .latency { display: flex; flex-direction: column; min-height: 84svh; padding-top: 88px; }
  .lat-ctrl { width: 100%; }
  .lat-ctrl input[type=range] { height: 44px; }
  .lat-fig { margin-top: auto; padding-top: 64px; font-size: 30vw; align-self: flex-start; }
  .lat-note { align-self: flex-start; }
  .lat-note { margin-top: 20px; }
  .features, .more, .free, .faq, .dl, .install, .req { display: block; padding-top: 104px; padding-bottom: 104px; }
  .features > header p, .free > header p { margin-top: 14px; }
  .specimens { margin-top: 36px; grid-template-columns: 1fr 1fr; gap: 28px 8px; }
  .spec.wide { grid-column: 1 / -1; order: -1; }
  .more .cols { margin-top: 36px; columns: 1; }
  .steps { grid-template-columns: 1fr; }
  .step { min-height: 64svh; padding: 28px 20px 36px; }
  .step h2 { position: static; margin-bottom: 18px; }
  .step .clause { margin-top: 0; order: -1; }
  .step h2 + .clause { order: 0; }
  .lic { margin: 32px 0 0; }
  .price { margin-top: 40px; }
  .form { grid-template-columns: 1fr; }
  .form .btn { width: 100%; }
  .dl .act { margin-top: 32px; }
  .hero .actions .get, .dl .get, .filecard .get { width: 100%; }
  .hero .actions .get > .btn:first-child, .dl .get > .btn:first-child, .filecard .get > .btn:first-child { flex: 1; }
  .hero .actions > .btn.ghost, .gets > .btn.ghost { width: 100%; }
  .filedlg .in { padding: 22px 20px 24px; }
  .changes .head { padding: 10px 8px 10px 20px; }
  .changes .in { padding-top: 0; }
  .filedlg dl { grid-template-columns: 1fr; gap: 2px; }
  .filedlg dd + dt { margin-top: 10px; }
  .faq h2 { position: static; margin-bottom: 32px; }
  .faq summary { min-height: 64px; padding: 16px 20px; }
  .faq .ans { padding: 0 20px 20px; }
  .foot-cols > div { grid-column: span 6; }
  .foot-cols > div.credits { grid-column: 1 / -1; }
  .dlp { display: block; padding-top: 112px; }
  .dlp .motif { --t: 30vw; left: auto; right: calc(-1.2 * var(--t)); top: calc(-0.9 * var(--t)); }
  .platforms { grid-template-columns: 1fr; }
  .install .body, .req .body { margin-top: 32px; }
}

/* ---------- motion: one load moment (the logo grid assembles in reading order); the rest answers a click ---------- */
.motif .tile { transform: scale(0.6); opacity: 0; transition: transform 900ms var(--ease-out), opacity 600ms; transition-delay: calc(var(--i, 0) * 70ms + 150ms); }
.ready .motif .tile, .no-js .motif .tile { transform: none; opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .motif .tile { opacity: 1 !important; transform: none !important; transition: none !important; }
  .btn, .ui-btn, .switch, .faq details, .faq summary .pm::before, .faq summary .pm::after { transition: none; }
  .filedlg[open], .filedlg[open]::backdrop { animation: none; }
}

/* real code blocks (install commands) */
pre { margin: 12px 0 0; background: var(--dark); color: #f2f4f6; padding: 14px 16px; overflow-x: auto; font-size: var(--step-small); line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }

/* text pages: Privacy Policy, Terms of Use, Support, Zoom inputs (deploy/text-pages.py) */
.doc { padding: 140px var(--m) 120px; display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); }
.doc > header { grid-column: 1 / span 12; }
.doc h1 { font-size: var(--step-display); }
.doc > header p { margin: 20px 0 0; color: var(--muted); }
.doc .body { grid-column: 3 / span 8; max-width: 72ch; margin-top: 48px; }
.doc h2 { font-size: var(--step-mid); line-height: 1.15; margin: 48px 0 14px; }
.doc .body > div > h2:first-child { margin-top: 0; }
.doc p, .doc ul, .doc ol { margin: 0; }
.doc p + p, .doc p + ul, .doc p + ol, .doc ul + p, .doc ol + p, .doc li + li { margin-top: 10px; }
.doc ul, .doc ol { padding-left: 1.3em; }
.doc a { color: inherit; text-underline-offset: 3px; }
.doc a.btn { color: var(--accent-ink); text-decoration: none; }
.doc b { font-weight: 600; }
.foot .legal { display: inline-flex; flex-wrap: wrap; gap: 0 6px; }
.foot .legal a { color: inherit; text-decoration: none; }
.foot .legal a:hover { text-decoration: underline; }
@media (max-width: 900px) { .doc { padding-top: 112px; } .doc .body { grid-column: 1 / -1; margin-top: 32px; } }

/* test clips (download/test-clips/, deploy/test-clips.py): a download table, no preview */
.clipdoc > header p.lead { color: var(--ink); max-width: 60ch; }
.clipdoc .body { grid-column: 1 / span 10; max-width: 900px; }
.clipdoc .body > p, .clipdoc .body > ul { max-width: 72ch; }
@media (max-width: 900px) { .clipdoc .body { grid-column: 1 / -1; } }
.clips { width: 100%; border-collapse: collapse; }
.clips th, .clips td { text-align: left; padding: 14px 16px 14px 0; border-bottom: 2px solid var(--surface); vertical-align: middle; }
.clips thead th { padding-top: 0; font-weight: 500; font-size: var(--step-small); color: var(--muted); }
.clips .v b { display: block; font-family: "Unbounded", "Onest", sans-serif; font-weight: 800; letter-spacing: -0.02em; font-size: var(--step-mid); line-height: 1.1; }
.clips .v code { display: block; margin-top: 6px; font-size: var(--step-small); color: var(--muted); white-space: nowrap; }
.clips .s { white-space: nowrap; font-variant-numeric: tabular-nums; }
.clips td.getcell { padding-right: 0; text-align: right; }
.clips .btn { min-height: 44px; padding: 0 20px; }
.clipdoc .after { margin-top: 18px; font-size: var(--step-small); color: var(--muted); }
.clipdoc details { margin-top: 14px; font-size: var(--step-small); }
.clipdoc summary { cursor: pointer; font-weight: 500; width: fit-content; }
@media (max-width: 640px) {
  .clips thead { display: none; }
  .clips, .clips tbody { display: block; }
  .clips tr { display: grid; grid-template-columns: 1fr auto; column-gap: 16px; padding: 16px 0; border-bottom: 2px solid var(--surface); }
  .clips td { padding: 0; border: 0; grid-column: 1; }
  .clips td.getcell { grid-column: 2; grid-row: 1 / span 3; align-self: center; }
  .clips .d, .clips .s { margin-top: 4px; font-size: var(--step-small); }
  .clips .v code { display: none; }
}
