/* Conveno site. Tokens come from brand/tokens.json: light on :root, dark through
   prefers-color-scheme, and the theme button sets data-theme to override either way.
   Entry blue is only for the mark's point, the lead, live state, links and focus. */

@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
  src: url("/fonts/bricolage-grotesque-latin-variable.woff2") format("woff2");
}

@font-face {
  font-family: "Martian Mono";
  font-style: normal;
  font-weight: 100 800;
  font-stretch: 75% 112.5%;
  font-display: swap;
  src: url("/fonts/martian-mono-latin-variable.woff2") format("woff2");
}

:root {
  --ground: #f3f5f7;
  --surface: #ffffff;
  --sunken: #e9edf1;
  --ink: #111b28;
  --quiet: #566474;
  --rule: #c7d0da;
  --entry: #2346d9;
  --entry-ink: #ffffff;
  --stamp: #9a5700;
  --ok: #1e7b3a;
  --warn: #8a5200;
  --error: #b3202a;
  --info: #0a6c82;
  --focus: #2346d9;
  --dot: color-mix(in srgb, var(--rule) 80%, transparent);
  --ease-enter: cubic-bezier(0.2, 0.7, 0.1, 1);
  --ease-record: cubic-bezier(0.65, 0, 0.25, 1);
  --font-display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "Martian Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --gut: clamp(16px, 4vw, 64px);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #0d1520;
    --surface: #141f2e;
    --sunken: #0a111a;
    --ink: #e4eaf1;
    --quiet: #93a1b3;
    --rule: #2a384a;
    --entry: #8ca6ff;
    --entry-ink: #0d1520;
    --stamp: #ffb547;
    --ok: #7bd88f;
    --warn: #ffb547;
    --error: #f2777a;
    --info: #6fd3e8;
    --focus: #8ca6ff;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --ground: #0d1520;
  --surface: #141f2e;
  --sunken: #0a111a;
  --ink: #e4eaf1;
  --quiet: #93a1b3;
  --rule: #2a384a;
  --entry: #8ca6ff;
  --entry-ink: #0d1520;
  --stamp: #ffb547;
  --ok: #7bd88f;
  --warn: #ffb547;
  --error: #f2777a;
  --info: #6fd3e8;
  --focus: #8ca6ff;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

/* Controls that only work with JavaScript. theme.js adds .js to <html> before the first paint. */
html:not(.js) .needs-js {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 24px;
  background: var(--ground);
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 17px / 1.55 var(--font-body);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
  overflow-x: clip;
}

.wrap {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding-inline: var(--gut);
}

.quiet {
  color: var(--quiet);
}

.small {
  font-size: 14px;
}

p,
li,
dd {
  text-wrap: pretty;
}

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

a:hover {
  text-decoration-thickness: 2px;
}

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

.skip {
  position: absolute;
  left: 16px;
  top: -64px;
  padding: 8px 14px;
  background: var(--ink);
  color: var(--ground);
  z-index: 10;
}

.skip:focus {
  top: 12px;
}

code,
kbd,
pre {
  font-family: var(--font-mono);
  font-stretch: 87.5%;
}

code {
  font-size: 0.82em;
  font-weight: 450;
  background: var(--sunken);
  padding: 0.1em 0.35em;
  border-radius: 3px;
  overflow-wrap: anywhere;
}

/* Header */

.site-header .top {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-block: 14px;
}

.brand {
  display: block;
  line-height: 0;
  color: var(--ink);
}

.lockup {
  display: block;
  height: 26px;
  width: auto;
}

.lockup-point {
  fill: var(--entry);
}

.site-header nav {
  margin-left: auto;
}

.site-header ul {
  display: flex;
  gap: 4px 26px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-header nav a {
  color: var(--quiet);
  text-decoration: none;
  font-size: 15px;
  padding-block: 4px;
  border-bottom: 1.5px solid transparent;
}

.site-header nav a:hover {
  color: var(--ink);
}

.site-header nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.iconbtn {
  appearance: none;
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--ink);
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex: none;
}

.iconbtn:hover {
  border-color: var(--quiet);
}

/* Buttons and the install command */

.btn {
  appearance: none;
  font: 500 15px / 1 var(--font-display);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--ground);
  border: 1.5px solid var(--ink);
  text-decoration: none;
  cursor: pointer;
}

.btn:hover {
  background: color-mix(in srgb, var(--ink) 86%, var(--ground));
}

.btn.ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule);
}

.btn.ghost:hover {
  border-color: var(--ink);
}

.small-btn {
  padding: 10px 16px;
}

.cmd {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-stretch: 87.5%;
  font-size: 14px;
  padding: 11px 12px 11px 14px;
  border: 1.5px dashed var(--rule);
  border-radius: 8px;
  background: var(--sunken);
  color: var(--ink);
  max-width: 100%;
  margin: 0;
}

.cmd code {
  background: none;
  padding: 0;
  font-size: inherit;
  font-weight: 400;
  white-space: nowrap;
  overflow-wrap: normal;
}

.cmd code::before {
  content: "$ ";
  color: var(--quiet);
}

.cmd button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--quiet);
  cursor: pointer;
  font: 500 13px var(--font-display);
  padding: 2px 4px;
  border-radius: 4px;
}

.cmd button:hover {
  color: var(--ink);
}

.install {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

/* Footer */

.site-footer {
  margin-top: 96px;
  border-top: 1px solid var(--rule);
  padding-block: 48px 56px;
  color: var(--quiet);
  font-size: 15px;
}

.landing .site-footer {
  margin-top: 0;
}

.foot {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.foot-brand p {
  margin: 14px 0 0;
  max-width: 36ch;
}

.foot-h {
  margin: 0 0 10px;
  font: 600 14px var(--font-display);
  color: var(--ink);
}

.foot ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.site-footer a {
  color: var(--quiet);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.legal {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  font: 400 12px / 1.6 var(--font-mono);
  font-stretch: 87.5%;
}

.legal a {
  text-decoration: underline;
}

/* Landing and pricing */

.display-1 {
  font-family: var(--font-display);
  font-weight: 780;
  font-stretch: 76%;
  font-size: clamp(42px, 5vw, 74px);
  line-height: 0.95;
  letter-spacing: -0.012em;
  margin: 0;
  text-wrap: balance;
}

.display-2 {
  font-family: var(--font-display);
  font-weight: 760;
  font-stretch: 78%;
  font-size: clamp(36px, 4.4vw, 60px);
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  text-wrap: balance;
}

.hero-head {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: 48px;
  align-items: end;
  padding-top: 18px;
  padding-bottom: 26px;
}

.hero-head .install {
  margin-top: 26px;
}

.lede {
  margin: 0 0 14px;
  max-width: 40ch;
  font-size: 19px;
  line-height: 1.45;
}

.lede-small {
  margin: 0;
  color: var(--quiet);
  font-size: 15px;
  max-width: 52ch;
}

.band {
  padding-block: clamp(72px, 10vw, 128px);
}

.band.flush-top {
  padding-top: 0;
}

.sec-lede {
  color: var(--quiet);
  max-width: 46ch;
  margin: 0;
  font-size: 18px;
}

.split-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: end;
}

/* The live map */

.stage {
  position: relative;
  margin: 0;
  border: 1px solid var(--rule);
  border-radius: 14px;
  background-color: var(--sunken);
  background-image: radial-gradient(var(--dot) 1px, transparent 1.2px);
  background-size: 20px 20px;
  background-position: 10px 10px;
  overflow: hidden;
}

.map-area {
  position: relative;
}

.stage svg {
  display: block;
  width: 100%;
  height: auto;
}

.stage:not(.live) #map,
.stage.live .map-snap {
  display: none;
}

.stage .snap-tall {
  display: none;
}

.stage-bar {
  display: flex;
  align-items: center;
  gap: 14px 22px;
  padding: 12px 14px;
  border-top: 1px solid var(--rule);
  background: var(--ground);
  min-height: 62px;
}

.seg,
.bill {
  margin: 0;
  min-width: 0;
}

.seg {
  display: inline-flex;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  padding: 2px;
  flex: none;
}

.seg button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: 500 14px / 1 var(--font-display);
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
}

.seg button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--ground);
}

.seg button small {
  font: 400 12px var(--font-mono);
  font-stretch: 87.5%;
  opacity: 0.75;
  margin-left: 6px;
}

.narr {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 15px;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.narr b {
  font-family: var(--font-mono);
  font-stretch: 87.5%;
  font-weight: 500;
  font-size: 13.5px;
}

.legend {
  position: absolute;
  left: 16px;
  bottom: 12px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
  margin: 0;
  font: 400 12px var(--font-mono);
  font-stretch: 87.5%;
  color: var(--quiet);
  pointer-events: none;
}

.legend span {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.legend svg {
  width: 14px;
  height: 14px;
  overflow: visible;
}

.hint {
  position: absolute;
  left: 16px;
  top: 12px;
  font-size: 13px;
  color: var(--quiet);
  margin: 0;
}

/* SVG parts of the map. Colours come from classes: the CSP forbids style attributes. */
.stage text {
  font-family: var(--font-mono);
  font-stretch: 78%;
}

.ink-s {
  stroke: var(--ink);
}
.q-s {
  stroke: var(--quiet);
}
.f-surface {
  fill: var(--surface);
}
.f-sunken {
  fill: var(--sunken);
}
.f-ground {
  fill: var(--ground);
}
.f-ink {
  fill: var(--ink);
}
.f-quiet {
  fill: var(--quiet);
}
.f-entry {
  fill: var(--entry);
}
.f-stamp {
  fill: var(--stamp);
}
.f-ok {
  fill: var(--ok);
}
.s-stamp {
  stroke: var(--stamp);
}
.f-body {
  fill: color-mix(in srgb, var(--surface) 55%, var(--sunken));
}
.f-none {
  fill: none;
}

.mlabel {
  font-size: 12px;
  fill: var(--quiet);
}

.mlabel .d {
  fill: var(--ink);
  font-weight: 500;
}

.card {
  cursor: default;
  outline: none;
}

.card rect.bg {
  fill: var(--surface);
  stroke: var(--rule);
  stroke-width: 1;
  transition: stroke 0.3s;
}

.card.lead rect.bg {
  stroke: var(--ink);
  stroke-width: 1.5;
}

.card.flash rect.bg,
.card:focus-visible rect.bg,
.card:hover rect.bg {
  stroke: var(--ink);
}

.card:focus-visible rect.bg {
  stroke: var(--focus);
  stroke-width: 2;
}

.brand {
  fill: currentColor;
  width: 1.15em;
  height: 1.15em;
  flex: none;
  vertical-align: -0.2em;
}

.card .brand {
  color: var(--quiet);
}

.tip-h .brand {
  color: var(--ink);
}

.cli-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin: 4px 0 0;
  font-size: 14px;
  padding: 0;
  list-style: none;
}

.cli-row li,
.cli-row b {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: inherit;
  white-space: nowrap;
}

.cli-row .brand {
  vertical-align: baseline;
}

.card .nm {
  font-size: 12px;
  fill: var(--ink);
}

.card .nm .c {
  fill: var(--quiet);
  font-weight: 400;
}

.card .nm .n {
  font-weight: 600;
}

.card .act {
  font-size: 10.5px;
  fill: var(--quiet);
}

.card .ltag {
  font-size: 10.5px;
  fill: var(--entry);
  font-weight: 500;
}

.card .prog {
  fill: var(--ink);
  opacity: 0.55;
}

.card.hidden {
  opacity: 0;
  pointer-events: none;
}

.card.spawning rect.bg {
  stroke-dasharray: 4 4;
  stroke: var(--ink);
}

.card.spawned {
  transition: opacity 0.56s var(--ease-enter);
}

.outline {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.25;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.outline .q-s {
  stroke: var(--quiet);
}

.wire {
  fill: none;
  stroke: var(--quiet);
  stroke-width: 1.5;
  stroke-dasharray: 2 6;
  stroke-linecap: round;
}

.link {
  fill: none;
  stroke: var(--rule);
  stroke-width: 1.5;
  stroke-linecap: round;
  transition: stroke 0.3s;
}

.link.spawnline {
  stroke-dasharray: 3 6;
  stroke: var(--quiet);
}

.link.hot {
  stroke: var(--quiet);
}

.link.off {
  opacity: 0;
}

.pk-cap rect {
  fill: var(--ground);
  stroke: var(--rule);
}

.pk-cap text {
  font-size: 11px;
  fill: var(--ink);
}

.pk.sealed .pk-cap text {
  fill: var(--quiet);
  letter-spacing: 0.04em;
}

.ripple {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.5;
  opacity: 0;
}

.ripple.go {
  animation: ripple 0.9s var(--ease-enter) both;
}

@keyframes ripple {
  0% {
    opacity: 0.9;
    r: 4;
  }
  100% {
    opacity: 0;
    r: 22;
  }
}

.stage .anno {
  font-family: var(--font-display);
  font-stretch: 90%;
  font-size: 15px;
  fill: var(--quiet);
  font-weight: 450;
}

.anno-arrow {
  fill: none;
  stroke: var(--quiet);
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.stage .relay-title {
  font-family: var(--font-display);
  font-stretch: 90%;
  font-size: 14px;
  fill: var(--ink);
  font-weight: 600;
}

.relay-line {
  font-size: 10.5px;
  fill: var(--ink);
}

.relay-hex {
  font-size: 10.5px;
  fill: var(--quiet);
  letter-spacing: 0.05em;
}

.relay-note {
  font-size: 10.5px;
  fill: var(--quiet);
}

.fade {
  transition: opacity 0.56s var(--ease-enter);
}

.machine {
  transition: transform 0.88s var(--ease-record);
}

.mode-free .pro-only,
.mode-pro .free-only {
  opacity: 0;
  pointer-events: none;
}

.relay-entry {
  animation: entry-in 0.56s var(--ease-enter) both;
}

@keyframes entry-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.paused * {
  animation-play-state: paused !important;
}

.tip {
  position: absolute;
  z-index: 5;
  width: 264px;
  background: var(--surface);
  border: 1.5px solid var(--ink);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.45;
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition:
    opacity 0.2s,
    transform 0.2s var(--ease-enter);
}

.tip.on {
  opacity: 1;
  transform: none;
}

.tip-h {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font: 500 13.5px var(--font-mono);
  font-stretch: 87.5%;
}

.tip-h span,
.tip .meta {
  color: var(--quiet);
  font-weight: 400;
}

.tip .meta {
  font-size: 13px;
  margin: 2px 0 8px;
}

.tip .st {
  display: flex;
  gap: 8px;
  align-items: center;
  font-weight: 500;
}

.tip .now {
  margin: 4px 0 8px;
  font-family: var(--font-mono);
  font-stretch: 87.5%;
  font-size: 12.5px;
}

.tip ol {
  list-style: none;
  margin: 0;
  padding: 8px 0 0;
  border-top: 1px solid var(--rule);
  font: 400 12px / 1.6 var(--font-mono);
  font-stretch: 87.5%;
  color: var(--quiet);
}

.tip ol b {
  color: var(--ink);
  font-weight: 400;
}

/* How the meeting runs */

.meet {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.meet-side {
  position: sticky;
  top: 48px;
}

.meet-side p {
  color: var(--quiet);
  margin: 0;
  max-width: 30em;
  font-size: 18px;
}

.meet-side .aside-note {
  margin-top: 36px;
  padding-left: 16px;
  border-left: 2px solid var(--rule);
  font-size: 15px;
  max-width: 28em;
}

.aside-note b {
  color: var(--ink);
  font-weight: 600;
}

.agenda {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  --p: 1;
}

.agenda::before,
.agenda::after {
  content: "";
  position: absolute;
  left: 13px;
  top: 14px;
  bottom: 14px;
  width: 1.5px;
  background: var(--rule);
}

.agenda::after {
  background: var(--ink);
  transform-origin: top;
  transform: scaleY(var(--p));
}

.agenda li {
  position: relative;
  padding: 0 0 clamp(56px, 6vw, 88px) 64px;
}

.agenda li:last-child {
  padding-bottom: 0;
}

.agenda .node {
  position: absolute;
  left: 0;
  top: 2px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--ground);
  border: 1.5px solid var(--ink);
  display: grid;
  place-items: center;
  font: 500 12px var(--font-mono);
  font-stretch: 87.5%;
  color: var(--ink);
  z-index: 1;
  transition:
    border-color 0.3s,
    color 0.3s;
}

.agenda.live li:not(.on) .node {
  border-color: var(--rule);
  color: var(--quiet);
}

.node-lead path {
  fill: none;
  stroke: var(--ink);
  stroke-width: 2.2;
}

.agenda.live li:not(.on) .node-lead svg {
  opacity: 0.5;
}

.agenda h3 {
  font-family: var(--font-display);
  font-weight: 720;
  font-stretch: 80%;
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin: 0 0 14px;
}

.agenda p {
  margin: 0 0 18px;
  color: var(--quiet);
  max-width: 34em;
}

.agenda p code {
  color: var(--ink);
}

/* Plans */

.price-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 24px;
  margin-top: 48px;
  align-items: stretch;
}

.plan {
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 28px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
}

.plan.pro {
  border: 1.5px solid var(--ink);
  background: var(--ground);
}

.plan .sketch {
  height: 120px;
  margin: -6px 0 18px;
  display: block;
  width: 100%;
}

.plan-top {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.plan h3 {
  font-family: var(--font-display);
  font-weight: 760;
  font-stretch: 80%;
  font-size: 30px;
  margin: 0;
  letter-spacing: -0.01em;
}

.plan .what {
  color: var(--quiet);
  margin: 2px 0 18px;
  font-size: 16px;
}

.amount {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 18px;
  flex-wrap: wrap;
}

.amount .n {
  font-family: var(--font-display);
  font-weight: 780;
  font-stretch: 76%;
  font-size: 64px;
  line-height: 1;
  letter-spacing: -0.02em;
}

.amount .per {
  color: var(--quiet);
  font-size: 16px;
}

.bill {
  display: inline-flex;
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 2px;
  margin-left: auto;
}

.bill button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--quiet);
  font: 500 13px var(--font-display);
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
}

.bill button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--ground);
}

.plan ul {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
  display: grid;
  gap: 10px;
  font-size: 16px;
}

.plan li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: baseline;
}

.plan li::before {
  content: "";
  width: 10px;
  height: 2px;
  background: var(--quiet);
  transform: translateY(-5px);
}

.plan li code {
  color: var(--ink);
}

.plan .cta {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
}

.plan .fine {
  color: var(--quiet);
  font-size: 14px;
  margin: 0;
}

.pro-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 28px;
}

/* Pricing page details under the plans */

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0 40px;
  margin-top: 72px;
  border-top: 1px solid var(--rule);
}

.facts > div {
  padding-top: 28px;
}

.facts h2 {
  font-family: var(--font-display);
  font-weight: 720;
  font-stretch: 80%;
  font-size: 26px;
  line-height: 1.1;
  margin: 0 0 10px;
}

.facts p {
  color: var(--quiet);
  margin: 0 0 12px;
  max-width: 40ch;
}

.facts p code {
  color: var(--ink);
}

/* Closing */

.closing {
  border-top: 1px solid var(--rule);
}

.close-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.close-title {
  font-family: var(--font-display);
  font-weight: 780;
  font-stretch: 76%;
  font-size: clamp(52px, 7.4vw, 112px);
  line-height: 0.9;
  letter-spacing: -0.02em;
  margin: 0 0 32px;
  text-wrap: balance;
}

.close-copy p {
  color: var(--quiet);
  margin: 16px 0 0;
  font-size: 15px;
  max-width: 36ch;
}

.close-copy p code {
  color: var(--ink);
}

.close-copy .links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.gridfig {
  margin: 0;
  border: 1px solid var(--rule);
  border-radius: 14px;
  background: var(--sunken);
  overflow: hidden;
}

.gridfig .cv {
  position: relative;
  height: clamp(380px, 36vw, 480px);
}

.gridfig canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.gridfig:not(.live) canvas,
.gridfig.live .grid-static {
  display: none;
}

.grid-static {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 24px;
  padding: 24px;
  flex-wrap: wrap;
}

.grid-static ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
  font: 600 13px var(--font-mono);
  font-stretch: 87.5%;
}

.grid-static li::before {
  content: "\25CF  ";
}

.grid-static li.lead::before {
  color: var(--entry);
}

.grid-static li span {
  color: var(--quiet);
  font-weight: 400;
}

.grid-static svg {
  width: clamp(120px, 18vw, 220px);
  height: auto;
}

.gridfig .replay {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
  width: 32px;
  height: 32px;
  background: var(--ground);
}

/* Terminal boxes, themed */

.term {
  margin: 0;
  background: var(--sunken);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 12px 14px;
  font: 400 12.5px / 1.7 var(--font-mono);
  font-stretch: 87.5%;
  overflow-x: auto;
  color: var(--ink);
  white-space: pre;
  max-width: 100%;
}

.term .p,
.term .q {
  color: var(--quiet);
}

.term .c,
.term b {
  font-weight: 600;
}

.term .o,
.term .e {
  color: var(--entry);
}

.term .ok {
  color: var(--ok);
}

.term .w {
  color: var(--stamp);
}

/* Prose */

.prose {
  max-width: 38em;
  min-width: 0;
}

.prose.page {
  padding-block: 56px 0;
  margin-inline: 0;
}

.prose h1 {
  font: 760 clamp(36px, 5vw, 56px) / 1 var(--font-display);
  font-stretch: 78%;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  text-wrap: balance;
}

.prose h2 {
  font: 720 clamp(26px, 3vw, 32px) / 1.1 var(--font-display);
  font-stretch: 82%;
  letter-spacing: -0.015em;
  margin: 2.4em 0 0.5em;
  padding-top: 1.2em;
  border-top: 1px solid var(--rule);
}

.prose h2:first-of-type {
  border-top: 0;
}

.prose h3 {
  font: 650 20px / 1.3 var(--font-display);
  margin: 1.8em 0 0.4em;
}

.prose p,
.prose ul,
.prose ol,
.prose dl,
.prose table,
.prose pre {
  margin: 0 0 1em;
}

.prose ul,
.prose ol {
  padding-left: 1.3em;
}

.prose li {
  margin-bottom: 0.35em;
}

.prose .lede {
  font-size: 19px;
  color: var(--quiet);
  max-width: 60ch;
}

.prose blockquote {
  margin: 0 0 1em;
  padding: 2px 0 2px 16px;
  border-left: 2px solid var(--rule);
  color: var(--quiet);
}

/* Docs layout */

.docs {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 56px;
  padding-block: 40px 0;
}

.docs .prose {
  padding-top: 8px;
}

.docs-side {
  font-size: 15px;
}

.docs-side ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.docs-side li a {
  display: block;
  padding: 4px 0 4px 12px;
  margin-left: -12px;
  color: var(--ink);
  text-decoration: none;
  border-left: 2px solid transparent;
}

.docs-side li a:hover {
  border-left-color: var(--rule);
}

.docs-side li a[aria-current="page"] {
  border-left-color: var(--entry);
  font-weight: 600;
}

.side-group {
  margin-bottom: 22px;
}

.side-title {
  margin: 0 0 6px;
  font: 600 12px var(--font-body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--quiet);
}

@media (min-width: 861px) {
  .docs-side {
    position: sticky;
    top: 24px;
    align-self: start;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
  }
}

@media (max-width: 860px) {
  .docs {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .docs-side {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0 24px;
    border-bottom: 1px solid var(--rule);
    padding-bottom: 12px;
  }
}

.note,
.callout {
  border: 1px solid color-mix(in srgb, var(--stamp) 45%, var(--rule));
  border-radius: 8px;
  background: color-mix(in srgb, var(--stamp) 6%, var(--surface));
  padding: 12px 16px;
  font-size: 15.5px;
}

.callout.plain {
  border-color: var(--rule);
  background: var(--surface);
}

.note p:last-child,
.callout p:last-child {
  margin-bottom: 0;
}

pre {
  background: var(--sunken);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 14px 16px;
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.7;
  tab-size: 2;
}

pre code {
  background: none;
  padding: 0;
  font-size: inherit;
  font-weight: 400;
  overflow-wrap: normal;
}

.copy-line {
  display: flex;
  align-items: stretch;
  border: 1.5px dashed var(--rule);
  border-radius: 8px;
  background: var(--sunken);
  max-width: 560px;
  margin: 0 0 8px;
  overflow: hidden;
}

.copy-line code {
  flex: 1;
  background: none;
  padding: 12px 16px;
  font-size: 13.5px;
  font-weight: 400;
  white-space: nowrap;
  overflow-x: auto;
  border-radius: 0;
}

.copy-line code::before {
  content: "$ ";
  color: var(--quiet);
}

.copy-line button {
  border: 0;
  background: transparent;
  color: var(--quiet);
  font: 500 14px var(--font-body);
  padding: 0 16px;
  cursor: pointer;
}

.copy-line button:hover {
  color: var(--ink);
}

.prose.page {
  padding-block: 56px 0;
}

/* Tables, definition lists, tags */

.table-wrap {
  overflow-x: auto;
  margin: 0 0 1.2em;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  margin: 0;
}

.prose th,
.prose td {
  text-align: left;
  vertical-align: top;
  padding: 10px 14px 10px 0;
  border-bottom: 1px solid var(--rule);
}

.prose th {
  font: 600 12px var(--font-body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--quiet);
}

.tag {
  display: inline-block;
  font: 500 12px / 1.5 var(--font-mono);
  padding: 0 7px;
  border: 1px solid currentcolor;
  border-radius: 2px;
  white-space: nowrap;
  vertical-align: 1px;
}

.tag.soon {
  color: var(--stamp);
}

.tag.live {
  color: var(--entry);
}

.tag.ok {
  color: var(--ok);
}

.tag.draft {
  color: var(--error);
}

.flags {
  border-top: 1px solid var(--rule);
  margin: 1em 0 1.6em;
}

.flags dt {
  margin-top: 12px;
  font-weight: 500;
}

.flags dd {
  margin: 2px 0 12px;
  color: var(--quiet);
  font-size: 15px;
}

.flags dd code {
  color: var(--ink);
}

.command {
  margin-bottom: 2.4em;
}

.prose .command-h {
  font: 650 20px / 1.3 var(--font-display);
  margin: 1.8em 0 0.3em;
  padding-top: 0;
  border-top: 0;
}

.usage code {
  background: none;
  padding: 0;
  font-size: 14px;
  color: var(--quiet);
}

.cli-table td:first-child {
  white-space: nowrap;
  font-weight: 500;
}

/* Narrow screens */

@media (max-width: 980px) {
  .hero-head,
  .split-head {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

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

  .meet-side {
    position: static;
  }

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

  .foot {
    grid-template-columns: 1fr 1fr;
  }

  .foot-brand {
    grid-column: 1 / -1;
  }

  .stage-bar {
    flex-wrap: wrap;
  }

  .narr {
    white-space: normal;
    flex-basis: 100%;
    order: 3;
  }
}

@media (max-width: 720px) {
  .hint,
  .legend {
    display: none;
  }

  .stage .snap-wide {
    display: none;
  }

  .stage .snap-tall {
    display: block;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .site-header .top {
    gap: 14px;
  }

  .site-header ul {
    gap: 18px;
  }

  .wide-only,
  .install-btn {
    display: none;
  }

  .lockup {
    height: 22px;
  }

  .agenda li {
    padding-left: 48px;
  }

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

  .plan {
    padding: 22px;
  }

  .seg button small {
    display: none;
  }

  .stage-bar {
    justify-content: space-between;
  }

  .cmd {
    font-size: 13px;
  }

  .gridfig .cv {
    height: 500px;
  }

  .amount .n {
    font-size: 54px;
  }
}

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

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

@media print {
  .site-header,
  .docs-side,
  .site-footer,
  .skip {
    display: none;
  }
}

/* Under 640px the CLI tables become one card per CLI, labelled from data-label. */
@media (max-width: 640px) {
  .cli-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  .cli-table,
  .cli-table tbody,
  .cli-table tr,
  .cli-table td {
    display: block;
  }

  .cli-table tr {
    background: var(--surface);
    border: 1px solid var(--rule);
    padding: 12px 16px;
    margin-bottom: 12px;
  }

  .cli-table td {
    border: 0;
    padding: 4px 0;
  }

  .cli-table td:first-child {
    font: 700 18px var(--font-display);
    padding-bottom: 8px;
  }

  .cli-table td[data-label]::before {
    content: attr(data-label);
    display: block;
    font: 600 12px var(--font-body);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--quiet);
  }
}

/* Pricing page */

.pricing-page {
  padding-top: clamp(40px, 6vw, 72px);
}

.pricing-page .display-1 {
  margin-bottom: 40px;
}

.stage .tip svg {
  width: 14px;
  height: 14px;
  flex: none;
}
