/* ==========================================================================
   Gloss — Landing page
   Art direction: "Obsidian Instrument"
   Near-black drafting surface, editorial type, the product UI as the hero.
   ========================================================================== */

/* ---------------------------------------------------------------- tokens */
:root {
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
          "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, "JetBrains Mono", monospace;

  --bg: #070809;
  --bg-soft: #0a0b0c;
  --panel: #0d0e10;
  --panel-2: #111214;
  --line: rgba(255, 255, 255, 0.085);
  --line-2: rgba(255, 255, 255, 0.16);
  --ink: #f2f3f4;
  --ink-2: #b1b6bc;
  --ink-3: #7d8289;
  --ink-4: #6c7178;
  --key: #f2f3f4;
  --key-ink: #08090a;
  --green: #3fb950;
  --red: #f85149;
  --amber: #d9a83c;
  --blue: #4d8df6;

  --shell: 1240px;
  --gutter: 24px;
  --radius: 12px;

  color-scheme: dark;
}

[data-theme="light"] {
  --bg: #f5f4f0;
  --bg-soft: #efeee9;
  --panel: #ffffff;
  --panel-2: #faf9f6;
  --line: rgba(18, 20, 23, 0.11);
  --line-2: rgba(18, 20, 23, 0.22);
  --ink: #121417;
  --ink-2: #44484e;
  --ink-3: #6b6f75;
  --ink-4: #86898f;
  --key: #121417;
  --key-ink: #ffffff;
  --green: #1a7f37;
  --red: #cf222e;
  --amber: #9a6700;
  --blue: #0969da;

  color-scheme: light;
}

/* ---------------------------------------------------------------- base */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, p, figure, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
code, kbd { font-family: var(--mono); }

::selection { background: rgba(127, 127, 127, 0.32); }

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

.shell {
  width: min(var(--shell), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

.mono {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* drafting rules at the shell edges */
.page-rules {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.7;
  background-image:
    linear-gradient(to right,
      transparent calc(50% - 620.5px), var(--line) calc(50% - 620.5px),
      var(--line) calc(50% - 619.5px), transparent calc(50% - 619.5px)),
    linear-gradient(to right,
      transparent calc(50% + 619.5px), var(--line) calc(50% + 619.5px),
      var(--line) calc(50% + 620.5px), transparent calc(50% + 620.5px));
}
@media (max-width: 1280px) { .page-rules { display: none; } }

/* grain — keeps the flat black from feeling like a void */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}
[data-theme="light"] body::after { opacity: 0.02; }

/* ---------------------------------------------------------------- nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line);
}

.nav-in {
  height: 62px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: none;
}

.brand-logo { width: 22px; height: 22px; }
.brand-logo.is-light { display: none; }
[data-theme="light"] .brand-logo.is-dark { display: none; }
[data-theme="light"] .brand-logo.is-light { display: block; }

.brand-name {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.brand-ver {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.04em;
  color: var(--ink-3);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1px 5px;
  transform: translateY(-1px);
}

.nav-links {
  display: flex;
  gap: 26px;
  margin-left: 12px;
  font-size: 13px;
  color: var(--ink-2);
}
.nav-links a { position: relative; padding: 4px 0; transition: color 0.18s ease; }
.nav-links a:hover { color: var(--ink); }

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

.icon-btn {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  border: 1px solid transparent;
  color: var(--ink-2);
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.icon-btn:hover { background: var(--panel-2); color: var(--ink); border-color: var(--line); }

.i-moon { display: none; }
[data-theme="light"] .i-sun { display: none; }
[data-theme="light"] .i-moon { display: block; }

.nav-gh {
  height: 32px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  border: 1px solid var(--line-2);
  border-radius: 7px;
  font-size: 12.5px;
  color: var(--ink);
  transition: background 0.18s ease;
}
.nav-gh:hover { background: var(--panel-2); }

/* ---------------------------------------------------------------- hero */
.hero {
  padding-top: 92px;
  position: relative;
  overflow-x: clip;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 7.2fr) minmax(0, 4.8fr);
  gap: 56px;
  align-items: end;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 26px;
}

.eyebrow .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 18%, transparent);
}

.display {
  font-size: clamp(50px, 6.6vw, 86px);
  line-height: 1.06;
  font-weight: 600;
  letter-spacing: -0.035em;
  margin-left: -0.02em;
}

@media (min-width: 901px) {
  .display { white-space: nowrap; }
}

.hero-side {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding-bottom: 9px;
}

.lead {
  font-size: 16.5px;
  line-height: 1.8;
  color: var(--ink-2);
  max-width: 42ch;
  text-wrap: pretty;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn {
  height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--key);
  color: var(--key-ink);
  border: 1px solid var(--key);
}
.btn-primary:hover { background: color-mix(in srgb, var(--key) 88%, var(--bg)); }

.btn-meta {
  font-family: var(--mono);
  font-size: 10.5px;
  opacity: 0.55;
  padding-left: 9px;
  border-left: 1px solid color-mix(in srgb, var(--key-ink) 22%, transparent);
  letter-spacing: 0;
}

.btn-ghost {
  border: 1px solid var(--line-2);
  color: var(--ink);
}
.btn-ghost:hover { background: var(--panel-2); border-color: var(--ink-3); }

.fine {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-4);
}

/* ---------------------------------------------------------------- stage (hero window) */
.stage {
  margin-top: 68px;
  position: relative;
}

.stage::before {
  content: "";
  position: absolute;
  left: -10%;
  right: -10%;
  top: -10%;
  height: 90%;
  background: radial-gradient(ellipse at 50% 40%,
    color-mix(in srgb, var(--ink) 12%, transparent), transparent 64%);
  pointer-events: none;
  z-index: 0;
}
[data-theme="light"] .stage::before {
  background: radial-gradient(ellipse at 50% 38%,
    rgba(18, 20, 23, 0.045), transparent 58%);
}

.stage-cap {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.stage-cap { padding-bottom: 11px; border-bottom: 1px solid var(--line); }
.stage-cap-right { color: var(--ink-4); }

.frame {
  position: relative;
  z-index: 1;
  margin-top: 14px;
  aspect-ratio: 1240 / 840;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--panel);
  overflow: hidden;
  box-shadow:
    0 80px 140px -60px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(255, 255, 255, 0.02) inset;
}
[data-theme="light"] .frame {
  box-shadow:
    0 60px 120px -50px rgba(30, 25, 15, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.6) inset;
}

.frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 18%);
}

/* ---------------------------------------------------------------- spec strip */
.spec-strip {
  margin-top: 46px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.spec {
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-left: 1px solid var(--line);
}
.spec:first-child { border-left: 0; padding-left: 0; }

.spec-n {
  font-family: var(--mono);
  font-size: 30px;
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.spec-n em {
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink-3);
  margin-left: 4px;
  text-transform: uppercase;
}
.spec-l {
  font-size: 12px;
  color: var(--ink-3);
}

/* ---------------------------------------------------------------- sections */
.sec {
  padding: 108px 0;
  border-top: 1px solid var(--line);
  position: relative;
}

.sec--band {
  background: var(--bg-soft);
}

.sec-head {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.sec-label {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding-top: 10px;
}

.sec-label .idx {
  font-size: 10.5px;
  color: var(--ink-4);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1px 5px;
  transform: translateY(-1px);
}

.sec-titles {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: 56px;
  align-items: end;
}

.sec-titles h2 {
  font-size: clamp(30px, 3.3vw, 44px);
  line-height: 1.18;
  font-weight: 600;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.sec-titles p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-2);
  max-width: 46ch;
  padding-bottom: 5px;
  text-wrap: pretty;
}

.inline-kbd {
  display: inline-block;
  font-size: 10.5px;
  line-height: 1;
  padding: 3px 5px;
  margin: 0 1px;
  border: 1px solid var(--line-2);
  border-bottom-width: 2px;
  border-radius: 4px;
  color: var(--ink-2);
  background: var(--panel);
  vertical-align: 1px;
}

/* ---------------------------------------------------------------- figures */
.fig-cap {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
}
.fig-cap .mono:last-child { color: var(--ink-4); text-transform: none; letter-spacing: 0.04em; }

.figure--inset { max-width: 1040px; margin-left: auto; }

/* ---------------------------------------------------------------- figures row (spec) */
.figures {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.fig {
  padding: 40px 28px;
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}
.fig:first-child { border-left: 0; padding-left: 0; }

.fig-n {
  font-family: var(--mono);
  font-size: clamp(34px, 3.4vw, 46px);
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.fig-n em {
  font-style: normal;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-3);
  margin-left: 4px;
}
.fig-l { margin-top: 12px; font-size: 13px; color: var(--ink); }
.fig-s {
  margin-top: 20px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.02em;
  color: var(--ink-4);
  line-height: 1.7;
}

/* ---------------------------------------------------------------- bars */
.bars {
  margin-top: 56px;
  display: flex;
  flex-direction: column;
}

.bar-row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) minmax(0, 1fr) 128px;
  gap: 18px;
  align-items: center;
  padding: 17px 0;
  border-top: 1px solid var(--line);
}
.bar-row:last-child { border-bottom: 1px solid var(--line); }

.bar-label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.05em;
  color: var(--ink-2);
}

.bar-track {
  height: 8px;
  border-radius: 99px;
  background: color-mix(in srgb, var(--ink) 7%, transparent);
  overflow: hidden;
}
.bar-track i {
  display: block;
  height: 100%;
  border-radius: 99px;
}
.bar-gloss { background: var(--key); }
.bar-other { background: color-mix(in srgb, var(--ink) 30%, transparent); }
.bar-track:last-of-type .bar-other { background: color-mix(in srgb, var(--ink) 14%, transparent); }

.bar-legend {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.04em;
  color: var(--ink-4);
  text-align: right;
}
.bar-legend b { color: var(--ink-2); font-weight: 400; }

.footnote {
  margin-top: 26px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.03em;
  color: var(--ink-4);
  line-height: 1.7;
}

/* ---------------------------------------------------------------- keyboard */
.keys {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.key-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 20px 20px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--ink-2);
}
.key-item:nth-child(3n + 2) { padding-left: 20px; border-left: 1px solid var(--line); }
.key-item:nth-child(3n) { padding-left: 20px; border-left: 1px solid var(--line); }

.keys kbd,
.panel kbd {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1;
  min-width: 20px;
  text-align: center;
  padding: 4px 5px;
  border: 1px solid var(--line-2);
  border-bottom-width: 2px;
  border-radius: 4px;
  color: var(--ink-2);
  background: var(--panel);
}

/* ---------------------------------------------------------------- download */
.dl-wrap {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 64px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}

.dl-lead {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.dl-ver {
  font-family: var(--mono);
  font-size: 40px;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.btn-lg { height: 52px; font-size: 15px; padding: 0 22px; }

.dl-list { border-top: 1px solid var(--line); }

.dl-row {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) 120px 28px;
  align-items: center;
  gap: 20px;
  padding: 26px 10px;
  border-bottom: 1px solid var(--line);
  transition: background 0.2s ease, padding 0.2s ease;
}
.dl-row:hover { background: color-mix(in srgb, var(--ink) 3.5%, transparent); padding-left: 18px; }

.dl-os { font-size: 22px; font-weight: 500; letter-spacing: -0.02em; }
.dl-desc { font-size: 13px; color: var(--ink-3); }
.dl-tag {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--ink-3);
  text-align: right;
}
.dl-arrow { color: var(--ink-3); text-align: right; transition: transform 0.2s ease, color 0.2s ease; }
.dl-row:hover .dl-arrow { transform: translate(2px, -2px); color: var(--ink); }

.cli {
  margin-top: 34px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 15px 16px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: var(--panel);
}

.cli-label {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  color: var(--ink-4);
  border-right: 1px solid var(--line);
  padding-right: 16px;
}

.cli code {
  flex: 1;
  font-size: 12.5px;
  color: var(--ink-2);
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}
.cli code::-webkit-scrollbar { display: none; }

.cli-copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 11.5px;
  color: var(--ink-2);
  transition: background 0.18s ease, color 0.18s ease;
  flex: none;
}
.cli-copy:hover { background: var(--panel-2); color: var(--ink); }
.cli-copy.is-done { color: var(--green); border-color: color-mix(in srgb, var(--green) 40%, transparent); }

/* ---------------------------------------------------------------- footer */
.foot {
  border-top: 1px solid var(--line);
  padding: 44px 0 56px;
}

.foot-in {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.foot-brand { display: flex; align-items: center; gap: 9px; }
.foot-brand .brand-logo { width: 20px; height: 20px; }
.foot-name { font-size: 13.5px; font-weight: 600; }
.foot-tag { font-size: 12px; color: var(--ink-3); margin-left: 4px; }

.foot-links {
  margin-left: auto;
  display: flex;
  gap: 22px;
  font-size: 12px;
  color: var(--ink-3);
}
.foot-links a:hover { color: var(--ink); }

.foot-copy {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--ink-4);
  width: 100%;
}

/* ---------------------------------------------------------------- reveal */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.75s cubic-bezier(0.2, 0.7, 0.2, 1),
              transform 0.75s cubic-bezier(0.2, 0.7, 0.2, 1);
}
html.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

html.no-reveal { scroll-behavior: auto; }

.no-reveal [data-reveal],
html.js.no-reveal [data-reveal] {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

.sec,
.hero { scroll-margin-top: 76px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js [data-reveal] { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1100px) {
  .sec-head { grid-template-columns: 120px minmax(0, 1fr); }
  .sec-titles { grid-template-columns: 1fr; gap: 20px; align-items: start; }
  .sec-titles p { max-width: 60ch; }
  .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fig { border-top: 1px solid var(--line); }
  .fig:nth-child(-n + 2) { border-top: 0; }
  .fig:nth-child(odd) { border-left: 0; padding-left: 0; }
  .figure--inset { max-width: none; }
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .hero { padding-top: 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .display { font-size: clamp(38px, 10.4vw, 64px); white-space: normal; }
  .sec { padding: 88px 0; }
  .sec-head { grid-template-columns: 1fr; gap: 14px; }
  .sec-label { padding-top: 0; }
  .bar-row { grid-template-columns: 76px minmax(0, 1fr) 100px; }
  .bar-row .bar-track:nth-of-type(2) { display: none; }
  .keys { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .key-item:nth-child(n) { padding-left: 0; border-left: 0; }
  .key-item:nth-child(even) { padding-left: 18px; border-left: 1px solid var(--line); }
  .dl-wrap { grid-template-columns: 1fr; gap: 32px; }
  .dl-row { grid-template-columns: 140px minmax(0, 1fr) 32px; }
  .dl-tag { display: none; }
  .foot-links { margin-left: 0; width: 100%; }
}

@media (max-width: 640px) {
  :root { --gutter: 18px; }
  .sec { padding: 72px 0; }
  .display { font-size: clamp(34px, 10vw, 46px); line-height: 1.12; }
  .lead { font-size: 14.5px; }
  .btn { height: 42px; font-size: 13px; padding: 0 14px; }
  .nav-gh span { display: none; }
  .nav-gh { padding: 0 9px; }
  .nav-in { gap: 12px; }
  .brand-ver { display: none; }
  .spec-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spec { padding: 18px 16px; }
  .spec:nth-child(odd) { border-left: 0; padding-left: 0; }
  .spec:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .spec-n { font-size: 24px; }
  .figure { min-width: 0; }
  .figs { grid-template-columns: 1fr; }
  .bar-row { grid-template-columns: 1fr; gap: 8px; }
  .bar-track:first-of-type { display: none; }
  .bar-legend { text-align: left; }
  .bar-label { font-size: 10px; }
  .fig-n { font-size: 34px; }
  .figures { grid-template-columns: 1fr; }
  .fig { border-left: 0; padding: 26px 0; }
  .fig:nth-child(2) { border-top: 1px solid var(--line); }
  .keys { grid-template-columns: 1fr; }
  .key-item:nth-child(even) { padding-left: 0; border-left: 0; }
  .dl-row { grid-template-columns: 100px minmax(0, 1fr) 24px; gap: 12px; }
  .dl-desc { font-size: 11.5px; }
  .dl-os { font-size: 17px; }
  .cli { flex-wrap: wrap; }
  .cli code { flex-basis: 100%; order: 3; font-size: 11px; }
  .stage-cap .mono:last-child { display: none; }
  .fig-cap { flex-direction: column; align-items: flex-start; gap: 4px; }
  .fig-cap .mono:last-child { text-transform: none; letter-spacing: 0.02em; }
  .foot { padding: 34px 0 44px; }
  .foot-links { gap: 16px; flex-wrap: wrap; }
}
