:root {
  --daylight: #f7faf9;
  --surface: #ffffff;
  --mist: #eaf3f3;
  --warm-paper: #fff7ef;
  --route-field: #edf5ff;
  --navy: #102a3b;
  --paper: #ffffff;
  --ink: #102a3b;
  --trust-blue: #1769d2;
  --sell: #e95f45;
  --book: #0b8165;
  --receipt: #1769d2;
  --steel: #566b78;
  --line-dark: rgba(255, 255, 255, 0.19);
  --line-light: rgba(16, 42, 59, 0.16);
  --max: 1240px;
  --shadow: 0 24px 70px rgba(1, 10, 20, 0.18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--daylight);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}
a { color: inherit; }
button, input, select { font: inherit; }

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 100;
  padding: 12px 16px;
  background: var(--paper);
  color: var(--navy);
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  min-height: 76px;
  padding: 14px max(24px, calc((100vw - var(--max)) / 2));
  background: var(--surface);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line-light);
}
.wordmark {
  min-height: 44px;
  display: inline-flex;
  gap: 7px;
  align-items: baseline;
  font-size: 23px;
  font-weight: 950;
  letter-spacing: -0.055em;
  text-decoration: none;
}
.wordmark span { color: var(--sell); }
.wordmark strong { color: var(--book); }
.wordmark i { color: var(--ink); font-style: normal; font-weight: 500; }
nav { display: flex; align-items: center; gap: 22px; }
nav a { min-height: 44px; display: inline-flex; align-items: center; color: #344e60; font-size: 14px; font-weight: 750; text-decoration: none; }
nav a:hover { color: var(--ink); }
.nav-action { padding: 11px 16px; border: 1px solid var(--trust-blue); color: var(--trust-blue); }

.hero {
  min-height: 710px;
  padding: 84px max(24px, calc((100vw - var(--max)) / 2)) 96px;
  background: var(--daylight);
  color: var(--ink);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(390px, .92fr);
  gap: 76px;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line-light);
}
.eyebrow, .route p, .lane-label, .result-label {
  margin: 0 0 14px;
  font: 800 12px/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.hero h1 {
  max-width: 800px;
  margin: 0;
  font-size: clamp(54px, 6.6vw, 96px);
  line-height: .93;
  letter-spacing: -.07em;
  font-weight: 950;
}
.sell-ink { color: #b83a21; }
.book-ink { color: var(--book); }
.hero-lede { max-width: 710px; margin: 30px 0 0; color: #40586a; font-size: clamp(18px, 1.65vw, 24px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: 0;
  cursor: pointer;
  font-weight: 900;
  text-decoration: none;
}
.button-primary { background: var(--trust-blue); color: #ffffff; }
.button-primary:hover { background: #0d56b4; }
.button-quiet { color: var(--ink); border-color: rgba(16,42,59,.4); }
.button-quiet:hover { border-color: var(--ink); }
.hero-boundary { max-width: 700px; margin: 22px 0 0; color: var(--steel); font-size: 13px; }

.route-map {
  position: relative;
  min-height: 500px;
  display: grid;
  gap: 14px;
  grid-template-rows: auto 34px 1fr 1fr auto;
}
.route-map::before {
  content: "";
  position: absolute;
  inset: -120px -160px -120px -80px;
  background-image: linear-gradient(var(--line-light) 1px, transparent 1px), linear-gradient(90deg, var(--line-light) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(90deg, transparent, #000 22%, #000);
  pointer-events: none;
}
.route-origin, .route-merge, .route {
  position: relative;
  z-index: 1;
  border: 1px solid var(--line-light);
  background: rgba(255,255,255,.94);
  box-shadow: 0 14px 40px rgba(16,42,59,.08);
}
.route-origin { background: var(--route-field); }
.route-origin, .route-merge { padding: 18px 20px; display: flex; justify-content: space-between; gap: 18px; }
.route-origin span, .route-merge span { font-weight: 900; }
.route-origin small, .route-merge small { color: var(--steel); text-align: right; }
.route-fork { position: relative; z-index: 1; border-left: 1px solid var(--receipt); margin-left: 50%; }
.route-fork::after { content: ""; position: absolute; left: -35%; right: -35%; bottom: 0; border-bottom: 1px solid var(--receipt); }
.route { padding: 20px 22px; }
.route p { margin-bottom: 8px; }
.route strong { display: block; font-size: 19px; }
.route span { display: block; margin-top: 7px; color: var(--steel); font-size: 13px; }
.route-sell { border-left: 5px solid var(--sell); }
.route-sell p { color: #b83a21; }
.route-book { border-left: 5px solid var(--book); }
.route-book p { color: var(--book); }
.route-merge { border-color: rgba(57,189,248,.55); }
.route-merge span { color: var(--receipt); }

.choice-band, .fit-section { padding: 105px max(24px, calc((100vw - var(--max)) / 2)); }
.choice-band { background: var(--surface); }
.section-heading { max-width: 780px; margin-bottom: 42px; }
.section-heading h2, .fit-copy h2 { margin: 0; font-size: clamp(42px, 5.5vw, 72px); line-height: .96; letter-spacing: -.06em; }
.section-heading > p:last-child, .fit-copy > p { color: #536576; font-size: 18px; }
.lane-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.lane {
  position: relative;
  padding: 38px;
  border: 1px solid var(--line-light);
  background: #fffdfa;
  overflow: hidden;
}
.lane-mark {
  position: absolute;
  right: -18px;
  top: -34px;
  font-size: 170px;
  line-height: 1;
  font-weight: 950;
  opacity: .08;
}
.lane-label { position: relative; }
.lane h3 { position: relative; max-width: 540px; margin: 0 0 18px; font-size: clamp(32px, 3.2vw, 48px); line-height: 1; letter-spacing: -.05em; }
.lane > p:not(.lane-label), .lane li { color: #526273; }
.lane ul { padding-left: 20px; }
.lane a { min-height: 44px; display: inline-flex; align-items: center; margin-top: 12px; font-weight: 900; text-underline-offset: 5px; }
.lane-sell { box-shadow: inset 0 6px 0 var(--sell); }
.lane-sell .lane-label, .lane-sell a { color: #b83a21; }
.lane-book { box-shadow: inset 0 6px 0 #16a981; }
.lane-book .lane-label, .lane-book a { color: #08795e; }

.system-section { padding: 105px max(24px, calc((100vw - var(--max)) / 2)); background: var(--mist); color: var(--ink); }
.section-heading.inverse > p:last-child { color: #536b79; }
.system-steps { margin: 48px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); border-top: 1px solid var(--line-light); }
.system-steps li { min-height: 220px; padding: 24px 22px; border-right: 1px solid var(--line-light); background: rgba(255,255,255,.48); }
.system-steps li:last-child { border-right: 0; }
.system-steps span { color: var(--trust-blue); font: 850 13px ui-monospace, SFMono-Regular, Menlo, monospace; text-transform: uppercase; letter-spacing: .13em; }
.system-steps p { color: #536b79; }
.ownership-strip { margin-top: 28px; padding: 22px; border: 1px solid rgba(11,129,101,.35); background: var(--surface); display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.ownership-strip p { margin: 0; }

.fit-section { display: grid; grid-template-columns: .82fr 1.18fr; gap: 76px; align-items: start; background: var(--warm-paper); }
.fit-copy { position: sticky; top: 24px; }
.no-guarantee { padding-top: 18px; border-top: 1px solid var(--line-light); font-size: 14px !important; }
.fit-form { padding: 30px; border: 1px solid var(--line-light); border-top: 6px solid var(--trust-blue); background: white; box-shadow: var(--shadow); }
.fit-form fieldset { margin: 0 0 24px; padding: 0; border: 0; }
.fit-form legend, .fit-form > label { display: block; margin-bottom: 12px; font-weight: 900; }
.fit-form fieldset label { min-height: 48px; display: flex; align-items: center; gap: 11px; padding: 10px 12px; border: 1px solid var(--line-light); margin-bottom: 8px; cursor: pointer; }
.fit-form input { width: 19px; height: 19px; accent-color: var(--navy); }
.fit-form select { width: 100%; min-height: 52px; padding: 11px 12px; border: 1px solid #6b7b8b; background: white; margin-bottom: 24px; }
.fit-form .button { width: 100%; border: 0; }
.fit-result { grid-column: 2; margin-top: -54px; padding: 26px 30px; background: var(--surface); color: var(--ink); border: 1px solid var(--line-light); border-left: 6px solid var(--receipt); box-shadow: var(--shadow); }
.fit-result[data-path="sell"] { border-left-color: var(--sell); }
.fit-result[data-path="book"] { border-left-color: var(--book); }
.fit-result h3 { margin: 0; font-size: 27px; }
.fit-result p { color: #536b79; }
.fit-result .result-note { font-size: 12px; color: var(--steel); }

.site-footer {
  padding: 48px max(24px, calc((100vw - var(--max)) / 2));
  background: #030b14;
  color: var(--paper);
  display: grid;
  grid-template-columns: 1.2fr .8fr 1fr;
  gap: 36px;
  align-items: start;
}
.site-footer p, .site-footer address { color: #93a8b3; font-style: normal; }
.site-footer .wordmark i { color: var(--paper); }
.footer-note { font-size: 12px; }

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

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; gap: 56px; }
  .route-map { min-height: 460px; }
  .system-steps { grid-template-columns: repeat(2,1fr); }
  .system-steps li:nth-child(2) { border-right: 0; }
  .system-steps li { border-bottom: 1px solid var(--line-light); }
  .fit-section { grid-template-columns: 1fr; gap: 36px; }
  .fit-copy { position: static; }
  .fit-result { grid-column: 1; margin-top: -12px; }
}

@media (max-width: 720px) {
  .site-header { align-items: flex-start; gap: 12px; }
  nav { justify-content: flex-end; flex-wrap: wrap; gap: 10px 14px; }
  nav a:not(.nav-action) { display: none; }
  .nav-action { padding-right: 12px; padding-left: 12px; }
  .hero { min-height: auto; padding-top: 64px; }
  .hero h1 { font-size: clamp(48px, 15vw, 72px); }
  .hero-actions { display: grid; }
  .button { width: 100%; }
  .route-map { min-height: 410px; gap: 10px; grid-template-rows: auto 24px auto auto auto; }
  .route-origin, .route-merge { padding: 14px 16px; }
  .route { padding: 16px 18px; }
  .route-origin, .route-merge { display: block; }
  .route-origin small, .route-merge small { display: block; margin-top: 4px; text-align: left; }
  .lane-grid, .ownership-strip, .site-footer { grid-template-columns: 1fr; }
  .lane { padding: 30px 24px; }
  .system-steps { grid-template-columns: 1fr; }
  .system-steps li { min-height: auto; border-right: 0; }
  .choice-band, .fit-section, .system-section { padding-top: 72px; padding-bottom: 72px; }
  .fit-form { padding: 24px 18px; }
}

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