/* ============================================================
   LIFTYOURSELF ULTRA ASSESSMENT — STYLE SHEET
   ============================================================ */

/* ---------- CSS VARIABLES ---------- */
:root {
  --navy:       #003594;
  --royal:      #00539B;
  --silver:     #869397;
  --dark:       #0D1B2A;
  --white:      #FFFFFF;
  --off-white:  #F5F7FA;
  --light-grey: #E8ECF0;

  --rag-green:  #1DB954;
  --rag-amber:  #F5A623;
  --rag-red:    #E8303A;
  --sentinel:   #B30000;

  --cat-1: #003594;
  --cat-2: #E67E22;
  --cat-3: #27AE60;
  --cat-4: #8E44AD;
  --cat-5: #2980B9;
  --cat-6: #C0392B;
  --cat-7: #D35400;

  --font-heading: 'Barlow Condensed', Arial Narrow, sans-serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  --radius:  8px;
  --radius-lg: 12px;
  --shadow:  0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
  --transition: 300ms ease;
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--dark);
  background: var(--off-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--royal); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }

/* ---------- LAYOUT ---------- */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}
.container-medium { max-width: 760px; }
.container-narrow  { max-width: 560px; }

.main-content { padding: 2rem 0 4rem; }

/* ---------- SCREENS ---------- */
.screen { display: none; min-height: 100vh; }
.screen.active { display: block; }
.screen.fade-in {
  animation: fadeInUp var(--transition) both;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- WORDMARK ---------- */
.wordmark {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1.25rem;
}
.wordmark-sm { font-size: 1.1rem; margin-bottom: 0; color: var(--navy); }

/* ---------- HERO HEADER ---------- */
.hero-header {
  background: linear-gradient(160deg, #0D1B2A 0%, #003594 100%);
  padding: 2rem 0 1.75rem;
  color: var(--white);
  text-align: center;
}
.hero-header .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-tagline {
  font-family: var(--font-body);
  font-size: 1.2rem;
  font-weight: 400;
  color: rgba(255,255,255,0.88);
  max-width: 560px;
  margin-bottom: 0.75rem;
  line-height: 1.6;
}
.hero-time {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.45);
  font-weight: 400;
  letter-spacing: 0.03em;
}

/* ---------- SECTION HERO HEADER ---------- */
.section-hero-header {
  background: var(--dark);
  border-top: 4px solid var(--cat-1);
  padding: 2rem 0 1.75rem;
  color: var(--white);
}
.section-hero-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 0.5rem;
}
.section-hero-sub {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.8);
}

/* ---------- ASSESSMENT TOP BAR ---------- */
.assessment-top-bar {
  background: var(--white);
  border-bottom: 1px solid var(--light-grey);
  padding: 0.75rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.assessment-top-bar .container {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.progress-area { flex: 1; }
.progress-label {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--silver);
  margin-bottom: 0.3rem;
}
.progress-track {
  height: 6px;
  background: var(--light-grey);
  border-radius: 3px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--navy);
  border-radius: 3px;
  transition: width 0.4s ease;
}

/* ---------- SECTION HEADER CARD ---------- */
.section-header-card {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius) var(--radius) 0 0;
  padding: 1.25rem 1.5rem;
  border-left: 4px solid var(--cat-1);
  margin-bottom: 0;
}
.section-header-card.cat-1 { border-left-color: var(--cat-1); }
.section-header-card.cat-2 { border-left-color: var(--cat-2); }
.section-header-card.cat-3 { border-left-color: var(--cat-3); }
.section-header-card.cat-4 { border-left-color: var(--cat-4); }
.section-header-card.cat-5 { border-left-color: var(--cat-5); }
.section-header-card.cat-6 { border-left-color: var(--cat-6); }
.section-header-card.cat-7 { border-left-color: var(--cat-7); }

.section-label {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin-bottom: 0.3rem;
}
.section-name {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}
.section-description {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
}
.section-validated-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.9);
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 8px;
  margin-top: 0.5rem;
}

/* ---------- CARDS ---------- */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 16px rgba(0,0,0,0.08), 0 1px 3px rgba(0,0,0,0.05);
  padding: 2rem;
  margin-bottom: 1.5rem;
}
.card-heading {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 1.5rem;
}
.questions-card {
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  background: var(--white);
  margin-bottom: 1.5rem;
}

/* ---------- FORM ELEMENTS ---------- */
.form-group { margin-bottom: 1.5rem; }
.form-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dark);
  margin-bottom: 0.5rem;
}
.required-mark { color: var(--rag-red); }

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--light-grey);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--dark);
  background: var(--white);
  transition: border-color 0.2s;
  min-height: 44px;
}
.form-input:focus {
  outline: none;
  border-color: var(--royal);
  box-shadow: 0 0 0 3px rgba(0,83,155,0.12);
}
.form-input::placeholder { color: var(--silver); }

.shared-answers-note {
  font-size: 0.82rem;
  color: var(--silver);
  font-style: italic;
  margin: 0 0 1.25rem 0;
  padding: 0.5rem 0.75rem;
  border-left: 3px solid var(--mid);
  background: rgba(255,255,255,0.04);
  border-radius: 0 4px 4px 0;
}
.form-helper-text {
  font-size: 0.8rem;
  color: var(--silver);
  margin-top: 0.4rem;
  line-height: 1.45;
}
.form-label-optional {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--silver);
  margin-left: 0.3rem;
}
.form-error {
  background: #fff0f0;
  color: var(--rag-red);
  border: 1px solid var(--rag-red);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}
.hidden { display: none !important; }

/* ---------- RADIO OPTIONS (VERTICAL — INTAKE) ---------- */
.radio-group-vertical { display: flex; flex-direction: column; gap: 0.5rem; }
.radio-option-large {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border: 2px solid var(--light-grey);
  border-radius: var(--radius);
  cursor: pointer;
  min-height: 44px;
  transition: border-color 0.2s, background 0.2s;
}
.radio-option-large:hover { border-color: var(--royal); background: rgba(0,83,155,0.04); }
.radio-option-large input[type="radio"] { accent-color: var(--navy); width: 18px; height: 18px; flex-shrink: 0; }
.radio-text { font-size: 0.95rem; }

/* ---------- CHECKBOX (INTAKE CONSENT) ---------- */
/* ---------- CONSENT NOTICE ---------- */
.consent-notice {
  background: var(--off-white);
  border: 1px solid var(--light-grey);
  border-radius: var(--radius);
  padding: 0;
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.consent-notice-section {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--light-grey);
}

.consent-notice-section-last {
  border-bottom: none;
}

.consent-notice-label {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.consent-notice-body {
  font-size: 0.875rem;
  color: var(--dark);
  line-height: 1.55;
  margin: 0;
}

.consent-notice-list {
  margin: 0;
  padding-left: 1.25rem;
  font-size: 0.875rem;
  color: var(--dark);
  line-height: 1.6;
}

.consent-notice-list li + li {
  margin-top: 0.2rem;
}

.consent-proceed-btn {
  margin-top: 1rem;
}

.consent-group { border-top: 1px solid var(--light-grey); padding-top: 1.25rem; }
.checkbox-option-large {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
}
.checkbox-option-large input[type="checkbox"] {
  accent-color: var(--navy);
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}
.checkbox-text { font-size: 0.9rem; line-height: 1.5; color: var(--dark); }

/* ---------- SCALE RADIO GROUP (QUESTIONS) ---------- */
.question-block { margin-bottom: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--light-grey); }
.question-block:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.question-text {
  font-size: 1rem;
  font-weight: 500;
  color: var(--dark);
  margin-bottom: 0.85rem;
  line-height: 1.5;
}
.question-number {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--silver);
  margin-bottom: 0.3rem;
}

/* Scale options (horizontal) */
.scale-options {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}
.scale-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0.6rem 0.5rem;
  border: 2px solid var(--light-grey);
  border-radius: var(--radius);
  cursor: pointer;
  min-height: 60px;
  /* box-shadow included so the inset ring on .selected transitions smoothly
     instead of triggering an instant synchronous paint alongside border/bg */
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  text-align: center;
}
.scale-option:hover { border-color: var(--royal); background: rgba(0,83,155,0.04); }
.scale-option.selected { border-color: var(--navy); background: rgba(0,53,148,0.10); box-shadow: inset 0 0 0 1px var(--navy); }
.scale-option input[type="radio"] { position: absolute; opacity: 0; width: 0; height: 0; }
.scale-option-label {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--dark);
  line-height: 1.2;
}
.scale-option-score {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--silver);
}

/* Binary options */
.binary-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}
.binary-option {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem;
  border: 2px solid var(--light-grey);
  border-radius: var(--radius);
  cursor: pointer;
  min-height: 44px;
  font-weight: 500;
  transition: border-color 0.2s, background 0.2s;
  text-align: center;
}
.binary-option:hover { border-color: var(--royal); background: rgba(0,83,155,0.04); }
.binary-option.selected { border-color: var(--navy); background: rgba(0,53,148,0.08); }
.binary-option input[type="radio"] { position: absolute; opacity: 0; width: 0; height: 0; }

/* PHQ-4 options */
.phq4-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}
@media (min-width: 560px) {
  .phq4-options { grid-template-columns: repeat(4, 1fr); }
}
.phq4-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  padding: 0.6rem 0.4rem;
  border: 2px solid var(--light-grey);
  border-radius: var(--radius);
  cursor: pointer;
  min-height: 60px;
  text-align: center;
  transition: border-color 0.2s, background 0.2s;
}
.phq4-option:hover { border-color: var(--royal); background: rgba(0,83,155,0.04); }
.phq4-option.selected { border-color: var(--navy); background: rgba(0,53,148,0.08); }
.phq4-option input[type="radio"] { position: absolute; opacity: 0; width: 0; height: 0; }
.phq4-option-label { font-size: 0.78rem; font-weight: 500; line-height: 1.2; }
.phq4-option-score { font-family: var(--font-heading); font-size: 0.7rem; font-weight: 700; color: var(--silver); }

/* CDC select + number input */
.cdc-select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--light-grey);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--dark);
  background: var(--white);
  min-height: 44px;
  transition: border-color 0.2s;
}
.cdc-select:focus { outline: none; border-color: var(--royal); }
.cdc-number {
  width: 120px;
  padding: 0.75rem 1rem;
  border: 2px solid var(--light-grey);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--dark);
  background: var(--white);
  min-height: 44px;
}
.cdc-number:focus { outline: none; border-color: var(--royal); }
.cdc-days-label { font-size: 0.9rem; color: var(--silver); margin-left: 0.5rem; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  border: 2px solid transparent;
  min-height: 44px;
  /* Specific properties only — 'transition: all' forces the browser to animate
     every property including gradient backgrounds on every disabled toggle,
     which is a synchronous paint. Opacity covers the :disabled fade; the rest
     (background, border-color, box-shadow) are needed for hover states. */
  transition: opacity 0.2s, background 0.2s, border-color 0.2s, box-shadow 0.2s;
  text-decoration: none;
}
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

.btn-primary {
  background: linear-gradient(135deg, var(--navy) 0%, var(--royal) 100%);
  color: var(--white);
  border-color: var(--navy);
  box-shadow: 0 2px 10px rgba(0,53,148,0.28);
}
.btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--royal) 0%, var(--navy) 100%);
  border-color: var(--royal);
  text-decoration: none;
  color: var(--white);
  box-shadow: 0 4px 14px rgba(0,53,148,0.38);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline:hover:not(:disabled) {
  background: rgba(0,53,148,0.06);
  text-decoration: none;
}

.btn-ghost {
  background: transparent;
  color: var(--silver);
  border-color: var(--light-grey);
}
.btn-ghost:hover:not(:disabled) {
  background: var(--light-grey);
  color: var(--dark);
}

.btn-sentinel {
  background: var(--sentinel);
  color: var(--white);
  border-color: var(--sentinel);
}
.btn-sentinel:hover { background: #8B0000; border-color: #8B0000; color: var(--white); text-decoration: none; }

.btn-large { padding: 1rem 2rem; font-size: 1.1rem; }
.btn-full  { width: 100%; }

/* ---------- NAV ROW ---------- */
.nav-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.5rem;
  gap: 1rem;
}

/* ---------- SENTINEL MODAL ---------- */
.sentinel-modal {
  position: fixed;
  inset: 0;
  background: rgba(13,27,42,0.85);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.sentinel-modal.hidden { display: none !important; }
.sentinel-modal-box {
  background: var(--white);
  border: 3px solid var(--sentinel);
  border-radius: var(--radius-lg);
  padding: 2rem;
  max-width: 520px;
  width: 100%;
  text-align: center;
}
.sentinel-icon {
  font-size: 3rem;
  color: var(--sentinel);
  margin-bottom: 0.75rem;
}
.sentinel-modal-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--sentinel);
  margin-bottom: 1rem;
}
.sentinel-modal-body {
  font-size: 0.95rem;
  color: var(--dark);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}
.sentinel-modal-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- DISCLAIMER ---------- */
.disclaimer-text {
  font-size: 0.8rem;
  color: var(--silver);
  margin-top: 1.5rem;
  line-height: 1.5;
  text-align: center;
}

/* ---------- RESULTS TOP HEADER ---------- */
.results-top-header {
  background: linear-gradient(135deg, #0D1B2A 0%, #003594 100%);
  padding: 2.5rem 0 2rem;
  color: var(--white);
}
.results-main-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 0.4rem;
}
.results-date { font-size: 0.9rem; color: rgba(255,255,255,0.6); }

/* ---------- OVERALL SCORE CARD ---------- */
.overall-score-card {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-md);
  position: relative;
}
.overall-score-label {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin-bottom: 0.5rem;
}
.overall-score-number {
  font-family: var(--font-heading);
  font-size: 5rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.overall-rag-bar {
  height: 8px;
  border-radius: 4px;
  margin: 0.75rem auto;
  max-width: 300px;
  transition: background 0.4s;
}
.overall-rag-label {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.overall-module-counts {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.25rem;
}
.count-red   { color: var(--rag-red); font-weight: 700; }
.count-amber { color: var(--rag-amber); font-weight: 700; }
.count-green { color: var(--rag-green); font-weight: 700; }
.count-grey  { color: rgba(255,255,255,0.5); font-weight: 700; }

/* Sentinel banner in results */
.sentinel-results-banner {
  background: var(--sentinel);
  color: var(--white);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.sentinel-results-banner .banner-icon { font-size: 1.3rem; flex-shrink: 0; }

/* ---------- CATEGORY GRID ---------- */
.section-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--navy);
  margin: 2rem 0 1rem;
}
.category-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

/* ---------- CATEGORY CARD ---------- */
.category-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border-left: 4px solid var(--cat-1);
  overflow: hidden;
}
.category-card.cat-1 { border-left-color: var(--cat-1); }
.category-card.cat-2 { border-left-color: var(--cat-2); }
.category-card.cat-3 { border-left-color: var(--cat-3); }
.category-card.cat-4 { border-left-color: var(--cat-4); }
.category-card.cat-5 { border-left-color: var(--cat-5); }
.category-card.cat-6 { border-left-color: var(--cat-6); }
.category-card.cat-7 { border-left-color: var(--cat-7); }

.category-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  user-select: none;
  transition: background 0.2s;
}
.category-card-header:hover { background: var(--off-white); }

.rag-circle-lg {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--white);
  text-transform: uppercase;
}
.rag-circle-sm {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--white);
  text-transform: uppercase;
}
.rag-green  { background: var(--rag-green); }
.rag-amber  { background: var(--rag-amber); }
.rag-red    { background: var(--rag-red); }
.rag-grey   { background: var(--silver); }

.category-info { flex: 1; min-width: 0; }
.category-name {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--dark);
}
.category-score {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--navy);
}
.category-priority {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--silver);
}
.category-module-counts {
  font-size: 0.8rem;
  color: var(--silver);
  margin-top: 0.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.75rem;
}
.category-summary {
  font-size: 0.85rem;
  color: var(--dark);
  margin-top: 0.3rem;
}
.category-expand-icon {
  font-size: 1.1rem;
  color: var(--silver);
  transition: transform 0.25s;
  flex-shrink: 0;
}
.category-card.expanded .category-expand-icon { transform: rotate(180deg); }

.category-modules {
  display: none;
  border-top: 1px solid var(--light-grey);
  padding: 1rem 1.5rem;
}
.category-card.expanded .category-modules { display: block; }

/* ---------- MODULE CARD ---------- */
.module-card {
  border: 1px solid var(--light-grey);
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 0.75rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.module-card:last-child { margin-bottom: 0; }
.module-card.not-investigated {
  background: var(--off-white);
  border-color: var(--light-grey);
  opacity: 0.8;
}
.module-info { flex: 1; min-width: 0; }
.module-name {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--dark);
  margin-bottom: 0.2rem;
}
.module-validated-badge {
  display: inline-block;
  background: rgba(0,83,155,0.1);
  color: var(--royal);
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 1px 6px;
  margin-left: 0.5rem;
}
.module-scores {
  font-size: 0.8rem;
  color: var(--silver);
  margin-bottom: 0.4rem;
}
.module-priority {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.module-interpretation {
  font-size: 0.88rem;
  color: var(--dark);
  line-height: 1.5;
  margin-bottom: 0.5rem;
}
.module-drivers {
  font-size: 0.82rem;
  color: var(--silver);
  font-style: italic;
}
.module-drivers strong {
  font-style: normal;
  color: var(--dark);
  font-weight: 600;
}
.module-sequence-position {
  font-size: 0.76rem;
  color: var(--royal);
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 0.5rem;
}

/* ---------- STATED CONCERN BANNER (v3.6) ---------- */
.stated-concern-banner {
  background: var(--off-white);
  border-left: 4px solid var(--royal);
  border-radius: var(--radius);
  padding: 0.85rem 1.1rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  color: var(--dark);
}

/* ---------- SEQUENCE MAP CARD (v3.6) ---------- */
.seqmap-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border-top: 4px solid var(--navy);
}
.seqmap-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.03em;
  margin-bottom: 0.75rem;
}
.seqmap-intro {
  font-size: 0.88rem;
  color: var(--dark);
  line-height: 1.55;
  margin-bottom: 0.75rem;
}
.seqmap-list {
  position: relative;
  margin: 1.5rem 0;
  padding-left: 1.5rem;
  border-left: 2px solid var(--light-grey);
}
.seqmap-layer {
  position: relative;
  display: flex;
  gap: 0.75rem;
  padding-bottom: 1.5rem;
}
.seqmap-layer:last-child { padding-bottom: 0; }
.seqmap-layer-marker {
  position: absolute;
  left: -1.9rem;
  top: 0.2rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--navy);
  border: 2px solid var(--white);
  box-shadow: 0 0 0 2px var(--light-grey);
}
.seqmap-layer-body { flex: 1; min-width: 0; }
.seqmap-layer-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 0.35rem;
}
.seqmap-layer-name {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: 0.02em;
}
.seqmap-pill {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.seqmap-pill-foundational { background: var(--navy); color: var(--white); }
.seqmap-pill-upstream     { background: var(--royal); color: var(--white); }
.seqmap-pill-core         { background: var(--silver); color: var(--dark); }
.seqmap-pill-downstream   { background: var(--light-grey); color: var(--dark); }
.seqmap-layer-note {
  font-size: 0.84rem;
  color: var(--silver);
  line-height: 1.5;
  margin-bottom: 0.6rem;
}
.seqmap-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.seqmap-chip {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 600;
}
.seqmap-chip-red   { background: rgba(232,48,58,0.12);  color: var(--rag-red); }
.seqmap-chip-amber { background: rgba(245,166,35,0.14); color: #a06400; }
.seqmap-chip-none  { background: var(--off-white); color: var(--silver); font-weight: 400; font-style: italic; }
.seqmap-closing {
  font-size: 0.82rem;
  color: var(--silver);
  font-style: italic;
  border-top: 1px solid var(--light-grey);
  padding-top: 0.75rem;
  margin-top: 0.5rem;
  line-height: 1.5;
}

/* ---------- REPORT CLOSING CARD (v3.6) ---------- */
.report-closing-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border-top: 4px solid var(--navy);
  text-align: center;
}
.report-closing-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.03em;
  margin-bottom: 0.85rem;
}
.report-closing-card p {
  font-size: 0.88rem;
  color: var(--dark);
  line-height: 1.6;
  text-align: left;
  margin-bottom: 0.85rem;
}
.report-discuss-btn {
  display: inline-block;
  margin-top: 0.5rem;
}

/* ---------- VALIDATED ANCHORS CARD ---------- */
.validated-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border-left: 4px solid var(--cat-6);
}
.validated-card-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 1rem;
}
.validated-grid { display: grid; gap: 1rem; }
@media (min-width: 600px) { .validated-grid { grid-template-columns: 1fr 1fr; } }
.validated-item { }
.validated-item-name {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--silver);
  margin-bottom: 0.2rem;
}
.validated-item-value {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--navy);
}
.validated-item-sub { font-size: 0.8rem; color: var(--silver); }
.phq4-band {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 4px;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--white);
}
.phq4-band-none     { background: var(--rag-green); }
.phq4-band-mild     { background: var(--rag-amber); }
.phq4-band-moderate { background: var(--rag-red); }
.phq4-band-severe   { background: var(--sentinel); }

/* ---------- PRIORITY LIST ---------- */
.priority-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.5rem;
}
.priority-table th {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--silver);
  text-align: left;
  padding: 0.5rem 0.75rem;
  border-bottom: 2px solid var(--light-grey);
}
.priority-table td {
  padding: 0.65rem 0.75rem;
  font-size: 0.88rem;
  border-bottom: 1px solid var(--light-grey);
  vertical-align: middle;
}
.priority-table tr:last-child td { border-bottom: none; }
.priority-table tr:hover td { background: var(--off-white); }

/* ---------- DOWNLOAD SAFETY TIP ---------- */
.download-safety-tip {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  background: var(--off-white);
  border: 1px solid var(--light-grey);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  margin: 1.5rem 0 0;
  font-size: 0.875rem;
  color: var(--dark);
  line-height: 1.5;
}

.download-safety-tip-icon {
  flex-shrink: 0;
  font-size: 1rem;
  line-height: 1.5;
}

/* ---------- RESULTS BUTTONS ---------- */
[hidden] { display: none !important; }
.ultra-progress-controls {
  padding: 1.25rem 0 2rem;
  border-top: 1px solid var(--light-grey);
  background: var(--white);
}
.ultra-progress-controls p {
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  color: var(--dark);
}

.results-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1rem 0 1rem;
  justify-content: center;
}

.bn-ultra-cta {
  text-align: center;
  background: var(--off-white);
  border: 1px solid rgba(0,53,148,0.18);
  border-left: 5px solid var(--navy);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin: 0 0 2rem;
  box-shadow: var(--shadow);
}
.bn-ultra-cta-title {
  color: var(--navy);
  font-family: var(--font-heading);
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}
.bn-ultra-cta-copy {
  color: var(--dark);
  font-size: 1rem;
  margin-bottom: 1rem;
}
.bn-ultra-cta-button {
  min-width: min(100%, 300px);
}
.bn-ultra-cta-expectation {
  color: #4B5B66;
  font-size: 0.88rem;
  line-height: 1.5;
  margin: 0.8rem 0 0;
}
.bn-ultra-cta-bottom {
  margin: 0 auto;
}

/* Draws the eye to the Download PDF button after an email send fails */
.pdf-btn-highlight {
  animation: pdf-btn-pulse 1.2s ease-in-out 0 3;
  box-shadow: 0 0 0 4px rgba(0, 53, 148, 0.25);
}

@keyframes pdf-btn-pulse {
  0%   { transform: scale(1);    box-shadow: 0 0 0 0 rgba(0, 53, 148, 0.45); }
  50%  { transform: scale(1.05); box-shadow: 0 0 0 8px rgba(0, 53, 148, 0); }
  100% { transform: scale(1);    box-shadow: 0 0 0 0 rgba(0, 53, 148, 0); }
}
/* ---------- EMAIL SEND PANEL ---------- */
.email-send-panel {
  background: #fff;
  border: 1px solid var(--light-grey);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}

.email-panel-title {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--navy);
  margin-bottom: 0.875rem;
}

.email-pdf-checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--dark);
  margin-bottom: 1rem;
  cursor: pointer;
  user-select: none;
}

.email-pdf-checkbox input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  cursor: pointer;
  accent-color: var(--navy);
}

.email-panel-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  margin-bottom: 0.75rem;
}

.email-target-btn {
  flex: 1 1 auto;
  min-width: 130px;
  text-align: center;
}

.email-status {
  text-align: center;
  padding: 0.875rem 1rem;
  border-radius: var(--radius);
  font-weight: 600;
  margin-top: 0.75rem;
}
.email-status.success { background: #e8f9ee; color: #1a7a3a; }
.email-status.error   { background: #fff0f0; color: var(--rag-red); }
.email-status.sending { background: var(--off-white); color: var(--silver); }

/* ---------- RESULTS FOOTER ---------- */
.results-footer {
  text-align: center;
  padding: 2.5rem 0 3rem;
  border-top: 1px solid var(--light-grey);
  margin-top: 1.5rem;
}

/* ---- LOGO & BRAND ELEMENTS ---- */
.hero-logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border-radius: 8px;
  display: block;
  margin-bottom: 1rem;
  filter: drop-shadow(0 2px 12px rgba(0,0,0,0.35));
}
.topbar-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 4px;
  flex-shrink: 0;
}
.sentinel-logo {
  width: 44px;
  height: 44px;
  margin-bottom: 0.75rem;
  display: block;
}
.results-header-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.results-header-logo {
  width: 100px;
  height: 100px;
  object-fit: contain;
  border-radius: 10px;
  flex-shrink: 0;
}
.results-header-text { flex: 1; }
.results-header-eyebrow {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.48);
  margin-bottom: 0.4rem;
}
@media (max-width: 560px) {
  .results-header-inner { flex-direction: column; text-align: center; gap: 1rem; }
  .results-header-logo { width: 72px; height: 72px; }
  .hero-logo { width: 64px; height: 64px; }
}
.footer-logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border-radius: 8px;
  display: block;
  margin: 0 auto 0.75rem;
}
.footer-tagline {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 0.6rem;
}
.footer-disclaimer {
  font-size: 0.82rem;
  color: var(--silver);
  line-height: 1.6;
  max-width: 480px;
  margin: 0 auto;
}
.footer-copyright {
  font-size: 0.76rem;
  color: var(--silver);
  margin-top: 1rem;
  opacity: 0.7;
}

/* ================================================================
   PRIVACY POLICY PAGE  (/privacy)
   ================================================================ */
.privacy-header {
  background: var(--navy);
  color: var(--white);
  padding: 2.5rem 0 2.25rem;
}
.privacy-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 8px;
  display: block;
  margin-bottom: 1rem;
}
.privacy-eyebrow {
  color: rgba(255,255,255,0.65);
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}
.privacy-title {
  color: var(--white);
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 7vw, 3.5rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
  margin: 0 0 0.65rem;
  text-transform: uppercase;
}
.privacy-updated {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  margin: 0;
}
.privacy-main {
  padding: 2.5rem 0 4rem;
}
.privacy-container {
  max-width: 760px;
  color: var(--dark);
  font-size: 0.98rem;
  line-height: 1.7;
}
.privacy-container > p:first-child {
  font-size: 1.08rem;
  font-weight: 500;
}
.privacy-container p {
  margin: 0 0 1rem;
}
.privacy-section {
  border-top: 1px solid var(--light-grey);
  margin-top: 2rem;
  padding-top: 1.65rem;
}
.privacy-section h2 {
  color: var(--navy);
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.025em;
  line-height: 1.2;
  margin: 0 0 0.8rem;
  text-transform: uppercase;
}
.privacy-section ul {
  margin: 0 0 1rem;
  padding-left: 1.35rem;
}
.privacy-section li {
  margin-bottom: 0.35rem;
  padding-left: 0.15rem;
}
.privacy-container a {
  color: var(--royal);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.privacy-container a:hover {
  color: var(--navy);
}
.privacy-back {
  border-top: 1px solid var(--light-grey);
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  text-align: center;
}

/* ================================================================
   LEAD CAPTURE FLOW  (screen-lc)
   ================================================================ */

/* Top bar */
.lc-topbar {
  background: var(--navy);
  padding: 0.75rem 0;
}
.lc-topbar-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.lc-topbar-brand {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
}

/* Card */
.lc-card {
  background: var(--white);
  border-radius: var(--radius-lg, 14px);
  box-shadow: var(--shadow-card);
  padding: 2rem 1.5rem;
  margin: 2rem auto;
  max-width: 560px;
}

/* Step progress */
.lc-progress {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 1.75rem;
}
.lc-step {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--light-grey);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--silver);
  background: var(--white);
  flex-shrink: 0;
}
.lc-step-done {
  border-color: var(--navy);
  color: var(--navy);
}
.lc-step-active {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}
.lc-step-line {
  flex: 1;
  height: 2px;
  background: var(--light-grey);
}
.lc-step-line-done {
  background: var(--navy);
}

/* Typography */
.lc-heading {
  font-family: var(--font-heading);
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0 0 0.5rem;
  line-height: 1.15;
}
.lc-sub {
  font-size: 0.95rem;
  color: var(--silver);
  line-height: 1.6;
  margin: 0 0 1.75rem;
}

/* Question blocks */
.lc-question {
  margin-bottom: 1.5rem;
}
.lc-label {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 0.65rem;
}

/* Radio group */
.lc-radio-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.lc-radio-option {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 0.9rem;
  border: 2px solid var(--light-grey);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.95rem;
  color: var(--dark);
  transition: border-color 0.18s, background 0.18s;
}
.lc-radio-option:hover {
  border-color: var(--royal);
  background: rgba(0,83,155,0.04);
}
.lc-radio-option input[type="radio"] {
  accent-color: var(--navy);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Slider */
.lc-slider-wrap { width: 100%; }
.lc-slider-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.lc-slider-edge {
  font-size: 0.8rem;
  color: var(--silver);
  white-space: nowrap;
  flex-shrink: 0;
}
.lc-slider {
  flex: 1;
  height: 4px;
  accent-color: var(--navy);
  cursor: pointer;
}
.lc-slider-value {
  text-align: center;
  margin-top: 0.4rem;
  font-size: 0.88rem;
  color: var(--silver);
}
.lc-slider-value strong {
  color: var(--navy);
  font-size: 1rem;
}

/* Textarea */
.lc-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--light-grey);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--dark);
  background: var(--white);
  resize: vertical;
  min-height: 96px;
  transition: border-color 0.18s;
  box-sizing: border-box;
}
.lc-textarea:focus {
  outline: none;
  border-color: var(--royal);
}

/* Form fields (Screen 2) */
.lc-field-group {
  margin-bottom: 1.1rem;
}
.lc-field-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dark);
  margin-bottom: 0.4rem;
}
.lc-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--light-grey);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--dark);
  background: var(--white);
  min-height: 44px;
  transition: border-color 0.18s;
  box-sizing: border-box;
}
.lc-input:focus {
  outline: none;
  border-color: var(--royal);
}

/* Checkboxes */
.lc-checkboxes {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1.25rem 0;
}
.lc-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.9rem;
  color: var(--dark);
  line-height: 1.5;
  cursor: pointer;
}
.lc-checkbox-label input[type="checkbox"] {
  accent-color: var(--navy);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
}
.lc-required {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--rag-red);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-left: 0.25rem;
}

/* Privacy line */
.lc-privacy-line {
  font-size: 0.8rem;
  color: var(--silver);
  line-height: 1.6;
  margin: 0.5rem 0 1.25rem;
}
.lc-privacy-link {
  color: var(--royal);
  text-decoration: none;
}
.lc-privacy-link:hover {
  text-decoration: underline;
}

/* Error */
.lc-error {
  font-size: 0.875rem;
  color: var(--rag-red);
  padding: 0.6rem 0.9rem;
  background: rgba(232,48,58,0.07);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
}

/* Buttons */
.lc-btn-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 1.25rem;
}
.lc-btn-row .btn {
  min-width: 180px;
}
.lc-skip-row {
  text-align: center;
  margin-top: 0.9rem;
}
.lc-skip-link {
  font-size: 0.85rem;
  color: var(--silver);
  text-decoration: none;
  border-bottom: 1px dashed var(--light-grey);
  transition: color 0.15s;
}
.lc-skip-link:hover {
  color: var(--royal);
}

/* Category list (Screen 3) */
.lc-cat-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 1.75rem;
}
.lc-cat-row {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--light-grey);
  border-radius: var(--radius);
  background: var(--off-white, #f8f9fb);
}
.lc-rag-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 3px;
}
.lc-cat-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1;
}
.lc-cat-name {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--dark);
}
.lc-cat-action {
  font-size: 0.85rem;
  color: var(--dark);
  line-height: 1.5;
}
.lc-cat-ok   { color: #2E8B57; }
.lc-cat-muted { color: var(--silver); font-style: italic; }

/* Navy CTA panel */
.lc-cta-panel {
  background: var(--navy);
  border-radius: var(--radius-lg, 14px);
  padding: 1.75rem 1.5rem;
  text-align: center;
  margin-bottom: 1.25rem;
}
.lc-cta-heading {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--white);
  margin: 0 0 0.6rem;
}
.lc-cta-body {
  font-size: 0.93rem;
  color: rgba(255,255,255,0.78);
  line-height: 1.65;
  margin: 0 0 1.25rem;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}
.lc-cta-btn {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
  font-family: var(--font-heading);
  font-weight: 800;
  letter-spacing: 0.06em;
}
.lc-cta-btn:hover {
  background: rgba(255,255,255,0.9);
  border-color: rgba(255,255,255,0.9);
  text-decoration: none;
  color: var(--navy);
}

/* Full report button row */
.lc-full-report-row {
  justify-content: center;
  margin-top: 0;
}

/* ---------- RESPONSIVE ---------- */
@media (min-width: 640px) {
  .scale-options { grid-template-columns: repeat(4, 1fr); }
  .hero-tagline { font-size: 1.4rem; }
  .overall-score-number { font-size: 6rem; }
}
@media (min-width: 768px) {
  .category-grid { grid-template-columns: 1fr; }
  .hero-header { padding: 4rem 0 3rem; }
}
@media (max-width: 480px) {
  .scale-options {
    grid-template-columns: repeat(2, 1fr);
  }
  .scale-option { min-height: 70px; }
  .results-btn-row { flex-direction: column; }
  .results-btn-row .btn { width: 100%; }
  .bn-ultra-cta { padding: 1.25rem 1rem; }
  .bn-ultra-cta-button { width: 100%; }
  .sentinel-modal-actions { flex-direction: column; }
  .sentinel-modal-actions .btn { width: 100%; }
}

/* ---------- PRINT STYLES ---------- */
@media print {
  .screen { display: block !important; }
  #screen-welcome, #screen-sentinel, #screen-assessment { display: none !important; }
  #screen-results { display: block !important; }
  .results-btn-row, .results-footer { display: none; }
  .assessment-top-bar { position: static; }
  body { background: white; }
  .card, .category-card, .validated-card { box-shadow: none; border: 1px solid #ddd; }
}

/* ---------- LOADING SPINNER ---------- */
.spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 3px solid rgba(255,255,255,0.3);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- EDUCATIONAL TOOLTIPS ---------- */
.tooltip-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  vertical-align: middle;
}
.tooltip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  font-family: var(--font-body);
  line-height: 1;
  flex-shrink: 0;
  transition: background var(--transition);
  -webkit-tap-highlight-color: transparent;
}
.tooltip-icon:hover, .tooltip-icon:focus {
  background: rgba(255,255,255,0.4);
  outline: none;
}
.tooltip-bubble {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  width: 280px;
  background: var(--white);
  border: 2px solid var(--navy);
  border-radius: var(--radius);
  padding: 10px 13px;
  font-size: 0.82rem;
  color: var(--dark);
  line-height: 1.5;
  box-shadow: var(--shadow-md);
  z-index: 200;
  font-family: var(--font-body);
  font-weight: 400;
  text-align: left;
}
.tooltip-bubble::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-bottom-color: var(--navy);
}
.tooltip-wrapper.open .tooltip-bubble,
.tooltip-wrapper:hover .tooltip-bubble {
  display: block;
}
@media (hover: none) {
  .tooltip-wrapper:hover .tooltip-bubble { display: none; }
  .tooltip-wrapper.open .tooltip-bubble { display: block; }
}

/* ---------- TOP 3 PRIORITIES CARD ---------- */
.top3-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--navy);
}
.top3-card-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.03em;
  margin-bottom: 0.25rem;
}
.top3-card-subtitle {
  font-size: 0.88rem;
  color: var(--silver);
  margin-bottom: 1.25rem;
}
.top3-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.top3-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  background: var(--off-white);
  border-radius: var(--radius);
  border-left: 4px solid var(--navy);
}
.top3-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--navy);
  color: var(--white);
  border-radius: 50%;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}
.top3-content { flex: 1; min-width: 0; }
.top3-module-name {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: 0.02em;
  margin-bottom: 2px;
}
.top3-category-name {
  font-size: 0.78rem;
  color: var(--silver);
  margin-bottom: 4px;
}
.top3-burden {
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.top3-sequence-position {
  font-size: 0.76rem;
  color: var(--royal);
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 0.5rem;
}
.top3-sequence-insight {
  font-size: 0.82rem;
  color: var(--dark);
  line-height: 1.5;
  background: var(--off-white);
  border-left: 3px solid var(--royal);
  padding: 0.5rem 0.7rem;
  border-radius: 4px;
  margin-bottom: 0.6rem;
}
.top3-next-step {
  font-size: 0.85rem;
  color: var(--dark);
  line-height: 1.55;
}
.top3-note {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--silver);
  font-style: italic;
  border-top: 1px solid var(--light-grey);
  padding-top: 0.75rem;
}

/* ---- Scale anchors ---- */
.scale-anchor {
  display: block;
  font-size: 0.68rem;
  color: var(--silver);
  font-weight: 400;
  line-height: 1.3;
  margin-top: 3px;
}

/* ---- Scale guide banner ---- */
.scale-guide-banner {
  background: #EEF3FB;
  border-left: 3px solid var(--royal);
  color: #1A2B4A;
  font-size: 0.85rem;
  line-height: 1.55;
  padding: 0.65rem 0.9rem;
  border-radius: 4px;
  margin-bottom: 1.2rem;
}

/* ---- Module framing text ---- */
.module-framing {
  background: #F5F5F0;
  border-left: 3px solid #9B8EC4;
  color: var(--dark);
  font-size: 0.88rem;
  line-height: 1.6;
  padding: 0.65rem 0.9rem;
  border-radius: 4px;
  margin-bottom: 1.1rem;
  font-style: italic;
}

/* ---- Prefer not to answer / Skip ---- */
.skip-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.6rem;
  flex-wrap: wrap;
}
.skip-link {
  background: none;
  border: none;
  color: var(--silver);
  font-size: 0.8rem;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-decoration-style: dotted;
  font-family: inherit;
}
.skip-link:hover { color: var(--dark); }
.skipped-note {
  font-size: 0.8rem;
  color: var(--silver);
  font-style: italic;
}

/* ---- Limited data warning ---- */
.limited-data-note {
  font-size: 0.78rem;
  color: #8B5E00;
  background: #FFF8E1;
  border-left: 3px solid #F5A623;
  padding: 0.35rem 0.6rem;
  border-radius: 3px;
  margin: 0.3rem 0 0.4rem;
}

/* ---- About the scoring ---- */
.about-scoring-card {
  background: var(--white);
  border: 1px solid var(--light-grey);
  border-radius: 10px;
  margin-top: 1.5rem;
  overflow: hidden;
}
.about-scoring-toggle {
  width: 100%;
  background: none;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 1.1rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--dark);
  cursor: pointer;
  font-family: inherit;
}
.about-scoring-toggle:hover { background: var(--off-white); }
.about-scoring-arrow { font-size: 0.75rem; color: var(--silver); }
.about-scoring-body {
  padding: 0 1.1rem 1rem;
  font-size: 0.85rem;
  color: var(--silver);
  line-height: 1.65;
}
.about-scoring-body p { margin: 0; }

/* ================================================================
   CUMULATIVE HEALTH SCORE CARD + TRAFFIC LIGHT
   ================================================================ */
.cumulative-health-card {
  background: var(--white);
  border-radius: 14px;
  border: 2px solid var(--light-grey);
  padding: 1.4rem 1.5rem 1rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.cumulative-health-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--silver);
  margin-bottom: 1.1rem;
}
.cumulative-health-body {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

/* Traffic light column */
.traffic-light {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex-shrink: 0;
}
.tl-segment {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
  transition: opacity 0.2s;
}
.tl-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex-shrink: 0;
}
.tl-seg-text {
  display: flex;
  flex-direction: column;
}
.tl-seg-name {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.tl-seg-range {
  font-size: 0.7rem;
  opacity: 0.75;
  margin-top: 1px;
}

/* Red segment */
.tl-red .tl-dot  { background: var(--rag-red); }
.tl-red.tl-active { background: rgba(232,48,58,0.10); }
.tl-red .tl-seg-name { color: var(--rag-red); }
.tl-red .tl-seg-range { color: var(--rag-red); }

/* Amber segment */
.tl-amber .tl-dot  { background: var(--rag-amber); }
.tl-amber.tl-active { background: rgba(245,166,35,0.12); }
.tl-amber .tl-seg-name { color: #B87800; }
.tl-amber .tl-seg-range { color: #B87800; }

/* Green segment */
.tl-green .tl-dot  { background: var(--rag-green); }
.tl-green.tl-active { background: rgba(29,185,84,0.10); }
.tl-green .tl-seg-name { color: #117A34; }
.tl-green .tl-seg-range { color: #117A34; }

/* Dim inactive segments */
.tl-segment.tl-dim { opacity: 0.28; }

/* Active glow on dot */
.tl-active .tl-dot { box-shadow: 0 0 0 4px rgba(0,0,0,0.08), 0 0 12px 4px currentColor; }
.tl-red.tl-active .tl-dot  { box-shadow: 0 0 0 3px rgba(232,48,58,0.25), 0 0 14px 5px rgba(232,48,58,0.4); }
.tl-amber.tl-active .tl-dot { box-shadow: 0 0 0 3px rgba(245,166,35,0.25), 0 0 14px 5px rgba(245,166,35,0.4); }
.tl-green.tl-active .tl-dot { box-shadow: 0 0 0 3px rgba(29,185,84,0.25), 0 0 14px 5px rgba(29,185,84,0.4); }

/* Score detail column */
.cumulative-score-detail {
  flex: 1;
  min-width: 160px;
}
.cumulative-score-pct {
  font-size: 3.2rem;
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.25rem;
}
.cumulative-score-label {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}
.cumulative-score-sub {
  font-size: 0.78rem;
  color: var(--silver);
  margin-bottom: 0.65rem;
}
.cumulative-thirds-note {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.thirds-note-item {
  font-size: 0.73rem;
  font-weight: 600;
}
.thirds-green { color: #117A34; }
.thirds-amber { color: #B87800; }
.thirds-red   { color: var(--rag-red); }

/* Mobile stacking */
@media (max-width: 480px) {
  .cumulative-health-body { flex-direction: column; align-items: flex-start; gap: 1.2rem; }
  .cumulative-score-pct   { font-size: 2.4rem; }
}

/* ---- Trend vs previous session ---- */
.trend-vs-prev {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.65rem;
}
.trend-prev-date {
  font-size: 0.72rem;
  color: var(--silver);
}
.trend-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.18rem 0.55rem;
  border-radius: 20px;
  white-space: nowrap;
}
.trend-improved {
  background: #e6f9ed;
  color: #117A34;
  border: 1px solid #b6e8c8;
}
.trend-worsened {
  background: #fdeaea;
  color: var(--rag-red);
  border: 1px solid #f9bebe;
}
.trend-stable {
  background: #f2f2f4;
  color: var(--silver);
  border: 1px solid #ddd;
}

/* ================================================================
   PRACTITIONER MODE — clinical notes panel (hidden from clients)
   Access via: ?practitioner=1 in the URL
   ================================================================ */
.pm-banner {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: #1a2340;
  border: 1.5px solid #3a4f8a;
  border-radius: 8px;
  padding: 0.6rem 1rem;
  margin-bottom: 1.2rem;
  font-size: 0.78rem;
  color: #8aabff;
  font-weight: 600;
  letter-spacing: 0.05em;
}
.pm-banner-icon { font-size: 1rem; }
.pm-banner-label { text-transform: uppercase; }

.pn-wrapper {
  border-top: 1px dashed #3a4f8a;
  margin-top: 1rem;
  padding-top: 0.75rem;
}
.pn-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #1a2340;
  border: 1px solid #3a4f8a;
  border-radius: 6px;
  color: #8aabff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.28rem 0.7rem;
  cursor: pointer;
  transition: background 0.15s;
}
.pn-toggle:hover { background: #23305e; }

.pn-body {
  display: none;
  margin-top: 0.7rem;
  background: #111827;
  border: 1px solid #2d3a5e;
  border-radius: 8px;
  padding: 0.9rem 1rem;
  color: #c9d8f0;
}
.pn-section { margin-bottom: 0.8rem; }
.pn-section:last-child { margin-bottom: 0; }
.pn-label {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #8aabff;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}
.pn-text { font-size: 0.78rem; line-height: 1.6; }
.pn-cols { display: flex; gap: 1rem; flex-wrap: wrap; }
.pn-col { flex: 1; min-width: 180px; }
.pn-list {
  margin: 0;
  padding-left: 1.2rem;
  font-size: 0.75rem;
  line-height: 1.7;
}
.pn-referral {
  background: rgba(220, 140, 0, 0.12);
  border: 1px solid rgba(220, 140, 0, 0.3);
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  margin-top: 0.7rem;
}
.pn-referral .pn-label { color: #f5a623; }
.pn-referral .pn-text { font-size: 0.76rem; line-height: 1.55; color: #f5d59a; }

/* Priority clinical actions card */
.pm-priority-card {
  background: #0f1729;
  border: 1.5px solid #2d3f70;
  border-radius: 10px;
  padding: 0 1.1rem 0.5rem;
  margin-bottom: 1.2rem;
  overflow: hidden;
}
.pm-priority-header {
  padding: 0.85rem 0 0.7rem;
  border-bottom: 1px solid #1e2d52;
  margin-bottom: 0.2rem;
}
.pm-priority-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: #8aabff;
  letter-spacing: 0.04em;
  margin-bottom: 0.2rem;
}
.pm-priority-sub {
  font-size: 0.7rem;
  color: #4a6090;
  letter-spacing: 0.02em;
}
.pm-priority-item {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  padding: 0.75rem 0;
  border-bottom: 1px solid #1a2440;
}
.pm-priority-item:last-child { border-bottom: none; }
.pm-priority-num {
  font-size: 1.4rem;
  font-weight: 900;
  color: #253766;
  min-width: 1.6rem;
  line-height: 1;
  padding-top: 0.15rem;
  text-align: center;
}
.pm-priority-content { flex: 1; min-width: 0; }
.pm-priority-module {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.35rem;
}
.pm-priority-modname {
  font-size: 0.82rem;
  font-weight: 700;
  color: #dce8ff;
}
.pm-priority-rag {
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.1rem 0.45rem;
  border-radius: 4px;
}
.pm-priority-rag-red   { background: rgba(239,68,68,0.18);  color: #f87171; }
.pm-priority-rag-amber { background: rgba(245,158,11,0.18); color: #fbbf24; }
.pm-priority-rag-green { background: rgba(34,197,94,0.18);  color: #4ade80; }
.pm-pct {
  font-size: 0.7rem;
  color: #3d5580;
  font-weight: 400;
}
.pm-rag-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.pm-rag-dot.pm-rag-red   { background: #ef4444; }
.pm-rag-dot.pm-rag-amber { background: #f59e0b; }
.pm-rag-dot.pm-rag-green { background: #22c55e; }
.pm-priority-actions {
  margin: 0;
  padding-left: 1.15rem;
  color: #8aabcc;
  font-size: 0.76rem;
  line-height: 1.7;
}

/* ---- Welcome screen skip note ---- */
.intro-skip-note {
  margin: 0.9rem 0 0.5rem;
  font-size: 0.85rem;
  color: var(--silver);
  line-height: 1.55;
  padding: 0.6rem 0.85rem;
  background: var(--off-white);
  border-radius: 6px;
}
