/* ============================================
   Solar Leap — Installer Portal Styles
   Shared with solar.css (same brand, same palette)
   ============================================ */

/* ── Variables (matches solar.css) ────────────────────────────────── */
:root {
  --navy:       #0a1628;
  --navy-mid:   #0f2240;
  --amber:      #f59e0b;
  --amber-light:#fbbf24;
  --white:      #ffffff;
  --gray-50:    #f8fafc;
  --gray-100:   #f1f5f9;
  --gray-300:   #cbd5e1;
  --gray-500:   #64748b;
  --gray-700:   #334155;
  --teal:       #2ec4b6;
  --teal-dark:  #1a9383;
  --error-bg:   #fef2f2;
  --error-text: #b91c1c;
  --success-bg: #f0fdf4;
  --success-text: #166534;
  --info-bg:    #eff6ff;
  --info-text:  #1d4ed8;
  --font:       'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ── Reset ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-700);
  -webkit-font-smoothing: antialiased;
  background: var(--white);
}

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

/* ── Nav (matches landing .nav) ────────────────────────────────────── */
.nav {
  background: var(--navy);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  height: 64px;
  gap: 32px;
}
.nav-logo {
  font-size: 18px;
  font-weight: 800;
  color: var(--amber);
  text-decoration: none;
  letter-spacing: -0.3px;
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  gap: 28px;
  margin-right: auto;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--white); }
.btn-nav {
  font-size: 13px;
  font-weight: 600;
  background: var(--amber);
  color: var(--navy);
  padding: 8px 18px;
  border-radius: 6px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s;
  flex-shrink: 0;
}
.btn-nav:hover { background: var(--amber-light); }

/* ── Buttons (shared with solar.css) ──────────────────────────────── */
.btn-primary {
  display: inline-block;
  background: var(--amber);
  color: var(--navy);
  font-weight: 700;
  font-size: 16px;
  padding: 14px 32px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
  cursor: pointer;
  border: none;
}
.btn-primary:hover {
  background: var(--amber-light);
  transform: translateY(-1px);
  text-decoration: none;
}
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.btn-outline {
  display: inline-block;
  background: transparent;
  border: 2px solid var(--navy);
  color: var(--navy);
  font-weight: 600;
  font-size: 15px;
  padding: 12px 28px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  cursor: pointer;
  border-color: rgba(10,22,40,0.3);
}
.btn-outline:hover { background: var(--navy); color: var(--white); text-decoration: none; }

.btn-ghost {
  display: inline-block;
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 6px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.btn-ghost:hover { background: rgba(255,255,255,0.1); color: var(--white); text-decoration: none; }

.btn-sm  { font-size: 13px; padding: 8px 16px; }
.btn-lg  { font-size: 18px; padding: 16px 40px; border-radius: 10px; }
.btn-full { display: block; text-align: center; }

/* ── Hero ──────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-color: var(--navy);
  background-image: url('https://pub-629428d185ca4960a0a73c850d32294b.r2.dev/solar-hero.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 22, 40, 0.72) 0%,
    rgba(10, 22, 40, 0.85) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 80px 24px;
  max-width: 760px;
  animation: fadeUp 0.8s ease-out both;
}
.hero-badge {
  display: inline-block;
  background: rgba(245,158,11,0.15);
  border: 1px solid var(--amber);
  color: var(--amber);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
}
.hero-title {
  font-size: 44px;
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 20px;
}
.hero-sub {
  font-size: 18px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 32px;
  line-height: 1.5;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── Shared Sections ───────────────────────────────────────────────── */
.section { padding: 80px 24px; }
.container { max-width: 1100px; margin: 0 auto; }
.section-title {
  font-size: 32px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.8px;
  margin-bottom: 8px;
  text-align: center;
}
.section-sub {
  font-size: 17px;
  color: var(--gray-500);
  text-align: center;
  margin-bottom: 52px;
}

/* ── Feature Cards (fade on scroll) ───────────────────────────────── */
.features { background: var(--white); }

.features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
  max-width: 1100px;
  margin: 0 auto;
}

.feature-card {
  background: var(--gray-50);
  border-radius: 16px;
  padding: 36px 28px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06), 0 0 0 1px rgba(0,0,0,0.04);
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
  opacity: 0;
  transform: translateY(24px);
}
.feature-card.visible { opacity: 1; transform: translateY(0); }
.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1), 0 0 0 1px rgba(0,0,0,0.04);
}

.feature-card__icon { font-size: 36px; margin-bottom: 16px; }
.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}
.feature-card p { font-size: 14px; color: var(--gray-500); line-height: 1.65; }

/* ── Stats Bar (matches landing) ───────────────────────────────────── */
.stats-bar {
  background: var(--navy);
  padding: 40px 24px;
}
.stats-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 56px;
  flex-wrap: wrap;
}
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.stat-num {
  font-size: 36px;
  font-weight: 800;
  color: var(--amber);
  letter-spacing: -1px;
}
.stat-label { font-size: 13px; color: rgba(255,255,255,0.65); font-weight: 500; }
.stat-divider { width: 1px; height: 44px; background: rgba(255,255,255,0.15); }

/* ── How It Works ──────────────────────────────────────────────────── */
.how-it-works { background: var(--gray-50); }

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 28px;
  max-width: 1000px;
  margin: 0 auto;
}

.step {
  background: var(--white);
  border-radius: 16px;
  padding: 36px 28px;
  text-align: center;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06), 0 0 0 1px rgba(0,0,0,0.04);
  transition: transform 0.2s, box-shadow 0.2s;
}
.step:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1), 0 0 0 1px rgba(0,0,0,0.04);
}
.step__num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--amber);
  color: var(--navy);
  font-size: 22px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.step h3 { font-size: 17px; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.step p { font-size: 14px; color: var(--gray-500); line-height: 1.65; }

/* ── Pricing Card ──────────────────────────────────────────────────── */
.pricing { background: var(--white); }

.pricing-card {
  max-width: 420px;
  margin: 0 auto;
  background: var(--white);
  border: 2px solid var(--amber);
  border-radius: 20px;
  padding: 44px 36px;
  text-align: center;
  box-shadow: 0 4px 24px rgba(10,22,40,0.08);
}

.pricing-card__price {
  font-size: 72px;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
  letter-spacing: -2px;
}

.pricing-card__period {
  font-size: 16px;
  color: var(--gray-500);
  margin-bottom: 28px;
}

.pricing-card__features {
  list-style: none;
  text-align: left;
  font-size: 15px;
  color: var(--gray-700);
  margin: 24px 0;
}

.pricing-card__features li {
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
  gap: 10px;
}

.pricing-card__features li:last-child { border-bottom: none; }

.pricing-card__note {
  font-size: 13px;
  color: var(--gray-500);
  margin-top: 16px;
}

/* ── CTA Band ──────────────────────────────────────────────────────── */
.cta-band {
  background: var(--teal);
  color: var(--white);
  padding: 72px 24px;
  text-align: center;
}
.cta-band h2 { font-size: 28px; font-weight: 800; color: var(--white); margin-bottom: 8px; }
.cta-band p { font-size: 16px; opacity: 0.88; margin-bottom: 28px; }
.cta-band .btn-primary { background: var(--navy); color: var(--white); }
.cta-band .btn-primary:hover { background: var(--navy-mid); }

/* ── Footer (matches landing) ──────────────────────────────────────── */
.footer {
  background: #060e1a;
  padding: 40px 24px;
  text-align: center;
}
.footer .container { max-width: 1100px; margin: 0 auto; }
.footer-logo {
  font-size: 20px;
  font-weight: 800;
  color: var(--amber);
  margin-bottom: 8px;
}
.footer-tagline { font-size: 14px; color: rgba(255,255,255,0.4); margin-bottom: 16px; }
.footer-copy { font-size: 12px; color: rgba(255,255,255,0.3); }
.footer a { color: rgba(255,255,255,0.5); }

/* ── Auth Pages ────────────────────────────────────────────────────── */
.auth-page {
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  background: var(--gray-50);
}

.auth-card {
  background: var(--white);
  border-radius: 20px;
  padding: 44px 40px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 4px 24px rgba(10,22,40,0.08);
}

.auth-card__header { margin-bottom: 28px; text-align: center; }
.auth-card__header h1 {
  font-size: 26px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}
.auth-card__header p { font-size: 15px; color: var(--gray-500); }

.auth-form { display: flex; flex-direction: column; gap: 20px; }

.auth-card__footer { text-align: center; font-size: 14px; color: var(--gray-500); margin-top: 20px; }

/* ── Form Elements ─────────────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 13px; font-weight: 600; color: var(--gray-700); }

.form-group input {
  padding: 12px 14px;
  border: 1.5px solid var(--gray-300);
  border-radius: 8px;
  font-size: 15px;
  font-family: var(--font);
  color: var(--navy);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-group input::placeholder { color: var(--gray-500); }
.form-group input:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(245,158,11,0.15);
}

.form-hint { font-size: 12px; color: var(--gray-500); }

/* ── Alerts ────────────────────────────────────────────────────────── */
.alert {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
}
.alert-error { background: var(--error-bg); color: var(--error-text); border: 1px solid #fca5a5; }
.alert-success { background: var(--success-bg); color: var(--success-text); border: 1px solid #bbf7d0; }
.alert-info { background: var(--info-bg); color: var(--info-text); border: 1px solid #93c5fd; }

/* ── Dashboard ─────────────────────────────────────────────────────── */
.dashboard {
  max-width: 960px;
  margin: 0 auto;
  padding: 48px 24px;
}

.dashboard__header { margin-bottom: 36px; }
.dashboard__title {
  font-size: 30px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.6px;
  margin-bottom: 6px;
}
.dashboard__meta { font-size: 15px; color: var(--gray-500); }

/* ── Tabs ──────────────────────────────────────────────────────────── */
.tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 28px;
  border-bottom: 2px solid var(--gray-100);
}

.tab {
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-500);
  background: none;
  border: none;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: color 0.15s;
  font-family: var(--font);
}
.tab:hover { color: var(--navy); }
.tab.active { color: var(--amber); border-bottom-color: var(--amber); }

/* ── Zip Section ───────────────────────────────────────────────────── */
.zip-section {
  background: var(--gray-50);
  border: 1px solid var(--gray-300);
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 32px;
}

.zip-section__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.zip-section__header h3 { font-size: 15px; font-weight: 700; color: var(--navy); }

.zip-codes { font-size: 14px; color: var(--gray-700); font-family: var(--font); }

.zip-form { flex-direction: column; gap: 12px; align-items: flex-start; }
.zip-form__actions { display: flex; gap: 8px; }

.zip-input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--gray-300);
  border-radius: 8px;
  font-family: var(--font);
  font-size: 14px;
  color: var(--navy);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.zip-input:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(245,158,11,0.15);
}

/* ── Lead Cards ────────────────────────────────────────────────────── */
.leads-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.lead-card {
  background: var(--white);
  border: 1.5px solid var(--gray-300);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lead-card--available {
  border-color: var(--amber);
  background: #fffdf8;
}

.lead-card__header { display: flex; justify-content: space-between; align-items: center; }

.lead-card__zip {
  font-size: 18px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.3px;
}

.lead-card__price {
  font-size: 13px;
  font-weight: 700;
  color: var(--amber);
  background: rgba(245,158,11,0.12);
  padding: 3px 10px;
  border-radius: 4px;
}

.lead-card__name { font-size: 16px; font-weight: 700; color: var(--navy); }
.lead-card__bill { font-size: 14px; color: var(--gray-700); }
.lead-card__meta { font-size: 12px; color: var(--gray-500); }

.lead-card--purchased { border-color: var(--teal); }

.lead-card__badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--teal-dark);
  background: rgba(46,196,182,0.1);
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.lead-card__contact { font-size: 14px; color: var(--gray-700); }
.lead-card__contact a { color: var(--teal); }
.lead-card__contact div { padding: 3px 0; }

.lead-card__details {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: var(--gray-500);
}

/* ── Empty State ────────────────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 56px 24px;
  background: var(--white);
  border: 1.5px dashed var(--gray-300);
  border-radius: 12px;
  color: var(--gray-500);
}
.empty-state p { font-size: 15px; margin-bottom: 8px; }

/* ── Animations ─────────────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .steps, .features__grid { grid-template-columns: 1fr; }
  .stats-inner { gap: 24px; }
  .stat-divider { display: none; }
  .hero-title { font-size: 34px; }
}

@media (max-width: 600px) {
  .nav-links { display: none; }
  .nav-inner { gap: 16px; }
  .section { padding: 56px 16px; }
  .hero-content { padding: 60px 20px; }
  .hero-title { font-size: 28px; }
  .hero-actions { flex-direction: column; align-items: center; }
  .auth-card { padding: 28px 20px; }
  .leads-grid { grid-template-columns: 1fr; }
  .pricing-card { padding: 32px 24px; }
}