/* OpenTier — dark corporate theme */
:root {
  --bg: #0a1628;           /* page background, deep navy */
  --bg-2: #0d1b31;         /* alternate section */
  --card: #11223b;         /* cards, panels */
  --card-2: #162a47;
  --ink: #f1f5fb;          /* headings */
  --body: #b6c3d6;         /* paragraph text */
  --muted: #8295ae;
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .16);
  --accent: #3b93ff;       /* signal blue */
  --accent-dark: #2479e6;
  --accent-soft: rgba(59, 147, 255, .14);
  --ok: #2fcf8a;
  --on-light: #0a1628;

  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 40px rgba(0, 0, 0, .35);
  --max: 1180px;
  --font-head: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: #7ab6ff; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.3rem, 5vw, 3.7rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .container { padding: 0 16px; } }

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.lead { font-size: 1.2rem; color: var(--body); max-width: 40em; }
.muted { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 700; font-size: .98rem;
  padding: 14px 22px; border-radius: 8px;
  border: 2px solid transparent;
  transition: background .15s, color .15s, border-color .15s, transform .15s;
  cursor: pointer; line-height: 1;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-outline { border-color: var(--line-2); color: var(--ink); background: transparent; }
.btn-outline:hover { border-color: var(--ink); color: var(--ink); }
.btn-light { background: #fff; color: var(--on-light); }
.btn-light:hover { color: var(--accent-dark); }
.btn-ghost-light { border-color: rgba(255,255,255,.35); color: #fff; }
.btn-ghost-light:hover { border-color: #fff; color: #fff; }
.btn svg { width: 18px; height: 18px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 22, 40, .82);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }

/* Logo is white-on-transparent; the mask lets us recolour it if needed. */
.logo-mark {
  display: block;
  width: 170px; aspect-ratio: 1920 / 477;
  background: #fff;
  -webkit-mask: url("../opentier-logo.png") center / contain no-repeat;
          mask: url("../opentier-logo.png") center / contain no-repeat;
}
.logo-white { width: 170px; height: auto; }

.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  font-family: var(--font-head); font-weight: 600; font-size: .95rem;
  color: var(--body); padding: 10px 14px; border-radius: 6px; white-space: nowrap;
}
.nav-links a:hover { background: rgba(255,255,255,.06); color: var(--ink); }
.nav-links a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
.nav-cta { display: flex; align-items: center; gap: 16px; }
.nav-phone { font-family: var(--font-head); font-weight: 700; color: var(--ink); font-size: .95rem; white-space: nowrap; }
.nav-cta .btn { padding: 12px 18px; white-space: nowrap; }
.nav-cta .nav-portal { padding: 11px 16px; gap: 8px; }
.nav-portal svg { flex-shrink: 0; }

.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink); }
.nav-toggle svg { width: 28px; height: 28px; }

@media (max-width: 1100px) { .nav-phone { display: none; } }
@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav-menu {
    display: none;
    position: absolute; top: 76px; left: 0; right: 0;
    background: var(--bg-2); border-bottom: 1px solid var(--line);
    padding: 12px 16px 20px; box-shadow: var(--shadow);
  }
  .nav-menu.open { display: block; }
  .nav-links { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-links a { display: block; padding: 14px 8px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-links a[aria-current="page"] { box-shadow: none; color: var(--accent); }
  .nav-cta { flex-direction: column; align-items: stretch; margin-top: 16px; }
  .nav-cta .btn { justify-content: center; }
  .nav-phone { display: block; text-align: center; padding: 8px; }
  .logo-mark { width: 140px; }
}
@media (min-width: 961px) { .nav-menu { display: flex; align-items: center; gap: 28px; } }

/* ---------- Sections ---------- */
section { padding: 96px 0; }
@media (max-width: 700px) { section { padding: 64px 0; } }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Photo hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 140px 0 120px;
  min-height: min(82vh, 760px);
  display: flex; align-items: center;
  background: var(--bg);
}
/* photo sits in the right ~60% so the radio isn't behind the headline */
.hero::after {
  content: ""; position: absolute; top: 0; bottom: 0; right: 0; left: 38%; z-index: 0;
  background: url("../images/rooftop-tarana.jpg") 50% 62% / cover no-repeat;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg, rgba(10,22,40,1) 0%, rgba(10,22,40,1) 38%, rgba(10,22,40,.55) 52%, rgba(10,22,40,.1) 75%, rgba(10,22,40,.05) 100%),
    linear-gradient(0deg, rgba(10,22,40,1) 0%, rgba(10,22,40,0) 30%);
}
.hero > .container { position: relative; z-index: 2; }
.hero-copy { max-width: 620px; }
.hero h1 span { color: var(--accent); }
.hero .lead { margin-bottom: 32px; color: #c9d4e4; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { margin-top: 22px; font-size: .92rem; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(47,207,138,.18); flex: none; }
.hero-badge {
  position: absolute; right: 24px; bottom: -40px;
  display: flex; align-items: center; gap: 12px;
  background: rgba(13, 27, 49, .78); border: 1px solid var(--line-2);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  padding: 14px 18px; border-radius: 12px;
}
.hero-badge strong { display: block; font-family: var(--font-head); color: var(--ink); font-size: .95rem; line-height: 1.2; }
.hero-badge span.sub { font-size: .8rem; color: var(--muted); }
@media (max-width: 900px) {
  .hero { padding: 96px 0 88px; min-height: 0; }
  .hero::after { left: 0; background-position: 60% 60%; }
  .hero::before { background: linear-gradient(180deg, rgba(10,22,40,.78) 0%, rgba(10,22,40,.92) 60%, rgba(10,22,40,1) 100%); }
  .hero-badge { display: none; }
}

.page-hero {
  padding: 88px 0 72px; background: radial-gradient(ellipse at 80% 0%, rgba(59,147,255,.16) 0%, rgba(59,147,255,0) 55%), var(--bg-2);
  border-bottom: 1px solid var(--line);
}
.page-hero .lead { margin-bottom: 0; }

/* ---------- Proof strip ---------- */
.proof { padding: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); }
.proof-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.proof-item { padding: 32px 24px; border-left: 1px solid var(--line); }
.proof-item:first-child { border-left: 0; }
.proof-num { font-family: var(--font-head); font-weight: 800; font-size: 2rem; color: var(--ink); line-height: 1.1; letter-spacing: -0.02em; }
.proof-label { font-size: .92rem; color: var(--muted); margin-top: 4px; }
@media (max-width: 800px) {
  .proof-grid { grid-template-columns: repeat(2, 1fr); }
  .proof-item:nth-child(3) { border-left: 0; }
  .proof-item:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ---------- Cards / grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px; transition: border-color .2s, transform .2s;
}
.card:hover { border-color: var(--line-2); }
.card p:last-child { margin-bottom: 0; }
.card .icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; margin-bottom: 18px;
}
.card .icon svg { width: 24px; height: 24px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split.reverse > :first-child { order: 2; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split.reverse > :first-child { order: 0; }
}

.checklist { list-style: none; padding: 0; margin: 0 0 28px; }
.checklist li { position: relative; padding-left: 34px; margin-bottom: 14px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233b93ff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.checklist strong { color: var(--ink); }

/* ---------- Coverage types ---------- */
.los-tag {
  display: inline-block; font-family: var(--font-head); font-weight: 800; font-size: .8rem;
  letter-spacing: .08em; color: var(--accent); background: var(--accent-soft);
  padding: 5px 10px; border-radius: 999px; margin-bottom: 14px;
}

/* ---------- Map ---------- */
.map-wrap { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 16px; box-shadow: var(--shadow); }
.area-list { list-style: none; padding: 0; margin: 0 0 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.area-list li {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 700; color: var(--ink);
  background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px;
}
.area-list li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); flex: none; box-shadow: 0 0 0 4px var(--accent-soft); }
.area-list li.new::after {
  content: "New"; margin-left: auto; font-size: .7rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ok); background: rgba(47,207,138,.12); padding: 3px 8px; border-radius: 999px;
}

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; padding-top: 20px; border-top: 3px solid var(--line-2); }
.step::before {
  counter-increment: step; content: "0" counter(step);
  display: block; font-family: var(--font-head); font-weight: 800; font-size: .9rem; color: var(--accent);
  margin-bottom: 10px; letter-spacing: .06em;
}
.step:first-child { border-top-color: var(--accent); }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Photos & placeholders ---------- */
.photo { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); position: relative; }
.photo img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.photo figcaption {
  position: absolute; left: 14px; bottom: 14px;
  font-size: .8rem; font-weight: 600; color: var(--ink);
  background: rgba(10,22,40,.75); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  padding: 6px 10px; border-radius: 6px; border: 1px solid var(--line);
}

.ph {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  background: linear-gradient(135deg, #16294a 0%, #0f1f38 100%);
  border: 1px solid var(--line);
  aspect-ratio: 4 / 3;
}
.ph svg.ph-art { position: absolute; inset: 0; width: 100%; height: 100%; }
/* recolour the line-art illustrations for the dark theme */
.ph-art [stroke="#0b1f3a"] { stroke: #8fa7c7; }
.ph-art [fill="#fff"] { fill: #1d3456; }
.ph-art [fill="#b9cfb0"] { fill: #1a3a3a; }
.ph-art [fill="#a7c39d"] { fill: #1f4642; }
.ph-label {
  position: absolute; left: 14px; bottom: 14px;
  font-size: .75rem; font-weight: 600; color: var(--body);
  background: rgba(10,22,40,.75); padding: 5px 10px; border-radius: 6px; border: 1px solid var(--line);
}

/* ---------- Timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 88px; top: 8px; bottom: 8px; width: 2px; background: var(--line-2); }
.timeline li { display: grid; grid-template-columns: 88px 1fr; gap: 36px; padding-bottom: 40px; position: relative; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::after {
  content: ""; position: absolute; left: 82px; top: 8px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--bg-2); border: 3px solid var(--accent);
}
.tl-year { font-family: var(--font-head); font-weight: 800; color: var(--ink); font-size: 1.15rem; }
.tl-body h3 { margin-bottom: .3em; }
.tl-body p { margin: 0; }
@media (max-width: 560px) {
  .timeline::before { left: 6px; }
  .timeline li { grid-template-columns: 1fr; gap: 4px; padding-left: 32px; }
  .timeline li::after { left: 0; }
}

/* ---------- CTA band ---------- */
.cta-band {
  padding: 80px 0; color: #c9d6ea;
  background: radial-gradient(ellipse at 100% 0%, rgba(59,147,255,.35) 0%, rgba(59,147,255,0) 60%), linear-gradient(135deg, #0e2a52 0%, #0b1d38 100%);
  border-top: 1px solid var(--line);
}
.cta-band h2 { color: #fff; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-inner p { margin: 0; max-width: 36em; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field label { display: block; font-family: var(--font-head); font-weight: 700; font-size: .9rem; color: var(--ink); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  padding: 13px 14px; border: 1px solid var(--line-2); border-radius: 8px; background: #0b182c;
}
.field input::placeholder, .field textarea::placeholder { color: #5f7290; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.field textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: .85rem; color: var(--muted); margin: 0; }

.contact-info { list-style: none; padding: 0; margin: 0; }
.contact-info li { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-info li:first-child { padding-top: 0; }
.contact-info .icon { width: 44px; height: 44px; flex: none; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.contact-info .icon svg { width: 22px; height: 22px; }
.contact-info strong { display: block; font-family: var(--font-head); color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer { background: #060f1d; color: #8597b0; padding: 64px 0 28px; font-size: .95rem; border-top: 1px solid var(--line); }
.site-footer a { color: #b6c3d6; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-grid h4 { color: #fff; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-tag { margin-top: 18px; max-width: 22em; }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .85rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: #fff; color: var(--on-light); padding: 10px 14px; border-radius: 6px; }

/* ---------- Coverage check ---------- */
.coverage-section { padding-top: 56px; }
.coverage-grid { display: grid; grid-template-columns: 380px 1fr; gap: 32px; align-items: start; }
@media (max-width: 960px) { .coverage-grid { grid-template-columns: 1fr; } }
.coverage-panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; }
.coverage-search { position: relative; }
.field-label { display: block; font-family: var(--font-head); font-weight: 700; font-size: .9rem; color: var(--ink); margin-bottom: 8px; }
.search-row { display: flex; gap: 8px; }
.search-row input {
  flex: 1; min-width: 0; font: inherit; font-size: 1rem; color: var(--ink);
  padding: 13px 14px; border: 1px solid var(--line-2); border-radius: 8px; background: #0b182c;
}
.search-row input::placeholder { color: #5f7290; }
.search-row input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.cov-suggest {
  list-style: none; margin: 8px 0 0; padding: 6px; background: var(--card-2);
  border: 1px solid var(--line-2); border-radius: 10px; box-shadow: var(--shadow);
}
.cov-suggest button {
  display: block; width: 100%; text-align: left; background: none; border: 0; color: var(--body);
  font: inherit; font-size: .9rem; padding: 10px; border-radius: 6px; cursor: pointer;
}
.cov-suggest button:hover, .cov-suggest button:focus { background: rgba(255,255,255,.06); color: var(--ink); }
.cov-hint { font-size: .9rem; color: var(--muted); margin: 12px 0 0; }
.cov-result {
  margin-top: 20px; padding: 18px; border-radius: 12px; border: 1px solid var(--line-2);
  background: rgba(255,255,255,.03); border-left-width: 4px;
}
.cov-result strong { display: block; font-family: var(--font-head); color: var(--ink); font-size: 1.05rem; margin-bottom: 6px; }
.cov-result p { font-size: .95rem; margin-bottom: 12px; }
.cov-result .btn { padding: 12px 18px; }
.cov-result .cov-addr { font-size: .85rem; color: var(--muted); margin-bottom: 8px; }
.cov-result.ok { border-left-color: var(--ok); background: rgba(47,207,138,.07); }
.cov-result.warn { border-left-color: #f2b544; background: rgba(242,181,68,.07); }
.cov-result.no { border-left-color: #7d8ea6; }
.cov-result.loading { display: flex; align-items: center; gap: 12px; color: var(--body); }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line-2); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.cov-legend { margin-top: 20px; }
.legend-title { display: block; font-size: .8rem; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.legend-bar { height: 8px; border-radius: 999px; background: linear-gradient(90deg, #2b4fd6, #22b0d6, #2fcf8a, #f2d544, #f25c44); }
.legend-labels { display: flex; justify-content: space-between; font-size: .75rem; color: var(--muted); margin-top: 4px; }
.cov-note { font-size: .82rem; color: var(--muted); margin: 20px 0 0; }
.coverage-map-wrap { position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.coverage-map { height: 620px; background: #e9eef2; }
@media (max-width: 960px) { .coverage-map { height: 440px; } }
.coverage-map .map-tiles { filter: saturate(.55) brightness(1.03); }
.cov-demo {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%); z-index: 500;
  font-size: .78rem; font-weight: 600; color: #1d1400; background: #f2b544; padding: 5px 12px; border-radius: 999px;
}
.leaflet-container { font-family: var(--font-body); }
.leaflet-control-attribution { background: rgba(10,22,40,.75) !important; color: var(--muted) !important; }
.leaflet-control-attribution a { color: var(--body) !important; }

/* ---------- Map layer toggles ---------- */
.map-layers {
  background: rgba(13, 27, 49, .92); border: 1px solid var(--line-2); border-radius: 10px;
  padding: 10px 12px; min-width: 170px; box-shadow: var(--shadow); color: var(--ink);
  font-family: var(--font-head); font-size: .88rem; font-weight: 600;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.map-layers .ml-row { display: flex; align-items: center; gap: 8px; padding: 5px 0; cursor: pointer; }
.map-layers input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--accent); margin: 0; cursor: pointer; }
.map-layers .ml-opacity { display: block; padding: 2px 0 8px 24px; font-size: .75rem; color: var(--muted); font-weight: 500; }
.map-layers .ml-opacity[hidden] { display: none; }
.map-layers .ml-opacity input { display: block; width: 100%; accent-color: var(--accent); margin-top: 2px; }
.tower-pin { background: none; border: 0; }
.tower-pin svg { filter: drop-shadow(0 2px 3px rgba(0,0,0,.45)); }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: var(--card-2); color: var(--body); box-shadow: var(--shadow); }
.leaflet-popup-content { margin: 12px 14px; font-size: .88rem; line-height: 1.45; }
.leaflet-popup-content strong { display: block; color: var(--ink); font-family: var(--font-head); font-size: .95rem; margin-bottom: 2px; }
.leaflet-popup-content .pop-muted { color: var(--muted); font-size: .8rem; margin-top: 2px; }
.leaflet-container a.leaflet-popup-close-button { color: var(--muted); }
.legend-img { display: block; max-height: 150px; width: auto; border-radius: 6px; background: #fff; padding: 4px; }
.map-layers .ml-legend { padding: 4px 0 8px 24px; }
.map-layers .ml-legend[hidden] { display: none; }
.ml-legend-title { font-size: .72rem; font-weight: 600; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; margin-bottom: 6px; }
.ml-legend-bar { display: flex; height: 10px; border-radius: 999px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.ml-legend-bar span { flex: 1; }
.ml-legend-labels { display: flex; justify-content: space-between; margin-top: 5px; font-size: .72rem; font-weight: 600; color: var(--body); }
.ml-legend-labels span:nth-child(2) { color: var(--muted); font-weight: 500; }
.cov-result .cov-tower { font-size: .85rem; color: var(--muted); margin-top: -4px; }
.cov-result .cov-tower strong { display: inline; font-size: inherit; margin: 0; color: var(--body); }

/* ---------- Google Maps engine ---------- */
.cov-suggest button.active { background: rgba(255,255,255,.08); color: var(--ink); }
.map-layers.is-google { margin: 10px; }
.gm-pop { color: #334155; font-family: var(--font-body); font-size: .88rem; line-height: 1.45; padding: 2px 4px 4px; }
.gm-pop strong { display: block; color: #0a1628; font-family: var(--font-head); font-size: .95rem; margin-bottom: 2px; }
.gm-pop .pop-muted { color: #64748b; font-size: .8rem; margin-top: 2px; }
.coverage-map.is-google .gm-style { font-family: var(--font-body); }

/* ---------- Floating result card (phones / tablets) ---------- */
.cov-float {
  position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 1100;
  margin: 0; max-height: 62%; overflow-y: auto;
  background: rgba(13, 27, 49, .97); box-shadow: 0 10px 30px rgba(0,0,0,.45);
  padding: 16px 44px 16px 16px; border-radius: 12px;
  animation: covFloatIn .2s ease-out;
}
.cov-float[hidden] { display: none; }
.cov-float.ok { background: linear-gradient(rgba(47,207,138,.10), rgba(47,207,138,.10)), rgba(13, 27, 49, .97); }
.cov-float.warn { background: linear-gradient(rgba(242,181,68,.10), rgba(242,181,68,.10)), rgba(13, 27, 49, .97); }
.cov-float p { font-size: .9rem; margin-bottom: 10px; }
.cov-float .btn { width: 100%; justify-content: center; }
.cov-float-close {
  position: absolute; top: 6px; right: 6px; width: 34px; height: 34px; border: 0; border-radius: 8px;
  background: transparent; color: var(--muted); font-size: 1.5rem; line-height: 1; cursor: pointer;
}
.cov-float-close:hover { background: rgba(255,255,255,.08); color: var(--ink); }
@keyframes covFloatIn { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (min-width: 961px) { .cov-float { display: none !important; } }

/* ---------- Lead forms ---------- */
.form-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; }
@media (max-width: 600px) { .form-card { padding: 22px 18px; } }
.form-card h2 { font-size: 1.6rem; }
.form-section { border: 0; padding: 0; margin: 8px 0 0; }
.form-section legend { font-family: var(--font-head); font-weight: 800; color: var(--ink); font-size: 1.05rem; margin-bottom: 12px; padding: 0; }
.form-section .hint { font-size: .85rem; color: var(--muted); margin: -6px 0 12px; }
.req { color: #ff7a7a; margin-left: 2px; }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span {
  display: block; height: 100%; padding: 14px 14px 14px 42px; border-radius: 10px;
  border: 1px solid var(--line-2); background: #0b182c; color: var(--body); font-size: .95rem; line-height: 1.35;
  transition: border-color .15s, background .15s;
}
.choice span strong { display: block; color: var(--ink); font-family: var(--font-head); font-size: 1rem; }
.choice span em { font-style: normal; color: var(--accent); font-weight: 600; }
.choice span::before {
  content: ""; position: absolute; left: 14px; top: 16px; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid var(--line-2); background: transparent; box-sizing: border-box;
}
.choice input:checked + span { border-color: var(--accent); background: var(--accent-soft); }
.choice input:checked + span::before { border-color: var(--accent); background: radial-gradient(circle, var(--accent) 45%, transparent 50%); }
.choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.form-status { margin: 0; padding: 12px 14px; border-radius: 8px; background: rgba(255,90,90,.1); border: 1px solid rgba(255,90,90,.35); color: #ffb4b4; font-size: .92rem; }
.form-thanks { text-align: center; padding: 24px 8px; outline: none; }
.form-thanks .check { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; background: rgba(47,207,138,.15); color: var(--ok); display: grid; place-items: center; }
.form-thanks .check svg { width: 32px; height: 32px; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.side-steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.side-steps li { position: relative; padding: 0 0 22px 46px; }
.side-steps li::before {
  counter-increment: s; content: counter(s); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; font-size: .9rem;
  background: var(--accent-soft); color: var(--accent);
}
.side-steps li.hi::before { background: var(--accent); color: #fff; }
.side-steps strong { display: block; color: var(--ink); font-family: var(--font-head); }
.side-steps p { margin: 2px 0 0; font-size: .92rem; }
.pill-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 18px 0 0; }
.pill-list li { font-family: var(--font-head); font-weight: 700; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); background: rgba(255,255,255,.06); border: 1px solid var(--line-2); padding: 6px 12px; border-radius: 999px; }
.form-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 960px) { .form-layout { grid-template-columns: 1fr; } }
.step.step-hi { border-top-color: var(--accent); }
.step.step-hi h3 { color: var(--accent); }

/* five-item stats strip (homepage) */
.proof-grid.proof-5 { grid-template-columns: repeat(5, 1fr); }
.proof-5 .proof-num { font-size: 1.6rem; }
@media (max-width: 1100px) {
  .proof-grid.proof-5 { grid-template-columns: repeat(2, 1fr); }
  .proof-5 .proof-item { border-left: 1px solid var(--line); border-top: 0; }
  .proof-5 .proof-item:nth-child(odd) { border-left: 0; }
  .proof-5 .proof-item:nth-child(n+3) { border-top: 1px solid var(--line); }
  .proof-5 .proof-item:last-child { grid-column: 1 / -1; }
}

/* homepage service-area map image */
.service-map { margin: 0; padding: 0; overflow: hidden; }
.service-map img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; transition: transform .4s ease; }
.service-map a:hover img { transform: scale(1.02); }
.service-map figcaption { padding: 10px 14px; font-size: .78rem; color: var(--muted); border-top: 1px solid var(--line); }
.service-map figcaption a { color: var(--body); }

/* ---------- Latency explainer (latency.html + homepage) ---------- */
.lat-figure { margin: 0; }
.lat-panels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.lat-panels img { width: 100%; height: auto; border-radius: var(--radius); }
.lat-figure figcaption { font-size: .88rem; color: var(--muted); margin-top: 12px; }
@media (max-width: 800px) { .lat-panels { grid-template-columns: minmax(0, 1fr); } }
.lat-explain { margin-top: 40px; }

.lat-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.lat-bars li { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 20px; align-items: center; }
.lat-name { font-family: var(--font-head); font-weight: 700; color: var(--ink); line-height: 1.3; }
.lat-name small { display: block; font-family: var(--font-body); font-weight: 400; font-size: .85rem; color: var(--muted); margin-top: 2px; }
.lat-track { position: relative; display: flex; align-items: center; gap: 12px; min-height: 34px; }
.lat-fill { display: block; height: 22px; width: calc((100% - 90px) * var(--p)); flex: none; background: var(--accent); border-radius: 2px; }
.lat-fill-alt { background: var(--metal, #8fa7c7); }
.lat-fill-todo { background: transparent; outline: 1px dashed rgba(242, 181, 68, .6); position: absolute; left: 0; }
.lat-val { font-family: var(--font-head); font-weight: 700; color: var(--ink); white-space: nowrap; }
.lat-fill-todo + .lat-val { position: relative; padding-left: 10px; white-space: normal; font-weight: 600; font-size: .9rem; }
.lat-scale { display: flex; justify-content: space-between; margin: 10px 0 0 280px; max-width: calc(100% - 280px - 90px); font-size: .78rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 6px; }
.lat-aside { font-size: .92rem; margin-top: 24px; max-width: 46em; }
@media (max-width: 700px) {
  .lat-bars li { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .lat-scale { margin-left: 0; max-width: calc(100% - 90px); }
}

.todo { background: rgba(242, 181, 68, .14); color: #f2c97a; outline: 1px dashed rgba(242, 181, 68, .6); padding: 0 4px; }

.feel-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.feel-table caption { text-align: left; font-family: var(--font-head); font-weight: 800; font-size: 1.2rem; color: var(--ink); margin-bottom: 12px; }
.feel-table th, .feel-table td { text-align: left; vertical-align: top; padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); }
.feel-table thead th { font-family: var(--font-head); font-size: .85rem; color: var(--muted); font-weight: 700; }
.feel-table tbody th { font-family: var(--font-head); color: var(--ink); font-weight: 700; white-space: nowrap; }
@media (max-width: 560px) {
  .feel-table thead { display: none; }
  .feel-table tr { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .feel-table th, .feel-table td { display: block; border: 0; padding: 2px 0; }
  .feel-table td::before { content: attr(data-label) ": "; color: var(--muted); }
}

.source-note { font-size: .88rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 20px; max-width: 52em; }
.source-note h3 { font-size: 1rem; }
.source-note ol { padding-left: 1.3em; margin: 0 0 12px; }
.source-note li { margin-bottom: 6px; }
.source-note li:target { color: var(--ink); }

.lat-home .lat-panels { margin-top: 8px; }
