:root {
  --bg: #f4f6f8; --surface: #ffffff; --surface-2: #eef1f4; --text: #1c2630; --muted: #5d6b79;
  --border: #d8dee4; --accent: #1565c0; --accent-text: #ffffff; --danger: #b3261e; --danger-bg: #fdecea;
  --warn-bg: #fff4d6; --warn-text: #5c4400; --shadow: 0 2px 10px rgba(0,0,0,.18);
  --hot: #c62828; --warm: #b45309; --cool: #52708f; --header-h: 52px;
  /* tier fills (bubbles, badges): same in light and dark, white text passes 4.5:1 */
  --tier-a: #c62828; --tier-b: #b45309; --tier-c: #52708f;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #11161b; --surface: #1a2128; --surface-2: #232c35; --text: #e6ebf0; --muted: #9aa8b5;
    --border: #33404c; --accent: #64a8f0; --accent-text: #0b1620; --danger: #ffb4ab; --danger-bg: #3b1d1a;
    --warn-bg: #3a3012; --warn-text: #f5dd9a; --shadow: 0 2px 12px rgba(0,0,0,.6);
    --hot: #ef5350; --warm: #ff9a3c; --cool: #8aa8c8;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text); font-size: 16px; line-height: 1.4;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--accent); }
h1, h2, h3 { margin: 0; line-height: 1.2; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.pad { padding: 12px 16px; margin: 0; }

/* buttons & inputs */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 8px 16px;
  border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--text);
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--surface-2); }
.btn-small { min-height: 36px; padding: 4px 12px; font-size: 14px; }
.btn-primary { background: var(--accent); color: var(--accent-text); border-color: var(--accent); }
.btn-primary:hover { background: var(--accent); filter: brightness(1.1); }
.btn-block { width: 100%; margin-top: 16px; }
select, input[type=text], input[type=password], input[type=search] {
  width: 100%; min-height: 44px; padding: 8px 12px; font: inherit; color: var(--text);
  background: var(--surface); border: 1px solid var(--border); border-radius: 8px;
}
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
label { display: block; font-size: 14px; font-weight: 600; margin: 12px 0 4px; }
label.check { display: flex; align-items: center; gap: 8px; font-weight: 500; font-size: 16px; margin: 0; min-height: 40px; }
input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--accent); flex: none; }
fieldset { border: 0; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 4px 16px; }
legend { font-size: 14px; font-weight: 600; padding: 0; margin-bottom: 4px; }
.dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; vertical-align: -1px; margin-right: 4px; }
.check .dot { margin: 0; }
.dot-A { background: var(--tier-a); } .dot-B { background: var(--tier-b); } .dot-C { background: var(--tier-c); }
.spinner {
  display: inline-block; width: 14px; height: 14px; border: 2px solid var(--border); border-top-color: var(--accent);
  border-radius: 50%; animation: spin .8s linear infinite; vertical-align: -2px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* login */
.login-page { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.login-card {
  width: 100%; max-width: 400px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  padding: 28px 24px; box-shadow: var(--shadow);
}
.login-card h1 { font-size: 24px; margin: 4px 0 8px; }
.login-card p { margin: 0 0 12px; }
.login-logo { font-size: 36px; }
.alert { padding: 10px 12px; border-radius: 8px; margin: 12px 0; font-size: 15px; }
.alert-error { background: var(--danger-bg); color: var(--danger); }

/* header */
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: var(--header-h);
  padding: 6px 16px; background: var(--surface); border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; min-width: 0; }
.brand h1 { font-size: 20px; }
.source { font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.who { display: flex; align-items: center; gap: 10px; flex: none; }
.who-name { font-size: 14px; color: var(--muted); max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.banner { background: var(--warn-bg); color: var(--warn-text); padding: 10px 16px; font-size: 14px; font-weight: 600; border-bottom: 1px solid var(--border); }

/* layout (mobile first: stacked) */
.layout { display: block; }
.controls { background: var(--surface); border-bottom: 1px solid var(--border); }
.filters > summary {
  list-style: none; cursor: pointer; padding: 12px 16px; font-weight: 700; min-height: 44px;
  display: flex; align-items: center; justify-content: space-between;
}
.filters > summary::-webkit-details-marker { display: none; }
.filters > summary::after { content: "\25BE"; color: var(--muted); }
.filters[open] > summary::after { content: "\25B4"; }
.filters-body { padding: 0 16px 8px; }
.summary { padding: 8px 16px 12px; background: var(--surface); display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.counts { font-size: 15px; flex: 1 1 100%; }
.c-A { color: var(--hot); } .c-B { color: var(--warm); } .c-C { color: var(--cool); }
.note { flex: 1 1 100%; font-size: 13px; background: var(--warn-bg); color: var(--warn-text); padding: 6px 10px; border-radius: 6px; }

.mapwrap { position: relative; height: 60vh; min-height: 320px; background: var(--surface-2); overflow: hidden; }
#map { position: absolute; inset: 0; z-index: 0; }
.loading, .error-box {
  position: absolute; z-index: 500; left: 50%; top: 12px; transform: translateX(-50%); max-width: calc(100% - 32px);
  background: var(--surface); color: var(--text); padding: 8px 14px; border-radius: 999px; box-shadow: var(--shadow); font-size: 14px;
}
.error-box { border-radius: 10px; background: var(--danger-bg); color: var(--danger); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
[hidden] { display: none !important; }
.legend {
  position: absolute; z-index: 400; left: 8px; bottom: 22px; display: flex; gap: 10px; padding: 4px 10px;
  background: var(--surface); color: var(--text); border-radius: 999px; font-size: 13px; box-shadow: var(--shadow);
}
.tier-cluster { background: transparent; }
.tier-cluster div {
  width: 100%; height: 100%; display: grid; place-items: center; border-radius: 50%;
  color: #fff; font-weight: 800; font-size: 13px; border: 3px solid rgba(255,255,255,.9); box-shadow: 0 1px 4px rgba(0,0,0,.35);
}
.tier-cluster-A div { background: var(--tier-a); } .tier-cluster-B div { background: var(--tier-b); } .tier-cluster-C div { background: var(--tier-c); }
.stop-num { background: transparent; border: 0; box-shadow: none; color: #111; font-weight: 800; font-size: 12px; padding: 0; }
.stop-num::before { display: none; }

.panel { background: var(--bg); }
.tabs { display: flex; gap: 4px; padding: 8px 16px; background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 5; }
.tabs button {
  flex: 1; min-height: 44px; border: 1px solid var(--border); background: var(--surface); color: var(--text);
  border-radius: 8px; font: inherit; font-weight: 600; cursor: pointer;
}
.tabs button[aria-selected=true] { background: var(--accent); color: var(--accent-text); border-color: var(--accent); }
.tabbody { padding: 8px 16px 24px; }
.tabbody > p.pad { padding-left: 0; padding-right: 0; }
.card {
  display: flex; gap: 12px; align-items: center; width: 100%; text-align: left; margin: 0 0 8px; padding: 10px 12px;
  background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 10px; font: inherit; cursor: pointer;
}
.card:hover { border-color: var(--accent); }
.card.sel { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.card-main { display: flex; flex-direction: column; min-width: 0; font-size: 15px; }
.card-main b { overflow-wrap: anywhere; }
.score {
  flex: none; min-width: 40px; height: 40px; padding: 0 6px; display: grid; place-items: center;
  border-radius: 10px; color: #fff; font-weight: 800; font-size: 16px;
}
.route-id { background: var(--accent); color: var(--accent-text); font-size: 14px; }

/* detail: bottom sheet on mobile */
.detail {
  position: fixed; z-index: 1000; left: 0; right: 0; bottom: 0; max-height: 75vh; overflow-y: auto;
  background: var(--surface); color: var(--text); border-radius: 16px 16px 0 0; box-shadow: 0 -4px 20px rgba(0,0,0,.3);
  transform: translateY(105%); transition: transform .25s ease; visibility: hidden;
}
.detail.open { transform: none; visibility: visible; }
.detail-head {
  position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px; background: var(--surface); border-bottom: 1px solid var(--border);
}
.badge { color: #fff; font-weight: 800; padding: 4px 12px; border-radius: 999px; font-size: 15px; }
.close { width: 44px; height: 44px; border: 0; background: transparent; color: var(--text); font-size: 30px; line-height: 1; cursor: pointer; border-radius: 8px; }
.close:hover { background: var(--surface-2); }
.detail-body { padding: 12px 16px 28px; }
.detail-body h2 { font-size: 22px; }
.detail-body > p { margin: 4px 0; }
.why { background: var(--surface-2); border-left: 4px solid var(--accent); padding: 10px 12px; border-radius: 6px; margin: 12px 0 !important; }
.links { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.dsec { margin-top: 16px; }
.dsec h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 4px; }
dl { margin: 0; }
.row { display: flex; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--border); font-size: 15px; }
.row dt { flex: 0 0 110px; color: var(--muted); }
.row dd { margin: 0; flex: 1; min-width: 0; overflow-wrap: anywhere; }
.storms { margin: 4px 0 0; padding-left: 20px; font-size: 15px; }
.storms li { margin: 2px 0; }

/* desktop */
@media (min-width: 860px) {
  body.app-page { height: 100vh; height: 100dvh; display: flex; flex-direction: column; overflow: hidden; }
  .layout {
    flex: 1; min-height: 0; display: grid; grid-template-columns: 340px 1fr; grid-template-rows: auto minmax(0, 1fr);
  }
  .controls { grid-column: 1; grid-row: 1; border-right: 1px solid var(--border); max-height: 60vh; overflow-y: auto; }
  .panel { grid-column: 1; grid-row: 2; overflow-y: auto; border-right: 1px solid var(--border); }
  .mapwrap { grid-column: 2; grid-row: 1 / 3; height: auto; min-height: 0; }
  .summary { position: sticky; bottom: 0; border-top: 1px solid var(--border); }
  .filters > summary { cursor: default; pointer-events: none; padding-bottom: 4px; }
  .filters > summary::after { content: none; }
  body[data-tab=map] .tabbody:not(#tab-map) { display: none; }
  .detail {
    position: absolute; left: auto; top: 0; right: 0; bottom: 0; width: 380px; max-width: 100%; max-height: none;
    border-radius: 0; box-shadow: -4px 0 18px rgba(0,0,0,.25); transform: translateX(105%);
  }
  .detail.open { transform: none; }
  .legend { bottom: 24px; }
}
@media (max-width: 859px) {
  body[data-tab=map] .panel .tabbody { display: none; }
  .tabs { position: static; }
}
@media (prefers-reduced-motion: reduce) { .detail { transition: none; } .spinner { animation-duration: 2s; } }

/* admin */
.admin-page { max-width: 760px; margin: 0 auto; padding: 16px; }
.admin-box { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px; margin: 0 0 16px; }
.admin-box h2 { font-size: 18px; margin-bottom: 8px; }
.admin-box p { margin: 4px 0; }
.alert-ok { background: var(--surface-2); color: var(--text); border-left: 4px solid var(--accent); }
input[type=file] { font: inherit; margin: 8px 0; max-width: 100%; }
.logins { width: 100%; border-collapse: collapse; font-size: 14px; }
.logins th, .logins td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.logins td:last-child { text-align: right; }
.logins form { margin: 0; }
.tag { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); }
.btn-danger { color: var(--danger); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } }
.demo-list { list-style: none; margin: 8px 0 0; padding: 0; }
.demo-list li { padding: 10px 0; border-top: 1px solid var(--border); overflow-wrap: anywhere; }

/* home */
:root {
  --home-on-hot: #ffffff; --home-ground: #e4e9ee; --home-street: #ffffff; --home-park: #d3e3d2; --home-water: #b7d3ea;
  --home-swath: #1565c0;
}
@media (prefers-color-scheme: dark) {
  :root {
    --home-on-hot: #1a0a0a; --home-ground: #1f2830; --home-street: #33414d; --home-park: #1d2e24; --home-water: #1f3a52;
    --home-swath: #64a8f0;
  }
}
body.home { line-height: 1.55; }
.home-wrap { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.home-skip { position: absolute; left: 8px; top: -60px; z-index: 10; background: var(--surface); color: var(--text); padding: 12px 16px; border-radius: 8px; border: 2px solid var(--accent); }
.home-skip:focus { top: 8px; }
.home h1, .home h2, .home h3 { letter-spacing: -0.02em; }
.home h1 { font-size: clamp(2.25rem, 1.2rem + 4.6vw, 3.9rem); font-weight: 800; line-height: 1.04; letter-spacing: -0.03em; margin: 0 0 20px; text-wrap: balance; }
.home h2 { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.6rem); font-weight: 800; line-height: 1.1; margin: 0 0 16px; text-wrap: balance; }
.home h3 { font-size: 1.25rem; font-weight: 700; margin: 0 0 8px; }

.home-header { border-bottom: 1px solid var(--border); background: var(--bg); }
.home-header-row { display: flex; align-items: center; justify-content: space-between; min-height: 64px; }
.home-wordmark { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 1.4rem; font-weight: 800; letter-spacing: -0.03em; color: var(--text); text-decoration: none; }
.home-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; font-weight: 600; color: var(--text); text-underline-offset: 4px; }
.home-link:hover { color: var(--accent); }

.home-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 12px 24px;
  border-radius: 8px; border: 2px solid transparent; font: inherit; font-weight: 700; font-size: 1.0625rem;
  text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s;
}
.home-btn-primary { background: var(--accent); color: var(--accent-text); }
.home-btn-primary:hover { filter: brightness(1.1); }
.home-btn-secondary { background: transparent; color: var(--text); border-color: var(--text); }
.home-btn-secondary:hover { background: var(--surface-2); }
.home-btn-inverse { background: var(--bg); color: var(--text); }
.home-btn-inverse:hover { filter: brightness(.92); }
.home-btn-full { width: 100%; margin-top: 8px; }
.home-btn:focus-visible, .home-link:focus-visible, .home-wordmark:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.home-band :focus-visible { outline-color: var(--bg); }

.home-hero { padding: 40px 0 56px; }
.home-hero-grid { display: grid; gap: 40px; align-items: center; }
.home-eyebrow { margin: 0 0 16px; font-size: .875rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.home-lede { font-size: 1.1875rem; max-width: 34em; margin: 0 0 28px; color: var(--text); }
.home-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.home-fine { margin: 20px 0 0; font-size: .9375rem; color: var(--muted); }

.home-visual { margin: 0; position: relative; }
.home-map { display: block; width: 100%; height: auto; aspect-ratio: 620 / 440; border: 1px solid var(--border); border-radius: 12px; background: var(--home-ground); }
.hm-ground { fill: var(--home-ground); }
.hm-park { fill: var(--home-park); }
.hm-creek { stroke: var(--home-water); stroke-width: 10; stroke-linecap: round; }
.hm-streets path { stroke: var(--home-street); stroke-width: 5; }
.hm-streets .hm-hwy { stroke-width: 11; }
.hm-swath-outer { fill: var(--home-swath); opacity: .13; }
.hm-swath-inner { fill: var(--home-swath); opacity: .16; }
.hm-route { stroke: var(--text); stroke-width: 2.5; stroke-dasharray: 2 7; stroke-linecap: round; opacity: .75; }
.hm-pin { stroke: var(--surface); stroke-width: 1.6; }
.hm-pin-a { fill: var(--tier-a); } .hm-pin-b { fill: var(--tier-b); } .hm-pin-c { fill: var(--tier-c); }
.hm-dot { fill: var(--surface); }
.hm-ring { fill: none; stroke: var(--text); stroke-width: 2; }
.hm-sel .hm-pin { transform: scale(1.35); transform-box: fill-box; transform-origin: 50% 100%; }
.hm-sel .hm-dot { transform: translateY(-5px) scale(1.35); transform-box: fill-box; transform-origin: center; }

.home-lead {
  margin: -56px 12px 0; position: relative; padding: 16px 18px; background: var(--surface); color: var(--text);
  border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow);
}
.home-lead-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.home-score { display: inline-flex; align-items: baseline; gap: 6px; padding: 3px 12px 3px 10px; border-radius: 999px; background: var(--tier-a); color: var(--home-on-hot); font-weight: 700; font-size: .9375rem; }
.home-score-n { font-size: 1.25rem; font-weight: 800; }
.home-lead-tag { font-size: .8125rem; color: var(--muted); }
.home-lead-addr { margin: 10px 0 8px; font-size: 1.125rem; font-weight: 700; }
.home-lead-facts { margin: 0; display: grid; gap: 6px; }
.home-lead-facts div { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--border); padding-top: 6px; font-size: .9375rem; }
.home-lead-facts dt { color: var(--muted); }
.home-lead-facts dd { margin: 0; font-weight: 600; text-align: right; }
.home-lead-links { margin: 10px 0 0; font-size: .875rem; color: var(--accent); font-weight: 600; }
.home-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; margin-top: 12px; font-size: .875rem; color: var(--muted); }
.home-key { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }
.home-key-a { background: var(--tier-a); } .home-key-b { background: var(--tier-b); } .home-key-c { background: var(--tier-c); }
.home-legend-note { flex-basis: 100%; }

.home-sources { border-block: 1px solid var(--border); background: var(--surface); }
.home-sources p { margin: 0; padding: 18px 0; font-size: .9375rem; color: var(--muted); }
.home-sources strong { color: var(--text); }

.home-section { padding: 64px 0; }
.home-section-alt { background: var(--surface); border-block: 1px solid var(--border); }
.home-sub { font-size: 1.125rem; max-width: 36em; color: var(--muted); margin: 0 0 16px; }
.home-split { display: grid; gap: 28px; }

.home-steps { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 0; }
.home-steps li { padding: 24px 0; border-top: 2px solid var(--text); }
.home-steps p { margin: 0; color: var(--muted); max-width: 30em; }
.home-step-n { display: block; font-size: 3.5rem; font-weight: 800; line-height: 1; letter-spacing: -0.04em; color: var(--accent); margin-bottom: 12px; }

.home-checklist { list-style: none; margin: 0; padding: 0; display: grid; }
.home-checklist li { padding: 14px 0 14px 28px; border-top: 1px solid var(--border); position: relative; }
.home-checklist li:last-child { border-bottom: 1px solid var(--border); }
.home-checklist li::before { content: ""; position: absolute; left: 4px; top: 22px; width: 10px; height: 6px; border-left: 3px solid var(--accent); border-bottom: 3px solid var(--accent); transform: rotate(-45deg); }

.home-founding { color: var(--text); font-weight: 600; }
.home-plans { display: grid; gap: 16px; margin-top: 28px; }
.home-plan { background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 20px; display: flex; flex-direction: column; }
.home-plan-popular { border: 2px solid var(--accent); }
.home-plan-flag { margin: 0 0 4px; min-height: 1.4em; font-size: .8125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.home-plan h3 { font-size: 1.5rem; }
.home-plan-price { margin: 8px 0 4px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 4px; }
.home-plan-now { font-size: 3rem; font-weight: 800; line-height: 1; letter-spacing: -0.04em; }
.home-plan-per { font-size: 1.125rem; font-weight: 600; color: var(--muted); }
.home-plan-was { margin-left: 8px; font-size: 1.125rem; color: var(--muted); }
.home-plan-reach { margin: 0 0 4px; font-weight: 600; }
.home-plan-trial { margin: 0 0 16px; color: var(--muted); font-size: .9375rem; }
.home-plan .home-btn { margin-top: auto; }
.home-includes { margin-top: 28px; }
.home-includes p { margin: 0 0 8px; }
.home-includes ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 24px; }
.home-includes li { padding-left: 20px; position: relative; }
.home-includes li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 9px; height: 5px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.home-includes .home-fine { margin-top: 12px; }

.home-band { background: var(--text); color: var(--bg); padding: 56px 0; }
.home-band h2 { font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.8rem); }
.home-band .home-sub { color: var(--bg); opacity: .85; }
.home-band-cta { align-self: end; }
.home-price { margin: 0 0 16px; font-size: 1.125rem; font-weight: 600; }

.home-places { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 16px; }
.home-places li { padding: 12px 0; border-top: 1px solid var(--border); font-weight: 600; }

.home-form { display: block; }
.home-row { display: grid; gap: 0 16px; }
.home-field { margin-bottom: 16px; }
.home-field label { margin: 0 0 6px; font-size: .9375rem; }
.home-opt { font-weight: 400; color: var(--muted); }
.home-field input, .home-field textarea, .home-field select {
  display: block; width: 100%; min-height: 48px; padding: 10px 12px; font: inherit; color: var(--text);
  background: var(--surface); border: 1px solid var(--muted); border-radius: 8px;
}
.home-field textarea { resize: vertical; min-height: 96px; }
.home-field input:focus-visible, .home-field textarea:focus-visible, .home-field select:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; }
.home-hint { margin: -8px 0 16px; font-size: .875rem; color: var(--muted); }
.home-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.home-notice { padding: 16px; border-radius: 8px; margin-bottom: 16px; }
.home-notice-ok { background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--accent); font-size: 1.125rem; }
.home-notice-error { background: var(--danger-bg); color: var(--danger); border: 1px solid var(--danger); font-weight: 600; }

.home-footer { padding: 32px 0 40px; font-size: .9375rem; color: var(--muted); }
.home-footer-row { display: flex; flex-wrap: wrap; gap: 4px 24px; align-items: center; }
.home-footer p { margin: 0; }

@media (min-width: 720px) {
  .home-wrap { padding: 0 24px; }
  .home-lead { margin: -40px 16px 0 auto; max-width: 340px; }
  .home-steps { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .home-plans { grid-template-columns: repeat(3, 1fr); }
  .home-row { grid-template-columns: 1fr 1fr; }
  .home-places { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 960px) {
  .home-hero { padding: 72px 0 88px; }
  .home-hero-grid { grid-template-columns: 1fr 1.05fr; gap: 56px; }
  .home-split { grid-template-columns: 1fr 1fr; gap: 64px; }
  .home-split-form { grid-template-columns: 5fr 6fr; }
  .home-section { padding: 96px 0; }
  .home-band { padding: 72px 0; }
}
@media (prefers-reduced-motion: reduce) {
  .home-btn { transition: none; }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
