/* vMixRTC landing page.
   Palette and type come from the brand sheet (branding/vmixrtc-brandbook.png):
   pads from the logo are the shape language, Rust Orange marks what is active,
   Tally Green appears exactly once, as the connection signal in the demo. */

@font-face {
  font-family: 'Inter';
  src: url(/fonts/inter-latin.woff2?v=9d38095ab9d3) format('woff2');
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2010-2027, U+2032-203A, U+20AC, U+2122, U+2190-2193, U+2212, U+2215;
}
@font-face {
  font-family: 'Inter';
  src: url(/fonts/inter-cyrillic.woff2?v=dca84b184817) format('woff2');
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0400-045F, U+0490-0491, U+2116;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url(/fonts/jbmono-latin.woff2?v=df2cfcea734e) format('woff2');
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2010-2027, U+2190-2193, U+2212;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url(/fonts/jbmono-bold-latin.woff2?v=5c00b432f026) format('woff2');
  font-weight: 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2010-2027, U+2190-2193, U+2212;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url(/fonts/jbmono-cyrillic.woff2?v=f72421fbcb9e) format('woff2');
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0400-045F, U+0490-0491, U+2116;
}

:root {
  --graphite: #14181c;
  --panel: #1e2327;
  --pad: #2c343a;
  --pad-up: #3a454d;
  --rust: #f26b21;
  --rust-up: #ff8440;
  --paper: #f3efe9;
  --tally: #2bd66f;
  --soft: #a9b1b7;
  --line: rgb(243 239 233 / 0.12);
  --home: #a82323;
  --away: #1d5fd1;

  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  --gutter: clamp(1rem, 4vw, 2.5rem);
  --page: 78rem;
  --bleed: clamp(0px, (100vw - 80rem) / 2, 12rem);
  --band: clamp(4.5rem, 10vw, 8.5rem);
}

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

html {
  background: var(--graphite);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 100%;
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 1.5rem;
}

body {
  margin: 0;
  font-size: 1.0625rem;
  overflow-x: clip;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure,
pre {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

h1,
h2,
h3 {
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.022em;
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.9rem, 3.6vw, 3rem);
}

p {
  text-wrap: pretty;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration-color: var(--rust);
  text-decoration-thickness: 0.09em;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: 0.16em;
}

code,
pre,
output {
  font-family: var(--mono);
}

p code,
li code {
  padding: 0.1em 0.35em;
  border-radius: 0.3em;
  background: var(--pad);
  font-size: 0.86em;
  white-space: nowrap;
}

button,
input {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  touch-action: manipulation;
}

:focus-visible {
  outline: 2px solid var(--paper);
  outline-offset: 3px;
}

::selection {
  background: var(--rust);
  color: var(--graphite);
}

[hidden] {
  display: none !important;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  z-index: 10;
  padding: 0.6rem 1rem;
  border-radius: 0.6rem;
  background: var(--paper);
  color: var(--graphite);
  font-weight: 700;
  text-decoration: none;
}

.skip:focus {
  top: 0.75rem;
}

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

.button {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
  padding: 0.5rem 1.3rem;
  border-radius: 0.8rem;
  background: var(--pad);
  color: var(--paper);
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.12s;
}

.button:hover {
  background: var(--pad-up);
}

.button:active {
  transform: translateY(1px);
}

.button--primary {
  background: var(--rust);
  color: var(--graphite);
}

.button--primary:hover {
  background: var(--rust-up);
}

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

.top__row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 4.75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.wordmark {
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  line-height: 1;
}

.wordmark__v {
  font-weight: 500;
}

.wordmark__r {
  font-weight: 800;
  color: var(--rust);
}

.top__nav {
  display: flex;
  gap: 1.75rem;
  margin-inline: auto;
  font-size: 0.9375rem;
}

.top__nav a {
  color: var(--soft);
  text-decoration: none;
}

.top__nav a:hover {
  color: var(--paper);
}

.top__side {
  display: flex;
  gap: 0.5rem;
  margin-left: auto;
  font-size: 0.9375rem;
}

.top__nav + .top__side {
  margin-left: 0;
}

.top__lang,
.top__repo {
  padding: 0.45rem 0.9rem;
  border-radius: 0.65rem;
  background: var(--panel);
  font-weight: 600;
  text-decoration: none;
}

.top__lang:hover,
.top__repo:hover {
  background: var(--pad);
}

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

.hero {
  padding-block: clamp(1.5rem, 3.4vw, 3rem) clamp(2.25rem, 4vw, 3.25rem);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 2rem clamp(2rem, 5vw, 4.5rem);
  align-items: end;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 5.25rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.hero__lead {
  color: var(--soft);
  font-size: 1.125rem;
  max-width: 34rem;
}

.hero__lead code {
  color: var(--paper);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.hero__version {
  margin-top: 1.1rem;
  color: var(--soft);
  font-size: 0.875rem;
}

/* ---- demo: a panel on the left drives the picture on the right ---- */

.demo {
  padding-bottom: var(--band);
}

.demo__intro {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 1.25rem;
  margin-bottom: 1rem;
}

.demo__intro h2 {
  font-size: 1.25rem;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.demo__intro p {
  color: var(--soft);
  font-size: 0.9375rem;
}

.rig {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(0.75rem, 1.6vw, 1.25rem);
  padding: clamp(0.75rem, 1.6vw, 1.25rem);
  border-radius: 1.5rem;
  background: var(--panel);
}

.surface {
  display: flex;
  flex-direction: column;
  border-radius: 0.75rem;
  overflow: hidden;
  background-color: var(--graphite);
  background-image: linear-gradient(rgb(243 239 233 / 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgb(243 239 233 / 0.035) 1px, transparent 1px);
  background-size: 1.5rem 1.5rem;
}

.surface__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0.8rem;
  background: #191d21;
  border-bottom: 1px solid var(--line);
  font-size: 0.8125rem;
}

.surface__file {
  font-family: var(--mono);
  color: var(--soft);
}

.tally {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--tally);
  font-weight: 600;
}

.tally::before {
  content: '';
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--tally);
}

.surface__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  padding: 0.75rem;
  align-content: start;
  flex: 1;
}

.wgt {
  --cap: #46535d;
  border: 1px solid var(--cap);
  border-radius: 3px;
  background: var(--panel);
}

.wgt--home {
  --cap: var(--home);
}

.wgt--away {
  --cap: var(--away);
}

.wgt--wide {
  grid-column: 1 / -1;
}

.wgt__cap {
  display: block;
  padding: 0.18rem 0.55rem;
  background: var(--cap);
  color: #fff;
  font-size: 0.75rem;
  letter-spacing: 0.01em;
}

.wgt__body {
  padding: 0.5rem;
}

.field {
  width: 100%;
  min-height: 2.5rem;
  padding: 0.25rem 0.4rem;
  border: 1px solid transparent;
  border-radius: 0.4rem;
  background: transparent;
  font-size: 1.125rem;
  font-weight: 500;
}

.field:hover {
  border-color: var(--line);
}

.field:focus-visible {
  outline: 0;
  border-color: var(--rust);
  background: var(--graphite);
}

.key {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0;
  border: 1px solid rgb(243 239 233 / 0.08);
  border-radius: 0.65rem;
  background: var(--pad);
  font-weight: 700;
  font-size: 1.125rem;
  line-height: 1;
  transition: background-color 0.1s;
  user-select: none;
}

.key:hover {
  background: var(--pad-up);
}

.key:active {
  background: var(--rust);
  color: var(--graphite);
  transform: translateY(1px);
}

.key--text {
  flex: 1;
  padding-inline: 0.75rem;
  font-size: 0.9375rem;
}

.key--toggle[aria-pressed='true'] {
  border-color: var(--rust);
  background: rgb(242 107 33 / 0.16);
  color: var(--rust);
}

.score {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem;
}

.score__value {
  flex: 1;
  font-family: var(--sans);
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.timer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
}

.timer__value {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  padding-inline: 0.35rem;
}

.timer__keys,
.overlays {
  display: flex;
  flex: 1 1 14rem;
  gap: 0.4rem;
}

.program {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  min-width: 0;
}

.program__label,
.wire__label {
  color: var(--soft);
  font-size: 0.8125rem;
}

.program__label {
  padding: 0.25rem 0.25rem 0;
}

.screen {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 0.75rem;
  background: #000;
  container-type: inline-size;
}

.bars {
  position: absolute;
  inset: 0;
  display: flex;
  opacity: 0.26;
}

.bars i {
  flex: 1;
}

.bars i:nth-child(1) { background: #c8c8c8; }
.bars i:nth-child(2) { background: #c8c800; }
.bars i:nth-child(3) { background: #00c8c8; }
.bars i:nth-child(4) { background: #00c800; }
.bars i:nth-child(5) { background: #c800c8; }
.bars i:nth-child(6) { background: #c80000; }
.bars i:nth-child(7) { background: #0000c8; }

.bug {
  position: absolute;
  top: 5cqw;
  left: 5cqw;
  display: flex;
  height: 5.4cqw;
  border-radius: 0.7cqw;
  overflow: hidden;
  background: var(--graphite);
  font-size: 2.5cqw;
  font-weight: 700;
  line-height: 5.4cqw;
  white-space: nowrap;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.bug.is-on {
  clip-path: inset(0);
}

.bug__team {
  padding-inline: 1.5cqw;
}

.bug__team--home {
  border-left: 1cqw solid var(--home);
}

.bug__team--away {
  border-right: 1cqw solid var(--away);
}

.bug__score {
  min-width: 5.4cqw;
  background: var(--paper);
  color: var(--graphite);
  font-weight: 800;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.bug__score + .bug__score {
  box-shadow: inset 1px 0 0 rgb(20 24 28 / 0.25);
}

.bug__clock {
  padding-inline: 1.5cqw;
  background: var(--pad);
  font-family: var(--mono);
  font-size: 2.3cqw;
}

.lower {
  position: absolute;
  left: 5cqw;
  bottom: 7cqw;
  max-width: 88cqw;
  padding: 1.3cqw 2.4cqw 1.3cqw 2cqw;
  border-left: 1.2cqw solid var(--rust);
  background: var(--paper);
  color: var(--graphite);
  font-size: 3cqw;
  font-weight: 700;
  line-height: 1.2;
  opacity: 0;
  transform: translateY(2.5cqw);
  transition: opacity 0.3s, transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.lower.is-on {
  opacity: 1;
  transform: none;
}

.wire {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  padding: 0.7rem 0.9rem 0.8rem;
  border-radius: 0.75rem;
  background: var(--graphite);
}

.wire__log {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  flex: 1 1 7.6rem;
  min-height: 7.6rem;
  margin-top: 0.4rem;
  overflow: hidden;
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.5;
}

.wire__log li {
  flex: none;
  color: #7b858c;
  word-break: break-all;
}

.wire__log li:last-child {
  color: var(--soft);
}

.wire__log li:last-child b {
  color: var(--rust);
}

.wire__log li:last-child i {
  color: var(--paper);
}

.wire__log b,
.wire__log i {
  font-style: normal;
  font-weight: 400;
}

.wire__log .wire__empty {
  font-family: var(--sans);
  font-size: 0.875rem;
}

/* ---- section heads ---- */

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 1.25rem clamp(2rem, 5vw, 4.5rem);
  align-items: end;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-head p {
  color: var(--soft);
  max-width: 34rem;
}

/* ---- widgets: sixteen pads and a readout ---- */

.widgets {
  padding-bottom: var(--band);
}

.deck {
  --pad-size: clamp(4.25rem, 9.2vw, 7.4rem);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5.5rem);
  align-items: center;
}

.pads {
  display: grid;
  grid-template-columns: repeat(4, var(--pad-size));
  gap: calc(var(--pad-size) * 0.2);
}

.pad {
  display: flex;
  align-items: flex-end;
  aspect-ratio: 1;
  padding: 10%;
  border: 0;
  border-radius: 22%;
  background: var(--pad);
  font-size: clamp(0.7rem, 1.05vw, 0.8125rem);
  font-weight: 600;
  line-height: 1.15;
  text-align: left;
  overflow-wrap: break-word;
  hyphens: manual;
  transition: background-color 0.12s, color 0.12s, transform 0.08s;
}

.pad:hover {
  background: var(--pad-up);
}

.pad:active {
  transform: scale(0.96);
}

.pad[aria-selected='true'] {
  background: var(--rust);
  color: var(--graphite);
}

.readout {
  min-height: 15rem;
  display: flex;
  align-items: center;
}

.readout__item h3 {
  font-size: clamp(2.2rem, 4.6vw, 3.75rem);
  letter-spacing: -0.028em;
}

.readout__item p {
  margin-top: 1.1rem;
  max-width: 30rem;
  color: var(--soft);
  font-size: 1.1875rem;
}

/* ---- features ---- */

.features {
  padding-bottom: calc(var(--band) - 2rem);
}

.features__title {
  max-width: 22ch;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.feature {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 2rem clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.feature + .feature {
  margin-top: clamp(4rem, 9vw, 7.5rem);
}

.feature h3 {
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
}

.feature__text > p {
  margin-top: 1rem;
  color: var(--soft);
}

.feature__text > p.feature__note {
  font-size: 0.9375rem;
}

.points {
  margin-top: 1.25rem;
  display: grid;
  gap: 0.55rem;
}

.points li {
  position: relative;
  padding-left: 1.4rem;
}

.points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 22%;
  background: var(--rust);
}

.shot img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  box-shadow: 0 2.5rem 5rem -2rem rgb(0 0 0 / 0.7);
}

.feature .shot {
  margin-inline-end: calc(-1 * var(--bleed));
}

.feature--flip {
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
}

.feature--flip .shot {
  order: -1;
  margin-inline: calc(-1 * var(--bleed)) 0;
}

/* ---- compatibility ---- */

.compat {
  padding-block: var(--band);
  background: var(--panel);
}

.compat__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.5rem clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.compat__text > p {
  margin-top: 1.1rem;
  color: var(--soft);
}

.compat__text h3 {
  margin-top: 2.25rem;
  font-size: 1.25rem;
  letter-spacing: -0.015em;
}

.compat__text > p.compat__gaps {
  font-size: 0.9375rem;
}

.proof {
  margin-top: 1.25rem;
  padding: 1.1rem 1.25rem 1.25rem;
  border-radius: 0.9rem;
  background: var(--graphite);
}

.proof__cmd {
  display: block;
  font-size: 0.875rem;
  overflow-wrap: anywhere;
}

.proof__cmd::before {
  content: '$ ';
  color: var(--soft);
}

.proof__result {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.proof__result div {
  display: flex;
  flex-direction: column-reverse;
}

.proof__result dt {
  color: var(--soft);
  font-size: 0.8125rem;
  line-height: 1.3;
}

.proof__result dd {
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.shot figcaption {
  margin-top: 0.9rem;
  color: var(--soft);
  font-size: 0.875rem;
}

/* ---- install: the one light band, the part you act on ---- */

.install {
  padding-block: var(--band);
  background: var(--paper);
  color: var(--graphite);
}

.install :focus-visible {
  outline-color: var(--graphite);
}

.install__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 3rem clamp(2rem, 5vw, 4.5rem);
}

.install__lead {
  margin-top: 1rem;
  max-width: 34rem;
}

.install p code,
.install li code {
  background: rgb(20 24 28 / 0.09);
}

.os {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 2rem;
}

.os__tab {
  min-height: 2.75rem;
  padding: 0.4rem 1rem;
  border: 0;
  border-radius: 0.7rem;
  background: rgb(20 24 28 / 0.08);
  font-weight: 600;
  transition: background-color 0.12s;
}

.os__tab:hover {
  background: rgb(20 24 28 / 0.16);
}

.os__tab[aria-selected='true'] {
  background: var(--graphite);
  color: var(--paper);
}

.os__panel {
  min-height: 15.5rem;
  padding-top: 1.5rem;
  display: grid;
  gap: 1rem;
  align-content: start;
}

.os__name {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.os__panel p {
  max-width: 38rem;
}

.code {
  display: grid;
  border-radius: 0.9rem;
  background: var(--graphite);
  color: var(--paper);
}

.code pre {
  grid-row: 2;
  padding: 0.25rem 1.25rem 1.1rem;
  font-size: 0.875rem;
  line-height: 1.6;
  white-space: normal;
}

.code__line {
  display: block;
  padding-left: 1.3em;
  text-indent: -1.3em;
  overflow-wrap: anywhere;
}

.code__line + .code__line {
  margin-top: 0.5rem;
}

.code__line::before {
  content: '$ ';
  color: var(--soft);
}

.code__copy {
  grid-row: 1;
  justify-self: end;
  margin: 0.5rem 0.5rem 0;
  min-height: 2rem;
  padding: 0.2rem 0.75rem;
  border: 0;
  border-radius: 0.5rem;
  background: var(--pad);
  font-size: 0.8125rem;
  font-weight: 600;
}

.code__copy:hover {
  background: var(--pad-up);
}

.install .code__copy:focus-visible {
  outline-color: var(--paper);
}

.get {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1rem;
}

.get__meta,
.install__all {
  font-size: 0.9375rem;
  color: rgb(20 24 28 / 0.72);
}

.install__all {
  margin-top: 1.5rem;
}

.install a {
  text-decoration-color: currentColor;
}

.install__steps h3 {
  font-size: 1.25rem;
  letter-spacing: -0.015em;
}

.steps {
  margin-top: 1.25rem;
  display: grid;
  gap: 1.1rem;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding-left: 3rem;
  min-height: 2.1rem;
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 22%;
  background: var(--graphite);
  color: var(--paper);
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.9375rem;
  line-height: 2.1rem;
  text-align: center;
}

/* ---- command line ---- */

.cli {
  padding-block: var(--band);
}

.cli__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 2rem clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.cli__text > p {
  margin-top: 1rem;
  color: var(--soft);
  max-width: 30rem;
}

.term {
  overflow-x: auto;
  padding: 0.6rem 1.4rem;
  border-radius: 0.9rem;
  background: var(--panel);
}

.term__line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.1rem 1.5rem;
  padding-block: 0.7rem;
}

.term__line + .term__line {
  border-top: 1px solid var(--line);
}

.term__line code {
  padding: 0;
  background: none;
  font-size: 0.875rem;
  white-space: nowrap;
}

.term__line code::before {
  content: '$ ';
  color: var(--soft);
}

.term__line span {
  color: var(--soft);
  font-size: 0.875rem;
}

/* ---- questions ---- */

.faq {
  padding-bottom: var(--band);
}

.faq__grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 2rem clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.faq details {
  border-top: 1px solid var(--line);
}

.faq details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.15rem;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary h3 {
  font-size: 1.1875rem;
  font-weight: 650;
  letter-spacing: -0.012em;
  line-height: 1.3;
  text-wrap: pretty;
}

.faq summary::after {
  content: '';
  flex: none;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 22%;
  background:
    linear-gradient(var(--paper), var(--paper)) center / 0.7rem 2px no-repeat,
    linear-gradient(var(--paper), var(--paper)) center / 2px 0.7rem no-repeat,
    var(--pad);
  transition: transform 0.2s;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
  background-color: var(--rust);
}

.faq details p {
  max-width: 40rem;
  padding-bottom: 1.4rem;
  color: var(--soft);
}

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

.foot {
  padding-block: 2.5rem 3.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.9375rem;
}

.foot__grid {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 1.5rem clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.foot__legal {
  max-width: 36rem;
  color: var(--soft);
}

.foot__links {
  display: grid;
  gap: 0.4rem;
}

/* ---- 404 ---- */

.lost__main {
  padding-block: clamp(3rem, 12vh, 8rem);
  display: grid;
  gap: 1.25rem;
  justify-items: start;
}

.lost__main h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  max-width: 18ch;
}

.lost__main p {
  max-width: 34rem;
  color: var(--soft);
}

.lost__main .lost__code {
  font-family: var(--mono);
  font-weight: 700;
  color: var(--rust);
}

/* ---- narrower screens ---- */

@media (max-width: 61.99rem) {
  .hero__grid,
  .section-head,
  .rig,
  .feature,
  .feature--flip,
  .compat__grid,
  .install__grid,
  .cli__grid,
  .faq__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .top__nav {
    display: none;
  }

  /* The picture goes above the panel and stays in view while you press. */
  .program {
    display: contents;
  }

  .program__label {
    order: -2;
  }

  .screen {
    order: -1;
    position: sticky;
    top: 0.5rem;
    z-index: 2;
    box-shadow: 0 0 0 0.5rem var(--panel), 0 1rem 1.5rem rgb(0 0 0 / 0.45);
  }

  .wire__log {
    flex: none;
    height: 8.5rem;
    font-size: 0.72rem;
  }

  .deck {
    --pad-size: min(7rem, (100vw - 2 * var(--gutter)) / 4.6);
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }

  .pads {
    justify-content: start;
  }

  .pad {
    font-size: clamp(0.6rem, 2.55vw, 0.8125rem);
  }

  .readout {
    min-height: 13.5rem;
    align-items: flex-start;
  }

  .feature--flip .shot {
    order: 0;
  }

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

  .os__panel {
    min-height: 0;
  }
}

@media (max-width: 30rem) {
  .wordmark {
    font-size: 1.2rem;
  }

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

  .timer__value {
    font-size: 1.75rem;
  }
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
