:root {
  --bg: #f4f7f9;
  --fg: #0b1f2a;
  --muted: #5a7380;
  --primary: #0b1f2a;
  --primary-fg: #e8f1f5;
  --surface: #e2eaf0;
  --card: #ffffff;
  --border: #c5d4de;
  --ice: #c8dce6;
  --frost: #7ba3b5;
  --accent: #2d6a7e;
  --hero: #0b1f2a;
  --hero-fg: #e8f1f5;
  --hero-muted: #9bb4c2;
  --font-sans: "DM Sans", system-ui, sans-serif;
  --font-display: "Instrument Serif", Georgia, serif;
  --radius: 12px;
  --shadow: 0 1px 2px rgb(11 31 42 / 0.04), 0 12px 32px rgb(11 31 42 / 0.05);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3 { text-wrap: balance; font-weight: 400; margin: 0; }
p { text-wrap: pretty; margin: 0; }

.container { width: min(1120px, 100% - 2rem); margin-inline: auto; }
.kicker {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.display {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 1.2rem + 4vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 1.15rem + 1.8vw, 2.6rem);
  line-height: 1.15;
}
.muted { color: var(--muted); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 40;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 95%, transparent);
  backdrop-filter: blur(8px);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-size: 1.25rem;
}
.logo svg { width: 32px; height: 32px; }
.nav-desktop { display: none; gap: 1.75rem; font-size: 0.9rem; color: var(--muted); }
.nav-desktop a:hover { color: var(--fg); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  height: 44px; padding: 0 1.25rem; border-radius: 8px;
  font-size: 0.875rem; font-weight: 500; border: 1px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn-primary { background: var(--primary); color: var(--primary-fg); }
.btn-primary:hover { background: var(--accent); }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--fg); }
.btn-ghost:hover { background: var(--surface); }
.btn-inverse { background: var(--hero-fg); color: var(--hero); }
.btn-inverse:hover { background: var(--ice); }
.btn-outline-hero {
  background: transparent; border-color: color-mix(in srgb, var(--hero-muted) 40%, transparent);
  color: var(--hero-fg);
}
.btn-outline-hero:hover { background: color-mix(in srgb, var(--hero-fg) 10%, transparent); }
.menu-toggle {
  display: flex; background: none; border: none; padding: 8px; color: var(--fg);
}
.mobile-nav {
  display: none; flex-direction: column; gap: 4px;
  padding: 1rem; border-top: 1px solid var(--border); background: var(--bg);
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  padding: 0.75rem 0.75rem; border-radius: 8px; font-size: 1rem;
}
.mobile-nav a:hover { background: var(--surface); }

@media (min-width: 768px) {
  .nav-desktop { display: flex; }
  .menu-toggle { display: none; }
  .header-cta { display: inline-flex !important; }
}
.header-cta { display: none; }

/* Hero */
.hero {
  position: relative; min-height: 90svh; color: var(--hero-fg);
  background: var(--hero); overflow: hidden;
  display: flex; align-items: flex-end;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, #2d6a7e55 0%, transparent 55%),
    linear-gradient(180deg, #0b1f2a 0%, #0f2a38 100%);
}
.hero-grid {
  position: absolute; inset: 0; opacity: 0.25;
  background-image:
    linear-gradient(to right, #7ba3b518 1px, transparent 1px),
    linear-gradient(to bottom, #7ba3b518 1px, transparent 1px);
  background-size: 56px 56px;
}
.hero-inner {
  position: relative; width: min(1120px, 100% - 2rem); margin: 0 auto;
  padding: 7rem 0 4rem;
}
.badge {
  display: inline-flex; align-items: center;
  border: 1px solid color-mix(in srgb, var(--hero-muted) 30%, transparent);
  background: color-mix(in srgb, var(--hero-fg) 5%, transparent);
  border-radius: 999px; padding: 0.25rem 0.75rem;
  font-size: 0.75rem; font-weight: 500; letter-spacing: 0.02em;
}
.hero h1 { margin-top: 1.5rem; max-width: 52rem; }
.hero .lead {
  margin-top: 1.5rem; max-width: 40rem;
  font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.25rem);
  line-height: 1.6; color: var(--hero-muted);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2.5rem; }

/* Sections */
.section { padding: 5rem 0; }
.section-surface { background: var(--surface); }
.section-hero { background: var(--hero); color: var(--hero-fg); }
.section-border { border-block: 1px solid var(--border); }
.grid-2 { display: grid; gap: 3rem; }
.grid-cards { display: grid; gap: 1rem; }
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow);
}
.card h3 { font-family: var(--font-display); font-size: 1.25rem; margin-top: 1rem; }
.card p, .card .body { margin-top: 0.5rem; font-size: 0.9rem; color: var(--muted); line-height: 1.6; }
.icon { color: var(--accent); width: 20px; height: 20px; }
.split { display: grid; gap: 3rem; }
@media (min-width: 900px) {
  .grid-2 { grid-template-columns: 5fr 7fr; }
  .grid-cards { grid-template-columns: 1fr 1fr; }
  .split-3 { grid-template-columns: repeat(3, 1fr); }
  .split-2 { grid-template-columns: 1fr 1fr; }
}
.prose-muted p { color: var(--muted); line-height: 1.7; margin-bottom: 1.25rem; }
.prose-muted p:last-child { margin-bottom: 0; }
.prose-muted .emphasis { color: var(--fg); }

/* Pricing */
.pricing-grid { display: grid; gap: 1rem; margin-top: 3rem; }
@media (min-width: 900px) { .pricing-grid { grid-template-columns: repeat(3, 1fr); } }
.price-card {
  display: flex; flex-direction: column;
  border: 1px solid var(--border); border-radius: 16px; padding: 1.5rem;
  background: var(--card);
}
.price-card.featured { background: var(--primary); color: var(--primary-fg); border-color: var(--primary); }
.price-card .amount {
  font-family: var(--font-display); font-size: 2.25rem; margin-top: 1rem;
}
.price-card .amount span { font-family: var(--font-sans); font-size: 1rem; font-weight: 400; opacity: 0.7; }
.price-card ul { list-style: none; padding: 0; margin: 1.5rem 0 0; flex: 1; }
.price-card li { display: flex; gap: 0.5rem; font-size: 0.9rem; margin-bottom: 0.75rem; }
.price-card .btn { margin-top: 2rem; width: 100%; }

/* Office board */
.stats { display: grid; gap: 0.75rem; margin: 1.5rem 0; }
@media (min-width: 640px) { .stats { grid-template-columns: repeat(3, 1fr); } }
.stat {
  border: 1px solid var(--border); background: var(--card);
  border-radius: var(--radius); padding: 1rem 1.25rem;
}
.stat label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.stat strong { display: block; font-family: var(--font-display); font-size: 1.5rem; margin-top: 0.25rem; font-weight: 400; }
.filters { display: flex; gap: 0.5rem; overflow-x: auto; padding-bottom: 0.25rem; margin-bottom: 1.5rem; }
.filter-btn {
  height: 40px; padding: 0 1rem; border-radius: 999px; border: 1px solid var(--border);
  background: var(--card); color: var(--muted); font-size: 0.875rem; white-space: nowrap;
}
.filter-btn.active { background: var(--primary); color: var(--primary-fg); border-color: var(--primary); }
.program {
  border: 1px solid var(--border); background: var(--card);
  border-radius: var(--radius); padding: 1.25rem; margin-bottom: 0.75rem; box-shadow: var(--shadow);
}
.program-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem; }
.program .funder { font-size: 0.75rem; color: var(--muted); }
.program h3 { font-size: 1rem; font-weight: 600; margin-top: 0.25rem; font-family: var(--font-sans); }
.program .project { font-size: 0.875rem; color: var(--muted); margin-top: 0.25rem; }
.badge-status {
  display: inline-flex; align-items: center; border-radius: 999px;
  padding: 0.15rem 0.65rem; font-size: 0.75rem; font-weight: 500;
}
.badge-Watch { border: 1px solid var(--border); color: var(--muted); }
.badge-Eligible, .badge-Reporting { background: var(--ice); }
.badge-Drafting { background: var(--primary); color: var(--primary-fg); }
.badge-Submitted { background: var(--card); border: 1px solid var(--border); }
.fields {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem;
  margin-top: 1rem; font-size: 0.875rem;
}
@media (min-width: 640px) { .fields { grid-template-columns: repeat(4, 1fr); } }
.fields dt { font-size: 0.7rem; color: var(--muted); }
.fields dd { margin: 0.15rem 0 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.board-layout { display: grid; gap: 2rem; }
@media (min-width: 960px) {
  .board-layout.full { grid-template-columns: 2fr 1fr; }
}
.week-list { list-style: none; padding: 0; margin: 1rem 0 0; }
.week-list li { display: flex; gap: 0.75rem; margin-bottom: 1rem; font-size: 0.875rem; }
.day {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 2.5rem; height: 1.5rem; border-radius: 999px;
  background: var(--ice); font-size: 0.75rem; font-weight: 500;
}
.panel-dark {
  background: var(--primary); color: var(--primary-fg);
  border-radius: var(--radius); padding: 1.25rem;
}
.panel-dark p { color: var(--hero-muted); font-size: 0.9rem; line-height: 1.6; margin-top: 0.75rem; }

/* FAQ */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-btn {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; padding: 1.25rem 0; background: none; border: none;
  text-align: left; font-size: 1rem; font-weight: 500; color: var(--fg);
}
.faq-btn:hover { color: var(--accent); }
.faq-body { display: none; padding: 0 2rem 1.25rem 0; font-size: 0.9rem; color: var(--muted); line-height: 1.6; }
.faq-item.open .faq-body { display: block; }
.faq-item.open .chev { transform: rotate(180deg); }
.chev { transition: transform 0.2s; color: var(--muted); flex-shrink: 0; }

/* Form */
.form-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 16px; padding: 1.5rem; box-shadow: var(--shadow);
}
@media (min-width: 640px) { .form-card { padding: 2rem; } }
.form-grid { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .span-2 { grid-column: span 2; } }
label, legend { font-size: 0.875rem; font-weight: 500; display: block; margin-bottom: 0.35rem; }
.field, select.field, textarea.field {
  width: 100%; height: 44px; border-radius: 8px; border: 1px solid var(--border);
  background: var(--card); padding: 0 0.75rem; font-size: 0.875rem; color: var(--fg);
  font-family: inherit;
}
textarea.field { height: auto; min-height: 7rem; padding: 0.75rem; }
.field:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.need-grid { display: grid; gap: 0.5rem; margin-top: 0.5rem; }
@media (min-width: 640px) { .need-grid { grid-template-columns: 1fr 1fr; } }
.need-btn {
  height: 44px; border-radius: 8px; border: 1px solid var(--border);
  background: var(--bg); text-align: left; padding: 0 0.75rem; font-size: 0.875rem;
}
.need-btn.on { background: var(--primary); color: var(--primary-fg); border-color: var(--primary); }
.error { color: #8b3a3a; font-size: 0.875rem; margin-top: 1rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: var(--surface); }
.footer-grid {
  display: grid; gap: 2.5rem; padding: 3.5rem 0;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-grid ul { list-style: none; padding: 0; margin: 1rem 0 0; }
.footer-grid li { margin-bottom: 0.5rem; font-size: 0.9rem; }
.footer-grid a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0; font-size: 0.75rem; color: var(--muted);
  display: flex; flex-direction: column; gap: 0.5rem;
}
@media (min-width: 640px) {
  .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; }
}

.steps { display: grid; gap: 2rem; margin-top: 3rem; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step-n { font-family: var(--font-display); color: var(--accent); font-size: 0.9rem; }
.step h3 { font-family: var(--font-sans); font-weight: 600; font-size: 1rem; margin-top: 0.75rem; }
.step p { margin-top: 0.5rem; font-size: 0.9rem; color: var(--muted); line-height: 1.6; }

.audience-list { display: grid; gap: 2rem; margin-top: 3rem; }
@media (min-width: 640px) { .audience-list { grid-template-columns: 1fr 1fr; } }
.audience-list h3 { font-family: var(--font-sans); font-weight: 600; font-size: 1rem; }
.audience-list p { margin-top: 0.35rem; font-size: 0.9rem; color: var(--hero-muted); line-height: 1.6; }

.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
