/* NerdWallet brand palette */
:root {
  --nw-dark:    #063B2B;
  --nw-green:   #00C244;
  --nw-mint:    #52D9A4;
  --nw-bg:      #F7F9F8;
  --nw-surface: #FFFFFF;
  --nw-text:    #1A1A1A;
  --nw-muted:   #5A6672;
  --nw-border:  #D9E2DC;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 24px;

  --max-w: 860px;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--nw-bg);
  color: var(--nw-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.1s ease;
  white-space: nowrap;
}

.btn:hover  { filter: brightness(1.08); }
.btn:active { transform: scale(0.98); }

.btn-cta {
  background: var(--nw-green);
  color: #000;
  font-size: 0.875rem;
  padding: 0.5rem 1.125rem;
}

.btn-primary {
  background: var(--nw-green);
  color: #000;
  font-size: 1rem;
  padding: 0.875rem 2rem;
}

.btn-connector {
  background: var(--nw-dark);
  color: #fff;
  font-size: 1rem;
  padding: 0.875rem 2rem;
}

/* ── Navigation ──────────────────────────────────────────────────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--nw-dark);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  text-decoration: none;
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.logo-nerd   { color: var(--nw-mint); }
.logo-wallet { color: #fff; }

/* ── Hero ────────────────────────────────────────────────────────────────── */

.hero {
  background: var(--nw-dark);
  color: #fff;
  padding: clamp(3.5rem, 8vw, 6rem) 1.5rem;
  text-align: center;
}

.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--nw-mint);
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.hero-sub {
  font-size: 1.0625rem;
  color: rgba(255,255,255,0.75);
  max-width: 520px;
  margin: 0 auto 2rem;
}

/* ── Loan Connector section ──────────────────────────────────────────────── */

.connector {
  padding: clamp(3rem, 7vw, 5rem) 1.5rem;
  background: var(--nw-surface);
  border-top: 1px solid var(--nw-border);
  text-align: center;
}

.section-inner {
  max-width: 640px;
  margin: 0 auto;
}

.connector-badge {
  display: inline-block;
  background: var(--nw-mint);
  color: var(--nw-dark);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-lg);
  margin-bottom: 1rem;
}

.connector h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.125rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--nw-dark);
  margin-bottom: 1rem;
}

.connector-sub {
  font-size: 1.0625rem;
  color: var(--nw-muted);
  max-width: 560px;
  margin: 0 auto 2rem;
}

.connector-features {
  list-style: none;
  text-align: left;
  display: inline-flex;
  flex-direction: column;
  gap: 0.875rem;
  margin-bottom: 2.25rem;
  width: 100%;
  max-width: 480px;
}

.connector-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9375rem;
  color: var(--nw-text);
}

.feature-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  background: var(--nw-green);
  color: #000;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.625rem;
  font-weight: 700;
  margin-top: 0.15rem;
}

.connector-note {
  margin-top: 1rem;
  font-size: 0.8125rem;
  color: var(--nw-muted);
}

/* ── Footer ──────────────────────────────────────────────────────────────── */

.footer {
  background: var(--nw-dark);
  color: rgba(255,255,255,0.6);
  padding: 2.5rem 1.5rem;
  text-align: center;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.footer-logo { margin-bottom: 0.25rem; }

.footer-disclaimer {
  font-size: 0.8125rem;
  max-width: 600px;
  line-height: 1.6;
}

.footer-copy {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
}

/* ── Responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
  .hero h1 { font-size: 1.875rem; }
}

@media (max-width: 480px) {
  .nav-inner { padding: 0 1rem; }
  .hero, .connector { padding-left: 1rem; padding-right: 1rem; }
  .btn-primary, .btn-connector { width: 100%; text-align: center; }
}
