:root {
  --night: #0c1118;
  --deep: #090d13;
  --panel: #151d28;
  --panel-2: #1d2734;
  --amber: #f5b63f;
  --amber-ink: #2a1c02;
  --severe: #ff6161;
  --info: #5cb3ff;
  --text: #edf2f7;
  --muted: #9aa9ba;
  --line: #263243;
  --measure: 34rem;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body { overflow-x: hidden; }
@supports (overflow: clip) { html, body { overflow-x: clip; } }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--night);
  color: var(--text);
  font-family: "Overpass", system-ui, -apple-system, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--amber); text-underline-offset: 0.18em; }
a:hover { color: #ffd27a; }

:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 4px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.wrap { max-width: 72rem; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 48rem) { .wrap { padding: 0 2rem; } }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.25rem 0; }
.brand { display: flex; align-items: center; gap: 0.6rem; color: var(--text); text-decoration: none; font-weight: 800; font-size: 1.25rem; letter-spacing: -0.01em; flex: none; }
.brand svg { width: 2.1rem; height: 2.1rem; }
.top nav { display: flex; gap: 1.25rem; font-weight: 600; font-size: 0.95rem; }
.top nav a { color: var(--muted); text-decoration: none; white-space: nowrap; }
.top nav a:hover { color: var(--text); }
@media (max-width: 52rem) { .top nav .wide { display: none; } }
@media (max-width: 30rem) { .top nav { gap: 1rem; } .top nav .long { display: none; } }

/* Buttons */
.store {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: var(--amber); color: var(--amber-ink);
  font-weight: 800; text-decoration: none;
  padding: 0.85rem 1.3rem; border-radius: 999px;
}
.store:hover { background: #ffc85c; color: var(--amber-ink); }
.store svg { width: 1.15rem; height: 1.15rem; }
.store[aria-disabled="true"] { background: var(--panel-2); color: var(--text); cursor: default; }

.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font: inherit; font-weight: 700; font-size: 0.95rem; line-height: 1.2;
  color: var(--text); background: var(--panel-2);
  border: 1px solid #33435a; border-radius: 999px;
  padding: 0.65rem 1.1rem; cursor: pointer;
}
.btn:hover { border-color: var(--amber); }
.btn:disabled { opacity: 0.6; cursor: progress; }
.btn svg { width: 1.1rem; height: 1.1rem; flex: none; }
.btn.ghost { background: transparent; }
.btn[aria-pressed="true"] { background: var(--amber); color: var(--amber-ink); border-color: var(--amber); }

/* Hero */
.hero { display: grid; gap: 2.5rem; align-items: center; padding: 2rem 0 4rem; }
@media (min-width: 56rem) { .hero { grid-template-columns: 1.05fr 0.95fr; padding: 3rem 0 6rem; } }

.bulletin {
  display: inline-flex; align-items: center; gap: 0.6rem;
  border-left: 4px solid var(--amber);
  background: rgba(245, 182, 63, 0.1);
  padding: 0.5rem 0.9rem; border-radius: 0 0.5rem 0.5rem 0;
  font-weight: 600; font-size: 0.95rem; color: #ffe2a6;
  margin: 0 0 1.5rem;
}

.hero h1 {
  font-weight: 900;
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin: 0 0 1.25rem;
  max-width: 12ch;
}
.hero .lede { color: var(--muted); font-size: 1.2rem; max-width: var(--measure); margin: 0 0 2rem; }
.fine { color: var(--muted); font-size: 0.9rem; margin: 1rem 0 0; }

/* Radar rings behind the hero phone */
.scope { position: relative; display: grid; place-items: center; padding: 2rem 0; }
.scope .rings { position: absolute; inset: 50% auto auto 50%; width: min(42rem, 140%); aspect-ratio: 1; transform: translate(-50%, -50%); pointer-events: none; }
.scope .rings circle { fill: none; stroke: var(--amber); }
.scope .sweep { transform-origin: 50% 50%; animation: sweep 6s linear 1 both; }
@keyframes sweep { from { transform: rotate(-40deg); opacity: 0.9; } to { transform: rotate(320deg); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .scope .sweep { animation: none; opacity: 0; } }

.phone {
  position: relative; width: min(19rem, 78vw);
  border-radius: 2.6rem; padding: 0.55rem;
  background: #05080c;
  box-shadow: 0 0 0 1px #2c3a4d, 0 40px 80px -30px rgba(0, 0, 0, 0.8);
}
.phone img { border-radius: 2.1rem; width: 100%; height: auto; }

/* Sections */
section { padding: 4.5rem 0; border-top: 1px solid var(--line); scroll-margin-top: 1rem; }
section h2 { font-weight: 800; font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 0.75rem; max-width: 20ch; }
section .intro { color: var(--muted); max-width: var(--measure); margin: 0 0 2.5rem; }

/* Live radar */
.radar-head { display: grid; gap: 0 3rem; align-items: end; }
@media (min-width: 56rem) { .radar-head { grid-template-columns: 1fr 1fr; } .radar-head .intro { margin-bottom: 2rem; } }

.radar-map {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3.4;
  max-height: 36rem;
  border-radius: 1.25rem;
  border: 1px solid var(--line);
  background: var(--deep);
  overflow: hidden;
  isolation: isolate;
}
@media (min-width: 40rem) { .radar-map { aspect-ratio: 16 / 9; } }
@media (min-width: 64rem) { .radar-map { aspect-ratio: 2 / 1; } }

.radar-map .fallback {
  position: absolute; inset: 0; display: grid; place-items: center; padding: 2rem;
  color: var(--muted); text-align: center;
}

.radar-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; margin-top: 1.25rem; }
.radar-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.radar-time { margin: 0; color: var(--muted); font-size: 0.95rem; }
.radar-time strong { color: var(--text); font-weight: 700; }

.legend { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2.5rem; margin-top: 1.5rem; font-size: 0.9rem; color: var(--muted); }
.ramp { display: grid; gap: 0.35rem; width: min(17rem, 100%); }
.ramp-bar {
  display: block; height: 0.55rem; border-radius: 999px;
  background: linear-gradient(90deg, #04e9e7 0%, #019ff4 10%, #02fd02 24%, #008e00 38%, #fdf802 50%, #fd9500 64%, #fd0000 76%, #bc0000 86%, #f800fd 100%);
}
.ramp-labels { display: flex; justify-content: space-between; gap: 1rem; }
.keys { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.keys li { display: flex; align-items: center; gap: 0.5rem; }
.key { width: 1rem; height: 1rem; border-radius: 0.25rem; border: 2px solid; flex: none; }
.key.severe { border-color: var(--severe); background: rgba(255, 97, 97, 0.2); }
.key.other { border-color: var(--amber); background: rgba(245, 182, 63, 0.2); }
.key.quake { border-radius: 50%; border-color: #fff; background: #f59a33; width: 0.85rem; height: 0.85rem; border-width: 1px; }

.alert-count { margin: 2rem 0 0; max-width: 40rem; font-size: 1.1rem; }
.loc-note { margin: 0.75rem 0 0; color: var(--muted); font-size: 0.85rem; }
.map-credit { margin: 0.35rem 0 0; color: #6f7f92; font-size: 0.78rem; }
.map-credit a { color: inherit; }

/* Leaflet, restyled to match */
.leaflet-container { background: var(--deep); font-family: inherit; }
.leaflet-container a { color: var(--amber); }
.leaflet-bar { border: 1px solid var(--line) !important; border-radius: 0.75rem !important; overflow: hidden; box-shadow: none !important; }
.leaflet-bar a, .leaflet-bar a:hover {
  background: var(--panel); color: var(--text); border-bottom-color: var(--line);
  width: 2.25rem; height: 2.25rem; line-height: 2.25rem; font-size: 1.2rem;
}
.leaflet-bar a:hover { background: var(--panel-2); }
.leaflet-bar a.leaflet-disabled { background: var(--panel); color: #4b5a6d; }
.leaflet-control-attribution {
  background: rgba(9, 13, 19, 0.82) !important; color: var(--muted);
  font-size: 0.68rem; line-height: 1.4; padding: 0.15rem 0.5rem !important; max-width: 100%;
}
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: var(--panel); color: var(--text); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5); }
.leaflet-popup-content-wrapper { border: 1px solid var(--line); border-radius: 0.9rem; }
.leaflet-popup-content { margin: 0.85rem 1rem; font-size: 0.9rem; line-height: 1.45; }
.leaflet-popup-content strong { display: block; font-size: 1rem; margin-bottom: 0.2rem; }
.leaflet-popup-content .until { color: var(--amber); font-weight: 700; margin: 0.35rem 0 0; }
.leaflet-popup-content .where { color: var(--muted); margin: 0; }
.leaflet-container a.leaflet-popup-close-button { color: var(--muted); }

.city { color: #c2cedb; font-size: 0.72rem; font-weight: 600; white-space: nowrap; line-height: 1; text-shadow: 0 0 3px var(--deep), 0 0 3px var(--deep), 0 0 2px var(--deep); pointer-events: none; }
.city::before { content: ""; display: inline-block; width: 0.3rem; height: 0.3rem; border-radius: 50%; background: #c2cedb; margin-right: 0.3rem; vertical-align: 0.1em; }
.z-far .city.t2, .z-far .city.t3, .z-mid .city.t3 { display: none; }

/* Screens strip */
.screens { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(13rem, 17rem); gap: 1.5rem; overflow-x: auto; padding-bottom: 1rem; scroll-snap-type: x mandatory; }
.screens figure { margin: 0; scroll-snap-align: start; }
.screens img { border-radius: 1.6rem; border: 1px solid var(--line); width: 100%; height: auto; }
.screens figcaption { margin-top: 1rem; }
.screens figcaption strong { display: block; font-size: 1.1rem; }
.screens figcaption span { color: var(--muted); font-size: 0.95rem; }

/* Drive mode */
.drive-grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 56rem) { .drive-grid { grid-template-columns: 1.15fr 0.85fr; gap: 4rem; } }
.drive .phone { justify-self: center; width: min(20rem, 80vw); }
.points { margin: 0 0 2rem; display: grid; gap: 1.5rem; max-width: var(--measure); }
.points dt { font-weight: 800; font-size: 1.15rem; }
.points dd { margin: 0.25rem 0 0; color: var(--muted); }
.points div { padding-left: 1rem; border-left: 3px solid var(--line); }
.points div:first-child { border-left-color: var(--severe); }

/* Free vs Pro */
.compare-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 1.25rem; background: var(--panel); }
.compare { width: 100%; border-collapse: collapse; min-width: 20rem; }
.compare th, .compare td { padding: 0.85rem 1rem; text-align: left; vertical-align: middle; border-top: 1px solid var(--line); }
.compare thead th { border-top: 0; font-size: 1.15rem; font-weight: 800; vertical-align: bottom; padding-top: 1.25rem; }
.compare thead th span { display: block; font-size: 0.85rem; font-weight: 600; color: var(--muted); margin-top: 0.15rem; }
.compare tbody th { font-weight: 600; }
.compare td { text-align: center; width: 24%; color: var(--muted); font-size: 0.95rem; }
.compare .pro-col { background: rgba(245, 182, 63, 0.07); color: var(--text); }
.compare thead .pro-col { color: var(--amber); box-shadow: inset 0 3px 0 var(--amber); }
.compare thead .pro-col span { color: #ffe2a6; }
.compare .yes { width: 1.25rem; height: 1.25rem; color: var(--amber); display: inline-block; vertical-align: middle; }
.compare td:not(.pro-col) .yes { color: var(--text); }
.compare .no { color: #4b5a6d; font-weight: 800; }
@media (max-width: 30rem) { .compare th, .compare td { padding: 0.75rem 0.6rem; } .compare tbody th { font-size: 0.95rem; } }
.pro-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; margin-top: 2rem; }
.pro-foot .fine { margin: 0; max-width: 34rem; }

/* Safety */
.note { display: grid; gap: 1rem; align-items: start; }
@media (min-width: 48rem) { .note { grid-template-columns: 1fr 1.4fr; gap: 3rem; } }
.note p { color: var(--muted); max-width: var(--measure); margin: 0 0 1rem; }

/* FAQ */
.faq-grid { display: grid; gap: 1rem 4rem; }
@media (min-width: 56rem) { .faq-grid { grid-template-columns: 0.8fr 1.2fr; } }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.1rem 0; font-weight: 700; font-size: 1.1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 0.65rem; height: 0.65rem; margin-right: 0.3rem;
  border-right: 2px solid var(--amber); border-bottom: 2px solid var(--amber);
  transform: rotate(45deg) translateY(-0.2rem);
}
.faq details[open] summary::after { transform: rotate(225deg) translateY(-0.1rem); }
.faq summary:hover { color: #ffe2a6; }
.faq details p { margin: 0 0 1.25rem; color: var(--muted); max-width: 40rem; }
.faq-more { color: var(--muted); }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 2.5rem 0 3rem; color: var(--muted); font-size: 0.95rem; }
footer .row { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; }
footer p { margin: 1.25rem 0 0; max-width: 46rem; }

/* Text pages */
.doc { max-width: 42rem; padding: 2rem 0 4rem; }
.doc h1 { font-weight: 900; font-size: clamp(2.2rem, 6vw, 3.2rem); line-height: 1.05; letter-spacing: -0.02em; margin: 0 0 0.5rem; }
.doc .updated { color: var(--muted); margin: 0 0 2rem; }
.doc h2 { font-size: 1.3rem; font-weight: 800; margin: 2.25rem 0 0.5rem; color: var(--text); }
.doc p, .doc li { color: #c9d4df; }
.doc ul { padding-left: 1.2rem; }
.doc dt { font-weight: 800; margin-top: 1.5rem; }
.doc dd { margin: 0.25rem 0 0; color: #c9d4df; }
.contact { background: var(--panel); border: 1px solid var(--line); border-radius: 1rem; padding: 1.25rem 1.5rem; margin: 1.5rem 0; }
.contact p { margin: 0; }

/* Press kit */
.press { padding: 2rem 0 4rem; }
.press > header { max-width: 42rem; }
.press h1 { font-weight: 900; font-size: clamp(2.2rem, 6vw, 3.2rem); line-height: 1.05; letter-spacing: -0.02em; margin: 0 0 0.75rem; }
.press .lede { color: var(--muted); font-size: 1.15rem; margin: 0 0 1.5rem; }
.press section { padding: 3rem 0; }
.press h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.copyblock { max-width: 42rem; background: var(--panel); border: 1px solid var(--line); border-radius: 1rem; padding: 1.25rem 1.5rem; margin: 0 0 1.5rem; }
.copyblock h3 { margin: 0 0 0.5rem; font-size: 1rem; color: var(--muted); font-weight: 700; }
.copyblock p { margin: 0 0 0.75rem; }
.copyblock p:last-child { margin: 0; }
.facts { display: grid; gap: 0; margin: 0; max-width: 46rem; }
.facts div { display: grid; gap: 0.25rem 2rem; padding: 0.9rem 0; border-top: 1px solid var(--line); }
@media (min-width: 40rem) { .facts div { grid-template-columns: 11rem 1fr; } }
.facts dt { font-weight: 800; }
.facts dd { margin: 0; color: #c9d4df; }
.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: 1.25rem; }
.shots figure { margin: 0; }
.shots img { border-radius: 1.1rem; border: 1px solid var(--line); width: 100%; height: auto; }
.shots figcaption { margin-top: 0.6rem; font-size: 0.9rem; }
.marks { display: flex; flex-wrap: wrap; gap: 2rem; align-items: center; }
.marks figure { margin: 0; display: grid; gap: 0.75rem; justify-items: start; }
.marks img { width: 7rem; height: 7rem; border-radius: 1.6rem; }
.marks figcaption { font-size: 0.9rem; }
