/* VMherd website: the app's "control room" look (colours from crates/vmherd/src/theme.rs). */

@font-face {
  font-family: "Barlow Semi Condensed";
  src: url("../fonts/BarlowSemiCondensed-Medium.woff") format("woff");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Semi Condensed";
  src: url("../fonts/BarlowSemiCondensed-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/JetBrainsMono-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/JetBrainsMono-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #0a0c0b;
  --panel: #121513;
  --panel2: #181c19;
  --tile-top: #171b18;
  --input: #0b0e0c;
  --plate: #1c211d;
  --plate-hi: #222823;
  --line: #262c28;
  --line2: #353d38;
  --text: #d8ded9;
  --soft: #a9b3ac; /* body copy on dark: AA */
  --muted: #86918a; /* meta text: AA on --bg and --panel */
  --dim: #4c554f; /* decoration only */
  --green: #3ee27f;
  --green-dark: #2fc76b;
  --green-bg: #10261a;
  --red: #ff3d3d;
  --salmon: #ff8a7a;
  --amber: #ffb21e;
  --steel: #9db4c9;
  --ink: #04140a;
  --ui: "Barlow Semi Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 6px;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 500 18px/1.55 var(--ui);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* faint control-room grid + green haze behind the top of every page */
body::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 900px;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 55% at 70% 0%, rgba(62, 226, 127, 0.11), transparent 70%),
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px) 0 0 / 40px 40px;
  -webkit-mask-image: linear-gradient(#000 40%, transparent);
  mask-image: linear-gradient(#000 40%, transparent);
}

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

a {
  color: var(--steel);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover {
  color: var(--text);
}

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

::selection {
  background: #1d4a31;
  color: #fff;
}

h1,
h2,
h3,
h4 {
  font-family: var(--ui);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.005em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 {
  font-size: clamp(44px, 7.4vw, 86px);
  letter-spacing: -0.015em;
}
h2 {
  font-size: clamp(32px, 4.4vw, 52px);
}
h3 {
  font-size: 23px;
  line-height: 1.2;
}
p {
  margin: 0 0 1em;
  text-wrap: pretty;
}

code,
kbd,
pre,
samp {
  font-family: var(--mono);
  font-size: 0.84em;
}
code {
  color: var(--green);
  background: var(--input);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.08em 0.36em;
  white-space: nowrap;
}

kbd {
  display: inline-block;
  min-width: 1.9em;
  padding: 0.14em 0.5em 0.1em;
  border: 1px solid var(--line2);
  border-bottom-width: 3px;
  border-radius: 5px;
  background: linear-gradient(var(--plate-hi), var(--plate));
  color: var(--text);
  font-size: 0.78em;
  line-height: 1.5;
  text-align: center;
  white-space: nowrap;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--green);
  color: var(--ink);
  font-weight: 700;
  border-radius: 4px;
  text-decoration: none;
}
.skip:focus {
  top: 12px;
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* spaced uppercase labels, like the app's widgets::spaced() */
.eyebrow {
  display: block;
  margin: 0 0 18px;
  color: var(--green);
  font: 700 14px/1 var(--ui);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.eyebrow .n {
  margin-right: 0.6em;
  font-family: var(--mono);
  font-weight: 400;
  letter-spacing: 0;
  color: var(--muted);
}

.eyebrow .mid {
  margin: 0 0.5em;
}
@media (max-width: 480px) {
  .eyebrow {
    letter-spacing: 0.16em;
    line-height: 1.5;
  }
}

.lede {
  font-size: clamp(20px, 2.3vw, 24px);
  line-height: 1.45;
  color: var(--text);
}
.soft {
  color: var(--soft);
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 12, 11, 0.82);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  backdrop-filter: blur(12px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 62px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  flex: none;
}
.brand img {
  width: 36px;
  height: 36px;
}
.wordmark {
  font: 700 17px/1 var(--ui);
  letter-spacing: 0.24em;
  color: var(--muted);
}
.wordmark b {
  color: var(--green);
  font-weight: 700;
}
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  font-size: 15px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.nav a {
  color: var(--soft);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 4px;
}
.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--text);
  background: var(--panel2);
}
.nav .btn {
  margin-left: 8px;
}
@media (max-width: 860px) {
  .nav .hide-sm {
    display: none;
  }
}
@media (max-width: 420px) {
  .wordmark {
    display: none;
  }
  .nav {
    font-size: 14px;
    letter-spacing: 0.06em;
  }
  .nav a {
    padding: 8px 7px;
  }
}

/* plate buttons, like the app's widgets::plate_button */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 16px;
  border: 1px solid var(--line2);
  border-radius: 4px;
  background: var(--plate);
  color: var(--text);
  font: 700 15px/1 var(--ui);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.btn:hover {
  background: var(--plate-hi);
  border-color: var(--muted);
  color: var(--text);
}
.btn-go {
  background: var(--green);
  border-color: var(--green);
  color: var(--ink);
}
.btn-go:hover {
  background: #5eeb95;
  border-color: #5eeb95;
  color: var(--ink);
}
.nav .btn-go,
.nav .btn-go:hover {
  color: var(--ink);
  background: var(--green);
}
.nav .btn-go:hover {
  background: #5eeb95;
}
.nav .btn {
  min-height: 34px;
  padding: 6px 12px;
  font-size: 14px;
}
.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}

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

.hero {
  padding: clamp(40px, 7vw, 88px) 0 clamp(48px, 7vw, 96px);
}
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
@media (max-width: 980px) {
  .hero .wrap {
    grid-template-columns: minmax(0, 1fr);
  }
}
.hero h1 span {
  display: block;
  color: var(--green);
}
.hero .lede {
  max-width: 34em;
}
.hero .sub {
  color: var(--soft);
  max-width: 34em;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
  margin: 30px 0 22px;
}
.cta-buy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
}
.price {
  display: flex;
  flex-direction: column;
  margin: 0;
  line-height: 1.2;
}
.price strong {
  font: 700 26px/1.1 var(--ui);
  color: var(--text);
}
.price span {
  color: var(--muted);
  font-size: 15px;
  letter-spacing: 0.04em;
}
.src-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--steel);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.04em;
  text-decoration: none;
  padding: 6px 0;
}
.src-link:hover {
  color: var(--text);
}
.src-link svg {
  width: 20px;
  height: 20px;
}
.src-link .arr {
  transition: transform 0.15s;
}
.src-link:hover .arr {
  transform: translateX(3px);
}

/* The official Apple badge (assets/badges/mac-app-store.svg), unmodified. Apple asks for a minimum
   on-screen height of 40 px and clear space of at least a quarter of the badge height around it. */
.appstore {
  display: inline-block;
  flex: none;
  margin: 12px;
  margin-left: 0;
  border-radius: 9px;
  line-height: 0;
  text-decoration: none;
}
.appstore img {
  height: 48px;
  width: auto;
}
.appstore .fallback {
  display: none;
}
/* shown only when the badge image is missing (see site.js) */
.appstore.no-badge img {
  display: none;
}
.appstore.no-badge .fallback {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 10px 18px;
  border: 1px solid var(--line2);
  border-radius: 9px;
  background: #000;
  color: #fff;
  font: 700 16px/1.2 var(--ui);
  letter-spacing: 0.02em;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.chips li {
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(18, 21, 19, 0.7);
  color: var(--soft);
  font: 400 13px/1.3 var(--mono);
}
.chips li::before {
  content: "● ";
  color: var(--green);
}

.hero-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 15px;
}
.platforms-note {
  max-width: 46em;
  margin: clamp(20px, 3vw, 32px) 0 0;
}

/* ---------- hero illustration: one keystroke stream fanning out to many consoles ---------- */

.herd {
  position: relative;
  padding: 14px;
  border: 1px solid var(--line2);
  border-radius: 10px;
  background: linear-gradient(180deg, #111412, #0b0d0c);
  box-shadow:
    0 30px 80px -30px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(0, 0, 0, 0.6),
    0 0 90px -40px rgba(62, 226, 127, 0.35);
  font-family: var(--mono);
  user-select: none;
}
.herd-top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 2px 12px;
  color: var(--muted);
  font: 700 12px/1 var(--ui);
  letter-spacing: 0.3em;
}
.herd-top .dots {
  display: flex;
  gap: 6px;
}
.herd-top .dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line2);
}
.herd-top b {
  color: var(--green);
}
.herd-top .mode {
  margin-left: auto;
  padding: 5px 9px 4px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  letter-spacing: 0.14em;
  font-size: 11px;
}
.herd-top .mode.type {
  background: var(--green);
  color: var(--ink);
}
.herd-top .mode.solo {
  background: var(--amber);
  color: #000;
}

.herd-bar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 8px 12px;
  border: 1.5px solid var(--red);
  border-radius: 6px;
  background: #240c0c;
  color: #ffe0e0;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
}
.herd-bar.type {
  border-color: var(--green);
  background: #0c1d13;
  color: #d9ffe8;
}
.herd-bar.solo {
  border-color: var(--amber);
  background: #241a06;
  color: #ffeccb;
}
.herd-bar .prompt {
  color: var(--salmon);
  flex: none;
}
.herd-bar.type .prompt {
  color: var(--green);
}
.herd-bar.solo .prompt {
  color: var(--amber);
}
.herd-bar .typed {
  overflow: hidden;
  text-overflow: clip;
}
.caret {
  display: inline-block;
  width: 0.6em;
  height: 1.1em;
  margin-left: 1px;
  vertical-align: -0.18em;
  background: currentColor;
  animation: blink 1.05s steps(1) infinite;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}

.herd-wires {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  overflow: visible;
}
.herd-wires path {
  fill: none;
  stroke: rgba(255, 61, 61, 0.22);
  stroke-width: 1.5;
}
.herd-wires path.pulse {
  stroke: var(--red);
  stroke-width: 2;
  stroke-dasharray: 10 400;
  stroke-dashoffset: 10;
  opacity: 0;
}
.herd-wires.type path {
  stroke: rgba(62, 226, 127, 0.22);
}
.herd-wires.type path.pulse {
  stroke: var(--green);
}
.herd-wires.solo path {
  stroke: rgba(255, 178, 30, 0.1);
}
.herd-wires.solo path.pulse {
  stroke: var(--amber);
}
.herd-wires path.off {
  stroke: transparent !important;
}
.herd-wires path.pulse.go {
  animation: pulse 0.5s ease-out;
}
@keyframes pulse {
  0% {
    opacity: 1;
    stroke-dashoffset: 10;
  }
  100% {
    opacity: 0.2;
    stroke-dashoffset: -400;
  }
}

.herd-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 46px;
}
@media (max-width: 560px) {
  .herd-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 28px;
  }
  .herd-grid .tile:nth-child(n + 7) {
    display: none;
  }
}
.tile {
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #050605;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.tile.hot {
  border-color: rgba(255, 61, 61, 0.55);
}
.herd.is-type .tile.hot {
  border-color: rgba(62, 226, 127, 0.6);
}
.tile.solo {
  border-color: var(--amber);
  box-shadow: 0 0 0 1px var(--amber), 0 0 24px -6px rgba(255, 178, 30, 0.6);
}
.tile-head {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 22px;
  padding: 0 7px;
  background: var(--tile-top);
  border-bottom: 1px solid var(--line);
  font-size: 10px;
  white-space: nowrap;
}
.tile-head .lamp {
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
}
.tile-head .id {
  color: var(--muted);
}
.tile-head .nm {
  color: var(--text);
  font: 700 12px/1 var(--ui);
  overflow: hidden;
  text-overflow: ellipsis;
}
.tile-head .sync {
  position: relative;
  width: 18px;
  height: 10px;
  margin-left: auto;
  flex: none;
  border-radius: 5px;
  background: var(--red);
}
.tile-head .sync::after {
  content: "";
  position: absolute;
  top: 2px;
  right: 2px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
}
.tile.nosync .sync {
  background: #2a302c;
}
.tile.nosync .sync::after {
  right: auto;
  left: 2px;
  opacity: 0.5;
}
.tile .solo-tag {
  display: none;
  padding: 2px 4px 1px;
  border-radius: 2px;
  background: var(--amber);
  color: #000;
  font: 700 9px/1 var(--ui);
  letter-spacing: 0.16em;
}
.tile.solo .solo-tag {
  display: inline-block;
}
.tile-screen {
  height: 74px;
  margin: 0;
  padding: 6px 7px;
  overflow: hidden;
  color: var(--soft);
  font-size: 9.5px;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.tile-screen .g {
  color: var(--green);
}
.tile-screen .m {
  color: var(--muted);
}
.tile-screen .caret {
  color: var(--green);
  width: 0.55em;
}
@media (min-width: 1200px) {
  .tile-screen {
    height: 84px;
    font-size: 10px;
  }
}

/* ---------- "before SSH works" strip ---------- */

.strip {
  border-block: 1px solid var(--line);
  background: rgba(18, 21, 19, 0.6);
}
.strip .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 28px;
  padding-block: 18px;
}
.strip p {
  margin: 0;
  font: 700 15px/1.3 var(--ui);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.strip ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
  font: 400 15px/1.3 var(--mono);
  color: var(--text);
}
.strip li::before {
  content: "$ ";
  color: var(--green);
}

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

.section {
  padding: clamp(56px, 7.5vw, 104px) 0;
}
.section + .section {
  border-top: 1px solid var(--line);
}
.section-head {
  max-width: 760px;
  margin-bottom: clamp(28px, 4vw, 48px);
}

.feature {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.feature.flip {
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
}
.feature.flip .feature-text {
  order: 2;
}
@media (max-width: 900px) {
  .feature,
  .feature.flip {
    grid-template-columns: minmax(0, 1fr);
  }
  .feature.flip .feature-text {
    order: 0;
  }
}
.feature-text p {
  color: var(--soft);
}
.feature-text p.eyebrow {
  color: var(--green);
}
.feature-text p.lede {
  color: var(--text);
}

.ticks {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}
.ticks li {
  position: relative;
  padding-left: 26px;
  color: var(--soft);
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.58em;
  width: 10px;
  height: 6px;
  border-left: 2px solid var(--green);
  border-bottom: 2px solid var(--green);
  transform: rotate(-45deg);
}
.ticks strong {
  color: var(--text);
}

/* screenshots: a window frame around every capture, click to zoom */
.shot {
  display: block;
  position: relative;
  margin: 0;
  border: 1px solid var(--line2);
  border-radius: 10px;
  background: var(--panel);
  overflow: hidden;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(0, 0, 0, 0.5);
  transition: transform 0.25s ease, border-color 0.25s, box-shadow 0.25s;
  cursor: zoom-in;
}
.shot img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--bg);
}
.shot:hover {
  border-color: var(--muted);
  transform: translateY(-3px);
  box-shadow: 0 50px 90px -40px rgba(0, 0, 0, 0.95), 0 0 60px -30px rgba(62, 226, 127, 0.4);
}
.shot .zoom {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.72);
  color: var(--text);
  font: 700 12px/1 var(--ui);
  letter-spacing: 0.16em;
  opacity: 0;
  transition: opacity 0.2s;
}
.shot:hover .zoom,
.shot:focus-visible .zoom {
  opacity: 1;
}
figure {
  margin: 0;
}
figcaption {
  margin-top: 12px;
  color: var(--muted);
  font: 400 14px/1.45 var(--mono);
}
figcaption b {
  color: var(--text);
  font-weight: 400;
}

.trio {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.5vw, 28px);
  margin-top: clamp(28px, 4vw, 48px);
}
@media (max-width: 900px) {
  .trio {
    grid-template-columns: minmax(0, 1fr);
    max-width: 640px;
  }
}
.trio h3 {
  margin: 18px 0 6px;
}
.trio p {
  color: var(--soft);
  margin: 0;
}

/* broadcast key strip */
.keys-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

/* code / terminal blocks */
.term {
  margin: 24px 0 0;
  border: 1px solid var(--line2);
  border-radius: 8px;
  background: var(--input);
  overflow: hidden;
}
.term-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
  color: var(--muted);
  font: 700 12px/1 var(--ui);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.term-head::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
}
.term pre {
  margin: 0;
  padding: 14px 16px;
  overflow-x: auto;
  color: var(--text);
  font-size: 14px;
  line-height: 1.65;
  tab-size: 2;
}
.term pre code {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font-size: inherit;
  white-space: inherit;
}
.term .c {
  color: var(--muted);
}
.term .ph {
  color: var(--amber);
}
.term .g {
  color: var(--green);
}
.term .s {
  color: var(--steel);
}

.expand {
  width: 100%;
  margin-top: 16px;
  border-collapse: collapse;
  font: 400 13.5px/1.4 var(--mono);
}
.expand caption {
  text-align: left;
  padding-bottom: 8px;
  color: var(--muted);
  font: 700 12px/1 var(--ui);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.expand th,
.expand td {
  padding: 7px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}
.expand th {
  color: var(--muted);
  font-weight: 400;
}
.expand td {
  color: var(--green);
}
.table-scroll {
  overflow-x: auto;
}

/* search syntax */
.syntax {
  display: grid;
  gap: 8px;
  margin: 22px 0 0;
}
.syntax div {
  display: grid;
  grid-template-columns: minmax(0, 9.5em) minmax(0, 1fr);
  gap: 14px;
  align-items: baseline;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
}
.syntax dt {
  font: 400 14px/1.4 var(--mono);
  color: var(--green);
  white-space: pre;
}
.syntax dd {
  margin: 0;
  color: var(--soft);
  font-size: 16px;
}
@media (max-width: 480px) {
  .syntax div {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }
}

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

.keyboard {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 40px;
  margin: 0;
  padding: 8px 28px;
  border: 1px solid var(--line2);
  border-radius: 10px;
  background: var(--panel);
}
@media (max-width: 800px) {
  .keyboard {
    grid-template-columns: minmax(0, 1fr);
    padding: 6px 18px;
  }
}
.keyboard div {
  display: grid;
  grid-template-columns: minmax(0, 10em) minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.keyboard div:nth-last-child(-n + 2) {
  border-bottom: 0;
}
@media (max-width: 800px) {
  .keyboard div:nth-last-child(2) {
    border-bottom: 1px solid var(--line);
  }
}
@media (max-width: 480px) {
  .keyboard div {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }
}
.keyboard dt {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 15px;
}
.keyboard dd {
  margin: 0;
  color: var(--soft);
  font-size: 16.5px;
  line-height: 1.4;
}

/* ---------- cards ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 980px) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .cards {
    grid-template-columns: minmax(0, 1fr);
  }
}
.card {
  position: relative;
  padding: 26px 24px 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, var(--panel2), var(--panel));
}
.card::before {
  content: "";
  position: absolute;
  left: 24px;
  top: 0;
  width: 36px;
  height: 2px;
  background: var(--green);
}
.card.amber::before {
  background: var(--amber);
}
.card.red::before {
  background: var(--red);
}
.card.steel::before {
  background: var(--steel);
}
.card h3 {
  margin-bottom: 10px;
}
.card p,
.card li {
  color: var(--soft);
  font-size: 17px;
}
.card ul {
  margin: 0;
  padding-left: 1.1em;
}
.card li + li {
  margin-top: 6px;
}
.card li::marker {
  color: var(--green);
}
.card .ico {
  display: block;
  margin-bottom: 14px;
  color: var(--green);
  font: 700 15px/1 var(--mono);
}

/* ---------- requirements / faq ---------- */

.two {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}
@media (max-width: 900px) {
  .two {
    grid-template-columns: minmax(0, 1fr);
  }
}
.needs {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: need;
  display: grid;
  gap: 14px;
}
.needs li {
  position: relative;
  padding: 16px 18px 16px 58px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--soft);
}
.needs li::before {
  counter-increment: need;
  content: "0" counter(need);
  position: absolute;
  left: 18px;
  top: 17px;
  color: var(--green);
  font: 700 15px/1.5 var(--mono);
}
.needs strong {
  color: var(--text);
}

.faq details {
  border-bottom: 1px solid var(--line);
}
.faq details:first-of-type {
  border-top: 1px solid var(--line);
}
.faq summary {
  position: relative;
  padding: 18px 40px 18px 0;
  color: var(--text);
  font: 700 20px/1.3 var(--ui);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  position: absolute;
  right: 6px;
  top: 16px;
  color: var(--green);
  font: 400 22px/1 var(--mono);
  transition: transform 0.2s;
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq summary:hover {
  color: #fff;
}
.faq details > div {
  padding: 0 0 20px;
  color: var(--soft);
}
.faq details > div p:last-child {
  margin-bottom: 0;
}

/* ---------- final call to action ---------- */

.final {
  position: relative;
  text-align: center;
  overflow: hidden;
}
.final::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse 50% 70% at 50% 100%, rgba(62, 226, 127, 0.14), transparent 70%);
}
.final img.icon {
  width: 128px;
  height: 128px;
  margin: 0 auto 20px;
}
.final .cta {
  justify-content: center;
}
.final .appstore {
  margin-left: 12px;
}
.nowrap {
  white-space: nowrap;
}
.final .lede {
  max-width: 30em;
  margin-inline: auto;
  color: var(--soft);
}

/* ---------- prose pages (privacy, support, license) ---------- */

.page {
  padding: clamp(40px, 6vw, 80px) 0 clamp(64px, 8vw, 110px);
}
.prose {
  max-width: 780px;
}
.prose h1 {
  font-size: clamp(38px, 5.6vw, 60px);
}
.prose h2 {
  margin-top: 1.9em;
  font-size: clamp(25px, 3vw, 31px);
}
.prose h3 {
  margin-top: 1.6em;
  font-size: 21px;
}
.prose p,
.prose li {
  color: var(--soft);
}
.prose p.eyebrow {
  color: var(--green);
}
.prose strong {
  color: var(--text);
}
.prose ul,
.prose ol {
  padding-left: 1.3em;
  margin: 0 0 1em;
}
.prose li + li {
  margin-top: 6px;
}
.prose li::marker {
  color: var(--green);
}
.prose .meta {
  color: var(--muted);
  font: 400 14px/1.5 var(--mono);
}
.prose address {
  font-style: normal;
  color: var(--soft);
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-left: 2px solid var(--green);
  border-radius: 6px;
  background: var(--panel);
  margin: 0 0 1em;
}
.prose code {
  white-space: normal;
  overflow-wrap: anywhere;
}
.toc {
  margin: 24px 0 8px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  columns: 2 16em;
  column-gap: 32px;
  font-size: 16px;
}
.toc ol {
  margin: 0;
  padding-left: 1.4em;
}
.toc li {
  break-inside: avoid;
}
.callout {
  margin: 24px 0;
  padding: 16px 18px;
  border: 1px solid var(--line2);
  border-left: 3px solid var(--amber);
  border-radius: 6px;
  background: #16130b;
  color: var(--text);
}
.callout p {
  color: var(--text);
  margin: 0;
}
.help-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 28px 0 8px;
}
@media (max-width: 640px) {
  .help-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
.help-grid .card a {
  font-weight: 700;
  overflow-wrap: anywhere;
}

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

.lost {
  padding: clamp(60px, 12vw, 140px) 0;
}
.lost pre {
  display: inline-block;
  max-width: 100%;
  margin: 0 0 28px;
  padding: 16px 18px;
  border: 1px solid var(--line2);
  border-radius: 8px;
  background: var(--input);
  color: var(--soft);
  font-size: 14px;
  line-height: 1.6;
  white-space: pre-wrap;
}
.lost pre .r {
  color: var(--red);
}
.lost pre .g {
  color: var(--green);
}

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

.site-footer {
  border-top: 1px solid var(--line);
  background: #070908;
  padding: 48px 0 40px;
  color: var(--muted);
  font-size: 15.5px;
}
.foot-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
}
@media (max-width: 800px) {
  .foot-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }
}
.site-footer h2 {
  margin: 0 0 12px;
  color: var(--text);
  font: 700 13px/1 var(--ui);
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.site-footer address {
  font-style: normal;
  line-height: 1.6;
}
.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
  line-height: 1.9;
}
.site-footer a {
  color: var(--soft);
}
.site-footer a:hover {
  color: var(--text);
}
.foot-legal {
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.6;
}
.foot-legal p {
  margin: 0 0 6px;
}

/* ---------- lightbox ---------- */

.lightbox {
  width: min(96vw, 1680px);
  max-width: none;
  max-height: 94vh;
  margin: auto;
  padding: 0;
  border: 1px solid var(--line2);
  border-radius: 10px;
  background: var(--panel);
  color: var(--text);
  overflow: hidden;
}
.lightbox::backdrop {
  background: rgba(3, 4, 3, 0.86);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.lightbox img {
  width: 100%;
  max-height: calc(94vh - 56px);
  object-fit: contain;
  background: var(--bg);
}
.lb-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 54px;
  padding: 8px 10px 8px 16px;
  border-top: 1px solid var(--line);
}
.lb-bar p {
  flex: 1;
  min-width: 0;
  margin: 0;
  color: var(--soft);
  font: 400 13.5px/1.35 var(--mono);
}
.lb-bar .btn {
  min-height: 36px;
  padding: 6px 12px;
  font-size: 14px;
}

/* ---------- motion ---------- */

@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;
  }
  .caret {
    animation: none;
  }
  .shot:hover {
    transform: none;
  }
}

.prose .help-grid h2,
.h3 {
  margin-top: 0;
  font-size: 23px;
  line-height: 1.2;
}
