/* ═══════════════════════════════════════════════════════════
   PROGRAM HEALTH PULSE — style.css
   Brand colors: Forest Green #2D5016 · Amber #B85C00
   Fonts: Instrument Serif (display) · DM Sans (body)
═══════════════════════════════════════════════════════════ */

/* ─── Design Tokens ─── */
:root,
[data-theme='light'] {
  /* Type scale (fluid) */
  --text-xs:   clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem  + 0.35vw, 1rem);
  --text-base: clamp(1rem,     0.95rem + 0.25vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1rem    + 0.75vw, 1.5rem);
  --text-xl:   clamp(1.5rem,   1.2rem  + 1.25vw, 2.25rem);
  --text-2xl:  clamp(2rem,     1.2rem  + 2.5vw,  3.5rem);

  /* Spacing (4px base) */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Brand palette — Light mode */
  --color-primary:          #2D5016;
  --color-primary-hover:    #1e360e;
  --color-primary-active:   #142509;
  --color-primary-highlight:#d5e4c4;

  --color-accent:           #B85C00;
  --color-accent-hover:     #964a00;
  --color-accent-light:     #fff3e6;
  --color-accent-border:    #f4b26a;

  /* Score tier colors */
  --color-healthy:          #2D5016;
  --color-stable:           #B85C00;
  --color-attention:        #C45E00;
  --color-critical:         #B91C1C;

  /* Surfaces */
  --color-bg:               #F8F6F1;
  --color-surface:          #FFFFFF;
  --color-surface-2:        #F3F0EA;
  --color-surface-offset:   #EDE9E0;
  --color-border:           #D8D3C8;
  --color-divider:          #E4E0D6;

  /* Text */
  --color-text:             #1C1A15;
  --color-text-muted:       #6B6760;
  --color-text-faint:       #ABA89F;
  --color-text-inverse:     #F8F6F1;

  /* Component tokens */
  --color-answer-bg:        #FFFFFF;
  --color-answer-border:    #D8D3C8;
  --color-answer-hover-bg:  #F0EDE6;
  --color-answer-selected-bg: #E8F0DC;
  --color-answer-selected-border: #2D5016;

  /* Typography */
  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body:    'DM Sans', 'Helvetica Neue', sans-serif;

  /* Shape */
  --radius-sm:   0.375rem;
  --radius-md:   0.5rem;
  --radius-lg:   0.75rem;
  --radius-xl:   1rem;
  --radius-2xl:  1.5rem;
  --radius-full: 9999px;

  /* Motion */
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth:      240ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(28, 26, 21, 0.07);
  --shadow-md: 0 4px 16px rgba(28, 26, 21, 0.09);
  --shadow-lg: 0 12px 40px rgba(28, 26, 21, 0.12);

  /* Layout */
  --content-narrow:  600px;
  --content-default: 800px;
  --content-wide:    1100px;
}

/* ─── Dark Mode ─── */
[data-theme='dark'] {
  --color-primary:           #5c8f35;
  --color-primary-hover:     #4a7228;
  --color-primary-active:    #3a5a1e;
  --color-primary-highlight: #1a2e0a;

  --color-accent:            #e0893a;
  --color-accent-hover:      #c96e1e;
  --color-accent-light:      #1e1408;
  --color-accent-border:     #7a4010;

  --color-healthy:           #6aaa40;
  --color-stable:            #e0893a;
  --color-attention:         #e07030;
  --color-critical:          #e05555;

  --color-bg:                #1A2E0A;
  --color-surface:           #1E2D10;
  --color-surface-2:         #223215;
  --color-surface-offset:    #263819;
  --color-border:            #3a5020;
  --color-divider:           #2e4418;

  --color-text:              #dfe8d4;
  --color-text-muted:        #8fa87a;
  --color-text-faint:        #556843;
  --color-text-inverse:      #1A2E0A;

  --color-answer-bg:         #1E2D10;
  --color-answer-border:     #3a5020;
  --color-answer-hover-bg:   #263819;
  --color-answer-selected-bg: #2a4018;
  --color-answer-selected-border: #6aaa40;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.45);
}

/* System preference fallback */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-primary:           #5c8f35;
    --color-primary-hover:     #4a7228;
    --color-primary-active:    #3a5a1e;
    --color-primary-highlight: #1a2e0a;
    --color-accent:            #e0893a;
    --color-accent-hover:      #c96e1e;
    --color-accent-light:      #1e1408;
    --color-accent-border:     #7a4010;
    --color-healthy:           #6aaa40;
    --color-stable:            #e0893a;
    --color-attention:         #e07030;
    --color-critical:          #e05555;
    --color-bg:                #1A2E0A;
    --color-surface:           #1E2D10;
    --color-surface-2:         #223215;
    --color-surface-offset:    #263819;
    --color-border:            #3a5020;
    --color-divider:           #2e4418;
    --color-text:              #dfe8d4;
    --color-text-muted:        #8fa87a;
    --color-text-faint:        #556843;
    --color-text-inverse:      #1A2E0A;
    --color-answer-bg:         #1E2D10;
    --color-answer-border:     #3a5020;
    --color-answer-hover-bg:   #263819;
    --color-answer-selected-bg: #2a4018;
    --color-answer-selected-border: #6aaa40;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.25);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.45);
  }
}

/* ═══════════════════════════════════════════
   BASE RESET
═══════════════════════════════════════════ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  hanging-punctuation: first last;
}

body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background-color: var(--color-bg);
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

ul[role='list'],
ol[role='list'] {
  list-style: none;
}

input, button, textarea, select {
  font: inherit;
  color: inherit;
}

h1, h2, h3, h4, h5, h6 {
  text-wrap: balance;
  line-height: 1.2;
}

p, li, figcaption {
  text-wrap: pretty;
}

button {
  cursor: pointer;
  background: none;
  border: none;
}

a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--transition-interactive);
}

a:hover {
  color: var(--color-primary-hover);
}

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

a, button, [role='button'] {
  transition:
    color var(--transition-interactive),
    background var(--transition-interactive),
    border-color var(--transition-interactive),
    box-shadow var(--transition-interactive),
    opacity var(--transition-interactive);
}

::selection {
  background: color-mix(in srgb, var(--color-primary) 20%, transparent);
  color: var(--color-text);
}

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ═══════════════════════════════════════════
   LAYOUT
═══════════════════════════════════════════ */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-12) var(--space-6);
}

/* ═══════════════════════════════════════════
   HEADER
═══════════════════════════════════════════ */
.site-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-divider);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.header-inner {
  max-width: var(--content-wide);
  margin: 0 auto;
  padding: var(--space-4) var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.logo-link {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  text-decoration: none;
  color: var(--color-text);
}

.logo-svg {
  width: 120px;
  height: 44px;
  flex-shrink: 0;
  color: var(--color-text);
}

.logo-text {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.logo-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  line-height: 1.1;
  color: var(--color-text);
  font-style: italic;
}

.logo-sub {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.4;
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  color: var(--color-text-muted);
  flex-shrink: 0;
}

.theme-toggle:hover {
  background: var(--color-surface-2);
  color: var(--color-text);
}

/* ═══════════════════════════════════════════
   PANELS (state machine)
═══════════════════════════════════════════ */
.panel {
  display: none;
  width: 100%;
  max-width: var(--content-default);
  animation: panelFadeIn 0.35s ease forwards;
}

.panel.active {
  display: block;
}

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

/* ═══════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-8);
  border-radius: var(--radius-lg);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  border-color: var(--color-primary);
}

.btn-primary:hover {
  background: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
  box-shadow: var(--shadow-md);
}

.btn-primary:active {
  background: var(--color-primary-active);
  border-color: var(--color-primary-active);
}

.btn-secondary {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}

.btn-secondary:hover {
  background: var(--color-surface-2);
  border-color: var(--color-text-muted);
}

.btn-lg {
  padding: var(--space-5) var(--space-10);
  font-size: var(--text-base);
  border-radius: var(--radius-xl);
}

/* ═══════════════════════════════════════════
   LANDING PANEL
═══════════════════════════════════════════ */
.panel-landing {
  padding: var(--space-16) 0;
}

.landing-inner {
  max-width: 580px;
  margin: 0 auto;
  text-align: center;
}

.landing-badge {
  display: inline-block;
  background: var(--color-primary-highlight);
  color: var(--color-primary);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-6);
}

[data-theme='dark'] .landing-badge {
  background: color-mix(in srgb, var(--color-primary) 25%, transparent);
  color: var(--color-primary);
}

.landing-headline {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-style: italic;
  color: var(--color-text);
  margin-bottom: var(--space-6);
  line-height: 1.1;
}

.landing-subhead {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  margin-bottom: var(--space-10);
  max-width: 48ch;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

.landing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-bottom: var(--space-10);
  text-align: left;
  display: inline-flex;
}

.landing-features li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 100%;
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  background: var(--color-primary-highlight);
  color: var(--color-primary);
  flex-shrink: 0;
}

[data-theme='dark'] .feature-icon {
  background: color-mix(in srgb, var(--color-primary) 25%, transparent);
}

/* ═══════════════════════════════════════════
   QUIZ PANEL
═══════════════════════════════════════════ */
.panel-quiz {
  padding: var(--space-8) 0 var(--space-16);
}

/* Progress bar */
.progress-container {
  margin-bottom: var(--space-10);
}

.progress-track {
  width: 100%;
  height: 6px;
  background: var(--color-surface-offset);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: var(--space-3);
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: var(--color-primary);
  border-radius: var(--radius-full);
  transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.progress-label {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-muted);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* Question card */
.question-card {
  background: var(--color-surface);
  border-radius: var(--radius-2xl);
  padding: var(--space-10) var(--space-10);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
  animation: slideInRight 0.32s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(28px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes slideOutLeft {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(-28px); }
}

.question-card.exiting {
  animation: slideOutLeft 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.question-category {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-4);
}

.question-text {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-style: italic;
  color: var(--color-text);
  margin-bottom: var(--space-8);
  line-height: 1.25;
}

/* Answer options */
.answer-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.answer-option {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  background: var(--color-answer-bg);
  border: 2px solid var(--color-answer-border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  text-align: left;
  transition:
    background var(--transition-interactive),
    border-color var(--transition-interactive),
    box-shadow var(--transition-interactive);
  width: 100%;
  position: relative;
}

.answer-option:hover {
  background: var(--color-answer-hover-bg);
  border-color: var(--color-text-muted);
  box-shadow: var(--shadow-sm);
}

.answer-option.selected {
  background: var(--color-answer-selected-bg);
  border-color: var(--color-answer-selected-border);
  box-shadow: var(--shadow-sm);
}

.answer-option.selected .answer-letter {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  border-color: var(--color-primary);
}

.answer-letter {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  border: 2px solid var(--color-border);
  background: var(--color-surface-2);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-text-muted);
  flex-shrink: 0;
  margin-top: 1px;
  transition:
    background var(--transition-interactive),
    color var(--transition-interactive),
    border-color var(--transition-interactive);
}

.answer-text {
  font-size: var(--text-base);
  color: var(--color-text);
  line-height: 1.5;
  padding-top: 3px;
}

/* Input radio hidden — keyboard accessible via button role */
.answer-option[role="radio"][aria-checked="true"] {
  /* already styled via .selected */
}

/* ═══════════════════════════════════════════
   RESULTS PANEL
═══════════════════════════════════════════ */
.panel-results {
  padding: var(--space-8) 0 var(--space-16);
  display: none;
  flex-direction: column;
  gap: var(--space-10);
}

.panel-results.active {
  display: flex;
}

/* ── Score Gauge ── */
.results-gauge-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-6);
  padding: var(--space-10) var(--space-6);
  background: var(--color-surface);
  border-radius: var(--radius-2xl);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
  text-align: center;
}

.gauge-wrapper {
  width: 100%;
  max-width: 280px;
}

.gauge-svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.gauge-track {
  stroke: var(--color-surface-offset);
  stroke-linecap: round;
}

.gauge-fill {
  stroke: var(--color-primary);
  stroke-linecap: round;
  transition: stroke var(--transition-smooth);
  /* stroke-dasharray and stroke-dashoffset set by JS */
}

.gauge-score-text {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 400;
  fill: var(--color-text);
}

.gauge-out-of {
  font-family: var(--font-body);
  font-size: 0.75rem;
  fill: var(--color-text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.score-tier-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
}

.score-tier-label {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-style: italic;
  font-weight: 400;
  line-height: 1;
}

/* Tier color classes applied by JS */
.tier-healthy  { color: var(--color-healthy); }
.tier-stable   { color: var(--color-stable); }
.tier-attention{ color: var(--color-attention); }
.tier-critical { color: var(--color-critical); }

.score-tier-interpretation {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 42ch;
  line-height: 1.5;
}

/* ── Results sections ── */
.results-section {
  background: var(--color-surface);
  border-radius: var(--radius-2xl);
  padding: var(--space-8) var(--space-8);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.results-section-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-style: italic;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.results-section-subtitle {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
}

.results-section-title + .category-bars {
  margin-top: var(--space-6);
}

/* ── Category bars ── */
.category-bars {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  margin-top: var(--space-6);
}

.category-bar-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.category-bar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.category-bar-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
}

.category-bar-score {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-text-muted);
  font-variant-numeric: tabular-nums;
}

.category-bar-track {
  width: 100%;
  height: 10px;
  background: var(--color-surface-offset);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.category-bar-fill {
  height: 100%;
  width: 0%;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  transition: width 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Recommendations ── */
.categories-section .results-section-title {
  margin-bottom: var(--space-2);
}

.recommendations-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.recommendation-item {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}

.rec-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--color-primary-highlight);
  color: var(--color-primary);
  font-size: var(--text-sm);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

[data-theme='dark'] .rec-number {
  background: color-mix(in srgb, var(--color-primary) 25%, transparent);
}

.rec-label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-1);
}

.rec-text {
  font-size: var(--text-base);
  color: var(--color-text);
  line-height: 1.6;
  max-width: 62ch;
}

/* ── Hiring Callout ── */
.hiring-callout {
  border-left: 4px solid var(--color-accent);
  background: var(--color-accent-light);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  padding: var(--space-6) var(--space-8);
}

[data-theme='dark'] .hiring-callout {
  background: color-mix(in srgb, var(--color-accent) 12%, transparent);
}

.hiring-callout-label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-3);
}

.hiring-callout p {
  font-size: var(--text-base);
  color: var(--color-text);
  line-height: 1.6;
  max-width: 64ch;
}

/* ── Results Actions ── */
.results-actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  justify-content: center;
}

/* ── Share toast ── */
.share-toast {
  position: fixed;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--color-text);
  color: var(--color-bg);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
  opacity: 0;
  pointer-events: none;
  z-index: 200;
  white-space: nowrap;
}

.share-toast.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ═══════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════ */
.site-footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-divider);
  padding: var(--space-8) var(--space-6);
  text-align: center;
}

.footer-inner {
  max-width: var(--content-wide);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer-inner p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  max-width: 100%;
}

.footer-meta {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  letter-spacing: 0.04em;
}

.site-footer a {
  color: var(--color-primary);
  font-weight: 600;
}

/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */
@media (max-width: 640px) {
  .main-content {
    padding: var(--space-8) var(--space-4);
  }

  .header-inner {
    padding: var(--space-3) var(--space-4);
  }

  .logo-sub {
    display: none;
  }

  .logo-svg {
    width: 90px;
    height: 33px;
  }

  .question-card {
    padding: var(--space-6) var(--space-5);
    border-radius: var(--radius-xl);
  }

  .results-section {
    padding: var(--space-6) var(--space-5);
    border-radius: var(--radius-xl);
  }

  .results-gauge-section {
    padding: var(--space-8) var(--space-5);
    border-radius: var(--radius-xl);
  }

  .landing-features {
    display: flex;
    align-items: flex-start;
    padding: 0 var(--space-4);
  }

  .hiring-callout {
    padding: var(--space-5) var(--space-5);
  }

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

  .btn {
    justify-content: center;
  }

  .question-text {
    font-size: clamp(1.2rem, 4vw, 1.6rem);
  }
}

@media (min-width: 768px) {
  .results-gauge-section {
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: var(--space-10);
    padding: var(--space-10) var(--space-12);
  }

  .gauge-wrapper {
    max-width: 240px;
    flex-shrink: 0;
  }

  .score-tier-block {
    align-items: flex-start;
  }
}
