@font-face {
  font-family: "Inter Tight";
  src: url("./assets/fonts/inter-tight-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --page: #f8f8f4;
  --white: #fff;
  --ink: #151924;
  --muted: #51596a;
  --line: #dcded8;
  --soft-line: #e6e9ef;
  --accent: #2642dc;
  --accent-hover: #1c32b6;
  --accent-wash: #eef1ff;
  --paper-blue: #e9effe;
  --night: #171e34;
  --night-muted: #bfc8df;
  --pass: #175a47;
  --pass-bg: #edf8f2;
  --pass-line: #cfe5d8;
  --fail: #96382c;
  --fail-bg: #fcf0ec;
  --fail-line: #efdad1;
  --display: "Inter Tight", "Segoe UI", system-ui, sans-serif;
  --body: "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  --ease: cubic-bezier(.2, .75, .25, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 16px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}

::selection { background: #dce4ff; color: var(--ink); }
[hidden] { display: none !important; }
[id] { scroll-margin-top: 5.5rem; }
img, svg { display: block; }
svg { width: 1em; height: 1em; flex-shrink: 0; }
button, input { font: inherit; }
button { cursor: pointer; }

a { color: var(--accent); text-underline-offset: .22em; }
a:hover { color: var(--accent-hover); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 650;
  line-height: 1.04;
}

p { text-wrap: pretty; }

h2 {
  font-size: clamp(2.7rem, 4.6vw, 4.5rem);
  letter-spacing: -.04em;
}

h3 { letter-spacing: -.03em; }

code {
  font: .9em var(--mono);
  padding: .1em .3em;
  background: var(--accent-wash);
  border-radius: 3px;
  overflow-wrap: anywhere;
}

.shell { width: min(1240px, calc(100% - 104px)); margin-inline: auto; }

.sr-only, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link:focus {
  position: fixed;
  z-index: 3;
  top: 12px;
  left: 12px;
  padding: 9px 16px;
  color: var(--white);
  background: var(--accent);
  border-radius: 5px;
}

/* Site navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--page);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  min-height: 70px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  column-gap: 24px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 8px;
  width: fit-content;
  min-height: 44px;
  color: var(--ink);
  font: 700 1.44rem/1 var(--display);
  letter-spacing: -.025em;
  text-decoration: none;
  white-space: nowrap;
}

.wordmark img { flex: none; }

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.8rem);
}

.site-nav a, .header-support {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  color: var(--muted);
  text-decoration: none;
  font-size: .875rem;
  font-weight: 600;
  transition: color 160ms var(--ease), background-color 160ms var(--ease), border-color 160ms var(--ease);
}

.site-nav a:hover, .site-nav a[aria-current], .header-support[aria-current] { color: var(--accent); }

.header-support {
  justify-self: end;
  padding-inline: 13px;
  border: 1px solid var(--line);
  border-radius: 6px;
  min-height: 38px;
  color: var(--ink);
}

.header-support:hover { background: var(--white); border-color: #c5cddf; }
.header-support svg { width: 13px; height: 13px; }

.button, .demo-button, .text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: .9375rem;
  font-weight: 650;
  line-height: 1.25;
  text-decoration: none;
  transition: background-color 160ms var(--ease), border-color 160ms var(--ease), color 160ms var(--ease), transform 160ms var(--ease);
}

.button:active, .demo-button:active { transform: translateY(1px); }
.button svg, .text-link svg { transition: transform 160ms var(--ease); }
.button:hover svg, .text-link:hover svg { transform: translateX(2px); }
.button-quiet:hover svg { transform: translateY(2px); }

.button-primary, .demo-button.demo-button-primary {
  color: var(--white);
  background: var(--accent);
  border-color: var(--accent);
}

.button-primary:hover, .demo-button.demo-button-primary:hover {
  color: var(--white);
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.button-quiet {
  color: var(--ink);
  border-color: var(--line);
}

.button-quiet:hover { background: var(--white); border-color: #c5cddf; }
.text-link { min-height: 44px; padding: 0; justify-content: start; }

/* ReadyGate */
.hero {
  display: grid;
  grid-template-columns: minmax(0, .93fr) minmax(0, 1.07fr);
  gap: clamp(32px, 4.15vw, 60px);
  align-items: center;
  padding-block: clamp(64px, 6.6vw, 95px) clamp(64px, 5.4vw, 78px);
}

.hero h1 {
  font-size: clamp(3.15rem, 5.75vw, 5.25rem);
  line-height: .98;
  letter-spacing: -.04em;
}

.hero h1 span { color: var(--accent); }

.hero-lead {
  max-width: 50ch;
  margin-top: 25px;
  color: var(--muted);
  font-size: clamp(1.0625rem, 1.37vw, 1.22rem);
  line-height: 1.56;
}

.hero-lead strong { color: var(--ink); font-weight: 650; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.hero-note { margin-top: 16px; color: var(--muted); font-size: .875rem; }

.demo-stage {
  min-width: 0;
  padding: 16px 24px 14px;
  background: var(--paper-blue) url("./assets/demo-rails.svg") center / 100% 100% no-repeat;
  border: 1px solid #cdd8ef;
  border-radius: 14px;
}

.demo-stage-head, .demo-stage-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #4a5777;
}

.demo-stage-head { min-height: 26px; margin-bottom: 13px; }
.demo-stage-foot { min-height: 24px; margin-top: 11px; font-size: .75rem; }

.demo-stage-head h2 {
  display: flex;
  align-items: center;
  gap: 7px;
  font: 650 .9375rem/1.2 var(--body);
  letter-spacing: -.01em;
  color: var(--ink);
}

.demo-stage-head h2 svg { width: 19px; height: 19px; color: var(--accent); }
.demo-indicator { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; font-size: .75rem; font-weight: 600; }

.demo-indicator::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.demo-stage-foot a {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  gap: 6px;
  color: #314e99;
  font-weight: 650;
  text-decoration: none;
}

.demo-stage-foot a:hover { text-decoration: underline; }
.demo-stage-foot a svg { width: 13px; height: 13px; }

.demo-console {
  background: var(--white);
  border: 1px solid #c9d2e6;
  border-radius: 10px;
  box-shadow: 0 4px 12px #223e7512;
}

.ticket-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  min-height: 85px;
  padding: 16px 19px 13px;
}

.ticket-key {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #4b5880;
  font: 600 .75rem/1.1 var(--mono);
}

.ticket-key svg { width: 14px; height: 14px; color: var(--accent); }
.ticket-title { margin-top: 4px; font: 650 clamp(1.15rem, 1.8vw, 1.52rem)/1.12 var(--display); letter-spacing: -.02em; }

.issue-state {
  flex: none;
  align-self: center;
  padding: 4px 7px;
  background: #f1f3f7;
  border: 1px solid #e5e8ef;
  border-radius: 4px;
  color: #48536b;
  font-size: .6875rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

.issue-state[data-progress] { background: var(--accent-wash); color: var(--accent-hover); border-color: #d9e0ff; }

.demo-tabs {
  display: flex;
  gap: clamp(12px, 2vw, 24px);
  padding-inline: 19px;
  border-bottom: 1px solid var(--soft-line);
}

.demo-tabs button {
  position: relative;
  padding: 0 1px;
  min-height: 43px;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: .8125rem;
  font-weight: 650;
  white-space: nowrap;
  text-align: left;
}

.demo-tabs button:hover, .demo-tabs button[aria-selected="true"] { color: var(--accent); }

.demo-tabs button[aria-selected="true"]::after {
  content: "";
  position: absolute;
  inset: auto 0 -1px;
  height: 2px;
  background: currentColor;
}

.demo-tabs button:focus-visible, .demo-pane:focus-visible { outline-offset: -2px; }

.demo-pane {
  display: flex;
  flex-direction: column;
  min-height: 250px;
  padding: 15px 19px;
  animation: show-pane 170ms var(--ease) both;
}

@keyframes show-pane {
  from { opacity: .6; transform: translateY(3px); }
  to { opacity: 1; transform: translateY(0); }
}

.gate-result {
  --result-ink: var(--fail);
  --result-bg: var(--fail-bg);
  --result-line: var(--fail-line);
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 7px 10px;
  border: 1px solid var(--result-line);
  border-radius: 6px;
  background: var(--result-bg);
  color: var(--result-ink);
  transition: color 180ms var(--ease), border-color 180ms var(--ease), background-color 180ms var(--ease);
}

.gate-result[data-gate-state="passed"] {
  --result-ink: var(--pass);
  --result-bg: var(--pass-bg);
  --result-line: var(--pass-line);
}

.gate-icon {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  flex: none;
  border: 1px solid var(--result-line);
  border-radius: 5px;
  background: var(--white);
}

.gate-icon svg { width: 17px; height: 17px; }
.gate-message { display: grid; gap: 1px; line-height: 1.25; }
.gate-message strong { font-size: .875rem; font-weight: 700; }
.gate-message span { font-size: .75rem; }

.gate-count {
  margin-left: auto;
  font: 600 .6875rem/1.3 var(--mono);
  text-align: right;
}

.demo-checks { margin: 6px 0 11px; padding: 0; list-style: none; }

.demo-checks li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-height: 34px;
  border-bottom: 1px solid var(--soft-line);
  font-size: .8125rem;
  font-weight: 600;
}

.check-pass, .check-fail {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--pass);
  font-size: .75rem;
  font-weight: 600;
}

.check-fail { color: var(--fail); }
.check-pass svg, .check-fail svg { width: 14px; height: 14px; }

#pane-readiness:not([data-ready]) .when-passed,
#pane-readiness[data-ready] .when-blocked { display: none; }

.demo-actions, .board-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.transition-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: .75rem;
  font-weight: 600;
}

.demo-button {
  gap: 6px;
  min-height: 38px;
  max-width: 100%;
  padding: 6px 10px;
  background: var(--white);
  border-color: #d8deeb;
  color: #283653;
  font-size: .8125rem;
}

.demo-button svg { width: 15px; height: 15px; }
.demo-button:hover { background: var(--accent-wash); border-color: #bac7ec; }
.demo-button[aria-disabled="true"] { color: var(--muted); background: #f3f4f7; cursor: wait; }

.dedup-scope, .candidate-top, .scan-candidate {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.dedup-scope { padding-bottom: 10px; font-size: .8125rem; }
.dedup-scope > span:first-child { display: flex; align-items: center; gap: 6px; }
.dedup-scope svg { width: 16px; height: 16px; color: var(--accent); }
.demo-muted { color: var(--muted); font-size: .75rem; }

.dedup-candidate {
  margin-bottom: 13px;
  padding: 12px;
  border: 1px solid #dbe2f3;
  border-radius: 6px;
  background: #f8faff;
}

.dedup-candidate p, .scan-candidate p { margin-top: 5px; font-size: .875rem; font-weight: 600; line-height: 1.35; }
.match-score { flex: none; color: var(--accent-hover); font-weight: 700; font-size: .8125rem; font-variant-numeric: tabular-nums; }
.match-track { height: 4px; margin-top: 12px; border-radius: 2px; background: #dce4fd; overflow: hidden; }
.match-track span { display: block; width: 92%; height: 100%; background: var(--accent); transition: width 260ms var(--ease); }
.dedup-candidate[aria-busy="true"] .match-track span { width: 0; }

.merge-mapping {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18px minmax(0, 1fr);
  align-items: stretch;
  gap: 9px;
}

.merge-ticket {
  display: grid;
  align-content: start;
  gap: 3px;
  min-width: 0;
  min-height: 95px;
  padding: 8px 10px;
  border: 1px solid #e0e5ef;
  border-radius: 6px;
  background: var(--white);
}

.merge-ticket-primary { border-color: #d3dcfa; background: #f3f6ff; }
.merge-arrow { align-self: center; width: 18px; height: 18px; color: var(--accent); }
.merge-label { color: var(--muted); font-size: .6875rem; font-weight: 650; }
.merge-ticket strong { font: 700 .8125rem/1.2 var(--mono); }
.merge-title { font-size: .75rem; line-height: 1.3; }
.demo-pane [data-merge-preview], .merge-example, .merge-success {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.merge-example .demo-actions, .merge-success .demo-actions { padding-top: 11px; }
.merge-note { margin-top: 10px; color: var(--muted); font-size: .75rem; line-height: 1.45; }

/* Product proof and workflow */
.proof-strip { border-block: 1px solid var(--line); }
.proof-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 0; list-style: none; }
.proof-list li + li { border-left: 1px solid var(--line); }

.proof-list a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 71px;
  padding: 10px 8px;
  color: var(--ink);
  font-size: .875rem;
  font-weight: 650;
  text-decoration: none;
  transition: color 160ms var(--ease), background-color 160ms var(--ease);
}

.proof-list a:hover { color: var(--accent); background: var(--white); }
.proof-list a:focus-visible { outline-offset: -3px; }
.proof-list svg { width: 20px; height: 20px; color: var(--accent); }
.proof-list .proof-arrow { width: 12px; height: 12px; color: #58678a; }

.workflow { padding-block: 106px 102px; }

.section-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  align-items: end;
  gap: 36px;
  margin-bottom: 49px;
}

.section-intro p, .pricing p, .roadmap-inner > div > p {
  max-width: 38ch;
  color: var(--muted);
  font-size: 1.0625rem;
}

.section-intro p { justify-self: end; padding-bottom: 4px; }

.feature-row {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(26px, 5vw, 72px);
  padding-block: 29px;
  border-top: 1px solid var(--line);
}

.feature-row:last-child { border-bottom: 1px solid var(--line); }
.feature-copy { display: grid; grid-template-columns: 28px 1fr; align-items: start; gap: 10px 12px; }
.feature-sign { grid-row: span 2; margin-top: 4px; color: var(--accent); }
.feature-sign svg { width: 24px; height: 24px; }

.feature-copy h3 {
  max-width: 23ch;
  font-size: clamp(1.56rem, 2.6vw, 2.2rem);
}

.feature-copy p { max-width: 48ch; color: var(--muted); line-height: 1.55; }

.feature-board {
  min-width: 0;
  padding: 12px 14px 10px;
  border: 1px solid #dbe1ed;
  border-radius: 9px;
  background: #f2f5fc;
}

.board-head, .rule-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.board-head { margin-bottom: 9px; font-size: .8125rem; }
.board-head > span, .board-actions > span { color: var(--muted); font-size: .75rem; }

.rule-flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 14px minmax(0, 1.12fr) 14px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 57px;
  padding: 8px;
  border: 1px solid #e1e7f2;
  border-radius: 6px;
  background: var(--white);
  font-size: .8125rem;
  font-weight: 650;
}

.rule-flow > svg { width: 14px; height: 14px; color: #4d5d88; }
.flow-step, .flow-gate { text-align: center; line-height: 1.25; }
.flow-gate { display: inline-flex; align-items: center; justify-content: center; gap: 4px; color: var(--accent); }
.flow-gate svg { width: 16px; height: 16px; }

.rule-flow > :last-child {
  padding: 5px 2px;
  border: 1px solid transparent;
  border-radius: 4px;
  transition: background-color 160ms var(--ease), border-color 160ms var(--ease), color 160ms var(--ease);
}

.gate-board:has([data-rule-state="passed"]) .rule-flow > :last-child {
  color: var(--pass);
  background: var(--pass-bg);
  border-color: var(--pass-line);
}

.rule-control { min-height: 39px; margin-top: 4px; }
.rule-control label { display: flex; align-items: center; gap: 7px; min-height: 39px; color: #37415b; font-size: .8125rem; font-weight: 600; cursor: pointer; }
.rule-control input { flex: none; width: 16px; height: 16px; margin: 0; accent-color: var(--accent); cursor: pointer; }

.mini-state {
  flex: none;
  padding: 2px 7px;
  border: 1px solid var(--fail-line);
  border-radius: 4px;
  background: var(--fail-bg);
  color: var(--fail);
  font-size: .75rem;
  font-weight: 650;
}

.mini-state[data-rule-state="passed"] { border-color: var(--pass-line); background: var(--pass-bg); color: var(--pass); }
.scan-candidate { padding: 9px 11px; background: var(--white); border: 1px solid #e1e7f2; border-radius: 6px; }

.scan-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 39px;
  margin-top: 4px;
  color: var(--accent-hover);
  font-size: .8125rem;
  font-weight: 650;
  cursor: pointer;
  list-style: none;
}
.scan-details summary::-webkit-details-marker { display: none; }
.scan-details summary:hover { text-decoration: underline; text-underline-offset: .22em; }
.scan-details summary svg { transition: transform 160ms var(--ease); }
.scan-details[open] summary svg { transform: rotate(180deg); }
.scan-details p { padding-bottom: 8px; color: var(--muted); font-size: .8125rem; }
.merge-board .merge-ticket { min-height: 72px; }
.board-actions { justify-content: end; margin-top: 8px; }

/* Trust, pricing and roadmap */
.trust-band { background: var(--night); color: var(--white); }

.trust-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
  gap: clamp(32px, 6vw, 86px);
  align-items: center;
  padding-block: 81px;
}

.trust-inner h2 { max-width: 12ch; }
.trust-inner p { max-width: 48ch; margin-top: 15px; color: var(--night-muted); font-size: 1.0625rem; }

.button-light {
  margin-top: 23px;
  border-color: #657395;
  color: var(--white);
}

.button-light:hover { border-color: #a7b9e7; background: #2a3759; color: var(--white); }
.trust-band :focus-visible { outline-color: #bac9ff; }

.trust-map {
  padding: 12px;
  border: 1px solid #46526f;
  background: #1f2943;
  border-radius: 10px;
}

.trust-map-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px 13px;
  color: #e5ebfc;
  font-size: .875rem;
}

.trust-map-head svg { width: 17px; height: 17px; color: #aebdff; }
.trust-map dl { border: 1px solid #46526f; border-radius: 5px; }
.trust-map dl > div { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 13px 12px; }
.trust-map dl > div + div { border-top: 1px solid #46526f; }
.trust-map dt { color: var(--night-muted); }
.trust-map dd { color: #f1f4ff; text-align: right; font-weight: 650; }

.pricing {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .9fr);
  gap: 32px;
  align-items: center;
  padding-block: 81px 88px;
}

.pricing p, .roadmap-inner > div > p { margin-top: 15px; }
.pricing .text-link { margin-top: 9px; }

.pricing-offer {
  display: grid;
  justify-items: start;
  gap: 8px;
  padding: 22px 0 24px clamp(25px, 5vw, 72px);
  border-left: 1px solid var(--line);
}

.pricing-offer strong { color: var(--accent); font: 650 clamp(4rem, 7vw, 6rem)/.98 var(--display); letter-spacing: -.04em; }
.pricing-offer span { color: var(--ink); font-weight: 600; }

.roadmap { border-top: 1px solid var(--line); background: #eff0eb; }

.roadmap-inner {
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
  align-items: start;
  gap: 38px;
  padding-block: 58px;
}

.roadmap h2 { font-size: clamp(2.4rem, 3.8vw, 3.5rem); }
.roadmap-list { padding: 0; border-top: 1px solid #d5d8d2; list-style: none; }

.roadmap-list li {
  display: grid;
  grid-template-columns: 21px minmax(0, 1fr) auto;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid #d5d8d2;
}

.roadmap-list li svg { width: 19px; height: 19px; margin-top: 2px; color: var(--accent); }
.roadmap-list h3 { font-size: 1.25rem; line-height: 1.15; }
.roadmap-list p { margin-top: 5px; color: var(--muted); font-size: .9375rem; line-height: 1.45; }
.roadmap-list li > span { align-self: start; color: var(--muted); font-size: .75rem; font-weight: 650; }

/* Reading pages */
.doc-hero { border-bottom: 1px solid var(--line); }
.doc-hero .shell { padding-block: 63px 52px; }

.doc-hero h1 {
  max-width: 18ch;
  font-size: clamp(3rem, 6vw, 5.3rem);
  letter-spacing: -.04em;
  line-height: 1;
  text-wrap: balance;
}

.doc-hero p {
  max-width: 54ch;
  margin-top: 16px;
  color: var(--muted);
  font-size: 1.18rem;
}

.doc-hero .doc-date { margin-top: 19px; font-size: .875rem; font-weight: 600; }

.doc-layout {
  display: grid;
  grid-template-columns: minmax(156px, .27fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 87px);
  align-items: start;
  padding-block: 44px 92px;
}

.doc-toc { position: sticky; top: 97px; border-top: 1px solid var(--line); padding-top: 12px; }
.doc-toc p { margin-bottom: 6px; color: var(--ink); font-size: .875rem; font-weight: 700; }
.doc-toc ul { padding: 0; list-style: none; }

.doc-toc a {
  display: inline-flex;
  align-items: center;
  min-height: 37px;
  color: var(--muted);
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.22;
  text-decoration: none;
}

.doc-toc a:hover { color: var(--accent); text-decoration: underline; }
.doc-article { max-width: 720px; min-width: 0; line-height: 1.64; }
.doc-article h2 { margin-bottom: 10px; font-size: clamp(1.7rem, 3vw, 2.35rem); letter-spacing: -.035em; text-wrap: balance; }
.doc-article h3 { margin-bottom: 7px; font-size: 1.25rem; }
.doc-article p, .doc-article li, .doc-article dd { color: var(--muted); overflow-wrap: anywhere; }
.doc-article strong { color: var(--ink); font-weight: 650; }
.doc-article section + section { border-top: 1px solid var(--line); margin-top: 28px; padding-top: 28px; }
.doc-article p + p, .doc-article p + ul, .doc-article p + ol, .doc-article li + li { margin-top: 10px; }
.doc-article ul, .doc-article ol { padding-left: 22px; }
.doc-article li::marker { color: var(--accent); font-weight: 600; }

.doc-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 15px 17px;
}

.doc-panel > div { display: grid; grid-template-columns: minmax(0, .62fr) minmax(0, 1fr); gap: 12px; padding: 9px 0; }
.doc-panel > div + div { border-top: 1px solid var(--soft-line); }
.doc-panel dt { font-weight: 650; }
.doc-article .doc-panel { margin-top: 14px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { display: flex; justify-content: space-between; align-items: start; flex-wrap: wrap; gap: 14px 30px; padding-block: 34px 26px; }
.footer-identity p { color: var(--muted); font-size: .875rem; }
.footer-nav { display: flex; flex-wrap: wrap; align-self: center; gap: 0 22px; }
.footer-nav a { color: var(--ink); font-weight: 600; }
.footer-nav a, .footer-base a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.footer-nav a:hover, .footer-nav a[aria-current], .footer-base a:hover { color: var(--accent); }

.footer-base {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0 14px;
  min-height: 58px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .875rem;
}

.footer-base a { color: var(--muted); }

@media (max-width: 1050px) {
  .shell { width: calc(100% - 72px); }
  .demo-stage { padding-inline: 15px; }
  .demo-tabs, .ticket-head, .demo-pane { padding-inline: 14px; }
}

@media (max-width: 870px) {
  .hero { grid-template-columns: 1fr; gap: 35px; padding-block: 55px; }
  .hero h1 { font-size: clamp(3.3rem, 8.7vw, 4.75rem); }
  .hero-lead { max-width: 48ch; }
  .demo-stage { width: 100%; max-width: 640px; }
  .workflow { padding-block: 76px; }
  .proof-list a { gap: 6px; }
  .feature-copy { grid-template-columns: 1fr; }
  .feature-sign { grid-row: auto; margin-top: 0; }
  .feature-copy h3 { max-width: 19ch; }
}

@media (max-width: 600px) {
  .shell { width: calc(100% - 36px); }
  [id] { scroll-margin-top: 4.75rem; }

  .header-inner {
    min-height: 58px;
    grid-template-columns: auto minmax(0, 1fr) auto;
    column-gap: 11px;
  }

  .wordmark { font-size: 1.24rem; gap: 5px; }
  .wordmark img { width: 23px; height: 23px; }
  .site-nav { justify-content: end; gap: clamp(8px, 3vw, 15px); }
  .site-nav a, .header-support { font-size: .8125rem; }
  .header-support { min-height: 44px; padding-inline: 0; border: 0; }
  .header-support svg { display: none; }
  .header-support:hover { background: transparent; color: var(--accent); }

  .hero { padding-block: 32px 39px; gap: 25px; }
  .hero h1 { font-size: clamp(2.65rem, 13vw, 4rem); }
  .hero-lead { margin-top: 16px; }
  .hero-actions { margin-top: 19px; }
  .hero-note { margin-top: 10px; font-size: .8125rem; }
  .demo-stage { padding: 10px 10px 8px; border-radius: 10px; }
  .demo-stage-head { gap: 8px; margin-bottom: 8px; }
  .demo-stage-head h2 { font-size: .84375rem; }
  .demo-indicator, .demo-stage-foot { font-size: .6875rem; }
  .demo-stage-foot { margin-top: 6px; }
  .ticket-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    row-gap: 2px;
    min-height: 71px;
    padding-block: 11px;
  }

  .ticket-head > div { display: contents; }
  .ticket-head .ticket-key { grid-area: 1 / 1; justify-self: start; }
  .ticket-title { grid-area: 2 / 1 / 3 / -1; }
  .issue-state { grid-area: 1 / 2; }
  .demo-tabs { justify-content: space-between; }
  .demo-tabs, .ticket-head, .demo-pane { padding-inline: 11px; }
  .demo-pane { min-height: 242px; padding-block: 10px; }
  .gate-result { gap: 7px; }
  .gate-count { max-width: 50px; }
  .transition-label { font-size: .6875rem; }
  .demo-button { min-height: 40px; }
  .demo-actions { gap: 5px; }
  .merge-mapping { gap: 6px; }
  .merge-ticket { padding-inline: 7px; }

  .proof-list { grid-template-columns: 1fr; }
  .proof-list li + li { border-left: 0; border-top: 1px solid var(--line); }
  .proof-list a { justify-content: start; min-height: 45px; padding-inline: 4px; gap: 8px; }
  .proof-list .proof-arrow { margin-left: auto; }

  .workflow { padding-block: 54px; }
  .section-intro, .feature-row, .trust-inner, .pricing, .roadmap-inner { grid-template-columns: 1fr; }
  .section-intro { gap: 12px; margin-bottom: 23px; }
  .section-intro p { justify-self: start; padding: 0; }
  .feature-row { gap: 15px; padding-block: 19px; }
  .feature-copy { grid-template-columns: 23px 1fr; gap: 7px 9px; }
  .feature-copy h3 { max-width: none; }
  .feature-sign { grid-row: span 2; }
  .feature-sign svg { width: 20px; height: 20px; }
  .feature-board { padding-inline: 10px; }
  .rule-flow { gap: 4px; font-size: .75rem; }
  .trust-inner { padding-block: 48px; gap: 25px; }
  .trust-inner h2 { max-width: 13ch; }

  .pricing { padding-block: 46px 49px; gap: 17px; }
  .pricing-offer { border: 0; border-top: 1px solid var(--line); padding: 17px 0 0; gap: 4px; }
  .roadmap-inner { padding-block: 37px; gap: 17px; }
  .roadmap-inner > div > p { margin-top: 10px; }
  .roadmap-list li { grid-template-columns: 19px minmax(0, 1fr); column-gap: 9px; row-gap: 5px; }
  .roadmap-list li > span { grid-column: 2; }

  .doc-hero .shell { padding-block: 39px 29px; }
  .doc-hero p { margin-top: 12px; font-size: 1rem; }
  .doc-hero .doc-date { margin-top: 13px; }
  .doc-layout { grid-template-columns: 1fr; gap: 22px; padding-block: 20px 51px; }
  .doc-toc { position: static; }
  .doc-toc ul { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
  .doc-toc a { min-height: 33px; }
  .doc-panel { padding-inline: 13px; }
  .doc-panel > div { grid-template-columns: 1fr; gap: 2px; }

  .footer-inner { gap: 8px; padding-block: 17px 10px; }
  .footer-nav { gap: 0 16px; font-size: .875rem; }
  .footer-base { font-size: .8125rem; padding-block: 5px; }
}

@media (max-width: 410px) {
  .site-nav .nav-roadmap { display: none; }
  .site-nav { gap: 15px; }
  .header-inner { column-gap: 16px; }
}

@media (max-width: 345px) {
  .header-inner { column-gap: 7px; }
  .site-nav { gap: 7px; }
  .site-nav a, .header-support { font-size: .75rem; }
  .wordmark { font-size: 1.13rem; }
  .demo-actions { row-gap: 6px; }
  .transition-label { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
