:root {
  --navy: #0b192c;
  --navy-light: #132845;
  --emerald: #10b981;
  --emerald-dark: #059669;
  --gold: #f59e0b;
  --bg: #f4f7fb;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --border: #e2e8f0;
  --radius: 14px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
h1, h2, h3, h4, .brand { font-family: 'Space Grotesk', sans-serif; }
a { color: inherit; text-decoration: none; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* Disclosure bar */
.disclosure-bar {
  background: #06101d;
  color: #cbd5e1;
  font-size: 0.78rem;
  text-align: center;
  padding: 8px 16px;
}
.disclosure-bar a { color: var(--emerald); text-decoration: underline; }

/* Header */
.site-header {
  background: var(--navy);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 20px;
}
.brand {
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.brand-badge {
  background: var(--emerald);
  color: var(--navy);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  text-transform: uppercase;
}
.nav-links { display: flex; gap: 24px; font-size: 0.92rem; color: #cbd5e1; }
.nav-links a:hover { color: #fff; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  border-radius: 10px;
  padding: 11px 18px;
  cursor: pointer;
  border: none;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--emerald); color: #052e16; }
.btn-primary:hover { background: #34d399; }
.btn-gold { background: var(--gold); color: #1e1b4b; }
.btn-gold:hover { background: #fbbf24; }
.btn-outline { background: transparent; border: 1.5px solid var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--navy); }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #153459 60%, #0f4c45 100%);
  color: #fff;
  padding: 64px 0 72px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.9fr;
  gap: 36px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  background: rgba(16, 185, 129, 0.16);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.35);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 16px;
}
.hero h1 { font-size: clamp(2rem, 4vw, 3.1rem); line-height: 1.12; margin-bottom: 16px; }
.hero p { color: #cbd5e1; font-size: 1.05rem; margin-bottom: 24px; max-width: 560px; }

.search-box {
  display: flex;
  gap: 8px;
  background: rgba(255,255,255,0.08);
  padding: 8px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.16);
  max-width: 580px;
}
.search-box input, .search-box select {
  background: #fff;
  border: none;
  border-radius: 9px;
  padding: 12px 14px;
  font-size: 0.95rem;
  color: var(--text);
}
.search-box input { flex: 1; min-width: 0; }

.hero-stats {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 18px;
  padding: 24px;
}
.stat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 16px;
}
.stat-box {
  background: rgba(11, 25, 44, 0.65);
  padding: 16px;
  border-radius: 12px;
}
.stat-box strong { display: block; font-size: 1.5rem; color: var(--emerald); font-family: 'Space Grotesk', sans-serif; }
.stat-box span { font-size: 0.82rem; color: #cbd5e1; }

/* Sections */
.section { padding: 56px 0; }
.section-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 28px;
}
.section-header h2 { font-size: 1.85rem; }
.section-header p { color: var(--muted); }

/* Filters */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}
.filter-pill {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}
.filter-pill.active {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

/* Deal Cards */
.deals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 22px;
}
.deal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}
.deal-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.score-badge {
  background: #fef3c7;
  color: #92400e;
  font-weight: 700;
  font-size: 0.78rem;
  padding: 4px 10px;
  border-radius: 999px;
}
.merchant-tag {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--muted);
  background: #f1f5f9;
  padding: 4px 10px;
  border-radius: 6px;
}
.deal-card h3 { font-size: 1.15rem; margin-bottom: 6px; }
.deal-meta { font-size: 0.84rem; color: var(--muted); margin-bottom: 14px; }
.price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 14px;
}
.price-used { font-size: 1.55rem; font-weight: 800; color: var(--navy); font-family: 'Space Grotesk', sans-serif; }
.price-retail { text-decoration: line-through; color: #94a3b8; font-size: 0.92rem; }
.savings-chip {
  background: #d1fae5;
  color: #065f46;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
}
.deal-notes {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 18px;
}
.card-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

/* Trade-in Calculator */
.calc-panel {
  background: var(--navy);
  color: #fff;
  border-radius: 20px;
  padding: 36px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: center;
}
.calc-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; }
.calc-form label { display: block; font-size: 0.8rem; color: #cbd5e1; margin-bottom: 5px; }
.calc-form select {
  width: 100%;
  padding: 11px 12px;
  border-radius: 9px;
  border: none;
  font-size: 0.94rem;
}
.calc-result {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 16px;
  padding: 26px;
  text-align: center;
}
.calc-value { font-size: 2.5rem; font-weight: 800; color: var(--emerald); font-family: 'Space Grotesk', sans-serif; margin: 8px 0; }

/* Comparison Table */
.table-wrap { overflow-x: auto; background: var(--surface); border-radius: var(--radius); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
th, td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--border); }
th { background: #f8fafc; font-weight: 700; color: var(--navy); }

/* Guide & FAQ */
.guide-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.guide-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.guide-card h3 { margin-bottom: 10px; font-size: 1.1rem; }
.guide-card p { color: var(--muted); font-size: 0.92rem; }

/* Footer */
footer {
  background: var(--navy);
  color: #cbd5e1;
  padding: 44px 0 32px;
  margin-top: 40px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 28px; margin-bottom: 28px; }
footer h4 { color: #fff; margin-bottom: 10px; }
footer ul { list-style: none; display: grid; gap: 6px; font-size: 0.9rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; font-size: 0.82rem; color: #94a3b8; }

@media (max-width: 820px) {
  .hero-grid, .calc-panel, .footer-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .search-box { flex-direction: column; }
}
