/* ── Reset & Base ─────────────────────────────────────────── */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}

:root {
  --teal-50: #ecfdf5;
  --teal-100: #d1fae5;
  --teal-200: #a7f3d0;
  --teal-500: #10b981;
  --teal-600: #0F6E56;
  --teal-700: #0a5743;
  --teal-800: #064e3b;
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-500: #BA7517;
  --amber-600: #9a6013;

  --bg: #ffffff;
  --bg-subtle: #f9fafb;
  --bg-muted: #f3f4f6;
  --fg: #111827;
  --fg-muted: #6b7280;
  --fg-subtle: #9ca3af;
  --border: #e5e7eb;
  --primary: var(--teal-600);
  --primary-fg: #ffffff;
  --primary-hover: var(--teal-700);
  --accent: var(--amber-500);
  --accent-fg: #ffffff;
  --card-shadow: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --card-shadow-lg: 0 4px 12px rgba(0,0,0,.08);

  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'SF Mono', SFMono-Regular, Consolas, 'Liberation Mono', Menlo, monospace;
  --radius: 8px;
  --radius-lg: 12px;
  --max-w: 1120px;
  --nav-h: 64px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1117;
    --bg-subtle: #1a1d27;
    --bg-muted: #23262f;
    --fg: #f3f4f6;
    --fg-muted: #9ca3af;
    --fg-subtle: #6b7280;
    --border: #2d3039;
    --primary: #34d399;
    --primary-fg: #064e3b;
    --primary-hover: #6ee7b7;
    --card-shadow: 0 1px 3px rgba(0,0,0,.3);
    --card-shadow-lg: 0 4px 12px rgba(0,0,0,.4);
  }
}
[data-theme="dark"] {
  --bg: #0f1117;
  --bg-subtle: #1a1d27;
  --bg-muted: #23262f;
  --fg: #f3f4f6;
  --fg-muted: #9ca3af;
  --fg-subtle: #6b7280;
  --border: #2d3039;
  --primary: #34d399;
  --primary-fg: #064e3b;
  --primary-hover: #6ee7b7;
  --card-shadow: 0 1px 3px rgba(0,0,0,.3);
  --card-shadow-lg: 0 4px 12px rgba(0,0,0,.4);
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Typography ──────────────────────────────────────────── */
h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 700; line-height: 1.15; letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); font-weight: 700; line-height: 1.2; letter-spacing: -.015em; }
h3 { font-size: 1.25rem; font-weight: 600; line-height: 1.3; }
p  { color: var(--fg-muted); }

/* ── Layout ──────────────────────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }
.section   { padding: 5rem 0; }
.section-sm { padding: 3.5rem 0; }
.text-center { text-align: center; }

/* ── Nav ─────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
}
.nav .container { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.nav-logo {
  display: flex; align-items: center; gap: .5rem;
  font-weight: 700; font-size: 1.25rem; color: var(--fg);
  text-decoration: none;
}
.nav-logo svg { color: var(--primary); }
.nav-links { display: flex; align-items: center; gap: 1.75rem; list-style: none; }
.nav-links a {
  font-size: .875rem; font-weight: 500; color: var(--fg-muted);
  text-decoration: none; transition: color .15s;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--fg); }
.nav-actions { display: flex; align-items: center; gap: .75rem; }

.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  color: var(--fg); padding: .25rem;
}
.theme-toggle {
  background: none; border: 1px solid var(--border); border-radius: var(--radius);
  cursor: pointer; color: var(--fg-muted); padding: .35rem .5rem;
  font-size: .875rem; transition: border-color .15s;
}
.theme-toggle:hover { border-color: var(--fg-subtle); }

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-menu {
    display: none; position: absolute; top: var(--nav-h); left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--border);
    padding: 1rem 1.5rem; flex-direction: column; gap: .25rem;
  }
  .nav-menu.open { display: flex; }
  .nav-links { flex-direction: column; gap: .25rem; width: 100%; }
  .nav-links a { display: block; padding: .5rem 0; }
  .nav-actions { width: 100%; padding-top: .75rem; border-top: 1px solid var(--border); margin-top: .5rem; }
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .625rem 1.25rem; border-radius: var(--radius); font-weight: 600;
  font-size: .875rem; text-decoration: none; border: none; cursor: pointer;
  transition: background .15s, transform .1s; line-height: 1.4;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--primary); color: var(--primary-fg); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-outline {
  background: transparent; color: var(--fg); border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--fg-subtle); background: var(--bg-subtle); }
.btn-lg { padding: .75rem 1.75rem; font-size: 1rem; }
.btn-sm { padding: .375rem .875rem; font-size: .8125rem; }

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  padding: calc(var(--nav-h) + 5rem) 0 5rem;
  text-align: center;
}
.hero h1 { max-width: 720px; margin: 0 auto 1.25rem; }
.hero p  { max-width: 560px; margin: 0 auto 2rem; font-size: 1.125rem; }
.hero-actions { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }

/* ── Cards ───────────────────────────────────────────────── */
.card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.75rem;
  box-shadow: var(--card-shadow); transition: box-shadow .2s, border-color .2s;
}
.card:hover { box-shadow: var(--card-shadow-lg); border-color: var(--fg-subtle); }
.card-icon {
  width: 2.75rem; height: 2.75rem; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
}
.card-icon svg { width: 1.375rem; height: 1.375rem; }
.card h3 { margin-bottom: .5rem; }
.card p  { font-size: .9rem; }

/* ── Grid Layouts ────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}
@media (min-width: 769px) and (max-width: 1024px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

/* ── Module Colors ───────────────────────────────────────── */
.mod-fsvp  .card-icon { background: var(--teal-50);  color: var(--teal-600); }
.mod-cpsia .card-icon { background: var(--amber-50); color: var(--amber-500); }
.mod-prop65 .card-icon { background: #fef2f2; color: #dc2626; }
.mod-pfas  .card-icon { background: #eff6ff; color: #2563eb; }
[data-theme="dark"] .mod-fsvp  .card-icon { background: #064e3b33; }
[data-theme="dark"] .mod-cpsia .card-icon { background: #78350f33; }
[data-theme="dark"] .mod-prop65 .card-icon { background: #7f1d1d33; }
[data-theme="dark"] .mod-pfas  .card-icon { background: #1e3a5f33; }

/* ── Section Headings ────────────────────────────────────── */
.section-heading { margin-bottom: 3rem; }
.section-heading p { margin-top: .75rem; max-width: 560px; }
.section-heading.text-center p { margin-left: auto; margin-right: auto; }
.section-label {
  display: inline-block; font-size: .75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--primary); margin-bottom: .5rem;
}

/* ── CTA Banner ──────────────────────────────────────────── */
.cta-banner {
  background: var(--primary); color: var(--primary-fg);
  border-radius: var(--radius-lg); padding: 3.5rem 2rem;
  text-align: center;
}
.cta-banner h2 { color: inherit; margin-bottom: .75rem; }
.cta-banner p  { color: color-mix(in srgb, var(--primary-fg) 80%, transparent); margin-bottom: 1.5rem; max-width: 480px; margin-left: auto; margin-right: auto; }
.cta-banner .btn { background: var(--primary-fg); color: var(--primary); font-weight: 700; }
.cta-banner .btn:hover { opacity: .9; }

/* ── Pricing Cards ───────────────────────────────────────── */
.pricing-card { position: relative; display: flex; flex-direction: column; }
.pricing-card.featured {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary), var(--card-shadow-lg);
}
.pricing-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: var(--primary-fg);
  font-size: .6875rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .05em; padding: .25rem .75rem; border-radius: 999px;
}
.pricing-price { font-size: 2.5rem; font-weight: 800; line-height: 1; margin: 1rem 0 .25rem; color: var(--fg); }
.pricing-price span { font-size: 1rem; font-weight: 500; color: var(--fg-muted); }
.pricing-features { list-style: none; margin: 1.25rem 0; flex: 1; }
.pricing-features li {
  padding: .4rem 0; font-size: .875rem; color: var(--fg-muted);
  display: flex; align-items: flex-start; gap: .5rem;
}
.pricing-features li::before {
  content: ''; display: inline-block; width: 1.125rem; height: 1.125rem;
  background: var(--teal-100); border-radius: 50%; flex-shrink: 0; margin-top: .15rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%230F6E56'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-size: 12px; background-repeat: no-repeat; background-position: center;
}

/* ── Steps ───────────────────────────────────────────────── */
.step { display: flex; gap: 1.5rem; align-items: flex-start; }
.step-number {
  width: 2.5rem; height: 2.5rem; border-radius: 50%;
  background: var(--primary); color: var(--primary-fg);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1rem; flex-shrink: 0;
}
.step-content h3 { margin-bottom: .25rem; }
.step-content p  { font-size: .9rem; }
.steps-list { display: flex; flex-direction: column; gap: 2.5rem; max-width: 640px; margin: 0 auto; }
.step-connector {
  width: 2px; height: 2rem; background: var(--border);
  margin-left: calc(1.25rem - 1px); /* center under circle */
}

/* ── Table ───────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table {
  width: 100%; border-collapse: collapse; font-size: .875rem;
}
th { text-align: left; font-weight: 600; padding: .75rem 1rem; border-bottom: 2px solid var(--border); color: var(--fg); }
td { padding: .75rem 1rem; border-bottom: 1px solid var(--border); color: var(--fg-muted); }
tr:last-child td { border-bottom: none; }
.check { color: var(--primary); font-weight: 700; }
.dash  { color: var(--fg-subtle); }

/* ── Form ────────────────────────────────────────────────── */
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block; font-size: .8125rem; font-weight: 600;
  margin-bottom: .375rem; color: var(--fg);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: .625rem .75rem; border: 1px solid var(--border);
  border-radius: var(--radius); font-size: .875rem; font-family: var(--font);
  background: var(--bg); color: var(--fg); transition: border-color .15s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 15%, transparent);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 768px) { .form-row { grid-template-columns: 1fr; } }
.form-success {
  padding: 1rem; background: var(--teal-50); border: 1px solid var(--teal-200);
  border-radius: var(--radius); color: var(--teal-700); font-size: .875rem;
  display: none;
}
[data-theme="dark"] .form-success { background: #064e3b33; border-color: #064e3b; color: var(--teal-200); }

/* ── FAQ ─────────────────────────────────────────────────── */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; text-align: left; background: none; border: none;
  padding: 1.25rem 0; font-size: .9375rem; font-weight: 600;
  color: var(--fg); cursor: pointer; display: flex;
  justify-content: space-between; align-items: center; font-family: var(--font);
}
.faq-q::after {
  content: '+'; font-size: 1.25rem; color: var(--fg-subtle);
  transition: transform .2s; flex-shrink: 0; margin-left: 1rem;
}
.faq-item.open .faq-q::after { content: '\2212'; }
.faq-a {
  max-height: 0; overflow: hidden; transition: max-height .25s ease;
}
.faq-item.open .faq-a { max-height: 400px; }
.faq-a p { padding-bottom: 1.25rem; font-size: .875rem; }

/* ── Footer ──────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border); padding: 3rem 0;
  font-size: .8125rem; color: var(--fg-subtle);
}
.footer .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-links { display: flex; gap: 1.5rem; list-style: none; }
.footer-links a { color: var(--fg-muted); text-decoration: none; }
.footer-links a:hover { color: var(--fg); }

/* ── Utility ─────────────────────────────────────────────── */
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-4 { margin-bottom: 2rem; }
.gap-2 { gap: 1rem; }
.spacer { height: var(--nav-h); }

/* Announcement bar */
.announce {
  background: var(--primary); color: var(--primary-fg);
  text-align: center; padding: .375rem 1rem; font-size: .8125rem; font-weight: 500;
}
.announce a { color: inherit; text-decoration: underline; }
