/* FastSpec website — one stylesheet for every page. */

@font-face {
  font-family: "Space Grotesk";
  src: url("/assets/fonts/SpaceGrotesk-Variable.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}

:root {
  --blue: #2563ff;
  --blue-dark: #1a4fd6;
  --blue-soft: #eef3ff;
  --blue-line: #cfdcff;
  --ink: #12151c;
  --text: #414859;
  --muted: #6b7385;
  --line: #e3e8f0;
  --bg: #ffffff;
  --bg-soft: #f6f8fb;
  --night: #0d1322;
  --night-2: #151d31;
  --night-line: #26304a;
  --night-text: #b8c2d9;
  --green: #12a150;
  --orange: #e2780b;
  --radius: 14px;
  --shadow: 0 1px 2px rgb(16 24 40 / 6%), 0 12px 32px -8px rgb(16 24 40 / 14%);
  --shadow-lg: 0 2px 4px rgb(16 24 40 / 5%), 0 32px 64px -16px rgb(37 99 255 / 28%);
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --container: 1160px;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

video.demo {
  width: 100%;
  background: #f5f7fa;
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1,
h2,
h3 {
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
}

p {
  margin: 0;
}

code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.1em 0.35em;
}

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

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ── Buttons ─────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 18px;
  border-radius: 10px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.15s;
}

.btn:hover {
  text-decoration: none;
}

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

.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 1px 2px rgb(16 24 40 / 10%), inset 0 1px 0 rgb(255 255 255 / 14%);
}

.btn-primary:hover {
  background: var(--blue-dark);
}

.btn-secondary {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
  box-shadow: 0 1px 2px rgb(16 24 40 / 6%);
}

.btn-secondary:hover {
  border-color: #c8d0dd;
  background: var(--bg-soft);
}

.btn-quiet {
  color: var(--ink);
  padding: 0 12px;
}

.btn-quiet:hover {
  background: var(--bg-soft);
}

.btn-lg {
  height: 50px;
  padding: 0 24px;
  font-size: 16px;
  border-radius: 12px;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}

/* ── Header ──────────────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(255 255 255 / 86%);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.site-header.scrolled {
  border-bottom-color: var(--line);
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 68px;
}

.brand {
  display: flex;
  flex: none;
}

.brand img {
  height: 30px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 4px;
  margin-right: auto;
}

.nav-links a {
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 8px;
}

.nav-links a:hover {
  color: var(--ink);
  background: var(--bg-soft);
  text-decoration: none;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.nav-links + .nav-cta {
  margin-left: 0;
}

/* ── Sections ────────────────────────────────────────────────────────── */

.section {
  padding: 112px 0;
}

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

.section-head {
  max-width: 720px;
  margin: 0 auto 64px;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.section-head h2,
.split h2 {
  font-size: clamp(32px, 4.2vw, 46px);
  margin-bottom: 18px;
}

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

/* ── Hero ────────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  padding: 80px 0 0;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 760px;
  background:
    radial-gradient(900px 420px at 50% -80px, rgb(37 99 255 / 14%), transparent 70%),
    linear-gradient(to bottom, transparent 55%, #fff),
    repeating-linear-gradient(90deg, rgb(37 99 255 / 5%) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(0deg, rgb(37 99 255 / 5%) 0 1px, transparent 1px 64px);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse at 50% 0, #000 30%, transparent 75%);
  pointer-events: none;
}

.hero > .container {
  position: relative;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 6px;
  border: 1px solid var(--blue-line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 1px 2px rgb(16 24 40 / 5%);
}

.pill:hover {
  text-decoration: none;
  border-color: var(--blue);
}

.pill-tag {
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 700;
  font-size: 12px;
  padding: 3px 9px;
  border-radius: 999px;
}

.pill-arrow {
  color: var(--muted);
}

.hero h1 {
  max-width: 900px;
  margin: 28px auto 24px;
  font-size: clamp(40px, 6.4vw, 72px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.04;
}

.hero h1 .accent {
  color: var(--blue);
}

.lead {
  max-width: 680px;
  margin: 0 auto;
  font-size: 20px;
  color: var(--text);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 36px;
}

.hero-note {
  margin-top: 18px;
  font-size: 14px;
  color: var(--muted);
}

.hero-shot {
  margin: 64px auto 0;
  max-width: 1120px;
}

/* ── Browser frame around screenshots ────────────────────────────────── */

.frame {
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.frame-lg {
  box-shadow: var(--shadow-lg);
}

.frame-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 38px;
  padding: 0 14px;
  background: #f3f5f9;
  border-bottom: 1px solid var(--line);
}

.frame-dots {
  display: flex;
  gap: 6px;
  flex: none;
}

.frame-dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d5dbe5;
}

.frame-url {
  flex: 1;
  max-width: 420px;
  margin: 0 auto;
  padding: 3px 12px;
  border-radius: 6px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.frame-bar::after {
  content: "";
  width: 42px;
  flex: none;
}

/* ── Standards strip ─────────────────────────────────────────────────── */

.standards {
  padding: 56px 0 0;
  text-align: center;
}

.standards p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 18px;
}

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

.standards li {
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  background: #fff;
}

/* ── Steps ───────────────────────────────────────────────────────────── */

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

.steps li {
  position: relative;
  padding: 32px 28px 30px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 20px;
  border-radius: 10px;
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 700;
}

.steps h3 {
  font-size: 21px;
  margin-bottom: 10px;
}

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

/* ── Feature rows ────────────────────────────────────────────────────── */

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

.feature + .feature {
  margin-top: 128px;
}

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

.feature.reverse .feature-text {
  order: 2;
}

.feature-text h3 {
  font-size: clamp(28px, 3.2vw, 36px);
  margin-bottom: 18px;
}

.feature-text > p {
  font-size: 18px;
}

.checks {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.checks li {
  position: relative;
  padding-left: 32px;
  color: var(--ink);
  font-size: 16px;
}

.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--blue-soft)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%232563ff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 10.5l2.6 2.6L14 7.5'/%3E%3C/svg%3E")
    center / 20px no-repeat;
}

.night .checks li {
  color: #fff;
}

.night .checks li::before {
  background-color: rgb(37 99 255 / 22%);
}

/* Lint: results with the ruleset dialog floating over them. */
.stack {
  position: relative;
  padding-bottom: 210px;
}

.stack .stack-top {
  position: absolute;
  right: -24px;
  bottom: 0;
  width: 50%;
  border-radius: 12px;
  box-shadow: 0 2px 4px rgb(16 24 40 / 6%), 0 24px 48px -12px rgb(16 24 40 / 30%);
  border: 1px solid var(--line);
}

/* ── MCP (dark band) ─────────────────────────────────────────────────── */

.night {
  background:
    radial-gradient(800px 400px at 85% 0, rgb(37 99 255 / 22%), transparent 70%),
    var(--night);
  color: var(--night-text);
}

.night h2,
.night h3 {
  color: #fff;
}

.night .eyebrow {
  color: #7ea2ff;
}

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

.split-text > p {
  font-size: 18px;
}

.split-text > p + p {
  margin-top: 16px;
}

.terminal {
  position: relative;
  border-radius: var(--radius);
  background: #0a0f1c;
  border: 1px solid var(--night-line);
  box-shadow: 0 24px 64px -24px rgb(0 0 0 / 60%);
  overflow: hidden;
}

.terminal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 40px;
  padding: 0 8px 0 16px;
  border-bottom: 1px solid var(--night-line);
  color: #7d88a6;
  font-size: 13px;
}

.terminal pre {
  margin: 0;
  padding: 20px 20px 22px;
  overflow-x: auto;
  color: #e6ebf7;
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.7;
}

.terminal .prompt {
  color: #5b6684;
  user-select: none;
}

.terminal .str {
  color: #8fd18f;
}

.terminal .flag {
  color: #8fb1ff;
}

.terminal-light {
  background: var(--night);
  border-color: var(--night);
}

.copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 10px;
  border: 1px solid var(--night-line);
  border-radius: 7px;
  background: transparent;
  color: #aab4cf;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.copy:hover {
  color: #fff;
  border-color: #3a4666;
}

.copy svg {
  width: 14px;
  height: 14px;
}

.tools {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 24px;
}

.tool {
  padding: 16px 18px;
  border: 1px solid var(--night-line);
  border-radius: 12px;
  background: var(--night-2);
}

.tool code {
  display: block;
  margin-bottom: 4px;
  padding: 0;
  border: 0;
  background: none;
  color: #fff;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.tool span {
  font-size: 14px;
  color: #93a0bf;
}

.night .note {
  margin-top: 20px;
  font-size: 15px;
  color: #93a0bf;
}

.night a {
  color: #8fb1ff;
}

.demo-agent {
  max-width: 1040px;
  margin: 80px auto 0;
}

.demo-agent .frame {
  border-color: var(--night-line);
  box-shadow: 0 24px 64px -24px rgb(0 0 0 / 60%);
}

.demo-agent figcaption {
  margin-top: 16px;
  font-size: 15px;
  color: #93a0bf;
  text-align: center;
}

/* ── Self-host ───────────────────────────────────────────────────────── */

.terminal-caption {
  margin-top: 14px;
  font-size: 15px;
  color: var(--muted);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 28px;
  font-weight: 600;
}

/* ── Plans ───────────────────────────────────────────────────────────── */

.plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 920px;
  margin: 0 auto;
}

.plan {
  display: flex;
  flex-direction: column;
  padding: 36px 34px 34px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.plan-featured {
  border-color: var(--blue);
  box-shadow: 0 0 0 1px var(--blue), var(--shadow-lg);
}

.plan h3 {
  font-size: 22px;
}

.plan-price {
  margin: 14px 0 6px;
  color: var(--ink);
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

.plan-price small {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--muted);
}

.plan > p {
  color: var(--muted);
  font-size: 16px;
}

.plan .checks {
  margin: 26px 0 32px;
}

.plan .btn {
  margin-top: auto;
}

/* ── Closing call to action ──────────────────────────────────────────── */

.closing {
  padding: 112px 0;
}

.split-center {
  align-items: center;
}

.closing-card {
  position: relative;
  overflow: hidden;
  padding: 72px 32px;
  border-radius: 24px;
  background:
    radial-gradient(600px 300px at 15% 0, rgb(255 255 255 / 18%), transparent 70%),
    radial-gradient(500px 300px at 100% 100%, rgb(9 30 120 / 45%), transparent 70%),
    var(--blue);
  text-align: center;
  color: #dfe8ff;
}

.closing-card h2 {
  max-width: 760px;
  margin: 0 auto 16px;
  color: #fff;
  font-size: clamp(30px, 4vw, 44px);
}

.closing-card p {
  font-size: 18px;
}

.closing-card .btn-primary {
  background: #fff;
  color: var(--blue);
}

.closing-card .btn-primary:hover {
  background: var(--blue-soft);
}

.closing-card .btn-secondary {
  background: transparent;
  color: #fff;
  border-color: rgb(255 255 255 / 45%);
  box-shadow: none;
}

.closing-card .btn-secondary:hover {
  background: rgb(255 255 255 / 10%);
}

/* ── Footer ──────────────────────────────────────────────────────────── */

.site-footer {
  padding: 56px 0 40px;
  border-top: 1px solid var(--line);
  font-size: 15px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
}

.footer-about img {
  height: 28px;
  width: auto;
  margin-bottom: 14px;
}

.footer-about p {
  max-width: 300px;
  color: var(--muted);
}

.site-footer h4 {
  margin: 4px 0 14px;
  color: var(--ink);
  font-size: 14px;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.site-footer ul a {
  color: var(--text);
}

.site-footer ul a:hover {
  color: var(--blue);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

/* ── Simple pages (sign in, contact) ─────────────────────────────────── */

.page-center {
  min-height: calc(100vh - 68px - 230px);
  display: grid;
  place-items: center;
  padding: 72px 0 96px;
  background:
    radial-gradient(700px 360px at 50% 0, rgb(37 99 255 / 10%), transparent 70%);
}

.card {
  width: 100%;
  max-width: 440px;
  padding: 40px 36px 34px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.card-wide {
  max-width: 980px;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  overflow: hidden;
}

.card h1 {
  font-size: 30px;
  margin-bottom: 10px;
}

.card .sub {
  color: var(--muted);
  font-size: 16px;
}

.signin-icon {
  width: 52px;
  height: 52px;
  margin-bottom: 24px;
}

.btn-google {
  width: 100%;
  height: 50px;
  margin-top: 28px;
  background: #fff;
  color: var(--ink);
  border-color: #cfd6e2;
  font-size: 16px;
}

.btn-google:hover {
  background: var(--bg-soft);
  border-color: #b9c2d2;
}

.fine {
  margin-top: 20px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.card-foot {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}

.contact-side {
  padding: 44px 40px;
  background: var(--bg-soft);
  border-right: 1px solid var(--line);
}

.contact-side h1 {
  font-size: 34px;
}

.contact-ways {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: grid;
  gap: 22px;
}

.contact-ways strong {
  display: block;
  color: var(--ink);
  font-size: 16px;
}

.contact-ways span {
  font-size: 15px;
  color: var(--muted);
}

.contact-form {
  padding: 44px 40px;
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.field label {
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}

.field input,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #cfd6e2;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}

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

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgb(37 99 255 / 18%);
}

.contact-form .btn {
  width: 100%;
  height: 50px;
}

/* ── Legal pages ─────────────────────────────────────────────────────── */

.legal {
  padding: 64px 0 112px;
}

.legal-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}

.legal-nav {
  position: sticky;
  top: 92px;
  font-size: 14px;
}

.legal-nav h4 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.legal-nav ul {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: grid;
  gap: 4px;
}

.legal-nav a {
  display: block;
  padding: 6px 10px;
  border-radius: 8px;
  color: var(--text);
}

.legal-nav a:hover {
  background: var(--bg-soft);
  text-decoration: none;
}

.legal-nav a[aria-current="page"] {
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 600;
}

.prose {
  max-width: 760px;
  font-size: 16px;
  line-height: 1.7;
}

.prose h1 {
  font-size: clamp(34px, 4.5vw, 46px);
  margin-bottom: 10px;
}

.prose .updated {
  color: var(--muted);
  margin-bottom: 36px;
}

.prose h2 {
  font-size: 22px;
  margin: 48px 0 14px;
  scroll-margin-top: 92px;
}

.prose h3 {
  font-size: 18px;
  margin: 28px 0 10px;
}

.prose p {
  margin: 0 0 14px;
}

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

.prose li {
  margin-bottom: 8px;
}

.prose strong {
  color: var(--ink);
}

.prose .summary {
  margin: 28px 0 8px;
  padding: 22px 26px;
  border-radius: var(--radius);
  background: var(--bg-soft);
  border: 1px solid var(--line);
}

.prose .summary h2 {
  margin-top: 0;
}

.prose .summary ul {
  margin-bottom: 0;
}

.prose .toc {
  columns: 2;
  column-gap: 32px;
  list-style: none;
  padding: 0;
  font-size: 15px;
}

.prose .toc li {
  break-inside: avoid;
}

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

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

.prose th {
  color: var(--ink);
  background: var(--bg-soft);
}

.prose td code {
  overflow-wrap: anywhere;
}

/* ── Responsive ──────────────────────────────────────────────────────── */

@media (max-width: 980px) {
  .nav-links {
    display: none;
  }

  .feature,
  .feature.reverse,
  .split {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  .feature.reverse .feature-text {
    order: 0;
  }

  .feature + .feature {
    margin-top: 96px;
  }

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

  .stack .stack-top {
    right: 12px;
  }

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

  .footer-about {
    grid-column: 1 / -1;
  }

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

  .legal-nav {
    position: static;
  }

  .legal-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }

  .legal-nav h4 {
    display: none;
  }

  .card-wide {
    grid-template-columns: 1fr;
  }

  .contact-side {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

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

  .container {
    padding: 0 16px;
  }

  .nav {
    gap: 12px;
  }

  .brand img {
    height: 26px;
  }

  .nav-cta .hide-sm {
    display: none;
  }

  .section,
  .closing {
    padding: 80px 0;
  }

  .hero {
    padding-top: 48px;
  }

  .lead {
    font-size: 18px;
  }

  .cta-row .btn {
    width: 100%;
  }

  .hero-shot {
    margin-top: 44px;
  }

  .frame-bar {
    height: 30px;
  }

  .frame-url {
    display: none;
  }

  .stack {
    padding-bottom: 0;
  }

  .stack .stack-top {
    position: static;
    width: 100%;
    margin-top: 16px;
  }

  .tools,
  .plans {
    grid-template-columns: 1fr;
  }

  .terminal pre {
    font-size: 12.5px;
  }

  .plan {
    padding: 30px 24px 26px;
  }

  .closing-card {
    padding: 56px 20px;
    border-radius: 18px;
  }

  .card {
    padding: 32px 22px 28px;
    border-radius: 16px;
  }

  .card-wide {
    padding: 0;
  }

  .contact-side,
  .contact-form {
    padding: 32px 22px;
  }

  .prose .toc {
    columns: 1;
  }

  .prose table {
    display: block;
    overflow-x: auto;
    font-size: 14px;
  }

  .prose th,
  .prose td {
    padding: 8px;
  }

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

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

  * {
    transition: none !important;
  }
}
