/* Palette matches the epd app (epd/src/main/resources/static/css/epd.css). */
:root {
  --brand: #94af39;
  --brand-deep: #5f7a1c;
  --brand-ink: #1c2117;
  --bg: #f6f8f1;
  --surface: #ffffff;
  --ink: #1c2117;
  --muted: #4c5443;
  --line: #e4e8d8;
  --pin-b: #d7263d;
  --map: #e8eed6;      /* route-art ground: a tinted map so it doesn't read as a floating white card */
  --map-line: #cfd8b4;
  --map-road: #ffffff;
  --map-road-minor: #f4f7ea;
  --map-park: #d3e2a8;
  --map-water: #cde2e6;
  --radius: 16px;
  --max: 1080px;
  --font: ui-sans-serif, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --brand-deep: #b7d160;
    --bg: #12150f;
    --surface: #1b2016;
    --ink: #eef2e4;
    --muted: #aab39b;
    --line: #2c3324;
    --map: #1b2016;
    --map-line: #2c3324;
    --map-road: #2a3123;
    --map-road-minor: #222819;
    --map-park: #22301a;
    --map-water: #1a2a2e;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 var(--font); }
a { color: var(--brand-deep); }
svg { max-width: 100%; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

/* Header */
.top { border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 750; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.brand-mark { width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; font: 800 12px/1 var(--mono); }
.nav { display: flex; align-items: center; gap: 16px; font-size: 15px; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a.btn { color: var(--brand-ink); }
@media (max-width: 560px) { .nav .hide-sm { display: none; } }

/* Hero */
.hero { padding: 64px 0 48px; }
.hero .wrap { display: grid; gap: 40px; align-items: center; }
@media (min-width: 860px) { .hero .wrap { grid-template-columns: 1.15fr 1fr; } }
.eyebrow { font: 600 12px/1.6 var(--mono); text-wrap: balance; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand-deep); margin: 0 0 18px; }
.hero h1 { font-size: clamp(36px, 6.4vw, 64px); line-height: 1.02; letter-spacing: -0.035em; margin: 0 0 20px; }
.hero h1 em { font-style: normal; color: var(--brand-deep); }
.lead { font-size: clamp(18px, 2.2vw, 21px); color: var(--muted); max-width: 52ch; margin: 0 0 32px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-block; padding: 12px 20px; border-radius: 999px; font-weight: 650; font-size: 15px; text-decoration: none; border: 1px solid var(--line); color: var(--ink); background: var(--surface); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.btn.small { padding: 8px 14px; font-size: 14px; }
.signup { margin: 18px 0 0; font-size: 15px; color: var(--muted); }

.route-art { width: 100%; height: auto; }
.route-art .path { stroke: var(--brand-deep); }
.route-art .a { fill: var(--brand); }
.route-art .b { fill: var(--pin-b); }
.route-art .label { font: 700 13px var(--mono); fill: var(--surface); }
.route-art .ground { fill: var(--map); stroke: var(--map-line); }
.route-art .map .road { fill: none; stroke: var(--map-road); stroke-width: 5; stroke-linecap: round; }
.route-art .map .route-road { stroke-width: 8; }
.route-art .map .road-minor { fill: none; stroke: var(--map-road-minor); stroke-width: 2; stroke-linecap: round; }
.route-art .map .park { fill: var(--map-park); }
.route-art .map .water { fill: none; stroke: var(--map-water); stroke-width: 12; stroke-linecap: round; }

/* Sections */
section { padding: 56px 0; border-top: 1px solid var(--line); }
section h2 { font-size: clamp(24px, 3.4vw, 32px); letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 12px; }
section p.sub { color: var(--muted); max-width: 60ch; margin: 0 0 32px; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; counter-reset: step; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; counter-increment: step; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); font: 800 14px/1 var(--mono); margin-bottom: 14px; }
.steps h3, .features h3 { margin: 0 0 6px; font-size: 18px; }
.steps p, .features p { margin: 0; color: var(--muted); font-size: 16px; }

.features { display: grid; gap: 24px 32px; }
@media (min-width: 720px) { .features { grid-template-columns: repeat(2, 1fr); } }
.features div { padding-left: 16px; border-left: 3px solid var(--brand); }

.band { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.band p { margin: 0; color: var(--muted); max-width: 60ch; }
.band strong { color: var(--ink); }

.contact dl { display: grid; grid-template-columns: max-content 1fr; gap: 10px 24px; margin: 0; }
.contact dt { color: var(--muted); font-size: 15px; }
.contact dd { margin: 0; overflow-wrap: anywhere; }

/* Legal pages */
.legal { padding: 48px 0 64px; }
.legal h1 { font-size: clamp(30px, 5vw, 42px); letter-spacing: -0.02em; margin: 0 0 6px; }
.legal .updated { color: var(--muted); font-size: 15px; margin: 0 0 32px; }
.legal h2 { font-size: 20px; margin: 36px 0 8px; }
.legal p, .legal li { max-width: 70ch; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
footer a { color: var(--muted); }
footer .links { display: flex; flex-wrap: wrap; gap: 18px; }
