:root {
  --ink: #16201c;
  --muted: #68716d;
  --paper: #f4f1e8;
  --white: #fffdf8;
  --lime: #dfff43;
  --green: #174b3b;
  --blue: #2767f0;
  --line: #d7d8d1;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Arial, Helvetica, sans-serif; }
a { color: inherit; }
svg { display: block; }
[hidden] { display: none !important; }

.skip-link { position: fixed; left: 12px; top: -60px; z-index: 100; padding: 12px 16px; border-radius: 8px; background: white; color: var(--ink); font-weight: 800; }
.skip-link:focus { top: 12px; }
.site-header { height: 78px; padding: 0 5vw; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,.18); position: absolute; inset: 0 0 auto; z-index: 10; color: white; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 900; letter-spacing: .08em; font-size: .84rem; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 auto; background: var(--lime); color: var(--ink); border-radius: 50%; font-weight: 950; }
nav { display: flex; align-items: center; gap: 28px; font-size: .85rem; font-weight: 700; }
nav a { text-decoration: none; }
.nav-download { border: 1px solid rgba(255,255,255,.6); border-radius: 999px; padding: 10px 16px; }

.hero { min-height: 760px; padding: 150px 5vw 70px; background: var(--green); color: white; display: grid; grid-template-columns: minmax(0,1.05fr) minmax(360px,.95fr); align-items: center; gap: 6vw; overflow: hidden; }
.hero-copy { max-width: 720px; }
.kicker { text-transform: uppercase; letter-spacing: .16em; font-size: .72rem; font-weight: 900; color: #467763; margin: 0 0 18px; }
.hero .kicker, .final-cta .kicker { color: var(--lime); }
h1 { font-size: clamp(4.3rem,8vw,8.3rem); line-height: .82; letter-spacing: -.075em; margin: 0; max-width: 840px; }
h1 em { color: var(--lime); font-family: Georgia, serif; font-weight: 400; }
.hero-intro { max-width: 590px; font-size: 1.17rem; line-height: 1.65; color: #dce9e3; margin: 32px 0; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.button { min-height: 52px; padding: 0 20px; border-radius: 999px; display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: .88rem; font-weight: 850; }
.button-primary { background: var(--lime); color: var(--ink); }
.button-ghost { border: 1px solid rgba(255,255,255,.4); }
.hero-stats { display: flex; gap: 36px; margin: 46px 0 0; }
.hero-stats div { border-left: 1px solid rgba(255,255,255,.25); padding-left: 14px; }
.hero-stats dt { color: #afc9be; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; }
.hero-stats dd { margin: 5px 0 0; font-size: 1.25rem; font-weight: 900; }

.hero-map { min-height: 520px; position: relative; background: #123b30; border: 1px solid rgba(255,255,255,.14); border-radius: 50% 50% 46% 54%/42% 46% 54% 58%; display: grid; place-items: center; transform: rotate(-3deg); }
.hero-map::before, .hero-map::after { content: ""; position: absolute; inset: 8%; border: 1px solid rgba(255,255,255,.08); border-radius: 42% 58% 53% 47%; }
.hero-map::after { inset: 17%; border-radius: 61% 39% 43% 57%; }
.hero-map svg { width: 84%; position: relative; z-index: 2; transform: rotate(3deg); }
.map-route { fill: none; stroke: var(--lime); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.map-shadow { fill: none; stroke: rgba(0,0,0,.25); stroke-width: 8; }
.map-label { position: absolute; z-index: 3; font-size: .72rem; color: #c1d6cd; transform: rotate(3deg); }
.map-label-start { top: 12%; left: 46%; display: flex; align-items: center; gap: 7px; }
.map-label-start span { width: 10px; height: 10px; background: white; border: 3px solid var(--blue); border-radius: 50%; }
.map-label-river { right: 8%; bottom: 30%; font-family: Georgia, serif; font-style: italic; }
.featured-badge { position: absolute; bottom: 5%; left: 4%; z-index: 4; display: grid; grid-template-columns: 44px 1fr; background: var(--white); color: var(--ink); padding: 14px 18px; border-radius: 12px; transform: rotate(3deg); box-shadow: 0 15px 40px rgba(0,0,0,.2); }
.featured-badge span { grid-row: 1/3; color: var(--blue); font-size: 1.4rem; font-weight: 950; }
.featured-badge strong { font-size: .9rem; }
.featured-badge small { color: var(--muted); }

.hero-solo { grid-template-columns: 1fr; min-height: auto; padding-bottom: 90px; }
.hero-solo .hero-copy { max-width: 780px; }

.intro-strip { max-width: 1200px; margin: 0 auto; padding: 26px 24px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.intro-strip p { display: flex; align-items: center; gap: 12px; margin: 0; font-size: .84rem; font-weight: 750; }
.intro-strip span { color: var(--blue); font-weight: 950; }

.routes-section { padding: 100px 5vw; max-width: 1440px; margin: auto; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 50px; margin-bottom: 42px; }
h2 { font-size: clamp(2.7rem,5vw,5.1rem); line-height: .98; letter-spacing: -.055em; margin: 0; }
.section-heading > p { max-width: 470px; color: var(--muted); line-height: 1.65; }
.route-tools { display: grid; grid-template-columns: 1.6fr repeat(3,1fr); gap: 10px; padding: 14px; margin-bottom: 16px; background: #e8e4d9; border: 1px solid #d2d1ca; border-radius: 16px; }
.route-tools label { min-width: 0; display: flex; flex-direction: column; gap: 7px; color: var(--muted); font-size: .65rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.route-tools input, .route-tools select { width: 100%; height: 44px; padding: 0 13px; border: 1px solid #c9cbc4; border-radius: 10px; background: var(--white); color: var(--ink); font: 700 .83rem Arial, Helvetica, sans-serif; outline: none; }
.route-tools input:focus, .route-tools select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(39,103,240,.14); }
.results-line { margin: 18px 2px; color: var(--muted); font-size: .78rem; }
.results-line strong { color: var(--blue); font-size: 1rem; }
.route-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.route-card { min-height: 390px; padding: 24px; border-radius: 18px; background: var(--white); border: 1px solid var(--line); display: flex; flex-direction: column; position: relative; overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.route-card:hover { transform: translateY(-4px); box-shadow: 0 18px 45px rgba(23,75,59,.09); }
.route-card::after { content: ""; position: absolute; width: 140px; height: 140px; border-radius: 50%; border: 22px solid rgba(23,75,59,.04); right: -55px; top: 78px; }
.route-1, .route-11 { grid-column: span 2; background: var(--green); color: white; }
.route-1 .route-best, .route-11 .route-best, .route-1 .route-card-footer > span, .route-11 .route-card-footer > span { color: #c9dbd3; }
.route-1 .difficulty, .route-11 .difficulty { border-color: rgba(255,255,255,.25); }
.route-1 .consensus, .route-11 .consensus { color: var(--lime); }
.route-snapshot { position: relative; z-index: 2; margin-top: 14px; border-radius: 12px; background: rgba(104,113,109,.07); overflow: hidden; }
.route-snapshot svg { width: 100%; height: 82px; display: block; }
.snapshot-shadow { fill: none; stroke: rgba(0,0,0,.12); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.snapshot-route { fill: none; stroke: var(--blue); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.snapshot-start { fill: var(--white); stroke: var(--blue); stroke-width: 1.5; }
.route-1 .route-snapshot, .route-11 .route-snapshot { background: rgba(255,255,255,.08); }
.route-1 .snapshot-shadow, .route-11 .snapshot-shadow { stroke: rgba(0,0,0,.3); }
.route-1 .snapshot-route, .route-11 .snapshot-route { stroke: var(--lime); }
.route-1 .snapshot-start, .route-11 .snapshot-start { fill: var(--green); stroke: var(--lime); }
.route-card-top { display: flex; justify-content: space-between; align-items: center; }
.route-number { font-size: 1.35rem; font-weight: 950; color: var(--blue); }
.route-1 .route-number, .route-11 .route-number { color: var(--lime); }
.difficulty { border: 1px solid var(--line); padding: 6px 10px; border-radius: 999px; font-size: .67rem; font-weight: 800; }
.consensus { margin: 44px 0 8px; color: var(--green); text-transform: uppercase; letter-spacing: .1em; font-size: .65rem; font-weight: 900; }
.route-card h3 { max-width: 520px; font-size: 1.8rem; letter-spacing: -.035em; line-height: 1.05; margin: 0; }
.route-1 h3, .route-11 h3 { font-size: 2.45rem; }
.route-metrics { display: flex; gap: 24px; margin-top: 26px; }
.route-metrics div { display: flex; align-items: baseline; gap: 5px; }
.route-metrics strong { font-size: 1.3rem; }
.route-metrics span { color: var(--muted); font-size: .68rem; text-transform: uppercase; letter-spacing: .07em; }
.route-1 .route-metrics span, .route-11 .route-metrics span { color: #a8c4b8; }
.route-best { color: var(--muted); font-size: .87rem; line-height: 1.5; margin: 15px 0 30px; max-width: 450px; }
.route-details { position: relative; z-index: 3; margin: -16px 0 22px; padding: 15px; background: rgba(104,113,109,.08); border-radius: 10px; font-size: .8rem; line-height: 1.5; }
.route-details-label { font-weight: 900; }
.route-details p { margin: 0 0 12px; }
.route-details dl { display: grid; grid-template-columns: 65px 1fr; gap: 6px 10px; margin: 0 0 12px; }
.route-details dt { font-weight: 900; }
.route-details dd { margin: 0; color: var(--muted); }
.route-1 .route-details dd, .route-11 .route-details dd { color: #c9dbd3; }
.route-details a { font-weight: 900; }
.route-card-footer { margin-top: auto; padding-top: 16px; border-top: 1px solid rgba(104,113,109,.22); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.route-card-footer > span { color: var(--muted); font-size: .72rem; }
.route-card-footer div { display: flex; gap: 7px; position: relative; z-index: 2; }
.route-card-footer a { min-width: 52px; padding: 8px 10px; border: 1px solid currentColor; border-radius: 999px; text-decoration: none; text-align: center; font-size: .68rem; font-weight: 900; }
.empty-state { min-height: 260px; border: 1px dashed #b9bbb5; border-radius: 18px; display: grid; place-items: center; align-content: center; gap: 15px; color: var(--muted); }
.empty-state button { border: 0; border-radius: 999px; padding: 11px 16px; background: var(--blue); color: white; font-weight: 900; cursor: pointer; }
.load-error, .noscript { padding: 24px; border-radius: 12px; background: #fff3d0; color: #5e4a12; }

.city-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.city-card { padding: 24px; border-radius: 18px; background: var(--white); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: inherit; transition: transform .2s ease, box-shadow .2s ease; }
.city-card:hover { transform: translateY(-4px); box-shadow: 0 18px 45px rgba(23,75,59,.09); }
.city-card-top { display: flex; justify-content: space-between; align-items: center; }
.city-number { font-size: 1.35rem; font-weight: 950; color: var(--blue); }
.city-status { border: 1px solid var(--line); padding: 6px 10px; border-radius: 999px; font-size: .67rem; font-weight: 800; color: var(--muted); }
.city-card h3 { font-size: 1.8rem; letter-spacing: -.035em; line-height: 1.05; margin: 6px 0 0; }
.city-card-state { color: var(--muted); margin: 0; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 800; }
.city-card-stat { color: var(--muted); font-size: .87rem; line-height: 1.5; margin: 0; }
.city-card-cta { margin-top: auto; padding-top: 16px; border-top: 1px solid rgba(104,113,109,.22); font-size: .8rem; font-weight: 900; }
.city-card-live { background: var(--green); color: white; border-color: transparent; }
.city-card-live .city-number { color: var(--lime); }
.city-card-live .city-status { border-color: rgba(255,255,255,.25); color: white; }
.city-card-live .city-card-state, .city-card-live .city-card-stat { color: #c9dbd3; }
.city-card-live .city-card-cta { border-top-color: rgba(255,255,255,.25); }

.use-section { max-width: 1300px; margin: 0 auto 100px; padding: 70px 5vw; display: grid; grid-template-columns: .9fr 1.1fr; gap: 9vw; background: #e8e4d9; border-radius: 24px; }
.use-section ol { margin: 0; padding: 0; list-style: none; }
.use-section li { padding: 20px 0; border-bottom: 1px solid #c6c7c0; display: grid; grid-template-columns: 44px 1fr; gap: 18px; }
.use-section li > span { width: 36px; height: 36px; background: var(--blue); color: white; border-radius: 50%; display: grid; place-items: center; font-weight: 900; }
.use-section strong { display: block; font-size: 1.05rem; margin-bottom: 5px; }
.use-section li p { color: var(--muted); margin: 0; line-height: 1.5; }

.ride-smart { max-width: 1300px; margin: 0 auto 100px; padding: 0 5vw; display: grid; grid-template-columns: .45fr 1.1fr .7fr; gap: 4vw; align-items: start; }
.ride-smart h2 { font-size: clamp(2.2rem,4vw,4.2rem); }
.ride-smart div > p { color: var(--muted); line-height: 1.65; max-width: 680px; }
.smart-links { display: grid; gap: 10px; }
.smart-links a { display: flex; justify-content: space-between; gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 900; }

.final-cta { margin: 0 5vw; padding: 90px 6vw; background: var(--blue); color: white; border-radius: 28px; display: flex; flex-direction: column; align-items: flex-start; }
.final-cta h2 { max-width: 790px; margin-bottom: 30px; }
.button-light { background: white; color: var(--blue); }

footer { padding: 65px 5vw 34px; display: grid; grid-template-columns: .5fr 1fr 1.2fr; gap: 40px; align-items: start; }
footer > div { display: flex; align-items: center; gap: 10px; }
footer p { margin: 0; color: var(--muted); line-height: 1.6; font-size: .82rem; }
.fine-print { border-left: 1px solid var(--line); padding-left: 28px; }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; padding-top: 135px; }
  .hero-map { min-height: 460px; width: min(620px,100%); margin: 0 auto; }
  .route-grid, .city-grid { grid-template-columns: repeat(2,1fr); }
  .route-tools { grid-template-columns: 1fr 1fr; }
  .route-1, .route-11 { grid-column: span 2; }
  .use-section { border-radius: 0; grid-template-columns: 1fr; }
  .ride-smart { grid-template-columns: 1fr 1fr; }
  .ride-smart > .kicker { grid-column: 1 / -1; }
  footer { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .site-header { height: 68px; }
  nav a:not(.nav-download) { display: none; }
  .nav-download { padding: 8px 12px; }
  .hero { min-height: auto; padding: 118px 20px 52px; }
  h1 { font-size: clamp(3.8rem,18vw,5.4rem); }
  .hero-intro { font-size: 1rem; }
  .hero-stats { gap: 18px; flex-wrap: wrap; }
  .hero-map { min-height: 350px; }
  .featured-badge { left: 0; }
  .intro-strip { grid-template-columns: 1fr; }
  .routes-section { padding: 76px 20px; }
  .section-heading { display: block; }
  .section-heading > p { margin-top: 22px; }
  .route-grid, .city-grid { grid-template-columns: 1fr; }
  .route-tools { grid-template-columns: 1fr; padding: 12px; }
  .route-1, .route-11 { grid-column: span 1; }
  .route-card { min-height: 360px; }
  .route-1 h3, .route-11 h3 { font-size: 2rem; }
  .use-section { margin-bottom: 70px; padding: 58px 20px; }
  .ride-smart { grid-template-columns: 1fr; padding: 0 20px; }
  .final-cta { margin: 0; border-radius: 0; padding: 70px 20px; }
  footer { grid-template-columns: 1fr; padding: 46px 20px 30px; }
  .fine-print { border-left: 0; padding-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .route-card { transition: none; }
}
