:root {
  --ink: #17201d;
  --muted: #64706c;
  --paper: #f5f4ee;
  --card: #fffef8;
  --line: #d9ddd5;
  --acid: #d7f43b;
  --green: #134e43;
  --orange: #ff6433;
  --shadow: 0 20px 60px rgba(23, 32, 29, .09);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
button, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 1000; padding: 10px 14px; background: #fff; border-radius: 10px; }
.skip-link:focus { top: 12px; }
.shell { width: min(1240px, calc(100% - 48px)); margin-inline: auto; }

.site-header { position: sticky; top: 0; z-index: 500; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 78px; padding: 12px 32px; border-bottom: 1px solid rgba(23,32,29,.1); background: rgba(245,244,238,.91); backdrop-filter: blur(18px); }
.brand { display: inline-flex; align-items: center; gap: 10px; width: max-content; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 39px; height: 39px; border-radius: 12px; background: var(--green); color: var(--acid); font-weight: 900; font-style: italic; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 14px; letter-spacing: .08em; }
.brand small { margin-top: 2px; color: var(--muted); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.top-nav { display: flex; gap: 6px; padding: 5px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.55); }
.nav-button { border: 0; padding: 10px 16px; border-radius: 10px; background: transparent; color: var(--muted); cursor: pointer; font-size: 13px; font-weight: 700; }
.nav-button.is-active { color: var(--ink); background: #fff; box-shadow: 0 3px 12px rgba(23,32,29,.08); }
.privacy-pill { justify-self: end; display: inline-flex; align-items: center; gap: 8px; padding: 8px 11px; border: 1px solid var(--line); border-radius: 999px; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.privacy-pill i { width: 7px; height: 7px; border-radius: 50%; background: #3bb878; box-shadow: 0 0 0 4px rgba(59,184,120,.12); }

.hero { display: grid; grid-template-columns: 1.3fr .7fr; align-items: center; min-height: 470px; padding-block: 74px 54px; }
.eyebrow, .section-kicker { margin: 0 0 14px; color: var(--green); font-size: 11px; font-weight: 850; letter-spacing: .15em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 24px; max-width: 780px; font-size: clamp(44px, 6vw, 82px); line-height: .98; letter-spacing: -.065em; }
h1 em { color: var(--green); font-style: normal; }
.hero-copy { max-width: 610px; color: var(--muted); font-size: 17px; line-height: 1.72; }
.hero-orbit { position: relative; justify-self: end; width: min(360px, 32vw); aspect-ratio: 1; }
.orbit-ring { position: absolute; inset: 12%; border: 1px solid rgba(19,78,67,.3); border-radius: 50%; box-shadow: inset 0 0 0 22px rgba(215,244,59,.11), 0 0 0 50px rgba(255,255,255,.24); }
.orbit-ring::before, .orbit-ring::after { content: ""; position: absolute; background: var(--green); border-radius: 50%; }
.orbit-ring::before { width: 10px; height: 10px; left: 10%; top: 16%; }
.orbit-ring::after { width: 15px; height: 15px; right: -3%; bottom: 28%; background: var(--orange); }
.bike-glyph { position: absolute; inset: 30%; display: grid; place-items: center; border-radius: 50%; background: var(--acid); color: var(--green); font-size: 64px; transform: rotate(-8deg); }
.orbit-label { position: absolute; padding: 8px 11px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); box-shadow: 0 8px 25px rgba(23,32,29,.07); font: 750 11px/1 monospace; }
.orbit-label-a { left: 0; top: 48%; }
.orbit-label-b { right: 7%; top: 10%; }
.orbit-label-c { right: -3%; bottom: 12%; }

.workspace { display: grid; grid-template-columns: 330px 1fr; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); overflow: hidden; }
.selector-panel { padding: 30px; border-right: 1px solid var(--line); background: #eef0e8; }
.selector-panel h2, .panel-heading h2, .catalog h2, .evidence-panel h2 { margin-bottom: 0; font-size: 25px; letter-spacing: -.035em; }
.field-group { margin-top: 24px; }
.field-group label { display: block; margin-bottom: 8px; color: var(--muted); font-size: 12px; font-weight: 760; }
select { width: 100%; height: 48px; padding: 0 40px 0 14px; border: 1px solid var(--line); border-radius: 11px; background: #fff; color: var(--ink); outline: none; }
select:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(19,78,67,.1); }
select:disabled { color: #9aa29e; background: #f4f5f0; }
.primary-button { display: flex; align-items: center; justify-content: space-between; width: 100%; margin-top: 18px; padding: 13px 16px; border: 0; border-radius: 11px; background: var(--green); color: #fff; font-weight: 800; cursor: pointer; }
.primary-button span { color: var(--acid); font-size: 20px; }
.primary-button:disabled { opacity: .42; cursor: not-allowed; }
.helper { margin: 12px 0 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.selected-stack { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.stack-heading { display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.selected-item { display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 10px; margin-top: 12px; padding: 10px; border-radius: 11px; background: #fff; }
.mini-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; background: var(--model-color, var(--acid)); font-weight: 900; }
.selected-item strong, .selected-item small { display: block; }
.selected-item strong { font-size: 12px; }
.selected-item small { margin-top: 2px; color: var(--muted); font-size: 10px; }
.icon-button { border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 18px; }

.compare-panel { min-width: 0; padding: 30px; }
.panel-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.text-button { border: 0; background: transparent; color: var(--muted); font-size: 12px; font-weight: 750; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.empty-state { display: grid; place-items: center; min-height: 420px; padding: 40px; text-align: center; }
.empty-bike { display: grid; place-items: center; width: 80px; height: 80px; margin-bottom: 18px; border: 1px dashed var(--green); border-radius: 50%; color: var(--green); background: rgba(215,244,59,.19); font-size: 31px; }
.empty-state h3 { margin-bottom: 8px; font-size: 20px; }
.empty-state p { max-width: 420px; margin-bottom: 20px; color: var(--muted); line-height: 1.6; }
.quick-add { padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; cursor: pointer; font-weight: 700; font-size: 12px; }
.compare-table-wrap { margin-top: 28px; overflow-x: auto; }
.compare-table { width: 100%; min-width: 620px; border-collapse: collapse; }
.compare-table th, .compare-table td { padding: 17px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.compare-table thead th { padding-top: 5px; font-size: 14px; }
.compare-table thead th:first-child { width: 150px; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.compare-table tbody th { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .07em; }
.compare-table td { font-size: 14px; font-weight: 680; }
.compare-table td small { display: block; margin-top: 5px; color: var(--muted); font-weight: 500; line-height: 1.35; }
.table-model { display: flex; align-items: center; gap: 9px; }
.status-badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 8px; border-radius: 999px; font-size: 10px; font-weight: 800; }
.status-badge.yes { color: #0d5c45; background: #e0f6e8; }
.status-badge.partial { color: #80531e; background: #f8eed7; }

.catalog { padding-block: 76px 90px; }
.catalog-filter { display: flex; gap: 7px; flex-wrap: wrap; justify-content: flex-end; }
.filter-chip, .city-tab { padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--muted); font-size: 11px; font-weight: 750; cursor: pointer; }
.filter-chip.is-active, .city-tab.is-active { border-color: var(--green); background: var(--green); color: #fff; }
.model-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 26px; }
.model-card { position: relative; min-height: 280px; padding: 22px; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--card); transition: transform .2s ease, box-shadow .2s ease; }
.model-card:hover { transform: translateY(-4px); box-shadow: 0 14px 40px rgba(23,32,29,.08); }
.model-card::after { content: attr(data-mark); position: absolute; right: -5px; bottom: -28px; color: var(--model-color); font-size: 130px; font-weight: 950; line-height: 1; opacity: .45; transform: rotate(-9deg); }
.model-topline { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.model-card h3 { margin: 27px 0 4px; max-width: 70%; font-size: 24px; letter-spacing: -.04em; }
.model-card .brand-name { color: var(--muted); font-size: 12px; }
.spec-row { display: flex; gap: 18px; margin-top: 34px; }
.spec-row div { position: relative; z-index: 2; }
.spec-row strong, .spec-row span { display: block; }
.spec-row strong { font-size: 17px; }
.spec-row span { margin-top: 3px; color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .07em; }
.card-add { position: absolute; z-index: 3; right: 16px; top: 52px; display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--green); color: var(--acid); cursor: pointer; font-size: 19px; }
.card-add:disabled { background: #acb2ae; color: #fff; cursor: default; }

.subhero { padding-block: 84px 52px; }
.subhero h1 { max-width: 960px; }
.subhero > p:last-child { max-width: 720px; color: var(--muted); line-height: 1.75; }
.safety-layout { display: grid; grid-template-columns: 390px 1fr; gap: 20px; padding-bottom: 90px; }
.standard-cards { display: grid; gap: 16px; }
.standard-card { position: relative; min-height: 295px; padding: 30px; border-radius: var(--radius); overflow: hidden; }
.standard-card > * { position: relative; z-index: 2; }
.standard-card .standard-number { position: absolute; right: 16px; top: 2px; z-index: 1; color: rgba(23,32,29,.08); font-size: 110px; font-weight: 950; }
.standard-card > p:first-of-type { margin-top: 70px; margin-bottom: 4px; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }
.standard-card h2 { margin-bottom: 14px; font-size: 40px; letter-spacing: -.06em; }
.standard-card p { line-height: 1.55; }
.standard-card a { display: inline-block; margin-top: 14px; font-size: 12px; font-weight: 780; text-underline-offset: 4px; }
.accent-card { background: var(--acid); }
.dark-card { color: #fff; background: var(--green); }
.dark-card .standard-number { color: rgba(255,255,255,.08); }
.evidence-panel { padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.verified-date { color: var(--muted); font-size: 11px; }
.legend { display: flex; gap: 18px; margin: 24px 0 13px; color: var(--muted); font-size: 11px; }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.dot { width: 8px; height: 8px; border-radius: 50%; }
.dot.verified { background: #24a271; }
.dot.partial { background: #dda94b; }
.evidence-row { display: grid; grid-template-columns: minmax(170px, 1fr) 120px 120px 34px; align-items: center; gap: 12px; padding: 16px 0; border-top: 1px solid var(--line); }
.evidence-model strong, .evidence-model small { display: block; }
.evidence-model strong { font-size: 13px; }
.evidence-model small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.evidence-link { text-decoration: none; text-align: center; }
.evidence-link:hover { color: var(--orange); }
.method-note { margin-top: 24px; padding: 18px; border-left: 3px solid var(--orange); background: #f7f1e7; }
.method-note strong { font-size: 12px; }
.method-note p { margin: 6px 0 0; color: var(--muted); font-size: 11px; line-height: 1.7; }

.route-shell { display: grid; grid-template-columns: 410px 1fr; min-height: calc(100vh - 144px); padding-top: 54px; }
.route-sidebar { padding: 24px 28px 40px 0; }
.route-sidebar h1 { margin-bottom: 30px; font-size: clamp(40px, 4.5vw, 64px); }
.city-tabs { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 24px; }
.route-list { display: grid; gap: 10px; }
.route-item { width: 100%; padding: 15px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); cursor: pointer; text-align: left; }
.route-item.is-active { border-color: var(--green); box-shadow: inset 4px 0 0 var(--acid); }
.route-item-top { display: flex; justify-content: space-between; gap: 12px; }
.route-item strong { font-size: 13px; }
.route-item .miles { color: var(--green); font: 800 11px/1 monospace; }
.route-item p { margin: 7px 0 0; color: var(--muted); font-size: 10px; line-height: 1.4; }
.map-column { position: sticky; top: 98px; height: calc(100vh - 122px); min-height: 620px; }
#map { width: 100%; height: 100%; min-height: 620px; border-radius: var(--radius); background: #dce5dd; box-shadow: var(--shadow); }
.map-status { position: absolute; z-index: 450; left: 14px; top: 14px; padding: 8px 10px; border-radius: 9px; background: rgba(255,255,255,.92); color: var(--muted); font-size: 10px; box-shadow: 0 5px 20px rgba(23,32,29,.11); }
.route-detail { position: absolute; z-index: 450; left: 18px; right: 18px; bottom: 18px; display: grid; grid-template-columns: 1.2fr 1fr auto; align-items: end; gap: 20px; padding: 20px; border-radius: 17px; background: rgba(255,254,248,.94); box-shadow: 0 14px 50px rgba(23,32,29,.18); backdrop-filter: blur(15px); }
.route-detail h2 { margin-bottom: 6px; font-size: 22px; letter-spacing: -.04em; }
.route-detail p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.route-metrics { display: flex; gap: 18px; }
.route-metrics strong, .route-metrics span { display: block; }
.route-metrics strong { font-size: 15px; }
.route-metrics span { margin-top: 3px; color: var(--muted); font-size: 9px; text-transform: uppercase; }
.source-button { padding: 11px 13px; border-radius: 10px; background: var(--green); color: #fff; text-decoration: none; font-size: 11px; font-weight: 760; white-space: nowrap; }
.route-disclaimer { display: flex; gap: 24px; padding-block: 24px 70px; }
.route-disclaimer strong { white-space: nowrap; font-size: 12px; }
.route-disclaimer p { max-width: 780px; color: var(--muted); font-size: 11px; line-height: 1.65; }

.site-footer { display: flex; justify-content: space-between; gap: 20px; padding-block: 22px 32px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .09em; }
.toast { position: fixed; z-index: 1000; left: 50%; bottom: 26px; transform: translate(-50%, 20px); padding: 11px 15px; border-radius: 999px; background: var(--ink); color: #fff; opacity: 0; pointer-events: none; transition: .25s ease; font-size: 12px; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 980px) {
  .site-header { grid-template-columns: 1fr auto; padding-inline: 20px; }
  .top-nav { grid-column: 1 / -1; order: 3; justify-content: stretch; margin-top: 8px; overflow-x: auto; }
  .nav-button { flex: 1 0 auto; }
  .privacy-pill { display: none; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-orbit { display: none; }
  .workspace, .safety-layout { grid-template-columns: 1fr; }
  .selector-panel { border-right: 0; border-bottom: 1px solid var(--line); }
  .model-grid { grid-template-columns: repeat(2, 1fr); }
  .route-shell { grid-template-columns: 330px 1fr; }
  .route-detail { grid-template-columns: 1fr; align-items: start; }
}

@media (max-width: 720px) {
  .shell { width: min(100% - 28px, 1240px); }
  .site-header { min-height: 68px; padding: 10px 14px; }
  .brand small { display: none; }
  .top-nav { width: calc(100vw - 28px); }
  .hero { padding-block: 54px 34px; }
  h1 { font-size: 45px; }
  .hero-copy { font-size: 15px; }
  .workspace { border-radius: 16px; }
  .selector-panel, .compare-panel, .evidence-panel { padding: 22px; }
  .selected-stack { margin-top: 22px; }
  .catalog { padding-block: 54px 64px; }
  .catalog .panel-heading { align-items: flex-start; flex-direction: column; }
  .catalog-filter { justify-content: flex-start; }
  .model-grid { grid-template-columns: 1fr; }
  .model-card { min-height: 245px; }
  .safety-layout { padding-bottom: 60px; }
  .standard-card { min-height: 255px; }
  .evidence-row { grid-template-columns: 1fr 92px 92px 24px; gap: 7px; }
  .status-badge { justify-content: center; padding: 6px; font-size: 9px; }
  .route-shell { display: block; padding-top: 44px; }
  .route-sidebar { padding: 0 0 22px; }
  .route-sidebar h1 { font-size: 45px; }
  .map-column { position: relative; top: auto; height: 600px; min-height: 0; }
  #map { min-height: 600px; border-radius: 16px; }
  .route-detail { left: 10px; right: 10px; bottom: 10px; padding: 16px; gap: 12px; }
  .route-metrics { gap: 12px; }
  .source-button { justify-self: start; }
  .route-disclaimer { flex-direction: column; gap: 6px; padding-bottom: 50px; }
  .site-footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
