/* geocode.net — the site is a map sheet.
   A faint graticule behind everything, mono coordinates as section tags, markers from the
   accuracy legend, the G pin as the only accent. Light is a paper sheet, dark is a night map.
   Tokens first; every component reads from them. */
:root {
  --ink: #0F172A; --text: #1E293B; --muted: #5B6678; --faint: #8C96A8;
  --bg: #FFFFFF; --surface: #F7F8FA; --surface-2: #EEF1F5; --line: #E3E7ED;
  --grid: rgba(15, 23, 42, .06); --grid-major: rgba(15, 23, 42, .11);
  --brand: #0F172A; --brand-ink: #1E293B; --on-brand: #FFFFFF; --brand-soft: #EEF1F5;
  --accent: #F4512C; --accent-ink: #C93A1B; --accent-soft: #FEEDE8;
  --ok: #15803D; --ok-soft: #E7F6EC; --warn: #B45309; --warn-soft: #FFF4E0; --bad: #B91C1C;
  --radius: 12px; --radius-s: 8px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 14px 36px -18px rgba(15, 23, 42, .28);
  --display: "Sora", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #F8FAFC; --text: #E2E8F0; --muted: #A3AEC2; --faint: #76829A;
    --bg: #0B1220; --surface: #111A2B; --surface-2: #182338; --line: #243049;
    --grid: rgba(248, 250, 252, .05); --grid-major: rgba(248, 250, 252, .09);
    --brand: #F8FAFC; --brand-ink: #E2E8F0; --on-brand: #0B1220; --brand-soft: #1C2740;
    --accent: #FF6A47; --accent-ink: #FF8A6E; --accent-soft: #2A1810;
    --ok: #4ADE80; --ok-soft: #0F2A1B; --warn: #FBBF24; --warn-soft: #2B2010; --bad: #F87171;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 14px 36px -18px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ink: #F8FAFC; --text: #E2E8F0; --muted: #A3AEC2; --faint: #76829A;
  --bg: #0B1220; --surface: #111A2B; --surface-2: #182338; --line: #243049;
  --grid: rgba(248, 250, 252, .05); --grid-major: rgba(248, 250, 252, .09);
  --brand: #F8FAFC; --brand-ink: #E2E8F0; --on-brand: #0B1220; --brand-soft: #1C2740;
  --accent: #FF6A47; --accent-ink: #FF8A6E; --accent-soft: #2A1810;
  --ok: #4ADE80; --ok-soft: #0F2A1B; --warn: #FBBF24; --warn-soft: #2B2010; --bad: #F87171;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 14px 36px -18px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); color: var(--text); background-color: var(--bg); line-height: 1.55; font-size: 16px;
  /* the graticule: minor lines every 24px, major every 120px */
  background-image:
    linear-gradient(var(--grid-major) 1px, transparent 1px), linear-gradient(90deg, var(--grid-major) 1px, transparent 1px),
    linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  background-position: -1px -1px;
  overflow-x: hidden;
}
a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
img, svg { display: block; max-width: 100%; }
code, pre, kbd { font-family: var(--mono); font-size: .92em; }
pre { background: #0F172A; color: #E2E8F0; padding: 16px 18px; border-radius: var(--radius-s); overflow: auto; line-height: 1.5; }
h1, h2, h3, .display { font-family: var(--display); }
.container { width: min(1120px, 100% - 32px); margin: 0 auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* section tags: a coordinate read off the sheet */
.sec-tag { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12.5px; letter-spacing: .04em; color: var(--muted); margin-bottom: 14px; }
.sec-tag::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.sec-tag b { color: var(--ink); font-weight: 500; }

/* nav */
.nav { position: sticky; top: 0; z-index: 20; backdrop-filter: saturate(1.4) blur(10px); background: color-mix(in srgb, var(--bg) 86%, transparent); border-bottom: 1px solid var(--line); }
.nav .container { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); font-family: var(--display); font-weight: 600; letter-spacing: -.02em; font-size: 21px; line-height: 1; }
.brand:hover { text-decoration: none; }
.brand svg { width: 30px; height: 30px; }
.brand .tld { color: var(--muted); font-weight: 400; }
.nav-links { display: flex; align-items: center; gap: 24px; font-weight: 500; font-size: 15px; }
.nav-links a { color: var(--text); }
.nav-links a:hover { color: var(--ink); text-decoration: none; }
.nav-links .btn { padding: 9px 14px; }
.nav-links a.btn-primary { color: var(--on-brand); }
@media (max-width: 760px) { .nav-links a:not(.btn) { display: none; } }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 10px; font-family: var(--display); font-weight: 600; font-size: 14.5px; letter-spacing: -.005em; border: 1px solid transparent; cursor: pointer; transition: transform .08s ease, background .15s ease, border-color .15s ease; white-space: nowrap; line-height: 1.2; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: var(--on-brand); }
.btn-primary:hover { background: var(--brand-ink); }
.btn-ghost { background: var(--bg); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--faint); }
.btn-accent { background: var(--accent); color: #0F172A; }
.btn-sm { padding: 7px 12px; font-size: 13.5px; }

/* hero */
.hero { padding: 76px 0 48px; position: relative; }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: -1;
  background: radial-gradient(700px 420px at 72% 10%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12.5px; font-weight: 500; letter-spacing: .04em; color: var(--accent-ink); background: var(--accent-soft); padding: 6px 12px; border-radius: 999px; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.coords { display: inline-block; white-space: nowrap; font-family: var(--mono); font-size: 12.5px; color: var(--faint); margin-left: 12px; }
@media (max-width: 520px) { .coords { display: block; margin: 8px 0 0; } }
h1 { font-size: clamp(40px, 6.2vw, 68px); line-height: 1; letter-spacing: -.035em; margin: 20px 0 18px; color: var(--ink); font-weight: 700; }
h1 em { font-style: normal; color: var(--accent); position: relative; white-space: nowrap; }
h1 em::after { content: ""; position: absolute; left: 0; right: 0; bottom: -.04em; height: .08em; background: var(--accent); border-radius: 2px; opacity: .35; }
.lede { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 600px; margin: 0 0 28px; }
.hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: 44px; align-items: start; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero-note { font-size: 14px; color: var(--faint); margin-top: 14px; }

/* demo: a map callout */
.demo { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.demo-form { display: flex; gap: 8px; padding: 14px; border-bottom: 1px solid var(--line); background: var(--surface); }
.demo-form input { flex: 1; min-width: 0; font: inherit; font-size: 16px; padding: 12px 14px; border-radius: var(--radius-s); border: 1px solid var(--line); background: var(--bg); color: var(--text); outline: none; }
.demo-form input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; padding: 10px 14px 0; }
.chip { font: inherit; font-size: 13px; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--muted); cursor: pointer; }
.chip:hover { border-color: var(--accent); color: var(--accent-ink); }
.locate { display: flex; align-items: center; justify-content: space-between; gap: 8px 12px; flex-wrap: wrap; padding: 10px 14px 12px; font-size: 13.5px; color: var(--muted); }
.locate b { color: var(--ink); font-weight: 600; }
.locate small { color: var(--faint); font-size: 12px; }
.locate .btn { gap: 6px; margin-left: auto; }
.locate .btn svg { width: 15px; height: 15px; }
.locate .btn[disabled] { opacity: .6; cursor: progress; transform: none; }
.demo-map { height: 260px; background: var(--surface-2); }
.pin-marker { width: 36px; height: 36px; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .25)); }
.demo-result { padding: 14px; display: grid; gap: 10px; }
.result-head { display: flex; justify-content: space-between; gap: 12px; align-items: start; }
.result-head strong { font-family: var(--display); font-size: 16.5px; font-weight: 600; color: var(--ink); letter-spacing: -.01em; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 11.5px; font-weight: 500; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.badge-ok { background: var(--ok-soft); color: var(--ok); }
.badge-warn { background: var(--warn-soft); color: var(--warn); }
.badge-muted { background: var(--surface-2); color: var(--muted); }
.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; font-size: 14px; }
.kv div span:first-child { color: var(--faint); display: block; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.kv div span:last-child { font-family: var(--mono); font-size: 13.5px; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tab { font: inherit; font-size: 13px; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); cursor: pointer; color: var(--muted); }
.tab[aria-selected="true"] { background: var(--brand-soft); color: var(--ink); border-color: transparent; font-weight: 600; }
.panel { font-size: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 10px 12px; }
.panel table { width: 100%; border-collapse: collapse; }
.panel td { padding: 4px 0; vertical-align: top; border-bottom: 1px dashed var(--line); }
.panel td:first-child { color: var(--muted); width: 42%; }
.panel tr:last-child td { border-bottom: 0; }
.demo-foot { display: grid; gap: 4px; padding: 10px 14px; font-size: 13px; color: var(--faint); border-top: 1px solid var(--line); background: var(--surface); }
.demo-foot code { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 12px; }
.error { color: var(--bad); font-size: 14px; }

/* stats: the sheet's legend box */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 44px 0 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); overflow: hidden; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { padding: 18px 18px 16px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
@media (max-width: 760px) { .stat:nth-child(2) { border-right: 0; } .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }
.stat b { display: block; white-space: nowrap; font-family: var(--display); font-size: 24px; font-weight: 700; letter-spacing: -.03em; color: var(--ink); line-height: 1.1; margin-bottom: 4px; }
.stat span { color: var(--muted); font-size: 13.5px; }

/* sections */
section { padding: 76px 0; }
section + section { border-top: 1px solid var(--line); }
h2 { font-size: clamp(28px, 3.6vw, 40px); letter-spacing: -.03em; line-height: 1.08; margin: 0 0 12px; color: var(--ink); font-weight: 700; }
.sub { color: var(--muted); font-size: 17.5px; max-width: 640px; margin: 0 0 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (max-width: 900px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }
.card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; position: relative; }
.card h3 { margin: 10px 0 6px; font-size: 17px; font-weight: 600; letter-spacing: -.01em; color: var(--ink); }
.card h3 code, .card h3 { font-family: var(--mono); }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.icon { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); }
.icon svg { width: 20px; height: 20px; }

/* accuracy legend */
.table { width: 100%; border-collapse: collapse; font-size: 15px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.table th, .table td { text-align: left; padding: 13px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table th { font-family: var(--mono); font-size: 11.5px; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); background: var(--surface); }
.table tr:last-child td { border-bottom: 0; }
.table code { background: var(--surface-2); padding: 2px 6px; border-radius: 6px; font-size: 13px; color: var(--ink); }
.table td:first-child { white-space: nowrap; }
.mk { display: inline-block; width: 22px; height: 22px; vertical-align: middle; margin-right: 10px; color: var(--accent); }
.mk-muted { color: var(--faint); }
.score { display: inline-block; min-width: 44px; text-align: center; font-family: var(--mono); font-size: 13px; padding: 2px 8px; border-radius: 6px; background: var(--brand-soft); color: var(--ink); }

/* "Yours to keep": a result's life drawn as a route. Stops on a coral line that runs off the sheet; a dashed grey line,
   the rented result, runs beside it and stops at a terminus bar. Across on wide screens, down on phones. */
.route { list-style: none; margin: 0; padding: 0; position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0 20px; }
.route::before { content: ""; position: absolute; top: 9px; left: 0; right: 8px; height: 3px; border-radius: 2px; background: var(--accent); }
.route::after { content: ""; position: absolute; top: 3px; right: 0; width: 12px; height: 15px; background: var(--accent); clip-path: polygon(0 0, 100% 50%, 0 100%); }
.route li { position: relative; padding-top: 36px; min-width: 0; }
.route li::before { content: ""; position: absolute; top: 2px; left: 0; width: 17px; height: 17px; border-radius: 50%; background: var(--bg); border: 3px solid var(--accent); }
.route .when { display: block; font-family: var(--mono); font-size: 12px; letter-spacing: .04em; color: var(--faint); }
.route b { display: block; margin: 3px 0 5px; font-family: var(--display); font-size: 16.5px; font-weight: 600; letter-spacing: -.01em; color: var(--ink); }
.route p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.45; }
.route .rent::after, .route .lapse::after { content: ""; position: absolute; top: -8px; left: 0; right: -20px; border-top: 2px dashed var(--faint); }
.route .lapse::after { right: auto; width: 6px; }
.route .lapse::before { left: 6px; top: -14px; width: 4px; height: 38px; border: 0; border-radius: 2px; background: var(--faint); }
.route .lapse b { color: var(--muted); }
.route .lapse p { color: var(--faint); }
.route .end::before { background: var(--accent); }
.route .end b { color: var(--accent-ink); }
@media (max-width: 900px) {
  .route { grid-template-columns: 1fr; gap: 0; }
  .route::before { top: 0; bottom: 8px; left: 7px; right: auto; width: 3px; height: auto; }
  .route::after { top: auto; bottom: 0; right: auto; left: 1px; width: 15px; height: 12px; clip-path: polygon(0 0, 100% 0, 50% 100%); }
  .route li { padding: 0 0 26px 38px; }
  .route li::before { top: 3px; }
  .route .rent::after, .route .lapse::after { top: 0; bottom: 0; left: 24px; right: auto; width: 0; border-top: 0; border-left: 2px dashed var(--faint); }
  .route .lapse::after { bottom: auto; height: 11px; }
  .route .lapse::before { left: -5px; top: 9px; width: 36px; height: 4px; }
}

/* pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; } }
.plan { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 14px; position: relative; }
.plan.featured { border-color: var(--accent); box-shadow: var(--shadow); }
.plan .tag { position: absolute; top: -12px; left: 22px; font-family: var(--mono); font-size: 11.5px; font-weight: 600; background: var(--accent); color: #0F172A; padding: 4px 10px; border-radius: 999px; letter-spacing: .05em; }
.plan h3 { margin: 0; font-size: 17px; font-weight: 600; color: var(--ink); }
.price { font-family: var(--display); font-size: 40px; letter-spacing: -.04em; color: var(--ink); font-weight: 700; line-height: 1; }
.price small { font-family: var(--font); font-size: 15px; color: var(--muted); font-weight: 500; letter-spacing: 0; }
.plan ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; color: var(--muted); font-size: 15px; }
.plan li::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-right: 10px; vertical-align: 2px; }
.plan .btn { margin-top: auto; justify-content: center; }
.fineprint { color: var(--faint); font-size: 13.5px; margin-top: 16px; }

/* code tabs */
.codetabs { background: #0F172A; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid #1E293B; }
.codetabs .bar { display: flex; gap: 4px; padding: 10px 12px; background: rgba(255, 255, 255, .04); border-bottom: 1px solid rgba(255, 255, 255, .08); overflow-x: auto; }
.codetabs .bar button { font: inherit; font-family: var(--mono); font-size: 12.5px; padding: 6px 12px; border-radius: 7px; border: 0; background: transparent; color: #A3AEC2; cursor: pointer; white-space: nowrap; }
.codetabs .bar button[aria-selected="true"] { background: rgba(255, 255, 255, .1); color: #fff; }
.codetabs pre { margin: 0; border-radius: 0; background: transparent; padding: 18px 20px; font-size: 13.5px; }
.codetabs .c { color: #76829A; } .codetabs .k { color: #93C5FD; } .codetabs .s { color: #FFB49C; }

/* faq */
details { border-top: 1px solid var(--line); padding: 16px 0; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-family: var(--display); font-weight: 600; color: var(--ink); font-size: 16.5px; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-family: var(--mono); color: var(--faint); font-size: 20px; font-weight: 400; }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); margin: 10px 0 0; max-width: 760px; }

/* footer: the content map */
footer { border-top: 1px solid var(--line); padding: 0 0 40px; color: var(--muted); font-size: 14px; background: var(--surface); }
.foot-top { display: flex; justify-content: space-between; gap: 24px 48px; flex-wrap: wrap; align-items: start; padding: 40px 0 28px; border-bottom: 1px solid var(--line); }
.foot-top p { margin: 12px 0 14px; max-width: 320px; }
.foot-pitch { max-width: 360px; color: var(--muted); font-size: 14.5px; margin: 6px 0 0; }
.foot-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 28px 20px; padding: 32px 0; }
.foot-cols b { display: block; color: var(--ink); margin-bottom: 8px; font-family: var(--mono); font-size: 11.5px; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; }
.foot-cols a { display: block; color: var(--muted); margin: 5px 0; font-size: 13.5px; }
.foot-cols a:hover { color: var(--ink); }
.foot-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px; padding-top: 20px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 11.5px; letter-spacing: .04em; color: var(--faint); }
.theme-toggle { font: inherit; font-family: var(--mono); font-size: 12px; color: var(--muted); background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 6px 10px; cursor: pointer; }

/* articles, prose, cards (generated pages) */
.article { padding: 56px 0 48px; }
.article h1 { font-size: clamp(32px, 4.6vw, 50px); margin: 14px 0 12px; }
.article .lede { margin-bottom: 28px; }
.article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 48px; align-items: start; }
@media (max-width: 900px) { .article-grid { grid-template-columns: 1fr; } }
.prose { max-width: 760px; font-size: 16.5px; min-width: 0; }
.prose h2 { font-size: 24px; margin: 36px 0 10px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 18px; margin: 24px 0 8px; font-weight: 600; }
.prose p, .prose li { color: var(--text); }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose pre { font-size: 13px; margin: 14px 0; }
.prose code { background: var(--surface-2); padding: 1px 5px; border-radius: 5px; font-size: .9em; color: var(--ink); }
.prose pre code { background: none; padding: 0; color: inherit; font-size: inherit; }
.prose table { width: 100%; border-collapse: collapse; font-size: 14.5px; margin: 14px 0; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); background: var(--surface); font-weight: 500; }
.prose tr:last-child td { border-bottom: 0; }
.prose em { color: var(--muted); }
.aside { position: sticky; top: 90px; display: grid; gap: 14px; }
.aside .card { padding: 18px; }
.aside .card b { display: block; font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); margin-bottom: 8px; font-weight: 500; }
.aside .card a { display: block; margin: 6px 0; font-size: 14.5px; color: var(--text); }
.aside .card a:hover { color: var(--ink); }
.cta-card { background: #0F172A; color: #E2E8F0; border: 1px solid #1E293B; border-radius: var(--radius); padding: 24px; margin-top: 36px; display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; }
.cta-card h3 { margin: 0 0 4px; color: #fff; font-size: 18px; }
.cta-card p { margin: 0; color: #A3AEC2; font-size: 14.5px; }
.cta-card .btn-primary { background: var(--accent); color: #0F172A; }
.cta-card .btn-primary:hover { background: #FF6A47; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr; } }
.cards .card { display: block; color: inherit; }
.cards .card:hover { border-color: var(--faint); text-decoration: none; }
.cards .card h3 { font-family: var(--display); font-size: 16.5px; margin: 0 0 6px; }
.cards .card .tag { font-family: var(--mono); font-size: 11.5px; color: var(--accent-ink); margin-bottom: 8px; display: block; }
.cards .card p { font-size: 14.5px; }
.tool-hero { padding-bottom: 36px; }
.tool-hero h1 { font-size: clamp(34px, 5vw, 54px); }
.tool-body { padding-top: 48px; }

/* ===== spreadsheet tool (/app) ===== */
.app { padding: 28px 0 60px; }
.app-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.keybox { flex-wrap: wrap; }
.step, .demo, .card { min-width: 0; }
.app-head h1 { font-size: 30px; margin: 0; }
.keybox { display: flex; align-items: center; gap: 8px; }
.keybox input { font: inherit; font-family: var(--mono); font-size: 13px; width: 300px; max-width: 50vw; min-width: 120px; padding: 8px 10px; border-radius: var(--radius-s); border: 1px solid var(--line); background: var(--bg); color: var(--text); }
.keybox .ok { color: var(--ok); font-size: 13px; font-weight: 600; }
.steps { display: grid; grid-template-columns: 1fr; gap: 16px; }
.step { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.step h2 { font-size: 18px; margin: 0 0 4px; display: flex; align-items: center; gap: 10px; }
.step h2 .n { width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #0F172A; display: inline-grid; place-items: center; font-family: var(--mono); font-size: 13px; font-weight: 600; }
.step .hint { color: var(--muted); font-size: 14px; margin: 0 0 14px; }
.drop { border: 2px dashed var(--line); border-radius: var(--radius); padding: 34px 20px; text-align: center; color: var(--muted); background: var(--surface); cursor: pointer; transition: border-color .15s, background .15s; }
.drop.over, .drop:hover { border-color: var(--accent); background: var(--accent-soft); }
.drop b { color: var(--ink); }
.drop input { display: none; }
.sample { font-size: 13px; color: var(--faint); margin-top: 10px; }
.mapping { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px 14px; }
.mapping label { font-size: 13px; color: var(--muted); display: grid; gap: 4px; }
.mapping select, .opts select { font: inherit; font-size: 14px; padding: 8px 10px; border-radius: var(--radius-s); border: 1px solid var(--line); background: var(--bg); color: var(--text); }
.mode { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin-bottom: 14px; max-width: 100%; }
.mode button { font: inherit; font-size: 14px; padding: 7px 14px; border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.mode button[aria-pressed="true"] { background: var(--brand); color: var(--on-brand); font-weight: 600; }
.opts { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; font-size: 14px; }
.opts label { display: inline-flex; align-items: center; gap: 6px; color: var(--text); }
.preview { overflow: auto; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--bg); max-height: 260px; }
.preview table { border-collapse: collapse; font-size: 13px; min-width: 100%; }
.preview th, .preview td { padding: 7px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; text-align: left; }
.preview th { position: sticky; top: 0; background: var(--surface-2); font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--faint); }
.preview td.new { background: var(--accent-soft); }
.run { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.progress { flex: 1; min-width: 200px; height: 10px; border-radius: 5px; background: var(--surface-2); overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .2s; }
.run .meta { font-size: 13px; color: var(--muted); font-family: var(--mono); }
.summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-top: 14px; }
.summary div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 10px 12px; font-size: 13px; color: var(--muted); }
.summary b { display: block; font-family: var(--display); font-size: 20px; color: var(--ink); letter-spacing: -.02em; }
.app-map { height: 380px; border-radius: var(--radius-s); overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.notice { font-size: 14px; color: var(--warn); background: var(--warn-soft); border-radius: var(--radius-s); padding: 10px 12px; }
.single { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.single input { font: inherit; font-size: 15px; padding: 10px 12px; border-radius: var(--radius-s); border: 1px solid var(--line); background: var(--bg); color: var(--text); }

/* the demo's /v1/resolve fallback: what the model proposed, shown above the result it led to */
.resolved { font-size: 13.5px; color: var(--muted); margin: 0 0 10px; line-height: 1.45; }
.resolved b { color: var(--ink); font-weight: 600; }

/* "here" tools (What county am I in?): the one answer, set like a map label above the form and the full result */
.answer { display: grid; gap: 6px; padding: 18px 16px 16px; border-bottom: 1px solid var(--line); }
.answer-label { font-family: var(--mono); font-size: 11.5px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-ink); }
.answer-value { font-family: var(--display); font-size: clamp(24px, 3.2vw, 32px); font-weight: 700; line-height: 1.15; letter-spacing: -.02em; color: var(--ink); overflow-wrap: anywhere; }
.answer-also { display: block; margin-top: 4px; font-size: .62em; font-weight: 600; letter-spacing: -.01em; color: var(--text); }
.answer-sub { font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.answer-coords { display: block; margin-top: 3px; font-family: var(--mono); font-size: 12px; color: var(--faint); }
.answer-warn { display: block; margin-top: 6px; font-size: 13px; color: var(--warn); }
.answer-act { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 8px; font-size: 13.5px; color: var(--muted); }
.answer-act b { color: var(--ink); font-weight: 600; }
.answer-act small { color: var(--faint); font-size: 12px; }
.answer-act .btn svg { width: 16px; height: 16px; }
.answer-act .btn[disabled] { opacity: .6; cursor: progress; transform: none; }
/* on a phone the question is the heading and the button comes straight after it; the lede follows the answer */
@media (max-width: 900px) {
  .here-hero .hero-grid { gap: 0; }
  .here-hero .hero-grid > div:first-child { display: contents; }
  .here-hero .sec-tag { justify-self: start; }
  .here-hero .demo { order: 1; margin: 0 0 28px; }
  .here-hero .lede, .here-hero .hero-note { order: 2; }
}

/* ===== map embed generator (/tools/map-embed-generator): preview on the left, options and outputs on the right ===== */
.gen-section { padding: 0 0 12px; }
.gen { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr); background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.gen-stage { display: flex; flex-direction: column; min-width: 0; border-right: 1px solid var(--line); }
.gen-map { flex: 1; min-height: 480px; }
.gen-side { display: grid; gap: 16px; align-content: start; padding: 18px; min-width: 0; }
@media (max-width: 900px) {
  .gen { grid-template-columns: 1fr; }
  .gen-stage { border-right: 0; border-bottom: 1px solid var(--line); }
  .gen-map { min-height: 340px; }
}
.gen-field { display: grid; gap: 6px; font-size: 14px; min-width: 0; }
.gen-field > span { font-family: var(--mono); font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); }
.gen-field input:not([type]), .gen-field select, .gen-size input, .gen-link {
  font: inherit; font-size: 14.5px; padding: 9px 11px; border-radius: var(--radius-s); border: 1px solid var(--line); background: var(--bg); color: var(--text); min-width: 0; width: 100%; outline: none;
}
.gen-field input:not([type]):focus, .gen-field select:focus, .gen-size input:focus, .gen-link:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.gen .mode { margin: 0; justify-self: start; }
.gen-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.gen input[type="color"] { width: 46px; height: 36px; padding: 3px; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--bg); cursor: pointer; }
.gen-out { display: grid; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); min-width: 0; }
.gen-pane { display: grid; gap: 12px; min-width: 0; }
.gen-pane[hidden] { display: none; }
.gen-size { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gen-size label { display: grid; gap: 4px; font-size: 12.5px; color: var(--muted); }
.gen-snippet { margin: 0; font-size: 12px; white-space: pre-wrap; word-break: break-all; max-height: 150px; }
.gen-link { font-family: var(--mono); font-size: 12.5px; }
.gen-note { margin: 0; font-size: 13px; line-height: 1.45; color: var(--muted); }
.gen .demo-foot code { white-space: nowrap; }
