:root {
  --bg: #f6f7f9; --card: #ffffff; --text: #1c1f24; --muted: #5d6673; --line: #e1e5ea;
  --accent: #a8462b; --accent-text: #ffffff; --free: #1e8e4f;
  --brand-dusk: #2a1d4b; --brand-plum: #5c2a5e; --brand-saffron: #f4a531;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #14171c; --card: #1d2229; --text: #e8ebef; --muted: #9aa4b1; --line: #2c333d; --accent: #f4a531; --accent-text: #2a1606; --free: #3ccb7a; }
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body.landing {
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--text); background: var(--bg);
  padding: calc(24px + env(safe-area-inset-top, 0)) 20px calc(32px + env(safe-area-inset-bottom, 0));
}
.hero { max-width: 620px; margin: 0 auto; text-align: center; }
.mascot { width: 180px; height: 180px; display: block; margin: 8px auto 4px; }
.hero-banner { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 318; object-fit: cover; border-radius: 16px; margin: 0 auto 16px; box-shadow: 0 8px 28px rgba(0,0,0,.18); }
h1 { margin: 0; font-size: 40px; letter-spacing: -.01em; }
.tag { margin: 2px 0 14px; color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: 13px; }
.lede { margin: 0 auto 26px; max-width: 520px; color: var(--muted); font-size: 17px; }

.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 28px; }
@media (max-width: 520px) { .choices { grid-template-columns: 1fr; } }
.choice {
  display: flex; flex-direction: column; gap: 6px; padding: 18px 16px; border-radius: 16px; text-decoration: none; color: var(--text);
  background: var(--card); border: 2px solid var(--line); min-height: 120px; justify-content: center; text-align: left;
  transition: transform .12s, border-color .12s;
}
.choice:hover { transform: translateY(-2px); }
.choice.free { border-color: var(--free); position: relative; }
.choice-badge {
  align-self: flex-start; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  color: #fff; background: var(--free); border-radius: 999px; padding: 3px 10px;
}
.choice.sub { border-color: var(--accent); }
.choice-title { font-size: 19px; font-weight: 800; }
.choice.free .choice-title { color: var(--free); }
.choice.sub .choice-title { color: var(--accent); }
.choice-sub { font-size: 14px; color: var(--muted); }

.how { text-align: left; margin: 0 auto 22px; padding: 0 0 0 22px; max-width: 520px; color: var(--muted); }
.how li { margin-bottom: 8px; }
.how b { color: var(--text); }
.foot { color: var(--muted); font-size: 14px; }
.foot a { color: var(--accent); }

.foot.fine { font-size: 12px; opacity: .8; }
footer.foot { margin-top: 28px; padding-top: 12px; border-top: 1px solid var(--line); line-height: 1.6; }

/* terms / privacy pages */
.doc-body { max-width: 680px; margin: 0 auto; text-align: left; }
.doc-home { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); text-decoration: none; font-weight: 700; margin-bottom: 18px; }
.doc h1 { font-size: 30px; margin: 0 0 4px; }
.doc-date { margin: 0 0 22px; color: var(--muted); font-size: 14px; }
.doc h2 { font-size: 19px; margin: 26px 0 8px; }
.doc p, .doc li { color: var(--text); }
.doc ul { padding-left: 22px; }
.doc li { margin-bottom: 8px; }
.doc a { color: var(--accent); }
.doc table { border-collapse: collapse; margin: 8px 0 12px; width: 100%; max-width: 420px; }
.doc th, .doc td { text-align: left; padding: 6px 10px; border-bottom: 1px solid var(--line); }
.doc th { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
.doc .foot { margin-top: 30px; }

/* public route pages */
.routes .lede-left { text-align: left; color: var(--muted); font-size: 17px; margin: 0 0 14px; }
.route-cta { display: flex; gap: 10px; flex-wrap: wrap; margin: 4px 0 18px; }
.doc .btn-cta { display: inline-block; padding: 12px 18px; border-radius: 12px; background: var(--accent); color: var(--accent-text); font-weight: 700; text-decoration: none; }
.doc .btn-cta.ghost { background: transparent; color: var(--accent); border: 2px solid var(--accent); }
.route-map { display: block; width: 100%; height: auto; max-width: 640px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; margin: 0 0 10px; }
.route-map circle { fill: var(--accent); stroke: var(--card); stroke-width: 2; }
.route-map .start circle { fill: var(--free); } .route-map .end circle { fill: #c8302f; }
.route-map text { fill: #fff; font: 700 12px system-ui, sans-serif; }
.route-ends { color: var(--muted); margin: 0 0 8px; }
.route-stops { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.route-stop { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.route-stop-head { display: flex; align-items: center; gap: 10px; }
.route-stop-head h3 { margin: 0; font-size: 18px; }
.route-stop-head .num { width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: var(--accent-text); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; flex: 0 0 auto; }
.route-stop-head .tag { font-size: 12px; background: color-mix(in srgb, #c7860a 20%, transparent); color: #c7860a; padding: 1px 8px; border-radius: 999px; }
.route-stop p { margin: 8px 0 0; }
.route-narr { color: var(--muted); font-style: italic; }
.route-meta { color: var(--muted); font-size: 14px; }
.route-cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.route-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 0; overflow: hidden; }
.route-card-banner { display: block; height: 160px; background: linear-gradient(135deg, #274060, #5aa5dc); position: relative; }
.route-card-banner img { display: block; width: 100%; height: 100%; object-fit: cover; }
.route-card.no-image .route-card-banner { display: grid; place-items: center; color: #fff; font: 700 20px/1.2 system-ui, sans-serif; text-shadow: 0 1px 3px rgba(0,0,0,.4); }
.route-card-body { padding: 12px 16px 14px; }
.photo-credit { font-size: 11px; color: var(--muted); margin: -6px 0 12px; }
.photo-credit.small { margin: 0 0 4px; font-size: 10px; }
.photo-credit a, .route-card .photo-credit a { color: var(--muted); font-size: inherit; font-weight: inherit; text-decoration: underline; }
/* tall photos: whole, on a blurred copy of themselves */
.route-card-banner, .route-hero-frame { overflow: hidden; }
.has-tall { position: relative; background: #1d2229; }
.has-tall::before { content: ""; position: absolute; inset: -24px; background: var(--photo) center / cover no-repeat; filter: blur(18px) brightness(.7); }
img.tall { position: relative; object-fit: contain !important; }
.route-hero-frame { position: relative; max-width: 640px; height: 260px; border-radius: 14px; border: 1px solid var(--line); margin: 0 0 12px; }
.route-hero-frame .route-hero { width: 100%; height: 100%; max-width: none; margin: 0; border: 0; border-radius: 0; }
.route-hero { display: block; width: 100%; max-width: 640px; height: 260px; object-fit: cover; border-radius: 14px; border: 1px solid var(--line); margin: 0 0 12px; }
@media (min-width: 720px) { .route-cards { grid-template-columns: 1fr 1fr; } }
.route-card a { color: var(--accent); text-decoration: none; font-size: 18px; }
.route-card p { margin: 6px 0; }

.library-cta { display: flex; flex-direction: column; gap: 2px; margin: 22px 0 6px; padding: 16px 18px; border-radius: 14px; text-decoration: none; border: 2px dashed var(--accent); color: var(--text); }
.library-cta .cta-q { font-weight: 700; font-size: 17px; }
.library-cta .cta-a { color: var(--accent); font-weight: 600; }
.library-cta:hover .cta-a { text-decoration: underline; }
