/* ===========================================
   Meeting Saboteur Identifier — style.css
   =========================================== */

/* --- Design Tokens --- */
: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,    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 */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

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

  /* Content widths */
  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1200px;

  /* Fonts */
  --font-display: 'Cabinet Grotesk', 'Inter', sans-serif;
  --font-body: 'Satoshi', 'Inter', sans-serif;
}

/* --- Light Theme --- */
:root, [data-theme="light"] {
  --color-bg: #f7f6f2;
  --color-surface: #f9f8f5;
  --color-surface-2: #fbfbf9;
  --color-surface-offset: #f3f0ec;
  --color-border: #d4d1ca;
  --color-divider: #dcd9d5;
  --color-text: #28251d;
  --color-text-muted: #7a7974;
  --color-text-faint: #bab9b4;
  --color-text-inverse: #f9f8f4;
  --color-primary: #01696f;
  --color-primary-hover: #0c4e54;
  --color-primary-active: #0f3638;
  --color-primary-highlight: #cedcd8;
  --color-success: #437a22;
  --color-warning: #964219;
  --color-error: #a12c7b;

  /* Archetype Colors */
  --color-hijacker: #8b2332;
  --color-silent-blocker: #4a5568;
  --color-status-quo: #92660a;
  --color-credit-thief: #b8860b;
  --color-tangent-king: #7a39bb;
  --color-decision-avoider: #006494;
  --color-ppt-abuser: #da7101;

  /* Shadows */
  --shadow-sm: 0 1px 2px oklch(0.2 0.01 80 / 0.06);
  --shadow-md: 0 4px 12px oklch(0.2 0.01 80 / 0.08);
  --shadow-lg: 0 12px 32px oklch(0.2 0.01 80 / 0.12);
}

/* --- Dark Theme --- */
[data-theme="dark"] {
  --color-bg: #171614;
  --color-surface: #1c1b19;
  --color-surface-2: #201f1d;
  --color-surface-offset: #1d1c1a;
  --color-border: #393836;
  --color-divider: #262523;
  --color-text: #cdccca;
  --color-text-muted: #797876;
  --color-text-faint: #5a5957;
  --color-text-inverse: #2b2a28;
  --color-primary: #4f98a3;
  --color-primary-hover: #227f8b;
  --color-primary-active: #1a626b;
  --color-primary-highlight: #313b3b;
  --color-success: #6daa45;
  --color-warning: #bb653b;
  --color-error: #d163a7;

  /* Archetype Colors — Dark */
  --color-hijacker: #d46b7a;
  --color-silent-blocker: #8a9bb0;
  --color-status-quo: #c49a3d;
  --color-credit-thief: #e0b84d;
  --color-tangent-king: #a86fdf;
  --color-decision-avoider: #5591c7;
  --color-ppt-abuser: #fdab43;

  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.2);
  --shadow-md: 0 4px 12px oklch(0 0 0 / 0.3);
  --shadow-lg: 0 12px 32px oklch(0 0 0 / 0.4);
}

/* System preference fallback */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg: #171614;
    --color-surface: #1c1b19;
    --color-surface-2: #201f1d;
    --color-surface-offset: #1d1c1a;
    --color-border: #393836;
    --color-divider: #262523;
    --color-text: #cdccca;
    --color-text-muted: #797876;
    --color-text-faint: #5a5957;
    --color-text-inverse: #2b2a28;
    --color-primary: #4f98a3;
    --color-primary-hover: #227f8b;
    --color-primary-active: #1a626b;
    --color-primary-highlight: #313b3b;
    --color-success: #6daa45;
    --color-warning: #bb653b;
    --color-error: #d163a7;
    --color-hijacker: #d46b7a;
    --color-silent-blocker: #8a9bb0;
    --color-status-quo: #c49a3d;
    --color-credit-thief: #e0b84d;
    --color-tangent-king: #a86fdf;
    --color-decision-avoider: #5591c7;
    --color-ppt-abuser: #fdab43;
    --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.2);
    --shadow-md: 0 4px 12px oklch(0 0 0 / 0.3);
    --shadow-lg: 0 12px 32px oklch(0 0 0 / 0.4);
  }
}

/* ============================
   LAYOUT
   ============================ */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-6);
  border-bottom: 1px solid var(--color-divider);
  background: var(--color-surface);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.site-header .logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-sm);
  letter-spacing: -0.01em;
}

.site-header .tool-name {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  display: none;
}

@media (min-width: 640px) {
  .site-header .tool-name {
    display: block;
  }
}

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

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

.site-footer {
  padding: var(--space-8) var(--space-6);
  text-align: center;
  border-top: 1px solid var(--color-divider);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.site-footer a {
  color: var(--color-text-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

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

/* ============================
   SECTIONS (screens)
   ============================ */

.screen {
  display: none;
  min-height: calc(100dvh - 60px);
}

.screen.active {
  display: flex;
  flex-direction: column;
}

/* ============================
   LANDING SCREEN
   ============================ */

.landing {
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-10) var(--space-6);
  gap: var(--space-8);
}

.landing-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: var(--color-surface-offset);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-family: var(--font-body);
  font-weight: 500;
}

.landing h1 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.05;
  max-width: 16ch;
  color: var(--color-text);
}

.landing h1 span {
  color: var(--color-primary);
}

.landing-subtitle {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 36ch;
  line-height: 1.5;
}

.landing-source {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  font-style: italic;
}

/* Archetype icons row */
.archetype-icons-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
  max-width: 500px;
}

.archetype-icon-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
  width: 56px;
}

.archetype-icon-preview .icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.archetype-icon-preview .icon-circle:hover {
  transform: scale(1.15);
}

.archetype-icon-preview .icon-circle svg {
  width: 26px;
  height: 26px;
}

.archetype-icon-preview span {
  font-size: 0.625rem;
  color: var(--color-text-faint);
  text-align: center;
  line-height: 1.2;
  font-weight: 500;
}

/* CTA Button */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-8);
  background: var(--color-primary);
  color: var(--color-text-inverse);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-sm);
  border-radius: var(--radius-lg);
  text-decoration: none;
  letter-spacing: 0.01em;
  min-height: 52px;
}

.btn-primary:hover {
  background: var(--color-primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-primary:active {
  background: var(--color-primary-active);
  transform: translateY(0);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  background: var(--color-surface);
  color: var(--color-text);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-sm);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  text-decoration: none;
  min-height: 44px;
}

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

/* ============================
   QUIZ SCREEN
   ============================ */

.quiz-screen {
  align-items: center;
  padding: var(--space-8) var(--space-6);
  gap: var(--space-8);
}

.quiz-container {
  width: 100%;
  max-width: var(--content-narrow);
  position: relative;
  overflow: hidden;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Progress bar */
.progress-bar-wrap {
  width: 100%;
  background: var(--color-surface-offset);
  border-radius: var(--radius-full);
  height: 6px;
  overflow: hidden;
  margin-bottom: var(--space-2);
}

.progress-bar {
  height: 100%;
  background: var(--color-primary);
  border-radius: var(--radius-full);
  transition: width 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  width: 0%;
}

.progress-label {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  text-align: right;
  margin-bottom: var(--space-6);
  font-variant-numeric: tabular-nums;
}

/* Question card */
.question-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-8);
  animation: slideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}

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

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

.question-number {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.question-text {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

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

.answer-option {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  font-size: var(--text-sm);
  font-weight: 500;
  min-height: 52px;
  text-align: left;
  width: 100%;
  position: relative;
}

.answer-option:hover {
  border-color: var(--color-primary);
  background: var(--color-primary-highlight);
}

.answer-option:active {
  transform: scale(0.98);
}

.answer-option .option-number {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-surface-offset);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-text-muted);
  flex-shrink: 0;
}

.answer-option:hover .option-number {
  background: var(--color-primary);
  color: var(--color-text-inverse);
}

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

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

/* ============================
   EMAIL CAPTURE SCREEN
   ============================ */

.email-screen {
  align-items: center;
  justify-content: center;
  padding: var(--space-10) var(--space-6);
  text-align: center;
  gap: var(--space-6);
}

.email-screen h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.email-screen .teaser {
  color: var(--color-text-muted);
  font-size: var(--text-base);
  max-width: 32ch;
}

.email-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  width: 100%;
  max-width: 360px;
}

.email-form input {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  min-height: 48px;
}

.email-form input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-highlight);
}

.email-form input::placeholder {
  color: var(--color-text-faint);
}

.skip-link {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  background: none;
  border: none;
}

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

/* ============================
   RESULTS SCREEN
   ============================ */

.results-screen {
  align-items: center;
  padding: var(--space-8) var(--space-6);
  padding-bottom: 0;
  gap: var(--space-10);
}

/* Reveal animation */
.result-reveal {
  width: 100%;
  max-width: var(--content-narrow);
  perspective: 1000px;
}

.result-card-flipper {
  width: 100%;
  position: relative;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  transform-style: preserve-3d;
}

.result-card-flipper.flipped {
  transform: rotateY(180deg);
}

.result-card-front,
.result-card-back {
  backface-visibility: hidden;
  border-radius: var(--radius-xl);
  width: 100%;
}

.result-card-front {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  padding: var(--space-16) var(--space-8);
  text-align: center;
  min-height: 280px;
}

.result-card-front h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text-muted);
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

.result-card-back {
  transform: rotateY(180deg);
  position: absolute;
  top: 0;
  left: 0;
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  padding: var(--space-8);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-6);
}

.result-icon {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: iconReveal 0.6s 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.result-icon svg {
  width: 56px;
  height: 56px;
}

@keyframes iconReveal {
  from {
    transform: scale(0) rotate(-20deg);
    opacity: 0;
  }
  to {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}

.result-type-label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 500;
}

.result-type-name {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.result-score-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-sm);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* Score spectrum */
.score-spectrum {
  width: 100%;
  max-width: 300px;
}

.spectrum-bar {
  width: 100%;
  height: 8px;
  background: var(--color-surface-offset);
  border-radius: var(--radius-full);
  position: relative;
  overflow: hidden;
}

.spectrum-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 1s cubic-bezier(0.34, 1.56, 0.64, 1) 0.8s;
}

.spectrum-labels {
  display: flex;
  justify-content: space-between;
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  margin-top: var(--space-1);
}

/* ============================
   RESULT DETAIL SECTIONS
   ============================ */

.result-sections {
  width: 100%;
  max-width: var(--content-default);
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.result-section {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
}

.result-section h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-4);
  letter-spacing: -0.01em;
}

.result-section p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  line-height: 1.7;
  margin-bottom: var(--space-3);
}

.result-section ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.result-section li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

.result-section li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
  margin-top: 0.55em;
  flex-shrink: 0;
}

/* Secondary type callout */
.secondary-type {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4);
  background: var(--color-surface-offset);
  border-radius: var(--radius-lg);
}

.secondary-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.secondary-icon svg {
  width: 26px;
  height: 26px;
}

.secondary-info {
  text-align: left;
}

.secondary-info .name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-sm);
}

.secondary-info .note {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-1);
}

/* ============================
   ALL 7 ARCHETYPE SCORE CARDS
   ============================ */

.all-archetypes-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

@media (min-width: 640px) {
  .all-archetypes-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .all-archetypes-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.archetype-score-card {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: transform 0.2s ease;
}

.archetype-score-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.archetype-score-card.is-primary {
  border-color: var(--color-primary);
  border-width: 2px;
}

.arch-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.arch-card-icon svg {
  width: 24px;
  height: 24px;
}

.arch-card-info {
  flex: 1;
  min-width: 0;
}

.arch-card-info .name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-xs);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.arch-card-info .score-bar {
  width: 100%;
  height: 6px;
  background: var(--color-surface-offset);
  border-radius: var(--radius-full);
  margin-top: var(--space-2);
  overflow: hidden;
}

.arch-card-info .score-bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.arch-card-score {
  font-size: var(--text-sm);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

/* ============================
   SHARE / CTA SECTION
   ============================ */

.share-section {
  width: 100%;
  max-width: var(--content-narrow);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  padding-bottom: var(--space-8);
}

.share-section .tag-prompt {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-style: italic;
}

.btn-linkedin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  background: #0077b5;
  color: #fff;
  font-weight: 700;
  font-size: var(--text-sm);
  border-radius: var(--radius-lg);
  text-decoration: none;
  min-height: 48px;
}

.btn-linkedin:hover {
  background: #005f8d;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

/* ============================
   FOUNDATIONS SECTION
   ============================ */

.foundations-section {
  width: 100%;
  max-width: var(--content-default);
  padding-bottom: var(--space-10);
}

.foundations-section h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-4);
  text-align: center;
  letter-spacing: -0.01em;
}

.foundations-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}

@media (min-width: 640px) {
  .foundations-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.foundation-card {
  padding: var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.foundation-card .author {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-sm);
  margin-bottom: var(--space-1);
}

.foundation-card .title {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-style: italic;
}

.foundation-card .year {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  margin-top: var(--space-2);
}

/* ============================
   ANIMATIONS / UTILITIES
   ============================ */

.fade-in {
  animation: fadeIn 0.5s ease both;
}

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

.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
.stagger-5 { animation-delay: 0.5s; }
.stagger-6 { animation-delay: 0.6s; }
.stagger-7 { animation-delay: 0.7s; }

/* Emoji sizing */
.emoji {
  font-style: normal;
}

/* Severity label colors */
.severity-mild {
  background: color-mix(in oklab, var(--color-success) 15%, transparent);
  color: var(--color-success);
}

.severity-moderate {
  background: color-mix(in oklab, var(--color-warning) 15%, transparent);
  color: var(--color-warning);
}

.severity-full {
  background: color-mix(in oklab, var(--color-error) 15%, transparent);
  color: var(--color-error);
}

.severity-unicorn {
  background: color-mix(in oklab, var(--color-primary) 15%, transparent);
  color: var(--color-primary);
}

/* Responsive tweaks */
@media (max-width: 480px) {
  .landing h1 {
    font-size: clamp(1.75rem, 1.2rem + 3vw, 2.5rem);
  }

  .result-type-name {
    font-size: var(--text-xl);
  }

  .result-card-back {
    padding: var(--space-5);
  }

  .result-section {
    padding: var(--space-4);
  }
}


/* ===== Paterson Consulting Brand ===== */
.brand-mark {
  flex-shrink: 0;
}
.brand-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1.2;
}
.brand-name {
  font-family: 'Cabinet Grotesk', var(--font-display, sans-serif);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text, #28251d);
}
.brand-sub {
  font-family: 'Satoshi', var(--font-body, sans-serif);
  font-weight: 400;
  font-size: 10.5px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #b08a2e;
}
[data-theme="dark"] .brand-sub {
  color: #d4a94e;
}
