/* ============================================================
   Ember — landing page
   The same system as the app (src/index.css): two-tier surfaces,
   hairline rules, mono readouts, one warm signal colour, no
   gradients, no decorative shadows.

   One addition: the app's type ramp stops at 20px because the
   window is a working surface. A page that has to be read from
   across a room needs a display step, so this file adds
   24 / 32 / 44 / 56 in the same family at the same weights.
   Nothing renders below 11px.
   ============================================================ */

@font-face {
  font-family: "Inter Variable";
  src: url("assets/fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono Variable";
  src: url("assets/fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --font-ui: "Inter Variable", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono Variable", "JetBrains Mono", ui-monospace, SFMono-Regular,
    "SF Mono", Menlo, Consolas, monospace;

  /* app ramp */
  --fs-xs: 11px;
  --fs-sm: 12px;
  --fs-md: 13px;
  --fs-lg: 15px;
  --fs-xl: 20px;
  /* landing display ramp */
  --fs-24: 24px;
  --fs-32: 32px;
  --fs-44: 44px;
  --fs-56: 56px;

  --r-sm: 4px;
  --r-md: 6px;
  --r-lg: 10px;

  --ease: cubic-bezier(0.22, 0.68, 0.35, 1);
  --dur: 140ms;
  --page: 1120px;
  --gutter: 24px;
}

/* One palette, two themes, surfaces deliberately far apart. */
:root,
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b0d11;
  --bg-sunken: #080a0d;
  --panel: #161b23;
  --panel-2: #1d232d;
  --panel-3: #262e3a;
  --line: #232b36;
  --line-2: #313b49;

  --text: #eef2f7;
  --text-2: #bcc7d5;
  --text-3: #9dabbb;

  --accent: #ff7a45;
  --accent-2: #ff9668;
  --accent-ink: #1a0a04;
  --accent-text: #ff9a70;
  --accent-soft: rgba(255, 122, 69, 0.13);
  --accent-line: rgba(255, 122, 69, 0.38);

  --ok: #3ddc97;
  --warn: #f5b544;
  --danger: #ff6b6b;
  --ok-ink: #06231a;
  --ok-halo: rgba(61, 220, 151, 0.24);

  --data-in: #6fb0ff;
  --data-out: #ff8a5c;
  --q1: #9dabbb;
  --q2: #b18cff;

  --focus: #ff7a45;
  --row-in: rgba(111, 176, 255, 0.05);
  --row-out: rgba(255, 138, 92, 0.05);
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #e9edf2;
  --bg-sunken: #e1e6ed;
  --panel: #ffffff;
  --panel-2: #f3f6fa;
  --panel-3: #e6ecf3;
  --line: #dbe2ea;
  --line-2: #c9d3de;

  --text: #0d1117;
  --text-2: #46525f;
  --text-3: #5b6875;

  --accent: #c2410c;
  --accent-2: #a83806;
  --accent-ink: #ffffff;
  --accent-text: #a83806;
  --accent-soft: rgba(194, 65, 12, 0.09);
  --accent-line: rgba(194, 65, 12, 0.34);

  --ok: #0a7047;
  --warn: #8a5a06;
  --danger: #c0392b;
  --ok-ink: #ffffff;
  --ok-halo: rgba(10, 112, 71, 0.2);

  --data-in: #1d5fd0;
  --data-out: #a6400f;
  --q1: #5b6875;
  --q2: #6b3fd4;

  --focus: #c2410c;
  --row-in: rgba(29, 95, 208, 0.05);
  --row-out: rgba(166, 64, 15, 0.05);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: var(--fs-lg);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--accent-soft);
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

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

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 20;
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  padding: 8px 12px;
  font-size: var(--fs-md);
  transition: top var(--dur) var(--ease);
}

.skip:focus {
  top: 12px;
}

.wrap {
  width: 100%;
  max-width: var(--page);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- shared type ---------- */

.label {
  font-size: var(--fs-xs);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}

.mono {
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  line-height: 1.6;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}

.lead {
  font-size: var(--fs-xl);
  line-height: 1.45;
  color: var(--text-2);
  letter-spacing: -0.01em;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 38px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: var(--r-md);
  background: transparent;
  color: var(--text);
  font-family: inherit;
  font-size: var(--fs-md);
  font-weight: 550;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease),
    color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.btn:active {
  transform: scale(0.975);
}

.btn svg {
  width: 15px;
  height: 15px;
  flex: none;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.btn-primary:hover {
  background: var(--accent-2);
}

.btn-secondary {
  background: var(--panel-2);
  border-color: var(--line-2);
  color: var(--text);
}

.btn-secondary:hover {
  background: var(--panel-3);
}

[data-theme="light"] .btn-secondary {
  background: var(--panel);
}

[data-theme="light"] .btn-secondary:hover {
  background: var(--panel-2);
}

.btn-ghost {
  color: var(--text-2);
  padding: 0 10px;
}

.btn-ghost:hover {
  color: var(--text);
  background: var(--panel-2);
}

.btn-icon {
  width: 30px;
  height: 30px;
  padding: 0;
  border-radius: var(--r-sm);
  color: var(--text-3);
}

.btn-icon:hover {
  color: var(--text);
  background: var(--panel-2);
}

.btn-icon svg {
  width: 16px;
  height: 16px;
  display: block;
}

/* The button shows the theme it will switch to. */
[data-theme="dark"] .icon-moon,
[data-theme="light"] .icon-sun {
  display: none;
}

/* ---------- top bar ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

@supports not (background: color-mix(in srgb, red 50%, blue)) {
  .topbar {
    background: var(--bg);
  }
}

.topbar-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 56px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex: none;
  min-height: 30px;
  color: var(--text);
}

.brand-mark {
  width: 22px;
  height: 22px;
  color: var(--accent);
  flex: none;
}

.brand-word {
  font-size: var(--fs-lg);
  font-weight: 620;
  letter-spacing: -0.02em;
  line-height: 1;
}

.brand-version {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--text-3);
  padding-left: 9px;
  margin-left: 1px;
  border-left: 1px solid var(--line-2);
  line-height: 1;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 8px;
}

.nav a {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 10px;
  border-radius: var(--r-sm);
  font-size: var(--fs-md);
  font-weight: 480;
  color: var(--text-2);
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}

.nav a:hover {
  color: var(--text);
  background: var(--panel-2);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.topbar .btn-secondary {
  height: 32px;
  padding: 0 12px;
  font-size: var(--fs-md);
}

/* ---------- hero ---------- */

.hero {
  padding-block: 72px 48px;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}

.hero-eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 99px;
  background: var(--ok);
  box-shadow: 0 0 0 3px var(--ok-halo);
  flex: none;
}

.hero h1 {
  font-size: clamp(36px, 6.4vw, var(--fs-56));
  font-weight: 620;
  line-height: 1.03;
  letter-spacing: -0.035em;
  max-width: 15ch;
  text-wrap: balance;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent-text);
}

.hero-lead {
  margin-top: 20px;
  max-width: 60ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 32px;
}

.hero-note {
  margin-top: 14px;
  color: var(--text-3);
  font-size: var(--fs-xs);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
}

/* ---------- facts strip ---------- */

.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-top: 40px;
}

.fact {
  padding: 20px 24px 20px 0;
  border-left: 1px solid var(--line);
  padding-left: 24px;
  min-width: 0;
}

.fact:first-child {
  border-left: 0;
  padding-left: 0;
}

.fact-value {
  font-family: var(--font-mono);
  font-size: var(--fs-24);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

.fact-value .unit {
  font-size: var(--fs-md);
  color: var(--text-3);
  letter-spacing: 0;
  margin-left: 2px;
}

.fact-label {
  margin-top: 6px;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-3);
}

/* ---------- screenshot ---------- */

.shot {
  margin-top: 48px;
}

.shot-frame {
  display: block;
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--panel);
  line-height: 0;
}

.shot-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.shot figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 14px;
  margin-top: 12px;
  font-size: var(--fs-xs);
  color: var(--text-3);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
}

.shot figcaption .mono {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  font-size: var(--fs-sm);
}

/* ---------- sections ---------- */

.section {
  padding-block: 72px 0;
}

.section-head {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 8px 40px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line-2);
}

.section-head h2 {
  font-size: var(--fs-32);
  font-weight: 620;
  line-height: 1.12;
  letter-spacing: -0.028em;
  max-width: 24ch;
  text-wrap: balance;
}

.section-head .intro {
  margin-top: 12px;
  max-width: 62ch;
  color: var(--text-2);
  font-size: var(--fs-lg);
}

/* ---------- feature rows ---------- */

.feature {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr) minmax(0, 260px);
  gap: 8px 40px;
  align-items: start;
  padding-block: 26px;
  border-bottom: 1px solid var(--line);
}

.feature h3 {
  font-size: var(--fs-lg);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
  padding-top: 1px;
}

.feature p {
  color: var(--text-2);
  font-size: var(--fs-lg);
  line-height: 1.55;
  max-width: 60ch;
}

.feature p code {
  font-family: var(--font-mono);
  font-size: var(--fs-md);
  color: var(--text);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-start;
}

.chip {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 7px;
  border: 1px solid var(--line-2);
  border-radius: 5px;
  background: var(--panel-2);
  color: var(--text-2);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}

[data-theme="light"] .chip {
  background: var(--panel);
}

.chip-accent {
  color: var(--accent-text);
  border-color: var(--accent-line);
}

.chip-warn {
  color: var(--warn);
}

.chip-violet {
  color: var(--q2);
}

/* ---------- anatomy band (chrome surface) ---------- */

.anatomy {
  margin-top: 72px;
  background: var(--panel);
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
}

.anatomy-inner {
  padding-block: 40px;
}

.anatomy-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 16px;
  margin-bottom: 20px;
}

.anatomy-head h2 {
  font-size: var(--fs-xl);
  font-weight: 620;
  letter-spacing: -0.02em;
}

.anatomy-head p {
  color: var(--text-3);
  font-size: var(--fs-md);
  max-width: 52ch;
}

.stream {
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  background: var(--bg);
  overflow: hidden;
}

.stream-head,
.stream-row {
  display: grid;
  grid-template-columns: 104px 34px minmax(0, 1.4fr) minmax(0, 1.1fr) 44px;
  gap: 0 14px;
  align-items: center;
  padding: 0 14px;
}

.stream-head {
  height: 28px;
  background: var(--panel-2);
  border-bottom: 1px solid var(--line-2);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}

.stream-row {
  height: 29px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  color: var(--text-2);
  position: relative;
}

.stream-row:last-child {
  border-bottom: 0;
}

.stream-row.in {
  background: linear-gradient(90deg, var(--row-in), transparent 40%);
}

.stream-row.out {
  background: linear-gradient(90deg, var(--row-out), transparent 40%);
}

.stream-row::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  background: var(--line-2);
}

.stream-row.in::before {
  background: var(--data-in);
}

.stream-row.out::before {
  background: var(--data-out);
}

.s-time {
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}

.s-dir {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
}

.in .s-dir {
  color: var(--data-in);
}

.out .s-dir {
  color: var(--data-out);
}

.s-topic,
.s-payload {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.s-topic {
  color: var(--text);
}

.s-payload {
  color: var(--text-2);
}

.s-payload.json {
  color: var(--text);
}

.s-flags {
  display: flex;
  gap: 3px;
  justify-content: flex-end;
}

.flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 16px;
  height: 16px;
  padding: 0 3px;
  border-radius: 3px;
  background: var(--panel-2);
  font-size: var(--fs-xs);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
}

.flag-q1 {
  color: var(--q1);
}

.flag-q2 {
  color: var(--q2);
}

.flag-r {
  color: var(--warn);
}

.flag-d {
  color: var(--danger);
}

.anatomy-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  align-items: center;
  margin-top: 14px;
  color: var(--text-3);
}

.anatomy-foot .label {
  font-size: var(--fs-xs);
}

.anatomy-foot ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  list-style: none;
  font-size: var(--fs-md);
  color: var(--text-2);
}

.anatomy-foot li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.anatomy-foot li::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 99px;
  background: var(--line-2);
}

/* ---------- keyboard ---------- */

.keys {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 8px 40px;
  padding-top: 28px;
}

.key-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 40px;
}

.key-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 40px;
  padding-block: 6px;
  border-bottom: 1px solid var(--line);
}

.key-row .what {
  color: var(--text-2);
  font-size: var(--fs-md);
}

kbd {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 6px;
  border: 1px solid var(--line-2);
  border-bottom-width: 2px;
  border-radius: var(--r-sm);
  background: var(--panel-2);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}

[data-theme="light"] kbd {
  background: var(--panel);
}

.kbd-group {
  display: inline-flex;
  gap: 4px;
}

/* ---------- install ---------- */

.install {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 8px 40px;
  align-items: start;
  padding-top: 28px;
}

.install-panel {
  min-width: 0;
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--panel);
}

.tabs {
  display: flex;
  gap: 2px;
  padding: 6px;
  border-bottom: 1px solid var(--line-2);
  background: var(--bg-sunken);
  overflow-x: auto;
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tab {
  position: relative;
  height: 30px;
  padding: 0 12px;
  border: 0;
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--text-3);
  font-family: inherit;
  font-size: var(--fs-md);
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}

.tab:hover {
  color: var(--text);
  background: var(--panel-2);
}

.tab[aria-selected="true"] {
  background: var(--panel-3);
  color: var(--text);
}

.tab[aria-selected="true"]::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}

.tabpanel {
  padding: 20px;
}

.tabpanel[hidden] {
  display: none;
}

.code {
  position: relative;
  background: var(--bg-sunken);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 12px 92px 12px 14px;
}

.code pre {
  font-family: var(--font-mono);
  font-size: var(--fs-md);
  line-height: 1.7;
  color: var(--text);
  overflow-x: auto;
  white-space: pre;
}

.copy {
  position: absolute;
  top: 8px;
  right: 8px;
  height: 26px;
  padding: 0 9px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  background: var(--panel-2);
  color: var(--text-2);
  font-family: var(--font-ui);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}

.copy:hover {
  color: var(--text);
  background: var(--panel-3);
}

.copy[data-copied="true"] {
  color: var(--ok);
  border-color: var(--ok);
}

.tabnote {
  margin-top: 12px;
  color: var(--text-3);
  font-size: var(--fs-md);
  line-height: 1.55;
}

.tabnote strong {
  color: var(--text-2);
  font-weight: 550;
}

/* ---------- privacy ---------- */

.privacy-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  margin-top: 28px;
}

.privacy-item {
  padding: 22px 24px 0 0;
  border-right: 1px solid var(--line);
}

.privacy-item + .privacy-item {
  padding-left: 24px;
}

.privacy-item:last-child {
  border-right: 0;
  padding-right: 0;
}

.privacy-item h3 {
  font-size: var(--fs-md);
  font-weight: 600;
  letter-spacing: -0.005em;
  margin-bottom: 6px;
}

.privacy-item p {
  color: var(--text-2);
  font-size: var(--fs-md);
  line-height: 1.6;
}

.privacy-item code {
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  color: var(--text);
}

/* ---------- credits ---------- */

.credits {
  margin-top: 72px;
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
  background: var(--panel);
}

.credits-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 380px);
  gap: 40px;
  padding-block: 44px;
}

.credits-title {
  margin-top: 12px;
}

.credits h2 {
  font-size: var(--fs-32);
  font-weight: 620;
  line-height: 1.12;
  letter-spacing: -0.028em;
}

.author {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
}

.author-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 99px;
  border: 1px solid var(--line-2);
  background: var(--panel-2);
  font-family: var(--font-mono);
  font-size: var(--fs-lg);
  font-weight: 500;
  color: var(--text);
  flex: none;
}

.author-name {
  font-size: var(--fs-lg);
  font-weight: 600;
  line-height: 1.3;
}

.author-role {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-top: 3px;
}

.author-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.credits-copy {
  margin-top: 18px;
  color: var(--text-2);
  font-size: var(--fs-md);
  line-height: 1.65;
  max-width: 46ch;
}

.stack {
  border-top: 1px solid var(--line-2);
  padding-top: 16px;
}

.stack dl {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, auto);
  gap: 0;
  margin-top: 10px;
}

.stack dt,
.stack dd {
  padding-block: 8px;
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-md);
  line-height: 1.5;
}

.stack dt {
  color: var(--text);
  font-weight: 500;
}

.stack dd {
  color: var(--text-3);
  text-align: right;
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
}

.stack dt:last-of-type,
.stack dd:last-of-type {
  border-bottom: 0;
}

.licence a {
  padding-block: 4px;
}

.licence {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  font-size: var(--fs-xs);
  color: var(--text-3);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
}

/* ---------- footer ---------- */

.footer {
  padding-block: 40px 48px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
}

.footer .brand-word {
  font-size: var(--fs-md);
}

.footer .brand-mark {
  width: 18px;
  height: 18px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-left: auto;
}

.footer-nav a {
  padding: 6px 8px;
  border-radius: var(--r-sm);
  font-size: var(--fs-md);
  color: var(--text-3);
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}

.footer-nav a:hover {
  color: var(--text);
  background: var(--panel-2);
}

.footer-meta {
  width: 100%;
  padding-top: 16px;
  margin-top: 4px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--text-3);
}

/* ---------- responsive ---------- */

@media (max-width: 1040px) {
  .feature,
  .section-head {
    grid-template-columns: 160px minmax(0, 1fr) minmax(0, 220px);
  }

  .keys,
  .install {
    grid-template-columns: 160px minmax(0, 1fr);
  }
}

@media (max-width: 880px) {
  :root {
    --gutter: 20px;
  }

  .hero {
    padding-block: 48px 32px;
  }

  .section {
    padding-block: 56px 0;
  }

  .facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fact {
    padding-block: 16px;
    padding-left: 20px;
  }

  .fact:nth-child(odd) {
    border-left: 0;
    padding-left: 0;
  }

  .fact:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .fact:last-child {
    border-left: 1px solid var(--line);
    padding-left: 20px;
  }

  .section-head,
  .feature,
  .keys {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .section-head {
    padding-bottom: 20px;
  }

  .section-head .intro {
    margin-top: 4px;
  }

  .feature {
    padding-block: 20px;
    gap: 10px;
  }

  .chips {
    margin-top: 2px;
  }

  .feature p {
    max-width: 70ch;
  }

  .key-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .keys .label {
    margin-top: 8px;
  }

  .install {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 20px;
  }

  .install .label {
    margin-bottom: 6px;
  }

  .privacy-grid {
    grid-template-columns: minmax(0, 1fr);
    border-top: 0;
  }

  .privacy-item,
  .privacy-item + .privacy-item,
  .privacy-item:last-child {
    padding: 18px 0;
    border-right: 0;
    border-top: 1px solid var(--line);
  }

  .credits-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    padding-block: 32px;
  }

  .anatomy {
    margin-top: 56px;
  }

  .credits {
    margin-top: 56px;
  }

  .brand-version,
  .nav {
    display: none;
  }

  .topbar-inner {
    height: 52px;
  }

  .nav-mobile {
    display: flex;
    gap: 0 4px;
    overflow-x: auto;
    scrollbar-width: none;
    border-top: 1px solid var(--line);
    margin-inline: calc(-1 * var(--gutter));
    padding-inline: calc(var(--gutter) - 10px);
  }

  .nav-mobile::-webkit-scrollbar {
    display: none;
  }
}

@media (min-width: 881px) {
  .nav-mobile {
    display: none;
  }
}

@media (max-width: 620px) {
  :root {
    --gutter: 18px;
  }

  .hero h1 {
    max-width: 100%;
  }

  .hero-lead {
    font-size: var(--fs-lg);
  }

  .btn {
    height: 36px;
    padding: 0 13px;
  }

  .hero-actions .btn {
    flex: 1 1 auto;
  }

  .stream-head,
  .stream-row {
    grid-template-columns: 74px 30px minmax(0, 1fr) 40px;
    gap: 0 10px;
    padding-inline: 10px;
  }

  .s-payload {
    display: none;
  }

  .stream-row {
    height: 27px;
    font-size: var(--fs-xs);
  }

  .stream-head {
    font-size: 10px;
  }

  .fact-value {
    font-size: var(--fs-xl);
  }

  .credits h2 {
    font-size: var(--fs-24);
  }

  .anatomy-inner,
  .credits-inner {
    padding-block: 28px;
  }

  .footer-nav {
    margin-left: 0;
  }
}

.notfound {
  padding-block: 96px;
}

.notfound h1 {
  margin-top: 12px;
  font-size: var(--fs-44);
  font-weight: 620;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.notfound .lead {
  margin-top: 16px;
  max-width: 46ch;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  .topbar,
  .hero-actions,
  .copy,
  .footer-nav {
    display: none;
  }

  body {
    background: #fff;
    color: #000;
  }
}