/* ============== Section heads & features ============== */
.section { padding: 110px 0; position: relative; }
/* Centred & capped section intros — keeps the eyebrow/headline/lede as a balanced
   column instead of pinning them left and leaving a lopsided void on wide screens. */
.section-head { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.section-head h2 {
  margin-top: 18px;
  font-size: clamp(34px, 3.6vw, 52px);
  line-height: 1.04;
  letter-spacing: -0.028em;
  font-weight: 480;
  color: var(--text);
}
.section-head h2 em {
  font-style: italic;
  font-weight: 400;
  font-family: 'Instrument Serif', Georgia, serif;
  color: var(--gold);
  letter-spacing: -0.015em;
}
.section-head p {
  margin: 20px auto 0;
  font-size: 17px;
  color: var(--text-2);
  line-height: 1.55;
  max-width: 620px;
}
.section-row { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: 48px; }
.section-row .right { color: var(--text-3); font-size: 13px; font-family: 'JetBrains Mono', monospace; }

/* ── Who it's for (persona band) ─────────────────────────────────────────── */
.usecases-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.usecase-card {
  background: linear-gradient(180deg, rgba(26,43,31,0.45), rgba(13,26,18,0.55));
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px 22px 22px;
  display: flex;
  flex-direction: column;
  transition: border-color .18s ease, transform .18s ease;
}
.usecase-card:hover { border-color: var(--border-2); }
.usecase-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--emerald);
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.18);
  margin-bottom: 16px;
}
.usecase-who {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.2;
  color: var(--text);
}
.usecase-line {
  margin: 0 0 16px;
  flex: 1;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-2);
}
.usecase-tag {
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-family: 'DM Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}
@media (max-width: 980px) { .usecases-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .usecases-grid { grid-template-columns: 1fr; } }

/* Feature grid bento */
.features {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}
.feature-card {
  background: linear-gradient(180deg, rgba(26,43,31,0.55), rgba(13,26,18,0.6));
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 360px;
}
.feature-card.span-4 { grid-column: span 4; }
.feature-card.span-3 { grid-column: span 3; }
.feature-card.span-2 { grid-column: span 2; }
.feature-card.span-6 { grid-column: span 6; }

.feature-card .badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  display: inline-flex; align-items: center; gap: 8px;
  white-space: nowrap;
}
.feature-card .badge::before {
  content: ''; width: 18px; height: 1px;
  background: var(--gold);
}
.feature-card h3 {
  margin: 18px 0 12px;
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.18;
  color: var(--text);
  max-width: 22ch;
}
.feature-card .lede {
  font-size: 14.5px;
  color: var(--text-2);
  line-height: 1.55;
  max-width: 40ch;
}
.feature-card .viz {
  margin-top: 28px;
  flex: 1;
  position: relative;
  min-height: 180px;
}

/* Digital Gap viz */
.gap-rows { display: flex; flex-direction: column; gap: 8px; }
.gap-row {
  display: grid;
  grid-template-columns: 130px 1fr 56px;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  padding: 8px 0;
}
.gap-row .name { color: var(--text); font-weight: 450; }
.gap-row .sub { color: var(--text-3); font-size: 11.5px; font-family: 'JetBrains Mono', monospace; }
.gap-bar {
  height: 6px; border-radius: 100px; background: rgba(255,255,255,0.05);
  overflow: hidden; position: relative;
}
.gap-bar > div {
  height: 100%; border-radius: 100px;
  background: linear-gradient(90deg, var(--red) 0%, var(--gold) 50%, var(--emerald) 100%);
}
.gap-bar.solid > div { background: var(--red); }
.gap-bar.amber > div { background: var(--gold); }
.gap-bar.em > div { background: var(--emerald); }
.gap-pct {
  font-family: 'JetBrains Mono', monospace;
  text-align: right;
  font-size: 12.5px;
  color: var(--text);
}

/* Industry density columns */
.industries { display: flex; flex-direction: column; gap: 12px; }
.industry-row {
  display: grid;
  grid-template-columns: 110px 1fr 60px;
  align-items: center;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 13px;
}
.industry-row:last-child { border-bottom: none; }
.industry-row .name { color: var(--text); }
.industry-row .stack { display: flex; gap: 2px; height: 16px; }
.industry-row .stack > div {
  flex: 1; border-radius: 1px;
  background: rgba(255,255,255,0.05);
}
.industry-row .stack > div.on { background: var(--gold); }
.industry-row .stack > div.on.em { background: var(--emerald); }
.industry-row .num {
  font-family: 'JetBrains Mono', monospace;
  text-align: right;
  font-size: 12px;
  color: var(--text-2);
}

/* Filter/lead discovery viz */
.filter-stack { display: flex; flex-direction: column; gap: 10px; }
.filter-pill-row { display: flex; flex-wrap: wrap; gap: 6px; }
.filter-pill {
  font-size: 11.5px;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.02em;
  padding: 5px 10px;
  border-radius: 100px;
  border: 1px solid var(--border-2);
  background: rgba(255,255,255,0.025);
  color: var(--text-2);
  display: inline-flex; align-items: center; gap: 6px;
}
.filter-pill.active { color: var(--text); background: rgba(212,169,59,0.10); border-color: rgba(212,169,59,0.4); }
.filter-pill.active::before {
  content: ''; width: 5px; height: 5px; background: var(--gold);
  border-radius: 100px; box-shadow: 0 0 6px var(--gold);
}
.filter-pill .x { color: var(--text-3); font-size: 10px; margin-left: 2px; }
.filter-result-bar {
  margin-top: 14px;
  padding: 12px 14px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: space-between;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  gap: 12px;
}
.filter-result-bar > div { white-space: nowrap; }
.filter-result-bar .big { color: var(--text); font-size: 22px; font-weight: 500; letter-spacing: -0.01em; }

/* Export / signal scoring radial */
.score-display {
  display: flex; align-items: center; gap: 24px;
  margin-top: 12px;
}
.score-ring { position: relative; }
.score-ring svg { display: block; }
.score-ring .center {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: 'JetBrains Mono', monospace;
}
.score-ring .center .v { font-size: 26px; color: var(--text); font-weight: 500; }
.score-ring .center .l { font-size: 10px; color: var(--text-3); letter-spacing: 0.1em; }
.score-legend { display: flex; flex-direction: column; gap: 8px; font-size: 12.5px; }
.score-legend > div { display: flex; align-items: center; gap: 8px; }
.score-legend .sw { width: 10px; height: 10px; border-radius: 2px; }

/* Export panel */
.export-panel {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  margin-top: 14px;
}
.export-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 12.5px;
  font-family: 'JetBrains Mono', monospace;
  gap: 12px;
}
.export-row .l { color: var(--text-2); white-space: nowrap; }
.export-row .r { color: var(--text); white-space: nowrap; text-align: right; }
@media (max-width: 600px) {
  .export-row { flex-wrap: wrap; gap: 4px 12px; }
  .export-row .r { white-space: normal; text-align: left; min-width: 0; }
}

/* ============== Interactive Map section ============== */
.map-section {
  position: relative;
}
.big-map {
  background: linear-gradient(180deg, var(--surface), var(--bg-1));
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px;
  position: relative;
  overflow: hidden;
}
.big-map-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 16px;
}
.big-map-head .left {
  display: flex; align-items: center; gap: 14px;
}
.big-map-head .title {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.01em;
}
.big-map-head .sub {
  font-size: 12px;
  color: var(--text-3);
  font-family: 'JetBrains Mono', monospace;
}
.big-map-head .legend {
  display: flex; gap: 16px; font-size: 11.5px; color: var(--text-2);
  font-family: 'JetBrains Mono', monospace;
}
.big-map-head .legend > span { display: inline-flex; align-items: center; gap: 6px; }
.big-map-head .legend .sw { width: 8px; height: 8px; border-radius: 100px; }
.big-map-body {
  display: grid;
  grid-template-columns: 260px 1fr 280px;
  gap: 16px;
  align-items: stretch;
  min-height: 540px;
}

/* Filter rail */
.rail {
  background: rgba(255,255,255,0.015);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  display: flex; flex-direction: column; gap: 18px;
  font-size: 13px;
}
.rail-group .l {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  color: var(--text-3);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.rail-check {
  display: flex; justify-content: space-between; align-items: center;
  padding: 5px 0; cursor: pointer;
  color: var(--text-2);
}
.rail-check:hover { color: var(--text); }
.rail-check .box {
  width: 14px; height: 14px;
  border-radius: 3px;
  border: 1px solid var(--border-2);
  background: rgba(255,255,255,0.02);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.rail-check.on .box { border-color: var(--gold); background: var(--gold); color: #1a1305; }
.rail-check.on { color: var(--text); }
.rail-check .name { flex: 1; margin-left: 10px; font-size: 13px; }
.rail-check .ct { font-family: 'JetBrains Mono', monospace; font-size: 11.5px; color: var(--text-3); }
.rail-slider {
  margin-top: 6px;
  height: 4px; background: rgba(255,255,255,0.05);
  border-radius: 100px;
  position: relative;
}
.rail-slider > div {
  height: 100%; border-radius: 100px;
  background: linear-gradient(90deg, var(--gold), var(--emerald));
}
.rail-slider::after {
  content: '';
  position: absolute;
  right: 30%; top: -4px;
  width: 12px; height: 12px; border-radius: 100px;
  background: var(--text);
  box-shadow: 0 0 0 4px rgba(232,234,238,0.1);
}
.rail-slider-row {
  display: flex; justify-content: space-between;
  margin-top: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-3);
}

/* Big map canvas */
.map-canvas {
  position: relative;
  background:
    radial-gradient(80% 60% at 50% 60%, rgba(36,50,85,0.30), transparent 70%),
    var(--bg-1);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.map-canvas::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.022) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse at 50% 50%, black 65%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, black 65%, transparent 100%);
}
.map-canvas svg { position: absolute; inset: 0; width: 100%; height: 100%; }

/* Parish hover tooltip */
.parish-tooltip {
  position: absolute;
  background: rgba(13,26,18,0.95);
  border: 1px solid var(--border-2);
  border-radius: 10px;
  padding: 12px 14px;
  min-width: 220px;
  pointer-events: none;
  z-index: 4;
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 40px -10px rgba(0,0,0,0.7);
}
.parish-tooltip .name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 8px;
}
.parish-tooltip .row {
  display: flex; justify-content: space-between;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  padding: 3px 0;
}
.parish-tooltip .row .l { color: var(--text-3); }
.parish-tooltip .row .v { color: var(--text); }
.parish-tooltip .gap-vis { margin-top: 8px; }

/* Map right panel (parish detail) */
.parish-detail {
  background: rgba(255,255,255,0.015);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  display: flex; flex-direction: column; gap: 14px;
}
.parish-detail .head {
  display: flex; justify-content: space-between; align-items: start;
}
.parish-detail .head .name {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.05;
}
.parish-detail .head .meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  color: var(--text-3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 4px;
}
.parish-detail .row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 12.5px;
  gap: 12px;
}
.parish-detail .row:last-child { border-bottom: none; }
.parish-detail .row .l { color: var(--text-2); white-space: nowrap; }
.parish-detail .row .v {
  font-family: 'JetBrains Mono', monospace;
  color: var(--text);
  white-space: nowrap;
  text-align: right;
}
.parish-detail .donut {
  display: flex; gap: 14px; align-items: center;
  padding: 10px 0;
}
.parish-detail .donut .legend {
  display: flex; flex-direction: column; gap: 4px;
  font-size: 11.5px;
  font-family: 'JetBrains Mono', monospace;
}
.parish-detail .industries-mini {
  display: flex; flex-direction: column; gap: 5px;
}
.parish-detail .industries-mini .ir {
  display: grid; grid-template-columns: 90px 1fr 40px;
  gap: 8px;
  align-items: center;
  font-size: 12px;
}
.parish-detail .industries-mini .bar {
  height: 4px; background: rgba(255,255,255,0.05); border-radius: 100px; overflow: hidden;
}
.parish-detail .industries-mini .bar > div { height: 100%; background: var(--gold); }
.parish-detail .industries-mini .v { text-align: right; font-family: 'JetBrains Mono', monospace; font-size: 11.5px; color: var(--text-2); }
