/*
 * The public pages wear the app's own clothes.
 *
 * Same palette, same Inter, same 4px geometry — a route page that looks like
 * a different product is a route page nobody trusts enough to click through
 * from. This is a small standalone sheet rather than the app's bundle because
 * these pages are server-rendered and must paint before any JavaScript exists,
 * which is the entire point of them.
 */

:root {
  --bg:        #faf7f3;
  --card:      #ffffff;
  --ink:       #2a1c12;
  --muted:     #6b5844;
  --hair:      rgba(51, 34, 22, .10);
  --line:      rgba(51, 34, 22, .07);
  --brand:     #be5103;
  --brand-ink: #ab4903;   /* the same orange as TEXT — #be5103 fails AA on a tint */
  --tint:      #fbefe6;
  --shell:     #332216;
  --surface-2: #f3ece4;
  --ok:        #147a4a;
  --r:         4px;
  --lift:      0 1px 2px rgba(51, 34, 22, .06), 0 6px 18px rgba(51, 34, 22, .05);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16.5px/1.62 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand-ink); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── the bar ─────────────────────────────────────────────────────────── */
.top {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  max-width: 1000px; margin: 0 auto; padding: 18px 20px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font: 700 20px/1 Inter, sans-serif; letter-spacing: -.02em; color: var(--ink);
}
.brand:hover { text-decoration: none; }
/* the middle word carries the accent, the way it does in the app. The
   brand orange measures 4.5:1 on this ground; the darker brand-ink is what
   body copy uses, so the two are deliberately different tones. */
.brand__mid { color: var(--brand); }
/* the mark, drawn in CSS so the header needs no image request */
.brand__mark {
  width: 26px; height: 26px; border-radius: 7px; flex: 0 0 auto;
  background:
    linear-gradient(150deg, var(--brand) 0 55%, #8c4c1f 55% 100%);
  position: relative;
}
.brand__mark::after {
  content: ""; position: absolute; inset: 32% 22% 46%;
  background: var(--bg); border-radius: 40% 40% 12% 12%;
}
.top__nav { margin-inline-start: auto; display: flex; gap: 6px; flex-wrap: wrap; }
.top__nav a {
  padding: 9px 13px; border-radius: var(--r);
  font: 600 14.5px/1 Inter, sans-serif; color: var(--ink);
}
.top__nav a:hover { background: var(--surface-2); text-decoration: none; }

/* ── the page ────────────────────────────────────────────────────────── */
main { max-width: 1000px; margin: 0 auto; padding: 0 20px 64px; }

.page {
  background: var(--card); border-radius: var(--r);
  padding: 34px 34px 38px; box-shadow: var(--lift);
}

.crumb { font-size: 14px; color: var(--muted); margin-bottom: 14px; }

h1 {
  font: 700 34px/1.16 Inter, sans-serif; letter-spacing: -.028em;
  margin: 0 0 12px; text-wrap: balance;
}
h2 {
  font: 600 22px/1.25 Inter, sans-serif; letter-spacing: -.018em;
  margin: 38px 0 12px;
}
h3 {
  font: 600 15.5px/1.3 Inter, sans-serif; letter-spacing: .01em;
  margin: 26px 0 10px; color: var(--muted);
  text-transform: uppercase; letter-spacing: .06em; font-size: 12.5px;
}
p { margin: 0 0 14px; max-width: 68ch; }
.lede { font-size: 18px; color: var(--muted); max-width: 64ch; }

/* ── live rides ──────────────────────────────────────────────────────── */
.rides { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 10px; }
.ride {
  display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap;
  background: var(--surface-2); border-radius: var(--r); padding: 14px 16px;
}
.ride__fare {
  font: 700 21px/1 Inter, sans-serif; letter-spacing: -.02em; color: var(--ink);
}
.ride__fare small {
  display: block; font: 400 12.5px/1 Inter, sans-serif;
  color: var(--muted); margin-top: 5px;
}
.ride__when { font-weight: 600; }
.ride__seats { color: var(--ok); font-weight: 600; font-size: 14.5px; }
.ride__car { color: var(--muted); font-size: 14px; margin-inline-start: auto; }

.empty {
  background: var(--surface-2); border-radius: var(--r);
  padding: 22px 20px; margin-bottom: 20px;
}
.empty p:last-child { margin-bottom: 0; }

.cta {
  display: inline-block; background: var(--brand); color: #fff;
  padding: 13px 22px; border-radius: var(--r);
  font: 600 15.5px/1 Inter, sans-serif;
}
.cta:hover { background: var(--brand-ink); text-decoration: none; color: #fff; }

/* ── route and city lists ────────────────────────────────────────────── */
.routes {
  list-style: none; padding: 0; margin: 0 0 8px;
  display: grid; gap: 2px;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.routes a {
  display: block; padding: 9px 11px; border-radius: var(--r);
  color: var(--ink); font-size: 15.5px;
}
.routes a:hover { background: var(--tint); color: var(--brand-ink); text-decoration: none; }

.region { margin-bottom: 22px; }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chips a {
  display: block; padding: 7px 12px; border-radius: var(--r);
  background: var(--surface-2); color: var(--ink); font-size: 14.5px;
}
.chips a:hover { background: var(--tint); color: var(--brand-ink); text-decoration: none; }

/* ── questions ───────────────────────────────────────────────────────── */
.faq { margin: 0; }
.faq dt {
  font: 600 16.5px/1.4 Inter, sans-serif; margin: 20px 0 6px;
}
.faq dd { margin: 0; color: var(--muted); max-width: 68ch; }

/* ── legal prose ─────────────────────────────────────────────────────── */
.prose h2 { margin-top: 34px; }
.prose ul { padding-inline-start: 22px; margin: 0 0 16px; max-width: 68ch; }
.prose li { margin-bottom: 9px; }
.prose strong { font-weight: 600; }

/* ── foot ────────────────────────────────────────────────────────────── */
.foot {
  max-width: 1000px; margin: 0 auto; padding: 26px 20px 48px;
  border-top: 1px solid var(--hair);
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.foot__line { margin: 0; color: var(--muted); font-size: 14.5px; }
.foot__nav { margin-inline-start: auto; display: flex; gap: 16px; }
.foot__nav a { font-size: 14.5px; color: var(--muted); }

/* ── phone ───────────────────────────────────────────────────────────── */
@media (max-width: 720px) {
  body { font-size: 16.5px; }
  .top { padding: 14px 14px; gap: 10px; }
  .top__nav { margin-inline-start: 0; width: 100%; }
  .top__nav a { padding: 11px 12px; min-height: 44px; display: flex; align-items: center; }
  main { padding: 0 14px 48px; }
  .page { padding: 22px 18px 26px; }
  h1 { font-size: 27px; }
  h2 { font-size: 20px; margin-top: 30px; }
  .lede { font-size: 17px; }
  .routes { grid-template-columns: 1fr; }
  .routes a { padding: 12px 11px; min-height: 44px; }
  .chips a { padding: 11px 14px; min-height: 44px; display: flex; align-items: center; }
  .cta { display: block; text-align: center; min-height: 48px; line-height: 22px; }
  .ride__car { margin-inline-start: 0; width: 100%; }
  .foot { padding: 22px 14px 40px; }
  .foot__nav { margin-inline-start: 0; }
}
