.self-check-hero {
  background:
    linear-gradient(135deg, rgba(227, 235, 222, .72), rgba(251, 247, 239, .96) 48%, rgba(243, 231, 215, .78)),
    var(--cream);
  border-bottom: 1px solid rgba(38, 49, 38, .08);
}

.self-check-hero-copy {
  align-items: start;
}

.self-check-hero-copy h1 {
  max-width: none;
  font-size: 3.8rem;
  line-height: 1.05;
}

.self-check-hero-copy .lead,
.self-check-hero .lead {
  max-width: none;
}

.self-check-section-head {
  display: block;
}

.self-check-section-head h2,
.self-check-start-panel h2,
.wizard-top h2 {
  max-width: none;
  line-height: 1.12;
}

.self-check-section-head h2 {
  font-size: 2.35rem;
}

.self-check-section-head > div,
.self-check-section-head p,
.self-check-start-panel .stack,
.self-check-start-panel p,
.wizard-top > div,
.wizard-top p {
  max-width: none;
}

.self-check-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
  gap: 24px;
  align-items: start;
}

.self-check-alert {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, .78);
  padding: 24px;
}

.self-check-alert h2 {
  font-size: 2.35rem;
  line-height: 1.12;
  max-width: none;
}

.self-check-alert p {
  max-width: none;
}

.self-check-alert p + p {
  margin-top: 10px;
}

.self-check-alert-mark {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 999px;
  background: #fff3ed;
  color: #a65347;
  font-weight: 900;
}

.self-check-notice,
.self-check-side,
.self-check-shell,
.methodology-card {
  background: var(--white);
}

.self-check-notice,
.self-check-side {
  display: grid;
  gap: 18px;
}

.soft-note,
.urgent-note,
.privacy-note,
.result-card,
.pattern-card,
.next-card,
.meaning-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  background: rgba(251, 247, 239, .7);
}

.soft-note strong,
.urgent-note strong,
.privacy-note strong {
  display: block;
  margin-bottom: 6px;
}

.urgent-note {
  border-left: 4px solid #a65347;
  background: #fff7f3;
}

.urgent-note strong {
  color: #81382f;
}

.self-check-shell {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
}

.self-check-start-panel {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}

.self-check-start-panel .stack {
  flex: 1 1 auto;
}

.self-check-wizard {
  display: grid;
  gap: 24px;
}

.wizard-top {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: start;
}

.step-kicker {
  color: var(--clay-dark);
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0;
  font-size: .82rem;
}

.btn-small {
  min-height: 40px;
  padding: .58rem .88rem;
}

.progress-wrap {
  display: grid;
  gap: 8px;
}

.progress-track {
  width: 100%;
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(113, 134, 106, .16);
  border: 1px solid rgba(113, 134, 106, .2);
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--sage), var(--sage-dark));
  transition: width .24s ease;
}

.question-stack {
  display: grid;
  gap: 18px;
}

.question-card {
  min-width: 0;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, .9);
  padding: 18px;
}

.question-card legend {
  width: 100%;
  padding: 0 0 14px;
  color: var(--ink);
  font-weight: 850;
}

.option-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.option-grid.yes-no {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.option-card {
  position: relative;
  display: grid;
  gap: 4px;
  min-height: 72px;
  align-content: center;
  justify-items: center;
  padding: 12px 8px;
  border: 1px solid rgba(38, 49, 38, .16);
  border-radius: var(--radius);
  background: #fffdfa;
  color: var(--muted);
  text-align: center;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, transform .18s ease, box-shadow .18s ease;
}

.option-card:hover {
  border-color: rgba(113, 134, 106, .55);
  transform: translateY(-1px);
}

.option-card input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.option-card:focus-within {
  outline: 3px solid rgba(113, 134, 106, .35);
  outline-offset: 3px;
}

.option-card:has(input:checked) {
  border-color: var(--sage-dark);
  background: var(--sage-soft);
  color: var(--sage-dark);
  box-shadow: 0 12px 22px rgba(63, 85, 63, .12);
}

.option-value {
  display: inline-grid;
  place-items: center;
  min-width: 30px;
  min-height: 30px;
  border-radius: 999px;
  background: rgba(113, 134, 106, .12);
  color: var(--sage-dark);
  font-weight: 900;
}

.option-label {
  font-size: .9rem;
  font-weight: 800;
  line-height: 1.25;
}

.step-error {
  min-height: 1.5rem;
  color: #81382f;
  font-weight: 850;
}

.wizard-actions,
.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.self-check-results {
  animation: resultReveal .32s ease both;
}

.result-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
  gap: 18px;
  margin-top: 22px;
}

.result-card,
.pattern-card,
.next-card,
.meaning-card {
  display: grid;
  gap: 12px;
}

.signal-badge {
  width: fit-content;
  border-radius: 999px;
  padding: .38rem .7rem;
  background: var(--sage-soft);
  color: var(--sage-dark);
  font-size: .82rem;
  font-weight: 900;
}

.signal-badge.signal-urgent {
  background: #fff0eb;
  color: #81382f;
}

.signal-badge.signal-elevated {
  background: rgba(189, 118, 91, .16);
  color: var(--clay-dark);
}

.pattern-list {
  display: grid;
  gap: 12px;
}

.pattern-score {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-weight: 800;
  font-size: .92rem;
}

.pattern-meter {
  flex: 1;
  min-width: 80px;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(113, 134, 106, .16);
}

.pattern-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--sage);
}

.copy-status {
  min-height: 1.5rem;
  color: var(--sage-dark);
  font-weight: 850;
}

.resource-grid .card {
  display: grid;
  gap: 12px;
}

.resource-grid .read-more,
.source-list a {
  color: var(--sage-dark);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.methodology-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
}

.methodology-card summary {
  color: var(--ink);
  cursor: pointer;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  font-weight: 650;
}

.methodology-card summary:focus-visible {
  outline: 3px solid rgba(113, 134, 106, .35);
  outline-offset: 5px;
  border-radius: var(--radius);
}

.methodology-card .stack {
  margin-top: 18px;
}

.source-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

@media (prefers-reduced-motion: reduce) {
  .self-check-results,
  .progress-track span,
  .option-card,
  .btn {
    animation: none;
    transition: none;
  }
}

@media (max-width: 980px) {
  .self-check-layout,
  .result-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 760px) {
  .self-check-hero-copy h1 {
    font-size: 2.25rem;
    line-height: 1.08;
  }

  .self-check-alert h2,
  .self-check-section-head h2,
  .self-check-start-panel h2,
  .wizard-top h2 {
    font-size: 2rem;
    line-height: 1.14;
  }

  .self-check-shell {
    padding: 20px;
  }

  .self-check-start-panel,
  .self-check-alert,
  .wizard-top {
    display: grid;
  }

  .self-check-alert {
    grid-template-columns: 1fr;
  }

  .option-grid,
  .option-grid.yes-no {
    grid-template-columns: 1fr;
  }

  .option-card {
    min-height: 58px;
    grid-template-columns: auto minmax(0, 1fr);
    justify-items: start;
    text-align: left;
    padding-inline: 14px;
  }

  .wizard-actions .btn,
  .result-actions .btn {
    width: 100%;
  }
}
