/* DumpRadar — design system
   Modern, minimal, elegant. System font stack, restrained palette,
   zone colors used only as semantic accents. Mobile-first + responsive. */

:root {
  --bg:        #ffffff;
  --bg-soft:   #f7f9fa;
  --bg-sink:   #eef2f4;
  --ink:       #0f1f24;
  --ink-2:     #3c4f56;
  --muted:     #6b7c83;
  --line:      #e3e9ec;
  --line-2:    #d3dce0;

  --brand:     #0d8a72;   /* teal/emerald */
  --brand-dk:  #0a6f5c;
  --brand-bg:  #e9f6f2;

  --red:    #d83b2e;
  --orange: #e8762a;
  --amber:  #d8a013;
  --green:  #1f9d57;

  --red-bg:    #fdecea;
  --orange-bg: #fdf0e6;
  --amber-bg:  #fbf4e0;
  --green-bg:  #e8f6ee;

  --shadow-sm: 0 1px 2px rgba(15,31,36,.06), 0 1px 3px rgba(15,31,36,.05);
  --shadow:    0 4px 18px rgba(15,31,36,.07), 0 1px 3px rgba(15,31,36,.05);
  --shadow-lg: 0 18px 50px rgba(15,31,36,.14);

  --r-sm: 8px;
  --r:    14px;
  --r-lg: 22px;

  --maxw: 1140px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
          "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 { line-height: 1.18; margin: 0 0 .4em; letter-spacing: -.018em; font-weight: 680; }
h1 { font-size: clamp(2rem, 5vw, 3.35rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.22rem; }
p { margin: 0 0 1rem; color: var(--ink-2); }
a { color: var(--brand-dk); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
small { font-size: .82rem; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.section { padding: 72px 0; }
.section.tight { padding: 48px 0; }
.bg-soft { background: var(--bg-soft); }
.center { text-align: center; }
.eyebrow {
  display: inline-block; font-size: .76rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--brand-dk); margin-bottom: 12px;
}
.lede { font-size: 1.18rem; color: var(--ink-2); max-width: 60ch; }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 18px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 780; font-size: 1.16rem; letter-spacing: -.02em; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand .logo {
  width: 30px; height: 30px; border-radius: 9px; flex: none;
  background: radial-gradient(circle at 50% 50%, var(--brand) 30%, transparent 31%),
              radial-gradient(circle at 50% 50%, transparent 52%, var(--brand) 53%, var(--brand) 60%, transparent 61%),
              radial-gradient(circle at 50% 50%, transparent 74%, var(--brand-dk) 75%, var(--brand-dk) 82%, transparent 83%);
  background-color: var(--brand-bg);
}
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-links a {
  color: var(--ink-2); font-weight: 550; font-size: .95rem; padding: 8px 13px; border-radius: 9px;
}
.nav-links a:hover { background: var(--bg-sink); color: var(--ink); text-decoration: none; }
.nav-links a.active { color: var(--brand-dk); }
.nav-cta { margin-left: 6px; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line-2);
  border-radius: 9px; width: 42px; height: 38px; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 18px; height: 2px; background: var(--ink); position: relative; border-radius: 2px; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; } .nav-toggle span::after { top: 6px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 600; font-size: .96rem; cursor: pointer;
  padding: 11px 20px; border-radius: 11px; border: 1px solid transparent;
  transition: transform .08s ease, box-shadow .15s ease, background .15s ease; white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--brand-dk); color: #fff; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--bg-soft); }
.btn-light { background: rgba(255,255,255,.16); color: #fff; border-color: rgba(255,255,255,.34); }
.btn-light:hover { background: rgba(255,255,255,.26); }
.btn-sm { padding: 8px 14px; font-size: .88rem; border-radius: 9px; }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 480px at 82% -8%, var(--brand-bg) 0%, transparent 60%),
    radial-gradient(700px 420px at 6% 8%, #eaf1f4 0%, transparent 55%);
  border-bottom: 1px solid var(--line);
}
.hero-inner { padding: 78px 0 70px; max-width: 760px; }
.hero h1 { color: var(--ink); }
.hero h1 .hl { color: var(--brand-dk); }
.hero .lede { font-size: 1.24rem; margin-bottom: 30px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 600;
  color: var(--brand-dk); background: #fff; border: 1px solid var(--line-2);
  padding: 6px 13px; border-radius: 999px; margin-bottom: 22px; box-shadow: var(--shadow-sm);
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }

/* ---------- Search box ---------- */
.searchbox { background: #fff; border: 1px solid var(--line-2); border-radius: var(--r);
  box-shadow: var(--shadow); padding: 8px; display: flex; gap: 8px; max-width: 560px; }
.searchbox input {
  flex: 1; border: none; outline: none; font: inherit; font-size: 1.02rem; padding: 12px 14px;
  background: transparent; color: var(--ink); min-width: 0;
}
.search-hints { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; align-items: center; }
.chip {
  font-size: .84rem; font-weight: 550; color: var(--ink-2); background: #fff; border: 1px solid var(--line-2);
  padding: 6px 12px; border-radius: 999px; cursor: pointer; transition: all .12s ease;
}
.chip:hover { border-color: var(--brand); color: var(--brand-dk); background: var(--brand-bg); }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 20px; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: 24px; box-shadow: var(--shadow-sm);
}
.card.pad-lg { padding: 30px; }
.feature-icon {
  width: 42px; height: 42px; border-radius: 11px; background: var(--brand-bg); color: var(--brand-dk);
  display: grid; place-items: center; font-size: 1.2rem; margin-bottom: 14px;
}
.feature-card h3 { font-size: 1.08rem; margin-bottom: 6px; }
.feature-card p { font-size: .95rem; margin: 0; }

/* ---------- Badges: grade / risk / zone ---------- */
.grade {
  display: inline-grid; place-items: center; font-weight: 800; border-radius: 14px;
  width: 58px; height: 58px; font-size: 1.9rem; line-height: 1; flex: none; color: #fff;
}
.grade.lg { width: 86px; height: 86px; font-size: 2.9rem; border-radius: 20px; }
.grade.sm { width: 40px; height: 40px; font-size: 1.3rem; border-radius: 10px; }

.risk-extreme { background: var(--red); }      .bgk-extreme { background: var(--red-bg); color: #a52016; }
.risk-severe  { background: #e1542e; }          .bgk-severe  { background: var(--orange-bg); color: #b8521a; }
.risk-elevated{ background: var(--orange); }     .bgk-elevated{ background: var(--orange-bg); color: #b8521a; }
.risk-moderate{ background: var(--amber); }      .bgk-moderate{ background: var(--amber-bg); color: #93701a; }
.risk-low     { background: #5aa845; }           .bgk-low     { background: var(--green-bg); color: #1d7a44; }
.risk-minimal { background: var(--green); }      .bgk-minimal { background: var(--green-bg); color: #1d7a44; }

.tag {
  display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 650;
  padding: 4px 11px; border-radius: 999px; letter-spacing: .01em;
}
.tag .dot { width: 8px; height: 8px; border-radius: 50%; }
.zone-red    { background: var(--red-bg); color: #a52016; }
.zone-orange { background: var(--orange-bg); color: #b8521a; }
.zone-amber, .zone-yellow { background: var(--amber-bg); color: #93701a; }
.zone-green  { background: var(--green-bg); color: #1d7a44; }
.dot-red { background: var(--red); } .dot-orange { background: var(--orange); }
.dot-amber, .dot-yellow { background: var(--amber); } .dot-green { background: var(--green); }
.tag-neutral { background: var(--bg-sink); color: var(--ink-2); }

/* ---------- Facility list rows ---------- */
.facility-row {
  display: flex; align-items: center; gap: 16px; padding: 16px 18px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-sm);
  transition: box-shadow .15s ease, transform .08s ease; cursor: pointer;
}
.facility-row:hover { box-shadow: var(--shadow); transform: translateY(-1px); text-decoration: none; }
.facility-row .meta { flex: 1; min-width: 0; }
.facility-row .name { font-weight: 650; color: var(--ink); margin: 0; }
.facility-row .sub { font-size: .88rem; color: var(--muted); margin: 2px 0 0; }
.facility-row .dist { text-align: right; flex: none; }
.facility-row .dist .n { font-weight: 720; font-size: 1.05rem; }

/* ---------- Stats strip ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.stat { padding: 18px; }
.stat .n { font-size: 2rem; font-weight: 760; letter-spacing: -.02em; color: var(--ink); }
.stat .l { font-size: .85rem; color: var(--muted); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
table.data { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 520px; }
table.data th, table.data td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); }
table.data thead th { font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: var(--bg-soft); }
table.data tbody tr:last-child td, table.data tr:last-child td { border-bottom: none; }
table.data tr:hover td { background: var(--bg-soft); }

/* ---------- EIS factor bars ---------- */
.factor { padding: 14px 0; border-bottom: 1px solid var(--line); }
.factor:last-child { border-bottom: none; }
.factor-head { display: flex; align-items: baseline; gap: 10px; justify-content: space-between; }
.factor-code { font-size: .72rem; font-weight: 800; color: var(--brand-dk); background: var(--brand-bg);
  padding: 2px 7px; border-radius: 6px; letter-spacing: .04em; }
.factor-name { font-weight: 600; color: var(--ink); flex: 1; }
.factor-score { font-weight: 720; font-variant-numeric: tabular-nums; white-space: nowrap; }
.factor-detail { font-size: .88rem; color: var(--muted); margin: 4px 0 8px; }
.bar { height: 7px; background: var(--bg-sink); border-radius: 999px; overflow: hidden; }
.bar > span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--brand), var(--brand-dk)); }
.bar.warn > span { background: linear-gradient(90deg, var(--orange), var(--red)); }

/* domain header */
.domain-head { display: flex; align-items: center; gap: 12px; margin: 6px 0 10px; }
.domain-head .badge { font-size: .72rem; font-weight: 800; color: #fff; background: var(--ink); border-radius: 6px; padding: 3px 8px; }
.domain-head .pts { margin-left: auto; font-weight: 720; color: var(--ink-2); font-variant-numeric: tabular-nums; }

/* ---------- Detail layout ---------- */
.detail-hero { background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.detail-grid { display: grid; grid-template-columns: 1fr 340px; gap: 26px; align-items: start; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: .93rem; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; color: var(--ink); font-weight: 550; text-align: right; }
.sticky { position: sticky; top: 82px; }
.score-ring { display: flex; align-items: center; gap: 18px; }
.bigscore { font-size: 3.2rem; font-weight: 800; line-height: 1; letter-spacing: -.03em; }

/* mini map on detail */
#detail-map, #explorer-map { width: 100%; border-radius: var(--r); border: 1px solid var(--line); }
#detail-map { height: 300px; }
#explorer-map { height: calc(100vh - 64px); min-height: 480px; }

/* ---------- Map explorer layout ---------- */
.explorer { display: grid; grid-template-columns: 380px 1fr; height: calc(100vh - 64px); }
.explorer-side { border-right: 1px solid var(--line); overflow-y: auto; background: var(--bg); }
.explorer-side .pad { padding: 18px; }
.filter-row { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: .82rem; color: var(--ink-2); }
.legend .item { display: inline-flex; align-items: center; gap: 6px; }
.legend .sw { width: 12px; height: 12px; border-radius: 4px; }

/* ---------- Pricing ---------- */
.price-card { display: flex; flex-direction: column; }
.price-card.featured { border-color: var(--brand); box-shadow: var(--shadow); position: relative; }
.price-card.featured::before {
  content: "Most popular"; position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--brand); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .04em;
  padding: 4px 12px; border-radius: 999px; }
.price { font-size: 2.4rem; font-weight: 800; letter-spacing: -.02em; }
.price small { font-size: .9rem; color: var(--muted); font-weight: 500; }
.feature-list { list-style: none; padding: 0; margin: 18px 0 22px; }
.feature-list li { padding: 7px 0 7px 28px; position: relative; font-size: .94rem; color: var(--ink-2); border-bottom: 1px solid var(--line); }
.feature-list li:last-child { border-bottom: none; }
.feature-list li::before { content: "✓"; position: absolute; left: 0; top: 7px; color: var(--brand); font-weight: 800; }
.feature-list li.off { color: var(--muted); } .feature-list li.off::before { content: "–"; color: var(--line-2); }

/* ---------- Callouts / banners ---------- */
.callout { border: 1px solid var(--line); border-left: 4px solid var(--brand); background: var(--bg-soft);
  border-radius: var(--r-sm); padding: 16px 18px; font-size: .94rem; }
.callout.warn { border-left-color: var(--orange); background: var(--orange-bg); }
.callout.danger { border-left-color: var(--red); background: var(--red-bg); }
.pro-lock { display: flex; align-items: center; gap: 12px; border: 1px dashed var(--line-2);
  background: var(--bg-soft); border-radius: var(--r); padding: 18px; }
.pro-lock .lk { font-size: 1.3rem; }

.section-head { max-width: 640px; margin-bottom: 34px; }
.divider { height: 1px; background: var(--line); border: none; margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: #0c1a1f; color: #b9c7cc; padding: 56px 0 30px; margin-top: 40px; }
.site-footer a { color: #d7e2e5; } .site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 30px; }
.footer-grid h4 { color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 9px; font-size: .92rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 36px; padding-top: 22px;
  font-size: .82rem; color: #8aa0a6; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.disclaimer { font-size: .8rem; color: #7e9298; max-width: 60ch; }

/* ---------- Utilities ---------- */
.flex { display: flex; } .items-center { align-items: center; } .gap { gap: 12px; } .gap-lg { gap: 22px; }
.between { justify-content: space-between; } .wrap-flex { flex-wrap: wrap; }
.mt { margin-top: 14px; } .mt-lg { margin-top: 28px; } .mb { margin-bottom: 14px; } .mb-lg { margin-bottom: 28px; }
.hide { display: none !important; }
.spinner { width: 18px; height: 18px; border: 2px solid var(--line-2); border-top-color: var(--brand);
  border-radius: 50%; animation: spin .7s linear infinite; display: inline-block; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav-links { position: fixed; inset: 64px 0 auto 0; flex-direction: column; align-items: stretch;
    background: #fff; border-bottom: 1px solid var(--line); padding: 10px 16px 18px; gap: 2px;
    box-shadow: var(--shadow); transform: translateY(-130%); transition: transform .22s ease; }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 12px 10px; }
  .nav-cta { margin: 6px 0 0; }
  .nav-toggle { display: inline-flex; }
  .cols-4 { grid-template-columns: repeat(2, 1fr); }
  .cols-3 { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .sticky { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .explorer { grid-template-columns: 1fr; height: auto; }
  .explorer-side { border-right: none; border-bottom: 1px solid var(--line); max-height: none; }
  #explorer-map { height: 60vh; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .section { padding: 52px 0; }
  .cols-2, .cols-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-inner { padding: 54px 0 48px; }
  .searchbox { flex-direction: column; }
  .searchbox .btn { width: 100%; }
  .kv dd { text-align: left; }
}
