/* ============================================================
   LeadershipDNA™ - Master Stylesheet
   ============================================================ */

:root {
  /* Declare the palette light-only. Without this, Chrome's "Auto Dark Mode for
     Web Contents" repaints the page after CSS computes: measured on the login
     page, computed backgroundColor was rgb(244,246,250) while the pixels were
     near-black. Canvas content is exempt from that repaint, so Chart.js drew
     light-theme charts onto auto-darkened cards and the radar became unreadable. */
  color-scheme: light;
  --primary:        #1A2B4A;
  --primary-dark:   #0F1B2E;
  --primary-light:  #243552;
  --accent:         #B8922E;
  --accent-light:   #D4A84C;
  --accent-dark:    #9A7A26;
  --teal:           #0D9E84;
  --teal-dark:      #0A8470;
  --red:            #D93025;
  --orange:         #E08A00;
  --green:          #1E8449;
  --blue:           #1A6FAD;
  --purple:         #7B4FA6;
  --gray-100:       #F4F6FA;
  --gray-200:       #E8ECF2;
  --gray-300:       #D0D7E3;
  --gray-400:       #B0BAC9;
  --gray-500:       #8A96A8;
  --gray-600:       #5A6478;
  --gray-700:       #3D4757;
  --gray-800:       #262F3E;
  --gray-900:       #131924;
  --white:          #FFFFFF;
  --shadow-sm:      0 1px 3px rgba(0,0,0,.12), 0 1px 2px rgba(0,0,0,.08);
  --shadow-md:      0 4px 6px rgba(0,0,0,.1), 0 2px 4px rgba(0,0,0,.06);
  --shadow-lg:      0 10px 25px rgba(0,0,0,.15), 0 4px 10px rgba(0,0,0,.1);
  --shadow-xl:      0 20px 60px rgba(0,0,0,.2);
  --radius-sm:      6px;
  --radius:         10px;
  --radius-lg:      16px;
  --radius-xl:      24px;
  --transition:     all .25s ease;
  --font-sans:      'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif:     'Playfair Display', Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--gray-800);
  background: var(--gray-100);
  line-height: 1.6;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; }
ul, ol { list-style: none; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */

.font-serif { font-family: var(--font-serif); }

h1,h2,h3,h4,h5,h6 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--gray-900);
}

.text-xs   { font-size: .75rem; }
.text-sm   { font-size: .875rem; }
.text-base { font-size: 1rem; }
.text-lg   { font-size: 1.125rem; }
.text-xl   { font-size: 1.25rem; }
.text-2xl  { font-size: 1.5rem; }
.text-3xl  { font-size: 1.875rem; }
.text-4xl  { font-size: 2.25rem; }
.text-5xl  { font-size: 3rem; }

.font-medium  { font-weight: 500; }
.font-semibold{ font-weight: 600; }
.font-bold    { font-weight: 700; }
.font-black   { font-weight: 900; }

.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }

.text-primary { color: var(--primary); }
.text-accent  { color: var(--accent); }
.text-teal    { color: var(--teal); }
.text-muted   { color: var(--gray-600); }
.text-white   { color: var(--white); }
.text-danger  { color: var(--red); }
.text-success { color: var(--green); }
.text-warning { color: var(--orange); }

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-sm {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 24px;
}

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start  { align-items: flex-start; }
.justify-center  { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end     { justify-content: flex-end; }
.gap-1  { gap: .25rem; }
.gap-2  { gap: .5rem; }
.gap-3  { gap: .75rem; }
.gap-4  { gap: 1rem; }
.gap-6  { gap: 1.5rem; }
.gap-8  { gap: 2rem; }
.flex-wrap { flex-wrap: wrap; }
.flex-1    { flex: 1; }

.grid { display: grid; }
.grid-2  { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-3  { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4  { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

.w-full  { width: 100%; }
.h-full  { height: 100%; }

.mt-1 { margin-top: .25rem; }
.mt-2 { margin-top: .5rem; }
.mt-3 { margin-top: .75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mb-1 { margin-bottom: .25rem; }
.mb-2 { margin-bottom: .5rem; }
.mb-3 { margin-bottom: .75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }

.p-3  { padding: .75rem; }
.p-4  { padding: 1rem; }
.p-6  { padding: 1.5rem; }
.p-8  { padding: 2rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-3 { padding-top: .75rem; padding-bottom: .75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }

.hidden  { display: none; }
.block   { display: block; }
.inline-block { display: inline-block; }

.overflow-hidden { overflow: hidden; }
.relative { position: relative; }
.absolute { position: absolute; }

/* ============================================================
   COMPONENTS: NAVBAR
   ============================================================ */

.navbar {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: 0 32px;
  height: 68px;
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 8px rgba(0,0,0,.06);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.navbar-logo {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--primary-dark);
}

.navbar-brand-text {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -.3px;
}

.navbar-brand-text span {
  color: var(--accent);
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 40px;
}

.nav-link {
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  color: var(--gray-600);
  font-size: .875rem;
  font-weight: 500;
  transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
  background: var(--gray-100);
}

.nav-link.active {
  color: var(--accent);
}

.navbar-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.navbar-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: .875rem;
  cursor: pointer;
  border: 2px solid rgba(201,168,76,.4);
}

.notification-badge {
  position: relative;
}

.notification-badge .badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--red);
  color: var(--white);
  font-size: .6rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--primary-dark);
}

/* ============================================================
   COMPONENTS: SIDEBAR
   ============================================================ */

.app-layout {
  display: flex;
  min-height: calc(100vh - 68px);
}

.sidebar {
  width: 240px;
  background: var(--white);
  border-right: 1px solid var(--gray-200);
  padding: 20px 0;
  flex-shrink: 0;
  position: sticky;
  top: 68px;
  height: calc(100vh - 68px);
  overflow-y: auto;
}

.sidebar-section {
  padding: 0 12px;
  margin-bottom: 8px;
}

.sidebar-label {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--gray-500);
  padding: 8px 12px 4px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  color: var(--gray-700);
  font-size: .875rem;
  font-weight: 500;
  transition: var(--transition);
}

.sidebar-link:hover {
  background: var(--gray-100);
  color: var(--primary);
}

.sidebar-link.active {
  background: rgba(26,43,74,.08);
  color: var(--primary);
  font-weight: 600;
}

.sidebar-link .icon {
  width: 18px;
  text-align: center;
  font-size: .9rem;
  color: var(--gray-500);
}

.sidebar-link.active .icon,
.sidebar-link:hover .icon {
  color: var(--primary);
}

.main-content {
  flex: 1;
  padding: 32px;
  min-width: 0;
}

/* ============================================================
   COMPONENTS: CARDS
   ============================================================ */

.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.card-header {
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-900);
}

.card-body {
  padding: 24px;
}

.card-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--gray-200);
  background: var(--gray-100);
}

/* Stat Card */
.stat-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

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

.stat-card .stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 16px;
}

.stat-card .stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1;
}

.stat-card .stat-label {
  font-size: .8rem;
  color: var(--gray-600);
  margin-top: 4px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.stat-card .stat-change {
  font-size: .75rem;
  font-weight: 600;
  margin-top: 8px;
}

/* ============================================================
   COMPONENTS: BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-size: .9rem;
  font-weight: 600;
  border: 2px solid transparent;
  transition: var(--transition);
  cursor: pointer;
  white-space: nowrap;
  line-height: 1;
}

.btn:disabled {
  opacity: .5;
  cursor: not-allowed;
}

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

.btn-primary:hover:not(:disabled) {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(26,43,74,.3);
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: var(--primary-dark);
  border-color: var(--accent);
  font-weight: 700;
}

.btn-accent:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(201,168,76,.4);
}

.btn-teal {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}

.btn-teal:hover:not(:disabled) {
  background: var(--teal-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(26,188,156,.3);
}

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

.btn-outline:hover:not(:disabled) {
  background: var(--primary);
  color: var(--white);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.4);
}

.btn-outline-white:hover:not(:disabled) {
  background: rgba(255,255,255,.1);
  border-color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: var(--gray-700);
  border-color: transparent;
}

.btn-ghost:hover:not(:disabled) {
  background: var(--gray-100);
  color: var(--primary);
}

.btn-danger {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}

.btn-sm {
  padding: 7px 14px;
  font-size: .8rem;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1rem;
  border-radius: var(--radius-lg);
}

.btn-xl {
  padding: 18px 40px;
  font-size: 1.1rem;
  border-radius: var(--radius-lg);
  font-weight: 800;
}

.btn-block { width: 100%; }

/* ============================================================
   COMPONENTS: FORMS
   ============================================================ */

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: .875rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 6px;
}

.form-label .required { color: var(--red); margin-left: 2px; }

.form-control {
  display: block;
  width: 100%;
  padding: 11px 16px;
  border: 2px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: .9rem;
  color: var(--gray-900);
  background: var(--white);
  transition: var(--transition);
  outline: none;
}

/* ============================================================
   FOCUS VISIBILITY (WCAG 2.4.7 / 2.4.11)
   The app had no authored focus style outside .form-control, so keyboard
   focus fell back to the browser default ring — measured as rgb(16,16,16)
   on the #1A2B4A navbar, roughly 1.3:1 and effectively invisible.
   The gold ring carries contrast on dark surfaces; the dark halo keeps it
   visible on white ones, so one of the two always reads.
   ============================================================ */
:focus-visible {
  outline: 3px solid #C9A84C;
  outline-offset: 2px;
  box-shadow: 0 0 0 2px #1A2B4A;
  border-radius: 3px;
}
/* Pointer users keep a clean UI — only keyboard/AT focus paints the ring. */
:focus:not(:focus-visible) { outline: none; }

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,43,74,.08);
}

.form-control::placeholder { color: var(--gray-400); }

.form-control.error {
  border-color: var(--red);
}

.form-error {
  font-size: .78rem;
  color: var(--red);
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.form-hint {
  font-size: .78rem;
  color: var(--gray-500);
  margin-top: 4px;
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236C757D' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
}

/* ============================================================
   COMPONENTS: BADGES & TAGS
   ============================================================ */

.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .3px;
  text-transform: uppercase;
}

.badge-primary  { background: rgba(26,43,74,.1);  color: var(--primary); }
.badge-accent   { background: rgba(201,168,76,.15); color: var(--accent-dark); }
.badge-teal     { background: rgba(26,188,156,.1); color: var(--teal-dark); }
.badge-success  { background: rgba(39,174,96,.1);  color: var(--green); }
.badge-warning  { background: rgba(243,156,18,.1); color: #CC8A0A; }
.badge-danger   { background: rgba(231,76,60,.1);  color: var(--red); }
.badge-gray     { background: var(--gray-200);     color: var(--gray-600); }

/* ============================================================
   COMPONENTS: PROGRESS BARS
   ============================================================ */

.progress-bar {
  height: 8px;
  background: var(--gray-200);
  border-radius: 10px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 10px;
  transition: width .6s ease;
}

.progress-fill.primary { background: linear-gradient(90deg, var(--primary), var(--teal)); }
.progress-fill.accent  { background: linear-gradient(90deg, var(--accent-dark), var(--accent-light)); }
.progress-fill.success { background: var(--green); }
.progress-fill.warning { background: var(--orange); }
.progress-fill.danger  { background: var(--red); }

.score-bar-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.score-bar-wrap .label {
  font-size: .8rem;
  color: var(--gray-700);
  font-weight: 500;
  min-width: 180px;
}

.score-bar-wrap .score-num {
  font-size: .8rem;
  font-weight: 700;
  min-width: 40px;
  text-align: right;
}

/* ============================================================
   COMPONENTS: ALERTS
   ============================================================ */

.alert {
  padding: 14px 18px;
  border-radius: var(--radius);
  border-left: 4px solid;
  font-size: .875rem;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.alert-success { background: #D5F5E3; border-color: var(--green); color: #1E8449; }
.alert-danger  { background: #FADBD8; border-color: var(--red);   color: #B03A2E; }
.alert-warning { background: #FEF9E7; border-color: var(--orange); color: #B7770D; }
.alert-info    { background: #D6EAF8; border-color: var(--blue);  color: #1A5276; }

/* ============================================================
   LANDING PAGE
   ============================================================ */

.hero {
  background: linear-gradient(150deg, #F0F4FF 0%, #EAF6F2 50%, #FFF9EE 100%);
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(26,43,74,0.04)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  pointer-events: none;
}

.hero-nav {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 60px;
}

.hero-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 60px;
  position: relative;
  z-index: 5;
}

.hero-text-block {
  max-width: 600px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(26,43,74,.07);
  border: 1px solid rgba(26,43,74,.15);
  color: var(--primary);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 24px;
}

.hero-headline {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1.15;
  margin-bottom: 24px;
}

.hero-headline .highlight {
  color: var(--accent);
  position: relative;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.hero-visual {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 500px;
  margin-left: 60px;
}

.hero-card-showcase {
  background: var(--white);
  border: 1px solid var(--gray-200);
  box-shadow: 0 8px 40px rgba(26,43,74,.12);
  border-radius: var(--radius-xl);
  padding: 32px;
  width: 380px;
}

.archetype-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, rgba(201,168,76,.2), rgba(201,168,76,.05));
  border: 1px solid rgba(201,168,76,.3);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-bottom: 24px;
}

.archetype-badge .badge-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.archetype-badge .badge-text .type {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gray-500);
}

.archetype-badge .badge-text .name {
  font-size: .95rem;
  font-weight: 800;
  color: var(--primary);
}

.hero-disc-bars {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.disc-bar-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.disc-bar-row .dim-label {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .65rem;
  font-weight: 900;
  color: var(--white);
  flex-shrink: 0;
}

.disc-bar-row .bar-track {
  flex: 1;
  height: 8px;
  background: var(--gray-200);
  border-radius: 4px;
  overflow: hidden;
}

.disc-bar-row .bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 1.5s ease;
}

.disc-bar-row .pct {
  font-size: .75rem;
  font-weight: 700;
  color: var(--gray-600);
  min-width: 36px;
  text-align: right;
}

/* ============================================================
   FEATURES SECTION
   ============================================================ */

.features-section {
  padding: 100px 0;
  background: var(--white);
}

.section-eyebrow {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1.2;
  margin-bottom: 20px;
}

.section-sub {
  font-size: 1.1rem;
  color: var(--gray-600);
  max-width: 560px;
  line-height: 1.7;
}

.feature-card {
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
}

.feature-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 20px;
}

.feature-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 10px;
}

.feature-desc {
  font-size: .875rem;
  color: var(--gray-600);
  line-height: 1.65;
}

/* ============================================================
   PRICING
   ============================================================ */

.pricing-section {
  padding: 100px 0;
  background: var(--gray-100);
}

.pricing-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 40px;
  border: 2px solid var(--gray-200);
  transition: var(--transition);
  position: relative;
}

.pricing-card.featured {
  border-color: var(--accent);
  box-shadow: 0 8px 40px rgba(201,168,76,.2);
}

.pricing-card .popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: var(--primary-dark);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 5px 16px;
  border-radius: 20px;
}

.pricing-name {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 8px;
}

.pricing-price {
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
}

.pricing-price sup {
  font-size: 1.2rem;
  vertical-align: super;
  font-weight: 700;
}

.pricing-price .period {
  font-size: .9rem;
  color: var(--gray-500);
  font-weight: 500;
}

.pricing-desc {
  font-size: .875rem;
  color: var(--gray-600);
  margin: 12px 0 28px;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .875rem;
  color: var(--gray-700);
  padding: 7px 0;
  border-bottom: 1px solid var(--gray-100);
}

.pricing-features li::before {
  content: '✓';
  color: var(--green);
  font-weight: 700;
  flex-shrink: 0;
}

/* ============================================================
   AUTH PAGES
   ============================================================ */

.auth-page {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  position: relative;
}

.auth-page::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="g" width="8" height="8" patternUnits="userSpaceOnUse"><path d="M 8 0 L 0 0 0 8" fill="none" stroke="rgba(201,168,76,0.05)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23g)"/></svg>');
  pointer-events: none;
}

.auth-box {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 48px;
  width: 100%;
  max-width: 460px;
  box-shadow: var(--shadow-xl);
  position: relative;
  z-index: 5;
}

.auth-logo {
  text-align: center;
  margin-bottom: 32px;
}

.auth-logo-mark {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}

.auth-logo-text {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
}

.auth-logo-text span { color: var(--accent); }

.auth-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 8px;
  text-align: center;
}

.auth-sub {
  font-size: .9rem;
  color: var(--gray-600);
  text-align: center;
  margin-bottom: 32px;
}

.auth-divider {
  text-align: center;
  position: relative;
  margin: 24px 0;
}

.auth-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gray-200);
}

.auth-divider span {
  position: relative;
  background: var(--white);
  padding: 0 12px;
  font-size: .8rem;
  color: var(--gray-500);
}

.auth-switch {
  text-align: center;
  margin-top: 24px;
  font-size: .875rem;
  color: var(--gray-600);
}

.auth-switch a {
  color: var(--primary);
  font-weight: 700;
}

/* ============================================================
   ASSESSMENT
   ============================================================ */

.assessment-page {
  min-height: 100vh;
  background: var(--gray-100);
}

.assessment-top-bar {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: 0 40px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.assessment-progress-global {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  max-width: 480px;
  margin: 0 40px;
}

.progress-label {
  font-size: .8rem;
  color: var(--gray-600);
  white-space: nowrap;
  font-weight: 500;
}

.section-pills {
  display: flex;
  gap: 8px;
  padding: 0 40px 0;
  margin-top: 0;
}

.section-pill {
  padding: 7px 16px;
  border-radius: 20px;
  font-size: .78rem;
  font-weight: 600;
  border: 1.5px solid var(--gray-300);
  color: var(--gray-500);
  cursor: default;
  display: flex;
  align-items: center;
  gap: 6px;
}

.section-pill.completed {
  border-color: var(--green);
  color: var(--green);
  background: rgba(39,174,96,.08);
}

.section-pill.active {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(26,43,74,.06);
}

.assessment-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 24px;
}

.question-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
  animation: fadeSlideIn .3s ease;
}

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

.question-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.question-num {
  font-size: .8rem;
  font-weight: 700;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.question-section-tag {
  font-size: .75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  background: rgba(26,43,74,.08);
  color: var(--primary);
}

.question-text {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.5;
  margin-bottom: 32px;
}

/* Likert options */
.likert-options {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.likert-option {
  position: relative;
}

.likert-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.likert-option label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 8px 12px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  gap: 8px;
  min-height: 80px;
}

.likert-option label .num {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--gray-400);
  transition: var(--transition);
}

.likert-option label .lbl {
  font-size: .68rem;
  font-weight: 600;
  color: var(--gray-400);
  line-height: 1.3;
  transition: var(--transition);
}

.likert-option input:checked + label,
.likert-option label:hover {
  border-color: var(--primary);
  background: rgba(26,43,74,.04);
}

.likert-option input:checked + label {
  background: var(--primary);
  border-color: var(--primary);
}

.likert-option input:checked + label .num,
.likert-option input:checked + label .lbl {
  color: var(--white);
}

.likert-option label:hover .num,
.likert-option label:hover .lbl {
  color: var(--primary);
}

/* Forced choice */
.forced-choice-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.forced-option {
  position: relative;
}

.forced-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.forced-option label {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
}

.forced-option label .opt-indicator {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2.5px solid var(--gray-300);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
}

.forced-option label .opt-text {
  font-size: .95rem;
  color: var(--gray-700);
  font-weight: 500;
  line-height: 1.4;
}

.forced-option label:hover {
  border-color: var(--primary);
  background: rgba(26,43,74,.03);
}

.forced-option label:hover .opt-indicator {
  border-color: var(--primary);
}

.forced-option input:checked + label {
  border-color: var(--primary);
  background: rgba(26,43,74,.05);
}

.forced-option input:checked + label .opt-indicator {
  background: var(--primary);
  border-color: var(--primary);
}

.forced-option input:checked + label .opt-indicator::after {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--white);
  border-radius: 50%;
}

.forced-option input:checked + label .opt-text {
  color: var(--primary);
  font-weight: 600;
}

/* Multiple choice */
.mc-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.mc-option {
  position: relative;
}

.mc-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.mc-option label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  min-height: 60px;
}

.mc-option label .mc-indicator {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--gray-300);
  flex-shrink: 0;
  margin-top: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.mc-option label .mc-text {
  font-size: .83rem;
  color: var(--gray-700);
  font-weight: 500;
  line-height: 1.4;
}

.mc-option label:hover {
  border-color: var(--teal);
  background: rgba(26,188,156,.03);
}

.mc-option input:checked + label {
  border-color: var(--teal);
  background: rgba(26,188,156,.06);
}

.mc-option input:checked + label .mc-indicator {
  background: var(--teal);
  border-color: var(--teal);
}

.mc-option input:checked + label .mc-indicator::after {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--white);
  border-radius: 50%;
}

.mc-option input:checked + label .mc-text {
  color: var(--teal-dark);
  font-weight: 600;
}

/* Assessment navigation */
.question-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--gray-200);
}

/* ============================================================
   REPORTS
   ============================================================ */

.report-page {
  background: var(--gray-100);
  min-height: 100vh;
}

.report-header {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: var(--white);
  padding: 48px 0 40px;
  position: relative;
  overflow: hidden;
}

.report-header::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(201,168,76,.15) 0%, transparent 70%);
  pointer-events: none;
}

.archetype-hero {
  display: flex;
  align-items: center;
  gap: 24px;
}

.archetype-hero-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  flex-shrink: 0;
}

.archetype-hero-text .type-label {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  margin-bottom: 6px;
}

.archetype-hero-text .arch-name {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
}

.archetype-hero-text .arch-tagline {
  font-size: 1rem;
  color: var(--accent-light);
  margin-top: 6px;
  font-style: italic;
}

.report-body {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 24px;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
}

.report-sidebar .card {
  margin-bottom: 20px;
}

/* Radar chart container */
.chart-container {
  position: relative;
  height: 300px;
  width: 100%;
}

/* Score meter */
.score-circle {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: conic-gradient(var(--color) var(--pct), var(--gray-200) 0);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.score-circle::after {
  content: '';
  position: absolute;
  inset: 8px;
  background: var(--white);
  border-radius: 50%;
}

.score-circle .score-val {
  position: relative;
  z-index: 1;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--gray-900);
}

/* ============================================================
   DASHBOARD
   ============================================================ */

.page-header {
  margin-bottom: 32px;
}

.page-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 4px;
}

.page-sub {
  font-size: .9rem;
  color: var(--gray-600);
}

/* Activity feed */
.activity-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--gray-100);
}

.activity-item:last-child { border-bottom: none; }

.activity-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  flex-shrink: 0;
}

.activity-text {
  flex: 1;
  font-size: .875rem;
  color: var(--gray-700);
  line-height: 1.5;
}

.activity-time {
  font-size: .75rem;
  color: var(--gray-500);
  white-space: nowrap;
}

/* Quick insight */
.insight-card {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.insight-card::after {
  content: '💡';
  position: absolute;
  top: -10px;
  right: -10px;
  font-size: 5rem;
  opacity: .1;
}

/* ============================================================
   COMPLETE PAGE
   ============================================================ */

.complete-hero {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  text-align: center;
  padding: 80px 40px;
  color: var(--white);
}

.complete-icon-ring {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 28px;
  font-size: 2.5rem;
  animation: pop .5s ease;
}

@keyframes pop {
  0%   { transform: scale(0); }
  80%  { transform: scale(1.1); }
  100% { transform: scale(1); }
}

/* ============================================================
   ADMIN
   ============================================================ */

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th {
  background: var(--gray-50, #F8F9FA);
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--gray-500);
  padding: 12px 16px;
  text-align: left;
  border-bottom: 2px solid var(--gray-200);
}

.admin-table td {
  padding: 14px 16px;
  font-size: .875rem;
  color: var(--gray-700);
  border-bottom: 1px solid var(--gray-100);
  vertical-align: middle;
}

.admin-table tr:hover td { background: var(--gray-100); }

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,.6);
  padding: 60px 0 30px;
}

.footer-brand {
  margin-bottom: 20px;
}

.footer-logo-text {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--white);
}

.footer-logo-text span { color: var(--accent); }

.footer-tagline {
  font-size: .875rem;
  color: rgba(255,255,255,.5);
  margin-top: 8px;
}

.footer-col h4 {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  font-size: .875rem;
  color: rgba(255,255,255,.6);
  padding: 4px 0;
  transition: color .2s;
}

.footer-col a:hover { color: var(--accent-light); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  margin-top: 40px;
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .8rem;
}

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

.rounded    { border-radius: var(--radius); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-full { border-radius: 50%; }

.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow    { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }

.bg-white   { background: var(--white); }
.bg-primary { background: var(--primary); }
.bg-accent  { background: var(--accent); }
.bg-teal    { background: var(--teal); }
.bg-gray    { background: var(--gray-100); }

.border     { border: 1px solid var(--gray-200); }
.border-top { border-top: 1px solid var(--gray-200); }

.divider {
  height: 1px;
  background: var(--gray-200);
  margin: 20px 0;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: 20px;
  font-size: .78rem;
  color: var(--gray-700);
  font-weight: 500;
}

.skeleton {
  background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-100) 50%, var(--gray-200) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: var(--radius-sm);
}

@keyframes shimmer {
  from { background-position: 200% 0; }
  to   { background-position: -200% 0; }
}

.tooltip {
  position: relative;
}

.tooltip:hover::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--gray-900);
  color: var(--white);
  font-size: .72rem;
  padding: 5px 10px;
  border-radius: 6px;
  white-space: nowrap;
  z-index: 100;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1024px) {
  .hero-content { flex-direction: column; padding: 40px 30px; }
  .hero-visual  { margin-left: 0; margin-top: 40px; }
  .hero-headline { font-size: 2.8rem; }
  .report-body  { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero-headline { font-size: 2.2rem; }
  .hero-nav { padding: 16px 20px; }
  .navbar { padding: 0 16px; }
  .navbar-nav { display: none; }
  .main-content { padding: 20px 16px; }
  .sidebar { display: none; }
  .auth-box { padding: 32px 24px; }
  .assessment-body { padding: 20px 12px; }
  .question-card { padding: 24px 20px; }
  .likert-options { grid-template-columns: repeat(5, 1fr); gap: 6px; }
  .mc-options { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-headline { font-size: 1.8rem; }
  .hero-actions { flex-direction: column; }
  .btn-xl { padding: 14px 28px; font-size: 1rem; }
}

/* ============================================================
   RESPONSIVE COLLAPSE FOR INLINE GRIDS
   57 grid-template-columns declarations live in inline style="" attributes,
   which the existing breakpoints cannot target. Measured on the dashboard at
   375px: document scrollWidth 830px against a 375px viewport — the page
   scrolled sideways because of a fixed `1fr 340px` sidebar.
   Overriding inline styles requires !important; this is the narrowest rule
   that reaches them.
   ============================================================ */
@media (max-width: 768px) {
  /* Grids with a fixed pixel track cannot shrink — collapse them first.
     minmax(0,1fr) rather than 1fr: a 1fr track's floor is min-content, so it
     expands to its widest child instead of shrinking. Measured on the dashboard
     at 375px, plain 1fr still produced a 446px track inside a 343px container. */
  [style*="grid-template-columns"][style*="px"] {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  [style*="grid-template-columns"][style*="px"] > * { min-width: 0; }
}
@media (max-width: 640px) {
  /* Below tablet, every multi-column inline grid becomes a single column. */
  [style*="grid-template-columns"] {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  /* Grid and flex children default to min-width:auto, which is what lets long
     words and wide children push a track past its container. */
  [style*="grid-template-columns"] > *,
  [style*="display:flex"] > * { min-width: 0; }
  /* Fixed max-widths on copy blocks would otherwise hold the layout open. */
  [style*="max-width:480px"], [style*="max-width: 480px"] { max-width: 100% !important; }
}
/* Media and wide content must never force the page to scroll sideways. */
img, svg, video, canvas, table, pre { max-width: 100%; }
