:root {
  --paper: #eef4f8;
  --paper-bright: #f8fbfd;
  --ink: #10212b;
  --muted: #526873;
  --rule: #c8d7e2;
  --rule-strong: #99adba;
  --accent: #2a63ff;
  --accent-soft: #dce6ff;
  --target: #e96632;
  --target-soft: #ffe4d7;
  --verified: #0c7a62;
  --verified-soft: #d9f0e9;
  --warning: #9a6a00;
  --night: #112934;
  --white: #ffffff;
  --shadow: 0 22px 70px rgba(16, 33, 43, 0.12);
  --display: 'Bahnschrift', 'DIN Alternate', 'Arial Narrow', sans-serif;
  --body: 'Avenir Next', 'Segoe UI', Helvetica, Arial, sans-serif;
  --mono: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(16, 33, 43, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 33, 43, 0.04) 1px, transparent 1px), var(--paper);
  background-size: 32px 32px;
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--target);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: var(--white);
  background: var(--ink);
  border-radius: 3px;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header,
.hero,
.split-section,
.how-section,
.start-section,
.evidence-section,
.safety-section,
.status-strip,
.site-footer {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  min-height: 88px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
  border-bottom: 1px solid var(--rule-strong);
}

.brand {
  width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--display);
  font-size: 20px;
  font-stretch: condensed;
  font-weight: 750;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand-mark {
  width: 26px;
  height: 26px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--ink);
  border-radius: 3px;
}

.brand-mark span {
  display: block;
  background: var(--ink);
  border-radius: 1px;
}

.brand-mark span:nth-child(2),
.brand-mark span:nth-child(3) {
  background: var(--accent);
}

.nav-links {
  display: flex;
  gap: 30px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.nav-links a,
.footer-links a {
  text-decoration: none;
}

.nav-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.nav-links a:hover,
.footer-links a:hover,
.text-link:hover {
  color: var(--accent);
}

.status-chip {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  color: var(--ink);
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.status-chip span {
  width: 7px;
  height: 7px;
  display: inline-block;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.live-pill i {
  width: 7px;
  height: 7px;
  display: inline-block;
  background: var(--verified);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--verified-soft);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(500px, 1.06fr);
  gap: 74px;
  padding-top: 94px;
}

.hero-copy {
  align-self: center;
  padding-bottom: 22px;
}

.hero-copy > .copy-status {
  position: static;
  display: block;
  margin-top: 12px;
}

.eyebrow,
.section-label,
.recorder-kicker {
  margin: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.eyebrow span {
  color: var(--accent);
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

h1,
h2,
h3 {
  font-family: var(--display);
}

h1 {
  max-width: 700px;
  margin: 20px 0 26px;
  font-size: clamp(58px, 6.3vw, 92px);
  font-stretch: condensed;
  font-weight: 820;
  line-height: 0.92;
  letter-spacing: -0.065em;
}

.hero-lede {
  max-width: 610px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 26px;
  margin-top: 36px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 3px;
  font-size: 16px;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: var(--white);
  background: var(--accent);
  box-shadow: 5px 5px 0 var(--ink);
}

.button-primary:hover {
  box-shadow: 7px 7px 0 var(--ink);
}

.text-link {
  color: var(--ink);
  font-size: 16px;
  font-weight: 750;
  text-underline-offset: 5px;
}

.text-link span {
  display: inline-block;
  margin-left: 4px;
  color: var(--target);
}

.release-note {
  margin: 34px 0 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 16px;
}

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

.flight-recorder {
  position: relative;
  overflow: hidden;
  padding: 24px;
  background: var(--paper-bright);
  border: 1px solid var(--ink);
  border-radius: 5px;
  box-shadow:
    var(--shadow),
    8px 8px 0 var(--accent-soft);
  animation: recorder-in 700ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.flight-recorder::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent 0,
    transparent 7px,
    rgba(16, 33, 43, 0.025) 8px
  );
}

.recorder-head,
.recorder-result,
.code-head,
.code-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.recorder-head {
  position: relative;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--rule);
}

.recorder-head strong {
  display: block;
  margin-top: 3px;
  font-family: var(--mono);
  font-size: 13px;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 9px;
  color: var(--verified);
  background: var(--verified-soft);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.live-pill i {
  width: 6px;
  height: 6px;
  box-shadow: none;
  animation: pulse 1.8s ease-in-out infinite;
}

.trace {
  position: relative;
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 20px;
  padding: 24px 0;
}

.trace-label span,
.trace-label strong {
  display: block;
}

.trace-label span {
  margin-bottom: 5px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.trace-label strong {
  overflow: hidden;
  font-size: 13px;
  line-height: 1.35;
  text-overflow: ellipsis;
}

.trace-stages {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.trace-control .trace-stages {
  grid-template-columns: repeat(3, 1fr);
}

.trace-stages::before {
  content: '';
  position: absolute;
  top: 7px;
  right: 12%;
  left: 12%;
  height: 1px;
  background: var(--rule-strong);
}

.stage {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.stage span {
  width: 15px;
  height: 15px;
  display: block;
  margin-bottom: 9px;
  background: var(--paper-bright);
  border: 3px solid var(--verified);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--verified-soft);
}

.stage.selected span {
  border-color: var(--target);
  box-shadow: 0 0 0 4px var(--target-soft);
}

.stage.observed span {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.stage small,
.stage strong {
  display: block;
  overflow: hidden;
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stage small {
  color: var(--muted);
  text-transform: uppercase;
}

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

.compare-axis {
  position: relative;
  height: 29px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.compare-axis::before,
.compare-axis::after {
  content: '';
  position: absolute;
  left: 50%;
  width: 1px;
  height: 7px;
  background: var(--rule-strong);
}

.compare-axis::before {
  top: 0;
}

.compare-axis::after {
  bottom: 0;
}

.compare-axis span {
  padding: 3px 7px;
  color: var(--muted);
  background: var(--paper-bright);
  border: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.recorder-result {
  position: relative;
  justify-content: flex-start;
  gap: 12px;
  padding: 14px;
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
}

.result-icon {
  width: 27px;
  height: 27px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--accent);
  border-radius: 50%;
  font-weight: 800;
}

.recorder-result span:not(.result-icon),
.recorder-result strong {
  display: block;
  font-size: 11px;
  line-height: 1.45;
}

.recorder-result span:not(.result-icon) {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.illustrative-note {
  position: relative;
  margin: 12px 0 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  text-align: right;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.boundary-rail {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 76px 0 0;
  padding: 0;
  border-top: 1px solid var(--rule-strong);
  border-bottom: 1px solid var(--rule-strong);
  list-style: none;
}

.boundary-rail li {
  padding: 17px 24px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}

.boundary-rail li + li {
  border-left: 1px solid var(--rule-strong);
}

.boundary-rail span {
  margin-right: 10px;
  color: var(--accent);
}

.split-section,
.how-section,
.evidence-section,
.safety-section {
  padding-top: 138px;
  padding-bottom: 138px;
}

.split-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 100px;
}

.split-section h2,
.section-heading h2,
.evidence-copy h2,
.status-strip h2 {
  margin: 16px 0 0;
  font-size: clamp(40px, 5vw, 68px);
  font-weight: 790;
  line-height: 1;
  letter-spacing: -0.045em;
}

.problem-section {
  border-bottom: 1px solid var(--rule-strong);
}

.problem-copy {
  align-self: end;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 42px;
  color: var(--muted);
  font-size: 17px;
}

.problem-copy p {
  margin: 0;
}

.how-section {
  border-bottom: 1px solid var(--rule-strong);
}

.section-heading {
  max-width: 800px;
}

.target-builder {
  margin-top: 58px;
  padding: 24px;
  background: var(--paper-bright);
  border: 1px solid var(--ink);
  box-shadow: 7px 7px 0 var(--accent-soft);
}

.target-builder-heading,
.target-input-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.target-builder-heading label {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.target-example,
.target-syntax {
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.target-syntax {
  flex: 0 0 auto;
  font-family: var(--mono);
  text-transform: uppercase;
}

.target-input-row {
  margin-top: 14px;
}

.target-input-row input {
  min-width: 0;
  flex: 1 1 auto;
  min-height: 48px;
  padding: 9px 12px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--rule-strong);
  border-radius: 3px;
  font-family: var(--mono);
  font-size: 16px;
}

.target-input-row input:invalid,
.target-input-row input[data-invalid='true'] {
  border-color: var(--target);
  box-shadow: 0 0 0 3px var(--target-soft);
}

.target-input-row input:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.target-builder .copy-button {
  min-height: 48px;
  color: var(--white);
  background: var(--accent);
  border-color: var(--accent);
}

.target-builder .copy-button:hover {
  color: var(--white);
  background: var(--ink);
}

.target-builder .copy-button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  box-shadow: none;
}

.target-help {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.target-command {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: 20px;
  padding: 16px 18px;
  overflow: auto;
  color: var(--white);
  background: var(--night);
  border: 1px solid var(--ink);
  border-radius: 3px;
}

.target-command > span {
  color: #7ca0ff;
  font-family: var(--mono);
  font-weight: 800;
}

.target-command code {
  font-family: var(--mono);
  font-size: 15px;
  white-space: nowrap;
}

.target-status {
  display: block;
  min-height: 1.5em;
  margin-top: 11px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
}

.target-status[data-state='invalid'] {
  color: var(--target);
}

.target-status[data-state='success'] {
  color: var(--verified);
}

.copy-button {
  padding: 9px 12px;
  color: var(--white);
  background: transparent;
  border: 1px solid #66808c;
  border-radius: 3px;
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

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

.copy-status {
  position: absolute;
  right: 18px;
  bottom: -28px;
  min-height: 18px;
  color: var(--verified);
  font-family: var(--mono);
  font-size: 10px;
}

.outcome-guide {
  margin-top: 64px;
}

.outcome-guide > h3 {
  margin: 0 0 22px;
  font-size: 24px;
  letter-spacing: -0.025em;
}

.outcome-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--rule-strong);
  background: rgba(248, 251, 253, 0.72);
}

.outcome-grid article {
  min-height: 170px;
  padding: 24px;
}

.outcome-grid article + article {
  border-left: 1px solid var(--rule-strong);
}

.outcome-grid strong,
.outcome-grid p {
  display: block;
}

.outcome-grid strong {
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 16px;
}

.outcome-grid p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 16px;
}

.outcome-grid code {
  font-family: var(--mono);
  font-size: 0.92em;
}

.outcome-incomplete {
  background: var(--target-soft);
}

.exit-code {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.incomplete-explainer {
  max-width: 860px;
  margin: 26px 0 0;
  padding-left: 20px;
  color: var(--muted);
  border-left: 3px solid var(--target);
  font-size: 16px;
}

.start-section {
  margin-top: 120px;
  padding: 54px 0 58px;
  border-top: 1px solid var(--rule-strong);
  border-bottom: 1px solid var(--rule-strong);
}

.start-lede {
  max-width: 720px;
  margin: 16px 0 0;
  color: var(--muted);
}

.agent-boundary {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 30px;
  margin-top: 34px;
  padding: 22px;
  border: 1px solid var(--rule-strong);
  background: rgba(248, 251, 253, 0.72);
}

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

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

.agent-hosts {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin: 0;
  padding: 14px 0 0;
  color: var(--muted);
  border-top: 1px solid var(--rule);
  list-style: none;
  font-size: 14px;
}

.agent-hosts li::before {
  content: '↳';
  margin-right: 7px;
  color: var(--accent);
  font-family: var(--mono);
}

.button-outline {
  color: var(--ink);
  border-color: var(--rule-strong);
  background: var(--paper-bright);
}

.button-outline:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 74px 0 0;
  padding: 0;
  border-top: 1px solid var(--rule-strong);
  list-style: none;
}

.steps li {
  min-height: 270px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px 30px 28px 0;
}

.steps li + li {
  padding-left: 30px;
  border-left: 1px solid var(--rule-strong);
}

.step-number {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
}

.steps h3 {
  margin: 0 0 10px;
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

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

.evidence-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 95px;
  align-items: center;
}

.evidence-copy > p:not(.section-label) {
  max-width: 550px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.evidence-points {
  display: grid;
  gap: 12px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
  font-size: 16px;
  font-weight: 650;
}

.evidence-points span {
  margin-right: 10px;
  color: var(--target);
  font-family: var(--mono);
}

.evidence-card {
  overflow: hidden;
  color: #dce8ec;
  background: var(--night);
  border: 1px solid var(--ink);
  border-radius: 5px;
  box-shadow:
    var(--shadow),
    8px 8px 0 var(--target-soft);
}

.evidence-card > summary {
  cursor: pointer;
  list-style: none;
}

.evidence-card > summary::-webkit-details-marker {
  display: none;
}

.code-head,
.code-foot {
  padding: 13px 17px;
  color: #94aab5;
  border-bottom: 1px solid #34505c;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.evidence-card pre {
  max-height: 680px;
  overflow: auto;
  margin: 0;
  padding: 28px 22px;
  font-family: var(--mono);
  font-size: clamp(10px, 1.1vw, 13px);
  line-height: 1.8;
}

.evidence-example-note {
  margin: 0;
  padding: 14px 22px;
  color: #dce8ec;
  border-bottom: 1px solid #34505c;
  font-size: 16px;
}

.code-foot {
  justify-content: flex-start;
  gap: 22px;
  border-top: 1px solid #34505c;
  border-bottom: 0;
}

.code-foot span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.dot {
  width: 6px;
  height: 6px;
  display: inline-block;
  border-radius: 50%;
}

.dot-green {
  background: #7ee0bf;
}

.dot-blue {
  background: #9bb5ff;
}

.safety-section {
  border-top: 1px solid var(--rule-strong);
}

.compact-heading {
  max-width: 750px;
}

.safety-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 60px;
}

.safety-card {
  position: relative;
  overflow: hidden;
  min-height: 380px;
  padding: 36px;
  border: 1px solid var(--rule-strong);
  background: rgba(248, 251, 253, 0.74);
}

.safety-card::after {
  content: '';
  position: absolute;
  right: -45px;
  bottom: -45px;
  width: 140px;
  height: 140px;
  border: 1px solid var(--rule);
  border-radius: 50%;
}

.does-card {
  border-top: 5px solid var(--verified);
}

.does-not-card {
  border-top: 5px solid var(--target);
}

.not-for-card {
  border-top: 5px solid var(--accent);
}

.safety-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  margin-bottom: 56px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  font-family: var(--mono);
  font-size: 19px;
}

.safety-card h3 {
  margin: 0 0 24px;
  font-size: 27px;
  letter-spacing: -0.03em;
}

.safety-card ul {
  display: grid;
  gap: 11px;
  margin: 0;
  padding: 0;
  color: var(--muted);
  list-style: none;
  font-size: 16px;
}

.safety-card li {
  position: relative;
  padding-left: 18px;
}

.safety-card li::before {
  content: '';
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 6px;
  height: 1px;
  background: var(--ink);
}

.status-strip {
  padding-top: 36px;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--rule-strong);
}

.status-heading {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: end;
  gap: 10px 24px;
}

.status-heading .section-label {
  grid-column: 1 / -1;
}

.status-heading h2 {
  margin-top: 0;
  font-size: clamp(32px, 4vw, 52px);
}

.status-heading > p:last-child {
  max-width: 570px;
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 15px;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 28px 0 0;
  border-top: 1px solid var(--rule-strong);
  border-left: 1px solid var(--rule-strong);
}

.status-grid > div {
  min-height: 130px;
  padding: 18px;
  border-right: 1px solid var(--rule-strong);
  border-bottom: 1px solid var(--rule-strong);
  background: rgba(248, 251, 253, 0.74);
}

.status-grid dt,
.status-grid dd,
.status-live {
  display: block;
}

.status-grid dt {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.status-grid dd {
  max-width: 300px;
  margin: 14px 0 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
}

.status-live {
  min-height: 1.4em;
  margin-top: 9px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
}

.site-footer {
  min-height: 150px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
}

.site-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.not-found {
  min-height: 100vh;
  width: min(760px, calc(100% - 48px));
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  margin-inline: auto;
}

.not-found h1 {
  margin: 18px 0 20px;
  font-size: clamp(52px, 9vw, 96px);
}

.not-found p:not(.section-label) {
  max-width: 540px;
  margin: 0 0 32px;
  color: var(--muted);
  font-size: 18px;
}

.footer-links {
  display: flex;
  gap: 24px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

@keyframes recorder-in {
  from {
    opacity: 0;
    transform: translateY(16px) rotate(0.6deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotate(0);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.45;
    transform: scale(0.8);
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
  }
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 58px;
    padding-top: 72px;
  }

  .hero-copy {
    max-width: 760px;
  }

  .flight-recorder {
    width: min(680px, 100%);
  }

  .split-section,
  .evidence-section {
    grid-template-columns: 1fr;
    gap: 58px;
  }

  .problem-copy {
    max-width: 760px;
  }
}

@media (max-width: 760px) {
  .site-header,
  .hero,
  .split-section,
  .how-section,
  .start-section,
  .evidence-section,
  .safety-section,
  .status-strip,
  .site-footer {
    width: min(100% - 30px, 1180px);
  }

  .site-header {
    min-height: 72px;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      'brand chip'
      'nav nav';
    row-gap: 12px;
    padding-top: 14px;
  }

  .site-header .brand {
    grid-area: brand;
  }

  .nav-links {
    grid-area: nav;
    min-width: 0;
    width: 100%;
    display: flex;
    gap: 0;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
  }

  .nav-links a {
    flex: 0 0 auto;
    padding: 0 16px;
  }

  .status-chip {
    grid-area: chip;
  }

  .hero {
    padding-top: 52px;
  }

  h1 {
    font-size: clamp(50px, 15vw, 72px);
  }

  .hero-lede {
    font-size: 17px;
  }

  .flight-recorder {
    padding: 18px;
    box-shadow: 5px 5px 0 var(--accent-soft);
  }

  .recorder-head {
    align-items: flex-start;
  }

  .trace {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .trace-label strong {
    white-space: normal;
  }

  .stage small,
  .stage strong {
    font-size: 8px;
  }

  .boundary-rail {
    grid-template-columns: 1fr;
    margin-top: 54px;
  }

  .boundary-rail li + li {
    border-top: 1px solid var(--rule-strong);
    border-left: 0;
  }

  .boundary-rail li {
    text-align: left;
  }

  .split-section,
  .how-section,
  .start-section,
  .evidence-section,
  .safety-section {
    padding-top: 90px;
    padding-bottom: 90px;
  }

  .split-section h2,
  .section-heading h2,
  .evidence-copy h2,
  .status-strip h2 {
    font-size: clamp(38px, 11vw, 52px);
  }

  .status-heading {
    grid-template-columns: 1fr;
  }

  .status-heading > p:last-child {
    margin-bottom: 0;
  }

  .problem-copy,
  .agent-boundary,
  .safety-grid,
  .status-grid,
  .outcome-grid {
    grid-template-columns: 1fr;
  }

  .outcome-grid article + article {
    border-top: 1px solid var(--rule-strong);
    border-left: 0;
  }

  .problem-copy {
    gap: 24px;
  }

  .target-builder {
    margin-top: 40px;
    padding: 18px;
  }

  .target-builder-heading,
  .target-input-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .target-input-row {
    gap: 12px;
  }

  .target-input-row input,
  .target-builder .copy-button {
    width: 100%;
  }

  .target-builder .copy-button {
    justify-content: center;
  }

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

  .copy-status {
    right: auto;
    left: auto;
  }

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

  .steps li,
  .steps li + li {
    min-height: 220px;
    padding: 24px 0;
    border-left: 0;
  }

  .steps li + li {
    border-top: 1px solid var(--rule-strong);
  }

  .evidence-card pre {
    font-size: 9px;
  }

  .safety-card {
    min-height: 340px;
    padding: 28px;
  }

  .status-strip {
    padding-top: 28px;
    padding-bottom: 28px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 10px;
    padding: 36px 0;
    min-width: 0;
  }

  .site-footer > * {
    min-width: 0;
  }

  .site-footer p {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .footer-links {
    min-width: 0;
    max-width: 100%;
    flex-wrap: wrap;
    gap: 8px 18px;
  }

  .footer-links a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}

@media (max-width: 430px) {
  .brand {
    font-size: 18px;
  }

  .status-chip {
    padding: 6px 8px;
    font-size: 9px;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .trace-stages {
    gap: 3px;
  }

  .code-foot {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Website v2: the browser card is a bounded observation surface, never a target probe. */
.browser-connection {
  min-width: 0;
  max-width: 100%;
  align-self: start;
  padding: 22px;
  background: var(--paper-bright);
  border: 1px solid var(--ink);
  border-radius: 5px;
  box-shadow:
    var(--shadow),
    8px 8px 0 var(--verified-soft);
}

.browser-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--rule);
}

.browser-card-head h2 {
  margin: 8px 0 0;
  font-size: clamp(30px, 3.2vw, 44px);
  line-height: 1;
  letter-spacing: -0.045em;
}

.browser-state {
  flex: 0 0 auto;
  padding: 5px 8px;
  color: var(--warning);
  background: #fff3cb;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.browser-connection[data-browser-state='ready'] .browser-state {
  color: var(--verified);
  background: var(--verified-soft);
}

.browser-connection[data-browser-state='partial'] .browser-state {
  color: var(--warning);
  background: #fff3cb;
}

.browser-connection[data-browser-state='offline'] .browser-state {
  color: var(--target);
  background: var(--target-soft);
}

.browser-boundary {
  margin: 18px 0 20px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

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

.browser-noscript {
  display: block;
  margin: 0 0 18px;
  padding: 10px 12px;
  color: var(--ink-soft);
  background: var(--paper);
  border-left: 3px solid var(--warning);
  font-size: 0.84rem;
  line-height: 1.45;
}

.browser-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  overflow: hidden;
  background: var(--rule);
  border: 1px solid var(--rule);
}

.browser-field {
  min-width: 0;
  padding: 12px;
  background: var(--paper-bright);
}

.browser-field-primary {
  grid-column: 1 / -1;
  padding-block: 16px;
  background: var(--accent-soft);
}

.browser-field dt {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.browser-field dd {
  min-width: 0;
  margin: 4px 0 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
}

.browser-field-primary dd {
  font-size: clamp(18px, 2vw, 25px);
}

.browser-live-note {
  min-height: 1.5em;
  margin: 14px 0 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
}

.hero-target-builder {
  margin-top: 24px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding: 16px;
  box-shadow: 5px 5px 0 var(--accent-soft);
}

.hero-target-builder .target-builder-heading label {
  font-size: 11px;
}

.hero-target-builder .target-input-row input,
.hero-target-builder .target-builder .copy-button {
  font-size: 13px;
}

.mode-switch {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  border: 0;
}

.mode-switch legend {
  margin-right: 6px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mode-switch label {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  color: var(--muted);
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
}

.mode-switch label:has(input:checked) {
  color: var(--ink);
  background: var(--accent-soft);
  border-color: var(--accent);
}

.mode-switch input {
  position: absolute;
  opacity: 0;
}

.agent-host-switch {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  border: 0;
}

.agent-host-switch legend {
  margin-right: 6px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.agent-host-switch label {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  color: var(--muted);
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
}

.agent-host-switch label:has(input:checked) {
  color: var(--ink);
  background: var(--accent-soft);
  border-color: var(--accent);
}

.agent-host-switch label:has(input:focus-visible) {
  outline: 3px solid var(--target);
  outline-offset: 4px;
}

.agent-host-switch input {
  position: absolute;
  opacity: 0;
}

.agent-host-status {
  min-height: 1.5em;
  margin: 10px 0 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
}

.target-mode[hidden] {
  display: none;
}

.agent-mode-boundary,
.agent-mode-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.agent-mode-boundary {
  padding-left: 12px;
  border-left: 3px solid var(--warning);
}

.agent-mode-boundary code,
.agent-mode-note code {
  font-family: var(--mono);
  font-size: 0.92em;
}

.target-instruction {
  min-width: 0;
  max-width: 100%;
  margin-top: 14px;
}

.target-instruction code {
  display: block;
  max-width: 100%;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.mode-copy-button {
  margin-top: 12px;
}

.agent-doc-link {
  margin: 26px 0 0;
  color: var(--muted);
}

.evidence-section {
  padding-block: 100px;
  border-bottom: 1px solid var(--rule-strong);
}

.evidence-section .evidence-copy {
  max-width: 760px;
}

.docs-shell {
  width: min(900px, calc(100% - 48px));
  margin: 0 auto;
  padding: 92px 0 120px;
}

.docs-shell h1 {
  max-width: 760px;
  margin-bottom: 26px;
  font-size: clamp(48px, 7vw, 82px);
}

.docs-shell h2 {
  margin-top: 56px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1;
}

.docs-shell p,
.docs-shell li {
  max-width: 760px;
  color: var(--muted);
  font-size: 17px;
}

.docs-shell code {
  padding: 2px 5px;
  color: var(--ink);
  background: var(--accent-soft);
  font-family: var(--mono);
  font-size: 0.9em;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.docs-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 36px;
}

.docs-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--accent);
  font-weight: 750;
  text-underline-offset: 4px;
}

@media (max-width: 1050px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 46px;
  }

  .hero-copy {
    max-width: 760px;
  }

  .browser-connection {
    max-width: 760px;
  }
}

@media (max-width: 760px) {
  .browser-connection {
    padding: 18px;
    box-shadow: 5px 5px 0 var(--verified-soft);
  }

  .browser-card-head {
    align-items: flex-start;
  }

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

  .hero-target-builder {
    margin-top: 24px;
  }

  .docs-shell {
    width: min(100% - 36px, 900px);
    padding-top: 64px;
  }
}

@media (max-width: 430px) {
  .browser-fields {
    grid-template-columns: 1fr;
  }

  .browser-field-primary {
    grid-column: auto;
  }
}

/* Keep the hero's grid items bounded while preserving a readable command scroller. */
.hero {
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  grid-template-areas:
    'copy browser'
    'builder browser'
    'rail rail';
  min-width: 0;
}

.hero-copy,
.hero-target-builder,
.browser-connection,
.boundary-rail {
  min-width: 0;
  max-width: 100%;
}

.hero-copy {
  grid-area: copy;
  width: 100%;
}

.hero-target-builder {
  grid-area: builder;
}

.browser-connection {
  grid-area: browser;
  width: 100%;
}

.boundary-rail {
  grid-area: rail;
}

.target-builder-heading,
.target-input-row,
.target-mode,
.target-command,
.target-instruction {
  min-width: 0;
  max-width: 100%;
}

.target-command {
  width: 100%;
}

.target-command code {
  flex: 0 0 max-content;
}

.target-instruction code {
  overflow-wrap: anywhere;
}

.brand,
.status-chip {
  min-height: 44px;
}

@media (max-width: 1050px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      'copy'
      'browser'
      'builder'
      'rail';
  }
}
