  :root {
    --paper: #EEF1F4;
    --surface: #FFFFFF;
    --ink: #0F1E2B;
    --ink-soft: #3B4A57;
    --signal: #1D5B7E;
    --signal-dark: #164a68;
    --border: #C7D0D8;
    --error: #A3271F;
    --focus: #1D5B7E;
    --dq: #6B2C25;
    --success: #2F6F4E;
    --success-tint: #E7F1EC;
    --radius: 6px;
  }

  * { box-sizing: border-box; }

  html, body {
    margin: 0;
    padding: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 17px;
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
  }

  h1, h2, h3 {
    font-family: "Newsreader", Georgia, serif;
    font-weight: 600;
    color: var(--ink);
    margin: 0 0 8px 0;
  }

  a { color: var(--signal); }

  .skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--surface);
    color: var(--ink);
    padding: 12px 16px;
    z-index: 100;
    border: 2px solid var(--signal);
  }
  .skip-link:focus {
    left: 8px;
    top: 8px;
  }

  /* Visible focus rings everywhere -- do not remove */
  a:focus-visible,
  button:focus-visible,
  input:focus-visible,
  [role="radio"]:focus-visible,
  .answer-card:focus-visible,
  summary:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 2px;
  }

  .app-shell {
    max-width: 640px;
    margin: 0 auto;
    min-height: 100vh;
    background: var(--paper);
    display: flex;
    flex-direction: column;
  }

  header.site-header {
    padding: 16px 20px;
    background: var(--ink);
    display: flex;
    align-items: center;
    gap: 8px;
    position: sticky;
    top: 0;
    z-index: 10;
  }

  .brand-mark {
    flex: none;
    width: 22px;
    height: 22px;
    color: #FFFFFF;
    display: flex;
  }
  .brand-mark svg { width: 100%; height: 100%; }

  .brand-name {
    font-family: "Public Sans", sans-serif;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 0.02em;
    color: #FFFFFF;
  }

  .progress-wrap {
    padding: 16px 20px 0 20px;
  }

  .progress-label {
    font-size: 14px;
    color: var(--ink-soft);
    font-weight: 600;
    margin-bottom: 8px;
  }

  .progress-track {
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    overflow: hidden;
  }

  .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--signal), var(--success));
    transition: width 0.35s ease;
  }

  @media (prefers-reduced-motion: reduce) {
    .progress-fill { transition: none; }
    * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  }

  main {
    flex: 1;
    padding: 24px 20px 40px 20px;
  }

  .step-panel {
    max-width: 100%;
  }

  /* Step entrance animation -- slides/fades in on every render. Disabled
     entirely under prefers-reduced-motion via the media query above. */
  @keyframes step-in {
    from { opacity: 0; transform: translateX(16px); }
    to { opacity: 1; transform: translateX(0); }
  }
  .step-panel > * {
    animation: step-in 0.35s ease;
  }

  /* Brief checkmark draw animation shown on a just-selected answer card. */
  @keyframes check-pop {
    from { transform: scale(0.5); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
  }
  .answer-check {
    display: inline-flex;
    animation: check-pop 0.25s ease;
  }

  .back-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    color: var(--signal);
    font-family: "Public Sans", sans-serif;
    font-size: 15px;
    font-weight: 600;
    padding: 8px 4px;
    margin: 0 0 16px -4px;
    cursor: pointer;
    min-height: 40px;
  }
  .back-button:hover { text-decoration: underline; }
  .back-button[hidden] { display: none; }

  .question-heading {
    font-size: 26px;
    line-height: 1.3;
    margin-bottom: 8px;
  }

  .question-help {
    color: var(--ink-soft);
    font-size: 16px;
    margin-bottom: 24px;
  }

  .options-list {
    list-style: none;
    margin: 0 0 8px 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .answer-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-height: 56px;
    background: #FAFBFC;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    color: var(--ink);
    font-family: "Public Sans", sans-serif;
    font-size: 17px;
    font-weight: 500;
    text-align: left;
    padding: 16px 18px;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
  }

  .answer-card:hover {
    border-color: var(--success);
    background: var(--success-tint);
    box-shadow: 0 2px 8px rgba(47, 111, 78, 0.14);
  }

  .answer-card:active {
    transform: scale(0.99);
  }

  .answer-card.selected {
    border-color: var(--success);
    border-left-width: 5px;
    background: var(--success-tint);
    font-weight: 600;
    transform: scale(1.01);
  }

  .answer-card.dimmed {
    opacity: 0.5;
    cursor: default;
  }

  .answer-check {
    flex: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--success);
    color: #FFFFFF;
  }
  .answer-check svg { width: 100%; height: 100%; }

  /* Qualification banner -- shown at the top of the final contact step,
     once the visitor has cleared every disqualifier question. Positive,
     energetic framing is fine; a claim of settlement/compensation
     likelihood is not (no case review has actually happened yet), so this
     deliberately says "meet our initial screening criteria," not
     "Strong Candidate for a Settlement Payout." See README for the
     reasoning if you're tempted to reword this. */
  .qualify-banner {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: var(--success-tint);
    border: 1px solid #BFE0CE;
    border-radius: var(--radius);
    padding: 18px;
    margin-bottom: 24px;
  }

  .qualify-icon {
    flex: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--success);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: check-pop 0.3s ease;
  }
  .qualify-icon svg { width: 20px; height: 20px; }

  .qualify-eyebrow {
    font-size: 12.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--success);
    margin: 0 0 4px 0;
  }

  .qualify-heading {
    font-family: "Public Sans", sans-serif;
    font-size: 18px;
    font-weight: 800;
    color: var(--ink);
    margin: 0 0 6px 0;
  }

  .qualify-body {
    font-size: 14.5px;
    color: var(--ink-soft);
    line-height: 1.5;
    margin: 0;
  }

  fieldset {
    border: none;
    padding: 0;
    margin: 0 0 20px 0;
  }

  legend {
    padding: 0;
  }

  .field-group {
    margin-bottom: 20px;
  }

  label.field-label {
    display: block;
    font-weight: 600;
    font-size: 15px;
    color: var(--ink);
    margin-bottom: 6px;
  }

  input[type="text"],
  input[type="tel"],
  input[type="email"],
  select {
    width: 100%;
    min-height: 56px;
    font-size: 17px;
    font-family: "Public Sans", sans-serif;
    padding: 14px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--ink);
  }

  input:focus, select:focus {
    border-color: var(--signal);
  }

  .field-error {
    color: var(--error);
    font-size: 14px;
    font-weight: 600;
    margin-top: 6px;
    display: none;
  }

  .field-error.visible { display: block; }

  input.invalid, select.invalid {
    border-color: var(--error);
  }

  /* Kept small and de-emphasized (not hidden/collapsed) directly above the
     submit button -- the full legally-operative text stays visible per
     TCPA "clear and conspicuous" practice, just sized as fine print. */
  .consent-block {
    background: transparent;
    border: none;
    border-top: 1px solid var(--border);
    padding: 14px 0 0 0;
    margin: 20px 0 0 0;
    font-size: 12.5px;
    line-height: 1.5;
    color: #5B6B77; /* ~5.5:1 on white -- lighter than --ink-soft but still AA-compliant at this size */
  }

  .consent-block p { margin: 0; }
  .consent-block a { color: #5B6B77; text-decoration: underline; font-weight: 600; }

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

  .consent-checkbox-row input[type="checkbox"] {
    width: 24px;
    height: 24px;
    min-width: 24px;
    margin-top: 2px;
    accent-color: var(--signal);
  }

  .consent-checkbox-row label {
    font-size: 15px;
    color: var(--ink);
    font-weight: 500;
  }

  .primary-button {
    display: block;
    width: 100%;
    min-height: 56px;
    background: var(--signal);
    color: #FFFFFF;
    border: none;
    border-radius: var(--radius);
    font-family: "Public Sans", sans-serif;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 24px;
  }

  .primary-button:hover { background: var(--signal-dark); }
  .primary-button:disabled {
    background: #9AAAB4;
    cursor: not-allowed;
  }

  /* Landing screen */
  .landing-wrap {
    display: flex;
    flex-direction: column;
    gap: 28px;
  }

  .hero-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 20px;
    box-shadow: 0 1px 3px rgba(15, 30, 43, 0.06);
  }

  .hero-icon-badge {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--success-tint);
    color: var(--signal);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
  }
  .hero-icon-badge svg { width: 28px; height: 28px; }

  .hero-eyebrow {
    display: inline-block;
    background: var(--success-tint);
    color: var(--success);
    font-family: "Public Sans", sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 3px;
    margin-bottom: 16px;
  }

  .landing-heading {
    font-size: 32px;
    line-height: 1.25;
    font-weight: 700;
  }

  .landing-subheading {
    color: var(--ink-soft);
    font-size: 18px;
    line-height: 1.5;
    margin: 14px 0 24px 0;
  }

  .hero-cta-note {
    text-align: center;
    color: var(--ink-soft);
    font-size: 14px;
    margin: 10px 0 0 0;
  }

  /* Trust bar: factual, non-numeric reassurances -- no fabricated stats */
  .trust-bar {
    list-style: none;
    margin: 24px 0 0 0;
    padding: 16px 0 0 0;
    border-top: 1px solid var(--border);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 16px;
  }

  .trust-bar li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
  }

  .trust-check {
    flex: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--success-tint);
    color: var(--success);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    line-height: 1;
    margin-top: 1px;
  }

  .section-heading {
    font-size: 22px;
    line-height: 1.3;
    margin-bottom: 4px;
  }

  /* Tort picker: hub grid of situation cards shown on the landing screen.
     Each card starts that tort's funnel -- see startFunnelForTort(). */
  .picker-intro {
    color: var(--ink-soft);
    font-size: 15px;
    margin: 4px 0 18px 0;
  }

  .tort-picker-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
  }

  @media (min-width: 560px) {
    .tort-picker-grid { grid-template-columns: 1fr 1fr; }
  }

  .tort-card {
    display: block;
    width: 100%;
    height: 100%;
    text-align: left;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    cursor: pointer;
    font-family: "Public Sans", sans-serif;
    color: var(--ink);
    box-shadow: 0 1px 3px rgba(15, 30, 43, 0.05);
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
  }

  .tort-card:hover {
    border-color: var(--signal);
    background: #F5F9FB;
    box-shadow: 0 4px 12px rgba(15, 30, 43, 0.1);
    transform: translateY(-1px);
  }

  .tort-card-stat {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--success);
    margin: 0 0 10px 0;
  }

  .tort-icon-badge {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--success-tint);
    color: var(--signal);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
  }

  .tort-icon-badge svg { width: 22px; height: 22px; }

  .tort-card-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ink-soft);
    background: var(--paper);
    border: 1px solid var(--border);
    border-radius: 3px;
    padding: 3px 8px;
    margin-bottom: 10px;
  }

  .tort-card-title {
    font-weight: 700;
    font-size: 17px;
    margin: 0 0 4px 0;
  }

  .tort-card-teaser {
    font-size: 14px;
    color: var(--ink-soft);
    line-height: 1.5;
    margin: 0 0 12px 0;
  }

  .tort-card-cta {
    font-size: 14px;
    font-weight: 700;
    color: var(--signal);
  }

  .picker-section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 20px;
  }

  .picker-bottom-link {
    background: none;
    border: none;
    color: var(--signal);
    font-family: "Public Sans", sans-serif;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    padding: 12px 0;
  }
  .picker-bottom-link:hover { text-decoration: underline; }

  /* How it works */
  .process-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 20px;
  }

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

  .process-steps li {
    display: flex;
    gap: 14px;
    align-items: flex-start;
  }

  .process-number {
    flex: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--signal);
    color: #FFFFFF;
    font-family: "Public Sans", sans-serif;
    font-weight: 700;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .process-step-title {
    font-weight: 700;
    font-size: 16px;
    color: var(--ink);
    margin: 0 0 2px 0;
  }

  .process-step-body {
    font-size: 15px;
    color: var(--ink-soft);
    margin: 0;
    line-height: 1.5;
  }

  /* About / educational section */
  .about-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 20px;
  }

  .about-panel p {
    color: var(--ink-soft);
    font-size: 16px;
    line-height: 1.6;
    margin: 12px 0 0 0;
  }

  /* Past settlements -- only renders when CONFIG data is populated with
     verified, sourced figures. See CONFIG.landing.priorSettlements. */
  .settlements-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 20px;
  }

  .settlements-intro {
    color: var(--ink-soft);
    font-size: 15px;
    line-height: 1.55;
    margin: 10px 0 18px 0;
  }

  .settlements-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
  }

  .settlements-table th {
    text-align: left;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--ink-soft);
    font-weight: 700;
    padding: 0 8px 8px 0;
    border-bottom: 1px solid var(--border);
  }

  .settlements-table td {
    padding: 10px 8px 10px 0;
    border-bottom: 1px solid var(--border);
    color: var(--ink);
    vertical-align: top;
  }

  .settlements-table td.settlement-amount {
    font-weight: 700;
    white-space: nowrap;
  }

  .settlements-table a {
    font-size: 13px;
  }

  .settlements-disclaimer {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
    font-size: 13px;
    color: var(--ink-soft);
    line-height: 1.5;
  }

  /* FAQ */
  .faq-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 8px 20px 4px 20px;
  }

  /* Compact variant used inline within the funnel, below the question. */
  .faq-panel.compact {
    margin-top: 28px;
    background: transparent;
    border: none;
    border-top: 1px solid var(--border);
    border-radius: 0;
    padding: 20px 0 0 0;
  }
  .faq-panel.compact .section-heading {
    padding: 0;
    font-size: 17px;
  }

  .faq-panel .section-heading {
    padding: 16px 0 0 0;
  }

  details.faq-item {
    border-top: 1px solid var(--border);
  }

  details.faq-item summary {
    cursor: pointer;
    padding: 16px 0;
    font-weight: 600;
    font-size: 16px;
    color: var(--ink);
    list-style: none;
  }

  details.faq-item summary::-webkit-details-marker { display: none; }

  details.faq-item summary::after {
    content: "+";
    float: right;
    font-size: 20px;
    color: var(--signal);
  }

  details.faq-item[open] summary::after {
    content: "\2212";
  }

  details.faq-item p {
    margin: 0 0 16px 0;
    color: var(--ink-soft);
    font-size: 15px;
    line-height: 1.55;
  }

  /* Per-tort explainer screen, shown once before that tort's questions
     begin -- short factual/sourced litigation context, not a sales pitch. */
  .explainer-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 20px;
  }

  .explainer-panel .tort-icon-badge {
    margin-bottom: 16px;
  }

  .explainer-panel p {
    color: var(--ink-soft);
    font-size: 16px;
    line-height: 1.6;
    margin: 12px 0 0 0;
  }

  .explainer-source {
    font-size: 13px;
    color: var(--ink-soft);
    margin-top: 16px !important;
  }
  .explainer-source a { color: var(--signal); }

  /* DQ screen */
  .dq-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 4px solid var(--dq);
    border-radius: var(--radius);
    padding: 24px 20px;
  }

  .dq-panel h1 {
    font-size: 24px;
  }

  .dq-panel p {
    color: var(--ink-soft);
    margin: 12px 0;
  }

  /* Thank-you screen */
  .thankyou-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 4px solid var(--signal);
    border-radius: var(--radius);
    padding: 24px 20px;
  }

  details.dev-panel {
    margin-top: 32px;
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    background: #F7F9FA;
  }

  details.dev-panel summary {
    cursor: pointer;
    padding: 14px 16px;
    font-weight: 700;
    font-size: 15px;
    color: var(--ink-soft);
  }

  details.dev-panel pre {
    margin: 0;
    padding: 16px;
    border-top: 1px dashed var(--border);
    font-size: 13px;
    line-height: 1.5;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-word;
    color: var(--ink);
  }

  footer.site-footer {
    padding: 20px;
    border-top: 1px solid var(--border);
    font-size: 13px;
    color: var(--ink-soft);
    text-align: center;
  }

  footer.site-footer a { color: var(--ink-soft); margin: 0 6px; }

  /* Sticky mobile CTA -- only ever shown on the landing hub (toggled by
     renderLandingScreen/clearPanel), and only on narrow viewports where a
     thumb-reachable action at the bottom of the screen actually helps.
     On the funnel steps themselves the primary-button already sits at
     natural thumb reach, so this stays hidden there. */
  .mobile-sticky-cta {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 20;
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -2px 12px rgba(15, 30, 43, 0.1);
  }
  .mobile-sticky-cta button { margin-top: 0; }

  @media (max-width: 560px) {
    .mobile-sticky-cta.visible { display: block; }
    body.has-sticky-cta .app-shell { padding-bottom: 84px; }
  }

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