/* LART BMS — landing. Tokens copiados de BMS_UI/frontend/css/app.css: a pagina
   e a app partilham o mesmo mundo, por isso quem muda a app muda aqui tambem. */

@font-face { font-family: "Poppins"; font-weight: 600; font-display: swap;
  src: url("/app/frontend/fonts/poppins-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Poppins"; font-weight: 600; font-display: swap;
  src: url("/app/frontend/fonts/poppins-600-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Source Sans 3"; font-weight: 500; font-display: swap;
  src: url("/app/frontend/fonts/source-sans-3-500-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Source Sans 3"; font-weight: 500; font-display: swap;
  src: url("/app/frontend/fonts/source-sans-3-500-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Source Sans 3"; font-weight: 600; font-display: swap;
  src: url("/app/frontend/fonts/source-sans-3-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Source Sans 3"; font-weight: 600; font-display: swap;
  src: url("/app/frontend/fonts/source-sans-3-600-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "JetBrains Mono"; font-weight: 500; font-display: swap;
  src: url("/app/frontend/fonts/jetbrains-mono-500-latin.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 600; font-display: swap;
  src: url("/app/frontend/fonts/jetbrains-mono-600-latin.woff2") format("woff2"); }

:root {
  --bg: #0A0A0C;
  --surface: #141417;
  --surface-2: #1C1C20;
  --surface-3: #26262B;
  --line: #26262B;
  --text: #F5F5F7;
  --text-dim: #C4C4CC;
  --text-mute: #94949E;
  --accent: #FFC300;
  --accent-ink: #0A0A0C;
  --accent-dim: #6E5400;
  --accent-soft: rgba(255, 195, 0, .14);
  --ok: #32D74B;
  --idle: #3A3A40;
  --glass: rgba(20, 20, 23, .88);
  --glass-strong: rgba(20, 20, 23, .92);
  --shadow-2: 0 4px 16px -6px rgba(0, 0, 0, .7);
  --shadow-3: 0 24px 60px -24px rgba(0, 0, 0, .9);
  --logo-filter: none;

  --r-sm: 8px; --r-md: 12px; --r-lg: 18px; --r-pill: 999px;
  --font: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --font-title: "Poppins", "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", "Cascadia Mono", ui-monospace, monospace;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  --gutter: clamp(16px, 4vw, 48px);
  --topbar: 64px;
  color-scheme: dark;
}

/* Tema claro da app: nao e o escuro invertido. O amarelo escurece para se ler
   sobre branco; o botao cheio mantem o #FFC300 porque leva texto escuro. */
:root[data-theme="light"] {
  --bg: #F2F2F5;
  --surface: #FFFFFF;
  --surface-2: #F0F0F3;
  --surface-3: #E2E2E7;
  --line: #D8D8DE;
  --text: #16161A;
  --text-dim: #45454E;
  --text-mute: #6B6B76;
  --accent: #A17400;
  --accent-dim: #E8C86A;
  --accent-soft: rgba(161, 116, 0, .12);
  --ok: #1E8E34;
  --idle: #C4C4CC;
  --glass: rgba(255, 255, 255, .94);
  --glass-strong: rgba(255, 255, 255, .96);
  --shadow-2: 0 4px 16px -6px rgba(16, 16, 24, .16);
  --shadow-3: 0 24px 60px -24px rgba(16, 16, 24, .28);
  --logo-filter: brightness(.72) saturate(1.3);
  color-scheme: light;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #F2F2F5;
    --surface: #FFFFFF;
    --surface-2: #F0F0F3;
    --surface-3: #E2E2E7;
    --line: #D8D8DE;
    --text: #16161A;
    --text-dim: #45454E;
    --text-mute: #6B6B76;
    --accent: #A17400;
    --accent-dim: #E8C86A;
    --accent-soft: rgba(161, 116, 0, .12);
    --ok: #1E8E34;
    --idle: #C4C4CC;
    --glass: rgba(255, 255, 255, .94);
    --glass-strong: rgba(255, 255, 255, .96);
    --shadow-2: 0 4px 16px -6px rgba(16, 16, 24, .16);
    --shadow-3: 0 24px 60px -24px rgba(16, 16, 24, .28);
    --logo-filter: brightness(.72) saturate(1.3);
    color-scheme: light;
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

html { background: var(--bg); scroll-behavior: smooth; scroll-padding-top: 16px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 500;
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: .005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  caret-color: var(--accent);
  overflow-x: hidden;
}
::selection { background: #FFC300; color: #0A0A0C; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
html { scrollbar-color: var(--surface-3) var(--bg); scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 10px; border: 2px solid var(--bg); }

a { color: inherit; text-decoration-color: var(--accent); text-underline-offset: .22em; text-decoration-thickness: 1.5px; }
img { display: block; max-width: 100%; height: auto; }
code { font-family: var(--mono); font-size: .86em; font-weight: 500; }
h1, h2, h3 { font-family: var(--font-title); font-weight: 600; text-wrap: balance; color: var(--text); }
p { text-wrap: pretty; }
svg { display: block; }
svg .fill { fill: currentColor; stroke: none; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: var(--accent); color: var(--accent-ink);
  padding: 10px 14px; border-radius: var(--r-sm); font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ── Barra de topo: a da app ─────────────────────────────────────────────── */
.topbar {
  position: absolute; inset: 0 0 auto 0; z-index: 10;
  height: var(--topbar);
  display: flex; align-items: center; gap: 24px;
  padding: 0 var(--gutter);
}
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand-logo { height: 24px; width: auto; filter: var(--logo-filter); }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-title { font-family: var(--font-title); font-weight: 600; font-size: 17px; letter-spacing: -.01em; }
.brand-sub { font-size: 12.5px; color: var(--text-mute); }
.topnav { display: flex; gap: 4px; margin-left: auto; }
.topnav a {
  text-decoration: none; color: var(--text-dim);
  font-size: 14.5px; font-weight: 600;
  padding: 8px 12px; border-radius: var(--r-sm);
  transition: background .2s var(--ease), color .2s var(--ease);
}
.topnav a:hover { background: var(--surface-2); color: var(--text); }
.topbar-right { display: flex; gap: 8px; }
.icon-btn {
  width: 38px; height: 38px; display: grid; place-items: center;
  border-radius: var(--r-sm); border: 0; cursor: pointer;
  background: var(--surface-2); color: var(--text-dim);
  transition: background .2s var(--ease), color .2s var(--ease);
}
.icon-btn:hover { background: var(--surface-3); color: var(--text); }
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme-btn .i-sun { display: none; }
:root[data-mode="light"] .theme-btn .i-sun { display: block; }
:root[data-mode="light"] .theme-btn .i-moon { display: none; }

/* ── Palco: o acumulador e o ecra, os paineis vivem por cima dele ────────── */
.stage {
  position: relative;
  min-height: max(640px, min(100svh, 1040px));
  display: grid;
  grid-template-columns: minmax(0, 520px) 1fr;
  align-items: center;
  padding: calc(var(--topbar) + 24px) var(--gutter) 40px;
  isolation: isolate;
}
.viewer { position: absolute; inset: 0; z-index: -1; }
model-viewer {
  position: absolute; inset: 0 0 0 30%;
  width: auto; height: 100%;
  background: transparent;
  --poster-color: transparent;
  --progress-bar-color: transparent;
  cursor: grab;
}
model-viewer:active { cursor: grabbing; }
.mv-progress {
  position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: transparent; pointer-events: none;
}
.mv-progress span {
  display: block; height: 100%; width: calc(var(--p, 0) * 100%);
  background: var(--accent);
  transition: width .3s var(--ease), opacity .6s var(--ease);
}
.mv-progress.done span { opacity: 0; }

.hotspot {
  width: 14px; height: 14px; border-radius: 50%;
  border: 3px solid var(--hs, var(--text-mute));
  background: var(--bg);
  padding: 0; pointer-events: none;
  transition: border-color .3s var(--ease);
}
.hotspot:not([data-visible]) { opacity: .45; }
.stage[data-demo="on"] .hotspot { --hs: var(--ok); }

.hs-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hs-line {
  stroke: var(--text-mute); stroke-width: 1.5; stroke-dasharray: 2 5; stroke-linecap: round;
  opacity: 0; transition: opacity .3s var(--ease), stroke .3s var(--ease);
}
.hs-line.on { opacity: .8; }
.hs-line.behind { opacity: .28; }
.stage[data-demo="on"] .hs-line { stroke: var(--ok); }

.hs-standoff {
  position: absolute; top: calc(var(--topbar) + 18px); right: var(--gutter);
  pointer-events: none;
}
.readout {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px;
  border-radius: var(--r-sm);
  background: var(--glass-strong);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-2);
  font-family: var(--mono); font-weight: 600; font-size: 15px;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
}
.readout .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--idle); flex: none; }
.readout-on { display: none; gap: 14px; align-items: baseline; }
.readout-on b { color: var(--text); font-weight: 600; }
.readout .tag { color: var(--ok); }
.stage[data-demo="on"] .readout .dot { background: var(--ok); }
.stage[data-demo="on"] .readout-on { display: inline-flex; }
.stage[data-demo="on"] .readout-off { display: none; }

.demo-card {
  position: absolute; right: var(--gutter); bottom: 32px;
  width: 340px;
  display: flex; align-items: center; gap: 18px;
  padding: 16px 18px;
  border-radius: var(--r-md);
  background: var(--glass);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-3);
}
.demo-title { font-family: var(--font-title); font-weight: 600; font-size: 15px; }
.demo-desc { font-size: 13.5px; color: var(--text-mute); line-height: 1.4; margin-top: 2px; }
.switch {
  flex: none; position: relative;
  width: 46px; height: 28px; border-radius: var(--r-pill);
  border: 0; cursor: pointer;
  background: var(--surface-3);
  transition: background .25s var(--ease);
}
.switch span {
  position: absolute; top: 3px; left: 3px;
  width: 22px; height: 22px; border-radius: 50%;
  background: #F5F5F7;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .4);
  transition: transform .3s var(--ease-out);
}
.switch[aria-checked="true"] { background: #FFC300; }
.switch[aria-checked="true"] span { transform: translateX(18px); }

/* ── Painel de download: o "passo de ligacao" da app ───────────────────── */
.get {
  position: relative;
  padding: 32px;
  border-radius: var(--r-lg);
  background: var(--glass);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-3);
}
.get h1 {
  font-size: clamp(2rem, 1.35rem + 1.6vw, 2.65rem);
  line-height: 1.12;
  letter-spacing: -.025em;
}
.lead { color: var(--text-dim); margin-top: 14px; max-width: 42ch; }
.platforms { list-style: none; margin-top: 26px; display: grid; gap: 8px; }
.dl {
  display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 16px;
  padding: 14px 14px 14px 16px;
  border-radius: var(--r-md);
  background: var(--surface-2);
  text-decoration: none;
  transition: background .2s var(--ease), box-shadow .2s var(--ease);
}
.dl:hover { background: var(--surface-3); }
.dl[data-match] { box-shadow: inset 0 0 0 1.5px var(--accent-dim); }
.dl-logo {
  width: 44px; height: 44px; border-radius: var(--r-sm);
  display: grid; place-items: center;
  background: var(--surface); color: var(--text);
}
.dl-logo svg { width: 22px; height: 22px; }
.dl-body { display: flex; flex-direction: column; min-width: 0; }
.dl-name { font-family: var(--font-title); font-weight: 600; font-size: 17px; line-height: 1.3; }
.dl-name .match { font-family: var(--font); font-size: 14px; color: var(--accent); font-weight: 600; }
.dl-meta { font-family: var(--mono); font-size: 12.5px; color: var(--text-mute); margin-top: 3px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.dl-via { font-size: 13.5px; color: var(--text-dim); margin-top: 1px; }
.dl-go {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  border-radius: var(--r-pill);
  background: #FFC300; color: #0A0A0C;
  font-weight: 600; font-size: 15px;
  transition: transform .2s var(--ease-out);
}
.dl-go svg, .btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.dl:hover .dl-go { transform: translateY(1px); }
.get-links { display: flex; gap: 20px; margin-top: 18px; font-size: 14.5px; }
.get-links a { color: var(--text-dim); }
.get-links a:hover { color: var(--text); }

/* ── Secoes ───────────────────────────────────────────────────────────── */
section:not(.stage) { padding: clamp(72px, 9vw, 128px) var(--gutter); }
h2 { font-size: clamp(1.85rem, 1.3rem + 1.7vw, 2.7rem); line-height: 1.12; letter-spacing: -.025em; }
h3 { font-size: 19px; letter-spacing: -.01em; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px;
  border-radius: var(--r-pill);
  background: #FFC300; color: #0A0A0C;
  font-weight: 600; font-size: 16px; text-decoration: none;
  transition: background .2s var(--ease), transform .2s var(--ease-out);
}
.btn:hover { background: #FFD03D; }
.btn:active { transform: translateY(1px); }
.btn-quiet { background: var(--surface-2); color: var(--text); }
.btn-quiet:hover { background: var(--surface-3); }

/* Novidades: as notas da release mais recente, tal como sairam no GitHub. */
section.news {
  display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: 24px clamp(40px, 6vw, 96px);
  max-width: 1120px; margin: 0 auto;
  padding-top: clamp(56px, 7vw, 96px);
}
.news-meta { color: var(--text-mute); margin-top: 12px; max-width: 40ch; }
.news-link { display: inline-block; margin-top: 18px; color: var(--text-dim); font-size: 15px; }
.news-link:hover { color: var(--text); }
.notes { color: var(--text-dim); }
.notes p + p, .notes p + ul, .notes ul + p { margin-top: 12px; }
.notes ul { list-style: none; display: grid; gap: 16px; }
.notes li { position: relative; padding-left: 22px; max-width: 62ch; }
.notes li::before {
  content: ""; position: absolute; left: 2px; top: .62em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
}
.notes strong { color: var(--text); font-weight: 600; }

/* Android: o telemovel e o simulador real; a lista ao lado comanda-o. */
.android {
  display: grid;
  grid-template-columns: minmax(0, 470px) minmax(0, 560px);
  justify-content: center;
  gap: clamp(40px, 7vw, 112px);
  align-items: center;
  background: var(--surface);
}
.phone-col { display: flex; flex-direction: column; align-items: center; }
.phone {
  --s: 1;
  width: calc(410px * var(--s)); height: calc(840px * var(--s));
  border-radius: calc(46px * var(--s));
  box-shadow: var(--shadow-3), 0 40px 80px -40px rgba(0, 0, 0, .8);
  position: relative;
  overflow: hidden;
}
.phone iframe {
  width: 410px; height: 840px; border: 0;
  transform: scale(var(--s)); transform-origin: 0 0;
  color-scheme: dark;
  background: transparent;
}
.phone-note { margin-top: 18px; font-size: 13.5px; color: var(--text-mute); text-align: center; max-width: 36ch; }
.android-copy > p { color: var(--text-dim); margin-top: 16px; max-width: 54ch; }
.screens { list-style: none; margin: 28px 0 32px; display: grid; gap: 2px; }
.screens button {
  width: 100%; text-align: left;
  display: grid; grid-template-columns: 92px 1fr; gap: 16px; align-items: baseline;
  padding: 11px 14px;
  border: 0; border-radius: var(--r-sm);
  background: transparent; color: var(--text-dim);
  font: inherit; cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.screens button:hover { background: var(--surface-2); color: var(--text); }
.screens button[aria-pressed="true"] { background: var(--surface-2); color: var(--text); }
.s-name { font-family: var(--font-title); font-weight: 600; font-size: 15.5px; color: var(--text); display: flex; align-items: center; gap: 8px; }
.s-name::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--idle); flex: none;
  transition: background .2s var(--ease);
}
.screens button[aria-pressed="true"] .s-name::before { background: var(--accent); }
.s-desc { font-size: 15px; line-height: 1.45; }

/* Windows: o ecra real da app, numa janela. */
.windows { display: grid; gap: 48px; max-width: 1280px; margin: 0 auto; }
.windows-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: end; }
.windows-head p { color: var(--text-dim); max-width: 56ch; }
.window {
  border-radius: var(--r-md);
  background: #0A0A0C;
  box-shadow: 0 0 0 1px var(--line), var(--shadow-3);
  overflow: hidden;
}
.window-bar {
  height: 36px; display: flex; align-items: center; gap: 10px;
  padding: 0 0 0 14px;
  background: #141417; color: #C4C4CC; font-size: 13px;
}
.window-bar img { width: 16px; height: 16px; }
.window-ctl { margin-left: auto; display: flex; height: 100%; }
.window-ctl svg { width: 46px; height: 100%; padding: 12px 17px; fill: none; stroke: #C4C4CC; stroke-width: 1; }
.shot { width: 100%; }
.window figcaption { padding: 12px 16px; font-size: 13.5px; color: #94949E; background: #141417; }
.links-table { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px 48px; align-items: end; }
.links-table h3 { grid-column: 1 / -1; }
table { width: 100%; border-collapse: collapse; font-size: 16px; }
th, td { text-align: left; padding: 14px 16px 14px 0; vertical-align: top; }
thead th { font-size: 13.5px; color: var(--text-mute); font-weight: 600; padding-top: 0; }
tbody tr + tr th, tbody tr + tr td { border-top: 1px solid var(--line); }
tbody th { font-family: var(--font-title); font-weight: 600; font-size: 15.5px; white-space: nowrap; }
tbody td { color: var(--text-dim); }

/* Instalar */
.install { background: var(--surface); }
.install > h2, .install-cols { max-width: 1120px; margin-left: auto; margin-right: auto; }
.install-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px clamp(32px, 6vw, 96px); margin-top: 40px; }
.install h3 { margin-bottom: 14px; }
.install ol { list-style: none; counter-reset: step; display: grid; gap: 14px; }
.install li {
  counter-increment: step;
  position: relative; padding-left: 40px;
  color: var(--text-dim); max-width: 52ch;
}
.install li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface-3); color: var(--text);
  font-family: var(--mono); font-size: 13px; font-weight: 600;
  margin-top: 1px;
}
.install em { font-style: normal; color: var(--text); font-weight: 600; }

/* Fecho: o carro */
.close {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px); align-items: center;
  max-width: 1320px; margin: 0 auto;
}
.car { width: 100%; border-radius: var(--r-lg); }
.close-copy p { color: var(--text-dim); margin-top: 14px; max-width: 44ch; }
.close-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }

.foot {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px;
  padding: 28px var(--gutter) 40px;
  border-top: 1px solid var(--line);
  font-size: 14px; color: var(--text-mute);
}
.foot img { height: 20px; width: auto; filter: var(--logo-filter); }
.foot a { color: var(--text-dim); }
.foot .sync { margin-left: auto; font-family: var(--mono); font-size: 12.5px; }

/* ── Ecras mais estreitos ─────────────────────────────────────────────── */
@media (max-width: 1080px) {
  model-viewer { left: 22%; }
  .demo-card { width: 300px; }
  .android { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .windows-head { grid-template-columns: 1fr; gap: 16px; }
}

@media (max-width: 860px) {
  :root { --topbar: 60px; }
  .topnav { display: none; }
  .topbar-right { margin-left: auto; }
  .brand-sub { display: none; }
  .brand-title { font-size: 15px; white-space: nowrap; }
  .brand { gap: 10px; }

  .stage {
    min-height: 0;
    display: block;
    padding: 0;
  }
  .viewer {
    position: relative; inset: auto; z-index: 0;
    height: min(46svh, 440px); min-height: 300px;
  }
  model-viewer { inset: var(--topbar) 0 0 0; height: auto; }
  .hs-standoff { top: calc(var(--topbar) + 6px); }
  .readout { font-size: 13px; padding: 6px 11px; gap: 8px; }
  .readout-on { gap: 10px; }
  .demo-card {
    left: var(--gutter); right: var(--gutter); bottom: 10px; width: auto;
    padding: 10px 14px;
  }
  .demo-desc { display: none; }
  .get {
    margin: 0 var(--gutter);
    padding: 22px 0 8px;
    background: none; backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none;
  }
  .dl { grid-template-columns: 40px 1fr; padding: 12px; gap: 12px; }
  .dl-logo { width: 40px; height: 40px; }
  .dl-go { grid-column: 1 / -1; justify-content: center; padding: 11px 16px; }
  .dl-via { display: none; }

  .android { grid-template-columns: minmax(0, 1fr); }
  section.news { grid-template-columns: minmax(0, 1fr); }
  .android-copy { order: -1; }
  .screens button { grid-template-columns: 80px 1fr; gap: 12px; padding: 10px 8px; }
  .links-table { grid-template-columns: 1fr; }
  .links-table .btn { justify-self: start; }
  thead { display: none; }
  tbody tr { display: grid; grid-template-columns: 1fr; padding: 12px 0; }
  tbody tr + tr { border-top: 1px solid var(--line); }
  tbody tr + tr th, tbody tr + tr td { border-top: 0; }
  th, td { padding: 0; }
  tbody td:last-child { color: var(--text-mute); font-size: 15px; }
  .install-cols { grid-template-columns: 1fr; gap: 40px; }
  .close { grid-template-columns: 1fr; }
  .foot .sync { margin-left: 0; }
}

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