/* ─────────────────────────────────────────
   FundFrontier — Main Street Grant Finder
   ───────────────────────────────────────── */

:root {
  --bg: #FAFAF7;
  --bg-alt: #F2EFE8;
  --fg: #1A1A17;
  --fg-muted: #6B6B63;
  --accent: #3D5A3D;
  --accent-light: #EBF0EB;
  --amber: #C4872A;
  --amber-light: #FBF4E8;
  --border: #E0DDD5;
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ── Navbar ── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 247, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 1.125rem 2rem;
  display: flex;
  align-items: baseline;
  gap: 1rem;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--accent);
  letter-spacing: -0.01em;
}

.nav-tagline {
  font-size: 0.875rem;
  color: var(--fg-muted);
}

/* ── Section Shared ── */
.section-label {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 1rem;
}

.section-headline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.15;
  color: var(--fg);
  letter-spacing: -0.02em;
  max-width: 720px;
}

.section-body {
  font-size: 1.0625rem;
  color: var(--fg-muted);
  max-width: 640px;
  line-height: 1.7;
}

.eyebrow-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
  margin-right: 0.5rem;
}

/* ── Hero ── */
.hero {
  padding: clamp(5rem, 12vw, 9rem) 2rem clamp(4rem, 8vw, 6rem);
  max-width: 1160px;
  margin: 0 auto;
}

.hero-inner {
  max-width: 800px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 2rem;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 8vw, 5.5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 1.75rem;
}

.hero-lede {
  font-size: clamp(1.0625rem, 2.5vw, 1.25rem);
  color: var(--fg-muted);
  max-width: 620px;
  line-height: 1.75;
  margin-bottom: 3.5rem;
}

.hero-stat-row {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.hero-stat { display: flex; flex-direction: column; gap: 0.25rem; }

.stat-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  letter-spacing: -0.03em;
  color: var(--accent);
  line-height: 1;
}

.stat-label {
  font-size: 0.8125rem;
  color: var(--fg-muted);
  max-width: 200px;
  line-height: 1.4;
}

.hero-stat-divider {
  width: 1px;
  height: 48px;
  background: var(--border);
  flex-shrink: 0;
}

/* ── Who it's for ── */
.who-its-for {
  background: var(--bg-alt);
  padding: clamp(4rem, 8vw, 7rem) 2rem;
}

.who-its-for .section-headline { margin-bottom: 1rem; }
.who-its-for .section-body { margin-bottom: 3rem; }

.verticals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.vertical-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.375rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.875rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.vertical-card:hover {
  border-color: var(--accent);
  box-shadow: 0 2px 12px rgba(61, 90, 61, 0.08);
}

.vertical-icon {
  color: var(--accent);
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.vertical-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--fg);
  line-height: 1.3;
}

/* ── How it works ── */
.how-it-works {
  padding: clamp(4rem, 8vw, 7rem) 2rem;
  max-width: 1160px;
  margin: 0 auto;
}

.how-it-works .section-headline { margin-bottom: 0.75rem; }
.how-it-works .section-body { margin-bottom: 3.5rem; }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
}

.step {
  padding: 2.5rem 2.5rem 2.5rem 0;
  border-right: 1px solid var(--border);
}

.step:last-child { border-right: none; padding-right: 0; }

.step:not(:first-child) { padding-left: 2.5rem; }

.step-num {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--accent-light);
  letter-spacing: -0.04em;
  display: block;
  margin-bottom: 1rem;
  line-height: 1;
}

.step-title {
  font-family: var(--font-display);
  font-size: 1.375rem;
  letter-spacing: -0.01em;
  color: var(--fg);
  margin-bottom: 0.75rem;
  line-height: 1.25;
}

.step-body {
  font-size: 0.9375rem;
  color: var(--fg-muted);
  line-height: 1.65;
}

/* ── Closing ── */
.closing {
  background: var(--accent);
  padding: clamp(4rem, 8vw, 7rem) 2rem;
}

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

.closing .closing-eyebrow {
  display: inline-flex;
  align-items: center;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin-bottom: 2rem;
}

.closing-eyebrow .eyebrow-dot {
  background: rgba(255,255,255,0.5);
}

.closing-headline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.15;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.closing-body {
  font-size: 1.0625rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.75;
  margin-bottom: 3rem;
}

.closing-price-row {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 2.5rem;
}

.price-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.price-label {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: #fff;
  letter-spacing: -0.02em;
}

.price-desc {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.6);
  max-width: 160px;
  line-height: 1.4;
}

.price-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.2);
  flex-shrink: 0;
}

/* ── Footer ── */
.footer {
  background: var(--fg);
  padding: 2.5rem 2rem;
}

.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1rem;
  color: rgba(255,255,255,0.5);
}

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

/* ── Responsive ── */
@media (max-width: 900px) {
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .step {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 0 0 2.5rem 0;
  }

  .step:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  .step:not(:first-child) { padding-left: 0; }
}

@media (max-width: 640px) {
  .hero-stat-row { gap: 1.5rem; }
  .hero-stat-divider { display: none; }
  .verticals-grid { grid-template-columns: 1fr 1fr; }
  .closing-price-row { gap: 1.5rem; }
  .price-divider { display: none; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 400px) {
  .verticals-grid { grid-template-columns: 1fr; }
}