:root {
  --pine: #1E4A3B;
  --pine-deep: #143429;
  --sage: #E8EFEA;
  --paper: #FFFFFF;
  --ink: #18221E;
  --muted: #4A5A53;
  --line: #C9D6CE;
  --sun: #F4B942;
  --sun-deep: #E0A42C;
  --error: #A3261B;
  --radius-lg: 14px;
  --radius-sm: 8px;
  --font: "Atkinson Hyperlegible", "Verdana", "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.1875rem; /* 19px: comfortable for low-vision readers */
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
}

h1, h2, h3 { line-height: 1.2; margin: 0 0 0.6em; }
h1 { font-size: clamp(2rem, 4.6vw, 3rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.1875rem; }
p { margin: 0 0 1em; }
a { color: var(--pine); }

:focus-visible { outline: 3px solid var(--sun-deep); outline-offset: 3px; }

.container { width: min(1120px, 100% - 40px); margin-inline: auto; }
.narrow { max-width: 760px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--paper); padding: 8px 12px; z-index: 10; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); }
.header-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 0; flex-wrap: wrap; }
.brand { font-weight: 700; font-size: 1.375rem; color: var(--pine-deep); text-decoration: none; }
.header-note { margin: 0; font-size: 0.9375rem; color: var(--muted); }

/* Hero */
.hero { background: var(--sage); padding: 56px 0 64px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: start; }
.hero-copy { padding-top: 12px; }
.hero-copy h1 { max-width: 16ch; }
.hero-copy h1 { color: var(--pine-deep); }
.lede { font-size: 1.25rem; color: var(--ink); max-width: 40ch; }

/* Form card */
.form-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: 0 2px 0 var(--line);
  scroll-margin-top: 24px;
}
.progress { height: 8px; background: var(--sage); border-radius: 99px; overflow: hidden; margin-bottom: 12px; }
.progress-bar { display: block; height: 100%; width: 25%; background: var(--pine); transition: width 0.3s ease; }
@media (prefers-reduced-motion: reduce) { .progress-bar { transition: none; } }
.step-count { font-size: 0.9375rem; color: var(--muted); margin-bottom: 8px; }

fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { font-size: 1.375rem; font-weight: 700; line-height: 1.3; margin-bottom: 20px; padding: 0; }

.choices { display: grid; gap: 12px; }
.choices.two { grid-template-columns: 1fr 1fr; }
.choice {
  font: inherit;
  font-weight: 700;
  text-align: left;
  padding: 18px 20px;
  min-height: 64px;
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
}
.choices.two .choice { text-align: center; }
.choice:hover { border-color: var(--pine); }
.choice[aria-pressed="true"] { border-color: var(--pine); background: var(--sage); }

.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; margin-bottom: 18px; }
.fields label { display: grid; gap: 6px; font-weight: 700; font-size: 1rem; }
.fields .full { grid-column: 1 / -1; }
.optional { font-weight: 400; color: var(--muted); }
input {
  font: inherit;
  padding: 12px 14px;
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--ink);
  width: 100%;
}
input:focus-visible { border-color: var(--pine); }
input[aria-invalid="true"] { border-color: var(--error); }
.field-error { color: var(--error); font-weight: 400; font-size: 0.9375rem; }
.hp { position: absolute !important; left: -9999px; }

.consent { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; font-size: 0.875rem; line-height: 1.45; color: var(--muted); margin-bottom: 20px; }
.consent input { width: 22px; height: 22px; padding: 0; margin: 2px 0 0; accent-color: var(--pine); }
.consent .field-error { grid-column: 2; }

.cta {
  display: inline-block;
  font: inherit;
  font-weight: 700;
  font-size: 1.1875rem;
  padding: 16px 28px;
  min-height: 56px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--sun);
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
}
.cta:hover { background: var(--sun-deep); }
.cta[disabled] { opacity: 0.6; cursor: progress; }
#submit-btn { width: 100%; }

.form-error { color: var(--error); margin: 12px 0 0; min-height: 1em; }
.back { font: inherit; font-size: 1rem; background: none; border: 0; color: var(--pine); text-decoration: underline; padding: 12px 0 0; cursor: pointer; }

.done h2 { color: var(--pine-deep); }
.done:focus { outline: none; }

/* Appeals path: the one bold element */
.path-section { padding: 72px 0; background: var(--paper); }
.section-intro { color: var(--muted); max-width: 60ch; margin-bottom: 36px; }
.path { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); position: relative; }
.path::before {
  content: "";
  position: absolute;
  top: 27px; left: 46px; right: 46px;
  height: 4px;
  background: var(--line);
}
.path li { position: relative; padding: 0 18px; }
.path-num {
  display: grid; place-items: center;
  width: 58px; height: 58px;
  border-radius: 50%;
  border: 4px solid var(--line);
  background: var(--paper);
  font-weight: 700; font-size: 1.375rem;
  color: var(--muted);
  position: relative;
  margin-bottom: 18px;
}
.path h3 { margin-bottom: 6px; }
.path p { color: var(--muted); font-size: 1.0625rem; }
.path .current {
  background: var(--pine);
  color: var(--paper);
  border-radius: var(--radius-lg);
  padding: 20px 20px 22px;
  margin-top: -20px;
}
.path .current .path-num { background: var(--sun); border-color: var(--sun); color: var(--ink); }
.path .current p { color: #DCE8E1; }
.path-flag { display: inline-block; font-weight: 700; font-size: 0.9375rem; background: var(--sun); color: var(--ink); padding: 4px 10px; border-radius: 4px; }

/* Plain sections */
.plain-section { padding: 64px 0; }
.plain-section.tinted { background: var(--sage); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.two-col p { max-width: 52ch; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.ticks li { padding-left: 36px; position: relative; }
.ticks li::before {
  content: "";
  position: absolute; left: 4px; top: 6px;
  width: 16px; height: 9px;
  border-left: 3px solid var(--pine);
  border-bottom: 3px solid var(--pine);
  transform: rotate(-45deg);
}
.reasons { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 48px; margin-top: 12px; }
.reasons div { border-top: 3px solid var(--pine); padding-top: 14px; }
.reasons p { color: var(--muted); margin: 0; }

details { border-bottom: 1px solid var(--line); padding: 18px 0; }
summary { font-weight: 700; cursor: pointer; }
details p { margin: 12px 0 0; color: var(--muted); max-width: 64ch; }

/* Closing */
.closing { background: var(--pine-deep); color: var(--paper); padding: 56px 0; }
.closing-row { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.closing h2 { margin: 0; max-width: 24ch; }

/* Footer */
.site-footer { padding: 36px 0 48px; font-size: 0.9375rem; color: var(--muted); }
.site-footer p { max-width: 80ch; }

/* Mobile */
@media (max-width: 860px) {
  .hero { padding: 32px 0 40px; }
  .hero-grid, .two-col { grid-template-columns: 1fr; gap: 28px; }
  .hero-copy { max-width: none; padding-top: 0; }
  .hero-copy h1 { font-size: 1.75rem; }
  .lede.context { display: none; }
  .lede { font-size: 1.125rem; margin: 0; }
  .header-note { font-size: 0.875rem; }
  .form-card { padding: 22px 18px; }
  .fields { grid-template-columns: 1fr; }
  .reasons { grid-template-columns: 1fr; }

  .path { grid-template-columns: 1fr; gap: 8px; }
  .path::before { top: 28px; bottom: 28px; left: 27px; right: auto; width: 4px; height: auto; }
  .path li { display: grid; grid-template-columns: 58px 1fr; column-gap: 18px; padding: 0 0 20px; }
  .path::before { left: 27px; }
  .path li > :not(.path-num) { grid-column: 2; }
  .path-num { grid-row: 1 / span 3; margin-bottom: 0; }
  .path .current { margin: 0 -12px; padding: 16px 12px; }
}
.path-flag { justify-self: start; }

.hero-art {
  display: block;
  width: 100%;
  max-width: 440px;
  height: auto;
  margin-top: 1.5rem;
}
@media (max-width: 760px) {
  .hero-art { display: none; }
}

/* Brand with "Powered by" line */
.brand-wrap { display: flex; flex-direction: column; line-height: 1.2; }
.powered-by { font-style: italic; font-size: 0.875rem; color: var(--muted); }
