:root {
  --bg: #f7f8fa;
  --card: #ffffff;
  --ink: #1c2330;
  --muted: #5b6573;
  --hairline: #e3e7ee;
  --link: #1657c8;
  --link-hover: #0e3f99;
  --accent: #143062;

  --recent: #c0392b;
  --recent-bg: #fff1ee;
  --medium: #b87a14;
  --medium-bg: #fff6e3;
  --old: #707a87;
  --old-bg: #f0f2f5;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 15px;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
}

a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); text-decoration: underline; }

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* ---------- header ------------------------------------------------------- */
.site-header {
  background: var(--accent);
  color: #fff;
  padding: 14px 0;
  border-bottom: 4px solid #0c2348;
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; }
.site-header a.brand { color: #fff; font-weight: 700; font-size: 19px; text-decoration: none; }
.site-header a.brand:hover { color: #fff; }
.site-header nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-header nav a { color: #d6e4ff; font-weight: 500; }
.site-header nav a:hover { color: #fff; text-decoration: none; }
.site-header nav a.nav-cta {
  background: #c0392b;
  color: #fff;
  padding: 4px 12px;
  border-radius: 4px;
}
.site-header nav a.nav-cta:hover { background: #a72f22; }

/* ---------- forms (lead capture) --------------------------------------- */
.lead-form { max-width: 640px; }
.lead-form .field { margin-bottom: 14px; }
.lead-form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 4px;
}
.lead-form .field .hint {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin: 2px 0 6px;
  font-weight: 400;
}
.lead-form input[type="text"],
.lead-form input[type="email"],
.lead-form input[type="tel"],
.lead-form textarea {
  width: 100%;
  padding: 10px 12px;
  font-size: 15px;
  font-family: inherit;
  border: 1px solid #ccd2de;
  border-radius: 4px;
  background: #fff;
}
.lead-form textarea { min-height: 80px; resize: vertical; }
.lead-form input:focus, .lead-form textarea:focus {
  outline: none; border-color: var(--link);
  box-shadow: 0 0 0 3px #d6e4ff;
}
.lead-form .submit-row { display: flex; align-items: center; gap: 14px; }
.lead-form button {
  padding: 11px 22px;
  background: #c0392b;
  color: #fff;
  border: 0;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.lead-form button:hover { background: #a72f22; }
.lead-form .err {
  background: #fff1ee;
  border: 1px solid #c0392b;
  color: #8a1f15;
  padding: 10px 12px;
  border-radius: 4px;
  margin-bottom: 14px;
  font-size: 14px;
}
.lead-form .ok {
  background: #ecf7ee;
  border: 1px solid #2f9e44;
  color: #1f6e30;
  padding: 14px 16px;
  border-radius: 4px;
  margin-bottom: 14px;
}
.lead-form .ok h3 { margin: 0 0 4px; color: #1f6e30; }

/* ---------- carrier CTA ------------------------------------------------ */
.carrier-cta {
  background: #fff7e6;
  border: 1px solid #f0c977;
  border-radius: 6px;
  padding: 14px 18px;
  margin: 18px 0;
  display: flex;
  align-items: center;
  gap: 18px;
}
.carrier-cta .body { flex: 1; }
.carrier-cta strong { color: var(--accent); }
.carrier-cta a.btn {
  display: inline-block;
  padding: 9px 16px;
  background: #c0392b;
  color: #fff;
  border-radius: 4px;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
}
.carrier-cta a.btn:hover { background: #a72f22; text-decoration: none; }
.site-header form.search { margin-left: auto; display: flex; }
.site-header form.search input {
  padding: 6px 10px;
  border: 1px solid #1c4485;
  background: #fff;
  border-radius: 4px 0 0 4px;
  width: 230px;
  font-size: 14px;
  min-width: 0;
}
@media (max-width: 800px) {
  .site-header .wrap { flex-wrap: wrap; gap: 12px; }
  .site-header form.search { margin-left: 0; flex: 1; min-width: 200px; }
  .site-header form.search input { width: 100%; }
  .site-header nav { flex-basis: 100%; gap: 12px; font-size: 14px; }
}
.site-header form.search button {
  padding: 6px 12px;
  border: 1px solid #1c4485;
  background: #2a66cc;
  color: #fff;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  font-size: 14px;
}

/* ---------- hero --------------------------------------------------------- */
.banner-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}
.hero-banner {
  display: block;
  width: 100%;
  height: auto;
}
.hero {
  background: linear-gradient(135deg, #1f4ea0, #143062);
  color: #fff;
  padding: 28px 0 28px;
}
.hero h1 { margin: 0 0 6px; font-size: 22px; font-weight: 700; }
.hero p.tagline { margin: 0 0 18px; color: #d6e4ff; font-size: 15px; }
@media (min-width: 700px) {
  .hero h1 { font-size: 26px; }
  .hero p.tagline { font-size: 16px; }
}
.hero form.lookup {
  display: flex;
  max-width: 620px;
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0,0,0,0.18);
}
.hero form.lookup input {
  flex: 1;
  padding: 14px 18px;
  border: 0;
  font-size: 17px;
  font-family: inherit;
}
.hero form.lookup button {
  padding: 14px 24px;
  background: #c0392b;
  color: #fff;
  border: 0;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}
.hero form.lookup button:hover { background: #a72f22; }
.hero .hint { margin-top: 14px; color: #b9cdef; font-size: 13px; }
.hero-or {
  display: flex; align-items: center;
  margin: 14px 0 12px; max-width: 620px;
  color: #9eb4d8; font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em;
}
.hero-or::before, .hero-or::after { content: ""; flex: 1; border-top: 1px solid rgba(255,255,255,0.18); }
.hero-or span { padding: 0 12px; }
.hero-vanity-cta {
  display: block;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 6px;
  padding: 12px 16px;
  max-width: 620px;
  color: #fff;
  text-decoration: none;
}
.hero-vanity-cta:hover { background: rgba(255,255,255,0.14); color: #fff; text-decoration: none; }
.hero-vanity-cta strong { display: block; font-size: 16px; margin-bottom: 2px; }
.hero-vanity-cta span { color: #b9cdef; font-size: 13px; }

form.vanity-filter.big {
  font-size: 15px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--hairline);
}
form.vanity-filter.big label { font-size: 12px; }
form.vanity-filter.big select { min-width: 240px; padding: 9px 12px; }

/* ---------- cards / sections -------------------------------------------- */
section { padding: 28px 0; }
section h2 { margin: 0 0 14px; font-size: 22px; }
section h3 { margin: 22px 0 10px; font-size: 17px; }

.card {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 6px;
  padding: 16px 18px;
  margin-bottom: 16px;
}

.grid { display: grid; gap: 12px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 760px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
}

.tile {
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: 6px;
  padding: 12px 14px;
  display: block;
  color: inherit;
}
.tile:hover { border-color: var(--link); text-decoration: none; }
.carrier-tile { display: flex; gap: 14px; align-items: center; }
.carrier-tile .logo {
  width: 60px; height: 60px;
  object-fit: contain;
  flex-shrink: 0;
  background: #fafbfd;
  border-radius: 4px;
  border: 1px solid var(--hairline);
  padding: 4px;
}
.carrier-tile .body { flex: 1; min-width: 0; }
.carrier-tile .body .name { font-size: 16px; }
table.vanities .mike-star { color: #c0392b; font-size: 14px; }

form.vanity-filter {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  background: #f4f6fa;
  padding: 12px 14px;
  border-radius: 6px;
  margin: 10px 0 14px;
  font-size: 14px;
}
form.vanity-filter label { font-weight: 600; color: var(--accent); display: flex; flex-direction: column; gap: 4px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; }
form.vanity-filter select {
  padding: 7px 10px;
  border: 1px solid #ccd2de;
  border-radius: 4px;
  background: #fff;
  font-size: 14px;
  font-weight: 400;
  text-transform: none;
  letter-spacing: normal;
  color: var(--ink);
  min-width: 200px;
}
form.vanity-filter .filter-reset {
  align-self: flex-end;
  padding: 7px 12px;
  font-size: 13px;
  color: var(--muted);
}
form.vanity-filter .filter-reset:hover { color: var(--recent); }
.tile .ocn-id { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 12px; color: var(--muted); }
.tile .name { font-weight: 600; margin: 2px 0; }
.tile .meta { font-size: 12px; color: var(--muted); }

/* ---------- tables ------------------------------------------------------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.data {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: 6px;
  overflow: hidden;
  font-size: 14px;
}
@media (max-width: 700px) {
  table.data { font-size: 13px; display: block; overflow-x: auto; }
  table.data thead, table.data tbody { display: table; width: 100%; }
}
table.data th, table.data td {
  text-align: left;
  padding: 8px 12px;
  border-bottom: 1px solid var(--hairline);
}
table.data th {
  background: #f1f4f9;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}
table.data tr:last-child td { border-bottom: 0; }
table.data .num { text-align: right; font-variant-numeric: tabular-nums; }
table.data .ocn { font-family: ui-monospace, monospace; color: var(--muted); }

/* ---------- badges / age tiers ------------------------------------------ */
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: #e8eef9;
  color: var(--accent);
}
.badge.recent  { background: var(--recent-bg); color: var(--recent); }
.badge.medium  { background: var(--medium-bg); color: var(--medium); }
.badge.old     { background: var(--old-bg);    color: var(--old); }

/* ---------- number-lookup result ---------------------------------------- */
.result {
  border-radius: 8px;
  padding: 22px;
  margin: 24px 0;
}
.result.recent { background: var(--recent-bg); border: 2px solid var(--recent); }
.result.medium { background: var(--medium-bg); border: 2px solid var(--medium); }
.result.old    { background: var(--old-bg);    border: 2px solid var(--old); }
.result h2 { margin: 0 0 8px; }
.result.recent h2 { color: var(--recent); }
.result.medium h2 { color: var(--medium); }
.result.old h2    { color: var(--old); }
.result p.body { margin: 0; }

.carrier-card {
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: 6px;
  padding: 18px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.carrier-card .body { flex: 1; }
.carrier-card h3 { margin: 0 0 4px; font-size: 19px; }
.carrier-card .ocn-id { font-family: ui-monospace, monospace; color: var(--muted); font-size: 12px; }
.carrier-card .meta { color: var(--muted); margin: 6px 0; font-size: 14px; }

/* ---------- profile page ------------------------------------------------ */
.profile-head {
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: 6px;
  padding: 22px;
  margin: 18px 0;
}
.profile-head h1 { margin: 0 0 4px; font-size: 26px; }
.profile-head .ocn-id { color: var(--muted); font-family: ui-monospace, monospace; }
.profile-head { padding: 18px; }
.profile-head h1 { font-size: 22px; }
@media (min-width: 700px) { .profile-head { padding: 22px; } .profile-head h1 { font-size: 26px; } }
.profile-head .row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 14px; }
@media (min-width: 700px) { .profile-head .row { gap: 24px; } }
.profile-head .row .stat { background: #f4f6fa; border-radius: 6px; padding: 8px 14px; }
.profile-head .row .stat .label { font-size: 11px; text-transform: uppercase; color: var(--muted); letter-spacing: 0.05em; }
.profile-head .row .stat .value { font-size: 20px; font-weight: 600; }
.profile-head .row .stat .value.recent { color: var(--recent); }

/* ---------- bar chart (yearly) ----------------------------------------- */
.barchart { display: flex; align-items: flex-end; gap: 3px; height: 120px; padding: 8px 0; }
.barchart .bar {
  flex: 1;
  background: var(--accent);
  position: relative;
  min-height: 1px;
  border-radius: 2px 2px 0 0;
  transition: background 0.15s;
}
.barchart .bar:hover { background: var(--link); }
.barchart .bar .label {
  position: absolute;
  bottom: -18px;
  left: 0; right: 0;
  text-align: center;
  font-size: 10px;
  color: var(--muted);
}
.barchart .bar .count {
  position: absolute;
  top: -18px;
  left: 0; right: 0;
  text-align: center;
  font-size: 10px;
  color: var(--muted);
}
.barchart-frame { padding: 24px 4px 26px; background: #fff; border: 1px solid var(--hairline); border-radius: 6px; }

/* ---------- charts ------------------------------------------------------ */
.chart-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  grid-template-areas: "donut map" "donut npa";
  gap: 16px;
  align-items: start;
}
.chart-grid > .card:nth-child(1) { grid-area: donut; }
.chart-grid > .map-card           { grid-area: map; }
.chart-grid > .card:nth-child(3)  { grid-area: npa; }
@media (max-width: 900px) {
  .chart-grid { grid-template-columns: 1fr; grid-template-areas: "donut" "map" "npa"; }
}
.chart-grid .card { margin-bottom: 0; }
.chart-grid .card h3 { margin: 0 0 6px; font-size: 15px; }
.chart { width: 100%; height: auto; max-width: 100%; display: block; }
svg.us-map { width: 100%; height: auto; display: block; }
svg.us-map text { pointer-events: none; user-select: none; }
svg.us-map a { cursor: pointer; }
svg.us-map .state path,
svg.us-map .state circle { transition: opacity 0.15s, stroke 0.15s, stroke-width 0.15s; }
svg.us-map a:hover .state path,
svg.us-map a:hover .state circle { stroke: #c0392b; stroke-width: 1.5; opacity: 0.92; }

ul.state-legend {
  list-style: none;
  padding: 12px 0 0;
  margin: 12px 0 0;
  border-top: 1px solid var(--hairline);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 16px;
  font-size: 13px;
}
ul.state-legend li { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 700px) { ul.state-legend { grid-template-columns: 1fr; } }
ul.legend { list-style: none; padding: 0; margin: 8px 0 0; font-size: 12px; color: var(--muted); }
ul.legend li { margin-bottom: 3px; display: flex; align-items: center; gap: 6px; }
ul.legend .sw { display: inline-block; width: 10px; height: 10px; border-radius: 2px; }

/* ---------- maps (street view + satellite) ------------------------------ */
.map-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 700px) { .map-grid { grid-template-columns: 1fr; } }
.map { margin: 0; background: #fff; border: 1px solid var(--hairline); border-radius: 6px; overflow: hidden; }
.map img { display: block; width: 100%; height: auto; }
.map figcaption { padding: 6px 10px; font-size: 12px; color: var(--muted); border-top: 1px solid var(--hairline); }

/* ---------- footer ------------------------------------------------------ */
footer.site-footer {
  margin-top: 48px;
  border-top: 1px solid var(--hairline);
  background: #fff;
  padding: 24px 0;
  color: var(--muted);
  font-size: 13px;
}
footer.site-footer .wrap { display: flex; gap: 24px; flex-wrap: wrap; }

/* ---------- misc -------------------------------------------------------- */
.muted { color: var(--muted); }
.small { font-size: 13px; }
.mono  { font-family: ui-monospace, monospace; }
.right { text-align: right; }
.center { text-align: center; }

ul.bullets { padding-left: 20px; margin: 6px 0; }
ul.bullets li { margin-bottom: 4px; }
