:root {
  --navy: #0b1f44;
  --ink: #142238;
  --text: #2c3a4f;
  --muted: #4f5d72;
  --line: #dfe5ee;
  --bg: #ffffff;
  --bg-alt: #f5f7fa;
  --accent: #1c5bd0;
  --accent-hover: #164aaf;
  --accent-soft: #e8effc;
  --error: #b42318;
  --error-bg: #fef3f2;
  --success: #067647;
  --focus: #1c5bd0;
  --radius: 10px;
  --max: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

h1, h2, h3 { color: var(--navy); line-height: 1.2; margin: 0; letter-spacing: -0.015em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.15rem); font-weight: 700; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.075rem; font-weight: 650; }
p { margin: 0; }

a { color: var(--accent); text-underline-offset: 2px; }
a:hover { color: var(--accent-hover); }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }
.center { text-align: center; }

.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 100;
  background: var(--navy); color: #fff; padding: 10px 14px; border-radius: 6px;
}
.skip-link:focus { top: 12px; color: #fff; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
}
@supports (backdrop-filter: blur(8px)) {
  .site-header { background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(8px); }
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--navy); text-decoration: none; font-weight: 700; font-size: 1.2rem; letter-spacing: -0.01em;
}
.brand:hover { color: var(--navy); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px;
  font: inherit; font-weight: 650; font-size: 1rem; line-height: 1.2;
  color: #fff; background: var(--accent);
  border: 1px solid var(--accent); border-radius: 8px;
  text-decoration: none; cursor: pointer;
  transition: background-color 0.15s ease;
}
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }
.btn:disabled, .btn[aria-busy="true"] { opacity: 0.7; cursor: progress; }
.btn-small { min-height: 40px; padding: 8px 16px; font-size: 0.9375rem; }
.btn-block { width: 100%; }
.btn-light { background: #fff; color: var(--navy); border-color: #fff; }
.btn-light:hover { background: var(--accent-soft); border-color: var(--accent-soft); color: var(--navy); }
.final-cta .btn-light:focus-visible { outline-color: #fff; }

.spinner {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.45); border-top-color: #fff;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .spinner { animation-duration: 2.4s; }
  .btn { transition: none; }
}

/* Hero */
.hero { padding: 56px 0 72px; border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; gap: 40px; align-items: start; }
.eyebrow {
  font-size: 0.8125rem; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}
.lede { font-size: 1.1875rem; color: var(--text); margin-top: 20px; max-width: 36em; }
.hero-note {
  margin-top: 20px; padding-left: 14px; border-left: 3px solid var(--accent);
  color: var(--muted); font-size: 1rem; max-width: 36em;
}

@media (min-width: 900px) {
  .hero { padding: 80px 0 96px; }
  .hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 64px; }
  .hero-copy { padding-top: 24px; }
}

/* Form card */
.form-card {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 28px 22px;
  box-shadow: 0 1px 2px rgba(11, 31, 68, 0.04), 0 12px 32px rgba(11, 31, 68, 0.08);
}
.form-card:focus { outline: none; }
@media (min-width: 480px) { .form-card { padding: 32px; } }

.form-title { font-size: 1.375rem; }
.form-intro { color: var(--muted); font-size: 0.9375rem; margin-top: 6px; }
#lead-form { margin-top: 22px; }

.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; color: var(--ink); font-size: 0.9375rem; margin-bottom: 6px; }
.field input {
  width: 100%; min-height: 48px; padding: 11px 14px;
  font: inherit; font-size: 1rem; color: var(--ink);
  background: #fff; border: 1px solid #b9c3d1; border-radius: 8px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input::placeholder { color: #8a95a6; }
.field input:hover { border-color: #8e9bb0; }
.field input:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px rgba(28, 91, 208, 0.22); }
.field input[aria-invalid="true"] { border-color: var(--error); border-width: 2px; padding: 10px 13px; }
.field input[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.18); }

.field-hint { font-size: 0.8125rem; color: var(--muted); margin-top: 6px; }
.field-error {
  display: flex; gap: 6px; align-items: flex-start;
  font-size: 0.875rem; font-weight: 500; color: var(--error); margin-top: 6px;
}
.field-error::before { content: "!"; flex: none; display: inline-grid; place-items: center; width: 16px; height: 16px; margin-top: 2px; border-radius: 50%; background: var(--error); color: #fff; font-size: 0.6875rem; font-weight: 700; }
.field-error[hidden] { display: none; }

.form-alert {
  margin-top: 18px; padding: 12px 14px;
  border: 1px solid #f4c7c3; border-left: 4px solid var(--error); border-radius: 8px;
  background: var(--error-bg); color: #7a271a; font-size: 0.9375rem;
}

.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.turnstile:empty { display: none; }
.turnstile { margin-bottom: 14px; }

.form-legal { font-size: 0.8125rem; color: var(--muted); margin-top: 14px; line-height: 1.5; }

.trust-points {
  list-style: none; margin: 20px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 0.875rem; color: var(--ink); font-weight: 550;
}
.trust-points li { display: inline-flex; align-items: center; gap: 7px; }
.trust-points li::before {
  content: ""; width: 14px; height: 14px; flex: none;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3L13 4.5' fill='none' stroke='%231c5bd0' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.success-panel { text-align: center; padding: 24px 4px; }
.success-panel .success-icon { color: var(--success); margin: 0 auto 16px; }
.success-panel .form-title:focus { outline: none; }
.success-panel p { margin-top: 10px; color: var(--text); }

/* Sections */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 760px; margin-bottom: 36px; }
.section-head p { margin-top: 14px; color: var(--text); }
@media (min-width: 900px) { .section { padding: 96px 0; } }

.category-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 14px; grid-template-columns: 1fr;
}
@media (min-width: 640px) { .category-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .category-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; } }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card p { margin-top: 8px; color: var(--muted); font-size: 0.9688rem; }

.qualifier {
  margin-top: 28px; padding: 16px 18px; max-width: 820px;
  background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--navy); border-radius: 8px;
  font-size: 0.9688rem;
}
.qualifier strong { color: var(--navy); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; counter-reset: none; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 36px; } }
.step { position: relative; padding-top: 4px; }
.step-num {
  display: inline-grid; place-items: center; width: 36px; height: 36px; margin-bottom: 16px;
  border-radius: 50%; background: var(--navy); color: #fff; font-weight: 700; font-size: 0.9375rem;
}
.step p { margin-top: 8px; color: var(--text); }

.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.checklist li {
  position: relative; padding: 16px 18px 16px 50px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink);
}
.checklist li::before {
  content: ""; position: absolute; left: 18px; top: 19px; width: 18px; height: 18px;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3L13 4.5' fill='none' stroke='%231c5bd0' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.fine { margin-top: 20px; font-size: 0.875rem; color: var(--muted); }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 2px; cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { font-size: 1.0625rem; }
.faq summary::after {
  content: ""; flex: none; width: 12px; height: 12px;
  border-right: 2px solid var(--navy); border-bottom: 2px solid var(--navy);
  transform: translateY(-3px) rotate(45deg);
}
.faq details[open] summary::after { transform: translateY(3px) rotate(-135deg); }
.faq details p { padding: 0 2px 22px; max-width: 46em; }

/* Final CTA */
.final-cta { background: var(--navy); color: #d6deeb; padding: 72px 0; }
.final-cta h2 { color: #fff; max-width: 22em; margin: 0 auto; }
.final-cta p { margin: 14px auto 28px; }

/* Footer */
.site-footer { padding: 40px 0 32px; background: #fff; font-size: 0.9375rem; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.footer-brand { font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.site-footer nav { display: flex; gap: 22px; align-items: flex-start; }
.site-footer nav a { color: var(--text); }
.disclaimer { margin-top: 24px; font-size: 0.8438rem; color: var(--muted); max-width: 60em; }
.copyright { margin-top: 12px; font-size: 0.8438rem; color: var(--muted); }

/* Simple content pages (privacy, terms, thanks, 404) */
.page { padding: 56px 0 80px; }
.page h1 { font-size: clamp(1.75rem, 3.6vw, 2.4rem); }
.page h2 { font-size: 1.25rem; margin-top: 32px; }
.page p, .page ul { margin-top: 12px; }
.page ul { padding-left: 1.2em; }
.page .updated { color: var(--muted); font-size: 0.9375rem; margin-top: 8px; }
.draft-note {
  margin-top: 20px; padding: 12px 14px; border-radius: 8px;
  background: #fffaeb; border: 1px solid #fedf89; color: #7a2e0e; font-size: 0.9375rem;
}
