:root {
  --ink: #102a2a;
  --muted: #5f716f;
  --cream: #f6f3e9;
  --paper: #fffdf8;
  --aqua: #bfe9de;
  --teal: #0c6b62;
  --teal-dark: #084c47;
  --coral: #e8684a;
  --line: #d9e0da;
  --shadow: 0 22px 60px rgba(16, 42, 42, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 16px/1.55 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: inherit; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }

.topbar { height: 76px; display: flex; align-items: center; justify-content: space-between; max-width: 1180px; margin: auto; padding: 0 28px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 750; text-decoration: none; letter-spacing: -.02em; }
.brand-mark { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 50% 50% 50% 12%; color: white; background: var(--teal); font-family: Georgia, serif; font-size: 20px; }
nav { display: flex; gap: 26px; }
nav a { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 650; }
nav a:hover { color: var(--teal); }

.hero { min-height: 620px; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 72px; max-width: 1180px; margin: auto; padding: 70px 28px 110px; }
.eyebrow { margin: 0 0 14px; color: var(--teal); font-size: 12px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
h1, h2, h3, p { text-wrap: pretty; }
h1, h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-weight: 500; line-height: .98; letter-spacing: -.045em; }
h1 { max-width: 730px; font-size: clamp(56px, 7.4vw, 98px); }
h2 { font-size: clamp(38px, 5vw, 60px); }
.lede { max-width: 610px; margin: 30px 0 24px; color: var(--muted); font-size: 20px; }
.text-link { color: var(--teal); font-weight: 750; text-decoration-thickness: 2px; text-underline-offset: 5px; }

.route-art { position: relative; min-height: 440px; border-radius: 48% 52% 42% 58% / 59% 39% 61% 41%; background: var(--aqua); overflow: hidden; box-shadow: inset 0 0 0 1px rgba(12,107,98,.08); }
.route-line { position: absolute; width: 410px; height: 280px; left: 2%; top: 17%; border: 5px dashed rgba(12,107,98,.65); border-color: rgba(12,107,98,.65) transparent transparent rgba(12,107,98,.65); border-radius: 55% 30% 60% 35%; transform: rotate(-16deg); }
.route-dot { position: absolute; width: 22px; height: 22px; z-index: 2; border: 5px solid var(--paper); border-radius: 50%; background: var(--coral); box-shadow: 0 4px 12px rgba(16,42,42,.2); }
.route-start { left: 12%; top: 65%; }
.route-end { right: 13%; top: 21%; background: var(--teal); }
.weather-chip { position: absolute; z-index: 3; padding: 10px 15px; border: 1px solid rgba(16,42,42,.08); border-radius: 999px; background: rgba(255,253,248,.94); box-shadow: 0 10px 26px rgba(16,42,42,.12); font-size: 13px; font-weight: 750; }
.chip-one { left: 20%; top: 21%; }
.chip-two { right: 14%; top: 46%; }
.chip-three { left: 30%; bottom: 14%; }

.planner-section { padding: 100px max(28px, calc((100vw - 1124px) / 2)); background: var(--cream); }
.section-heading { max-width: 720px; margin-bottom: 44px; }
.section-heading > p:last-child { color: var(--muted); font-size: 18px; }
.planner { display: grid; grid-template-columns: 1fr 1fr .8fr auto; gap: 14px; align-items: end; padding: 24px; border: 1px solid var(--line); border-radius: 22px; background: var(--paper); box-shadow: var(--shadow); }
label { display: grid; gap: 7px; color: var(--muted); font-size: 13px; font-weight: 750; }
input, textarea { width: 100%; min-width: 0; padding: 13px 14px; color: var(--ink); border: 1px solid #cad3cd; border-radius: 10px; background: white; outline: none; }
input:focus, textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(12,107,98,.12); }
.primary-button, .secondary-button { min-height: 48px; padding: 12px 20px; border: 0; border-radius: 10px; font-weight: 800; }
.primary-button { color: white; background: var(--teal); }
.primary-button:hover { background: var(--teal-dark); }
button:disabled { cursor: wait; opacity: .6; }
.form-note { grid-column: 1 / -1; margin: 2px 0 0; color: var(--muted); font-size: 12px; }
.status { min-height: 34px; margin-top: 22px; font-weight: 650; }
.status.loading { color: var(--teal); }
.status.error { padding: 12px 16px; color: #8c2f24; border-radius: 10px; background: #fff0ec; }

.results { scroll-margin-top: 28px; margin-top: 30px; padding: 34px; border-radius: 22px; background: var(--paper); box-shadow: var(--shadow); }
.result-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; padding-bottom: 25px; border-bottom: 1px solid var(--line); }
.result-heading h2 { font-size: 42px; }
#route-names { max-width: 650px; margin: 13px 0 0; color: var(--muted); }
.route-stats { display: flex; gap: 32px; flex: none; }
.route-stats div { display: grid; }
.route-stats strong { font-family: Georgia, serif; font-size: 28px; font-weight: 500; }
.route-stats span { color: var(--muted); font-size: 11px; font-weight: 750; text-transform: uppercase; }
.result-summary { margin: 26px 0; color: var(--teal-dark); font-weight: 700; }
.timeline { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; padding: 0; list-style: none; }
.timeline li { min-height: 132px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: white; }
.timeline time { color: var(--coral); font-size: 13px; font-weight: 850; text-transform: uppercase; }
.timeline p { margin: 13px 0 0; font-size: 14px; }
.result-disclaimer { margin: 24px 0 0; color: var(--muted); font-size: 12px; }

.how-it-works { display: grid; grid-template-columns: .8fr 1.2fr; gap: 72px; max-width: 1180px; margin: auto; padding: 120px 28px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.steps article { padding-top: 18px; border-top: 2px solid var(--teal); }
.steps span { color: var(--coral); font-size: 12px; font-weight: 850; }
.steps h3 { margin: 28px 0 8px; font-family: Georgia, serif; font-size: 25px; font-weight: 500; }
.steps p { margin: 0; color: var(--muted); font-size: 14px; }

.fleet { display: grid; grid-template-columns: 1.2fr .8fr; gap: 70px; align-items: center; max-width: 1124px; margin: 0 auto 120px; padding: 64px; border-radius: 32px; color: white; background: var(--teal-dark); }
.fleet .eyebrow { color: var(--aqua); }
.fleet-copy > p:not(.eyebrow), .fleet li { color: #c9dfda; }
.fleet ul { display: grid; gap: 8px; margin-top: 24px; padding-left: 20px; }
.price-card { padding: 30px; border-radius: 20px; color: var(--ink); background: var(--paper); }
.price-card > p { color: var(--muted); }
.price { display: flex; align-items: baseline; gap: 9px; }
.price strong { font-family: Georgia, serif; font-size: 56px; font-weight: 500; }
.price span { color: var(--muted); font-size: 13px; }
.secondary-button { width: 100%; color: white; background: var(--coral); }

dialog { width: min(560px, calc(100% - 32px)); padding: 0; border: 0; border-radius: 20px; box-shadow: var(--shadow); }
dialog::backdrop { background: rgba(6,28,27,.72); backdrop-filter: blur(3px); }
dialog form { position: relative; display: grid; gap: 16px; padding: 36px; }
dialog h2 { margin-bottom: 10px; font-size: 40px; }
.close-button { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border: 0; border-radius: 50%; color: var(--muted); background: var(--cream); font-size: 24px; line-height: 1; }
.honeypot { position: absolute; left: -10000px; }
.consent { grid-template-columns: auto 1fr; align-items: start; font-weight: 500; }
.consent input { width: auto; margin-top: 3px; }
.dialog-status { min-height: 22px; margin: 0; color: var(--teal); font-size: 13px; font-weight: 700; }

footer { display: flex; justify-content: space-between; gap: 40px; padding: 48px max(28px, calc((100vw - 1124px) / 2)); border-top: 1px solid var(--line); }
footer p { margin: 5px 0; color: var(--muted); font-size: 12px; }
.attribution { text-align: right; }
.legal-page main { min-height: calc(100vh - 76px); padding: 80px 28px; background: var(--cream); }
.legal-copy { max-width: 720px; margin: auto; padding: 50px; border-radius: 22px; background: var(--paper); box-shadow: var(--shadow); }
.legal-copy h1 { margin-bottom: 30px; font-size: clamp(44px, 7vw, 72px); }
.legal-copy p { color: var(--muted); }
.lead-table { margin: 28px 0; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--muted); font-size: 11px; text-transform: uppercase; }

@media (max-width: 900px) {
  .hero, .how-it-works, .fleet { grid-template-columns: 1fr; }
  .hero { gap: 38px; padding-top: 42px; }
  .route-art { min-height: 340px; }
  .planner { grid-template-columns: 1fr 1fr; }
  .planner button { min-height: 48px; }
  .fleet { margin-inline: 24px; padding: 42px; }
}

@media (max-width: 620px) {
  .topbar { height: 66px; padding: 0 18px; }
  nav { display: none; }
  .hero { min-height: auto; padding: 48px 20px 80px; }
  h1 { font-size: 53px; }
  .route-art { min-height: 280px; }
  .route-line { left: -22%; top: 8%; }
  .planner-section { padding: 74px 18px; }
  .planner { grid-template-columns: 1fr; padding: 18px; }
  .result-heading { align-items: start; flex-direction: column; }
  .route-stats { width: 100%; justify-content: space-between; }
  .results { padding: 24px 18px; }
  .how-it-works { padding: 90px 20px; }
  .steps { grid-template-columns: 1fr; }
  .fleet { gap: 36px; margin: 0 18px 80px; padding: 34px 24px; }
  footer { flex-direction: column; }
  .attribution { text-align: left; }
  .legal-copy { padding: 30px 22px; }
}
