:root {
  --ink: #070d1b;
  --muted: #6f7d93;
  --line: #e2e8f0;
  --paper: #f8fafc;
  --white: #ffffff;
  --dark: #070d1b;
  --dark-2: #111a2d;
  --green: #43c18b;
  --green-dark: #2d9e6f;
  --red: #b53c3c;
  --shadow: 0 22px 70px rgba(8, 13, 27, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  align-items: center;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  padding: 22px clamp(24px, 4vw, 80px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand,
.footer-brand {
  align-items: center;
  display: inline-flex;
  gap: 12px;
  font-weight: 900;
}

.brand-name {
  font-size: clamp(23px, 2vw, 34px);
  letter-spacing: -0.04em;
}

.brand-mark {
  align-items: center;
  color: var(--green-dark);
  display: inline-flex;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.brand-mark svg {
  height: 34px;
  width: 34px;
}

.mark-shield {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3.5;
}

nav {
  align-items: center;
  display: flex;
  gap: clamp(14px, 2.2vw, 34px);
  color: #465268;
  font-size: 18px;
  font-weight: 800;
}

nav a {
  transition: color 180ms ease, transform 180ms ease;
}

nav a:hover {
  color: var(--ink);
  transform: translateY(-1px);
}

.nav-button {
  background: var(--ink);
  border-radius: 7px;
  color: var(--white);
  padding: 14px 26px;
}

.nav-button:hover {
  color: var(--white);
}

.hero {
  background: #07101f;
  color: var(--white);
  display: grid;
  gap: clamp(32px, 5vw, 72px);
  grid-template-columns: minmax(0, 1.1fr) minmax(420px, 0.9fr);
  min-height: calc(100vh - 94px);
  overflow: hidden;
  padding: clamp(70px, 8vw, 160px) clamp(24px, 4vw, 80px);
  position: relative;
}

.hero-bg {
  inset: 0;
  opacity: 0.72;
  pointer-events: none;
  position: absolute;
}

.hero-bg::before {
  background:
    linear-gradient(90deg, rgba(67, 193, 139, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(67, 193, 139, 0.06) 1px, transparent 1px);
  background-size: 118px 118px;
  content: "";
  inset: 28px;
  opacity: 0.6;
  position: absolute;
}

.hero-bg::after {
  background:
    radial-gradient(circle at 54% 48%, rgba(67, 193, 139, 0.24), transparent 20%),
    radial-gradient(circle at 54% 48%, transparent 0 15%, rgba(255, 255, 255, 0.12) 15.2% 15.5%, transparent 15.7% 100%),
    radial-gradient(circle at 54% 48%, transparent 0 23%, rgba(255, 255, 255, 0.09) 23.2% 23.5%, transparent 23.7% 100%);
  content: "";
  inset: 0;
  position: absolute;
}

.hud-label {
  color: rgba(255, 255, 255, 0.13);
  font-weight: 900;
  letter-spacing: 0.12em;
  position: absolute;
  text-transform: uppercase;
}

.hud-one {
  font-size: clamp(34px, 3.2vw, 58px);
  left: 3%;
  line-height: 1.12;
  top: 8%;
}

.hud-two {
  font-size: 14px;
  left: 26%;
  top: 10%;
}

.hud-three {
  font-size: 14px;
  right: 24%;
  top: 10%;
}

.hud-shield {
  border: 2px solid rgba(67, 193, 139, 0.16);
  border-radius: 44% 44% 50% 50%;
  height: 250px;
  left: 44%;
  position: absolute;
  top: 38%;
  transform: translate(-50%, -50%);
  width: 210px;
}

.hero-copy,
.assessment-shell {
  position: relative;
  z-index: 1;
}

.hero-copy {
  align-self: center;
  max-width: 900px;
}

.status-pill {
  align-items: center;
  background: rgba(67, 193, 139, 0.12);
  border: 1px solid rgba(67, 193, 139, 0.28);
  border-radius: 999px;
  color: var(--green);
  display: inline-flex;
  font-size: 18px;
  font-weight: 800;
  gap: 12px;
  margin-bottom: 48px;
  padding: 10px 22px;
}

.status-pill span {
  background: var(--green);
  border-radius: 999px;
  box-shadow: 0 0 0 8px rgba(67, 193, 139, 0.12);
  height: 13px;
  width: 13px;
}

h1,
h2,
h3,
p {
  letter-spacing: -0.02em;
}

h1 {
  color: var(--white);
  font-size: clamp(56px, 6.4vw, 118px);
  line-height: 1.03;
  margin: 0;
  max-width: 930px;
}

h2 {
  font-size: clamp(34px, 3.2vw, 58px);
  line-height: 1.08;
  margin: 0;
}

h3 {
  font-size: 26px;
  line-height: 1.15;
  margin: 0;
}

.hero-lede {
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(22px, 2vw, 34px);
  line-height: 1.5;
  margin: 52px 0 44px;
  max-width: 930px;
}

.trust-points {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: grid;
  gap: 24px 46px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 920px;
  padding-top: 28px;
}

.trust-points span {
  align-items: center;
  color: rgba(255, 255, 255, 0.82);
  display: flex;
  font-size: 18px;
  gap: 14px;
}

.trust-points span::before {
  align-items: center;
  border: 2px solid var(--green);
  border-radius: 999px;
  color: var(--green);
  content: "✓";
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 900;
  height: 20px;
  justify-content: center;
  width: 20px;
}

.assessment-shell {
  align-self: center;
  background: var(--white);
  border: 1px solid #d9e1ea;
  border-radius: 18px;
  box-shadow: var(--shadow);
  color: var(--ink);
  min-height: 620px;
  overflow: hidden;
}

.assessment-progress {
  background: #edf1f5;
  height: 8px;
}

.progress-bar {
  background: var(--green);
  height: 100%;
  transition: width 300ms ease;
  width: 25%;
}

.assessment-topline {
  align-items: center;
  display: flex;
  justify-content: space-between;
  padding: 72px 42px 0;
}

.assessment-topline strong {
  font-size: 18px;
  text-transform: uppercase;
}

.assessment-topline span {
  color: #6b7280;
  font-size: 20px;
}

.assessment-card {
  padding: 26px 42px 42px;
}

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

legend {
  font-size: clamp(30px, 2.4vw, 42px);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 18px;
}

.step-copy {
  color: #6b7280;
  font-size: 18px;
  margin: 0 0 42px;
}

.form-step {
  display: none;
}

.form-step.active {
  display: block;
  animation: step-in 220ms ease both;
}

.field-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}

label {
  color: #374151;
  display: grid;
  font-size: 16px;
  font-weight: 800;
  gap: 10px;
}

input,
select,
textarea {
  background: #fbfcfd;
  border: 1px solid #d9e1ea;
  border-radius: 8px;
  color: var(--ink);
  min-height: 60px;
  padding: 15px 18px;
  width: 100%;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(67, 193, 139, 0.13);
  outline: none;
}

select {
  color: #6b7280;
}

.wide {
  grid-column: 1 / -1;
}

.choice-grid {
  display: grid;
  gap: 12px;
}

.choice {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  font-size: 15px;
  gap: 12px;
  min-height: 54px;
  padding: 14px;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.choice:hover,
.choice:has(input:checked) {
  background: #f5fbf8;
  border-color: rgba(67, 193, 139, 0.55);
  box-shadow: 0 10px 20px rgba(8, 13, 27, 0.06);
}

.choice input,
.consent input {
  min-height: auto;
  width: auto;
}

.consent {
  align-items: flex-start;
  color: #64748b;
  display: flex;
  font-size: 13px;
  gap: 12px;
}

.form-error {
  color: var(--red);
  font-weight: 800;
  min-height: 24px;
}

.form-actions,
.result-actions {
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 28px;
  padding-top: 28px;
}

.button {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  gap: 12px;
  font-weight: 800;
  justify-content: center;
  min-height: 54px;
  padding: 14px 22px;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  background: var(--ink);
  color: var(--white);
}

.button.secondary,
.button.ghost {
  background: var(--white);
  border-color: var(--line);
  color: var(--ink);
}

#backButton,
#submitButton {
  display: none;
}

.result-card {
  padding: 42px;
}

.recommendations {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.recommendations article {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
}

.provider-links {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.provider-links:empty {
  display: none;
}

.provider-links h3 {
  font-size: 18px;
}

.provider-links a {
  border: 1px solid var(--line);
  border-radius: 10px;
  display: grid;
  gap: 3px;
  padding: 16px;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.provider-links a:hover {
  border-color: rgba(67, 193, 139, 0.55);
  box-shadow: 0 10px 20px rgba(8, 13, 27, 0.06);
  transform: translateY(-1px);
}

.provider-links span,
.provider-links small {
  color: var(--muted);
}

.section-heading {
  margin: 0 auto 70px;
  max-width: 980px;
  text-align: center;
}

.section-heading p,
.business-section p,
.how-section p,
.coverage-section p,
.disclosure-band p {
  color: var(--muted);
  font-size: 20px;
}

.business-section,
.how-section,
.coverage-section,
.disclosure-band {
  padding: clamp(76px, 8vw, 132px) clamp(24px, 4vw, 80px);
}

.feature-grid,
.process-grid,
.coverage-grid {
  display: grid;
  gap: 42px;
}

.feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-grid article,
.coverage-grid article {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 46px 42px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.feature-grid article:hover,
.coverage-grid article:hover {
  box-shadow: 0 18px 48px rgba(8, 13, 27, 0.08);
  transform: translateY(-4px);
}

.icon-box,
.doc-icon {
  align-items: center;
  background: #f1f5f9;
  border-radius: 12px;
  display: inline-flex;
  font-size: 30px;
  height: 68px;
  justify-content: center;
  margin-bottom: 28px;
  width: 68px;
}

.feature-grid h3,
.coverage-grid h3 {
  margin-bottom: 26px;
}

.process-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.process-grid article {
  padding-right: 60px;
}

.step-circle {
  align-items: center;
  background: var(--ink);
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(8, 13, 27, 0.22);
  color: var(--white);
  display: inline-flex;
  font-size: 26px;
  font-weight: 900;
  height: 78px;
  justify-content: center;
  margin-bottom: 32px;
  width: 78px;
}

.step-circle.green {
  background: var(--green);
}

.coverage-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.disclosure-band {
  background: var(--paper);
  text-align: center;
}

.disclosure-band p {
  margin: 30px auto 36px;
  max-width: 1120px;
}

.disclosure-band a {
  font-size: 20px;
  font-weight: 900;
}

.site-footer {
  background: #121a2b;
  color: rgba(255, 255, 255, 0.72);
  display: grid;
  gap: 42px;
  grid-template-columns: 1.3fr 0.65fr 0.95fr;
  padding: clamp(70px, 7vw, 100px) clamp(24px, 4vw, 80px) 54px;
}

.site-footer .brand-mark {
  color: var(--green);
}

.footer-brand {
  color: var(--white);
  font-size: 32px;
  margin-bottom: 30px;
}

.site-footer h3 {
  color: var(--white);
  font-size: 17px;
  letter-spacing: 0.08em;
  margin-bottom: 24px;
  text-transform: uppercase;
}

.site-footer a {
  display: block;
  font-size: 19px;
  margin-bottom: 14px;
}

.site-footer p {
  color: rgba(255, 255, 255, 0.46);
  font-size: 18px;
  max-width: 620px;
}

.site-footer small {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.28);
  grid-column: 1 / -1;
  padding-top: 34px;
  text-align: center;
}

.legal-page {
  margin: 0 auto;
  max-width: 920px;
  padding: clamp(44px, 7vw, 82px) clamp(20px, 5vw, 72px);
}

.legal-page h1 {
  color: var(--ink);
  font-size: clamp(38px, 5vw, 58px);
}

.legal-page section {
  border-top: 1px solid var(--line);
  margin-top: 28px;
  padding-top: 24px;
}

.legal-page h2 {
  font-size: 24px;
  margin-bottom: 10px;
}

.legal-page p {
  color: var(--muted);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes step-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  .assessment-shell {
    max-width: 760px;
  }

  .feature-grid,
  .coverage-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    flex-wrap: wrap;
    font-size: 15px;
    gap: 10px;
  }

  .nav-button {
    padding: 10px 14px;
  }

  .hero {
    padding: 48px 20px;
  }

  h1 {
    font-size: 48px;
  }

  .hero-lede {
    font-size: 20px;
    margin: 30px 0;
  }

  .status-pill {
    font-size: 15px;
    margin-bottom: 28px;
  }

  .trust-points,
  .feature-grid,
  .process-grid,
  .coverage-grid,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .assessment-topline {
    padding: 34px 22px 0;
  }

  .assessment-card,
  .result-card {
    padding: 22px;
  }

  .form-actions,
  .result-actions {
    justify-content: stretch;
  }

  .button {
    width: 100%;
  }

  .business-section,
  .how-section,
  .coverage-section,
  .disclosure-band {
    padding: 70px 20px;
  }

  .process-grid article {
    padding-right: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
