:root {
  color-scheme: light;
  --ink: #101828;
  --muted: #526176;
  --line: #d8e0e8;
  --surface: #ffffff;
  --soft: #f5f8f7;
  --mint: #edf8f2;
  --green: #087449;
  --green-dark: #055b39;
  --blue: #2458c6;
  --blue-soft: #eef4ff;
  --danger: #a33a2b;
  --shadow: 0 18px 44px rgb(16 24 40 / 12%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--surface); }
button, input, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
.page-width { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }

.topbar {
  position: sticky;
  z-index: 30;
  top: 0;
  height: 68px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 max(24px, calc((100% - 1180px) / 2));
  background: rgb(255 255 255 / 94%);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-size: 20px; font-weight: 800; letter-spacing: -.035em; }
.brand-mark { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 10px 10px 10px 2px; color: white; background: var(--green); transform: rotate(-4deg); }
.topbar nav { display: flex; align-items: center; gap: 34px; }
.topbar nav a { color: #344054; font-size: 13px; font-weight: 700; text-decoration: none; }
.topbar nav a:hover { color: var(--green); }
.tool-status { justify-self: end; display: flex; align-items: center; gap: 8px; padding: 7px 10px; border: 1px solid #b9dfce; border-radius: 7px; color: var(--green-dark); background: var(--mint); font-size: 12px; font-weight: 700; }
.status-dot, .live-dot { width: 8px; height: 8px; border-radius: 50%; background: #16a36a; box-shadow: 0 0 0 4px rgb(22 163 106 / 10%); }
.tool-status.unsupported { color: #667085; border-color: var(--line); background: #f8fafc; }
.tool-status.unsupported .status-dot { background: #98a2b3; box-shadow: none; }

.hero { min-height: 590px; display: grid; grid-template-columns: .92fr 1.08fr; align-items: center; gap: 72px; padding-block: 78px 72px; }
.hero-copy h1 { margin: 0 0 24px; font-size: clamp(56px, 6.5vw, 84px); line-height: .98; letter-spacing: -.065em; }
.hero-lede { max-width: 610px; margin: 0 0 18px; color: #27364a; font-size: 19px; line-height: 1.55; }
.hero-support { max-width: 600px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.primary-button, .secondary-button { min-height: 43px; display: inline-flex; align-items: center; justify-content: center; border-radius: 7px; padding: 0 17px; font-size: 13px; font-weight: 750; text-decoration: none; }
.primary-button { border: 1px solid var(--green); color: white; background: var(--green); box-shadow: 0 3px 9px rgb(8 116 73 / 18%); }
.primary-button:hover { background: var(--green-dark); }
.primary-button:disabled { opacity: .6; cursor: wait; }
.secondary-button { border: 1px solid #90a2b5; color: #203047; background: white; }
.secondary-button:hover { color: var(--green-dark); border-color: var(--green); }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid rgb(36 88 198 / 25%); outline-offset: 2px; }

.hero-preview { position: relative; min-height: 430px; border: 1px solid #cdd7e2; border-radius: 13px; background: #eef4ef; box-shadow: var(--shadow); overflow: hidden; }
.preview-map { position: absolute; inset: 0 22% 0 0; opacity: .85; background-color: #eef4ef; background-image: linear-gradient(#d6e3d8 1px, transparent 1px), linear-gradient(90deg, #d6e3d8 1px, transparent 1px), linear-gradient(25deg, transparent 48%, #fff 49%, #fff 51%, transparent 52%); background-size: 38px 38px, 38px 38px, 140px 140px; }
.preview-pin { position: absolute; width: 24px; height: 24px; border: 5px solid white; border-radius: 50% 50% 50% 4px; background: var(--green); box-shadow: 0 4px 9px rgb(16 24 40 / 22%); transform: rotate(-45deg); }
.preview-pin.one { top: 25%; left: 32%; }.preview-pin.two { top: 55%; left: 58%; }.preview-pin.three { top: 70%; left: 26%; }
.preview-tools { position: absolute; top: 50%; right: 22px; width: 52%; transform: translateY(-50%); display: grid; gap: 10px; padding: 24px; border: 1px solid #b8c5d3; border-radius: 10px; background: rgb(255 255 255 / 96%); box-shadow: 0 13px 30px rgb(16 24 40 / 15%); }
.preview-tools p, .preview-tools small { margin: 0; color: var(--muted); font-size: 11px; }
.preview-tools strong { font-size: 15px; }
.preview-rule { height: 1px; margin: 3px 0; background: var(--line); }
.preview-tools span { display: flex; justify-content: space-between; gap: 12px; color: var(--blue); font: 650 11px ui-monospace, SFMono-Regular, Menlo, monospace; }
.preview-tools b { color: white; width: 17px; height: 17px; display: grid; place-items: center; border-radius: 50%; background: var(--blue); }
.preview-tools em { margin-top: 4px; padding: 10px; color: var(--green-dark); background: var(--mint); border-radius: 6px; font-size: 12px; font-style: normal; font-weight: 700; }

.how-section { padding: 58px 0 32px; background: var(--mint); border-block: 1px solid #dcece4; }
.how-section h2, .map-section h2, .test-section h2 { margin: 0; font-size: 30px; letter-spacing: -.035em; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px; margin-top: 38px; }
.steps article { position: relative; }
.steps article:not(:last-child)::after { content: ""; position: absolute; top: 16px; left: 48px; right: -45px; height: 1px; background: #b9d9ca; }
.steps article > span { width: 34px; height: 34px; position: relative; z-index: 1; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--green); font-size: 13px; font-weight: 800; }
.steps h3 { margin: 17px 0 8px; font-size: 16px; }
.steps p { max-width: 300px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.how-note { margin: 42px 0 0; padding: 22px 0 0; border-top: 1px solid #cce2d7; color: #405468; font-size: 13px; text-align: center; }

.map-section { padding-block: 82px; }
.map-title-row { display: flex; justify-content: space-between; align-items: end; margin-bottom: 18px; }
.map-title-row p { margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.reset-button { border: 0; padding: 8px; color: var(--green); background: transparent; font-size: 13px; font-weight: 750; }
.app-shell { height: 660px; display: grid; grid-template-columns: 320px minmax(340px, 1fr) 260px; border: 1px solid #cbd6df; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.sidebar { min-width: 0; display: flex; flex-direction: column; overflow-y: auto; background: white; border-right: 1px solid var(--line); }
.search-panel { padding: 20px; border-bottom: 1px solid var(--line); }
form { display: grid; gap: 9px; }
label { margin-top: 3px; color: #344054; font-size: 12px; font-weight: 750; }
select { width: 100%; height: 40px; padding: 0 11px; border: 1px solid #b9c5d2; border-radius: 7px; color: var(--ink); background: white; font-size: 13px; }
.input-wrap { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 11px; border: 1px solid #b9c5d2; border-radius: 7px; background: white; }
.input-wrap:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgb(36 88 198 / 12%); }
input { width: 100%; min-width: 0; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 13px; }
.search-panel .primary-button { width: 100%; margin-top: 7px; }
.results-panel { flex: 1; padding: 17px 15px 8px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.section-heading h3 { margin: 0; font-size: 14px; }
.heading-actions { display: flex; align-items: center; gap: 5px; }
.text-button { border: 0; padding: 4px; color: var(--blue); background: transparent; font-size: 11px; }
.text-button:disabled { color: #98a2b3; cursor: default; }
.result-summary { min-height: 17px; margin: 5px 0 11px; color: var(--muted); font-size: 11px; }
.result-list { display: grid; gap: 7px; }
.result-card { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 9px; padding: 11px 10px; border: 1px solid var(--line); border-radius: 8px; background: white; transition: 150ms ease; }
.result-card:hover, .result-card.active { border-color: #79b99b; background: var(--mint); }
.result-number { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50% 50% 50% 4px; color: white; background: var(--green); font-size: 10px; font-weight: 800; }
.result-copy { min-width: 0; }
.result-copy h4 { margin: 1px 0 5px; font-size: 12px; line-height: 1.3; }
.result-copy p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.45; }
.result-copy .features { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.shortlist-button { grid-column: 2; justify-self: start; border: 0; padding: 2px 0; color: var(--green); background: transparent; font-size: 10px; font-weight: 750; }
.result-state { margin-top: 14px; padding: 15px; border-radius: 7px; color: var(--muted); background: #f7f9fb; font-size: 12px; line-height: 1.5; }
.result-state.loading::before { content: ""; display: inline-block; width: 11px; height: 11px; margin-right: 8px; border: 2px solid #b8c4d0; border-top-color: var(--blue); border-radius: 50%; animation: spin .8s linear infinite; }
.result-state.error { color: var(--danger); background: #fff4f1; }
.comparison { white-space: pre-line; margin-top: 10px; padding: 10px; border-left: 3px solid var(--green); color: #344054; background: var(--mint); font-size: 10px; }
.toast { min-height: 18px; margin: 10px 0 -28px; color: var(--green-dark); font-size: 11px; text-align: center; }

.map-region { position: relative; min-width: 0; overflow: hidden; background: #dfe7e0; }
.map { position: absolute; inset: 0; overflow: hidden; }
.tile-layer, .marker-layer { position: absolute; inset: 0; }
.tile-layer img { width: 256px; height: 256px; position: absolute; max-width: none; user-select: none; filter: saturate(.72) contrast(.94) brightness(1.04); }
.map-marker { position: absolute; z-index: 3; transform: translate(-50%, -100%); min-width: 34px; height: 34px; padding: 0 7px; border: 3px solid white; border-radius: 50% 50% 50% 5px; color: white; background: var(--green); box-shadow: 0 3px 10px rgb(16 24 40 / 28%); font-size: 10px; font-weight: 900; }
.map-marker.selected { width: 46px; height: 46px; z-index: 5; background: var(--blue); outline: 4px solid rgb(255 255 255 / 95%); outline-offset: 2px; box-shadow: 0 0 0 9px rgb(36 88 198 / 28%), 0 6px 18px rgb(16 24 40 / 42%); }
.legend { position: absolute; z-index: 8; top: 14px; right: 14px; padding: 10px 12px; border: 1px solid rgb(152 162 179 / 55%); border-radius: 8px; background: rgb(255 255 255 / 94%); box-shadow: 0 5px 18px rgb(16 24 40 / 12%); font-size: 11px; }
.legend span { display: flex; align-items: center; gap: 7px; }
.legend-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); }
.legend-dot.selected { background: var(--blue); box-shadow: 0 0 0 3px rgb(36 88 198 / 18%); }
.map-controls { position: absolute; z-index: 8; right: 14px; bottom: 30px; display: grid; border: 1px solid #aab6c3; border-radius: 7px; overflow: hidden; box-shadow: 0 5px 18px rgb(16 24 40 / 12%); }
.map-controls button { width: 38px; height: 38px; border: 0; border-bottom: 1px solid var(--line); color: var(--ink); background: white; font-size: 20px; }
.map-controls button:last-child { border-bottom: 0; }
.osm-attribution { position: absolute; z-index: 8; right: 4px; bottom: 3px; padding: 2px 4px; color: #344054; background: rgb(255 255 255 / 84%); font-size: 8px; text-decoration: none; }
.map-empty { position: absolute; z-index: 9; top: 50%; left: 50%; transform: translate(-50%, -50%); padding: 12px 15px; border-radius: 7px; background: white; box-shadow: var(--shadow); font-size: 12px; }
.detail-panel { position: relative; padding: 24px 19px; overflow-y: auto; border-left: 1px solid var(--line); background: #fbfcfd; }
.detail-panel h3 { margin: 0 26px 25px 0; font-size: 20px; line-height: 1.2; letter-spacing: -.025em; }
.detail-panel strong { display: block; margin: 18px 0 5px; color: #344054; font-size: 10px; text-transform: uppercase; letter-spacing: .06em; }
.detail-panel p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.detail-close { position: absolute; top: 15px; right: 15px; border: 0; color: #667085; background: transparent; font-size: 21px; }
.detail-placeholder { margin-top: 45% !important; text-align: center; }
.detail-actions { display: grid; gap: 8px; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); }
.detail-actions .primary-button, .detail-actions .secondary-button { width: 100%; min-height: 39px; padding-inline: 8px; font-size: 11px; }

.test-section { padding: 72px 0; background: #f6f8fb; border-top: 1px solid var(--line); }
.test-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 72px; }
.test-guide > p { max-width: 560px; margin: 15px 0 20px; color: var(--muted); font-size: 14px; line-height: 1.65; }
.test-guide ol { margin: 0 0 25px; padding-left: 22px; color: #344054; font-size: 13px; line-height: 1.75; }
.prompt-list { display: grid; gap: 7px; }
.prompt-list button { width: 100%; display: flex; justify-content: space-between; gap: 14px; padding: 11px 12px; border: 1px solid #cbd5df; border-radius: 7px; color: #26364b; background: white; font-size: 12px; text-align: left; }
.prompt-list button:hover { border-color: var(--blue); }
.prompt-list b { color: var(--blue); font-size: 10px; }
.activity-panel { min-height: 420px; padding: 24px; border: 1px solid #ccd8e5; border-radius: 10px; background: white; box-shadow: 0 9px 28px rgb(16 24 40 / 7%); }
.activity-heading, .activity-heading > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.activity-heading h3 { margin: 0; font-size: 17px; }
.activity-explainer { margin: 9px 0 21px; color: var(--muted); font-size: 11px; }
.activity-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.activity-event { display: grid; grid-template-columns: 67px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid #e6ebf0; }
.activity-event time { color: #7a8798; font: 10px ui-monospace, SFMono-Regular, Menlo, monospace; }
.activity-event > div { min-width: 0; display: grid; gap: 4px; }
.activity-event strong { color: var(--blue); font: 650 11px ui-monospace, SFMono-Regular, Menlo, monospace; overflow-wrap: anywhere; }
.activity-event span { color: var(--muted); font-size: 10px; line-height: 1.4; overflow-wrap: anywhere; }
.activity-event.completed strong { color: var(--green); }
.activity-event.failed strong { color: var(--danger); }
.activity-event.system strong { color: #667085; }
.activity-empty { padding: 22px 0; border-top: 1px solid #e6ebf0; color: #7a8798; font-size: 12px; }

.site-footer { padding: 40px 0; color: white; background: #065c3b; }
.site-footer .page-width { display: grid; grid-template-columns: 1fr 2fr; gap: 70px; }
.site-footer strong { font-size: 14px; }
.site-footer p { max-width: 700px; margin: 7px 0 0; color: #d7eee3; font-size: 11px; line-height: 1.55; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 980px) {
  .topbar { grid-template-columns: 1fr auto; }
  .topbar nav { display: none; }
  .hero { grid-template-columns: 1fr 1fr; gap: 34px; }
  .hero-copy h1 { font-size: 58px; }
  .app-shell { height: auto; grid-template-columns: 300px 1fr; }
  .sidebar { height: 620px; }
  .map-region { min-height: 620px; }
  .detail-panel { grid-column: 1 / -1; min-height: 210px; border-top: 1px solid var(--line); border-left: 0; }
  .detail-placeholder { margin-top: 40px !important; }
}

@media (max-width: 720px) {
  .page-width { width: min(100% - 30px, 1180px); }
  .topbar { height: 58px; padding: 0 15px; }
  .brand { font-size: 17px; }
  .brand-mark { width: 26px; height: 26px; }
  .tool-status { padding: 6px 8px; font-size: 0; }
  .hero { min-height: 0; grid-template-columns: 1fr; gap: 45px; padding-block: 60px; }
  .hero-copy h1 { font-size: 53px; }
  .hero-lede { font-size: 17px; }
  .hero-preview { min-height: 360px; }
  .preview-tools { right: 14px; width: 69%; padding: 18px; }
  .steps { grid-template-columns: 1fr; gap: 30px; }
  .steps article:not(:last-child)::after { top: 36px; bottom: -26px; left: 16px; right: auto; width: 1px; height: auto; }
  .steps article { padding-left: 49px; }
  .steps article > span { position: absolute; left: 0; top: 0; }
  .steps h3 { margin-top: 0; }
  .how-note { text-align: left; }
  .map-section { padding-block: 56px; }
  .map-title-row { align-items: center; }
  .map-title-row h2, .how-section h2, .test-section h2 { font-size: 25px; }
  .app-shell { display: flex; flex-direction: column; border-radius: 9px; }
  .sidebar { height: auto; max-height: none; overflow: visible; border-right: 0; }
  .map-region { min-height: 430px; order: 2; border-top: 1px solid var(--line); }
  .detail-panel { min-height: 230px; order: 3; }
  .test-grid { grid-template-columns: 1fr; gap: 40px; }
  .test-section { padding: 55px 0; }
  .activity-panel { min-height: 340px; padding: 18px; }
  .site-footer .page-width { grid-template-columns: 1fr; gap: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation-duration: .01ms !important; }
}
