/* === BASE === */
:root {
  --bg: #F8F7F2;
  --surface: #FFFFFF;
  --fg: #1A1A1A;
  --fg-muted: #6B6B6B;
  --accent-green: #1B6B44;
  --accent-green-light: #E8F5EE;
  --accent-amber: #D97706;
  --accent-amber-light: #FEF3C7;
  --border: #E5E5E0;
  --nav-height: 64px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: 'Sora', system-ui, sans-serif; font-weight: 700; line-height: 1.2; }

/* === NAV === */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 247, 242, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--fg);
  letter-spacing: -0.03em;
}

.nav-tagline {
  font-size: 0.8rem;
  color: var(--fg-muted);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* === SECTION UTILITIES === */
.section-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-green);
  margin-bottom: 10px;
}

.section-heading {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  color: var(--fg);
  margin-bottom: 48px;
  max-width: 640px;
}

/* === HERO === */
.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 72px 24px 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-green);
  background: var(--accent-green-light);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 24px;
}

.hero-label-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-green);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-headline {
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  font-weight: 800;
  color: var(--fg);
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 24px;
}

.hero-headline em {
  font-style: normal;
  color: var(--accent-green);
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--fg-muted);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  gap: 32px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.hero-stat-num {
  display: block;
  font-family: 'Sora', sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--fg);
  letter-spacing: -0.03em;
}

.hero-stat-label {
  font-size: 0.75rem;
  color: var(--fg-muted);
  line-height: 1.4;
  max-width: 110px;
  display: block;
  margin-top: 4px;
}

.hero-stat-divider {
  width: 1px;
  background: var(--border);
  align-self: stretch;
}

/* === DASHBOARD CARD === */
.dashboard-card {
  background: var(--surface);
  border-radius: 20px;
  border: 1px solid var(--border);
  padding: 28px;
  box-shadow: 0 4px 40px rgba(0,0,0,0.06);
}

.dashboard-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.dashboard-card-title {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--fg);
}

.dashboard-card-badge {
  font-size: 0.7rem;
  font-weight: 600;
  background: var(--accent-green-light);
  color: var(--accent-green);
  padding: 4px 10px;
  border-radius: 999px;
}

.bill-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.bill-row:last-of-type { border-bottom: none; }

.bill-row-info { display: flex; align-items: center; gap: 12px; flex: 1; }

.bill-row-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  flex-shrink: 0;
}

.bill-row-icon.electricity { background: #FEF9C3; }
.bill-row-icon.gas { background: #FED7AA; }
.bill-row-icon.internet { background: #E0E7FF; }
.bill-row-icon.mobile { background: #D1FAE5; }

.bill-row-name {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--fg);
}

.bill-row-plan {
  font-size: 0.72rem;
  color: var(--fg-muted);
  margin-top: 2px;
}

.bill-row-price {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--fg);
}

.bill-quarter, .bill-month {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--fg-muted);
}

.bill-row-saving {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
}

.bill-row--good .bill-row-saving {
  background: var(--accent-green-light);
  color: var(--accent-green);
}

.bill-row--alert .bill-row-saving {
  background: var(--accent-amber-light);
  color: var(--accent-amber);
}

.total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0 0;
  margin-top: 12px;
  border-top: 2px solid var(--fg);
}

.total-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--fg-muted);
}

.total-amount {
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--accent-green);
}

/* === HOW IT WORKS === */
.howitworks {
  background: var(--fg);
  padding: 80px 24px;
}

.howitworks-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.howitworks .section-eyebrow { color: #A3E6B8; }

.howitworks .section-heading {
  color: #FFFFFF;
  margin-bottom: 56px;
}

.steps {
  display: flex;
  align-items: center;
  gap: 0;
}

.step {
  flex: 1;
  padding: 0 40px 0 0;
}

.step-connector {
  width: 60px;
  height: 1px;
  background: #333;
  flex-shrink: 0;
  margin-bottom: 48px;
}

.step-number {
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 3rem;
  color: rgba(255,255,255,0.1);
  letter-spacing: -0.04em;
  margin-bottom: 16px;
}

.step-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 12px;
}

.step-desc {
  font-size: 0.9rem;
  color: #999;
  line-height: 1.6;
}

/* === CATEGORIES === */
.categories {
  padding: 80px 24px;
  background: var(--bg);
}

.categories-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.cat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2px;
}

.cat-card {
  background: var(--surface);
  padding: 36px 32px;
  border: 1px solid var(--border);
  border-radius: 0;
  transition: background 0.2s;
}

.cat-card:hover { background: #FDFCF8; }

.cat-card--wide {
  grid-column: span 2;
}

.cat-icon-wrap {
  width: 52px;
  height: 52px;
  background: var(--accent-green-light);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-green);
  margin-bottom: 20px;
}

.cat-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 10px;
}

.cat-desc {
  font-size: 0.875rem;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* === SAVINGS === */
.savings {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 80px 24px;
}

.savings-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.savings-heading {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  color: var(--fg);
  margin-bottom: 20px;
  max-width: 500px;
}

.savings-body {
  font-size: 0.95rem;
  color: var(--fg-muted);
  line-height: 1.7;
  margin-bottom: 48px;
}

.savings-facts {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.savings-fact { display: flex; gap: 20px; align-items: flex-start; }

.savings-fact-num {
  font-family: 'Sora', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent-green);
  letter-spacing: -0.03em;
  flex-shrink: 0;
  line-height: 1;
  min-width: 80px;
}

.savings-fact-text {
  font-size: 0.875rem;
  color: var(--fg-muted);
  line-height: 1.5;
  padding-top: 4px;
}

/* === SAVINGS BAR CHART === */
.savings-bar-group {
  background: var(--bg);
  border-radius: 20px;
  border: 1px solid var(--border);
  padding: 36px;
}

.savings-bar-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.savings-bar-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--fg);
  width: 80px;
  flex-shrink: 0;
}

.savings-bar-track {
  flex: 1;
  height: 10px;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
}

.savings-bar-fill {
  height: 100%;
  border-radius: 999px;
}

.savings-bar-fill--electricity { width: 90%; background: #FCD34D; }
.savings-bar-fill--gas { width: 55%; background: #FDBA74; }
.savings-bar-fill--internet { width: 75%; background: #A5B4FC; }
.savings-bar-fill--mobile { width: 65%; background: #6EE7B7; }
.savings-bar-fill--insurance { width: 88%; background: #93C5FD; }

.savings-bar-amount {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--fg);
  width: 90px;
  text-align: right;
  flex-shrink: 0;
}

.savings-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0 0;
  border-top: 2px solid var(--fg);
  margin-top: 8px;
}

.savings-total-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--fg-muted);
}

.savings-total-amount {
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--accent-green);
  letter-spacing: -0.03em;
}

/* === CLOSING === */
.closing {
  background: var(--accent-green);
  padding: 100px 24px;
}

.closing-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.closing-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.7);
  margin-bottom: 28px;
}

.closing-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
}

.closing-heading {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 24px;
}

.closing-body {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto;
}

/* === FOOTER === */
.footer {
  background: var(--fg);
  padding: 48px 24px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.footer-logo {
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  color: #FFFFFF;
  letter-spacing: -0.03em;
}

.footer-tagline {
  font-size: 0.85rem;
  color: #888;
}

.footer-note {
  font-size: 0.8rem;
  color: #666;
  margin-bottom: 12px;
  max-width: 600px;
}

.footer-legal {
  font-size: 0.72rem;
  color: #444;
  max-width: 600px;
  line-height: 1.5;
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 48px; padding: 48px 24px; }
  .hero-stats { gap: 20px; }
  .steps { flex-direction: column; gap: 40px; }
  .step-connector { width: 40px; height: 1px; margin-bottom: 0; }
  .cat-grid { grid-template-columns: 1fr 1fr; }
  .cat-card--wide { grid-column: span 1; }
  .savings-inner { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 600px) {
  .hero-stats { flex-direction: column; gap: 16px; }
  .hero-stat-divider { display: none; }
  .cat-grid { grid-template-columns: 1fr; }
  .savings-facts { gap: 20px; }
}