/* ============================================================
   LEADERSHIP PULSE 2026 — design tokens
   Warm, human-centered, executive-grade. Terracotta + ivory.
   ============================================================ */

:root {
  /* Type scale */
  --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);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 4.75rem);
  --text-hero: clamp(2.75rem, 0.9rem + 5.5vw, 6.5rem);

  /* Spacing */
  --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;
  --space-32: 8rem;

  --radius-sm: 0.375rem;
  --radius-md: 0.625rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;

  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);
  --ease-golden: cubic-bezier(0.16, 1, 0.3, 1);

  --content-narrow: 640px;
  --content-default: 880px;
  --content-wide: 1200px;
  --content-full: 100%;

  --font-display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --font-body: 'Switzer', 'Segoe UI', system-ui, sans-serif;
}

/* ---------- LIGHT MODE (default) ---------- */
:root,
[data-theme='light'] {
  --color-bg: #f6f1e6;
  --color-surface: #fffdf8;
  --color-surface-2: #fbf6ea;
  --color-surface-offset: #efe4cd;
  --color-surface-offset-2: #e7d8b8;
  --color-surface-dynamic: #e0cfa9;
  --color-divider: #e2d3ac;
  --color-border: #d7c39a;

  --color-text: #251f14;
  --color-text-muted: #6c6250;
  --color-text-faint: #a89a7c;
  --color-text-inverse: #fbf6ea;

  --color-primary: #b1531f;
  --color-primary-hover: #904317;
  --color-primary-active: #723513;
  --color-primary-highlight: #ecd2bd;

  --color-warning: #a3761b;
  --color-warning-hover: #815d13;
  --color-warning-highlight: #e6d6ae;

  --color-error: #a53c3c;
  --color-error-hover: #832f2f;
  --color-error-highlight: #e6cccc;

  --color-success: #4c7a4a;
  --color-success-hover: #3a5f38;
  --color-success-highlight: #d5e2d0;

  --color-teal: #2b6e70;
  --color-teal-hover: #1f5254;
  --color-teal-highlight: #cfe0e0;

  --color-plum: #7a4a6c;
  --color-plum-hover: #613a56;
  --color-plum-highlight: #e3d2dd;

  --color-gold: #bf8f2a;
  --color-gold-hover: #9c751f;
  --color-gold-highlight: #ecdfb9;

  --shadow-sm: 0 1px 2px oklch(0.25 0.03 55 / 0.08);
  --shadow-md: 0 6px 16px oklch(0.25 0.03 55 / 0.1);
  --shadow-lg: 0 16px 40px oklch(0.25 0.03 55 / 0.16);
}

/* ---------- DARK MODE ---------- */
[data-theme='dark'] {
  --color-bg: #1a1510;
  --color-surface: #211a13;
  --color-surface-2: #261e15;
  --color-surface-offset: #2c2217;
  --color-surface-offset-2: #35291a;
  --color-surface-dynamic: #40311d;
  --color-divider: #3a2e1c;
  --color-border: #493a22;

  --color-text: #f0e6d3;
  --color-text-muted: #b3a488;
  --color-text-faint: #7a6d55;
  --color-text-inverse: #241d13;

  --color-primary: #e08a4c;
  --color-primary-hover: #eda06a;
  --color-primary-active: #f2b083;
  --color-primary-highlight: #4a3626;

  --color-warning: #d3ac52;
  --color-warning-hover: #ddbd6f;
  --color-warning-highlight: #453a20;

  --color-error: #cf7070;
  --color-error-hover: #d98a8a;
  --color-error-highlight: #4a2b2b;

  --color-success: #82ab7c;
  --color-success-hover: #99bd94;
  --color-success-highlight: #2c3a29;

  --color-teal: #63aeb0;
  --color-teal-hover: #82c1c3;
  --color-teal-highlight: #23393a;

  --color-plum: #b784a6;
  --color-plum-hover: #c69cb9;
  --color-plum-highlight: #3a2c35;

  --color-gold: #e0b957;
  --color-gold-hover: #e8c877;
  --color-gold-highlight: #423521;

  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.3);
  --shadow-md: 0 6px 16px oklch(0 0 0 / 0.35);
  --shadow-lg: 0 16px 40px oklch(0 0 0 / 0.5);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --color-bg: #1a1510;
    --color-surface: #211a13;
    --color-surface-2: #261e15;
    --color-surface-offset: #2c2217;
    --color-surface-offset-2: #35291a;
    --color-surface-dynamic: #40311d;
    --color-divider: #3a2e1c;
    --color-border: #493a22;
    --color-text: #f0e6d3;
    --color-text-muted: #b3a488;
    --color-text-faint: #7a6d55;
    --color-text-inverse: #241d13;
    --color-primary: #e08a4c;
    --color-primary-hover: #eda06a;
    --color-primary-active: #f2b083;
    --color-primary-highlight: #4a3626;
    --color-warning: #d3ac52;
    --color-error: #cf7070;
    --color-success: #82ab7c;
    --color-teal: #63aeb0;
    --color-plum: #b784a6;
    --color-gold: #e0b957;
    --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.3);
    --shadow-md: 0 6px 16px oklch(0 0 0 / 0.35);
    --shadow-lg: 0 16px 40px oklch(0 0 0 / 0.5);
  }
}

/* ============================================================
   Layout primitives
   ============================================================ */

.wrap {
  width: 100%;
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-6);
}
.wrap--narrow {
  max-width: var(--content-default);
}

section {
  padding-block: clamp(var(--space-16), 9vw, var(--space-24));
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
}
.eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
}
.eyebrow--sentence {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 600;
  font-size: var(--text-sm);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  color: var(--color-text);
}

/* ============================================================
   Header
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: oklch(from var(--color-bg) l c h / 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--color-divider);
  transition:
    transform 0.35s var(--ease-golden),
    box-shadow 0.35s var(--ease-golden);
}
.site-header--hidden {
  transform: translateY(-100%);
}
.site-header--scrolled {
  box-shadow: var(--shadow-sm);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--space-4);
}
.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--color-text);
}
.brand svg {
  width: 34px;
  height: 34px;
  color: var(--color-primary);
  flex-shrink: 0;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand-name {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
}
.brand-sub {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  letter-spacing: 0.03em;
  white-space: nowrap;
}
@media (max-width: 480px) {
  .brand-sub {
    display: none;
  }
}
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}
.btn.header-cta {
  display: none;
}
@media (min-width: 720px) {
  .btn.header-cta {
    display: inline-flex;
  }
}

.theme-toggle {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  background: var(--color-surface);
}
.theme-toggle:hover {
  color: var(--color-primary);
  border-color: var(--color-primary);
}

/* ============================================================
   Buttons
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-full);
  white-space: nowrap;
  border: 1px solid transparent;
  text-decoration: none;
}
.btn-primary {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--color-primary-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.btn-secondary {
  background: transparent;
  border-color: var(--color-border);
  color: var(--color-text);
}
.btn-secondary:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.btn-ghost {
  background: transparent;
  color: var(--color-text-muted);
  padding-inline: var(--space-3);
}
.btn-ghost:hover {
  color: var(--color-primary);
}
.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none !important;
}
.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
}

/* ============================================================
   Hero
   ============================================================ */

.hero {
  padding-top: clamp(var(--space-16), 10vw, var(--space-24));
  padding-bottom: clamp(var(--space-12), 6vw, var(--space-20));
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  gap: var(--space-12);
  align-items: center;
}
@media (min-width: 980px) {
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
}
.hero-copy h1 {
  font-size: var(--text-hero);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-block: var(--space-5) var(--space-6);
}
.hero-copy h1 em {
  font-style: italic;
  color: var(--color-primary);
}
.hero-copy p.lede {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 46ch;
  margin-bottom: var(--space-8);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
  margin-bottom: var(--space-4);
}
.hero-meta {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

.hero-mark {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  max-width: 420px;
  margin-inline: auto;
}
.hero-mark svg {
  width: 100%;
  height: 100%;
}

/* Stat strip */
.stat-strip {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin-top: var(--space-16);
}
.stat-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}
.stat-card .stat-value {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--color-primary);
  font-variant-numeric: tabular-nums lining-nums;
  line-height: 1;
}
.stat-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-2);
}
.stat-card .src {
  display: block;
  margin-top: var(--space-3);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}
.stat-card .src a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--color-border);
}

/* ============================================================
   Section headings
   ============================================================ */

.section-head {
  max-width: 62ch;
  margin-bottom: var(--space-12);
}
.section-head h2 {
  font-size: var(--text-2xl);
  font-weight: 500;
  margin-top: var(--space-3);
}
.section-head p {
  color: var(--color-text-muted);
  font-size: var(--text-base);
  margin-top: var(--space-4);
}

/* ============================================================
   Assessment
   ============================================================ */

.assessment {
  background: var(--color-surface-2);
  border-top: 1px solid var(--color-divider);
  border-bottom: 1px solid var(--color-divider);
}

.assess-shell {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.assess-progress {
  padding: var(--space-6) var(--space-8) 0;
}
.progress-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: var(--space-3);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.progress-top strong {
  color: var(--color-text);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  text-transform: none;
  letter-spacing: 0;
}
.progress-track {
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--color-surface-offset);
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--color-primary), var(--color-gold));
  transition: width 0.5s var(--ease-golden);
  width: 0%;
}
.progress-dots {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-5);
  padding-bottom: var(--space-2);
}
@media (max-width: 560px) {
  .progress-dots {
    display: none;
  }
}
.progress-dot {
  flex: 1;
  text-align: center;
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  padding-bottom: var(--space-2);
  border-bottom: 2px solid var(--color-divider);
  transition: all 0.3s var(--ease-golden);
}
.progress-dot.is-active {
  color: var(--color-primary);
  border-color: var(--color-primary);
  font-weight: 600;
}
.progress-dot.is-done {
  color: var(--color-text-muted);
  border-color: var(--color-success);
}

.assess-body {
  padding: var(--space-8);
}
@media (min-width: 720px) {
  .assess-body {
    padding: var(--space-10) var(--space-12);
  }
}

.step {
  display: none;
  animation: fadeUp 0.4s var(--ease-golden);
}
.step.is-active {
  display: block;
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.step-head {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}
.step-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  background: var(--color-primary-highlight);
  color: var(--color-primary);
}
.step-icon svg {
  width: 22px;
  height: 22px;
}
.step-head h3 {
  font-size: var(--text-xl);
  font-weight: 500;
}
.step-head p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  margin-top: var(--space-1);
}

.question {
  margin-bottom: var(--space-8);
}
.question:last-child {
  margin-bottom: 0;
}
.question-text {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-base);
  margin-bottom: var(--space-4);
}
.options {
  display: grid;
  gap: var(--space-2);
}
.option {
  position: relative;
}
.option input {
  position: absolute;
  opacity: 0;
  inset: 0;
  cursor: pointer;
}
.option label {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface-2);
  font-size: var(--text-sm);
  cursor: pointer;
}
.option label::before {
  content: '';
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--color-border);
  flex-shrink: 0;
  transition: all 0.2s var(--ease-golden);
}
.option input:checked + label {
  border-color: var(--color-primary);
  background: var(--color-primary-highlight);
  color: var(--color-text);
}
.option input:checked + label::before {
  border-color: var(--color-primary);
  border-width: 5px;
}
.option input:focus-visible + label {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}
.option label:hover {
  border-color: var(--color-primary);
}

.step-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--space-10);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-divider);
}
.step-nav-hint {
  font-size: var(--text-xs);
  color: var(--color-error);
  visibility: hidden;
}
.step-nav-hint.show {
  visibility: visible;
}

/* ============================================================
   Lead Gate
   ============================================================ */

.lead-gate {
  display: none;
  background: var(--color-surface-2);
  border-top: 1px solid var(--color-divider);
  border-bottom: 1px solid var(--color-divider);
}
.lead-gate.is-active {
  display: block;
}
.lead-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  padding: var(--space-10) var(--space-8);
  text-align: center;
}
@media (min-width: 640px) {
  .lead-card {
    padding: var(--space-12) var(--space-16);
  }
}
.lead-card .eyebrow {
  justify-content: center;
}
.lead-card h2 {
  font-size: var(--text-xl);
  font-weight: 500;
  margin-top: var(--space-3);
  margin-bottom: var(--space-3);
}
.lead-intro {
  color: var(--color-text-muted);
  max-width: 52ch;
  margin-inline: auto;
  margin-bottom: var(--space-8);
}

.lead-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: var(--space-8);
}
.lead-preview-dial {
  position: relative;
  display: grid;
  place-items: center;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: conic-gradient(var(--color-primary) 0turn, var(--color-surface-offset) 0turn);
  margin-bottom: var(--space-3);
}
.lead-preview-num {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-text);
  filter: blur(6px);
  user-select: none;
}
.lead-preview-lock {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--color-text-inverse);
  background: oklch(from var(--color-text) l c h / 0.32);
  border-radius: 50%;
}
.lead-preview-lock svg {
  width: 22px;
  height: 22px;
}
.lead-preview p {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

#leadForm {
  max-width: 480px;
  margin-inline: auto;
  text-align: left;
}
.lead-fields {
  display: grid;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}
@media (min-width: 560px) {
  .lead-fields {
    grid-template-columns: 1fr 1fr;
  }
}
.field label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}
.field label span {
  font-weight: 400;
  color: var(--color-text-faint);
}
.field input {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface-2);
  font-size: var(--text-sm);
  color: var(--color-text);
}
.field input:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 1px;
  border-color: var(--color-primary);
}
.field input.is-invalid {
  border-color: var(--color-error);
}

.lead-consent {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin-bottom: var(--space-2);
}
.lead-consent input[type='checkbox'] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--color-primary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
}
.lead-consent label {
  font-size: var(--text-sm);
  color: var(--color-text);
  cursor: pointer;
}
.lead-consent-note {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  margin-bottom: var(--space-6);
  margin-left: calc(18px + var(--space-3));
}

#leadForm .btn {
  width: 100%;
}
.lead-fine {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  text-align: center;
  margin-top: var(--space-4);
}
.lead-error {
  font-size: var(--text-xs);
  color: var(--color-error);
  text-align: center;
  margin-top: var(--space-3);
  min-height: 1em;
}

/* ============================================================
   Results
   ============================================================ */

.results {
  display: none;
}
.results.is-active {
  display: block;
}

.results-summary {
  display: grid;
  gap: var(--space-8);
  align-items: center;
  margin-bottom: var(--space-16);
}
@media (min-width: 900px) {
  .results-summary {
    grid-template-columns: 0.8fr 1.2fr;
  }
}

.score-dial {
  position: relative;
  width: 240px;
  height: 240px;
  margin-inline: auto;
  display: grid;
  place-items: center;
}
.score-dial svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.score-dial-track {
  fill: none;
  stroke: var(--color-surface-offset);
  stroke-width: 10;
}
.score-dial-fill {
  fill: none;
  stroke: var(--color-primary);
  stroke-width: 10;
  stroke-linecap: round;
  transition: stroke-dashoffset 1.1s var(--ease-golden);
}
.score-dial-label {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.score-dial-label .num {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-variant-numeric: tabular-nums;
  color: var(--color-text);
  line-height: 1;
}
.score-dial-label .of {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  margin-top: var(--space-1);
}

.band-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: var(--space-4);
}
.band-badge.band-crisis {
  background: var(--color-error-highlight);
  color: var(--color-error);
}
.band-badge.band-risk {
  background: var(--color-warning-highlight);
  color: var(--color-warning);
}
.band-badge.band-momentum {
  background: var(--color-teal-highlight);
  color: var(--color-teal);
}
.band-badge.band-thriving {
  background: var(--color-success-highlight);
  color: var(--color-success);
}

.results-headline h3 {
  font-size: var(--text-xl);
  font-weight: 500;
  margin-bottom: var(--space-3);
}
.results-headline p {
  color: var(--color-text-muted);
}

/* Category breakdown + chart */
.results-grid {
  display: grid;
  gap: var(--space-10);
  margin-bottom: var(--space-16);
}
@media (min-width: 980px) {
  .results-grid {
    grid-template-columns: 0.85fr 1.15fr;
    align-items: start;
  }
}
.chart-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
}
.chart-card h4 {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}

.cat-list {
  display: grid;
  gap: var(--space-4);
}
.cat-row {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-6);
}
.cat-row-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: var(--space-3);
  gap: var(--space-4);
}
.cat-row-top .name {
  font-weight: 600;
  font-size: var(--text-sm);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.cat-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.cat-row-top .pct {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-variant-numeric: tabular-nums;
}
.cat-bar-track {
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--color-surface-offset);
  overflow: hidden;
  margin-bottom: var(--space-3);
}
.cat-bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
  width: 0%;
  transition: width 1s var(--ease-golden);
}
.cat-row p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* Recommendations */
.reco-list {
  display: grid;
  gap: var(--space-6);
}
.reco-card {
  display: grid;
  gap: var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  position: relative;
  overflow: hidden;
}
@media (min-width: 720px) {
  .reco-card {
    grid-template-columns: auto 1fr;
    align-items: start;
  }
}
.reco-card.is-primary {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
}
.reco-tag {
  position: absolute;
  top: var(--space-6);
  right: var(--space-6);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-primary);
  background: var(--color-primary-highlight);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
}
.reco-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--color-surface-offset);
  display: grid;
  place-items: center;
  color: var(--color-primary);
}
.reco-icon svg {
  width: 26px;
  height: 26px;
}
.reco-card h4 {
  font-size: var(--text-lg);
  font-weight: 500;
  margin-bottom: var(--space-2);
  padding-right: var(--space-16);
}
.reco-card p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  margin-bottom: var(--space-3);
}
.reco-why {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  border-top: 1px solid var(--color-divider);
  padding-top: var(--space-3);
}
.reco-why strong {
  color: var(--color-text-muted);
}

/* Results CTA */
.results-cta {
  background: linear-gradient(135deg, var(--color-primary-highlight), var(--color-surface-2));
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-10);
  text-align: center;
}
.results-cta h3 {
  font-size: var(--text-xl);
  font-weight: 500;
  margin-bottom: var(--space-3);
}
.results-cta p {
  color: var(--color-text-muted);
  max-width: 56ch;
  margin-inline: auto;
  margin-bottom: var(--space-6);
}
.results-cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-4);
}

/* ============================================================
   About / footer
   ============================================================ */

.about {
  display: grid;
  gap: var(--space-10);
  align-items: center;
}
@media (min-width: 900px) {
  .about {
    grid-template-columns: auto 1fr;
  }
}
.about-portrait {
  width: 140px;
  height: 140px;
  border-radius: var(--radius-full);
  background: var(--color-surface-offset);
  display: grid;
  place-items: center;
  color: var(--color-primary);
  margin-inline: auto;
}
.about-portrait svg {
  width: 60px;
  height: 60px;
}
.about-copy h3 {
  font-size: var(--text-xl);
  font-weight: 500;
  margin-bottom: var(--space-3);
}
.about-copy p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}
.about-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}
.about-links a {
  font-size: var(--text-sm);
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
}
.about-links a:hover {
  text-decoration: underline;
}

.sources {
  background: var(--color-surface-2);
  border-top: 1px solid var(--color-divider);
}
.sources h4 {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}
.sources ol {
  display: grid;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}
.sources ol li {
  max-width: none;
}
.sources a {
  color: var(--color-text-muted);
  text-decoration: underline;
  text-decoration-color: var(--color-border);
  word-break: break-word;
}

.site-footer {
  border-top: 1px solid var(--color-divider);
  padding-block: var(--space-8);
}
.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}
.footer-row a {
  color: var(--color-text-faint);
}

/* ============================================================
   Utility
   ============================================================ */

.visually-hidden-mobile {
  display: none;
}
@media (min-width: 640px) {
  .visually-hidden-mobile {
    display: inline;
  }
}
