:root {
  --bg: #0b1020;
  --surface: #131b31;
  --surface-2: #1b2542;
  --text: #eef2ff;
  --muted: #9aa7c7;
  --accent: #38bdf8;
  --accent-2: #22c55e;
  --warn: #f59e0b;
  --danger: #ef4444;
  --border: #263357;
  --radius: 12px;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: 1020px; margin: 0 auto; padding: 0 20px; }
header {
  border-bottom: 1px solid var(--border);
  background: rgba(11, 16, 32, 0.92);
  position: sticky;
  top: 0;
  z-index: 20;
}
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
}
.brand { font-weight: 800; font-size: 1.15rem; color: var(--text); letter-spacing: -0.02em; }
.brand span { color: var(--accent-2); }
.nav-links { display: flex; gap: 18px; font-size: 0.92rem; }
.hero { padding: 48px 0 32px; }
.hero h1 { font-size: clamp(1.8rem, 3.8vw, 2.6rem); line-height: 1.18; margin: 0 0 12px; }
.hero p { color: var(--muted); max-width: 680px; margin: 0 0 24px; font-size: 1.05rem; }
.badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.14);
  color: var(--accent);
  margin-bottom: 12px;
}
.search-box {
  display: flex;
  gap: 10px;
  max-width: 520px;
  margin-top: 16px;
}
.search-box input {
  flex: 1;
  padding: 13px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 1rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: var(--radius);
  border: none;
  background: var(--accent);
  color: #06101f;
  font-weight: 700;
  font-size: 0.96rem;
  cursor: pointer;
}
.btn:hover { opacity: 0.92; text-decoration: none; }
.btn-green { background: var(--accent-2); color: #051b0c; }
.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  margin: 24px 0;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin: 20px 0;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.kpi-label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.kpi-val { font-size: 1.75rem; font-weight: 800; margin: 4px 0; color: var(--text); }
.kpi-sub { font-size: 0.85rem; color: var(--muted); }
.calc-tabs { display: flex; gap: 10px; margin-bottom: 18px; }
.tab-btn {
  padding: 10px 18px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--muted);
  font-weight: 700;
  cursor: pointer;
}
.tab-btn.active {
  background: var(--accent);
  color: #06101f;
  border-color: var(--accent);
}
.slider-row { margin-bottom: 16px; }
.slider-row label { display: flex; justify-content: space-between; font-size: 0.92rem; margin-bottom: 6px; }
.slider-row input[type="range"] { width: 100%; accent-color: var(--accent); }
.result-banner {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.35);
  border-radius: var(--radius);
  padding: 18px;
  margin-top: 16px;
}
.cta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-top: 18px;
}
.tou-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 6px;
  margin-top: 12px;
}
@media (max-width: 640px) {
  .tou-grid { grid-template-columns: repeat(6, 1fr); }
}
.tou-cell {
  text-align: center;
  padding: 8px 4px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
}
.tou-off { background: rgba(34, 197, 94, 0.18); color: #86efac; border: 1px solid rgba(34, 197, 94, 0.3); }
.tou-peak { background: rgba(239, 68, 68, 0.22); color: #fca5a5; border: 1px solid rgba(239, 68, 68, 0.4); }
table { width: 100%; border-collapse: collapse; margin-top: 12px; }
th, td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--border); font-size: 0.94rem; }
th { color: var(--muted); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.04em; }
.zip-results { margin-top: 14px; }
footer {
  border-top: 1px solid var(--border);
  margin-top: 56px;
  padding: 28px 0 44px;
  color: var(--muted);
  font-size: 0.86rem;
}
.hidden { display: none; }
