:root {
  color-scheme: light;
  --ink: #19231f;
  --muted: #607067;
  --paper: #fbfaf6;
  --panel: #ffffff;
  --line: #d9ddd4;
  --forest: #17443a;
  --forest-2: #216756;
  --copper: #b96f3a;
  --gold: #d8a744;
  --blue: #276a86;
  --error: #b83b3b;
  --shadow: 0 18px 50px rgba(25, 35, 31, 0.14);
  --hero-photo: url("https://images.unsplash.com/photo-1570129477492-45c003edd2be?auto=format&fit=crop&w=1800&q=82");
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 5vw, 64px);
  background: rgba(251, 250, 246, 0.92);
  border-bottom: 1px solid rgba(217, 221, 212, 0.8);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  background: var(--forest);
  color: white;
}

nav {
  display: flex;
  gap: 22px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
}

nav a:hover {
  color: var(--forest);
}

.hero {
  position: relative;
  min-height: min(760px, calc(100vh - 66px));
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(8, 28, 24, 0.84), rgba(8, 28, 24, 0.46) 48%, rgba(8, 28, 24, 0.08)),
    var(--hero-photo) center / cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 34%;
  z-index: -1;
  background: linear-gradient(0deg, var(--paper), rgba(251, 250, 246, 0));
}

.hero-content {
  width: min(780px, calc(100% - 36px));
  margin: 0 clamp(18px, 5vw, 64px) clamp(88px, 14vh, 150px);
  color: white;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--copper);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #f4c46a;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(2.7rem, 7vw, 6.2rem);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4.5vw, 4rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 18px;
  font-size: 1.25rem;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 650px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.04rem, 2vw, 1.28rem);
  line-height: 1.55;
}

.hero-actions,
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-weight: 850;
}

.button.primary {
  background: var(--gold);
  color: #17211d;
}

.button.primary:hover {
  background: #e2b95b;
}

.button.ghost {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.35);
  color: inherit;
}

.lead-form .button.ghost,
.result-panel .button.ghost {
  background: white;
  border-color: var(--line);
  color: var(--forest);
}

.signal-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  width: min(1120px, calc(100% - 36px));
  margin: -58px auto 74px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
  box-shadow: var(--shadow);
}

.signal-strip div {
  min-height: 112px;
  padding: 22px;
  background: var(--panel);
}

.signal-strip strong {
  display: block;
  color: var(--forest);
  font-size: 2rem;
  line-height: 1;
}

.signal-strip span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-weight: 750;
}

.quiz-section,
.content-band {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: 52px 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 26px;
}

.funnel-shell {
  display: grid;
  grid-template-columns: minmax(220px, 300px) 1fr;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.funnel-sidebar {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 26px;
  background: #eef3ec;
  border-right: 1px solid var(--line);
}

.score-card {
  padding: 20px;
  border-radius: 8px;
  background: var(--forest);
  color: white;
}

.score-card span,
.score-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-weight: 750;
}

.score-card strong {
  display: block;
  margin: 8px 0;
  font-size: 3rem;
  line-height: 1;
}

meter {
  width: 100%;
  height: 9px;
}

.step-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step-list li {
  padding: 12px 14px;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 850;
}

.step-list li.active {
  background: white;
  color: var(--forest);
}

.lead-form {
  min-height: 570px;
  padding: clamp(24px, 4vw, 42px);
}

.form-step {
  display: none;
}

.form-step.active {
  display: block;
}

.choice-grid,
.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.choice {
  position: relative;
  display: flex;
  min-height: 72px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcf9;
  cursor: pointer;
  font-weight: 850;
}

.choice input {
  position: absolute;
  opacity: 0;
}

.choice:has(input:checked) {
  border-color: var(--forest-2);
  background: #e8f1ed;
  box-shadow: inset 0 0 0 1px var(--forest-2);
}

.field {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  color: var(--muted);
  font-weight: 800;
}

.field input,
.field select {
  width: 100%;
  min-height: 48px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  font: inherit;
}

.field input:focus,
.field select:focus,
.choice:focus-within {
  border-color: var(--blue);
  outline: 3px solid rgba(39, 106, 134, 0.18);
}

.consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 22px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcf9;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.consent input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex: 0 0 auto;
}

.form-error {
  min-height: 22px;
  margin: 18px 0 0;
  color: var(--error);
  font-weight: 800;
}

.hidden {
  display: none !important;
}

.result-panel {
  display: grid;
  gap: 18px;
  margin-top: 28px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

pre {
  max-height: 360px;
  overflow: auto;
  padding: 18px;
  border-radius: 8px;
  background: #13211c;
  color: #eef8f0;
  font-size: 0.86rem;
  line-height: 1.55;
}

.debug-details {
  display: grid;
  gap: 12px;
}

.debug-details summary {
  cursor: pointer;
  color: var(--forest);
  font-weight: 850;
}

.cards,
.compliance-grid {
  display: grid;
  gap: 16px;
}

.cards.three {
  grid-template-columns: repeat(3, 1fr);
}

.card,
.compliance-grid article {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.card p,
.compliance-grid p,
footer p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.compliance-band {
  padding-bottom: 84px;
}

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

footer {
  padding: 28px clamp(18px, 5vw, 64px);
  border-top: 1px solid var(--line);
  background: white;
}

footer p {
  max-width: 960px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 18px;
  color: var(--forest);
  font-weight: 800;
}

.legal-page {
  width: min(920px, calc(100% - 36px));
  margin: 0 auto;
  padding: 72px 0 96px;
}

.legal-page h1 {
  color: var(--ink);
  font-size: clamp(2.2rem, 5vw, 4rem);
}

.legal-page h2 {
  margin-top: 34px;
  font-size: clamp(1.35rem, 3vw, 2rem);
}

.legal-page p,
.legal-page li {
  color: var(--muted);
  line-height: 1.65;
}

.legal-page ul {
  padding-left: 22px;
}

@media (max-width: 880px) {
  nav {
    display: none;
  }

  .hero {
    min-height: 720px;
  }

  .hero-content {
    margin-bottom: 112px;
  }

  .signal-strip,
  .funnel-shell,
  .cards.three,
  .compliance-grid {
    grid-template-columns: 1fr;
  }

  .signal-strip {
    margin-top: -70px;
  }

  .funnel-sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

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

  .step-list li {
    text-align: center;
    font-size: 0.82rem;
  }
}

@media (max-width: 620px) {
  .site-header {
    padding-inline: 14px;
  }

  h1 {
    font-size: 2.55rem;
  }

  .hero-copy {
    font-size: 1rem;
  }

  .choice-grid,
  .field-grid {
    grid-template-columns: 1fr;
  }

  .step-list {
    grid-template-columns: 1fr 1fr;
  }

  .lead-form {
    min-height: auto;
  }
}
