:root {
  --font-heading: "EB Garamond";
  --font-body: "Lato";
  --ink: #17211d;
  --ink-soft: #50605a;
  --forest: #16483b;
  --forest-deep: #0d3329;
  --sage: #dfe9e1;
  --sage-light: #edf3ee;
  --paper: #fbfaf6;
  --white: #ffffff;
  --line: #d7dfd9;
  --sand: #eee6d7;
  --amber: #a85c20;
  --error: #9c2d27;
  --focus: #1769aa;
  --shadow: 0 24px 70px rgba(18, 53, 44, 0.1);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body), Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

button,
input,
select {
  font: inherit;
}

button,
a {
  touch-action: manipulation;
}

button {
  cursor: pointer;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--white);
  color: var(--forest-deep);
  border-radius: 8px;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  width: min(1180px, calc(100% - 40px));
  min-height: 82px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  color: var(--forest-deep);
  font-family: var(--font-heading), Georgia, serif;
  font-size: 21px;
  font-weight: 700;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: var(--forest);
  color: var(--white);
  font-size: 22px;
}

.header-note {
  color: var(--ink-soft);
  font-size: 14px;
}

.hero {
  width: min(1180px, calc(100% - 40px));
  min-height: 640px;
  margin: 0 auto;
  padding: 72px 0;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(340px, 0.75fr);
  gap: 96px;
  align-items: center;
}

.hero-copy {
  max-width: 700px;
}

.eyebrow,
.card-kicker {
  margin: 0 0 16px;
  color: var(--amber);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-family: var(--font-heading), Georgia, serif;
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.02em;
}

h1 {
  max-width: 760px;
  font-size: clamp(46px, 6vw, 72px);
}

h2 {
  font-size: clamp(36px, 4.5vw, 52px);
}

.hero-lede {
  max-width: 640px;
  margin: 28px 0 18px;
  color: var(--ink-soft);
  font-size: 20px;
  line-height: 1.6;
}

.hero-name {
  margin: 0 0 30px;
  color: var(--forest-deep);
  font-family: var(--font-heading), Georgia, serif;
  font-size: clamp(24px, 3vw, 31px);
  font-weight: 600;
  line-height: 1.25;
}

.primary-button {
  min-height: 54px;
  padding: 14px 22px;
  display: inline-flex;
  gap: 22px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--forest);
  border-radius: 7px;
  background: var(--forest);
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(22, 72, 59, 0.18);
  transition: background 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.primary-button:hover {
  background: var(--forest-deep);
  box-shadow: 0 10px 26px rgba(22, 72, 59, 0.25);
  transform: translateY(-1px);
}

.primary-button:active,
.secondary-button:active,
.choice:active {
  transform: translateY(1px);
}

.primary-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  box-shadow: none;
  transform: none;
}

.microcopy {
  margin: 12px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
}

.source-note {
  max-width: 590px;
  margin: 18px 0 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.5;
}

.price-comparison {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.price-path {
  padding: 28px 30px;
  border-radius: 14px;
}

.expensive-path {
  border: 1px solid #ead9cd;
  background: #fff8f2;
}

.simple-path {
  background: var(--forest-deep);
  color: var(--white);
}

.price-label,
.price-detail,
.price-amount,
.price-disclaimer {
  margin: 0;
}

.price-label {
  color: var(--amber);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.simple-path .price-label {
  color: #e7c69d;
}

.price-amount {
  margin-top: 6px;
  color: var(--ink);
  font-family: var(--font-heading), Georgia, serif;
  font-size: clamp(48px, 5vw, 66px);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1;
}

.price-amount span {
  font-size: 0.38em;
  letter-spacing: 0;
  vertical-align: top;
}

.simple-path .price-amount {
  color: var(--white);
}

.simple-path .price-amount span {
  margin-right: 4px;
  color: #b9cac3;
  font-family: var(--font-body), Arial, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  vertical-align: middle;
}

.price-detail {
  max-width: 350px;
  margin-top: 9px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.45;
}

.simple-path .price-detail {
  color: #c8d5d0;
}

.price-bridge {
  min-height: 68px;
  padding: 12px 16px;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  color: var(--forest-deep);
  font-size: 14px;
  text-align: center;
}

.price-bridge span {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--sage);
  color: var(--forest);
  font-size: 20px;
}

.price-disclaimer {
  padding: 16px 10px 4px;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.5;
}

.trust-strip {
  padding: 28px max(20px, calc((100% - 1180px) / 2));
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  background: var(--sage);
}

.trust-strip div {
  display: flex;
  flex-direction: column;
}

.trust-strip strong {
  color: var(--forest-deep);
  font-family: var(--font-heading), Georgia, serif;
  font-size: 20px;
}

.trust-strip span {
  color: var(--ink-soft);
  font-size: 13px;
}

.explain {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 108px 0;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 100px;
  border-bottom: 1px solid var(--line);
}

.explain-copy {
  max-width: 660px;
  color: var(--ink-soft);
  font-size: 18px;
}

.explain-copy p:first-child {
  margin-top: 0;
}

.explain-copy a {
  display: inline-flex;
  min-height: 44px;
  gap: 12px;
  align-items: center;
  color: var(--forest);
  font-weight: 700;
  text-underline-offset: 4px;
}

.disclosure {
  width: min(900px, calc(100% - 40px));
  margin: 0 auto;
  padding: 56px 0;
  color: var(--ink-soft);
  font-size: 14px;
  text-align: center;
}

.eligibility-section {
  scroll-margin-top: 24px;
  padding: 96px max(16px, calc((100% - 960px) / 2)) 112px;
  background:
    radial-gradient(circle at 82% 5%, rgba(223, 233, 225, 0.7), transparent 26%),
    var(--paper);
}

.eligibility-intro {
  max-width: 700px;
  margin-bottom: 40px;
}

.eligibility-intro > p:last-child {
  max-width: 620px;
  margin: 20px 0 0;
  color: var(--ink-soft);
  font-size: 18px;
}

.progress-panel {
  position: sticky;
  top: 12px;
  z-index: 20;
  margin: 0 0 18px;
  padding: 15px 18px 17px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(251, 250, 246, 0.96);
  box-shadow: 0 8px 28px rgba(18, 53, 44, 0.09);
  backdrop-filter: blur(10px);
}

.progress-panel.failed {
  border-color: #e6c8c4;
  background: rgba(255, 249, 247, 0.97);
}

.progress-panel.failed .progress-copy strong {
  color: var(--error);
}

.progress-copy {
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
}

.progress-copy strong {
  color: var(--forest-deep);
  font-size: 14px;
}

.progress-copy span {
  color: var(--ink-soft);
  font-size: 12px;
}

.progress-segments {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 7px;
}

.progress-segment {
  height: 6px;
  border-radius: 999px;
  background: var(--line);
  transition: background 220ms ease, transform 220ms ease;
}

.progress-segment.complete {
  background: var(--forest);
}

.progress-segment.current {
  background: var(--amber);
  transform: scaleY(1.35);
}

.progress-segment.failed {
  background: var(--error);
  transform: scaleY(1.35);
}

.progressive-form {
  display: grid;
  gap: 18px;
}

.question-card,
.lead-card,
.stop-card,
.result-card {
  position: relative;
  padding: clamp(28px, 5vw, 52px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 12px 36px rgba(18, 53, 44, 0.07);
}

.question-card.current {
  border-top: 4px solid var(--forest);
}

.question-card.answered {
  border-color: #dce4de;
  background: #f7f9f7;
  box-shadow: none;
}

.question-card.answered .question-number {
  color: var(--forest);
}

.question-number {
  position: absolute;
  top: 20px;
  right: 24px;
  color: #92a49c;
  font-family: var(--font-heading), Georgia, serif;
  font-size: 18px;
}

.question-card legend {
  max-width: 760px;
  padding-right: 52px;
  font-size: clamp(25px, 3.5vw, 34px);
}

.reveal {
  animation: reveal-question 220ms ease-out both;
}

@keyframes reveal-question {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.stop-card {
  border-color: #e4d4b9;
  background: #fffdf8;
}

.stop-card h2,
.lead-card h2,
.result-card h2 {
  font-size: clamp(32px, 4.5vw, 46px);
}

.stop-card > p:not(.eyebrow) {
  max-width: 700px;
  color: var(--ink-soft);
  font-size: 17px;
}

.stop-mark,
.pass-mark {
  display: grid;
  width: 44px;
  height: 44px;
  margin-bottom: 20px;
  place-items: center;
  border-radius: 50%;
  font-size: 24px;
  font-weight: 700;
}

.stop-mark {
  background: var(--sand);
  color: var(--amber);
}

.stop-qualification {
  padding: 18px 20px;
  border-left: 3px solid var(--amber);
  background: var(--white);
}

.stop-actions {
  margin-top: 28px;
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}

.secondary-button {
  min-height: 48px;
  padding: 11px 17px;
  display: inline-flex;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--forest);
  border-radius: 7px;
  color: var(--forest);
  font-weight: 700;
  text-decoration: none;
  transition: background 180ms ease, transform 180ms ease;
}

.secondary-button:hover {
  background: var(--sage-light);
}

.lead-card {
  border-top: 5px solid var(--forest);
  background: #fcfffd;
}

.lead-card.more-involved {
  border-top-color: var(--amber);
  background: #fffdf8;
}

.pass-heading {
  margin-bottom: 40px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.pass-heading p:last-child {
  max-width: 680px;
  margin: 14px 0 0;
  color: var(--ink-soft);
}

.pass-mark {
  flex: 0 0 auto;
  background: var(--forest);
  color: var(--white);
}

.review-mark {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--amber);
  color: var(--white);
  font-size: 24px;
  font-weight: 700;
}

.lead-card fieldset {
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

.lead-card legend {
  font-size: clamp(24px, 3vw, 32px);
}

.submit-button {
  margin-top: 26px;
}

.result-card {
  text-align: center;
}

.result-card > p {
  max-width: 620px;
  margin: 0 auto;
  color: var(--ink-soft);
}

.result-card > .eyebrow {
  margin-bottom: 12px;
}

.text-button {
  min-height: 44px;
  padding: 4px;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  border: 0;
  background: transparent;
  color: var(--forest);
  font-weight: 700;
}

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

legend {
  max-width: 740px;
  padding: 0;
  color: var(--ink);
  font-family: var(--font-heading), Georgia, serif;
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 600;
  line-height: 1.15;
}

.question-help {
  max-width: 660px;
  margin: 12px 0 24px;
  color: var(--ink-soft);
}

.choice-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.choice {
  min-height: 64px;
  padding: 12px 16px;
  display: flex;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  text-align: left;
  transition: background 180ms ease, border-color 180ms ease;
}

.choice:hover {
  border-color: #91a59c;
  background: var(--sage-light);
}

.choice.selected {
  border-color: var(--forest);
  background: var(--sage-light);
  box-shadow: inset 0 0 0 1px var(--forest);
}

.radio-mark {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  border: 1.5px solid #80928a;
  border-radius: 50%;
}

.selected .radio-mark {
  border: 5px solid var(--forest);
}

.field-label,
.email-field {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.field-label {
  margin-top: 22px;
}

input,
select {
  width: 100%;
  min-height: 50px;
  padding: 11px 13px;
  border: 1px solid #aab8b1;
  border-radius: 7px;
  background: var(--white);
  color: var(--ink);
}

input[type="date"] {
  max-width: 320px;
}

.email-field {
  max-width: 520px;
  margin-top: 26px;
}

.contact-disclosure {
  margin: 16px 0 0;
  color: var(--ink-soft);
  font-size: 12px;
}

.honeypot {
  position: absolute;
  left: -10000px;
}

.form-error {
  margin: 24px 0 0;
  padding: 12px 14px;
  border-left: 4px solid var(--error);
  background: #fbecea;
  color: var(--error);
  font-weight: 700;
}

.result-check {
  display: grid;
  width: 56px;
  height: 56px;
  margin: 0 auto 24px;
  place-items: center;
  border-radius: 50%;
  background: var(--forest);
  color: var(--white);
  font-size: 28px;
}

.legal-note {
  font-size: 12px;
}

footer {
  min-height: 120px;
  padding: 32px max(20px, calc((100% - 1180px) / 2));
  display: flex;
  gap: 28px;
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 12px;
}

footer > span {
  color: var(--forest-deep);
  font-family: var(--font-heading), Georgia, serif;
  font-size: 18px;
  font-weight: 700;
}

footer p {
  margin-right: auto;
}

footer a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--forest);
}

@media (max-width: 820px) {
  .hero {
    min-height: 0;
    padding: 56px 0;
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-copy {
    max-width: none;
  }

  h1 {
    font-size: clamp(44px, 12vw, 64px);
  }

  .price-comparison {
    max-width: 620px;
  }

  .trust-strip,
  .explain {
    grid-template-columns: 1fr;
  }

  .trust-strip {
    gap: 22px;
  }

  .explain {
    padding: 72px 0;
    gap: 36px;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  footer p {
    margin: 0;
  }
}

@media (max-width: 560px) {
  .site-header {
    min-height: 72px;
  }

  .header-note {
    display: none;
  }

  .brand {
    font-size: 18px;
  }

  .hero {
    width: min(100% - 32px, 1180px);
    padding-top: 42px;
  }

  .hero-lede {
    font-size: 18px;
  }

  .price-comparison {
    padding: 12px;
    border-radius: 16px;
  }

  .price-path {
    padding: 24px 20px;
  }

  .price-bridge {
    align-items: center;
    flex-direction: column;
    gap: 5px;
  }

  .trust-strip {
    padding: 28px 16px;
  }

  .explain {
    width: min(100% - 32px, 1180px);
  }

  .eligibility-section {
    padding-top: 64px;
    padding-bottom: 72px;
  }

  .progress-panel {
    top: 8px;
    padding: 13px 14px 15px;
  }

  .progress-copy {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .question-card,
  .lead-card,
  .stop-card,
  .result-card {
    padding: 26px 20px;
    border-radius: 12px;
  }

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

  .choice {
    min-height: 56px;
  }

  .question-number {
    top: 15px;
    right: 18px;
  }

  .question-card legend {
    padding-right: 40px;
  }

  .pass-heading {
    display: block;
  }

  .stop-actions,
  .stop-actions .secondary-button,
  .stop-actions .text-button,
  .submit-button {
    width: 100%;
    justify-content: center;
  }
}

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