@font-face {
  font-family: "Nunito Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/nunito-sans-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Nunito Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/nunito-sans-latin-600-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Nunito Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/nunito-sans-latin-700-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/fraunces/fraunces-latin-700-normal.woff2") format("woff2");
}

:root {
  --ink: #2b2a28;
  --bg: #ffffff;
  --page: #f2f8fc;
  --tint: #e1f0f9;
  --structure: #4f86a8;
  --wash: #cfe6f4;
  --action: #2f6f94;
  --action-text: #ffffff;
  --action-indicator: #ffffff;
  --progress-track: var(--wash);
  --line: var(--structure);
  --surface: var(--tint);
  --surface-strong: var(--action);
  --panel-background: var(--tint);
  --panel-text: var(--ink);
  --panel-accent-text: var(--ink);
  --panel-focus: var(--ink);
  --progress-separator: var(--action);
  --disabled-bg: #e7e5e2;
  --disabled-ink: #4a4845;
  --shadow: 0 20px 60px rgb(43 42 40 / 8%);
  font-family: "Nunito Sans", system-ui, sans-serif;
  color: var(--ink);
  background: var(--page);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--page);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font-size: 16px;
  line-height: 1.55;
}

button,
input {
  font: inherit;
}

.page-decoration {
  position: fixed;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.page-decoration .wash-shape {
  position: absolute;
  display: block;
  fill: var(--wash);
  pointer-events: none;
}

.page-decoration .wash-top-one {
  top: -220px;
  left: -250px;
  width: 420px;
  height: 420px;
}

.page-decoration .wash-top-two {
  top: -100px;
  left: -120px;
  width: 300px;
  height: 300px;
}

.page-decoration .wash-bottom {
  right: -270px;
  bottom: -260px;
  width: 440px;
  height: 440px;
}

@media (min-width: 480px) and (max-width: 899px) {
  .page-decoration .wash-top-one {
    top: -50px;
    left: -104px;
    width: 130px;
    height: 130px;
  }

  .page-decoration .wash-top-two {
    top: 30px;
    left: -58px;
    width: 80px;
    height: 80px;
  }

  .page-decoration .wash-bottom {
    right: -104px;
    bottom: -50px;
    width: 130px;
    height: 130px;
  }
}

@media (max-width: 479px) {
  .page-decoration .wash-top-one {
    top: 60px;
    left: -60px;
    width: 72px;
    height: 72px;
  }

  .page-decoration .wash-top-two {
    top: 70px;
    left: -40px;
    width: 50px;
    height: 50px;
  }

  .page-decoration .wash-bottom {
    right: -62px;
    bottom: 10px;
    width: 78px;
    height: 78px;
  }
}

button,
a,
input,
label {
  -webkit-tap-highlight-color: transparent;
}

a:not(.button) {
  color: var(--ink);
  text-decoration: underline;
}

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
}

.skip-link {
  position: fixed;
  z-index: 10;
  top: 8px;
  left: 8px;
  transform: translateY(-160%);
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--action-text);
  background: var(--action);
}

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

.app-shell {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  align-items: center;
  padding: 28px 16px 36px;
}

#app {
  width: 100%;
  max-width: 760px;
  margin: auto;
}

.landing-page,
.flow-page,
.result-page {
  width: 100%;
}

.landing-page {
  max-width: 720px;
  margin: auto;
}

.brand-logo {
  display: block;
  width: min(100%, 600px);
  max-width: 600px;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
}

.landing-card,
.result-score-card {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 6vw, 52px);
  border: 2px solid var(--structure);
  border-radius: 26px;
  background: var(--tint);
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  line-height: 1.4;
  text-transform: uppercase;
}

.landing-title,
.page-title,
.result-headline {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2rem, 8vw, 3.8rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.05;
  text-wrap: balance;
}

.landing-title,
.flow-page:not(:has(.contact-page)) .page-title,
.result-headline,
.result-percentage,
.result-section-title,
.gap-title,
.detail-heading {
  font-family: "Fraunces", Georgia, serif;
}

.landing-subhead {
  max-width: 540px;
  margin: 18px 0 0;
  font-size: clamp(1.12rem, 3.5vw, 1.45rem);
  font-weight: 600;
  line-height: 1.35;
}

.landing-intro {
  margin: 16px 0 0;
  font-size: 1.05rem;
}

.benefit-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 25px 0 28px;
  padding: 0;
  list-style: none;
}

.benefit-item {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 9px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  font-weight: 600;
}

.benefit-item::before {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: var(--panel-accent-text);
  content: "";
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 11px 22px;
  border: 2px solid transparent;
  border-radius: 13px;
  cursor: pointer;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition: background-color 120ms ease, border-color 120ms ease, transform 120ms ease;
}

.button:hover:not(:disabled) {
  transform: translateY(-1px);
}

.button-primary {
  color: var(--action-text);
  background: var(--action);
}

.button-primary:hover:not(:disabled) {
  border-color: var(--ink);
  color: var(--action-text);
  background: var(--action);
}

.button-secondary {
  border-color: var(--line);
  color: var(--ink);
  background: var(--bg);
}

.button-secondary:hover:not(:disabled) {
  border-color: var(--ink);
  background: var(--tint);
}

.button:disabled {
  border-color: var(--disabled-ink);
  color: var(--disabled-ink);
  background: var(--disabled-bg);
  cursor: not-allowed;
  transform: none;
}

.button-wide {
  width: 100%;
}

.trust-line {
  margin: 22px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 1rem;
  line-height: inherit;
}

.trust-link {
  position: relative;
  display: inline;
  color: var(--ink);
  text-decoration: underline;
}

.trust-link::after {
  position: absolute;
  top: 50%;
  left: 0;
  width: 44px;
  height: 44px;
  content: "";
  transform: translateY(-50%);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.footer-copy {
  max-width: 640px;
  margin: 25px auto 0;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.45;
  text-align: center;
}

.copyright-footer {
  margin: 24px auto 0;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
}

.flow-page {
  max-width: 700px;
  margin: auto;
}

.progress-block {
  margin: 0 0 35px;
}

.progress-heading {
  display: flex;
  min-height: 36px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 9px;
}

.progress-label {
  font-size: 1rem;
  font-weight: 700;
}

.progress-count {
  flex: 0 0 auto;
  font-size: 1rem;
  font-weight: 700;
}

.progress-track {
  height: 14px;
  overflow: hidden;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--progress-track);
}

.progress-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--action);
  transition: width 160ms ease;
}

.section-heading {
  margin: 0 0 24px;
}

.section-heading .eyebrow {
  margin-bottom: 8px;
}

.page-title {
  font-size: clamp(2rem, 7vw, 3rem);
}

.page-instructions {
  margin: 12px 0 0;
}

.statement-list,
.qualifying-form {
  display: grid;
  gap: 14px;
}

.statement-list {
  gap: 10px;
}

.statement-group {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.statement-card,
.qualifying-group {
  min-width: 0;
  margin: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--bg);
}

.statement-text {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
}

.question-label {
  width: 100%;
  margin: 0 0 15px;
  padding: 0;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
}

.answer-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.answer-option,
.choice-option {
  position: relative;
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  cursor: pointer;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
}

.answer-option:hover,
.choice-option:hover {
  border-color: var(--structure);
}

.answer-option.is-selected,
.choice-option.is-selected {
  border: 2px solid var(--ink);
  color: var(--action-text);
  background: var(--surface-strong);
}

.answer-option input,
.choice-option input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  margin: 0;
  accent-color: var(--action-indicator);
}

.answer-label {
  overflow-wrap: anywhere;
}

.choice-option {
  justify-content: flex-start;
  padding-inline: 12px;
  text-align: left;
}

.qualifying-group {
  padding: 17px;
}

.qualifying-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.flow-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
}

.flow-actions .button {
  min-width: 116px;
}

.flow-actions .button-wide {
  width: auto;
}

.contact-page {
  max-width: 550px;
  margin: auto;
}

.contact-page .section-heading {
  margin-bottom: 28px;
}

.contact-form {
  display: grid;
  gap: 19px;
}

.form-field {
  display: grid;
  gap: 7px;
}

.field-label {
  font-weight: 700;
}

.text-input {
  width: 100%;
  min-height: 50px;
  padding: 11px 14px;
  border: 1px solid var(--structure);
  border-radius: 12px;
  color: var(--ink);
  background: var(--bg);
}

.text-input::placeholder {
  color: var(--ink);
  opacity: 1;
}

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.consent-row > input {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  margin: 3px 0 0;
  accent-color: var(--ink);
}

.consent-copy {
  display: grid;
  gap: 7px;
  line-height: 1.45;
}

.consent-label {
  cursor: pointer;
}

.privacy-link {
  width: fit-content;
  min-height: 32px;
  font-weight: 700;
}

.helper-copy {
  margin: -8px 0 0;
  font-size: 1rem;
}

.form-message {
  min-height: 0;
  margin: 0;
  color: var(--ink);
  font-weight: 700;
}

.form-message:not(:empty) {
  padding: 10px 12px;
  border-left: 4px solid var(--structure);
  background: var(--surface);
}

.contact-actions {
  margin-top: 0;
}

.honeypot {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.result-page {
  max-width: 700px;
  margin: auto;
}

.result-score-card {
  padding: clamp(28px, 6vw, 46px);
  text-align: center;
}

.result-score-card .eyebrow {
  margin-bottom: 16px;
}

.result-headline {
  font-size: clamp(2rem, 7vw, 3.4rem);
}

.result-percentage {
  margin: 14px 0 0;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
}

.percentage-caption {
  margin: 8px 0 0;
  font-size: 1rem;
}

.encouragement {
  margin: 16px 0 0;
  font-weight: 700;
}

.result-section {
  margin-top: 28px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--bg);
}

.result-offer .result-body {
  margin-bottom: 18px;
}

.result-section-title {
  margin: 0 0 10px;
  font-size: clamp(1.4rem, 4.5vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.result-body {
  margin: 0;
  font-size: 1.02rem;
}

.gap-card {
  border-color: var(--structure);
  background: var(--surface);
}

.gap-title {
  margin: 0 0 18px;
  font-size: clamp(1.55rem, 5vw, 2.1rem);
  line-height: 1.2;
  background: var(--wash);
}

.detail-heading {
  margin: 17px 0 5px;
  font-size: 1rem;
  font-weight: 700;
}

.next-step-card {
  margin-top: 28px;
  padding: 24px;
  border-radius: 20px;
  background: var(--tint);
  border: 2px solid var(--structure);
}

.next-step-copy {
  margin: 0 0 18px;
}

.next-step-card a.next-step-training-link {
  display: flex;
  width: 100%;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  margin-top: 14px;
  padding: 6px;
  color: var(--action);
  text-align: center;
  text-decoration: underline;
}

.client-placeholder {
  display: block;
  width: fit-content;
  max-width: 100%;
  padding: 4px 8px;
  border: 2px dashed var(--structure);
  border-radius: 6px;
  background: var(--tint);
  overflow-wrap: anywhere;
}

.client-placeholder.button {
  display: inline-flex;
  border-style: dashed;
}

@media (min-width: 600px) {
  .app-shell {
    padding: 40px 24px 48px;
  }

  .statement-group {
    padding: 22px;
  }

  .answer-options {
    max-width: 490px;
  }

  .answer-option {
    min-height: 52px;
  }
}

@media (max-width: 420px) {
  .app-shell {
    padding: 22px 16px 30px;
  }

  .landing-card {
    padding: 28px 22px;
    border-radius: 26px;
  }

  .benefit-list {
    gap: 8px;
  }

  .benefit-item {
    padding-inline: 11px;
    font-size: 1rem;
  }

  .statement-card,
  .qualifying-group {
    padding: 15px 12px;
  }

  .progress-block {
    margin-bottom: 20px;
  }

  .section-heading {
    margin-bottom: 16px;
  }

  .statement-text {
    margin-bottom: 6px;
    line-height: 1.25;
  }

  .answer-options {
    gap: 6px;
  }

  .answer-option {
    min-height: 44px;
    flex-direction: row;
    gap: 4px;
    padding: 6px 3px;
    font-size: 0.875rem;
  }

  .answer-option input {
    width: 17px;
    height: 17px;
  }

  .qualifying-options {
    grid-template-columns: 1fr;
  }

  .flow-actions .button {
    min-width: 0;
    flex: 1;
  }
}

/* Safe Hands visual system: theme structure, soft tint, ink and accent. */
a:not(.button) {
  color: var(--ink);
  text-decoration: underline;
}

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
}

.landing-page,
.flow-page,
.result-page {
  color: var(--ink);
}

.flow-page,
.result-page {
  background: var(--page);
}

/* The landing logo stays on a separate white strip; the hero runs edge to edge. */
.app-shell:has(.landing-page) {
  width: 100%;
  align-items: stretch;
  padding: 0;
  background: var(--tint);
}

body:has(.landing-page) .page-decoration {
  display: none;
}

.app-shell:has(.landing-page) #app {
  max-width: none;
  margin: 0;
}

.app-shell:has(.result-page) {
  padding-top: 0;
}

.logo-strip {
  position: relative;
  z-index: 1;
  display: flex;
  width: 100vw;
  justify-content: center;
  margin-left: calc(50% - 50vw);
  padding: 28px 16px 16px;
  background: var(--bg);
}

.landing-page {
  max-width: none;
  background: var(--tint);
}

@media (max-width: 479px) {
  .brand-logo {
    width: min(100%, 240px);
    max-width: 240px;
  }

  .logo-strip {
    padding-top: 16px;
    padding-bottom: 16px;
  }
}

.landing-card {
  width: 100%;
  padding: 42px 18px 2px;
  border: 0;
  border-radius: 0;
  outline: none;
  color: var(--ink);
  background: var(--tint);
  box-shadow: none;
}

.landing-card > :not(.trust-line) {
  width: min(100%, 640px);
  max-width: 640px;
  margin-inline: auto;
}

.landing-card > .button-wide {
  display: flex;
}

.landing-title,
.landing-subhead {
  color: var(--ink);
}

.landing-intro {
  color: var(--ink);
  font-weight: 700;
}

.landing-intro::after,
.result-percentage::after {
  display: block;
  width: 64px;
  height: 6px;
  margin-top: 12px;
  border: 1px solid var(--action);
  background: var(--action);
  content: "";
}

.result-percentage::after {
  margin-inline: auto;
}

.benefit-list {
  gap: 10px;
  margin: 26px 0 28px;
}

.benefit-item {
  min-height: 44px;
  border: 2px solid var(--ink);
  color: var(--ink);
  background: transparent;
}

.benefit-item::before {
  border: 1px solid var(--action);
  background: var(--action);
}

.button-primary {
  border-color: var(--action);
  color: var(--action-text);
  background: var(--action);
}

.button-secondary {
  border-color: var(--ink);
  color: var(--ink);
  background: var(--bg);
}

.button-secondary:hover:not(:disabled) {
  border-color: var(--ink);
  color: var(--ink);
  background: var(--tint);
}

.button-primary:hover:not(:disabled) {
  border-color: var(--action);
  color: var(--action-text);
  background: var(--action);
}

.landing-card .button-wide {
  min-height: 54px;
}

.trust-line {
  margin: 30px -16px 0;
  padding: 18px max(16px, calc(50% - 304px));
  padding-top: 19px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  background: var(--bg);
}

.trust-link,
.privacy-link {
  color: var(--ink);
}

.landing-page > .copyright-footer {
  margin: 24px auto 0;
  padding: 0 16px 24px;
  color: var(--ink);
  background: var(--tint);
}

/* Assessment progress and answer cards. */
.progress-block {
  margin-bottom: 28px;
}

.progress-heading {
  margin-bottom: 9px;
}

.progress-track {
  height: 12px;
  border-color: var(--structure);
  background: var(--progress-track);
}

.progress-fill {
  border: 0;
  border-color: var(--action);
  background: var(--action);
}

.section-heading .eyebrow {
  color: var(--ink);
  font-size: 1.2rem;
}

.statement-list {
  gap: 12px;
}

.statement-group {
  padding: 0;
}

.statement-card,
.qualifying-group {
  border: 1px solid var(--structure);
  background: var(--bg);
}

.statement-group:nth-child(even) .statement-card,
.qualifying-group:nth-child(even) {
  background: var(--tint);
}

.answer-option,
.choice-option {
  border: 2px solid var(--structure);
  color: var(--ink);
  background: var(--bg);
}

.answer-option:hover,
.choice-option:hover {
  border-color: var(--structure);
}

.answer-option.is-selected,
.choice-option.is-selected {
  border: 2px solid var(--action);
  color: var(--action-text);
  background: var(--action);
}

.answer-option.is-selected::after,
.choice-option.is-selected::after {
  position: absolute;
  top: 1px;
  right: 5px;
  color: var(--action-text);
  content: "✓";
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1;
}

.answer-option input,
.choice-option input {
  accent-color: var(--action-indicator);
}

.answer-option:has(input:focus-visible),
.choice-option:has(input:focus-visible) {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
}

.answer-option input:focus-visible,
.choice-option input:focus-visible {
  outline: none;
}

.button:disabled {
  border-color: var(--disabled-bg);
  color: var(--disabled-ink);
  background: var(--disabled-bg);
}

.flow-actions .button-secondary,
.flow-actions .button-secondary:hover:not(:disabled) {
  border: 2px solid var(--ink);
  color: var(--ink);
  background: var(--bg);
}

.flow-actions .button-primary:disabled {
  border-color: var(--disabled-ink);
  color: var(--disabled-ink);
  background: var(--disabled-bg);
}

/* Contact form surfaces and generously sized consent target. */
.contact-page {
  padding: 24px;
  border: 1px solid var(--structure);
  border-radius: 20px;
  background: var(--bg);
}

.text-input {
  border: 2px solid var(--ink);
  background: var(--bg);
}

.consent-row {
  min-height: 44px;
  align-items: flex-start;
  padding: 10px 12px;
  background: var(--tint);
}

.consent-row > input {
  width: 24px;
  height: 24px;
  flex-basis: 24px;
  margin-top: 0;
}

.consent-label {
  display: flex;
  min-height: 44px;
  align-items: flex-start;
}

.privacy-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
}

.form-message:not(:empty) {
  color: var(--ink);
  background: var(--tint);
}

/* Results use a tinted panel with ink text, then the accent next step. */
.result-score-card {
  border-color: var(--structure);
  color: var(--ink);
  background: var(--tint);
}

.result-score-card .eyebrow,
.result-score-card .result-headline,
.result-score-card .percentage-caption,
.result-score-card .encouragement {
  color: var(--ink);
}

.result-percentage {
  color: var(--ink);
  font-size: clamp(2.5rem, 12vw, 4.5rem);
  line-height: 1.05;
}

.result-section {
  border: 1px solid var(--structure);
  background: var(--bg);
}

.gap-card {
  overflow: hidden;
  padding-top: 0;
  border-color: var(--structure);
  background: var(--tint);
}

.gap-card .eyebrow {
  margin: 18px 24px 8px;
  color: var(--ink);
}

.gap-title {
  margin: 0 -24px 18px;
  padding: 14px 24px;
  border: 2px solid var(--ink);
  color: var(--ink);
  background: var(--wash);
}

.gap-card > .gap-title:first-child {
  margin-top: 0;
  padding-top: 18px;
}

.next-step-card {
  padding: 26px;
  border: 2px solid var(--structure);
  color: var(--ink);
  background: var(--tint);
}

.next-step-card .result-section-title,
.next-step-card .next-step-copy {
  color: var(--ink);
}

.next-step-card .button {
  border-color: var(--action);
  color: #ffffff;
  background: var(--action);
}

.next-step-card .button:hover:not(:disabled) {
  border-color: var(--action);
  color: #ffffff;
  background: var(--action);
}

.next-step-card .button:disabled {
  border-color: var(--disabled-ink);
  color: var(--disabled-ink);
  background: var(--disabled-bg);
}

.footer-copy,
.copyright-footer {
  color: var(--ink);
  background: var(--page);
}

/* Focus remains legible against the surface surrounding each control. */
.landing-card :focus-visible,
.result-score-card :focus-visible {
  outline-color: var(--panel-focus);
}

.next-step-card .button:focus-visible {
  outline-color: #ffffff;
}

.landing-card .button:focus-visible,
.trust-link:focus-visible {
  outline-color: var(--ink);
}

.page-title:focus-visible,
.result-headline:focus-visible {
  outline: none;
}

@media (max-width: 420px) {
  .app-shell:not(:has(.landing-page)) {
    padding: 22px 16px 30px;
  }

  .landing-card {
    padding: 32px 18px 2px;
  }

  .statement-card,
  .qualifying-group {
    padding: 15px 12px;
  }

  .answer-option {
    gap: 2px;
    padding-inline: 1px;
  }

  .answer-option input {
    width: 16px;
    height: 16px;
  }

  .consent-row {
    padding-inline: 10px;
  }

  .result-section {
    padding: 20px;
  }

  .gap-card {
    padding-top: 0;
  }

  .gap-card .eyebrow {
    margin-inline: 20px;
  }

  .gap-title {
    margin-inline: -20px;
    padding-inline: 20px;
  }
}

@media (width < 480px) {
  .landing-card {
    padding-right: 18px;
    padding-left: 18px;
  }

  .benefit-list {
    flex-wrap: nowrap;
    gap: 6px;
  }

  .benefit-item {
    min-width: 0;
    flex: 1 1 auto;
    gap: 0;
    padding: 6px 10px;
    border-width: 1.5px;
    font-size: 14px;
    white-space: nowrap;
  }

  .benefit-item::before {
    width: 6px;
    height: 6px;
    flex-basis: 6px;
    margin-right: 5px;
  }

  .flow-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .flow-actions .button {
    width: 100%;
    min-width: 0;
    flex: none;
  }

  .flow-actions .button-primary {
    order: -1;
  }

  .flow-actions .button-wide {
    width: 100%;
  }

  .answer-options {
    grid-template-columns: 1fr;
  }

  .answer-option {
    width: 100%;
    min-height: 44px;
    gap: 8px;
    padding: 9px 32px;
  }

  .answer-label {
    white-space: nowrap;
    overflow-wrap: normal;
  }

  .answer-option.is-selected::after {
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
  }
}

/* Keep every screen's logo strip aligned to the top edge of the viewport. */
.app-shell:has(.flow-page) {
  padding-top: 0;
}

@media (min-width: 480px) {
  .logo-strip {
    padding-top: 24px;
    padding-bottom: 16px;
  }
}

.button-primary,
.button-primary:hover:not(:disabled) {
  border-color: var(--action);
  color: var(--action-text);
  background: var(--action);
}

.skip-link {
  color: var(--action-text);
}

.answer-option.is-selected,
.choice-option.is-selected {
  border-color: var(--action);
  color: var(--action-text);
  background: var(--action);
}

.answer-option.is-selected::after,
.choice-option.is-selected::after {
  color: #ffffff;
}

.answer-option.is-selected input,
.choice-option.is-selected input {
  accent-color: #ffffff;
}

.progress-track {
  background: var(--wash);
}

.progress-fill {
  border: 0;
  border-color: var(--action);
  background: var(--action);
}

.result-percentage::after,
.landing-intro::after {
  box-sizing: border-box;
  border: 1px solid var(--action);
  outline: none;
  background: var(--action);
}

.benefit-item::before {
  border-color: var(--action);
  background: var(--action);
}

.gap-title {
  background: var(--wash);
}

.next-step-card {
  border-color: var(--structure);
  background: var(--tint);
}

.next-step-card .button,
.next-step-card .button:hover:not(:disabled) {
  border-color: var(--action);
  color: #ffffff;
  background: var(--action);
}

.button-primary:focus-visible,
.skip-link:focus-visible,
.next-step-card .button:focus-visible,
.answer-option.is-selected:has(input:focus-visible),
.choice-option.is-selected:has(input:focus-visible) {
  outline: none;
  box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px var(--ink);
}

@media (width < 400px) {
  .benefit-item::before {
    display: none;
    margin-right: 0;
  }
}

@media (min-width: 375px) and (max-width: 399px) {
  .benefit-item::before {
    display: block;
    margin-right: 5px;
  }
}
