:root {
  --ink: #101411;
  --black: #0b100d;
  --paper: #f2f5ee;
  --white: #ffffff;
  --muted: #667067;
  --line: #9aa39a;
  --dark-line: #3d473f;
  --acid: #b9f34a;
  --cyan: #58d7d9;
  --coral: #ff7562;
  --yellow: #f4d85c;
  --blue: #356dd7;
  --max: 1380px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Consolas, "SFMono-Regular", "Liberation Mono", monospace;
  letter-spacing: 0;
}
a { color: inherit; }
button, input, select { font: inherit; letter-spacing: 0; }
button, select, input[type="radio"], input[type="checkbox"] { cursor: pointer; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}
[hidden] { display: none !important; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 12px;
  transform: translateY(-160%);
  padding: 10px 14px;
  background: var(--yellow);
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}
.skip-link:focus { transform: none; }

.site-header {
  position: sticky;
  z-index: 40;
  top: 0;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 24px;
  border-bottom: 1px solid var(--dark-line);
  background: rgba(11, 16, 13, .97);
  color: #eef3ec;
}
.brand { display: flex; align-items: center; gap: 13px; text-decoration: none; font-size: 10px; }
.brand span { display: grid; width: 42px; height: 30px; place-items: center; border: 1px solid var(--acid); color: var(--acid); font-size: 12px; font-weight: 900; }
.brand b { color: #e8eee7; }
.site-header nav { display: flex; gap: 7px; }
.site-header nav a { min-height: 34px; display: flex; align-items: center; padding: 0 11px; border: 1px solid #4e5951; color: #bec7c0; text-decoration: none; font-size: 9px; font-weight: 800; }
.site-header nav a:hover { border-color: var(--cyan); color: var(--cyan); }

.router-hero {
  position: relative;
  min-height: 330px;
  display: grid;
  overflow: hidden;
  isolation: isolate;
  border-bottom: 1px solid var(--dark-line);
  color: #f2f6ef;
}
.router-hero__media, .router-hero__veil { position: absolute; inset: 0; }
.router-hero__media { z-index: -2; }
.router-hero__media img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center 44%; filter: saturate(.8) contrast(1.12) brightness(.62); }
.router-hero__veil { z-index: -1; background: rgba(7, 12, 9, .58); }
.router-hero__inner { width: min(var(--max), calc(100% - 56px)); margin: auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 430px); gap: 72px; align-items: end; padding: 58px 0 42px; }
.eyebrow { margin: 0; color: var(--blue); font-size: 10px; font-weight: 900; }
.router-hero .eyebrow { color: var(--cyan); }
.router-hero h1 { max-width: 930px; margin: 13px 0 16px; font-size: 62px; line-height: 1; overflow-wrap: anywhere; }
.router-hero__inner > div > p:last-child { max-width: 820px; margin: 0; color: #d9e1da; font-size: 14px; line-height: 1.62; }
.hero-facts { margin: 0; border-top: 1px solid rgba(255, 255, 255, .48); }
.hero-facts div { min-height: 60px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: center; border-bottom: 1px solid rgba(255, 255, 255, .35); }
.hero-facts dt { color: #b4beb6; font-size: 9px; font-weight: 800; }
.hero-facts dd { margin: 0; color: var(--acid); font-size: 12px; font-weight: 900; text-align: right; }

.router-workbench { width: min(var(--max), calc(100% - 56px)); margin: auto; padding: 72px 0 84px; }
.section-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(290px, 440px); gap: 60px; align-items: end; margin-bottom: 34px; padding-bottom: 24px; border-bottom: 1px solid var(--ink); }
.section-heading h2 { max-width: 880px; margin: 9px 0 0; font-size: 42px; line-height: 1.06; overflow-wrap: anywhere; }
.section-heading > p { margin: 0; color: #4d574f; font-size: 11px; line-height: 1.62; }
.route-form { border-top: 1px solid var(--ink); }
.route-step { min-width: 0; margin: 0; padding: 28px 0 30px; border: 0; border-bottom: 1px solid var(--line); }
.route-step legend, .route-step--compact > label, .select-field { min-width: 0; }
.route-step legend { width: 100%; display: flex; align-items: center; gap: 14px; padding: 0; }
.route-step legend span, .route-step--compact label > span, .select-field > span { color: var(--coral); font-size: 11px; font-weight: 900; }
.route-step legend strong, .route-step--compact label > strong, .select-field > strong { font-size: 11px; }
.option-grid { display: grid; gap: 0; margin-top: 20px; border-top: 1px solid var(--ink); border-left: 1px solid var(--ink); }
.option-grid--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.option-grid label { position: relative; min-width: 0; min-height: 124px; display: grid; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); background: #f8faf6; }
.option-grid input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.option-grid label > span { min-width: 0; display: grid; align-content: space-between; gap: 18px; padding: 20px; }
.option-grid b { font-size: 15px; overflow-wrap: anywhere; }
.option-grid small { color: #586159; font-size: 9px; line-height: 1.5; overflow-wrap: anywhere; }
.option-grid label:has(input:checked) { background: var(--acid); }
.option-grid label:has(input:checked)::after { content: "SELECTED"; position: absolute; top: 10px; right: 10px; color: #364600; font-size: 8px; font-weight: 900; }
.option-grid label:has(input:focus-visible) { outline: 3px solid var(--blue); outline-offset: -4px; }
.option-grid--compact label { min-height: 76px; }
.option-grid--compact label > span { align-content: center; padding: 16px 20px; }
.route-step--compact { display: grid; grid-template-columns: minmax(0, 1fr) 180px; gap: 32px; align-items: center; }
.route-step--compact > label { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 6px 14px; }
.route-step--compact label > small { grid-column: 2; color: #59625b; font-size: 9px; }
.route-step--compact input, .select-field select, .intake-form input, .intake-form select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--white);
  color: var(--ink);
  padding: 0 13px;
}
.route-step--compact input { color: var(--blue); font-size: 21px; font-weight: 900; text-align: right; }
.route-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.select-field { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 8px 14px; padding: 28px 30px 30px 0; }
.select-field + .select-field { padding-left: 30px; border-left: 1px solid var(--line); }
.select-field select { grid-column: 2; margin-top: 6px; }
.route-command { display: grid; grid-template-columns: minmax(270px, 430px) minmax(0, 1fr); gap: 34px; align-items: center; padding-top: 28px; }
.route-command button, .intake-form > button { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border: 1px solid var(--ink); border-radius: 0; background: var(--ink); color: var(--white); padding: 0 20px; font-size: 11px; font-weight: 900; }
.route-command button:hover, .intake-form > button:hover { background: var(--blue); }
.route-command button b, .intake-form > button b { color: var(--acid); font-size: 19px; }
.route-command p { max-width: 720px; margin: 0; color: #596159; font-size: 9px; line-height: 1.55; }
.form-error { margin: 18px 0 0; padding: 12px; border-left: 4px solid var(--coral); background: #ffe6e1; color: #761d16; font-size: 10px; }

.route-result { border-top: 1px solid var(--dark-line); border-bottom: 1px solid var(--dark-line); background: var(--black); color: #edf2eb; }
.route-result__inner { width: min(var(--max), calc(100% - 56px)); margin: auto; padding: 70px 0 78px; }
.result-heading { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 42px; align-items: end; margin-bottom: 30px; }
.result-heading h2 { max-width: 900px; margin: 9px 0 0; font-size: 44px; line-height: 1.05; overflow-wrap: anywhere; }
.result-heading > strong { max-width: 310px; padding: 12px 14px; border: 1px solid #536057; color: #b7c1b9; font-size: 9px; line-height: 1.4; text-align: right; }
.result-heading > strong[data-state="fixed-scope"] { border-color: var(--acid); color: var(--acid); }
.result-heading > strong[data-state="prepare-first"] { border-color: var(--yellow); color: var(--yellow); }
.result-heading > strong[data-state="custom-scope"] { border-color: var(--coral); color: var(--coral); }
.result-signal { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); border-top: 1px solid #59635b; border-left: 1px solid #59635b; }
.result-signal div { min-width: 0; min-height: 88px; display: grid; align-content: center; gap: 10px; padding: 16px; border-right: 1px solid #59635b; border-bottom: 1px solid #59635b; }
.result-signal span { color: #8f9a91; font-size: 8px; font-weight: 900; }
.result-signal strong { color: var(--cyan); font-size: 14px; overflow-wrap: anywhere; }
.result-signal div:nth-child(2) strong { color: var(--acid); }
.result-signal div:nth-child(3) strong { color: var(--yellow); }
.result-signal div:nth-child(4) strong { color: var(--coral); }
.result-body { display: grid; grid-template-columns: 1.18fr 1fr 1fr; border-left: 1px solid #59635b; }
.result-body > section { min-width: 0; min-height: 300px; display: grid; grid-template-rows: auto 1fr auto; padding: 25px; border-right: 1px solid #59635b; border-bottom: 1px solid #59635b; }
.result-body h3 { margin: 0 0 20px; color: var(--white); font-size: 15px; }
.result-body p, .result-body li { color: #bdc7bf; font-size: 10px; line-height: 1.58; overflow-wrap: anywhere; }
.result-body ul, .result-body ol { margin: 0; padding-left: 20px; }
.result-body li + li { margin-top: 10px; }
.result-primary { min-height: 43px; display: flex; align-items: center; justify-content: center; margin-top: 24px; border: 1px solid var(--cyan); color: var(--cyan); text-decoration: none; font-size: 9px; font-weight: 900; text-align: center; }
.result-primary:hover { background: var(--cyan); color: var(--ink); }
.result-integrity { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 430px); gap: 30px; align-items: center; padding: 20px 0; border-bottom: 1px solid #59635b; }
.result-integrity div { min-width: 0; display: grid; gap: 8px; }
.result-integrity span { color: #89948b; font-size: 8px; }
.result-integrity code { max-width: 100%; color: var(--acid); font-size: 9px; overflow-wrap: anywhere; }
.result-integrity p { margin: 0; color: #8f9991; font-size: 8px; line-height: 1.55; }
.result-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding-top: 20px; }
.result-actions button { min-height: 39px; border: 1px solid #68736a; border-radius: 0; background: transparent; color: #dbe2dc; padding: 0 13px; font-size: 9px; font-weight: 800; }
.result-actions button:hover:not(:disabled) { border-color: var(--acid); color: var(--acid); }
.result-actions button:disabled { opacity: .42; cursor: not-allowed; }
.result-actions span { margin-left: auto; color: var(--acid); font-size: 9px; }

.intake-band { border-bottom: 1px solid #725e08; background: var(--yellow); color: var(--ink); }
.intake-band__inner { width: min(var(--max), calc(100% - 56px)); margin: auto; display: grid; grid-template-columns: minmax(290px, .72fr) minmax(0, 1.28fr); gap: 70px; padding: 70px 0 78px; }
.intake-band header h2 { max-width: 540px; margin: 10px 0 18px; font-size: 42px; line-height: 1.05; }
.intake-band header > p:last-child { max-width: 520px; margin: 0; color: #504719; font-size: 10px; line-height: 1.6; }
.intake-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid #655817; border-left: 1px solid #655817; }
.intake-form > label:not(.honeypot):not(.consent-field) { min-width: 0; display: grid; gap: 8px; padding: 14px; border-right: 1px solid #655817; border-bottom: 1px solid #655817; }
.intake-form label > span { font-size: 8px; font-weight: 900; }
.intake-form input, .intake-form select { min-height: 43px; border-color: #655817; }
.consent-field { grid-column: 1 / -1; min-height: 62px; display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 11px; align-items: center; padding: 13px 16px; border-right: 1px solid #655817; border-bottom: 1px solid #655817; }
.consent-field input { width: 18px; height: 18px; min-height: 0; margin: 0; }
.consent-field span { font-size: 9px !important; line-height: 1.5; }
.intake-form > button { min-height: 54px; border-color: #655817; }
.intake-form > p { min-height: 54px; margin: 0; display: flex; align-items: center; padding: 12px; border-right: 1px solid #655817; border-bottom: 1px solid #655817; font-size: 9px; line-height: 1.5; }
.honeypot { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

.boundary-band { width: min(var(--max), calc(100% - 56px)); margin: auto; padding: 72px 0 84px; }
.boundary-band header { display: grid; grid-template-columns: minmax(0, .35fr) minmax(0, 1fr); gap: 38px; align-items: end; margin-bottom: 28px; }
.boundary-band h2 { margin: 0; font-size: 42px; line-height: 1.05; }
.boundary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--ink); border-left: 1px solid var(--ink); }
.boundary-grid div { min-width: 0; min-height: 130px; display: grid; align-content: space-between; padding: 20px; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.boundary-grid div:nth-child(1) { background: var(--acid); }
.boundary-grid div:nth-child(2) { background: var(--cyan); }
.boundary-grid div:nth-child(3) { background: var(--coral); }
.boundary-grid div:nth-child(4) { background: var(--yellow); }
.boundary-grid strong { font-size: 42px; }
.boundary-grid span { font-size: 9px; font-weight: 900; overflow-wrap: anywhere; }
.boundary-band > p { max-width: 900px; margin: 24px 0 0 auto; color: #505a52; font-size: 10px; line-height: 1.65; }

.site-footer { min-height: 112px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: center; padding: 24px max(28px, calc((100% - var(--max)) / 2)); border-top: 1px solid var(--dark-line); background: var(--black); color: #e7ece6; }
.site-footer > div { display: grid; gap: 8px; }
.site-footer strong { color: var(--acid); font-size: 12px; }
.site-footer span { color: #8d978f; font-size: 8px; }
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 16px; }
.site-footer a { color: #c2cbc3; font-size: 9px; text-decoration: none; }
noscript { display: block; padding: 16px; background: var(--coral); color: var(--ink); font-weight: 800; text-align: center; }

@media (max-width: 1000px) {
  .router-hero__inner { grid-template-columns: 1fr; gap: 32px; }
  .hero-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-facts div { grid-template-columns: 1fr; align-content: center; padding: 12px; border-right: 1px solid rgba(255, 255, 255, .35); }
  .hero-facts dd { text-align: left; }
  .section-heading { grid-template-columns: 1fr; gap: 18px; }
  .option-grid--four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .result-body { grid-template-columns: 1fr 1fr; }
  .result-body > section:first-child { grid-column: 1 / -1; min-height: 230px; }
  .intake-band__inner { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 700px) {
  html { scroll-behavior: auto; }
  .site-header { min-height: 54px; padding: 0 13px; }
  .brand b { display: none; }
  .site-header nav a { min-height: 32px; padding: 0 7px; font-size: 8px; }
  .site-header nav a:last-child { display: none; }
  .router-hero { min-height: 420px; }
  .router-hero__inner, .router-workbench, .route-result__inner, .intake-band__inner, .boundary-band { width: calc(100% - 30px); }
  .router-hero__inner { padding: 46px 0 28px; }
  .router-hero h1 { font-size: 42px; }
  .router-hero__inner > div > p:last-child { font-size: 12px; }
  .hero-facts { grid-template-columns: 1fr; }
  .hero-facts div { min-height: 48px; grid-template-columns: minmax(0, 1fr) auto; border-right: 0; }
  .hero-facts dd { text-align: right; }
  .router-workbench { padding: 54px 0 62px; }
  .section-heading h2, .result-heading h2, .intake-band header h2, .boundary-band h2 { font-size: 30px; }
  .option-grid--four { grid-template-columns: 1fr; }
  .option-grid label { min-height: 94px; }
  .option-grid--compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .option-grid--compact label { min-height: 68px; }
  .route-step--compact { grid-template-columns: 1fr 112px; gap: 16px; }
  .route-pair { grid-template-columns: 1fr; }
  .select-field, .select-field + .select-field { padding: 24px 0; border-left: 0; }
  .select-field + .select-field { border-top: 1px solid var(--line); }
  .route-command { grid-template-columns: 1fr; gap: 16px; }
  .route-result__inner { padding: 54px 0 60px; }
  .result-heading { grid-template-columns: 1fr; gap: 18px; }
  .result-heading > strong { justify-self: start; text-align: left; }
  .result-signal { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .result-body { grid-template-columns: 1fr; }
  .result-body > section:first-child { grid-column: auto; }
  .result-body > section { min-height: 230px; }
  .result-integrity { grid-template-columns: 1fr; gap: 12px; }
  .result-actions span { width: 100%; margin-left: 0; }
  .intake-band__inner { padding: 54px 0 60px; }
  .intake-form { grid-template-columns: 1fr; }
  .consent-field { grid-column: auto; }
  .boundary-band { padding: 54px 0 62px; }
  .boundary-band header { grid-template-columns: 1fr; gap: 10px; }
  .boundary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .boundary-grid div { min-height: 108px; }
  .site-footer { grid-template-columns: 1fr; padding: 28px 15px; }
  .site-footer nav { justify-content: flex-start; }
}

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