/* 404less marketing site: minimal, graphite, generous whitespace. */
:root {
  --ink: #1f1f23;
  --ink2: #44444c;
  --muted: #6f6f7a;
  --faint: #9a9aa3;
  --line: #e6e6ea;
  --line2: #ededf0;
  --bg: #ffffff;
  --bg2: #f6f6f7;
  --bg3: #f0f0f2;
  --dark: #121214;
  --dark2: #1a1a1f;
  --dline: #2a2a31;
  --on-dark: #f4f4f5;
  --on-dark-muted: rgba(244, 244, 245, 0.62);
  --ok: #2f8a5b;
  --bad: #c2413b;
  --radius: 14px;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "cv11", "ss01";
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  display: block;
}
code,
pre,
kbd {
  font-family: var(--mono);
  /* show exactly what to type: no `===` or `->` ligatures */
  font-variant-ligatures: none;
}
:focus-visible {
  outline: 2px solid rgba(31, 31, 35, 0.45);
  outline-offset: 2px;
  border-radius: 6px;
}
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

/* type */
h1,
h2,
h3 {
  margin: 0;
  letter-spacing: -0.025em;
  line-height: 1.1;
  font-weight: 600;
}
h1 {
  font-size: clamp(40px, 6vw, 72px);
  letter-spacing: -0.035em;
  line-height: 1.02;
}
h2 {
  font-size: clamp(30px, 3.6vw, 44px);
  letter-spacing: -0.03em;
}
h3 {
  font-size: 19px;
  letter-spacing: -0.015em;
}
p {
  margin: 0;
}
.lead {
  font-size: clamp(18px, 1.6vw, 21px);
  color: var(--muted);
  line-height: 1.5;
  max-width: 640px;
}
.muted {
  color: var(--muted);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  background: var(--bg);
}
.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ok);
}
.eyebrow .dot-bad {
  background: var(--bad);
}
.inline-code {
  font-family: var(--mono);
  font-size: 0.86em;
  background: var(--bg3);
  border-radius: 5px;
  padding: 1px 6px;
}
.link {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(31, 31, 35, 0.3);
}
.link:hover {
  text-decoration-color: var(--ink);
}

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    background 0.15s,
    border-color 0.15s,
    transform 0.05s;
  white-space: nowrap;
}
.btn:active {
  transform: translateY(1px);
}
.btn-primary {
  background: var(--ink);
  color: #fff;
}
.btn-primary:hover {
  background: #2c2c32;
}
.btn-secondary {
  background: var(--bg);
  color: var(--ink);
  border-color: var(--line);
}
.btn-secondary:hover {
  background: var(--bg2);
  border-color: #d8d8dd;
}
.btn-ghost {
  color: var(--ink2);
  height: 38px;
  padding: 0 12px;
}
.btn-ghost:hover {
  background: var(--bg2);
  color: var(--ink);
}
.btn svg {
  width: 16px;
  height: 16px;
}
.btn-sm {
  height: 36px;
  padding: 0 14px;
  font-size: 14px;
}
.on-dark .btn-primary {
  background: #fff;
  color: var(--ink);
}
.on-dark .btn-primary:hover {
  background: #ebebee;
}
.on-dark .btn-secondary {
  background: transparent;
  color: var(--on-dark);
  border-color: var(--dline);
}
.on-dark .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.06);
}

/* nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line2);
}
.nav .container {
  display: flex;
  align-items: center;
  height: 64px;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.02em;
}
.brand svg {
  width: 28px;
  height: 28px;
}
/* one word: the gap above is for the mark, never between "404" and "less" */
.brand-word span {
  color: var(--muted);
  font-weight: 500;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
}
.nav-links a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink2);
  padding: 8px 12px;
  border-radius: 8px;
}
.nav-links a:hover {
  background: var(--bg2);
  color: var(--ink);
}
body[data-nav="embed"] .nav-links a[href="/embed"],
body[data-nav="self-host"] .nav-links a[href="/self-host"],
body[data-nav="agent"] .nav-links a[href="/agent"] {
  color: var(--ink);
  background: var(--bg3);
}
.nav-cta {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-toggle {
  display: none;
  margin-left: auto;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  border-radius: 8px;
  cursor: pointer;
  color: var(--ink);
  align-items: center;
  justify-content: center;
}
.nav-toggle svg {
  width: 20px;
  height: 20px;
}

/* hero */
.hero {
  padding: 72px 0 64px;
  position: relative;
}
/* Split hero: the pitch on the left, one broken link's whole life on the right,
   both inside the first viewport. */
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  align-items: center;
  gap: 56px;
}
.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
}
.hero h1,
.doc .head h1,
.nf h1 {
  font-size: clamp(38px, 4.1vw, 56px);
  max-width: 17ch;
  text-wrap: balance;
}
/* One key phrase per headline, in the state color everything ends on. */
h1 .hl {
  color: var(--ok);
}
.hero .lead {
  max-width: 520px;
}

/* The trace: caught → suggested → fixed, as the dashboard would show it. */
.trace {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow:
    0 1px 2px rgba(18, 18, 20, 0.04),
    0 24px 48px -24px rgba(18, 18, 20, 0.18);
  overflow: hidden;
}
.trace-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 13px;
}
.trace-site {
  color: var(--faint);
}
.trace-path {
  color: var(--ink);
}
/* a broken URL reads like a typo */
.trace-path.is-broken {
  text-decoration: underline wavy var(--bad);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.trace-steps {
  list-style: none;
  margin: 0;
  padding: 8px 20px 18px;
  position: relative;
}
.trace-step {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 14px;
  padding: 14px 0;
  position: relative;
}
/* the thread connecting the steps */
.trace-step:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 25px;
  top: 44px;
  bottom: -14px;
  width: 1px;
  background: var(--line);
}
.trace-mark {
  display: grid;
  place-items: center;
  height: 28px;
  border-radius: 8px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  background: #f4f4f6;
  border: 1px solid var(--line);
  position: relative;
  z-index: 1;
}
.trace-step.is-bad .trace-mark {
  color: var(--bad);
  background: #fdf1f0;
  border-color: #f4d2cf;
}
.trace-step.is-ok .trace-mark {
  color: var(--ok);
  background: #eef7f2;
  border-color: #cde6d8;
}
.trace-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
  padding-top: 4px; /* centred on the 28px mark when it fits on one line */
}
.trace-title code {
  font-weight: 500;
  font-size: 13px;
  white-space: nowrap; /* a path drops to its own line rather than splitting at a hyphen */
}
.trace-meta {
  font-size: 13px;
  color: var(--muted);
}
.trace-meta code {
  font-size: 12px;
}
.trace-rule {
  margin: 6px 0 8px;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--dark);
  color: var(--on-dark);
  font-family: var(--mono);
  font-size: 12px;
  /* an illustration, not a code block: wrap at the spaces instead of scrolling */
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
/* First view only: the steps arrive in order, fast, then stay put. */
@media (prefers-reduced-motion: no-preference) {
  .trace-step {
    animation: trace-in 420ms cubic-bezier(0.23, 1, 0.32, 1) both;
  }
  .trace-step:nth-child(2) {
    animation-delay: 220ms;
  }
  .trace-step:nth-child(3) {
    animation-delay: 440ms;
  }
}
@keyframes trace-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}
.hero .ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}
.hero .note {
  font-size: 14px;
  color: var(--faint);
}
.hero .note code {
  font-size: 13px;
}
.shot-wrap {
  padding: 8px 0 96px;
}
.shot-wrap .container {
  position: relative;
}

/* browser frame */
.frame {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 40px 80px -40px rgba(20, 20, 30, 0.35),
    0 2px 6px rgba(20, 20, 30, 0.05);
}
.frame .bar {
  height: 38px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 14px;
  background: #f3f3f5;
  border-bottom: 1px solid var(--line);
}
.frame .bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d9d9de;
}
.frame .bar .url {
  margin-left: 10px;
  height: 22px;
  width: min(380px, 50%);
  border-radius: 6px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  padding: 0 10px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.frame .crop {
  position: relative;
  overflow: hidden;
  background: #fff;
}
.frame .crop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
}

/* hero demo player: a film still until clicked, then the real video with sound */
.player {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #f6f6f7;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 40px 80px -40px rgba(20, 20, 30, 0.35),
    0 2px 6px rgba(20, 20, 30, 0.05);
}
.player video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #f6f6f7;
}
.player .play {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  cursor: pointer;
  color: var(--ink);
  font: inherit;
  background: radial-gradient(60% 60% at 50% 55%, rgba(18, 18, 20, 0.16), rgba(18, 18, 20, 0.04));
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.player .play:hover {
  background: radial-gradient(60% 60% at 50% 55%, rgba(18, 18, 20, 0.24), rgba(18, 18, 20, 0.06));
}
.player .play:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: -6px;
}
.player .play .disc {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 30px 60px -20px rgba(18, 18, 20, 0.55),
    0 2px 6px rgba(18, 18, 20, 0.12);
  transition: transform 0.15s;
}
.player .play:hover .disc {
  transform: scale(1.04);
}
.player .play .disc svg {
  width: 32px;
  height: 32px;
  margin-left: 5px;
}
.player .play .pill {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  background: rgba(18, 18, 20, 0.86);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.005em;
  padding: 9px 14px;
  border-radius: 999px;
  white-space: nowrap;
}
.player .play .pill em {
  font-style: normal;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  margin-left: 8px;
}
.player.playing .play {
  display: none;
}

/* sections */
.section {
  padding: 104px 0;
  border-top: 1px solid var(--line2);
}
.section.tight {
  padding: 80px 0;
}
.section-head {
  max-width: 720px;
  margin-bottom: 48px;
}
.section-head h2 {
  margin-bottom: 14px;
}
.section-head p {
  font-size: 18px;
  color: var(--muted);
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  background: var(--bg);
}
.card h3 {
  margin: 14px 0 8px;
}
.card p {
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.55;
}
.icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--bg3);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.icon svg {
  width: 18px;
  height: 18px;
}

/* steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.step {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.step .vis {
  height: 230px;
  background: var(--bg2);
  border-bottom: 1px solid var(--line2);
  position: relative;
  overflow: hidden;
}
.step .vis img {
  width: 140%;
  max-width: none;
  position: absolute;
  left: 24px;
  top: 24px;
  border-radius: 10px 0 0 0;
  border: 1px solid var(--line);
  box-shadow: 0 20px 40px -24px rgba(20, 20, 30, 0.3);
}
.step .vis pre {
  margin: 0;
  overflow: hidden; /* cropped on purpose: the snippet bleeds off the card */
  position: absolute;
  left: 24px;
  top: 32px;
  right: -40px;
}
.step .body {
  padding: 22px 24px 26px;
}
.step .n {
  display: inline-flex;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.step h3 {
  margin-bottom: 8px;
}
.step p {
  color: var(--muted);
  font-size: 15.5px;
}

/* code */
pre.code {
  background: var(--dark2);
  color: var(--on-dark);
  border: 1px solid var(--dline);
  border-radius: 12px;
  padding: 18px 20px;
  font-size: 14px;
  line-height: 1.65;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.22) transparent;
  margin: 0;
}
/* illustrative transcripts wrap rather than scroll */
pre.code.is-wrapped {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
pre.code .k {
  color: #a5b4fc;
}
pre.code .s {
  color: #86efac;
}
pre.code .m {
  color: #9ca3af;
}
pre.code .p {
  color: #fbbf24;
}
pre.code .c {
  color: #6b7280;
}
.code-light {
  background: var(--bg2);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
  font-size: 14px;
  line-height: 1.6;
  overflow-x: auto;
  scrollbar-width: thin;
  margin: 0;
}

/* split sections */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.split h2 {
  margin-bottom: 14px;
}
.split .lead {
  font-size: 18px;
}
.list {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: grid;
  gap: 12px;
}
.list li {
  position: relative;
  padding-left: 30px;
  font-size: 16px;
  color: var(--ink2);
  min-width: 0;
}
.list li svg {
  position: absolute;
  left: 0;
  top: 4px;
  width: 18px;
  height: 18px;
  color: var(--ink);
}
.mock404 {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 44px 40px 36px;
  box-shadow: 0 40px 80px -40px rgba(20, 20, 30, 0.3);
}
.mock404 .big {
  font-size: 96px;
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 1;
  color: #e2e2e6;
}
.mock404 .t {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-top: 4px;
}
.mock404 .d {
  font-size: 15px;
  color: var(--muted);
  margin-top: 6px;
}
.mock404 img {
  margin-top: 24px;
  border-radius: 12px;
  box-shadow: 0 12px 30px -16px rgba(20, 20, 30, 0.25);
}

/* dark band */
.band {
  background: var(--dark);
  color: var(--on-dark);
  padding: 104px 0;
}
.band h2 {
  color: var(--on-dark);
}
.band .lead,
.band p.muted {
  color: var(--on-dark-muted);
}
.band .list li {
  color: rgba(244, 244, 245, 0.8);
}
.band .list li svg {
  color: var(--on-dark);
}
.band pre.code {
  background: #141418;
}

/* tables */
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.table th,
.table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line2);
  vertical-align: top;
}
.table th {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.table td code {
  font-size: 13.5px;
  background: var(--bg3);
  border-radius: 5px;
  padding: 1px 6px;
  white-space: nowrap;
}
.table-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
}
.table-wrap .table tr:last-child td {
  border-bottom: 0;
}

/* faq */
.faq {
  max-width: 760px;
}
.faq details {
  border-top: 1px solid var(--line2);
  padding: 6px 0;
}
.faq details:last-child {
  border-bottom: 1px solid var(--line2);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  font-weight: 400;
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
  transition: transform 0.2s;
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq .a {
  color: var(--muted);
  padding: 0 0 18px;
  font-size: 16px;
  max-width: 680px;
}

/* cta */
.cta {
  padding: 104px 0;
  border-top: 1px solid var(--line2);
  background: var(--bg2);
  text-align: center;
}
.cta h2 {
  margin-bottom: 14px;
}
.cta p {
  color: var(--muted);
  font-size: 18px;
  max-width: 560px;
  margin: 0 auto 28px;
}
.cta .ctas {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* footer */
.footer {
  border-top: 1px solid var(--line2);
  padding: 48px 0 40px;
  font-size: 14.5px;
  color: var(--muted);
}
.footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 48px;
  align-items: flex-start;
}
.footer .cols {
  display: flex;
  gap: 48px;
  margin-left: auto;
}
.footer .col {
  display: grid;
  gap: 8px;
  align-content: start;
}
.footer .col b {
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 4px;
}
.footer a:hover {
  color: var(--ink);
}
.footer .bottom {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 28px;
  border-top: 1px solid var(--line2);
  font-size: 13.5px;
  color: var(--faint);
}

/* docs pages */
.doc {
  padding: 80px 0 104px;
}
/* Doc pages open like the homepage: copy left, that page's trace right. */
.doc .head {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  align-items: center;
  gap: 56px;
  margin-bottom: 64px;
}
.doc .head-copy {
  max-width: 620px;
}
.doc .head h1 {
  margin: 18px 0 16px;
}
.doc .body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  max-width: 860px;
}
.doc section h2 {
  font-size: 28px;
  margin-bottom: 12px;
}
.doc section h3 {
  margin: 28px 0 8px;
}
.doc section p {
  color: var(--ink2);
  margin-bottom: 14px;
}
.doc section p.muted {
  color: var(--muted);
}
.doc pre.code,
.doc .code-light,
.doc .table-wrap {
  margin: 16px 0 20px;
}
.doc ul {
  color: var(--ink2);
  padding-left: 20px;
  margin: 0 0 14px;
}
.doc .body li {
  margin: 6px 0;
}
.doc .body li code,
.doc .body p code {
  font-size: 0.88em;
  background: var(--bg3);
  border-radius: 5px;
  padding: 1px 6px;
}
.callout {
  border: 1px solid var(--line);
  border-left: 3px solid var(--ink);
  border-radius: 10px;
  padding: 14px 18px;
  background: var(--bg2);
  color: var(--ink2);
  font-size: 15.5px;
  margin: 16px 0 20px;
}
.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
.toc a {
  font-size: 13.5px;
  font-weight: 500;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  color: var(--ink2);
}
.toc a:hover {
  background: var(--bg2);
  color: var(--ink);
}

/* 404 */
.nf {
  padding: 72px 0 96px;
}
.nf .head-copy {
  max-width: 620px;
}
.nf h1 {
  margin: 18px 0 16px;
}
.nf .ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.nav-links .only-mobile {
  display: none;
}

/* grid items shrink below their min-content width so code blocks and tables scroll instead of widening the page */
.split > *,
.doc .body > *,
.grid-2 > *,
.grid-3 > *,
.steps > *,
.step .body {
  min-width: 0;
}
img {
  max-width: 100%;
  height: auto;
}
.step .vis img {
  max-width: none;
  height: auto;
}

@media (max-width: 960px) {
  .grid-3,
  .steps {
    grid-template-columns: 1fr 1fr;
  }
  .steps > :last-child {
    grid-column: 1 / -1;
  }
  .split {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .nav-links {
    display: none;
  }
  .nav-cta .btn-secondary {
    display: none;
  }
}
@media (min-width: 641px) and (max-width: 960px) {
  /* the third step spans both columns on tablets; re-crop its screenshot for the wider card */
  .steps > :last-child .vis img {
    width: 120% !important;
    left: -16% !important;
    top: -130px !important;
  }
}
@media (max-width: 640px) {
  body {
    font-size: 16px;
  }
  pre.code,
  .code-light {
    font-size: 13px;
    padding: 14px 16px;
  }
  .table {
    font-size: 14px;
  }
  .table th,
  .table td {
    padding: 11px 8px;
  }
  .grid-3,
  .grid-2,
  .steps {
    grid-template-columns: 1fr;
  }
  .steps > :last-child {
    grid-column: auto;
  }
  .hero {
    padding: 64px 0 40px;
  }
  .hero-grid,
  .doc .head {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }
  .section,
  .band,
  .cta {
    padding: 72px 0;
  }
  .nav-toggle {
    display: inline-flex;
  }
  .nav-cta {
    display: none;
  }
  .nav.open .nav-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    left: 0;
    right: 0;
    top: 64px;
    padding: 8px 16px 16px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    margin: 0;
    box-shadow: 0 24px 40px -24px rgba(20, 20, 30, 0.25);
  }
  .nav.open .nav-links a {
    padding: 12px;
    font-size: 16px;
    text-align: left;
  }
  .nav.open .nav-links .only-mobile {
    display: block;
  }
  .nav.open .nav-links a.btn {
    margin-top: 8px;
    text-align: center;
    color: #fff;
  }
  .footer .cols {
    margin-left: 0;
    flex-wrap: wrap;
    gap: 24px 36px;
  }
  .mock404 {
    padding: 28px 22px;
  }
  .mock404 .big {
    font-size: 64px;
  }
  .player .play .disc {
    width: 60px;
    height: 60px;
  }
  .player .play .disc svg {
    width: 22px;
    height: 22px;
    margin-left: 3px;
  }
  .player .play .pill {
    bottom: 12px;
    font-size: 12.5px;
    padding: 7px 12px;
  }
}
