@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/fonts/montserrat-latin.woff2") format("woff2");
}

/* Brand palette: Midnight #0F1E3D, Azure #2B4F8E, Steel #5D6876, Loop #4A6696 (dark #5C7DBD),
 * Paper #FFFFFF / #EEF1F5. The hero, CTA and footer bands stay Midnight in both schemes. */
:root {
  --midnight: #0f1e3d;
  --midnight-deep: #091429;
  --azure: #2b4f8e;
  --steel: #5d6876;
  --loop: #4a6696;
  --loop-light: #8ea6d6;

  --bg: #ffffff;
  --bg-subtle: #f6f8fb;
  --surface: #ffffff;
  --surface-2: #eef1f5;
  --border: #e1e6ee;
  --border-strong: #cbd3df;
  --text: #0f1e3d;
  --text-2: #3b4658;
  --muted: #5d6876;
  --accent: #2b4f8e;
  --accent-hover: #0f1e3d;
  --accent-soft: #e8eef8;
  --ring: rgb(43 79 142 / 0.35);
  --shadow-sm: 0 1px 2px rgb(15 30 61 / 0.06);
  --shadow-md: 0 1px 2px rgb(15 30 61 / 0.04), 0 8px 24px -6px rgb(15 30 61 / 0.12);
  --radius: 14px;
  --radius-lg: 20px;
  --header-bg: rgb(255 255 255 / 0.8);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #081224;
    --bg-subtle: #0b1730;
    --surface: #0e1b36;
    --surface-2: #13244a;
    --border: #1c2d52;
    --border-strong: #2a3f6b;
    --text: #eef1f5;
    --text-2: #c5cddb;
    --muted: #94a0b4;
    /* Loop dark (#5C7DBD) is under 4.5:1 here for body links; one step lighter. */
    --accent: #8ea6d6;
    --accent-hover: #b6c6e6;
    --accent-soft: #15284f;
    --ring: rgb(142 166 214 / 0.4);
    --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.3);
    --shadow-md: 0 1px 2px rgb(0 0 0 / 0.3), 0 12px 32px -8px rgb(0 0 0 / 0.5);
    --header-bg: rgb(8 18 36 / 0.75);
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    "Montserrat", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

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

a:hover {
  color: var(--accent-hover);
}

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

svg.icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wrap {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--header-bg);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
}

.brand:hover {
  color: var(--text);
}

/* Nav and footer use the reduced mark beside the wordmark (brand guide). */
.brand picture {
  display: contents;
}

.brand img {
  display: block;
  width: 34px;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 500;
}

.site-nav a:not(.button) {
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
}

.site-nav a:not(.button):hover {
  color: var(--text);
  background: var(--surface-2);
}

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

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  cursor: pointer;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition:
    background-color 0.15s,
    border-color 0.15s,
    transform 0.15s;
}

.button:hover {
  color: var(--text);
  border-color: var(--muted);
}

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

.button.primary {
  border-color: transparent;
  background: linear-gradient(180deg, #3a62a8 0%, var(--azure) 100%);
  color: #ffffff;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.18),
    0 6px 16px -6px rgb(43 79 142 / 0.6);
}

.button.primary:hover {
  background: linear-gradient(180deg, #4370bd 0%, #325ba0 100%);
  color: #ffffff;
}

.button.small {
  padding: 8px 14px;
  font-size: 14px;
  border-radius: 9px;
}

.button.ghost-dark {
  background: rgb(255 255 255 / 0.06);
  border-color: rgb(255 255 255 / 0.18);
  color: #eef1f5;
  box-shadow: none;
}

.button.ghost-dark:hover {
  background: rgb(255 255 255 / 0.12);
  border-color: rgb(255 255 255 / 0.32);
  color: #ffffff;
}

.site-nav .button {
  margin-left: 8px;
}

main {
  flex: 1;
}

/* Midnight bands (hero, page headers, CTA) */

.band {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--midnight-deep);
  color: #eef1f5;
}

.band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 70% at 15% 0%, rgb(43 79 142 / 0.55), transparent 70%),
    radial-gradient(50% 60% at 95% 20%, rgb(74 102 150 / 0.4), transparent 70%),
    linear-gradient(180deg, var(--midnight) 0%, var(--midnight-deep) 100%);
}

.band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgb(255 255 255 / 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 0.045) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(80% 70% at 50% 0%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(80% 70% at 50% 0%, #000 30%, transparent 100%);
}

/* In dark mode the bands would otherwise run into the page. */
@media (prefers-color-scheme: dark) {
  .hero,
  .page-head {
    border-bottom: 1px solid var(--border);
  }
}

.band .eyebrow {
  color: var(--loop-light);
}

.band a:not(.button) {
  color: #b6c6e6;
}

/* Landing hero */

.hero {
  padding: 88px 0 96px;
}

.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  padding: 6px 14px 6px 8px;
  border-radius: 999px;
  border: 1px solid rgb(255 255 255 / 0.14);
  background: rgb(255 255 255 / 0.06);
  color: #c5cddb;
  font-size: 13px;
  font-weight: 500;
}

.pill .dot {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--azure);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(36px, 4.6vw, 56px);
  line-height: 1.06;
  letter-spacing: -0.025em;
  font-weight: 800;
  color: #ffffff;
}

.hero h1 .grad {
  background: linear-gradient(90deg, #8ea6d6 0%, #c9d6f0 50%, #8ea6d6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .lede {
  margin: 0;
  max-width: 540px;
  color: #c5cddb;
  font-size: 18px;
}

.actions {
  margin-top: 34px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  color: #94a0b4;
  font-size: 13px;
}

.hero-meta li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-meta svg.icon {
  width: 16px;
  height: 16px;
  color: var(--loop-light);
}

/* Code window */

.window {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid rgb(255 255 255 / 0.12);
  background: rgb(9 20 41 / 0.78);
  box-shadow:
    0 0 0 1px rgb(0 0 0 / 0.2),
    0 30px 80px -20px rgb(0 0 0 / 0.7),
    0 0 120px -40px rgb(74 102 150 / 0.8);
  overflow: hidden;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid rgb(255 255 255 / 0.08);
  color: #94a0b4;
  font-size: 12px;
  font-weight: 500;
}

.window-bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.16);
}

.window-bar span {
  margin-left: 8px;
}

.window pre {
  margin: 0;
  padding: 20px 22px;
  overflow-x: auto;
  font-family: ui-monospace, "SFMono-Regular", "JetBrains Mono", Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.75;
  color: #c5cddb;
}

.window pre + pre {
  border-top: 1px dashed rgb(255 255 255 / 0.1);
}

.tok-c {
  color: #6b7a93;
}

.tok-k {
  color: #8ea6d6;
}

.tok-s {
  color: #a8d5ba;
}

.tok-n {
  color: #f0c58a;
}

.tok-p {
  color: #eef1f5;
}

/* Provider strip */

.providers {
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
  background: var(--bg-subtle);
}

.providers p {
  margin: 0 0 18px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.providers ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.providers li {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

/* Sections */

.section {
  padding: 96px 0;
}

.section.alt {
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  max-width: 680px;
  margin: 0 0 48px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-head h2 {
  margin: 0 0 14px;
  font-size: clamp(28px, 3.4vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

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

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

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

.card {
  position: relative;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition:
    border-color 0.2s,
    box-shadow 0.2s,
    transform 0.2s;
}

.card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card h3 {
  margin: 18px 0 8px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.card.wide {
  grid-column: span 2;
}

.icon-tile {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(180deg, var(--accent-soft), transparent 140%);
  border: 1px solid var(--border);
  color: var(--accent);
}

.icon-tile svg.icon {
  width: 22px;
  height: 22px;
}

/* Steps */

.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  counter-increment: step;
  padding: 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 18px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.steps h3 {
  margin: 0 0 8px;
  font-size: 17px;
}

.steps p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

/* Trust list */

.checks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 40px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.checks li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 16px;
}

.checks .icon-tile {
  grid-row: span 2;
}

.checks h3 {
  margin: 2px 0 0;
  font-size: 16px;
}

.checks p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

/* CTA */

.cta {
  padding: 80px 0;
  text-align: center;
}

.cta h2 {
  margin: 0 auto 14px;
  max-width: 760px;
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 800;
  color: #ffffff;
}

.cta p {
  margin: 0 auto;
  max-width: 520px;
  color: #c5cddb;
}

.cta .actions {
  justify-content: center;
}

/* Page header band (legal, support) */

.page-head {
  padding: 72px 0 64px;
}

.page-head h1 {
  margin: 0 0 12px;
  font-size: clamp(34px, 4.4vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 800;
  color: #ffffff;
}

.page-head p {
  margin: 0;
  max-width: 620px;
  color: #c5cddb;
  font-size: 17px;
}

.page-head .meta {
  display: inline-flex;
  margin-top: 20px;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid rgb(255 255 255 / 0.14);
  background: rgb(255 255 255 / 0.06);
  color: #c5cddb;
  font-size: 13px;
  font-weight: 500;
}

/* Early access form */

.signup {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
  padding-top: 56px;
  padding-bottom: 96px;
}

.form {
  display: grid;
  gap: 20px;
  padding: 32px;
}

.form:hover {
  transform: none;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.field {
  display: grid;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.field em {
  margin-left: 6px;
  color: var(--muted);
  font-style: normal;
  font-weight: 500;
}

.field input,
.field textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-weight: 500;
  font-size: 15px;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}

.field textarea {
  resize: vertical;
  min-height: 132px;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--muted);
  opacity: 0.8;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--ring);
}

/* Off-screen rather than display:none, which some bots skip. */
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form .button {
  justify-self: start;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.signup-aside h2 {
  margin: 4px 0 20px;
  font-size: 20px;
  letter-spacing: -0.01em;
}

.aside-note {
  color: var(--muted);
  font-size: 15px;
}

.mini-steps {
  counter-reset: step;
  display: grid;
  gap: 18px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.mini-steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 14px;
  color: var(--muted);
  font-size: 15px;
}

.mini-steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  font-size: 14px;
}

.mini-steps strong {
  display: block;
  color: var(--text);
}

.notice {
  padding: 120px 0 128px;
  text-align: center;
}

.notice .notice-text {
  margin: 0 auto;
}

.notice .actions {
  justify-content: center;
}

/* Document layout: sticky contents beside the article */

.doc {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 64px;
  padding-top: 56px;
  padding-bottom: 96px;
}

.toc {
  position: sticky;
  top: 96px;
  align-self: start;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  font-size: 14px;
}

.toc p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  border-left: 1px solid var(--border);
}

.toc a {
  display: block;
  margin-left: -1px;
  padding: 6px 0 6px 14px;
  border-left: 2px solid transparent;
  color: var(--muted);
  line-height: 1.4;
  text-decoration: none;
}

.toc a:hover {
  border-left-color: var(--accent);
  color: var(--text);
}

.prose {
  max-width: 740px;
  color: var(--text-2);
}

.prose > :first-child {
  margin-top: 0;
}

.prose h2 {
  margin: 56px 0 16px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  color: var(--text);
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: -0.015em;
  font-weight: 700;
}

.prose > h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.prose h3 {
  margin: 32px 0 10px;
  color: var(--text);
  font-size: 17px;
  font-weight: 700;
}

.prose strong {
  color: var(--text);
  font-weight: 600;
}

.prose ul,
.prose ol {
  padding-left: 22px;
}

.prose li + li {
  margin-top: 8px;
}

.prose li::marker {
  color: var(--accent);
}

.prose code {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.84em;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1px 6px;
  color: var(--text);
  overflow-wrap: anywhere;
}

.callout {
  margin: 24px 0;
  padding: 18px 22px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--text);
}

.callout p {
  margin: 0;
}

.table-scroll {
  margin: 16px 0 24px;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 12px 16px;
}

thead th {
  background: var(--surface-2);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

tr + tr td,
tr + tr th {
  border-top: 1px solid var(--border);
}

/* Support contact cards */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 8px 0 24px;
}

.contact-grid .card {
  padding: 22px;
}

.contact-grid .card h3 {
  margin: 14px 0 4px;
  font-size: 15px;
}

.contact-grid .card p {
  font-size: 14.5px;
}

.contact-grid a {
  font-weight: 600;
}

/* Footer */

.site-footer {
  background: var(--midnight-deep);
  color: #94a0b4;
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: 40px;
  padding-top: 56px;
  padding-bottom: 40px;
}

.site-footer .brand {
  color: #ffffff;
}

.site-footer .tagline {
  margin: 14px 0 0;
  color: var(--loop-light);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.site-footer address {
  margin-top: 18px;
  font-style: normal;
  line-height: 1.6;
}

.site-footer h2 {
  margin: 4px 0 14px;
  color: #eef1f5;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer li + li {
  margin-top: 10px;
}

.site-footer a {
  color: #c5cddb;
  text-decoration: none;
}

.site-footer a:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid rgb(255 255 255 / 0.08);
}

.footer-bottom .wrap {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 20px;
  padding-bottom: 24px;
  font-size: 13px;
}

/* Responsive */

@media (max-width: 960px) {
  .hero .wrap {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }

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

  .doc,
  .signup {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .toc {
    position: static;
    max-height: none;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-subtle);
  }

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

  .footer-grid > :first-child {
    grid-column: span 2;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 56px 0 64px;
  }

  .section {
    padding: 64px 0;
  }

  .grid,
  .grid.two,
  .grid.four,
  .steps,
  .checks,
  .contact-grid,
  .field-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .form {
    padding: 22px;
  }

  .card.wide {
    grid-column: auto;
  }

  .site-nav a:not(.button) {
    display: none;
  }

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

  .footer-grid > :first-child {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .card,
  .button {
    transition: none;
  }

  .card:hover {
    transform: none;
  }
}
