:root {
  --ink: #1a1c20;
  --body: #2c3138;
  --muted: #66707c;
  --blue: #3b7ee8;
  --blue-press: #2d68c9;
  --card: #f3f8fd;
  --callout: #e7f1ff;
  --line: #e6ebf2;
  --red: #d42334;
  --amber: #f5b942;
  --page: #e7edf4;
  --shadow: 0 10px 28px rgba(36, 74, 140, 0.08);
  --radius: 14px;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: #fff;
  color: var(--body);
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

button, input {
  font-family: inherit;
}

.page {
  min-height: 100vh;
}

.wrap {
  width: min(800px, calc(100% - 40px));
  margin: 0 auto;
}

.layout {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas:
    "hero"
    "quiz"
    "byline"
    "story";
  padding-top: 22px;
  padding-bottom: 28px;
}

.hero { grid-area: hero; }
.quiz { grid-area: quiz; }
.byline { grid-area: byline; }
.story { grid-area: story; }

.hero {
  padding-top: 6px;
}

h1 {
  margin: 0;
  color: var(--ink);
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.038em;
  line-height: 1.12;
}

.dek {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.45;
  font-weight: 500;
}

.quiz {
  --quiz-bg: #e7f2ff;
  margin: 28px 0 16px;
  padding: 26px 18px 22px;
  background: var(--quiz-bg);
  border: 2px solid #6ea4ef;
  border-radius: 20px;
  box-shadow: 0 18px 40px rgba(47, 110, 214, 0.14);
  text-align: center;
}

.stepper {
  list-style: none;
  display: flex;
  align-items: flex-start;
  margin: 0 8px 26px;
  padding: 0 0 4px;
  position: relative;
}

.stepper::before {
  content: "";
  position: absolute;
  top: 13px;
  left: 16.66%;
  right: 16.66%;
  height: 3px;
  background: #d7dbe2;
  border-radius: 99px;
}

.stepper li {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.step-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #c8ced6;
  box-shadow: 0 0 0 5px var(--quiz-bg);
}

.stepper li.is-active .step-dot,
.stepper li.is-done .step-dot {
  background: #2f6fe0;
}

.stepper li.is-active .step-dot {
  box-shadow: 0 0 0 7px #c9ddfb;
}

.step-label {
  color: #8e97a3;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.stepper li.is-active .step-label {
  color: #1c2430;
  font-weight: 800;
}

.stepper li.is-done .step-label {
  color: #3d4652;
  font-weight: 700;
}

.q {
  max-width: 18em;
  margin: 0 auto 10px;
  color: var(--ink);
  font-size: 1.42rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.28;
}

.hint {
  max-width: 26em;
  margin: 0 auto 22px;
  color: #5c6b7c;
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.45;
}

.slider-block { margin: 4px 6px 6px; }

.slider-value {
  margin: 2px 0 20px;
  text-align: center;
  color: var(--ink);
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
}

.slider-block input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  margin: 8px 0 0;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--blue) var(--fill, 25%), #fff var(--fill, 25%));
  cursor: pointer;
}

.slider-block input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--blue);
  box-shadow: 0 2px 8px rgba(47, 110, 214, 0.35);
}

.slider-block input[type="range"]::-moz-range-thumb {
  width: 28px;
  height: 28px;
  border: 3px solid var(--blue);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(47, 110, 214, 0.35);
}

.slider-scale {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.choice-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 6px;
}

.choice,
.btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  color: #fff;
  background: var(--blue);
  border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 8px 16px rgba(47, 110, 214, 0.16);
  transition: background 0.15s ease, transform 0.15s ease;
}

.choice:hover,
.btn:hover { background: var(--blue-press); }

.choice:active,
.btn:active { transform: translateY(1px); }

.choice:focus-visible,
.btn:focus-visible,
.grad-btn:focus-visible,
.text-btn:focus-visible,
input:focus-visible {
  outline: 3px solid #9cc2ff;
  outline-offset: 2px;
}

.choice {
  min-height: 104px;
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  text-align: center;
}

.choice-title {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.choice-sub {
  font-size: 12px;
  font-weight: 600;
  opacity: 0.9;
}

.choice-stack .choice {
  min-height: 58px;
  flex-direction: row;
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.quiz .choice {
  color: #1a2740;
  background: #fff;
  border: 1.5px solid #c9d8ec;
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(36, 74, 140, 0.04);
}

.quiz .choice:hover {
  color: #184a96;
  background: #fff;
  border-color: #3b7ee8;
  box-shadow: 0 8px 18px rgba(47, 110, 214, 0.12);
  transform: translateY(-1px);
}

.quiz .choice:active {
  transform: translateY(0);
  background: #f4f8ff;
}

.quiz .btn {
  margin-top: 22px;
  border-radius: 14px;
  box-shadow: 0 10px 20px rgba(47, 110, 214, 0.22);
}

.warning {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: 14px 2px 2px;
  color: var(--red);
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.35;
}

.warning i {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  margin-top: 1px;
  border-radius: 3px;
  background: var(--amber);
  box-shadow: inset 0 0 0 1.5px rgba(160, 100, 0, 0.25);
  position: relative;
}

.warning i::before {
  content: "!";
  position: absolute;
  inset: 0;
  color: #7a4b00;
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  line-height: 16px;
}

.fine {
  margin: 10px 0 0;
  color: #7d8da1;
  font-size: 12.5px;
  text-align: center;
  font-weight: 600;
}

.text-btn {
  display: inline-block;
  margin-top: 12px;
  padding: 0;
  border: 0;
  background: none;
  color: #5d7ea8;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.byline {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
  padding: 4px 0 18px;
  border-bottom: 1px solid #e3e8ef;
}

.avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 18%;
  flex: 0 0 auto;
  background: #e7edf4;
}

.byline strong {
  display: block;
  color: #1c2430;
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.byline span {
  display: block;
  margin-top: 1px;
  color: #8b95a3;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.3;
}

.story {
  padding-top: 22px;
  color: #2a3340;
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.6;
}

.story p { margin: 0 0 1.15em; }

.story h2,
.story h3 {
  margin: 8px 0 10px;
  color: var(--ink);
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.story h2 { font-size: 1.35rem; }

.story .news-hed {
  margin: 28px 0 16px;
  color: #14171c;
  font-family: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.story h3 { font-size: 1.05rem; margin-top: 0; }

.programs {
  display: grid;
  gap: 14px;
  margin: 8px 0 20px;
}

.programs section {
  padding: 14px 14px 2px;
  background: #f7f9fb;
  border-radius: 14px;
}

.callout {
  margin: 22px 0 26px;
  padding: 22px 22px 18px 20px;
  background: #e7f1fc;
  border-radius: 16px;
  border-left: 5px solid #3b7ee8;
}

.callout p {
  margin: 0 0 14px;
  color: #1e4b86;
  font-family: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 1.28rem;
  line-height: 1.45;
}

.callout footer {
  color: #2f6fe0;
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.photo {
  margin: 8px 0 20px;
}

.photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
}

.photo figcaption {
  margin-top: 8px;
  color: #8b97a6;
  font-family: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  font-size: 0.82rem;
  font-style: italic;
  font-weight: 400;
  line-height: 1.4;
}

.end-cta {
  margin: 28px 0 12px;
  padding: 22px 16px 16px;
  background: #f3f8fd;
  border: 1px solid #e3eef8;
  border-radius: 18px;
  text-align: center;
}

.end-cta .end-kicker {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  row-gap: 4px;
  max-width: none;
  margin: 0 0 14px;
  color: #2f6fe0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.35;
  text-transform: uppercase;
}

.end-cta .end-kicker span {
  white-space: nowrap;
}

.end-cta .end-kicker span:not(:last-child)::after {
  content: "·";
  margin: 0 0.45em;
}

.end-cta h2 {
  margin: 0 0 8px;
  color: #1a1c20;
  font-size: 1.65rem;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.end-cta p {
  max-width: 18em;
  margin: 0 auto 16px;
  color: #5c6772;
  font-size: 1rem;
  line-height: 1.45;
}

.end-cta .btn {
  width: 100%;
  min-height: 52px;
  border-radius: 12px;
  font-size: 1.05rem;
  box-shadow: none;
}

.btn {
  min-height: 54px;
  padding: 15px 18px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.01em;
  border-radius: 14px;
}

.btn-block { width: 100%; }

.site-footer {
  margin-top: 88px;
  padding: 32px 0 48px;
  border-top: 1px solid #e4eaf1;
  background: #f4f7fb;
  color: #7d8794;
  font-size: 12.5px;
  line-height: 1.65;
}

.site-footer p { margin: 0 0 10px; }

.footer-links {
  display: flex;
  gap: 16px;
  margin: 8px 0 12px;
}

.site-footer summary {
  color: #5d6b7a;
  font-weight: 700;
  cursor: pointer;
}

.site-footer details p {
  margin-top: 6px;
  max-width: 36em;
}

.copy { font-weight: 600; }

.interstitial p.lead {
  margin: 0 0 16px;
  color: var(--body);
  font-size: 0.98rem;
  font-weight: 500;
}

.loader {
  max-width: 460px;
  margin: 4px auto 0;
  padding: 8px 4px 2px;
  text-align: left;
}

@keyframes spin { to { transform: rotate(360deg); } }

.load-meter {
  display: flex;
  align-items: center;
  gap: 12px;
}

.load-track {
  flex: 1;
  height: 6px;
  background: #fff;
  border-radius: 99px;
  overflow: hidden;
}

.load-track > span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: #2f6fe0;
  transition: width 0.12s linear;
}

#load-pct {
  flex: 0 0 auto;
  min-width: 3ch;
  color: #2f6fe0;
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.load-steps {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.load-steps li {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 24px;
  color: #9aa6b4;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.load-steps li.is-active {
  color: #1a1c20;
}

.load-steps li.is-done {
  color: #3d4652;
}

.load-mark {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #d3dce8;
  box-sizing: border-box;
  display: grid;
  place-items: center;
}

.load-steps li.is-active .load-mark {
  border-color: #d5e3f6;
  border-top-color: #2f6fe0;
  animation: spin 0.7s linear infinite;
}

.load-steps li.is-done .load-mark {
  background: #2f6fe0;
  border-color: #2f6fe0;
  animation: none;
}

.load-steps li.is-done .load-mark::after {
  content: "";
  width: 4px;
  height: 8px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) translate(-0.5px, -1px);
}

.results {
  margin: 8px auto 0;
  max-width: 640px;
  padding: 36px 22px 26px;
  text-align: center;
  background: #fff;
  border: 1px solid #d7e3f2;
  border-radius: 20px;
  box-shadow: 0 18px 40px rgba(36, 74, 140, 0.08);
}

.seal {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #e8f1ff;
  color: #2f6fe0;
  margin: 0 auto 14px;
}

.kicker {
  margin: 0 0 8px;
  color: #2f6fe0;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.results h2 {
  max-width: 14em;
  margin: 0 auto 20px;
  color: var(--ink);
  font-size: 2rem;
  letter-spacing: -0.04em;
  line-height: 1.12;
}

.call-card {
  width: min(100%, 420px);
  margin: 0 auto 14px;
  padding: 22px 18px 18px;
  background: #e7f2ff;
  border: 2px solid #6ea4ef;
  border-radius: 18px;
  box-shadow: 0 14px 30px rgba(47, 110, 214, 0.12);
  text-align: center;
}

.call-card-label {
  margin: 0 0 10px;
  color: #2f6fe0;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  line-height: 1.35;
  text-transform: uppercase;
}

.call-card-phone {
  display: block;
  margin: 0 0 14px;
  color: #14171c;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  text-decoration: none;
}

.call-card-phone:hover { color: #2f6fe0; }

.call-card-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 58px;
  padding: 14px 18px;
  border-radius: 14px;
  color: #fff;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  background: var(--blue);
  box-shadow: 0 10px 20px rgba(47, 110, 214, 0.22);
}

.call-card-btn:hover { background: var(--blue-press); }

.call-card-btn svg { flex: 0 0 auto; }

.call-card-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 8px;
  margin: 14px 0 0;
  color: #5c6b7c;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.35;
}

.call-card-status strong {
  color: #1a8f4a;
  font-weight: 700;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18);
}

.call-card-hours::before {
  content: "·";
  margin-right: 8px;
  color: #9aa6b4;
}

.urgency {
  margin: 0 auto 22px;
  max-width: 28em;
  color: #b42318;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.4;
}

.checks {
  list-style: none;
  margin: 0;
  padding: 18px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
  background: #f7faff;
  border-radius: 14px;
}

.checks li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  align-items: start;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
}

.checks li small {
  display: block;
  margin-top: 3px;
  color: #66707c;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.45;
}

.dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  display: grid;
  place-items: center;
}

.callback {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.callback label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.callback input {
  height: 48px;
  border: 1.5px solid #d5deea;
  border-radius: 10px;
  padding: 0 12px;
  font-size: 16px;
  color: var(--ink);
  background: #fff;
}

.form-error {
  margin: 0;
  color: var(--red);
  font-size: 13px;
  font-weight: 700;
}

.success {
  margin-top: 12px;
  padding: 14px;
  border-radius: 12px;
  background: #eefbf4;
  color: #14643d;
  font-weight: 600;
  font-size: 0.95rem;
}

body.show-results .hero,
body.show-results .byline,
body.show-results .story,
body.show-results .site-footer {
  display: none;
}

body.show-results .layout {
  display: block;
  width: min(760px, calc(100% - 40px));
  padding-top: 28px;
}

body.show-results .quiz {
  position: static;
  margin: 0 0 12px;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  padding: 6px 4px 10px;
}

@media (min-width: 800px) {
  h1 {
    font-size: 2.65rem;
  }

  .dek {
    font-size: 1.12rem;
  }

  .layout {
    padding-top: 36px;
    padding-bottom: 56px;
  }

  .quiz {
    margin: 32px 0 18px;
    padding: 32px 36px 28px;
  }

  .q { font-size: 1.7rem; }

  .step-label { font-size: 16px; }

  .story {
    font-size: 1.125rem;
  }

  .story h2 { font-size: 1.5rem; }

  .story .news-hed { font-size: 2.15rem; }

  .programs {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .end-cta {
    padding: 32px 28px 26px;
  }

  .end-cta .end-kicker { font-size: 0.82rem; }

  .end-cta h2 { font-size: 2rem; }

  .end-cta .btn {
    min-height: 58px;
    font-size: 1.15rem;
  }

  .site-footer {
    margin-top: 120px;
    padding-top: 36px;
  }

  .results {
    padding: 44px 40px 32px;
  }

  .results h2 { font-size: 2.35rem; }

  .call-card {
    padding: 26px 24px 20px;
  }

  .call-card-phone { font-size: 2.35rem; }

  body.show-results .checks {
    gap: 18px;
    padding: 20px 22px 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .spinner,
  .load-steps li.is-active .load-mark { animation: none; }
  .choice, .btn, .load-track > span { transition: none; }
}
