:root {
  --text: #1d2433;
  --muted: #5d6576;
  --border: #dfe3ea;
  --paper: #f7f6f2;
  --panel: #ffffff;
  --blue: #3460ad;
  --navy: #1d2b4a;
  --code: #f0f2f6;
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--blue); }
h1, h2 { color: var(--navy); line-height: 1.15; }
h2 { font-size: 24px; margin: 0 0 12px; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.92em; }

.top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px max(16px, calc((100vw - 1040px) / 2)); background: var(--panel); border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 10;
}
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--navy);
  font-weight: 650; font-size: 20px; letter-spacing: 0.02em; }
.top nav { display: flex; gap: 18px; flex-wrap: wrap; }
.top nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
.top nav a:hover { color: var(--navy); }

main { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
section { padding: 40px 0; border-bottom: 1px solid var(--border); }
section:last-child { border-bottom: none; }

.hero { padding: 64px 0 32px; border-bottom: none; }
.hero h1 { font-size: clamp(44px, 8vw, 72px); margin: 0; letter-spacing: -0.02em; }
.tagline { font-size: clamp(20px, 3vw, 26px); color: var(--blue); margin: 4px 0 18px; font-weight: 500; }
.lead { font-size: 18px; max-width: 680px; color: var(--muted); margin: 0; }

.pilot { padding-top: 8px; }
.map-wrap { position: relative; height: min(70vh, 620px); border-radius: 10px; overflow: hidden;
  border: 1px solid var(--border); background: #e8e6df; }
#map { position: absolute; inset: 0; }
.map-message { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 18px; }
/* display:flex above would otherwise override [hidden] and cover the map, blocking drag. */
.map-message[hidden] { display: none; }
.maplibregl-ctrl.zoom-level { background: rgba(255, 255, 255, 0.8); padding: 0 5px; border-radius: 3px;
  font: 11px/18px ui-monospace, SFMono-Regular, Menlo, monospace; color: #333; }
.caption { color: var(--muted); font-size: 14px; margin: 8px 0 0; }

.features { padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px; margin: 0; }
.features li { background: var(--panel); border: 1px solid var(--border); border-radius: 8px; padding: 14px 16px; }
.features b { color: var(--navy); }

pre { background: var(--code); border-radius: 8px; padding: 14px 16px; overflow-x: auto; font-size: 13px; }
.note { color: var(--muted); font-size: 14px; }

footer { max-width: 1040px; margin: 0 auto; padding: 24px 16px 40px; display: flex; flex-wrap: wrap;
  justify-content: space-between; gap: 8px; color: var(--muted); font-size: 13px; }
