/* ============================================================================
   styles.css — Connector Profile®
   Mobile-first, WCAG 2.2 AA accessible, premium professional design
   All brand colors/tokens sourced from brand-config.js via CSS variables
   ============================================================================ */

/* ── CSS Custom Properties (Design Tokens) ──────────────────────────────── */
:root {
  /* Brand Colors */
  --color-primary:       #1C4A6E;   /* Deep Navy */
  --color-primary-light: #D4EEF0;   /* Light Teal */
  --color-primary-dark:  #0E2D45;   /* Dark Navy */
  --color-teal:          #3AABAA;   /* Teal — secondary brand color */
  --color-teal-mid:      #1B5E75;   /* Mid Teal-Navy */
  --color-teal-light:    #5BBFBA;   /* Light Teal */
  --color-accent:        #F59E0B;   /* Amber — opportunity/energy (unchanged) */
  --color-accent-light:  #FEF3C7;
  --color-success:       #10B981;
  --color-warning:       #F59E0B;
  --color-danger:        #EF4444;

  /* Neutrals */
  --color-neutral-900:   #111827;
  --color-neutral-700:   #374151;
  --color-neutral-600:   #4B5563;
  --color-neutral-500:   #6B7280;
  --color-neutral-400:   #9CA3AF;
  --color-neutral-200:   #E5E7EB;
  --color-neutral-100:   #F3F4F6;
  --color-neutral-50:    #F9FAFB;
  --color-white:         #FFFFFF;

  /* Gradients */
  --gradient-hero:       linear-gradient(135deg, #1C4A6E 0%, #3AABAA 100%);
  --gradient-warm:       linear-gradient(135deg, #F59E0B 0%, #EF4444 100%);
  --gradient-card:       linear-gradient(135deg, #F3F4F6 0%, #FFFFFF 100%);

  /* Elevation (shadows) */
  --shadow-sm:   0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md:   0 4px 12px rgba(0,0,0,0.10), 0 2px 6px rgba(0,0,0,0.06);
  --shadow-lg:   0 12px 32px rgba(0,0,0,0.12), 0 4px 12px rgba(0,0,0,0.08);
  --shadow-xl:   0 24px 48px rgba(0,0,0,0.15);
  --shadow-primary: 0 8px 24px rgba(28,74,110,0.25);
  --shadow-blue: 0 8px 24px rgba(28,74,110,0.25);   /* alias kept for compatibility */

  /* Typography */
  --font-sans:  'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-mono:  'JetBrains Mono', 'Fira Code', monospace;

  /* Type Scale */
  --text-xs:   0.75rem;   /* 12px */
  --text-sm:   0.875rem;  /* 14px */
  --text-base: 1rem;      /* 16px */
  --text-lg:   1.125rem;  /* 18px */
  --text-xl:   1.25rem;   /* 20px */
  --text-2xl:  1.5rem;    /* 24px */
  --text-3xl:  1.875rem;  /* 30px */
  --text-4xl:  2.25rem;   /* 36px */
  --text-5xl:  3rem;      /* 48px */
  --text-6xl:  3.75rem;   /* 60px */

  /* 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;

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

  /* Transitions */
  --transition-fast:   150ms ease;
  --transition-base:   250ms ease;
  --transition-slow:   400ms ease;

  /* Layout */
  --container-max:   1200px;
  --container-prose: 720px;
  --nav-height:      68px;
}

/* ── Reset & Base ──────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-neutral-700);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; display: block; }
a { color: var(--color-primary); text-decoration: underline; }
a:hover { color: var(--color-primary-dark); }
a:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* Skip link for keyboard accessibility */
.skip-link {
  position: absolute; top: -100%; left: var(--space-4);
  background: var(--color-primary); color: white;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  font-weight: 600; text-decoration: none; z-index: 9999;
  transition: top var(--transition-fast);
}
.skip-link:focus { top: var(--space-4); }

/* ── Layout Utilities ──────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-4);
}
@media (min-width: 768px) { .container { padding: 0 var(--space-6); } }
@media (min-width: 1024px) { .container { padding: 0 var(--space-8); } }

.prose { max-width: var(--container-prose); }
.text-center { text-align: center; }
.text-right  { text-align: right; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Grid helpers */
.grid-2 { display: grid; gap: var(--space-6); grid-template-columns: 1fr; }
.grid-3 { display: grid; gap: var(--space-6); grid-template-columns: 1fr; }
.grid-4 { display: grid; gap: var(--space-6); grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 640px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: var(--space-2); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }

/* ── Typography ────────────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-neutral-900);
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl)); }
h2 { font-size: clamp(var(--text-2xl), 4vw, var(--text-4xl)); }
h3 { font-size: clamp(var(--text-xl), 3vw, var(--text-3xl)); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-base); }

p { margin-bottom: var(--space-4); }
p:last-child { margin-bottom: 0; }

.text-gradient {
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lead {
  font-size: var(--text-lg);
  color: var(--color-neutral-600);
  line-height: 1.7;
}
@media (min-width: 768px) { .lead { font-size: var(--text-xl); } }

/* ── Buttons ───────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border: 2px solid transparent;
  border-radius: var(--radius-full);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
  -webkit-user-select: none;
  user-select: none;
}
.btn:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
  box-shadow: var(--shadow-blue);
}
.btn-primary:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(37,99,235,0.35);
  color: var(--color-white);
  text-decoration: none;
}

.btn-accent {
  background: var(--color-accent);
  color: var(--color-neutral-900);
  border-color: var(--color-accent);
}
.btn-accent:hover {
  background: #D97706;
  border-color: #D97706;
  transform: translateY(-1px);
  color: var(--color-neutral-900);
  text-decoration: none;
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn-outline:hover {
  background: var(--color-primary-light);
  transform: translateY(-1px);
  text-decoration: none;
}

.btn-ghost {
  background: transparent;
  color: var(--color-neutral-700);
  border-color: transparent;
}
.btn-ghost:hover {
  background: var(--color-neutral-100);
  text-decoration: none;
}

.btn-white {
  background: var(--color-white);
  color: var(--color-primary);
  border-color: var(--color-white);
}
.btn-white:hover {
  background: var(--color-primary-light);
  text-decoration: none;
}

.btn-lg { padding: var(--space-4) var(--space-8); font-size: var(--text-lg); }
.btn-sm { padding: var(--space-2) var(--space-4); font-size: var(--text-sm); }
.btn-full { width: 100%; }

/* Loading state */
.btn.loading { position: relative; color: transparent !important; }
.btn.loading::after {
  content: "";
  position: absolute;
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* ── Navigation ────────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-neutral-200);
  height: var(--nav-height);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: var(--space-4);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo-mark {
  width: 36px; height: 36px;
  border-radius: var(--radius-lg);
  display: block;
  flex-shrink: 0;
}
.nav-logo-text {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-teal);       /* "Profile" = teal */
  letter-spacing: -0.02em;
}
.nav-logo-text span { color: var(--color-primary); }  /* "Connector" = navy */

.nav-links {
  display: none;
  list-style: none;
  align-items: center;
  gap: var(--space-1);
}
@media (min-width: 1024px) { .nav-links { display: flex; } }

.nav-links a {
  display: block;
  padding: var(--space-2) var(--space-3);
  color: var(--color-neutral-700);
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: 500;
  border-radius: var(--radius-md);
  transition: background var(--transition-fast), color var(--transition-fast);
}
.nav-links a:hover { background: var(--color-neutral-100); color: var(--color-primary); }
.nav-links a.active { color: var(--color-primary); font-weight: 600; }

.nav-dropdown { position: relative; }
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;                          /* flush against trigger — no gap to fall through */
  left: 50%; transform: translateX(-50%);
  background: white;
  border: 1px solid var(--color-neutral-200);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  padding: var(--space-3) var(--space-2) var(--space-2);  /* top padding replaces the old margin gap */
  min-width: 200px;
  z-index: 200;
  list-style: none;                   /* remove bullet points */
}
.nav-dropdown-menu li { list-style: none; }  /* belt + suspenders for bullet fix */
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a { font-size: var(--text-sm); white-space: nowrap; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

/* Hide CTA buttons in the nav bar on small screens — links live in the mobile drawer */
@media (max-width: 767px) {
  .nav-actions .btn-primary,
  .nav-actions .btn-outline { display: none !important; }
}

/* Mobile menu toggle */
.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
  background: none;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-md);
}
.nav-toggle:hover { background: var(--color-neutral-100); }
@media (min-width: 1024px) { .nav-toggle { display: none; } }
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--color-neutral-700);
  border-radius: 2px; transition: all var(--transition-base);
}

/* Mobile nav drawer */
.nav-mobile {
  display: none;
  position: fixed; inset: 0; top: var(--nav-height);
  background: white;
  z-index: 99;
  overflow-y: auto;
  padding: var(--space-4);
}
.nav-mobile.open { display: block; }
.nav-mobile ul { list-style: none; }
.nav-mobile li a {
  display: block;
  padding: var(--space-3) var(--space-4);
  color: var(--color-neutral-700);
  text-decoration: none;
  font-weight: 500;
  border-radius: var(--radius-lg);
  font-size: var(--text-lg);
}
.nav-mobile li a:hover { background: var(--color-neutral-100); }

/* ── Hero Section ──────────────────────────────────────────────────────────── */
.hero {
  background: var(--gradient-hero);
  color: white;
  padding: var(--space-20) 0 var(--space-24);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-content { position: relative; z-index: 1; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: var(--space-2);
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius-full);
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: var(--space-6);
  backdrop-filter: blur(8px);
}
.hero h1 { color: white; margin-bottom: var(--space-6); }
.hero .lead { color: rgba(255,255,255,0.9); margin-bottom: var(--space-8); }
.hero-actions {
  display: flex; flex-wrap: wrap; gap: var(--space-4);
  margin-bottom: var(--space-12);
}

.hero-social-proof {
  display: flex; align-items: center; gap: var(--space-4);
  font-size: var(--text-sm); color: rgba(255,255,255,0.8);
}
.hero-avatars { display: flex; }
.hero-avatars .avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 2px solid white;
  background: var(--color-primary-dark);
  margin-left: -8px; display: flex;
  align-items: center; justify-content: center;
  font-size: var(--text-xs); color: white; font-weight: 600;
}
.hero-avatars .avatar:first-child { margin-left: 0; }

/* ── Section Spacing ───────────────────────────────────────────────────────── */
.section { padding: var(--space-16) 0; }
.section-sm { padding: var(--space-10) 0; }
.section-lg { padding: var(--space-24) 0; }
.section-alt { background: var(--color-neutral-50); }
.section-dark { background: var(--color-neutral-900); color: white; }
.section-dark h2, .section-dark h3 { color: white; }
.section-dark p, .section-dark .lead { color: var(--color-neutral-400); }

.section-header { margin-bottom: var(--space-12); }
.section-header .eyebrow {
  display: inline-block;
  color: var(--color-primary);
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-3);
}
.section-header p { color: var(--color-neutral-600); }

/* ── Cards ─────────────────────────────────────────────────────────────────── */
.card {
  background: var(--color-white);
  border: 1px solid var(--color-neutral-200);
  border-radius: var(--radius-2xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.card-flat { box-shadow: none; }
.card-flat:hover { box-shadow: var(--shadow-md); }

.card-header { margin-bottom: var(--space-4); }
.card-icon {
  width: 52px; height: 52px;
  background: var(--color-primary-light);
  border-radius: var(--radius-xl);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--space-4);
  font-size: var(--text-2xl);
}

/* Pricing Cards */
.pricing-card {
  background: white;
  border: 2px solid var(--color-neutral-200);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  position: relative;
  transition: all var(--transition-base);
}
.pricing-card.popular {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-blue);
}
.pricing-badge {
  position: absolute; top: -14px; left: 50%;
  transform: translateX(-50%);
  background: var(--color-primary);
  color: white;
  font-size: var(--text-xs);
  font-weight: 700;
  padding: var(--space-1) var(--space-4);
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.pricing-price {
  font-size: var(--text-5xl);
  font-weight: 800;
  color: var(--color-neutral-900);
  line-height: 1;
  margin: var(--space-4) 0;
}
.pricing-price sup {
  font-size: var(--text-2xl);
  vertical-align: top;
  margin-top: var(--space-3);
}
.pricing-price sub {
  font-size: var(--text-lg);
  font-weight: 400;
  color: var(--color-neutral-500);
}
.pricing-features { list-style: none; margin: var(--space-6) 0; }
.pricing-features li {
  display: flex; align-items: flex-start; gap: var(--space-3);
  padding: var(--space-2) 0;
  font-size: var(--text-sm);
  color: var(--color-neutral-700);
  border-bottom: 1px solid var(--color-neutral-100);
}
.pricing-features li:last-child { border-bottom: none; }
.pricing-features .check {
  flex-shrink: 0;
  width: 20px; height: 20px;
  background: var(--color-success);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 11px; margin-top: 1px;
}

/* ── Assessment UI ─────────────────────────────────────────────────────────── */
.assessment-wrapper {
  max-width: 720px;
  margin: 0 auto;
  padding: var(--space-8) var(--space-4);
}

.assessment-progress {
  margin-bottom: var(--space-8);
}
.progress-bar-track {
  height: 8px;
  background: var(--color-neutral-200);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  background: var(--gradient-hero);
  border-radius: var(--radius-full);
  transition: width var(--transition-slow);
}
.progress-meta {
  display: flex; justify-content: space-between;
  font-size: var(--text-sm); color: var(--color-neutral-500);
  margin-top: var(--space-2);
}

.question-card {
  background: white;
  border: 1px solid var(--color-neutral-200);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-md);
  margin-bottom: var(--space-6);
  animation: fadeUp 0.3s ease;
}

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

.question-text {
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-neutral-900);
  line-height: 1.4;
  margin-bottom: var(--space-6);
}

/* Likert scale buttons */
.likert-options {
  display: grid;
  gap: var(--space-3);
}
@media (min-width: 640px) {
  .likert-options { grid-template-columns: repeat(5, 1fr); gap: var(--space-2); }
}

.likert-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
}
.likert-option input[type="radio"] {
  position: absolute;
  opacity: 0; width: 0; height: 0;
}
.likert-option label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-2);
  border: 2px solid var(--color-neutral-200);
  border-radius: var(--radius-xl);
  cursor: pointer;
  width: 100%;
  text-align: center;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-neutral-600);
  transition: all var(--transition-base);
  user-select: none;
}
.likert-option label:hover {
  border-color: var(--color-primary);
  background: var(--color-primary-light);
  color: var(--color-primary);
}
.likert-option input[type="radio"]:checked + label {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: white;
  box-shadow: var(--shadow-blue);
}
.likert-option input[type="radio"]:focus-visible + label {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}
.likert-value {
  font-size: var(--text-2xl);
  font-weight: 800;
  line-height: 1;
}

/* Mobile: horizontal scroll for likert */
@media (max-width: 639px) {
  .likert-options { grid-template-columns: 1fr; }
  .likert-option label { flex-direction: row; justify-content: flex-start; padding: var(--space-4); }
  .likert-value { font-size: var(--text-xl); }
}

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

/* ── Results & Score Visualization ────────────────────────────────────────── */
.score-ring {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.score-ring svg { transform: rotate(-90deg); }
.score-ring-value {
  position: absolute;
  text-align: center;
}
.score-ring-number {
  font-size: var(--text-4xl);
  font-weight: 800;
  color: var(--color-neutral-900);
  line-height: 1;
}
.score-ring-label {
  font-size: var(--text-xs);
  color: var(--color-neutral-500);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Dimension bars */
.dimension-bar-row {
  display: grid;
  grid-template-columns: 1fr 2fr auto;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-neutral-100);
}
.dimension-bar-row:last-child { border-bottom: none; }
.dimension-bar-name {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-neutral-700);
}
.dimension-bar-track {
  height: 10px;
  background: var(--color-neutral-200);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.dimension-bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: var(--gradient-hero);
  transition: width 1s ease;
}
.dimension-bar-score {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-neutral-700);
  min-width: 32px;
  text-align: right;
}

/* Band colors */
.band-low .dimension-bar-fill    { background: var(--color-danger); }
.band-medium .dimension-bar-fill { background: var(--color-warning); }
.band-good .dimension-bar-fill   { background: var(--color-primary); }
.band-high .dimension-bar-fill   { background: var(--color-success); }

/* Score band badges */
.band-badge {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 700;
}
.band-badge.band-low    { background: #FEE2E2; color: #991B1B; }
.band-badge.band-medium { background: var(--color-accent-light); color: #92400E; }
.band-badge.band-good   { background: var(--color-primary-light); color: var(--color-primary-dark); }
.band-badge.band-high   { background: #D1FAE5; color: #065F46; }

/* Archetype card */
.archetype-card {
  background: var(--gradient-hero);
  color: white;
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  text-align: center;
}
.archetype-icon { font-size: 4rem; margin-bottom: var(--space-4); }
.archetype-name { font-size: var(--text-3xl); font-weight: 800; color: white; margin-bottom: var(--space-2); }
.archetype-tagline { font-size: var(--text-lg); color: rgba(255,255,255,0.85); }

/* ── Forms ─────────────────────────────────────────────────────────────────── */
.form-group { margin-bottom: var(--space-5); }
.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-neutral-700);
  margin-bottom: var(--space-2);
}
.form-label .required { color: var(--color-danger); margin-left: 2px; }
.form-control {
  display: block;
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 2px solid var(--color-neutral-200);
  border-radius: var(--radius-lg);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  color: var(--color-neutral-900);
  background: white;
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
  appearance: none;
}
.form-control:hover  { border-color: var(--color-neutral-400); }
.form-control:focus  {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}
.form-control::placeholder { color: var(--color-neutral-400); }
.form-control.error { border-color: var(--color-danger); }
.form-hint  { font-size: var(--text-xs); color: var(--color-neutral-500); margin-top: var(--space-1); }
.form-error { font-size: var(--text-xs); color: var(--color-danger);  margin-top: var(--space-1); }

/* Checkbox/radio */
.form-check {
  display: flex; align-items: flex-start; gap: var(--space-3);
  cursor: pointer; padding: var(--space-2) 0;
}
.form-check input[type="checkbox"],
.form-check input[type="radio"] {
  flex-shrink: 0; width: 20px; height: 20px;
  margin-top: 2px; accent-color: var(--color-primary); cursor: pointer;
}
.form-check-label { font-size: var(--text-sm); color: var(--color-neutral-700); cursor: pointer; }
.form-check-label a { font-size: inherit; }

/* ── Toast / Alert ─────────────────────────────────────────────────────────── */
.alert {
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
  display: flex; align-items: flex-start; gap: var(--space-3);
  margin-bottom: var(--space-4);
}
.alert-info    { background: var(--color-primary-light); color: var(--color-primary-dark); border-left: 4px solid var(--color-primary); }
.alert-success { background: #D1FAE5; color: #065F46; border-left: 4px solid var(--color-success); }
.alert-warning { background: var(--color-accent-light); color: #92400E; border-left: 4px solid var(--color-accent); }
.alert-danger  { background: #FEE2E2; color: #991B1B; border-left: 4px solid var(--color-danger); }

.toast-container {
  position: fixed; bottom: var(--space-6); right: var(--space-6);
  z-index: 9999; display: flex; flex-direction: column; gap: var(--space-3);
  max-width: 380px;
}
.toast {
  background: var(--color-neutral-900);
  color: white;
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  display: flex; align-items: center; gap: var(--space-3);
  animation: slideIn 0.3s ease;
  font-size: var(--text-sm); font-weight: 500;
}
.toast.success { background: var(--color-success); }
.toast.error   { background: var(--color-danger); }

/* ── Modal ─────────────────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: var(--space-4);
  backdrop-filter: blur(4px);
  animation: fadeIn 0.2s ease;
}
.modal-overlay[hidden] { display: none; }
.modal {
  background: white;
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  max-width: 500px; width: 100%;
  max-height: 90vh; overflow-y: auto;
  box-shadow: var(--shadow-xl);
  animation: scaleIn 0.2s ease;
  position: relative;
}
.modal-close {
  position: absolute; top: var(--space-4); right: var(--space-4);
  background: none; border: none; font-size: var(--text-xl);
  cursor: pointer; color: var(--color-neutral-500);
  width: 32px; height: 32px; display: flex;
  align-items: center; justify-content: center;
  border-radius: var(--radius-md);
}
.modal-close:hover { background: var(--color-neutral-100); }

/* ── Dashboard ─────────────────────────────────────────────────────────────── */
.dashboard-layout {
  display: grid;
  grid-template-columns: 1fr;
  min-height: calc(100vh - var(--nav-height));
}
@media (min-width: 1024px) {
  .dashboard-layout { grid-template-columns: 260px 1fr; }
}

.dashboard-sidebar {
  background: var(--color-neutral-900);
  color: white;
  padding: var(--space-6);
}
.dashboard-sidebar nav ul { list-style: none; }
.dashboard-sidebar nav a {
  display: flex; align-items: center; gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  color: var(--color-neutral-400);
  text-decoration: none;
  border-radius: var(--radius-lg);
  font-size: var(--text-sm); font-weight: 500;
  transition: all var(--transition-fast);
}
.dashboard-sidebar nav a:hover,
.dashboard-sidebar nav a.active {
  background: rgba(255,255,255,0.1);
  color: white;
}
.dashboard-sidebar nav a .icon { font-size: var(--text-lg); }

.dashboard-main { padding: var(--space-8) var(--space-6); }

.stat-card {
  background: white;
  border: 1px solid var(--color-neutral-200);
  border-radius: var(--radius-2xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
}
.stat-card-value {
  font-size: var(--text-4xl);
  font-weight: 800;
  color: var(--color-neutral-900);
  line-height: 1;
}
.stat-card-label {
  font-size: var(--text-sm);
  color: var(--color-neutral-500);
  font-weight: 500;
  margin-top: var(--space-1);
}
.stat-card-change {
  font-size: var(--text-sm);
  font-weight: 600;
  display: flex; align-items: center; gap: 4px;
  margin-top: var(--space-2);
}
.stat-card-change.up   { color: var(--color-success); }
.stat-card-change.down { color: var(--color-danger);  }

/* ── Footer ────────────────────────────────────────────────────────────────── */
.footer {
  background: var(--color-neutral-900);
  color: var(--color-neutral-400);
  padding: var(--space-16) 0 var(--space-8);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  margin-bottom: var(--space-10);
}
@media (min-width: 640px)  { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }

.footer-brand .nav-logo-text { color: white; }
.footer-brand .nav-logo-text span { color: white; }
.footer-brand p { font-size: var(--text-sm); line-height: 1.7; margin-top: var(--space-3); }
.footer h4 {
  color: white; font-size: var(--text-sm);
  text-transform: uppercase; letter-spacing: 0.1em;
  margin-bottom: var(--space-4);
}
.footer ul { list-style: none; }
.footer ul li { margin-bottom: var(--space-2); }
.footer ul li a {
  color: var(--color-neutral-400);
  text-decoration: none;
  font-size: var(--text-sm);
  transition: color var(--transition-fast);
}
.footer ul li a:hover { color: white; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: var(--space-6);
  display: flex; flex-wrap: wrap;
  justify-content: space-between; align-items: center;
  gap: var(--space-4);
  font-size: var(--text-xs);
}
.footer-disclaimer {
  font-size: var(--text-xs);
  color: var(--color-neutral-500);
  line-height: 1.6;
  max-width: 600px;
  margin: var(--space-4) 0;
}

/* ── Utility / Misc ────────────────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center;
  padding: var(--space-1) var(--space-3);
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
  border-radius: var(--radius-full);
  font-size: var(--text-xs); font-weight: 700;
}
.badge-green  { background: #D1FAE5; color: #065F46; }
.badge-amber  { background: var(--color-accent-light); color: #92400E; }
.badge-violet { background: #EDE9FE; color: #5B21B6; }

.divider { border: none; border-top: 1px solid var(--color-neutral-200); margin: var(--space-8) 0; }

.loading-skeleton {
  background: linear-gradient(90deg, var(--color-neutral-200) 25%, var(--color-neutral-100) 50%, var(--color-neutral-200) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-md);
}

/* Consent banner */
.consent-banner {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--color-neutral-900);
  color: white;
  padding: var(--space-4) var(--space-6) max(var(--space-4), env(safe-area-inset-bottom));
  z-index: 500;
  display: flex; flex-wrap: wrap;
  align-items: center; justify-content: space-between;
  gap: var(--space-4);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
}
.consent-banner p { font-size: var(--text-sm); color: var(--color-neutral-300); margin: 0; }
.consent-banner a { color: var(--color-accent); }

/* ── Keyframe Animations ───────────────────────────────────────────────────── */
@keyframes spin    { to { transform: rotate(360deg); } }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes fadeIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeUp  { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes scaleIn { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }
@keyframes slideIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }

/* ── Print ─────────────────────────────────────────────────────────────────── */
@media print {
  .nav, .footer, .btn, .consent-banner { display: none !important; }
  body { font-size: 12pt; color: black; }
  .card, .pricing-card { box-shadow: none; border: 1px solid #ccc; }
  a { color: black; text-decoration: none; }
  .hero { background: none; color: black; }
  .hero h1, .hero .lead { color: black; }
}

/* ── Reduced Motion ─────────────────────────────────────────────────────────── */
@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;
  }
}
