* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #0a0f1e;
  color: #e2e8f0;
  min-height: 100vh;
}

a { color: #f59e0b; text-decoration: none; }
a:hover { text-decoration: underline; }

/* NAV */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  position: sticky;
  top: 0;
  background: rgba(10,15,30,0.95);
  backdrop-filter: blur(10px);
  z-index: 100;
}
.logo { font-size: 1.4rem; font-weight: 800; letter-spacing: -0.5px; }
.logo span { color: #f59e0b; }
.nav-cta {
  background: #f59e0b;
  color: #0a0f1e;
  font-weight: 700;
  padding: 0.5rem 1.2rem;
  border-radius: 6px;
  font-size: 0.9rem;
}
.nav-cta:hover { background: #d97706; text-decoration: none; }

/* HERO */
.hero {
  text-align: center;
  padding: 5rem 1.5rem 3rem;
  max-width: 780px;
  margin: 0 auto;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 1.2rem;
}
.hero h1 em {
  color: #f59e0b;
  font-style: normal;
}
.hero p {
  font-size: 1.15rem;
  color: #94a3b8;
  max-width: 560px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
}

/* SEARCH */
.search-wrap {
  position: relative;
  max-width: 580px;
  margin: 0 auto;
}
.search-wrap input {
  width: 100%;
  padding: 1.1rem 1.5rem;
  font-size: 1.05rem;
  border-radius: 10px;
  border: 2px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  color: #fff;
  outline: none;
  transition: border-color 0.2s;
}
.search-wrap input:focus { border-color: #f59e0b; }
.search-wrap input::placeholder { color: #64748b; }

.autocomplete-list {
  position: absolute;
  top: calc(100% + 6px);
  left: 0; right: 0;
  background: #131929;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  overflow: hidden;
  z-index: 50;
  display: none;
}
.autocomplete-list.show { display: block; }
.autocomplete-item {
  padding: 0.85rem 1.2rem;
  cursor: pointer;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: background 0.15s;
}
.autocomplete-item:last-child { border-bottom: none; }
.autocomplete-item:hover { background: rgba(245,158,11,0.1); }
.autocomplete-item .name { font-weight: 600; font-size: 0.95rem; }
.autocomplete-item .meta { font-size: 0.78rem; color: #64748b; margin-top: 2px; }

.search-btn {
  margin-top: 1rem;
  width: 100%;
  padding: 1rem;
  background: #f59e0b;
  color: #0a0f1e;
  font-weight: 800;
  font-size: 1.05rem;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s;
  display: none;
}
.search-btn:hover { background: #d97706; }
.search-btn.show { display: block; }

/* HOW IT WORKS */
.how {
  max-width: 900px;
  margin: 4rem auto;
  padding: 0 1.5rem;
  text-align: center;
}
.how h2 { font-size: 1.8rem; font-weight: 800; margin-bottom: 2.5rem; }
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}
.step {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  padding: 1.8rem 1.4rem;
}
.step-num {
  width: 36px; height: 36px;
  background: #f59e0b;
  color: #0a0f1e;
  border-radius: 50%;
  font-weight: 900;
  font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
}
.step h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; }
.step p { font-size: 0.88rem; color: #94a3b8; line-height: 1.5; }

/* FOOTER */
footer {
  text-align: center;
  padding: 2rem;
  color: #475569;
  font-size: 0.82rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  margin-top: 4rem;
}

/* RESULTS PAGE */
.results-wrap {
  max-width: 860px;
  margin: 3rem auto;
  padding: 0 1.5rem;
}
.committee-header {
  margin-bottom: 2rem;
}
.committee-header h2 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 0.3rem;
}
.committee-header .meta { color: #64748b; font-size: 0.9rem; }

.pain-score-wrap {
  background: linear-gradient(135deg, rgba(245,158,11,0.15), rgba(245,158,11,0.05));
  border: 1px solid rgba(245,158,11,0.3);
  border-radius: 16px;
  padding: 2.5rem;
  text-align: center;
  margin-bottom: 2rem;
}
.pain-score-wrap .label { font-size: 0.9rem; color: #94a3b8; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 0.5rem; }
.pain-score-wrap .score { font-size: 5rem; font-weight: 900; color: #f59e0b; line-height: 1; }
.pain-score-wrap .score-sub { font-size: 1rem; color: #94a3b8; margin-top: 0.5rem; }
.savings-big {
  font-size: 3rem;
  font-weight: 900;
  color: #10b981;
  margin: 1rem 0 0.3rem;
}
.savings-label { color: #94a3b8; font-size: 0.9rem; }

.breakdown-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 2rem;
}
.breakdown-card h3 {
  padding: 1.2rem 1.5rem;
  font-size: 1rem;
  font-weight: 700;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  background: rgba(255,255,255,0.02);
}
table { width: 100%; border-collapse: collapse; }
th {
  text-align: left;
  padding: 0.75rem 1.5rem;
  font-size: 0.78rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
td {
  padding: 0.9rem 1.5rem;
  font-size: 0.92rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(255,255,255,0.02); }
.savings-pct { color: #10b981; font-weight: 700; }
.savings-amt { color: #10b981; }
.zero-pct { color: #475569; }

/* LEAD FORM */
.lead-card {
  background: linear-gradient(135deg, rgba(37,99,235,0.15), rgba(37,99,235,0.05));
  border: 1px solid rgba(37,99,235,0.3);
  border-radius: 16px;
  padding: 2.5rem;
  text-align: center;
}
.lead-card h3 { font-size: 1.5rem; font-weight: 800; margin-bottom: 0.5rem; }
.lead-card p { color: #94a3b8; margin-bottom: 1.5rem; font-size: 0.95rem; }
.lead-form { display: flex; gap: 0.75rem; max-width: 480px; margin: 0 auto; flex-wrap: wrap; }
.lead-form input {
  flex: 1;
  padding: 0.9rem 1.2rem;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.05);
  color: #fff;
  font-size: 0.95rem;
  min-width: 200px;
}
.lead-form input::placeholder { color: #64748b; }
.lead-form button {
  padding: 0.9rem 1.5rem;
  background: #2563eb;
  color: #fff;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.95rem;
  white-space: nowrap;
}
.lead-form button:hover { background: #1d4ed8; }
.lead-success { color: #10b981; font-weight: 600; margin-top: 1rem; display: none; }

/* Loading */
.loading {
  text-align: center;
  padding: 5rem 1.5rem;
}
.spinner {
  width: 48px; height: 48px;
  border: 4px solid rgba(255,255,255,0.1);
  border-top-color: #f59e0b;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 1.5rem;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading p { color: #64748b; }

/* Error */
.error-box {
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.3);
  border-radius: 10px;
  padding: 1.5rem;
  text-align: center;
  color: #fca5a5;
  max-width: 580px;
  margin: 2rem auto;
}

@media (max-width: 600px) {
  .hero h1 { font-size: 2rem; }
  .savings-big { font-size: 2rem; }
  .pain-score-wrap .score { font-size: 3.5rem; }
  td, th { padding: 0.75rem 1rem; }
}
