/* ═══════════════════════════════════════════════════════════════
   Discotheque — Default Theme
   CSS Zen Garden pattern: swap this file to change the entire look.
   ═══════════════════════════════════════════════════════════════ */

/* ── Tokens ─────────────────────────────────────────────────── */
:root {
  --color-primary-50:  #f0f4ff;
  --color-primary-100: #dbe4ff;
  --color-primary-200: #bac8ff;
  --color-primary-300: #91a7ff;
  --color-primary-400: #748ffc;
  --color-primary-500: #5c7cfa;
  --color-primary-600: #4c6ef5;
  --color-primary-700: #4263eb;
  --color-primary-800: #3b5bdb;
  --color-primary-900: #364fc7;

  --color-purple-500: #8b5cf6;
  --color-purple-600: #7c3aed;

  --color-amber-500:  #f59e0b;
  --color-amber-600:  #d97706;
  --color-green-500:  #22c55e;
  --color-green-600:  #16a34a;

  --color-gray-50:  #f9fafb;
  --color-gray-100: #f3f4f6;
  --color-gray-200: #e5e7eb;
  --color-gray-300: #d1d5db;
  --color-gray-400: #9ca3af;
  --color-gray-500: #6b7280;
  --color-gray-600: #4b5563;
  --color-gray-700: #374151;
  --color-gray-800: #1f2937;
  --color-gray-900: #111827;

  --font-sans:    'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Plus Jakarta Sans', 'Inter', sans-serif;

  /* Modular type scale (1.125 minor third) — for use in new code. Existing
     ad-hoc rem values remain but any new component should step on this
     ladder to keep the HR-buyer "considered" feel. */
  --text-xs:   0.75rem;   /* 12px — captions, eyebrows */
  --text-sm:   0.8125rem; /* 13px — meta, small copy  */
  --text-base: 0.9375rem; /* 15px — body default      */
  --text-md:   1rem;      /* 16px — emphasised body    */
  --text-lg:   1.125rem;  /* 18px — lede, big body     */
  --text-xl:   1.25rem;   /* 20px — h3 / section head  */
  --text-2xl:  1.5rem;    /* 24px — h2                 */
  --text-3xl:  1.875rem;  /* 30px — h1                 */
  --text-4xl:  2.5rem;    /* 40px — hero display       */

  /* Vertical rhythm — use instead of ad-hoc margins. */
  --space-2xs: 0.25rem;
  --space-xs:  0.5rem;
  --space-sm:  0.75rem;
  --space-md:  1rem;
  --space-lg:  1.5rem;
  --space-xl:  2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;

  /* Line-height tokens. Display text sits tighter, UI copy looser. */
  --lh-tight:  1.2;
  --lh-snug:   1.3;
  --lh-normal: 1.5;
  --lh-copy:   1.6;

  --radius-md:  0.5rem;
  --radius-lg:  0.75rem;
  --radius-xl:  1rem;
  --radius-2xl: 1.5rem;

  --shadow-sm:  0 1px 2px rgba(0,0,0,0.05);
  --shadow-md:  0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
  --shadow-lg:  0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.05);
  --shadow-xl:  0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.05);

  --focus-ring: 0 0 0 3px rgba(76, 110, 245, 0.35);

  --nav-height: 4rem;
}

/* Honour OS-level motion preferences. Animations/transitions compress to
   a barely-there change so motion-sensitive users still get state feedback
   without the movement. Applied site-wide. */
@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;
  }
}

/* ── Fonts ───────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap');

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--color-gray-900);
  background: var(--color-gray-50);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

a { color: var(--color-primary-600); text-decoration: none; }
a:hover { color: var(--color-primary-700); }

/* Consistent, visible focus ring everywhere. Uses :focus-visible so it only
   appears for keyboard navigation, not mouse clicks. Components that need a
   different ring style override this selector locally. */
:where(a, button, input, select, textarea, [tabindex]):focus { outline: none; }
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--color-primary-600);
  outline-offset: 2px;
  border-radius: var(--radius-md);
}

img { max-width: 100%; height: auto; }

code {
  font-family: 'SF Mono', 'Fira Code', monospace;
  background: var(--color-gray-100);
  padding: 0.15em 0.4em;
  border-radius: var(--radius-md);
  font-size: 0.875em;
}

.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;
}

/* Skip link — appears only on keyboard focus. First tab stop on every
   page, jumps to main content past the nav. WCAG 2.4.1. */
.skip-link {
  position: absolute;
  top: 0; left: 0;
  transform: translateY(-100%);
  padding: 0.75rem 1.25rem;
  background: var(--color-primary-700);
  color: #fff;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: 0 0 var(--radius-md) 0;
  z-index: 100;
  transition: transform 0.15s ease;
}
.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
  color: #fff;
  outline: 2px solid #fff;
  outline-offset: -4px;
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem; font-weight: 600;
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  line-height: 1.4;
}

.btn-primary {
  background: var(--color-primary-600); color: #fff;
  box-shadow: 0 4px 14px rgba(76,110,245,0.25);
}
.btn-primary:hover {
  background: var(--color-primary-700); color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(76,110,245,0.32);
}
.btn-primary:active { transform: translateY(0); }

.btn-outline {
  background: #fff; color: var(--color-gray-700);
  border-color: var(--color-gray-200);
}
.btn-outline:hover {
  background: var(--color-gray-50); color: var(--color-gray-900);
  border-color: var(--color-gray-300);
}

/* Destructive actions — revoke, delete, unshare. Colour-coded red-ish
 * but intentionally muted so it doesn't scream; the confirmation modal
 * does the "are you sure?" work. */
.btn-danger {
  background: #fff; color: #b42318;
  border-color: #fecdca;
}
.btn-danger:hover { background: #fee4e2; color: #912018; }

.btn-lg { padding: 0.875rem 1.75rem; font-size: 1rem; }
.btn-block { width: 100%; }

/* Sender invite-detail action cluster — Resend + Revoke side-by-side. */
.invite-actions { display: flex; flex-direction: column; gap: 0.5rem; }
.invite-actions form { margin: 0; }

/* Status badges on /invites and /invite/<id>. The Status string on
 * the row determines the colour; the label is free text. Using data
 * selectors keeps the rule surface small and matches the template's
 * invite-status-<status> naming. */
.invite-status { font-weight: 600; letter-spacing: 0.01em; }
.invite-status-not_opened  { color: var(--color-gray-500); }
.invite-status-in_progress { color: #b54708; }
.invite-status-complete    { color: #067647; }
.invite-status-expired     { color: var(--color-gray-500); }
.invite-status-revoked     { color: #b42318; }

/* ── Navigation ──────────────────────────────────────────────── */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(229,231,235,0.5);
}

.nav-inner {
  max-width: 80rem; margin: 0 auto;
  padding: 0 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
  height: var(--nav-height);
}

.nav-brand {
  display: flex; align-items: center; gap: 0.625rem;
  text-decoration: none; color: var(--color-gray-900);
}
.brand-icon {
  display: flex; align-items: center; justify-content: center;
  width: 2rem; height: 2rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--color-primary-500), var(--color-purple-600));
}
.brand-icon::before {
  content: '';
  width: 1rem; height: 1rem;
  border-radius: 50%;
  background: #fff;
}
.brand-icon-lg {
  width: 3rem; height: 3rem;
  border-radius: var(--radius-xl);
}
.brand-icon-lg::before { width: 1.5rem; height: 1.5rem; }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.25rem; font-weight: 700;
}

.nav-links {
  display: flex; align-items: center; gap: 0.25rem;
  list-style: none;
}
.nav-links a:not(.btn),
.nav-links a:not(.btn):visited {
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem; font-weight: 500;
  color: var(--color-gray-600);
  border-radius: var(--radius-lg);
  transition: all 0.15s ease;
}
.nav-links a:not(.btn):hover,
.nav-links a:not(.btn):visited:hover { color: var(--color-gray-900); background: rgba(243,244,246,0.7); }

.nav-separator {
  width: 1px; height: 1.25rem;
  background: var(--color-gray-200);
  margin: 0 0.5rem;
}

.nav-icon-link .icon { display: block; }

.nav-mobile-toggle { display: none; background: none; border: none; padding: 0.5rem; cursor: pointer; }

/* Avatar + Dropdown */
.nav-user { position: relative; }
.nav-avatar {
  display: flex; align-items: center; gap: 0.375rem;
  padding: 0.375rem 0.625rem;
  background: none; border: none; cursor: pointer;
  font-size: 0.875rem; font-weight: 500;
  color: var(--color-gray-600);
  border-radius: var(--radius-lg);
  transition: all 0.15s ease;
}
.nav-avatar:hover { color: var(--color-gray-900); background: rgba(243,244,246,0.7); }

.avatar-circle {
  display: flex; align-items: center; justify-content: center;
  width: 1.5rem; height: 1.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary-400), var(--color-purple-500));
  color: #fff;
  font-size: 0.625rem; font-weight: 700;
}

.dropdown-menu {
  display: none;
  position: absolute; right: 0; top: 100%; margin-top: 0.375rem;
  width: 14rem;
  background: #fff; border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  padding: 0.375rem 0;
  list-style: none; z-index: 60;
}
.nav-user.is-open .dropdown-menu { display: block; }

.dropdown-header {
  padding: 0.5rem 0.75rem;
  font-size: 0.75rem; color: var(--color-gray-400);
  border-bottom: 1px solid var(--color-gray-100);
  margin-bottom: 0.25rem;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.dropdown-menu a,
.dropdown-menu button {
  display: block; width: 100%;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem; color: var(--color-gray-700);
  text-align: left; background: none; border: none; cursor: pointer;
  transition: background 0.15s;
}
.dropdown-menu a:hover,
.dropdown-menu button:hover { background: var(--color-gray-50); }

.dropdown-divider {
  height: 1px; background: var(--color-gray-100);
  margin: 0.25rem 0;
}

/* ── Icons (CSS-only) ────────────────────────────────────────── */
.icon {
  display: inline-block; width: 1.25rem; height: 1.25rem;
  background-size: contain; background-repeat: no-repeat; background-position: center;
}
.icon-menu {
  width: 1.5rem; height: 1.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%234b5563' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M4 6h16M4 12h16M4 18h16'/%3E%3C/svg%3E");
  transition: background-image 0.15s ease;
}
.nav-mobile-toggle[aria-expanded="true"] .icon-menu {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%234b5563' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M6 18L18 6M6 6l12 12'/%3E%3C/svg%3E");
}
.icon-dashboard {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='currentColor' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M4 6a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2H6a2 2 0 01-2-2V6zm10 0a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2h-2a2 2 0 01-2-2V6zM4 16a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2H6a2 2 0 01-2-2v-2zm10 0a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2h-2a2 2 0 01-2-2v-2z'/%3E%3C/svg%3E");
}
.icon-clipboard {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23fff' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2'/%3E%3C/svg%3E");
}
.icon-chat {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23fff' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M8 12h.01M12 12h.01M16 12h.01M21 12c0 4.418-4.03 8-9 8a9.863 9.863 0 01-4.255-.949L3 20l1.395-3.72C3.512 15.042 3 13.574 3 12c0-4.418 4.03-8 9-8s9 3.582 9 8z'/%3E%3C/svg%3E");
}
.icon-people {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23fff' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M17 20h5v-2a3 3 0 00-5.356-1.857M17 20H7m10 0v-2c0-.656-.126-1.283-.356-1.857M7 20H2v-2a3 3 0 015.356-1.857M7 20v-2c0-.656.126-1.283.356-1.857m0 0a5.002 5.002 0 019.288 0M15 7a3 3 0 11-6 0 3 3 0 016 0z'/%3E%3C/svg%3E");
}

/* ── Hero ────────────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  padding: calc(var(--nav-height) + 4rem) 1.5rem 6rem;
  text-align: center;
  min-height: 80vh;
  display: flex; align-items: center; justify-content: center;
  background-image:
    linear-gradient(rgba(0,0,0,.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,.02) 1px, transparent 1px);
  background-size: 40px 40px;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.blob {
  position: absolute; border-radius: 50%;
  filter: blur(40px);
}
.blob-1 {
  background: radial-gradient(circle, rgba(76,110,245,0.15) 0%, transparent 70%);
  width: 600px; height: 600px; top: -200px; right: -100px;
}
.blob-2 {
  background: radial-gradient(circle, rgba(124,58,237,0.12) 0%, transparent 70%);
  width: 500px; height: 500px; bottom: -150px; left: -100px;
}
.hero-content {
  position: relative; z-index: 1;
  max-width: 48rem; margin: 0 auto;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800; line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}
.hero-subtitle {
  font-size: 1.125rem; color: var(--color-gray-500);
  max-width: 36rem; margin: 0 auto 2.5rem;
  line-height: 1.7;
}
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── Sections ────────────────────────────────────────────────── */
.section-inner {
  max-width: 72rem; margin: 0 auto; padding: 5rem 1.5rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: 2rem; font-weight: 700;
  text-align: center; margin-bottom: 0.75rem;
}
.section-subtitle {
  text-align: center; color: var(--color-gray-500);
  font-size: 1.125rem;
  margin-bottom: 3rem;
}

/* ── Product Grid ────────────────────────────────────────────── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: 1.5rem;
}
.product-card {
  background: #fff;
  border: 1px solid var(--color-gray-100);
  border-radius: var(--radius-2xl);
  padding: 2rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}
.product-icon {
  width: 3rem; height: 3rem;
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
}
.product-assess .product-icon { background: linear-gradient(135deg, var(--color-purple-500), #7c3aed); }
.product-coach .product-icon  { background: linear-gradient(135deg, var(--color-amber-500), #ea580c); }
.product-feedback .product-icon { background: linear-gradient(135deg, var(--color-green-500), #059669); }

.product-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem; font-weight: 700;
  margin-bottom: 0.75rem;
}
.product-card p {
  color: var(--color-gray-500); font-size: 0.9375rem;
  line-height: 1.6; margin-bottom: 1rem;
}
.product-link { font-weight: 600; font-size: 0.875rem; }
.product-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem; font-weight: 600;
  color: var(--color-gray-500);
  background: var(--color-gray-100);
  border-radius: 9999px;
}

/* ── Social Proof ────────────────────────────────────────────── */
.social-proof { background: #fff; border-top: 1px solid var(--color-gray-100); border-bottom: 1px solid var(--color-gray-100); }

.proof-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 2rem; text-align: center;
}
.proof-number {
  display: block;
  font-family: var(--font-display);
  font-size: 2.5rem; font-weight: 800;
  background: linear-gradient(135deg, var(--color-primary-600), var(--color-purple-600));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.proof-label {
  display: block;
  color: var(--color-gray-500); font-size: 0.875rem; font-weight: 500;
  margin-top: 0.25rem;
}

/* ── CTA Section ─────────────────────────────────────────────── */
.cta-section {
  text-align: center;
  background: linear-gradient(135deg, var(--color-primary-50), #faf5ff);
}
.cta-section h2 {
  font-family: var(--font-display);
  font-size: 1.75rem; font-weight: 700;
  margin-bottom: 0.5rem;
}
.cta-section p {
  color: var(--color-gray-500); margin-bottom: 1.5rem;
}

/* ── Auth Pages ──────────────────────────────────────────────── */
.auth-page {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: calc(var(--nav-height) + 2rem) 1rem 2rem;
  background-image:
    linear-gradient(rgba(0,0,0,.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,.02) 1px, transparent 1px);
  background-size: 40px 40px;
}
.auth-bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }

.auth-card {
  position: relative; z-index: 1;
  width: 100%; max-width: 28rem;
  background: #fff;
  border: 1px solid var(--color-gray-100);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl);
  padding: 2.5rem;
}
.auth-header {
  text-align: center; margin-bottom: 2rem;
}
.auth-header .brand-icon { margin: 0 auto 1rem; }
.auth-header h1 {
  font-family: var(--font-display);
  font-size: 1.5rem; font-weight: 700;
}
.auth-header p {
  color: var(--color-gray-500); font-size: 0.875rem;
  margin-top: 0.25rem;
}

.auth-form { display: flex; flex-direction: column; gap: 1rem; }

.form-group { display: flex; flex-direction: column; gap: 0.375rem; }
.form-group label,
.form-group legend {
  font-size: 0.875rem; font-weight: 600;
  color: var(--color-gray-800);
  padding: 0;
  margin: 0;
}
.form-group label em,
.form-group legend em {
  font-style: normal;
  color: var(--color-gray-500);
  font-weight: 500;
  margin-left: 0.25rem;
}
.form-group small,
.form-group .field-hint {
  font-size: 0.8125rem;
  color: var(--color-gray-600);
  line-height: 1.5;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-xl);
  font-size: 0.9375rem;
  font-family: inherit;
  line-height: 1.5;
  color: var(--color-gray-900);
  background: #fff;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group textarea { resize: vertical; min-height: 4.5rem; }
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--color-primary-500);
  box-shadow: var(--focus-ring);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--color-gray-400); }
.form-group input:hover:not(:focus):not(:disabled),
.form-group textarea:hover:not(:focus):not(:disabled),
.form-group select:hover:not(:focus):not(:disabled) {
  border-color: var(--color-gray-300);
}
.form-group input:disabled,
.form-group textarea:disabled,
.form-group select:disabled {
  background: var(--color-gray-50);
  color: var(--color-gray-500);
  cursor: not-allowed;
}
/* Only light up invalid state after the user has interacted. :user-invalid
   is supported in current Safari/Chrome/Firefox; falls back to no styling
   on older browsers (rather than nagging on page load like :invalid would). */
.form-group input:user-invalid,
.form-group textarea:user-invalid,
.form-group select:user-invalid {
  border-color: var(--color-red-500, #ef4444);
}
.form-group input:user-invalid:focus,
.form-group textarea:user-invalid:focus,
.form-group select:user-invalid:focus {
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

/* Native <select> renders as an iOS picker wheel trigger at awkward
   heights on mobile Safari. Strip the UA chrome and paint our own
   chevron so the control matches text inputs in height and radius. */
.form-group select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23475569' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'><polyline points='4 6 8 10 12 6'/></svg>");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1rem 1rem;
}

/* Fieldsets used as structural form groups. Remove browser chrome,
   rely on the .form-group container for spacing. */
.form-group fieldset { border: none; padding: 0; margin: 0; }

/* Custom checkbox + radio — applied site-wide. Without `appearance: none`,
   iOS Safari draws an oversized SF-style rounded square for every
   native input, which reads as unstyled against our HR-director-grade
   layout. We redraw a compact 1.125rem square/circle with a primary
   fill and an inline SVG tick on check.

   Exclusions: inputs hidden by a visually-hidden parent pattern
   (.likert-option, .fc-radio) keep their existing absolute/opacity
   overrides thanks to source-order specificity — those rules come
   later in the stylesheet. */
input[type="checkbox"],
input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 1.125rem;
  height: 1.125rem;
  flex-shrink: 0;
  margin: 0;
  padding: 0;
  border: 1.5px solid var(--color-gray-400);
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s, transform 0.1s;
  display: inline-grid;
  place-content: center;
  color: #fff;
  font-size: inherit;
  vertical-align: middle;
}
input[type="checkbox"] { border-radius: 0.25rem; }
input[type="radio"] { border-radius: 50%; }
input[type="checkbox"]:hover:not(:disabled),
input[type="radio"]:hover:not(:disabled) {
  border-color: var(--color-primary-500);
}
input[type="checkbox"]:checked {
  background: var(--color-primary-600);
  border-color: var(--color-primary-600);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='3.5 8.5 6.5 11.5 12.5 5'/></svg>");
  background-size: 0.875rem 0.875rem;
  background-repeat: no-repeat;
  background-position: center;
}
input[type="radio"]:checked {
  border-color: var(--color-primary-600);
  background: radial-gradient(circle, var(--color-primary-600) 45%, #fff 50%);
}
input[type="checkbox"]:active:not(:disabled),
input[type="radio"]:active:not(:disabled) { transform: scale(0.92); }
input[type="checkbox"]:focus-visible,
input[type="radio"]:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}
input[type="checkbox"]:disabled,
input[type="radio"]:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* When a <label> wraps a checkbox/radio inline with prose (common pattern:
   `<label><input type="checkbox"> text…</label>`), switch to a flex row so
   the control aligns to the first line of text, not the baseline of the
   last wrapped line — and give it a consistent gap. Scoped to direct
   form-group children so custom card-style radio groups (e.g.
   .invite-routing-options label) keep their own layout. */
.form-group > label:has(> input[type="checkbox"]),
.form-group > label:has(> input[type="radio"]) {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-weight: 500;
  color: var(--color-gray-800);
  line-height: var(--lh-normal);
  cursor: pointer;
}
.form-group > label:has(> input[type="checkbox"]) > input,
.form-group > label:has(> input[type="radio"]) > input {
  margin-top: 0.1875rem;
}

.auth-footer {
  text-align: center; margin-top: 1.5rem;
  font-size: 0.875rem; color: var(--color-gray-500);
}
.auth-footer a { font-weight: 600; }

/* Error banner on auth cards (sign up with existing email, password
   rejected, etc). Sits above the form, inside the card — a soft-red
   card that keeps the tone informative rather than alarming, with an
   optional inline CTA for recovery actions ("Sign in instead →"). */
.auth-error {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  padding: 0.875rem 1rem;
  margin-bottom: 1rem;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-left: 3px solid #ef4444;
  border-radius: var(--radius-lg);
  color: #991b1b;
  font-size: 0.9375rem;
  line-height: var(--lh-normal);
}
.auth-error p { margin: 0; color: inherit; font-weight: 500; }
.auth-error-cta {
  align-self: flex-start;
  color: #991b1b;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}
.auth-error-cta:hover { color: #7f1d1d; }

/* TOTP */
.totp-secret {
  background: var(--color-gray-50);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-lg);
  padding: 1rem;
  margin-bottom: 1.5rem;
  text-align: center;
}
.totp-uri { font-size: 0.75rem; word-break: break-all; margin-bottom: 0.5rem; }
.totp-manual { font-size: 0.875rem; }
.totp-manual code {
  font-size: 1rem; font-weight: 600;
  letter-spacing: 0.05em;
}

/* One-time code inputs (TOTP verify, SMS codes) get a centered, spaced,
   monospace treatment so the 6 digits read as a code rather than prose. */
input[autocomplete="one-time-code"] {
  text-align: center;
  font-variant-numeric: tabular-nums;
  font-family: 'SF Mono', ui-monospace, 'Fira Code', monospace;
  font-size: 1.375rem !important;
  font-weight: 600;
  letter-spacing: 0.35em;
  padding-left: 1rem !important;
  padding-right: 0.625rem !important;
}
input[autocomplete="one-time-code"]::placeholder {
  letter-spacing: 0.35em;
  color: var(--color-gray-300);
  font-weight: 400;
}

/* ── Dashboard ───────────────────────────────────────────────── */
.dashboard-page { padding-top: calc(var(--nav-height) + 2rem); min-height: 100vh; }

.page-inner { max-width: 64rem; margin: 0 auto; padding: 0 1.5rem 4rem; }

.page-header {
  margin-bottom: 2rem;
}
.page-header h1 {
  font-family: var(--font-display);
  font-size: 1.75rem; font-weight: 700;
}

.credit-summary { margin-bottom: 2.5rem; }
.credit-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}
.credit-card {
  background: #fff;
  border: 1px solid var(--color-gray-100);
  border-radius: var(--radius-xl);
  padding: 1.25rem 1.5rem;
  display: flex; align-items: center; gap: 1rem;
}
.credit-icon {
  width: 2.5rem; height: 2.5rem;
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.credit-assessment .credit-icon { background: linear-gradient(135deg, var(--color-purple-500), #7c3aed); }
.credit-coaching .credit-icon   { background: linear-gradient(135deg, var(--color-amber-500), #ea580c); }
.credit-feedback .credit-icon   { background: linear-gradient(135deg, var(--color-green-500), #059669); }

.credit-value {
  font-family: var(--font-display);
  font-size: 1.5rem; font-weight: 700;
  display: block;
}
.credit-label {
  font-size: 0.8125rem; color: var(--color-gray-600);
  display: block;
}

/* ── Blended meta-facets — science-backed profile ────────────── */
.meta-facets {
  background: linear-gradient(180deg, #fafbff 0%, #fff 100%);
  border: 1px solid var(--color-gray-100);
  border-radius: var(--radius-2xl);
  padding: 1.75rem 1.5rem 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.meta-facets::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, #6366f1, var(--color-purple-600), #06b6d4);
}
.meta-facets-header {
  padding: 0 0.25rem 1.25rem;
  border-bottom: 1px solid var(--color-gray-50);
  margin-bottom: 1rem;
}
.meta-facets-header h2 {
  font-family: var(--font-display);
  font-size: 1.25rem; font-weight: 700;
  margin: 0 0 0.25rem;
}
.meta-facets-lead { font-size: 0.875rem; color: var(--color-gray-500); margin: 0; }
.meta-facet-list {
  list-style: none; padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr));
  gap: 0.875rem;
}
.meta-facet-card {
  background: #fff;
  border: 1px solid var(--color-gray-100);
  border-radius: var(--radius-lg);
  padding: 1rem 1.1rem 0.85rem;
  display: flex; flex-direction: column; gap: 0.55rem;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.meta-facet-card:hover {
  border-color: var(--color-primary-200, #c7d2fe);
  box-shadow: var(--shadow-sm);
}
.meta-facet-card[data-empty="true"] {
  background: repeating-linear-gradient(135deg,
    #fff, #fff 6px, #fafafa 6px, #fafafa 12px);
}
.meta-facet-top {
  display: flex; align-items: center; justify-content: space-between; gap: 0.5rem;
}
.meta-facet-label {
  font-family: var(--font-display);
  font-size: 0.975rem; font-weight: 700;
  color: var(--color-gray-900);
  margin: 0;
}
.meta-facet-confidence {
  display: inline-flex; gap: 0.25rem; align-items: center;
}
.meta-facet-confidence-dot {
  width: 0.5rem; height: 0.5rem; border-radius: 999px;
  background: var(--color-gray-200);
  display: inline-block;
}
.meta-facet-confidence-filled { background: var(--color-primary-500); }
.meta-facet-band-high .meta-facet-confidence-filled { background: var(--color-green-500); }
.meta-facet-band-moderate .meta-facet-confidence-filled { background: var(--color-amber-500); }
.meta-facet-band-low .meta-facet-confidence-filled { background: var(--color-purple-500); }

.meta-facet-score {
  display: flex; align-items: center; gap: 0.625rem;
}
.meta-facet-score-bar {
  flex: 1;
  height: 0.5rem;
  background: var(--color-gray-100);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}
.meta-facet-score-fill {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--color-primary-500), var(--color-purple-500));
  border-radius: 999px;
  transition: width 0.3s ease;
}
.meta-facet-band-high .meta-facet-score-fill {
  background: linear-gradient(90deg, #10b981, var(--color-green-500));
}
.meta-facet-band-moderate .meta-facet-score-fill {
  background: linear-gradient(90deg, #fbbf24, var(--color-amber-500));
}
.meta-facet-band-low .meta-facet-score-fill {
  background: linear-gradient(90deg, #a78bfa, var(--color-purple-500));
}
.meta-facet-score-value {
  font-family: var(--font-display);
  font-size: 0.9375rem; font-weight: 700;
  color: var(--color-gray-700);
  min-width: 1.75rem; text-align: right;
  font-variant-numeric: tabular-nums;
}
.meta-facet-narrative {
  font-size: 0.8125rem; color: var(--color-gray-600);
  line-height: 1.5;
  margin: 0;
}
.meta-facet-risks {
  list-style: none; padding: 0; margin: 0.1rem 0 0;
  display: flex; flex-wrap: wrap; gap: 0.35rem;
}
.meta-facet-risk {
  font-size: 0.75rem; font-weight: 600;
  color: #b91c1c;
  background: #fef2f2;
  border: 1px solid #fecaca;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
}
.meta-facet-risk-score { color: #991b1b; font-weight: 500; }
.meta-facet-footer {
  margin-top: 0.25rem;
  display: flex; flex-direction: column; gap: 0.35rem;
}
.meta-facet-badge {
  font-size: 0.6875rem; color: var(--color-gray-500);
  text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600;
}
.meta-facet-sources summary {
  font-size: 0.75rem; color: var(--color-primary-600);
  cursor: pointer; list-style: none;
  padding: 0.15rem 0;
}
.meta-facet-sources summary::-webkit-details-marker { display: none; }
.meta-facet-sources summary::before {
  content: "▸ "; display: inline-block; transition: transform 0.15s;
}
.meta-facet-sources[open] summary::before { content: "▾ "; }
.meta-facet-sources ul {
  list-style: none; padding: 0.35rem 0 0; margin: 0;
  display: flex; flex-direction: column; gap: 0.2rem;
}
.meta-facet-source {
  font-size: 0.75rem; color: var(--color-gray-600);
  display: flex; justify-content: space-between; gap: 0.5rem;
  padding: 0.2rem 0;
  border-top: 1px dashed var(--color-gray-100);
}
.meta-facet-source:first-child { border-top: none; }
.meta-facet-source-name { font-weight: 500; color: var(--color-gray-700); }
.meta-facet-source-weight { color: var(--color-gray-400); font-variant-numeric: tabular-nums; white-space: nowrap; }
.meta-facet-source-missing { opacity: 0.5; }
.meta-facet-source-missing .meta-facet-source-name { font-style: italic; }

/* ── Identity card — who-you-are summary ─────────────────────── */
.identity-card {
  background: #fff;
  border: 1px solid var(--color-gray-100);
  border-radius: var(--radius-2xl);
  padding: 1.75rem 1.5rem 1.25rem;
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.identity-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary-500), var(--color-purple-600), #ec4899);
}
.identity-card-header {
  padding: 0 0.5rem 1.25rem;
  border-bottom: 1px solid var(--color-gray-50);
  margin-bottom: 0.75rem;
}
.identity-card-header h2 {
  font-family: var(--font-display);
  font-size: 1.25rem; font-weight: 700;
  margin: 0 0 0.25rem;
}
.identity-progress { font-size: 0.875rem; color: var(--color-gray-500); margin: 0; }
.identity-progress strong { color: var(--color-gray-900); font-weight: 700; }

.identity-facets {
  list-style: none; padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
  gap: 0.5rem;
}
.identity-facet { --facet-color: var(--color-gray-200); }
.identity-facet-link {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.875rem;
  padding: 0.875rem 1rem;
  min-height: 3.5rem; /* 56px — comfortable mobile tap target */
  border-radius: var(--radius-lg);
  color: inherit;
  transition: background 0.15s, box-shadow 0.15s;
}
.identity-facet-link:hover {
  background: var(--color-gray-50);
  box-shadow: inset 0 0 0 1px var(--color-gray-100);
}
.identity-facet-accent {
  width: 0.5rem; align-self: stretch; min-height: 2.75rem;
  border-radius: 999px; background: var(--facet-color);
}
.identity-facet-empty .identity-facet-accent {
  background: repeating-linear-gradient(45deg,
    var(--color-gray-200), var(--color-gray-200) 3px,
    transparent 3px, transparent 6px);
  opacity: 0.8;
}
.identity-facet-body { min-width: 0; display: flex; flex-direction: column; gap: 0.125rem; }
.identity-facet-label {
  font-size: 0.6875rem; color: var(--color-gray-500);
  text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600;
}
.identity-facet-value {
  font-family: var(--font-display);
  font-size: 1rem; font-weight: 700;
  color: var(--color-gray-900);
}
.identity-facet-value-placeholder { color: var(--color-gray-400); font-weight: 500; font-style: italic; }
.identity-facet-narrative {
  font-size: 0.8125rem; color: var(--color-gray-500); line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.identity-facet-arrow {
  color: var(--color-gray-300); font-size: 1.125rem;
  align-self: center; transition: color 0.15s, transform 0.15s;
}
.identity-facet-link:hover .identity-facet-arrow {
  color: var(--color-primary-600); transform: translateX(2px);
}
.identity-facet-cta-action {
  font-size: 0.75rem; font-weight: 600; color: var(--color-primary-600);
  text-transform: none; letter-spacing: 0; white-space: nowrap;
}
.identity-facet-empty .identity-facet-link:hover { background: var(--color-primary-50); }

.completed-assessments { }
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1rem; flex-wrap: wrap; gap: 0.75rem;
}
.section-header h2 {
  font-family: var(--font-display);
  font-size: 1.25rem; font-weight: 700;
}

.result-list {
  list-style: none;
  background: #fff;
  border: 1px solid var(--color-gray-100);
  border-radius: var(--radius-xl);
  overflow: hidden;
}
.result-item {
  position: relative;
  display: flex;
  align-items: stretch;
}
.result-item + .result-item { border-top: 1px solid var(--color-gray-50); }
.result-main {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.875rem 1.25rem;
  color: inherit;
  transition: background 0.15s;
}
.result-main:hover { background: var(--color-gray-50); }
.result-accent {
  width: 0.5rem;
  height: 2rem;
  border-radius: 999px;
  background: linear-gradient(180deg,
    color-mix(in oklab, var(--row-accent), white 10%),
    color-mix(in oklab, var(--row-accent), black 10%));
  flex-shrink: 0;
}
.result-body {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  min-width: 0;
}
.result-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-gray-900);
}
.result-meta {
  font-size: 0.8125rem;
  color: var(--color-gray-500);
}
.result-meta strong { color: var(--color-gray-700); font-weight: 600; }
.result-item-orphaned .result-title { color: var(--color-gray-400); font-style: italic; }

.result-actions {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding-right: 0.75rem;
}
.result-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;   /* 40px — close to the 44px iOS tap recommendation */
  height: 2.5rem;
  border-radius: var(--radius-md);
  color: var(--color-gray-500); /* WCAG AA against white */
  transition: background 0.15s, color 0.15s, transform 0.15s;
}
.result-action:hover {
  background: var(--color-gray-100);
  color: var(--color-gray-800);
}
.result-action:active { transform: scale(0.95); }

.empty-state {
  background: #fff;
  border: 1px dashed var(--color-gray-200);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl) var(--space-lg);
  text-align: center;
}
.empty-state p {
  color: var(--color-gray-600);
  font-size: var(--text-base);
  line-height: var(--lh-copy);
  margin: 0 auto var(--space-sm);
  max-width: 32rem;
}
.empty-state p strong { color: var(--color-gray-900); font-weight: 700; }
.empty-state p:last-of-type { margin-bottom: 0; }
.empty-state a:not(.btn) { font-weight: 600; font-size: 0.875rem; }

/* ── Pricing ────────────────────────────────────────────────── */
.pricing-page {
  position: relative;
  min-height: 100vh;
  padding-top: calc(var(--nav-height) + 3rem);
  background-image:
    linear-gradient(rgba(0,0,0,.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,.02) 1px, transparent 1px);
  background-size: 40px 40px;
}
.pricing-bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }

.pricing-inner { max-width: 72rem; }

.pricing-header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.pricing-badge {
  display: inline-block;
  padding: 0.375rem 1rem;
  font-size: 0.8125rem; font-weight: 600;
  color: var(--color-primary-700);
  background: var(--color-primary-50);
  border: 1px solid var(--color-primary-100);
  border-radius: 9999px;
  margin-bottom: 1.25rem;
}
.pricing-header h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.pricing-header p {
  color: var(--color-gray-500);
  font-size: 1.125rem;
  max-width: 36rem;
  margin: 0 auto;
  line-height: 1.7;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: 1.5rem;
  align-items: start;
  margin-bottom: 5rem;
}

.pricing-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--color-gray-100);
  border-radius: var(--radius-2xl);
  padding: 2.5rem 2rem 2rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}

.pricing-card-popular {
  border-color: var(--color-primary-200);
  box-shadow: 0 0 0 1px var(--color-primary-100), var(--shadow-xl);
  background: linear-gradient(180deg, #fff 0%, var(--color-primary-50) 100%);
}
.pricing-card-popular:hover {
  box-shadow: 0 0 0 1px var(--color-primary-200), 0 16px 48px rgba(76,110,245,0.15);
}

.popular-badge {
  position: absolute;
  top: -0.75rem; left: 50%; transform: translateX(-50%);
  padding: 0.25rem 1rem;
  font-size: 0.75rem; font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--color-primary-600), var(--color-purple-600));
  border-radius: 9999px;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(76,110,245,0.3);
}

.pricing-card-header h2 {
  font-family: var(--font-display);
  font-size: 1.25rem; font-weight: 700;
  margin-bottom: 0.25rem;
}
.pricing-card-desc {
  font-size: 0.875rem;
  color: var(--color-gray-500);
  margin-bottom: 1.5rem;
}

.pricing-amount {
  display: flex;
  align-items: flex-start;
  gap: 0.125rem;
  margin-bottom: 0.25rem;
}
.pricing-currency {
  font-family: var(--font-display);
  font-size: 1.5rem; font-weight: 700;
  color: var(--color-gray-600);
  margin-top: 0.375rem;
}
.pricing-dollars {
  font-family: var(--font-display);
  font-size: 3.5rem; font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--color-gray-900), var(--color-gray-700));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.pricing-card-popular .pricing-dollars {
  background: linear-gradient(135deg, var(--color-primary-700), var(--color-purple-600));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pricing-per-unit {
  font-size: 0.8125rem;
  color: var(--color-gray-500);
  margin-bottom: 1.5rem;
}

.pricing-features {
  list-style: none;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}
.pricing-features li {
  font-size: 0.9375rem;
  color: var(--color-gray-600);
  padding-left: 1.625rem;
  position: relative;
  line-height: 1.5;
}
.pricing-features li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.25rem;
  width: 1rem; height: 1rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2222c55e'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-size: contain;
}

/* Pricing form with promo code */
.pricing-form { display: flex; flex-direction: column; gap: 0.75rem; }
.promo-input {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-lg);
  font-size: 0.8125rem;
  font-family: inherit;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  outline: none;
  transition: border-color 0.2s;
}
.promo-input:focus {
  border-color: var(--color-primary-500);
}
.promo-input::placeholder {
  text-transform: none;
  letter-spacing: normal;
  color: var(--color-gray-400);
}
.checkout-promo {
  font-size: 0.875rem;
  color: var(--color-green-600);
  margin-top: 0.5rem;
}

/* Pricing FAQ */
.pricing-faq {
  max-width: 56rem;
  margin: 0 auto 4rem;
}
.pricing-faq h2 {
  font-family: var(--font-display);
  font-size: 1.5rem; font-weight: 700;
  text-align: center;
  margin-bottom: 2rem;
}
.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1.5rem;
}
.faq-item {
  background: #fff;
  border: 1px solid var(--color-gray-100);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
}
.faq-item h3 {
  font-family: var(--font-display);
  font-size: 0.9375rem; font-weight: 700;
  margin-bottom: 0.5rem;
}
.faq-item p {
  font-size: 0.875rem;
  color: var(--color-gray-500);
  line-height: 1.6;
}

/* ── Checkout Confirmation ──────────────────────────────────── */
.checkout-confirmation {
  max-width: 32rem;
  margin: 4rem auto;
  text-align: center;
  background: #fff;
  border: 1px solid var(--color-gray-100);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-lg);
  padding: 3rem 2.5rem;
}
.checkout-icon {
  margin-bottom: 1.5rem;
}
.checkout-confirmation h1 {
  font-family: var(--font-display);
  font-size: 1.5rem; font-weight: 700;
  margin-bottom: 1rem;
}
.checkout-summary {
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
}
.checkout-id {
  font-size: 0.8125rem;
  color: var(--color-gray-500);
  margin-bottom: 0.75rem;
}
.checkout-note {
  font-size: 0.875rem;
  color: var(--color-gray-500);
  background: var(--color-gray-50);
  border-radius: var(--radius-lg);
  padding: 0.75rem 1rem;
  margin-bottom: 2rem;
}

/* ── Enterprise Banner ────────────────────────────────────────── */
.enterprise-banner {
  background: linear-gradient(135deg, var(--color-gray-900), #1e1b4b);
  color: #fff;
  border-radius: var(--radius-2xl);
  padding: 3rem;
  margin-top: 3rem;
  text-align: center;
}
.enterprise-banner h2 {
  font-family: var(--font-display);
  font-size: 1.75rem; font-weight: 700;
  margin-bottom: 0.75rem;
}
.enterprise-banner p {
  color: rgba(255,255,255,0.7);
  max-width: 36rem;
  margin: 0 auto 1.5rem;
  line-height: 1.6;
}
.enterprise-actions {
  display: flex; gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.enterprise-banner .btn-primary {
  background: #fff;
  color: var(--color-gray-900);
  box-shadow: 0 4px 14px rgba(0,0,0,0.3);
}
.enterprise-banner .btn-primary:hover { background: var(--color-gray-100); }
.enterprise-banner .btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.3);
  color: #fff;
}
.enterprise-banner .btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.5);
  color: #fff;
}
.enterprise-perks {
  display: flex; gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  list-style: none;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
}
.enterprise-perks li::before {
  content: "\2713";
  color: rgba(255,255,255,0.4);
  margin-right: 0.5rem;
}

/* ── Assessment Catalogue ─────────────────────────────────────── */
.catalogue-page { padding-top: calc(var(--nav-height) + 2rem); min-height: 100vh; }

.catalogue-header {
  text-align: center;
  margin-bottom: 3rem;
}
.catalogue-header h1 {
  font-family: var(--font-display);
  font-size: 2rem; font-weight: 700;
}
.catalogue-subtitle {
  color: var(--color-gray-500);
  font-size: 1.125rem;
  margin-top: 0.5rem;
  max-width: 36rem;
  margin-left: auto; margin-right: auto;
}

.catalogue-category { margin-bottom: 2.5rem; }
.catalogue-category h2 {
  font-family: var(--font-display);
  font-size: 1.25rem; font-weight: 700;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-primary-100);
}

.assessment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
  gap: 1rem;
}
.assessment-card {
  background: #fff;
  border: 1px solid var(--color-gray-100);
  border-radius: var(--radius-xl);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.assessment-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}
.assessment-card a {
  display: block;
  padding: 1.5rem;
  color: inherit;
  text-decoration: none;
}
.assessment-card h3 {
  font-family: var(--font-display);
  font-size: 1.0625rem; font-weight: 700;
  margin-bottom: 0.5rem;
}
.assessment-description {
  color: var(--color-gray-500);
  font-size: 0.875rem;
  line-height: 1.5;
  margin-bottom: 0.75rem;
}
.assessment-meta {
  display: flex; gap: 1rem;
  list-style: none;
  font-size: 0.8125rem;
  color: var(--color-gray-500);
}

.catalogue-cta {
  text-align: center;
  margin-top: 3rem;
  padding: 3rem 1.5rem;
  background: linear-gradient(135deg, var(--color-primary-50), #faf5ff);
  border-radius: var(--radius-2xl);
}
.catalogue-cta h2 {
  font-family: var(--font-display);
  font-size: 1.5rem; font-weight: 700;
  margin-bottom: 0.5rem;
}
.catalogue-cta p {
  color: var(--color-gray-500);
  margin-bottom: 1.5rem;
}
.catalogue-cta-actions {
  display: flex; gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Assessment Detail ───────────────────────────────────────── */
.assessment-detail-page { padding-top: calc(var(--nav-height) + 2rem); min-height: 100vh; }

.breadcrumb {
  font-size: 0.875rem;
  color: var(--color-gray-500);
  margin-bottom: 1.5rem;
}
.breadcrumb a { color: var(--color-primary-600); }

.assessment-detail-header {
  margin-bottom: 2rem;
}
.assessment-detail-header h1 {
  font-family: var(--font-display);
  font-size: 2rem; font-weight: 700;
}
.assessment-detail-category {
  font-size: 0.875rem;
  color: var(--color-primary-600);
  font-weight: 600;
  margin-top: 0.25rem;
}

.assessment-detail-body {
  display: grid;
  grid-template-columns: 1fr 20rem;
  gap: 2.5rem;
  align-items: start;
}

.assessment-detail-overview p {
  color: var(--color-gray-600);
  font-size: 1.0625rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.assessment-detail-dimensions h2 {
  font-family: var(--font-display);
  font-size: 1.25rem; font-weight: 700;
  margin-bottom: 1rem;
}

.dimension-list { list-style: none; }
.dimension-item {
  padding: 1rem 0;
  border-bottom: 1px solid var(--color-gray-100);
}
.dimension-name {
  display: block;
  font-weight: 600;
  font-size: 0.9375rem;
  margin-bottom: 0.25rem;
}
.dimension-description {
  display: block;
  color: var(--color-gray-500);
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}
.dimension-scale {
  display: block;
  font-size: 0.8125rem;
  color: var(--color-gray-500);
  font-style: italic;
}

.assessment-info-card {
  background: #fff;
  border: 1px solid var(--color-gray-100);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  position: sticky;
  top: calc(var(--nav-height) + 1.5rem);
}

.assessment-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.assessment-stats > div {
  text-align: center;
}
.assessment-stats dt {
  font-size: 0.75rem;
  color: var(--color-gray-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.assessment-stats dd {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
}

.assessment-info-card .btn { margin-bottom: 0.5rem; }
.assessment-info-note {
  text-align: center;
  font-size: 0.8125rem;
  color: var(--color-gray-500);
}

@media (max-width: 768px) {
  .assessment-detail-body {
    grid-template-columns: 1fr;
  }
  .assessment-info-card {
    position: static;
  }
}

/* ── Assessment Take ─────────────────────────────────────────── */
.assessment-take-page { padding-top: calc(var(--nav-height) + 2rem); min-height: 100vh; }

.assessment-take-header {
  margin-bottom: 2.5rem;
  text-align: center;
}
.assessment-take-header h1 {
  font-family: var(--font-display);
  font-size: 2rem; font-weight: 700;
  margin-bottom: 0.5rem;
}
.assessment-take-intro {
  color: var(--color-gray-500);
  font-size: 1rem;
  max-width: 36rem;
  margin: 0 auto;
}

.assessment-take-form { max-width: 44rem; margin: 0 auto; }

.question-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 0;
  margin: 0 0 2rem;
}

.question-card {
  background: #fff;
  border: 1px solid var(--color-gray-100);
  border-radius: var(--radius-xl);
  padding: 1.5rem 1.5rem 1.25rem;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

.question-text {
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-gray-900);
  margin-bottom: 1rem;
  line-height: 1.5;
}
.question-number {
  color: var(--color-primary-600);
  font-weight: 700;
  margin-right: 0.25rem;
}

.likert-scale {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.likert-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.375rem;
  padding: 0.75rem 0.5rem;
  background: var(--color-gray-50);
  border: 1.5px solid var(--color-gray-100);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all 0.15s ease;
  color: var(--color-gray-600);
  user-select: none;
  text-align: center;
  min-height: 4.5rem;
}
.likert-option:hover {
  border-color: var(--color-primary-300, #a5b4fc);
  background: #fff;
}
.likert-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.likert-option:has(input:checked) {
  background: var(--color-primary-600);
  color: #fff;
  border-color: var(--color-primary-600);
  box-shadow: 0 4px 12px rgba(76,110,245,0.25);
}
.likert-option:focus-within {
  outline: 2px solid var(--color-primary-600);
  outline-offset: 2px;
}
.likert-value {
  font-weight: 700;
  font-size: 1.125rem;
  line-height: 1;
}
.likert-label {
  font-size: 0.7rem;
  font-weight: 500;
  line-height: 1.2;
  opacity: 0.85;
}

.assessment-take-actions {
  position: sticky;
  bottom: 1rem;
  padding-top: 1.5rem;
  /* Soft fade so the submit button doesn't look trapped beneath the
     last question — reinforces the call-to-action without a heavy
     bar. The gradient stops at the button's top edge. */
  background: linear-gradient(180deg,
    rgba(249, 250, 251, 0) 0%,
    rgba(249, 250, 251, 0.9) 50%,
    rgba(249, 250, 251, 1) 100%);
}
@supports (backdrop-filter: blur(0)) {
  .assessment-take-actions {
    background: linear-gradient(180deg,
      rgba(249, 250, 251, 0) 0%,
      rgba(249, 250, 251, 0.85) 50%,
      rgba(249, 250, 251, 0.98) 100%);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
  }
}

@media (max-width: 540px) {
  .likert-option { padding: 0.5rem 0.125rem; min-height: 4rem; }
  .likert-value { font-size: 1rem; }
  .likert-label { font-size: 0.625rem; }
  .question-card { padding: 1.25rem 1rem 1rem; }
}

/* ── Insufficient Credits ────────────────────────────────────── */
.insufficient-credits-page { padding-top: calc(var(--nav-height) + 4rem); min-height: 100vh; }
.insufficient-credits-card {
  max-width: 32rem;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--color-gray-100);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  text-align: center;
}
.insufficient-credits-card h1 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.insufficient-credits-card p {
  color: var(--color-gray-600);
  margin-bottom: 1.5rem;
}
.insufficient-credits-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Report ──────────────────────────────────────────────────── */
.report-page { padding-top: calc(var(--nav-height) + 2rem); min-height: 100vh; }

.report-example-banner,
.report-shared-banner {
  background: linear-gradient(135deg, var(--color-primary-50), #faf5ff);
  border: 1px solid var(--color-primary-200);
  border-radius: var(--radius-xl);
  padding: 1rem 1.25rem;
  font-size: 0.9375rem;
  color: var(--color-gray-700);
  margin-bottom: 2rem;
}
.report-example-banner strong,
.report-shared-banner strong { color: var(--color-primary-700); }
.report-shared-banner {
  background: linear-gradient(135deg, #fef3c7, #fef9e7);
  border-color: #fcd34d;
}
.report-shared-banner strong { color: #b45309; }
.report-shared-banner a { color: #b45309; font-weight: 600; }

.share-url-display {
  background: #fff;
  border: 1px solid var(--color-gray-100);
  border-radius: var(--radius-xl);
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  text-align: center;
}
.share-url-display h3 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.share-url-display p {
  color: var(--color-gray-500);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}
.share-url-input {
  display: flex;
  gap: 0.5rem;
  max-width: 32rem;
  margin: 0 auto;
}
.share-url-input input {
  flex: 1;
  padding: 0.625rem 0.875rem;
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-lg);
  font-size: 0.8125rem;
  font-family: 'SF Mono', 'Fira Code', monospace;
  background: var(--color-gray-50);
  color: var(--color-gray-700);
  outline: none;
}
.share-url-input input:focus { border-color: var(--color-primary-500); }

/* ── Report hero — flowing, per-profile gradient ─────────────── */
.report-hero {
  --hero-c1: #4c6ef5;
  --hero-c2: #7c3aed;
  --hero-c3: #ec4899;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-2xl);
  padding: 3.5rem 2.5rem 3rem;
  margin-bottom: 2.5rem;
  text-align: center;
  color: #fff;
  /* The background mixes the top three dimension colours directly, so a
     CD result reads as a D-green / C-yellow blend, DI as green/red, etc.
     A thin dark overlay underneath gives white text enough contrast
     without washing the colours out. */
  background:
    /* Darkening overlay — heavy enough to push even a pale-yellow DISC
       "C" result to >4.5:1 against white text. Tested against our full
       dimension palette; no combination drops below AA. */
    linear-gradient(180deg, rgba(0,0,0,0.25), rgba(0,0,0,0.42)),
    linear-gradient(135deg,
      var(--hero-c1) 0%,
      color-mix(in oklab, var(--hero-c1), var(--hero-c2) 65%) 45%,
      var(--hero-c2) 65%,
      color-mix(in oklab, var(--hero-c2), var(--hero-c3) 55%) 85%,
      var(--hero-c3) 100%);
  box-shadow:
    0 20px 40px -20px rgba(0,0,0,0.35),
    inset 0 1px 0 rgba(255,255,255,0.12);
}

/* Flowing radial blobs that pick up the top-scoring dimension colours */
.report-hero-blobs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.report-hero-blobs .blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  mix-blend-mode: screen;
  opacity: 0.55;
}
.report-hero-blobs .blob-1 {
  width: 55%; height: 120%;
  top: -20%; left: -15%;
  background: radial-gradient(circle, var(--hero-c1) 0%, transparent 70%);
}
.report-hero-blobs .blob-2 {
  width: 50%; height: 120%;
  top: -10%; right: -10%;
  background: radial-gradient(circle, var(--hero-c2) 0%, transparent 70%);
}
.report-hero-blobs .blob-3 {
  width: 60%; height: 90%;
  bottom: -30%; left: 20%;
  background: radial-gradient(circle, var(--hero-c3) 0%, transparent 70%);
}

.report-hero-inner {
  position: relative;
  z-index: 1;
}
.report-eyebrow {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.85);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}
.report-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
  color: #fff;
  text-shadow: 0 2px 30px rgba(0,0,0,0.25);
}
.report-completed {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.75);
  margin: 0;
}

/* ── Primary-style card — big-type keepsake ─────────────────── */
.primary-style-card {
  --hero-c1: #4c6ef5;
  --hero-c2: #7c3aed;
  --hero-c3: #ec4899;
  position: relative;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--color-gray-100);
  border-radius: var(--radius-2xl);
  padding: 2.25rem 2.5rem 2.5rem;
  margin-bottom: 2.5rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}
.primary-style-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--hero-c1), var(--hero-c2), var(--hero-c3));
}
.primary-style-eyebrow {
  font-size: 0.75rem;
  color: var(--color-gray-500);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}
.primary-style-name {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 6vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  /* line-height 1.15 + tiny bottom padding keeps descenders (g, y, p)
     from being clipped by the text background-clip mask. */
  line-height: 1.15;
  padding-bottom: 0.1em;
  margin: 0 0 1rem;
  background: linear-gradient(135deg, var(--hero-c1), var(--hero-c2), var(--hero-c3));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.primary-style-narrative {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--color-gray-700);
  margin: 0;
  max-width: 54ch;
}

/* Coloured per-dimension dot that picks up the score row's accent */
.score-dot {
  display: inline-block;
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 50%;
  background: var(--dim-color, var(--color-gray-300));
  margin-right: 0.5rem;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--dim-color, #ccc), white 75%);
}

/* ── Radar chart ────────────────────────────────────────────────
   Rendered only for non-ranked assessments (DISC, Big Five, EQ,
   Cognitive, Psych Safety, Culture) where profile shape carries
   meaning. Pure SVG — no Chart.js, no runtime JS. */
.report-radar {
  margin-bottom: 3rem;
}
.radar-chart-wrap {
  --radar-accent: var(--color-primary-500);
  background: #fff;
  border: 1px solid var(--color-gray-100);
  border-radius: var(--radius-xl);
  padding: 1.75rem 1.5rem 2rem;
  max-width: 34rem;
  margin: 0 auto;
  text-align: center;
}
.radar-caption {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 1rem;
}
.radar-caption-label {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-gray-900);
}
.radar-caption-hint {
  font-size: 0.8125rem;
  color: var(--color-gray-500);
  font-style: italic;
}
.radar-svg {
  display: block;
  width: 100%;
  height: auto;
  max-width: 28rem;
  margin: 0 auto;
  font-family: var(--font-display);
  overflow: visible;
}
.radar-grid-ring {
  fill: none;
  stroke: var(--color-gray-200);
  stroke-width: 1;
  stroke-dasharray: 2 3;
  opacity: 0.7;
}
.radar-grid-ring:last-child {
  stroke-dasharray: none;
  opacity: 1;
}
.radar-axis {
  stroke: var(--color-gray-300);
  stroke-width: 1;
  opacity: 0.55;
}
.radar-polygon {
  fill: color-mix(in oklab, var(--radar-accent, #6366f1), transparent 70%);
  stroke: var(--radar-accent, var(--color-primary-500));
  stroke-width: 2;
  stroke-linejoin: round;
  filter: drop-shadow(0 2px 6px color-mix(in oklab, var(--radar-accent, #6366f1), transparent 80%));
}
.radar-dot {
  fill: var(--radar-accent, var(--color-primary-500));
  stroke: #fff;
  stroke-width: 1.5;
}
.radar-label {
  font-size: 12px;
  font-weight: 700;
  fill: var(--color-gray-800);
  letter-spacing: 0.01em;
}
.radar-label-score {
  font-size: 10px;
  font-weight: 600;
  fill: var(--color-gray-500);
  letter-spacing: 0.02em;
}

@media (max-width: 640px) {
  .radar-chart-wrap { padding: 1.25rem 0.75rem 1.5rem; }
  .radar-label { font-size: 13px; }
  .radar-label-score { font-size: 11px; }
}

@media print {
  .radar-chart-wrap { border: 1px solid var(--color-gray-200); box-shadow: none; break-inside: avoid; }
  .radar-polygon { filter: none; }
}

.report-dimensions { margin-bottom: 3rem; }
.report-dimensions h2,
.report-strengths h2,
.report-growth h2 {
  font-family: var(--font-display);
  font-size: 1.375rem; font-weight: 700;
  margin-bottom: 1.25rem;
}

.dimension-scores { list-style: none; }
.score-row {
  background: #fff;
  border: 1px solid var(--color-gray-100);
  border-radius: var(--radius-xl);
  padding: 1.25rem 1.5rem;
  margin-bottom: 0.75rem;
}

.score-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}
.score-name {
  font-size: 1rem;
  font-weight: 600;
}
.score-badge {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
}
.score-high .score-badge {
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
}
.score-moderate .score-badge {
  background: rgba(245, 158, 11, 0.12);
  color: #b45309;
}
.score-low .score-badge {
  background: rgba(107, 114, 128, 0.12);
  color: #4b5563;
}

.score-bar {
  height: 0.5rem;
  background: var(--color-gray-100);
  border-radius: 9999px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}
.score-bar-fill {
  height: 100%;
  border-radius: 9999px;
  background: linear-gradient(90deg, var(--color-primary-400), var(--color-purple-500));
  animation: grow 0.8s ease-out;
}
.score-high .score-bar-fill {
  background: linear-gradient(90deg, #10b981, #059669);
}
.score-moderate .score-bar-fill {
  background: linear-gradient(90deg, var(--color-amber-500), #d97706);
}
.score-low .score-bar-fill {
  background: linear-gradient(90deg, #9ca3af, #6b7280);
}

.score-description {
  display: flex;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: var(--color-gray-500);
}
.score-percent {
  font-weight: 600;
  color: var(--color-gray-700);
}
.score-scale { font-style: italic; }

.score-detail {
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  color: var(--color-gray-500);
  line-height: 1.5;
}

.report-strengths,
.report-growth {
  background: #fff;
  border: 1px solid var(--color-gray-100);
  border-radius: var(--radius-xl);
  padding: 1.5rem 2rem;
  margin-bottom: 1.5rem;
}
.insight-list { list-style: none; }
.insight-list li {
  padding: 0.5rem 0;
  font-size: 0.9375rem;
  color: var(--color-gray-700);
}
.insight-list li::before {
  content: "\2713\ ";
  color: var(--color-primary-500);
  font-weight: 700;
  margin-right: 0.5rem;
}
.report-growth .insight-list li::before {
  content: "\2192\ ";
  color: var(--color-amber-500);
}
.insight-empty {
  font-size: 0.875rem;
  color: var(--color-gray-500);
  font-style: italic;
}

.report-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  padding: 2rem 0;
  border-top: 1px solid var(--color-gray-100);
  margin-top: 2rem;
}

/* ── Primary-style narrative ─────────────────────────────────── */
.report-primary-narrative {
  background: linear-gradient(135deg, var(--color-primary-50), #faf5ff);
  border: 1px solid var(--color-primary-100);
  border-radius: var(--radius-xl);
  padding: 1.75rem 2rem;
  margin: 2rem 0 2.5rem;
}
.report-primary-narrative h2 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-primary-700);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.report-primary-narrative p {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--color-gray-800);
  margin: 0;
}

/* ── Per-dimension insight cards ─────────────────────────────── */
.report-insights {
  margin-top: 3rem;
}
.report-insights h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.375rem;
}
.report-insights-lede {
  color: var(--color-gray-500);
  font-size: 0.9375rem;
  margin-bottom: 1.5rem;
}

.dimension-insight-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.dimension-insight-card {
  background: #fff;
  border: 1px solid var(--color-gray-100);
  border-left: 4px solid var(--color-gray-200);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}
.dimension-insight-card.score-high    { border-left-color: var(--color-green-500); }
.dimension-insight-card.score-moderate{ border-left-color: var(--color-amber-500); }
.dimension-insight-card.score-low     { border-left-color: var(--color-primary-400); }

.dimension-insight-header {
  margin-bottom: 1rem;
}
.dimension-insight-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.dimension-insight-title h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
}
.dimension-insight-title .score-badge {
  font-size: 0.75rem;
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  background: var(--color-gray-100);
  color: var(--color-gray-700);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.insight-narrative {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-gray-700);
  margin: 0 0 1.25rem;
}

.insight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.insight-block {
  padding: 1rem 1.125rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-gray-100);
  background: var(--color-gray-50);
}
.insight-block h4 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}
.insight-block ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.insight-block li {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--color-gray-700);
  padding: 0.25rem 0 0.25rem 1.125rem;
  position: relative;
}
.insight-block li::before {
  position: absolute;
  left: 0;
  font-weight: 700;
}

.insight-strengths {
  background: #f0fdf4;
  border-color: #bbf7d0;
}
.insight-strengths h4  { color: var(--color-green-600); }
.insight-strengths li::before { content: "+"; color: var(--color-green-500); }

.insight-watchouts {
  background: #fffbeb;
  border-color: #fde68a;
}
.insight-watchouts h4  { color: var(--color-amber-600); }
.insight-watchouts li::before { content: "!"; color: var(--color-amber-500); }

.insight-coaching {
  background: var(--color-primary-50);
  border-color: var(--color-primary-100);
}
.insight-coaching h4  { color: var(--color-primary-700); }
.insight-coaching li::before { content: "\2192"; color: var(--color-primary-500); }

.insight-research {
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--color-gray-500);
  border-top: 1px solid var(--color-gray-100);
  padding-top: 0.875rem;
  margin: 0;
}
.insight-research strong {
  color: var(--color-gray-700);
  font-weight: 600;
}

/* ── Strengths / Growth summary pair ─────────────────────────── */
.report-summary-lists {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 2.5rem 0;
}
.summary-list {
  background: #fff;
  border: 1px solid var(--color-gray-100);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
}
.summary-list h3 {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.summary-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.summary-list li {
  font-size: 0.9375rem;
  padding: 0.375rem 0 0.375rem 1.25rem;
  color: var(--color-gray-700);
  position: relative;
}
.summary-strengths li::before {
  content: "\2713";
  color: var(--color-green-500);
  position: absolute;
  left: 0;
  font-weight: 700;
}
.summary-growth li::before {
  content: "\2192";
  color: var(--color-amber-500);
  position: absolute;
  left: 0;
  font-weight: 700;
}

/* ── Methodology block ───────────────────────────────────────── */
.report-methodology {
  margin-top: 2.5rem;
  padding: 1.75rem 2rem;
  background: var(--color-gray-50);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-gray-100);
}
.report-methodology h2 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--color-gray-700);
}
.report-methodology p {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--color-gray-600);
  margin-bottom: 0.75rem;
}
.report-methodology p:last-child { margin-bottom: 0; }
.report-science-note {
  font-style: italic;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--color-gray-200);
}

@media (max-width: 640px) {
  .report-primary-narrative { padding: 1.25rem 1.25rem; }
  .dimension-insight-card { padding: 1.25rem; }
  .insight-grid { grid-template-columns: 1fr; }
  .report-summary-lists { grid-template-columns: 1fr; }
  .report-methodology { padding: 1.25rem; }
  .disc-section { padding: 1.25rem; margin-top: 2rem; }
  .disc-wheel-layout,
  .disc-priorities-layout { grid-template-columns: 1fr; }
}

@media print {
  .report-example-banner,
  .report-actions { display: none; }
  .report-page { padding-top: 0; }
  .score-row,
  .dimension-insight-card,
  .disc-section,
  .disc-pressure-card,
  .disc-manage-card { break-inside: avoid; }
  .dimension-insight-card { box-shadow: none; }
  .insight-block { background: #fff; }
  .disc-section,
  .disc-pressure-card,
  .disc-manage-card { box-shadow: none; }
}

/* ── DISC-specific sections ──────────────────────────────────── */
/* DISC palette — D=green, i=red, S=blue, C=yellow. The pale tints match
   the 50-100 levels of each hue. */
:root {
  --disc-d: #16a34a;
  --disc-i: #dc2626;
  --disc-s: #0ea5e9;
  --disc-c: #eab308;
  --disc-d-pale: #f0fdf4;
  --disc-i-pale: #fef2f2;
  --disc-s-pale: #eff6ff;
  --disc-c-pale: #fefce8;
  --disc-natural: #7c3aed;
  --disc-adapted: #0ea5e9;
}

.disc-section {
  margin-top: 3rem;
  background: #fff;
  border: 1px solid var(--color-gray-100);
  border-radius: var(--radius-2xl);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}
.disc-section-header { margin-bottom: 1.5rem; }
.disc-section-header h2 {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  margin: 0 0 0.375rem;
  color: var(--color-gray-900);
}
.disc-section-lede {
  color: var(--color-gray-500);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin: 0;
}

/* ── DISC wheel ─────────────────────────────────────────────── */
.disc-wheel-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
}
.disc-wheel-figure {
  margin: 0;
  display: flex;
  justify-content: center;
}
.disc-wheel-svg {
  width: 100%;
  max-width: 24rem;
  height: auto;
  filter: drop-shadow(0 6px 18px rgba(15, 23, 42, 0.06));
}
.disc-quadrant-d { fill: var(--disc-d-pale); }
.disc-quadrant-i { fill: var(--disc-i-pale); }
.disc-quadrant-s { fill: var(--disc-s-pale); }
.disc-quadrant-c { fill: var(--disc-c-pale); }
.disc-wheel-axis { stroke: var(--color-gray-200); stroke-width: 2; }
.disc-wheel-axis-label {
  font-size: 11px;
  font-weight: 600;
  fill: var(--color-gray-500);
  letter-spacing: 0.05em;
}
.disc-quadrant-letter {
  font-size: 22px;
  font-weight: 800;
  opacity: 0.75;
  font-family: var(--font-display);
}
.disc-quadrant-name {
  font-size: 10px;
  opacity: 0.65;
  letter-spacing: 0.04em;
}
.disc-letter-d { fill: var(--disc-d); }
.disc-letter-i { fill: var(--disc-i); }
.disc-letter-s { fill: var(--disc-s); }
.disc-letter-c { fill: var(--disc-c); }

.disc-natural-dot { fill: var(--disc-natural); }
.disc-natural-halo { fill: none; stroke: var(--disc-natural); stroke-width: 2; opacity: 0.45; }
.disc-natural-label { fill: #fff; font-size: 11px; font-weight: 800; }
.disc-adapted-dot { fill: var(--disc-adapted); }
.disc-adapted-label { fill: #fff; font-size: 11px; font-weight: 800; }
.disc-wheel-link { stroke: var(--color-gray-400); stroke-width: 1.5; stroke-dasharray: 4 4; }

.disc-wheel-legend { display: flex; flex-direction: column; gap: 1rem; }
.disc-legend-item { display: flex; align-items: flex-start; gap: 0.75rem; }
.disc-legend-dot {
  flex: 0 0 auto;
  width: 2rem; height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  color: #fff;
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}
.disc-legend-natural { background: var(--disc-natural); }
.disc-legend-adapted { background: var(--disc-adapted); }
.disc-legend-title { font-size: 0.9375rem; font-weight: 700; color: var(--color-gray-900); margin: 0; }
.disc-legend-note { font-size: 0.8125rem; color: var(--color-gray-500); margin: 0.125rem 0 0; line-height: 1.5; }
.disc-legend-adapted-note {
  font-size: 0.8125rem;
  color: var(--color-gray-500);
  background: var(--color-gray-50);
  border: 1px dashed var(--color-gray-200);
  border-radius: var(--radius-md);
  padding: 0.75rem 0.875rem;
  margin: 0;
  line-height: 1.5;
}
.disc-wheel-interpretation {
  margin: 0;
  background: var(--color-gray-50);
  border-left: 3px solid var(--disc-natural);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  padding: 1rem 1.125rem;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--color-gray-700);
  font-style: normal;
  quotes: none;
}
.disc-wheel-interpretation::before,
.disc-wheel-interpretation::after { content: none; }

/* ── Blend banner ────────────────────────────────────────────── */
.disc-blend-banner {
  text-align: center;
  padding: 2.5rem 2rem;
  background: linear-gradient(135deg, var(--disc-d-pale), var(--disc-i-pale), var(--disc-c-pale));
  border: 1px solid var(--color-gray-100);
}
.disc-blend-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-gray-500);
  margin: 0 0 0.5rem;
}
.disc-blend-name {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  margin: 0;
  background: linear-gradient(90deg, var(--disc-d), var(--disc-i), var(--disc-c));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
  padding-bottom: 0.1em;
}
.disc-blend-summary {
  margin: 1rem auto 0;
  max-width: 48rem;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--color-gray-700);
}

/* ── Priority ring ───────────────────────────────────────────── */
.disc-priorities-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
}
.disc-priorities-svg {
  width: 100%;
  max-width: 22rem;
  height: auto;
}
.disc-priorities-ring {
  fill: none;
  stroke: var(--color-gray-100);
  stroke-width: 2;
}
.disc-priorities-ring-inner {
  fill: none;
  stroke: var(--color-gray-100);
  stroke-width: 1;
  stroke-dasharray: 4 4;
}
.disc-priority-pin .disc-priority-dot {
  fill: var(--color-gray-300);
  transition: r 0.2s ease;
}
.disc-priority-pin .disc-priority-label {
  font-size: 12px;
  fill: var(--color-gray-500);
  font-weight: 600;
}
.disc-priority-pin.is-highlighted .disc-priority-dot {
  fill: var(--disc-priority-color);
}
.disc-priority-pin.is-highlighted .disc-priority-label {
  fill: var(--color-gray-900);
  font-weight: 800;
}
.disc-priorities-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.disc-priority-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--color-gray-50);
  border-left: 4px solid var(--disc-priority-color);
  border-radius: var(--radius-md);
  font-weight: 700;
  color: var(--color-gray-800);
}
.disc-priority-swatch {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 9999px;
  background: var(--disc-priority-color);
  flex: 0 0 auto;
}

/* ── Style bars ──────────────────────────────────────────────── */
.disc-style-bars { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1.25rem; }
.disc-style-bar {
  border-left: 4px solid var(--disc-bar-color, var(--color-gray-300));
  padding-left: 0.875rem;
}
.disc-style-bar-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}
.disc-style-bar-name {
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--color-gray-900);
}
.disc-style-bar-values {
  display: inline-flex;
  gap: 0.875rem;
  font-size: 0.8125rem;
  color: var(--color-gray-600);
  font-weight: 700;
}
.disc-style-bar-track {
  position: relative;
  height: 1rem;
  background: var(--color-gray-100);
  border-radius: 9999px;
  overflow: hidden;
}
.disc-style-bar-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  border-radius: 9999px;
}
.disc-bar-natural { background: var(--disc-bar-color); }

/* ── Style blend inside cards ────────────────────────────────── */
.disc-blend-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}
.disc-blend-card {
  background: var(--color-gray-50);
  border: 1px solid var(--color-gray-100);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
}
.disc-blend-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.875rem;
  color: var(--color-gray-900);
}
.disc-check-list, .disc-eye-list, .disc-arrow-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.disc-check-list li, .disc-eye-list li, .disc-arrow-list li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--color-gray-700);
}
.disc-check-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--disc-d);
  font-weight: 800;
}
.disc-eye-list li::before {
  content: "\25CF";
  position: absolute;
  left: 0;
  color: var(--disc-s);
  font-size: 0.7rem;
  top: 0.4rem;
}
.disc-arrow-list li::before {
  content: "\2192";
  position: absolute;
  left: 0;
  color: var(--color-primary-500);
  font-weight: 800;
}
.disc-blend-famous {
  background: color-mix(in srgb, var(--disc-natural) 10%, white);
  border: 1px solid color-mix(in srgb, var(--disc-natural) 25%, white);
  border-radius: var(--radius-xl);
  padding: 1rem 1.25rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--color-gray-700);
  margin: 0;
}
.disc-blend-famous strong { color: var(--disc-natural); font-weight: 700; }

/* ── Pressure cards ──────────────────────────────────────────── */
.disc-pressure-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 1rem;
}
.disc-pressure-card {
  background: #fff;
  border: 1px solid var(--color-gray-100);
  border-left: 4px solid var(--disc-card-color, var(--color-gray-300));
  border-radius: var(--radius-xl);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}
.disc-pressure-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.disc-pressure-badge {
  width: 2.25rem; height: 2.25rem;
  border-radius: var(--radius-md);
  background: var(--disc-card-color);
  color: #fff;
  font-weight: 800;
  font-size: 0.9375rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
}
.disc-pressure-name { font-weight: 700; font-size: 0.9375rem; color: var(--color-gray-900); margin: 0; }
.disc-pressure-score { font-size: 0.75rem; color: var(--color-gray-500); margin: 0; }
.disc-pressure-block h4 {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 0.25rem;
}
.disc-pressure-block p { margin: 0; font-size: 0.875rem; line-height: 1.55; color: var(--color-gray-700); }
.disc-pressure-best h4 { color: var(--color-gray-500); }
.disc-pressure-stress h4 { color: var(--disc-i); }

/* ── Do's and Don'ts ─────────────────────────────────────────── */
.disc-dd-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1rem;
}
.disc-dd-card {
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  border: 1px solid;
}
.disc-dd-card h3 {
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 800;
  margin: 0 0 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.disc-dd-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}
.disc-dd-card li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--color-gray-700);
}
.disc-dd-dos {
  background: var(--disc-d-pale);
  border-color: color-mix(in srgb, var(--disc-d) 35%, white);
}
.disc-dd-dos h3 { color: var(--disc-d); }
.disc-dd-dos li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--disc-d);
  font-weight: 800;
}
.disc-dd-donts {
  background: var(--disc-i-pale);
  border-color: color-mix(in srgb, var(--disc-i) 35%, white);
}
.disc-dd-donts h3 { color: var(--disc-i); }
.disc-dd-donts li::before {
  content: "\2717";
  position: absolute;
  left: 0;
  color: var(--disc-i);
  font-weight: 800;
}
.disc-dd-meetings {
  margin-top: 1.25rem;
  background: var(--disc-s-pale);
  border: 1px solid color-mix(in srgb, var(--disc-s) 30%, white);
  border-radius: var(--radius-xl);
  padding: 1.25rem 1.5rem;
}
.disc-dd-meetings h3 {
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--disc-s);
  margin: 0 0 0.5rem;
}
.disc-dd-meetings p {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--color-gray-700);
  margin: 0;
}

/* ── Management guide ────────────────────────────────────────── */
.disc-manage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 1rem;
}
.disc-manage-card {
  background: #fff;
  border: 1px solid var(--color-gray-100);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.disc-manage-you { border-left: 4px solid var(--color-primary-500); }
.disc-manage-others { border-left: 4px solid var(--disc-c); }
.disc-manage-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.875rem;
  color: var(--color-gray-900);
}
.disc-manage-collab {
  margin-top: 1.25rem;
  background: var(--disc-d-pale);
  border: 1px solid color-mix(in srgb, var(--disc-d) 30%, white);
  border-radius: var(--radius-xl);
  padding: 1.25rem 1.5rem;
}
.disc-manage-collab h3 {
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--disc-d);
  margin: 0 0 0.5rem;
}
.disc-manage-collab p {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--color-gray-700);
  margin: 0;
}

/* ── EQ-specific sections ────────────────────────────────────── */
/* Palette: SA=#3b82f6 (blue), SM=#8b5cf6 (violet), SOC=#ec4899
   (pink), RM=#10b981 (emerald). These mirror the dimension palette
   in assessment/palette.go so the gauge, triggers, and empathy bars
   read as a coherent family. */
:root {
  --eq-sa: #3b82f6;
  --eq-sm: #8b5cf6;
  --eq-soc: #ec4899;
  --eq-rm: #10b981;
  --eq-flourishing: #10b981;
  --eq-holding: #f59e0b;
  --eq-struggling: #ef4444;
  --eq-flourishing-pale: #ecfdf5;
  --eq-holding-pale: #fffbeb;
  --eq-struggling-pale: #fef2f2;
}

.eq-section {
  margin-top: 3rem;
  background: #fff;
  border: 1px solid var(--color-gray-100);
  border-radius: var(--radius-2xl);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}
.eq-section-header { margin-bottom: 1.5rem; }
.eq-section-header h2 {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  margin: 0 0 0.375rem;
  color: var(--color-gray-900);
}
.eq-section-lede {
  color: var(--color-gray-500);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin: 0;
}

/* ── Well-being gauge ────────────────────────────────────────── */
.eq-wellbeing-flourishing { background: linear-gradient(180deg, #fff, var(--eq-flourishing-pale)); }
.eq-wellbeing-holding     { background: linear-gradient(180deg, #fff, var(--eq-holding-pale)); }
.eq-wellbeing-struggling  { background: linear-gradient(180deg, #fff, var(--eq-struggling-pale)); }

.eq-wellbeing-layout {
  display: grid;
  grid-template-columns: minmax(0, 14rem) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
}
.eq-gauge-figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.eq-gauge-svg {
  width: 100%;
  max-width: 14rem;
  height: auto;
  filter: drop-shadow(0 6px 18px rgba(15, 23, 42, 0.08));
}
.eq-gauge-track {
  fill: none;
  stroke: var(--color-gray-100);
  stroke-width: 10;
}
.eq-gauge-fill {
  fill: none;
  stroke-width: 10;
  stroke-linecap: round;
  transition: stroke-dasharray 1s ease-out;
}
.eq-wellbeing-flourishing .eq-gauge-fill { stroke: var(--eq-flourishing); }
.eq-wellbeing-holding     .eq-gauge-fill { stroke: var(--eq-holding); }
.eq-wellbeing-struggling  .eq-gauge-fill { stroke: var(--eq-struggling); }

.eq-gauge-score {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  fill: var(--color-gray-900);
}
.eq-gauge-scale {
  font-size: 6px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  fill: var(--color-gray-500);
}
.eq-gauge-caption { text-align: center; }
.eq-gauge-band {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.875rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.eq-gauge-band-flourishing { background: var(--eq-flourishing-pale); color: #047857; }
.eq-gauge-band-holding     { background: var(--eq-holding-pale); color: #b45309; }
.eq-gauge-band-struggling  { background: var(--eq-struggling-pale); color: #b91c1c; }

.eq-wellbeing-body p {
  margin: 0;
  color: var(--color-gray-700);
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* ── Triggers grid ───────────────────────────────────────────── */
.eq-triggers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: 1.25rem;
}
.eq-trigger-card {
  background: var(--color-gray-50);
  border: 1px solid var(--color-gray-100);
  border-left: 4px solid var(--eq-trigger-color, var(--color-gray-400));
  border-radius: var(--radius-xl);
  padding: 1.25rem 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.eq-trigger-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.eq-trigger-name {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  margin: 0;
  color: var(--color-gray-900);
}
.eq-trigger-likelihood {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
}
.eq-likelihood-high     { background: var(--eq-struggling-pale); color: #b91c1c; }
.eq-likelihood-moderate { background: var(--eq-holding-pale); color: #b45309; }
.eq-likelihood-low      { background: var(--eq-flourishing-pale); color: #047857; }

.eq-trigger-narrative {
  margin: 0;
  color: var(--color-gray-700);
  font-size: 0.9375rem;
  line-height: 1.6;
}
.eq-trigger-strategy {
  background: #fff;
  border: 1px solid var(--color-gray-100);
  border-radius: var(--radius-md);
  padding: 0.75rem 0.875rem;
}
.eq-trigger-strategy h4 {
  margin: 0 0 0.25rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--eq-trigger-color, var(--color-gray-600));
}
.eq-trigger-strategy p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--color-gray-700);
}

/* ── Scenarios ───────────────────────────────────────────────── */
.eq-scenarios-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  counter-reset: eq-scenario;
}
.eq-scenario-panel {
  position: relative;
  background: linear-gradient(135deg, #eff6ff 0%, #f5f3ff 100%);
  border: 1px solid var(--color-gray-100);
  border-radius: var(--radius-xl);
  padding: 1.5rem 1.5rem 1.5rem 3.75rem;
  counter-increment: eq-scenario;
}
.eq-scenario-panel::before {
  content: counter(eq-scenario);
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  background: #fff;
  color: var(--eq-sa);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}
.eq-scenario-situation {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-gray-900);
  margin: 0 0 0.625rem;
  line-height: 1.45;
}
.eq-scenario-response {
  margin: 0;
  color: var(--color-gray-700);
  font-size: 0.9375rem;
  line-height: 1.65;
}

/* ── Awareness gap ───────────────────────────────────────────── */
.eq-awareness-blind-spot { border-left: 4px solid var(--eq-holding); }
.eq-awareness-strength   { border-left: 4px solid var(--eq-sa); }
.eq-awareness-body {
  margin: 0;
  padding: 1.25rem 1.5rem;
  background: var(--color-gray-50);
  border-radius: var(--radius-lg);
  color: var(--color-gray-700);
  font-size: 0.9375rem;
  line-height: 1.7;
  font-style: normal;
  quotes: none;
}
.eq-awareness-body::before,
.eq-awareness-body::after { content: none; }

/* ── Empathy tri-bar ─────────────────────────────────────────── */
.eq-empathy-tribar {
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
  margin-bottom: 1.5rem;
}
.eq-empathy-row {
  display: grid;
  grid-template-columns: minmax(0, 12rem) minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
}
.eq-empathy-label { display: flex; flex-direction: column; gap: 0.125rem; }
.eq-empathy-name {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--color-gray-900);
}
.eq-empathy-gloss {
  font-size: 0.75rem;
  color: var(--color-gray-500);
  line-height: 1.4;
}
.eq-empathy-track {
  background: var(--color-gray-100);
  border-radius: 9999px;
  height: 0.625rem;
  overflow: hidden;
}
.eq-empathy-fill {
  height: 100%;
  border-radius: 9999px;
  transition: width 1s ease-out;
}
.eq-empathy-cognitive     .eq-empathy-fill { background: linear-gradient(90deg, #93c5fd, var(--eq-sa)); }
.eq-empathy-emotional     .eq-empathy-fill { background: linear-gradient(90deg, #f9a8d4, var(--eq-soc)); }
.eq-empathy-compassionate .eq-empathy-fill { background: linear-gradient(90deg, #6ee7b7, var(--eq-rm)); }
.eq-empathy-score {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.9375rem;
  color: var(--color-gray-800);
  min-width: 3ch;
  text-align: right;
}
.eq-empathy-summary {
  margin: 0;
  padding: 1rem 1.125rem;
  background: var(--color-gray-50);
  border-left: 3px solid var(--eq-rm);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  color: var(--color-gray-700);
  font-size: 0.9375rem;
  line-height: 1.65;
}

@media (max-width: 640px) {
  .eq-section { padding: 1.25rem; margin-top: 2rem; }
  .eq-wellbeing-layout { grid-template-columns: 1fr; gap: 1.25rem; }
  .eq-empathy-row { grid-template-columns: 1fr; gap: 0.375rem; }
  .eq-empathy-score { text-align: left; }
  .eq-scenario-panel { padding-left: 1.25rem; padding-top: 3.25rem; }
  .eq-scenario-panel::before { top: 1rem; left: 1rem; }
}

@media print {
  .eq-section,
  .eq-trigger-card,
  .eq-scenario-panel { break-inside: avoid; box-shadow: none; }
}

/* ── Testimonials ────────────────────────────────────────────── */
.testimonials { background: #fff; border-top: 1px solid var(--color-gray-100); }

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.testimonial-card {
  background: var(--color-gray-50);
  border: 1px solid var(--color-gray-100);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  position: relative;
}
.testimonial-card::before {
  content: "\201C";
  position: absolute;
  top: 0.25rem; left: 1rem;
  font-family: Georgia, serif;
  font-size: 4rem;
  color: var(--color-primary-200);
  line-height: 1;
}
.testimonial-card blockquote {
  color: var(--color-gray-700);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}
.testimonial-card figcaption {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--color-gray-200);
  padding-top: 0.75rem;
}
.testimonial-name {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--color-gray-900);
}
.testimonial-role {
  font-size: 0.8125rem;
  color: var(--color-gray-500);
  margin-top: 0.125rem;
}

/* ── Blog ────────────────────────────────────────────────────── */
.blog-index, .blog-post-page {
  padding-top: calc(var(--nav-height) + 2rem);
  min-height: 100vh;
}

.blog-header {
  text-align: center;
  margin-bottom: 3rem;
}
.blog-header h1 {
  font-family: var(--font-display);
  font-size: 2.5rem; font-weight: 800;
}
.blog-header p {
  color: var(--color-gray-500);
  font-size: 1.125rem;
  margin-top: 0.5rem;
  max-width: 32rem;
  margin-left: auto; margin-right: auto;
}

.post-list { list-style: none; }
.post-card {
  background: #fff;
  border: 1px solid var(--color-gray-100);
  border-radius: var(--radius-xl);
  margin-bottom: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.post-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}
.post-card a {
  display: block;
  padding: 1.75rem 2rem;
  color: inherit;
}
.post-date {
  font-size: 0.75rem;
  color: var(--color-gray-400);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.post-card h2 {
  font-family: var(--font-display);
  font-size: 1.375rem; font-weight: 700;
  margin-bottom: 0.5rem;
}
.post-excerpt {
  color: var(--color-gray-500);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-bottom: 0.75rem;
}
.post-read-more {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-primary-600);
}

/* Blog post detail */
.blog-post {
  max-width: 42rem;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}
.post-header {
  margin-bottom: 2.5rem;
  text-align: center;
}
.post-header h1 {
  font-family: var(--font-display);
  font-size: 2.25rem; font-weight: 800;
  line-height: 1.2;
  margin: 0.75rem 0;
}
.post-lede {
  font-size: 1.125rem;
  color: var(--color-gray-500);
  line-height: 1.6;
  max-width: 32rem;
  margin: 0 auto;
}
.post-body {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--color-gray-700);
}
.post-body h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-gray-900);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}
.post-body h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}
.post-body p { margin-bottom: 1.25rem; }
.post-body ul, .post-body ol {
  margin: 0 0 1.25rem 1.5rem;
}
.post-body li { margin-bottom: 0.5rem; }
.post-body strong { color: var(--color-gray-900); font-weight: 600; }
.post-body a {
  color: var(--color-primary-600);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
.post-body blockquote {
  border-left: 4px solid var(--color-primary-400);
  padding-left: 1.25rem;
  margin: 1.5rem 0;
  color: var(--color-gray-600);
  font-style: italic;
}
.post-body code {
  font-size: 0.9em;
}

.lead-magnet {
  margin-top: 3rem;
  padding: 2rem 2.5rem;
  background: var(--color-gray-900);
  color: #fff;
  border-radius: var(--radius-2xl);
  text-align: center;
}
.lead-magnet h3 {
  font-family: var(--font-display);
  font-size: 1.375rem; font-weight: 700;
  margin-bottom: 0.5rem;
}
.lead-magnet p {
  color: rgba(255,255,255,0.7);
  font-size: 0.9375rem;
  margin-bottom: 1.5rem;
  max-width: 30rem;
  margin-left: auto; margin-right: auto;
}
.lead-form {
  display: flex; gap: 0.5rem;
  max-width: 28rem;
  margin: 0 auto;
  flex-wrap: wrap;
}
.lead-input {
  flex: 1;
  min-width: 14rem;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  color: #fff;
  font-size: 0.875rem;
  font-family: inherit;
  outline: none;
}
.lead-input::placeholder { color: rgba(255,255,255,0.4); }
.lead-input:focus {
  border-color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.15);
}
.lead-magnet .btn-primary {
  background: #fff;
  color: var(--color-gray-900);
}
.lead-magnet .btn-primary:hover {
  background: var(--color-gray-100);
  color: var(--color-gray-900);
}

.post-cta {
  margin-top: 3.5rem;
  padding: 2.5rem;
  background: linear-gradient(135deg, var(--color-primary-50), #faf5ff);
  border-radius: var(--radius-2xl);
  text-align: center;
}
.post-cta h3 {
  font-family: var(--font-display);
  font-size: 1.375rem; font-weight: 700;
  margin-bottom: 0.5rem;
}
.post-cta p {
  color: var(--color-gray-600);
  margin-bottom: 1.5rem;
}
.post-cta-actions {
  display: flex; gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Admin Dashboard ─────────────────────────────────────────── */
.admin-dashboard { padding-top: calc(var(--nav-height) + 2rem); min-height: 100vh; }

.page-subtitle {
  color: var(--color-gray-500);
  font-size: 0.9375rem;
  margin-top: 0.25rem;
}

.funnel-overview {
  background: #fff;
  border: 1px solid var(--color-gray-100);
  border-radius: var(--radius-2xl);
  padding: 2rem;
  margin-bottom: 2rem;
}
.funnel-overview h2 {
  font-family: var(--font-display);
  font-size: 1.125rem; font-weight: 700;
  margin-bottom: 1.5rem;
}
.funnel-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.funnel-stat {
  flex: 1;
  min-width: 7rem;
  text-align: center;
  padding: 1rem 0.75rem;
  background: var(--color-gray-50);
  border-radius: var(--radius-lg);
}
.funnel-value {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem; font-weight: 800;
  color: var(--color-gray-900);
  line-height: 1;
}
.funnel-label {
  display: block;
  font-size: 0.75rem;
  color: var(--color-gray-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.375rem;
  font-weight: 600;
}
.funnel-rate {
  display: block;
  font-size: 0.75rem;
  color: var(--color-primary-600);
  font-weight: 600;
  margin-top: 0.25rem;
}
.funnel-arrow {
  color: var(--color-gray-300);
  font-size: 1.25rem;
  flex: 0;
}
.funnel-revenue {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-gray-100);
}
.funnel-revenue-label {
  font-size: 0.875rem;
  color: var(--color-gray-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}
.funnel-revenue-value {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--color-primary-600), var(--color-purple-600));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.source-breakdown, .recent-events {
  background: #fff;
  border: 1px solid var(--color-gray-100);
  border-radius: var(--radius-2xl);
  padding: 2rem;
  margin-bottom: 2rem;
  overflow-x: auto;
}
.source-breakdown h2, .recent-events h2 {
  font-family: var(--font-display);
  font-size: 1.125rem; font-weight: 700;
  margin-bottom: 1.25rem;
}

.source-table, .events-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.source-table th, .events-table th {
  text-align: left;
  padding: 0.625rem 0.75rem;
  background: var(--color-gray-50);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-gray-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--color-gray-100);
}
.source-table td, .events-table td {
  padding: 0.75rem;
  border-bottom: 1px solid var(--color-gray-50);
  color: var(--color-gray-700);
}
.source-table .num, .events-table .num { text-align: right; }
.source-table .revenue { font-weight: 700; color: var(--color-gray-900); }
.events-table .timestamp { color: var(--color-gray-400); font-size: 0.8125rem; }
.events-table code {
  font-size: 0.75rem;
  background: var(--color-primary-50);
  color: var(--color-primary-700);
}
.events-table .email { color: var(--color-gray-500); font-size: 0.8125rem; }
.events-table .muted { color: var(--color-gray-400); font-style: italic; }

/* ── Footer ──────────────────────────────────────────────────── */
.site-footer {
  background: #fff;
  border-top: 1px solid var(--color-gray-200);
  margin-top: 5rem;
}
.footer-inner {
  max-width: 80rem; margin: 0 auto;
  padding: 3rem 1.5rem;
}
.footer-brand { margin-bottom: 2rem; }
.footer-brand p {
  color: var(--color-gray-500);
  font-size: 0.875rem; line-height: 1.6;
  max-width: 28rem; margin-top: 0.75rem;
}
.footer-links {
  display: flex; gap: 4rem; margin-bottom: 2rem;
  flex-wrap: wrap;
}
.footer-column h4 { font-size: 0.875rem; font-weight: 600; margin-bottom: 0.75rem; }
.footer-column ul { list-style: none; }
.footer-column li { margin-bottom: 0.5rem; }
.footer-column a {
  font-size: 0.875rem; color: var(--color-gray-500);
  transition: color 0.15s;
}
.footer-column a:hover { color: var(--color-gray-700); }
.footer-legal {
  border-top: 1px solid var(--color-gray-100);
  padding-top: 2rem;
  text-align: center;
  font-size: 0.75rem; color: var(--color-gray-500);
}

/* ── Mobile ──────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute; top: var(--nav-height); left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--color-gray-200);
    padding: 0.5rem 1rem;
    box-shadow: var(--shadow-xl);
    animation: mobile-menu-in 0.2s ease-out;
  }
  @keyframes mobile-menu-in {
    from { opacity: 0; transform: translateY(-0.5rem); }
    to   { opacity: 1; transform: translateY(0); }
  }
  .nav-links.is-open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a:not(.btn) {
    display: block; width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
    border-radius: var(--radius-md);
  }
  .nav-links a:not(.btn):hover { background: var(--color-gray-50); }
  .nav-links .btn.btn-primary {
    display: block; width: 100%;
    text-align: center;
    margin-top: 0.25rem;
  }
  .nav-separator {
    display: block;
    width: 100%; height: 1px;
    background: var(--color-gray-100);
    margin: 0.375rem 0;
  }
  .nav-mobile-toggle { display: block; }
  .nav-user { width: 100%; }
  .dropdown-menu { position: static; width: 100%; box-shadow: none; border: none; margin-top: 0; }
  .nav-user .dropdown-menu { display: block; }
  .nav-avatar { display: none; }
}

/* ── Report pending (overnight analysis) ─────────────────────── */
/* Used when a submitted assessment is still inside its
   DisplayReadyAt window. Deliberately calm, not a spinner — the
   user is being told to come back later, not to wait. */
.pending-page { padding-top: calc(var(--nav-height) + 2rem); min-height: 100vh; }
.pending-card {
  max-width: 42rem;
  margin: 3rem auto;
  padding: 2.5rem;
  background: #fff;
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-lg);
  box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.04);
}
.pending-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-primary-600);
  margin: 0 0 0.75rem;
}
.pending-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 1rem;
  color: var(--color-gray-900);
}
.pending-lede {
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--color-gray-700, #374151);
  margin: 0 0 2rem;
}
.pending-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: 1rem;
  margin: 0 0 2rem;
  padding: 1.25rem;
  background: var(--color-gray-50);
  border-radius: var(--radius-md);
}
.pending-summary div { margin: 0; }
.pending-summary dt {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-gray-500);
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.pending-summary dd {
  margin: 0;
  font-weight: 600;
  color: var(--color-gray-900);
}
.pending-note {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--color-gray-700, #374151);
  margin: 0 0 2rem;
}
.pending-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.pending-bookmark {
  font-size: 0.8125rem;
  color: var(--color-gray-500);
  margin: 0;
}
.pending-bookmark code {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 0.8125rem;
  padding: 0.125rem 0.375rem;
  background: var(--color-gray-100, #f3f4f6);
  border-radius: 0.25rem;
}

/* ── Conflict (TKI) rich report sections ───────────────────── */
.conflict-section {
  background: white;
  border: 1px solid var(--color-gray-100);
  border-radius: 20px;
  padding: 2rem;
  margin-top: 2rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.conflict-section-header { margin-bottom: 1.5rem; }
.conflict-section-header h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-gray-900);
  margin: 0 0 0.5rem 0;
}
.conflict-section-lede {
  color: var(--color-gray-500);
  font-size: 0.9375rem;
  line-height: 1.55;
  margin: 0;
}

.conflict-mode-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}
.conflict-mode-card {
  border: 1px solid var(--color-gray-100);
  border-left: 4px solid var(--conflict-mode-color, var(--color-gray-400));
  border-radius: 14px;
  padding: 1.25rem;
  background: var(--color-gray-50);
}
.conflict-mode-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.75rem;
}
.conflict-mode-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-gray-900);
  margin: 0;
}
.conflict-mode-band {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--conflict-mode-color, var(--color-gray-500));
  font-weight: 600;
  margin: 0.125rem 0 0 0;
}
.conflict-mode-score {
  font-size: 1rem;
  font-weight: 700;
  color: var(--conflict-mode-color, var(--color-gray-700));
  background: color-mix(in srgb, var(--conflict-mode-color, #6b7280) 12%, white);
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  white-space: nowrap;
}
.conflict-mode-block { margin-bottom: 0.75rem; }
.conflict-mode-block h4 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  margin: 0 0 0.25rem 0;
}
.conflict-mode-serves h4 { color: var(--color-emerald-600, #059669); }
.conflict-mode-costs h4 { color: var(--color-red-600, #dc2626); }
.conflict-mode-block p {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--color-gray-700);
  margin: 0;
}
.conflict-mode-hint {
  font-size: 0.8125rem;
  font-style: italic;
  color: var(--color-gray-600);
  margin: 0.75rem 0 0 0;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--color-gray-200);
}

.conflict-scenario-list {
  display: grid;
  gap: 1rem;
}
.conflict-scenario-card {
  background: var(--color-gray-50);
  border: 1px solid var(--color-gray-100);
  border-radius: 16px;
  padding: 1.5rem;
}
.conflict-scenario-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-gray-900);
  margin: 0 0 0.5rem 0;
}
.conflict-scenario-situation {
  font-size: 0.875rem;
  color: var(--color-gray-500);
  font-style: italic;
  margin: 0 0 1rem 0;
  line-height: 1.5;
}
.conflict-scenario-blocks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.conflict-scenario-block h4 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  margin: 0 0 0.375rem 0;
}
.conflict-scenario-response h4 { color: #7c3aed; }
.conflict-scenario-coaching h4 { color: #059669; }
.conflict-scenario-block p {
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--color-gray-700);
  margin: 0;
}

.conflict-balance-bars {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem 0;
  display: grid;
  gap: 0.875rem;
}
.conflict-balance-bar-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.conflict-balance-bar-name { color: var(--color-gray-800); }
.conflict-balance-bar-value { color: var(--conflict-bar-color, var(--color-gray-700)); }
.conflict-balance-bar-track {
  height: 10px;
  background: var(--color-gray-100);
  border-radius: 999px;
  overflow: hidden;
}
.conflict-balance-bar-fill {
  height: 100%;
  background: var(--conflict-bar-color, var(--color-gray-500));
  border-radius: 999px;
}
.conflict-balance-narrative {
  background: var(--color-gray-50);
  border: 1px solid var(--color-gray-100);
  border-radius: 14px;
  padding: 1rem 1.25rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--color-gray-700);
}
.conflict-balance-narrative.is-balanced { border-left: 4px solid #059669; }
.conflict-balance-narrative.is-tilted { border-left: 4px solid #f59e0b; }
.conflict-balance-narrative p { margin: 0; }

/* ── Culture (CVF) rich report sections ────────────────────── */
.culture-section {
  background: white;
  border: 1px solid var(--color-gray-100);
  border-radius: 20px;
  padding: 2rem;
  margin-top: 2rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.culture-section-header { margin-bottom: 1.5rem; }
.culture-section-header h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-gray-900);
  margin: 0 0 0.5rem 0;
}
.culture-section-lede {
  color: var(--color-gray-500);
  font-size: 0.9375rem;
  line-height: 1.55;
  margin: 0;
}

.culture-kite-layout {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(240px, 1fr);
  gap: 2rem;
  align-items: center;
}
@media (max-width: 720px) {
  .culture-kite-layout { grid-template-columns: 1fr; }
}
.culture-kite-figure { margin: 0; }
.culture-kite-svg {
  width: 100%;
  max-width: 420px;
  height: auto;
  display: block;
  margin: 0 auto;
}
.culture-axis { stroke: var(--color-gray-200); stroke-width: 2; }
.culture-axis-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  fill: var(--color-gray-500);
}
.culture-quadrant-name {
  font-size: 14px;
  font-weight: 700;
}
.culture-quadrant-keyword {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.75;
}
.culture-kite-polygon { transition: none; }
.culture-kite-vertex { filter: drop-shadow(0 1px 1px rgba(15, 23, 42, 0.12)); }
.culture-kite-vertex-label {
  font-size: 10px;
  font-weight: 700;
}

.culture-kite-readout { display: flex; flex-direction: column; gap: 1rem; }
.culture-kite-eyebrow {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-gray-500);
  margin: 0 0 0.25rem 0;
  font-weight: 600;
}
.culture-kite-dominant h3 { font-size: 1.375rem; font-weight: 700; margin: 0; }
.culture-kite-secondary h4 { font-size: 1rem; font-weight: 700; margin: 0; }
.culture-kite-interpretation {
  background: var(--color-gray-50);
  border: 1px solid var(--color-gray-100);
  border-radius: 14px;
  padding: 1rem 1.25rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--color-gray-700);
  margin: 0;
}

.culture-alignment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.culture-alignment-card {
  border: 1px solid var(--color-gray-100);
  border-top: 4px solid var(--culture-card-color, var(--color-gray-400));
  border-radius: 14px;
  padding: 1.25rem;
  background: white;
}
.culture-alignment-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.75rem;
}
.culture-alignment-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-gray-900);
  margin: 0;
}
.culture-alignment-keyword {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--culture-card-color, var(--color-gray-500));
  font-weight: 600;
  margin: 0.125rem 0 0 0;
}
.culture-alignment-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
}
.culture-alignment-role {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  padding: 0.125rem 0.5rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--culture-card-color, #6b7280) 14%, white);
  color: var(--culture-card-color, var(--color-gray-700));
}
.culture-alignment-score {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--culture-card-color, var(--color-gray-700));
}
.culture-alignment-narrative {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--color-gray-700);
  margin: 0;
}
.culture-alignment-synthesis {
  background: var(--color-gray-50);
  border-left: 4px solid #7c3aed;
  border-radius: 14px;
  padding: 1rem 1.25rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--color-gray-700);
}
.culture-alignment-synthesis p { margin: 0; }

.culture-gauge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}
.culture-gauge-card {
  border: 1px solid var(--color-gray-100);
  border-radius: 14px;
  padding: 1.25rem;
  background: var(--color-gray-50);
}
.culture-gauge-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}
.culture-gauge-name {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--color-gray-900);
  margin: 0;
}
.culture-gauge-band {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  color: var(--culture-gauge-color, var(--color-gray-500));
  padding: 0.125rem 0.5rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--culture-gauge-color, #6b7280) 14%, white);
}
.culture-gauge-track {
  position: relative;
  height: 14px;
  background: var(--color-gray-100);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 0.75rem;
}
.culture-gauge-fill {
  position: absolute;
  inset: 0 auto 0 0;
  background: var(--culture-gauge-color, var(--color-gray-500));
  border-radius: 999px;
}
.culture-gauge-value {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.6875rem;
  font-weight: 700;
  color: white;
  text-shadow: 0 1px 1px rgba(0,0,0,0.25);
}
.culture-gauge-narrative {
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--color-gray-700);
  margin: 0;
}

@media print {
  .conflict-section, .culture-section {
    box-shadow: none;
    break-inside: avoid;
  }
  .culture-kite-svg { max-width: 340px; }
}

/* ── Big Five (OCEAN) rich report sections ──────────────────── */
.bf-section {
  margin-top: 3rem;
  background: #fff;
  border: 1px solid var(--color-gray-100);
  border-radius: var(--radius-2xl);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}
.bf-section-header { margin-bottom: 1.5rem; }
.bf-section-header h2 {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  margin: 0 0 0.375rem;
  color: var(--color-gray-900);
}
.bf-section-lede {
  color: var(--color-gray-500);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin: 0;
}

/* Facet grid — trait groups stacked, facets inside each */
.bf-facet-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
  gap: 1.25rem;
}
.bf-facet-group {
  background: color-mix(in srgb, var(--bf-facet-color) 8%, white);
  border: 1px solid color-mix(in srgb, var(--bf-facet-color) 25%, white);
  border-radius: var(--radius-xl);
  padding: 1.25rem 1.25rem 1rem;
}
.bf-facet-group-header {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 0.875rem;
}
.bf-facet-group-header h3 {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--color-gray-900);
  margin: 0;
}
.bf-facet-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: var(--radius-md);
  background: var(--bf-facet-color);
  color: #fff;
  font-weight: 800;
  font-size: 0.8125rem;
  font-family: var(--font-display);
}
.bf-facet-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.bf-facet-row-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.375rem;
  flex-wrap: wrap;
}
.bf-facet-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-gray-800);
}
.bf-facet-values {
  display: inline-flex;
  gap: 0.5rem;
  align-items: baseline;
}
.bf-facet-score {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--color-gray-600);
}
.bf-facet-band {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.1rem 0.5rem;
  border-radius: 9999px;
}
.bf-band-High { background: color-mix(in srgb, var(--bf-facet-color) 20%, white); color: var(--bf-facet-color); }
.bf-band-Moderate { background: var(--color-gray-100); color: var(--color-gray-600); }
.bf-band-Low { background: var(--color-gray-100); color: var(--color-gray-500); }
.bf-facet-track {
  position: relative;
  height: 0.625rem;
  background: rgba(255,255,255,0.6);
  border-radius: 9999px;
  overflow: hidden;
}
.bf-facet-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  border-radius: 9999px;
  opacity: 0.85;
}

/* Stability / Plasticity gauges */
.bf-meta-gauges {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: 1.5rem;
}
.bf-meta-gauge {
  background: color-mix(in srgb, var(--bf-meta-color) 6%, white);
  border: 1px solid color-mix(in srgb, var(--bf-meta-color) 20%, white);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.875rem;
}
.bf-meta-circle { width: 10rem; max-width: 100%; }
.bf-meta-svg { width: 100%; height: auto; }
.bf-meta-ring {
  fill: none;
  stroke: color-mix(in srgb, var(--bf-meta-color) 15%, white);
  stroke-width: 10;
}
.bf-meta-ring-fill {
  fill: none;
  stroke: var(--bf-meta-color);
  stroke-width: 10;
  stroke-linecap: round;
  transition: stroke-dasharray 0.6s ease;
}
.bf-meta-score {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  fill: var(--color-gray-900);
}
.bf-meta-name {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  fill: var(--color-gray-500);
}
.bf-meta-formula {
  font-size: 0.75rem;
  color: var(--color-gray-500);
  font-style: italic;
  margin: 0;
}
.bf-meta-narrative {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--color-gray-700);
  margin: 0;
}
.bf-meta-interaction {
  margin-top: 1.5rem;
  background: var(--color-gray-50);
  border: 1px solid var(--color-gray-100);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}
.bf-meta-interaction h3 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--color-gray-900);
  margin: 0 0 0.5rem;
}
.bf-meta-interaction p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--color-gray-700);
}

/* Context cards */
.bf-context-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: 1rem;
}
.bf-context-card {
  background: var(--color-gray-50);
  border: 1px solid var(--color-gray-100);
  border-radius: var(--radius-xl);
  padding: 1.25rem 1.375rem;
}
.bf-context-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.625rem;
  color: var(--color-gray-900);
}
.bf-context-card p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--color-gray-700);
}

/* Trait interaction callouts */
.bf-interaction-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr));
  gap: 1rem;
}
.bf-interaction-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--color-gray-100);
  border-radius: var(--radius-xl);
  padding: 1.25rem 1.375rem;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.bf-interaction-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 0.3125rem;
  background: linear-gradient(180deg, var(--bf-int-c1), var(--bf-int-c2));
}
.bf-interaction-header { margin-bottom: 0.625rem; padding-left: 0.25rem; }
.bf-interaction-pair {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-gray-500);
  margin: 0 0 0.25rem;
}
.bf-interaction-name {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  margin: 0;
  background: linear-gradient(90deg, var(--bf-int-c1), var(--bf-int-c2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.bf-interaction-narrative {
  margin: 0;
  padding-left: 0.25rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--color-gray-700);
}

/* Research implication cards */
.bf-research-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: 1rem;
}
.bf-research-card {
  background: #fff;
  border: 1px solid var(--color-gray-100);
  border-left: 4px solid var(--bf-res-color);
  border-radius: var(--radius-xl);
  padding: 1.25rem 1.375rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.bf-research-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.bf-research-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-md);
  background: var(--bf-res-color);
  color: #fff;
  font-weight: 800;
  font-family: var(--font-display);
}
.bf-research-header h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
  color: var(--color-gray-900);
}
.bf-research-band {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--bf-res-color);
  margin: 0.125rem 0 0;
}
.bf-research-narrative {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--color-gray-700);
}
.bf-research-citation {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--color-gray-500);
  font-style: italic;
}
.bf-research-citation strong { color: var(--color-gray-700); font-style: normal; }

@media (max-width: 640px) {
  .bf-section { padding: 1.25rem; margin-top: 2rem; }
  .bf-meta-gauges { gap: 1rem; }
}
@media print {
  .bf-section,
  .bf-facet-group,
  .bf-meta-gauge,
  .bf-context-card,
  .bf-interaction-card,
  .bf-research-card { break-inside: avoid; box-shadow: none; }
}

/* ── Learning Agility rich report sections ───────────────────── */
.la-section {
  margin-top: 3rem;
  background: #fff;
  border: 1px solid var(--color-gray-100);
  border-radius: var(--radius-2xl);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}
.la-section-header { margin-bottom: 1.5rem; }
.la-section-header h2 {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  margin: 0 0 0.375rem;
  color: var(--color-gray-900);
}
.la-section-lede {
  color: var(--color-gray-500);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin: 0;
}

.la-dim-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.la-dim-card {
  background: color-mix(in srgb, var(--la-dim-color) 6%, white);
  border: 1px solid color-mix(in srgb, var(--la-dim-color) 20%, white);
  border-left: 4px solid var(--la-dim-color);
  border-radius: var(--radius-xl);
  padding: 1.125rem 1.25rem;
}
.la-dim-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}
.la-dim-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 0.5rem;
  border-radius: var(--radius-md);
  background: var(--la-dim-color);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.la-dim-title { display: flex; align-items: baseline; gap: 0.625rem; flex: 1; flex-wrap: wrap; }
.la-dim-title h3 {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--color-gray-900);
  margin: 0;
}
.la-dim-band {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.15rem 0.55rem;
  border-radius: 9999px;
}
.la-band-High { background: color-mix(in srgb, var(--la-dim-color) 22%, white); color: var(--la-dim-color); }
.la-band-Moderate { background: var(--color-gray-100); color: var(--color-gray-600); }
.la-band-Low { background: var(--color-gray-100); color: var(--color-gray-500); }
.la-dim-score {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--la-dim-color);
}
.la-dim-track {
  position: relative;
  height: 0.625rem;
  background: rgba(255,255,255,0.7);
  border-radius: 9999px;
  overflow: hidden;
  margin-bottom: 0.75rem;
}
.la-dim-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  border-radius: 9999px;
  opacity: 0.9;
}
.la-dim-narrative {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--color-gray-700);
}

.la-context-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 0.875rem;
}
.la-context-cell {
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-gray-100);
  background: var(--color-gray-50);
  padding: 1rem 1.125rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.la-context-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}
.la-context-header h3 {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--color-gray-900);
  margin: 0;
}
.la-context-score {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 800;
  color: var(--color-gray-700);
}
.la-context-track {
  position: relative;
  height: 0.4375rem;
  background: rgba(255,255,255,0.9);
  border-radius: 9999px;
  overflow: hidden;
  border: 1px solid var(--color-gray-100);
}
.la-context-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  border-radius: 9999px;
  background: var(--color-gray-400);
  opacity: 0.85;
}
.la-effect-High { background: color-mix(in srgb, #10b981 8%, white); border-color: color-mix(in srgb, #10b981 30%, white); }
.la-effect-High .la-context-score { color: #059669; }
.la-effect-High .la-context-fill { background: #10b981; }
.la-effect-Moderate .la-context-fill { background: #f59e0b; }
.la-effect-Low { background: color-mix(in srgb, #ef4444 8%, white); border-color: color-mix(in srgb, #ef4444 25%, white); }
.la-effect-Low .la-context-score { color: #b91c1c; }
.la-effect-Low .la-context-fill { background: #ef4444; }
.la-context-commentary {
  margin: 0.125rem 0 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--color-gray-700);
}

.la-pref-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}
.la-pref-row {
  display: flex;
  gap: 0.875rem;
  align-items: flex-start;
  background: var(--color-gray-50);
  border: 1px solid var(--color-gray-100);
  border-radius: var(--radius-xl);
  padding: 1rem 1.125rem;
}
.la-pref-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  border-radius: var(--radius-md);
  background: color-mix(in srgb, #8b5cf6 14%, white);
  color: #7c3aed;
}
.la-pref-check svg { width: 1.125rem; height: 1.125rem; }
.la-pref-body h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.25rem;
  color: var(--color-gray-900);
}
.la-pref-body p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--color-gray-700);
}

@media (max-width: 640px) {
  .la-section { padding: 1.25rem; margin-top: 2rem; }
}
@media print {
  .la-section,
  .la-dim-card,
  .la-context-cell,
  .la-pref-row { break-inside: avoid; box-shadow: none; }
}

/* ── Cognitive Style rich report sections ────────────────────── */
.cog-section {
  margin-top: 3rem;
  background: #fff;
  border: 1px solid var(--color-gray-100);
  border-radius: var(--radius-2xl);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}
.cog-section-header { margin-bottom: 1.5rem; }
.cog-section-header h2 {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  margin: 0 0 0.375rem;
  color: var(--color-gray-900);
}
.cog-section-lede {
  color: var(--color-gray-500);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin: 0;
}

.cog-subscale-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
}
.cog-subscale-card {
  background: #fff;
  border: 1px solid var(--color-gray-100);
  border-left: 4px solid var(--cog-color);
  border-radius: var(--radius-xl);
  padding: 1.125rem 1.25rem;
  box-shadow: var(--shadow-sm);
}
.cog-subscale-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}
.cog-subscale-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.375rem;
  height: 2.375rem;
  border-radius: var(--radius-md);
  background: var(--cog-color);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.875rem;
}
.cog-subscale-title { flex: 1; min-width: 12rem; }
.cog-subscale-title h3 {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--color-gray-900);
  margin: 0 0 0.15rem;
}
.cog-subscale-interp {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--color-gray-500);
}
.cog-subscale-score {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--cog-color);
}
.cog-subscale-track {
  position: relative;
  height: 0.625rem;
  background: var(--color-gray-100);
  border-radius: 9999px;
  overflow: hidden;
  margin-bottom: 0.875rem;
}
.cog-subscale-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  border-radius: 9999px;
  opacity: 0.9;
}
.cog-subscale-panels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 0.75rem;
}
.cog-subscale-panel {
  border-radius: var(--radius-lg);
  padding: 0.875rem 1rem;
  border: 1px solid transparent;
}
.cog-subscale-panel h4 {
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 0.35rem;
}
.cog-subscale-panel p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--color-gray-700);
}
.cog-panel-preferred {
  background: color-mix(in srgb, #10b981 8%, white);
  border-color: color-mix(in srgb, #10b981 25%, white);
}
.cog-panel-preferred h4 { color: #047857; }
.cog-panel-stretch {
  background: color-mix(in srgb, #f59e0b 10%, white);
  border-color: color-mix(in srgb, #f59e0b 28%, white);
}
.cog-panel-stretch h4 { color: #b45309; }

.cog-ps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.cog-ps-panel {
  border-radius: var(--radius-xl);
  padding: 1.125rem 1.25rem;
  border: 1px solid transparent;
}
.cog-ps-panel h3 {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 0.625rem;
}
.cog-ps-panel ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.cog-ps-panel li {
  display: flex;
  gap: 0.5rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--color-gray-700);
}
.cog-ps-bullet {
  display: inline-flex;
  width: 1.125rem;
  height: 1.125rem;
  flex-shrink: 0;
  margin-top: 0.15rem;
}
.cog-ps-bullet svg { width: 100%; height: 100%; }
.cog-ps-preferred {
  background: color-mix(in srgb, #10b981 8%, white);
  border-color: color-mix(in srgb, #10b981 25%, white);
}
.cog-ps-preferred h3,
.cog-ps-preferred .cog-ps-bullet { color: #047857; }
.cog-ps-stretch {
  background: color-mix(in srgb, #f59e0b 10%, white);
  border-color: color-mix(in srgb, #f59e0b 28%, white);
}
.cog-ps-stretch h3,
.cog-ps-stretch .cog-ps-bullet { color: #b45309; }

.cog-ps-style {
  background: var(--color-gray-50);
  border: 1px solid var(--color-gray-100);
  border-radius: var(--radius-lg);
  padding: 1.125rem 1.25rem;
}
.cog-ps-style h3 {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--color-gray-900);
  margin: 0 0 0.4rem;
}
.cog-ps-style p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--color-gray-700);
}

@media (max-width: 640px) {
  .cog-section { padding: 1.25rem; margin-top: 2rem; }
}
@media print {
  .cog-section,
  .cog-subscale-card,
  .cog-ps-panel,
  .cog-ps-style { break-inside: avoid; box-shadow: none; }
}

/* ── Judgement Style (SJT) rich report sections ──────────────── */
.sjt-section {
  margin-top: 3rem;
  background: #fff;
  border: 1px solid var(--color-gray-100);
  border-radius: var(--radius-2xl);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}
.sjt-section-header { margin-bottom: 1.5rem; }
.sjt-section-header h2 {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  margin: 0 0 0.375rem;
  color: var(--color-gray-900);
}
.sjt-section-lede {
  color: var(--color-gray-500);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin: 0;
}

.sjt-comp-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.sjt-comp-card {
  background: #fff;
  border: 1px solid var(--color-gray-100);
  border-left: 4px solid var(--sjt-color);
  border-radius: var(--radius-xl);
  padding: 1.125rem 1.25rem;
  box-shadow: var(--shadow-sm);
}
.sjt-comp-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}
.sjt-comp-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.375rem;
  height: 2.375rem;
  border-radius: var(--radius-md);
  background: var(--sjt-color);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.8125rem;
}
.sjt-comp-title { display: flex; align-items: baseline; gap: 0.625rem; flex: 1; flex-wrap: wrap; }
.sjt-comp-title h3 {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--color-gray-900);
  margin: 0;
}
.sjt-comp-band {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.15rem 0.55rem;
  border-radius: 9999px;
}
.sjt-band-High { background: color-mix(in srgb, var(--sjt-color) 22%, white); color: var(--sjt-color); }
.sjt-band-Moderate { background: var(--color-gray-100); color: var(--color-gray-600); }
.sjt-band-Low { background: var(--color-gray-100); color: var(--color-gray-500); }
.sjt-comp-score {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--sjt-color);
}
.sjt-comp-track {
  position: relative;
  height: 0.625rem;
  background: var(--color-gray-100);
  border-radius: 9999px;
  overflow: hidden;
  margin-bottom: 0.75rem;
}
.sjt-comp-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  border-radius: 9999px;
  opacity: 0.9;
}
.sjt-comp-narrative {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--color-gray-700);
}

.sjt-gauge-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 0.875rem;
  margin-bottom: 1.25rem;
}
.sjt-gauge {
  background: var(--color-gray-50);
  border: 1px solid var(--color-gray-100);
  border-radius: var(--radius-xl);
  padding: 1.125rem 1.25rem;
  text-align: center;
}
.sjt-gauge-label {
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-gray-500);
  margin: 0 0 0.4rem;
}
.sjt-gauge-value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-gray-900);
  margin: 0 0 0.4rem;
}
.sjt-gauge-speed .sjt-gauge-value { color: #4f46e5; }
.sjt-gauge-consistency .sjt-gauge-value { color: #059669; }
.sjt-gauge-risk .sjt-gauge-value { color: #b45309; }
.sjt-gauge-track {
  position: relative;
  height: 0.4375rem;
  background: #fff;
  border: 1px solid var(--color-gray-100);
  border-radius: 9999px;
  overflow: hidden;
  margin: 0.5rem 0;
}
.sjt-gauge-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  border-radius: 9999px;
  background: #10b981;
  opacity: 0.9;
}
.sjt-gauge-detail {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--color-gray-600);
}

.sjt-dominant {
  background: color-mix(in srgb, #4f46e5 7%, white);
  border: 1px solid color-mix(in srgb, #4f46e5 22%, white);
  border-radius: var(--radius-lg);
  padding: 1.125rem 1.25rem;
}
.sjt-dominant h3 {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 700;
  color: #4338ca;
  margin: 0 0 0.4rem;
}
.sjt-dominant p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--color-gray-700);
}

.sjt-calibration {
  background: var(--color-gray-50);
  border: 1px solid var(--color-gray-100);
  border-radius: var(--radius-xl);
  padding: 1.25rem 1.375rem;
  margin-bottom: 1rem;
}
.sjt-calibration h3 {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--color-gray-900);
  margin: 0 0 0.875rem;
}
.sjt-calibration-scale {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.sjt-calibration-end {
  font-size: 0.75rem;
  color: var(--color-gray-500);
  font-weight: 600;
}
.sjt-calibration-track {
  position: relative;
  height: 0.625rem;
  background: linear-gradient(90deg, #fef3c7, #d1fae5, #fef3c7);
  border-radius: 9999px;
}
.sjt-calibration-mid {
  position: absolute;
  top: -0.25rem;
  left: 50%;
  width: 2px;
  height: calc(100% + 0.5rem);
  background: var(--color-gray-400);
  transform: translateX(-50%);
}
.sjt-calibration-marker {
  position: absolute;
  top: 50%;
  width: 1.125rem;
  height: 1.125rem;
  border-radius: 9999px;
  background: #7c3aed;
  border: 2px solid #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  transform: translate(-50%, -50%);
}
.sjt-calibration-desc {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--color-gray-700);
}

.sjt-blind-spots {
  background: color-mix(in srgb, #f59e0b 8%, white);
  border: 1px solid color-mix(in srgb, #f59e0b 25%, white);
  border-radius: var(--radius-xl);
  padding: 1.125rem 1.25rem;
  margin-bottom: 1rem;
}
.sjt-blind-spots h3 {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 700;
  color: #b45309;
  margin: 0 0 0.625rem;
}
.sjt-blind-spots ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.sjt-blind-spots li {
  display: flex;
  gap: 0.5rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--color-gray-700);
}
.sjt-blind-icon {
  display: inline-flex;
  width: 1.125rem;
  height: 1.125rem;
  flex-shrink: 0;
  margin-top: 0.15rem;
  color: #b45309;
}
.sjt-blind-icon svg { width: 100%; height: 100%; }

.sjt-overall {
  background: color-mix(in srgb, #10b981 7%, white);
  border: 1px solid color-mix(in srgb, #10b981 22%, white);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
}
.sjt-overall-label {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #047857;
  margin: 0 0 0.375rem;
}
.sjt-overall-summary {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--color-gray-700);
}

@media (max-width: 640px) {
  .sjt-section { padding: 1.25rem; margin-top: 2rem; }
}
@media print {
  .sjt-section,
  .sjt-comp-card,
  .sjt-gauge,
  .sjt-dominant,
  .sjt-calibration,
  .sjt-blind-spots,
  .sjt-overall { break-inside: avoid; box-shadow: none; }
}

/* ── Invite flow ───────────────────────────────────────────────
   Sender-side: /invite/new (compose an invite), /invites (list),
   /invite/:id (detail). Recipient-side: /invited/:token (landing),
   /invited/:token/assessment/:aid/start → take flow, thanks.
   Polish goal — for the sender it reads as a considered "send this
   with intent" page; for the recipient it reads as an invitation
   addressed to a person, not a form. */
.invite-form { max-width: 48rem; }
.invite-section {
  background: #fff;
  border: 1px solid var(--color-gray-100);
  border-radius: var(--radius-xl);
  padding: var(--space-lg) var(--space-xl);
  margin-bottom: var(--space-md);
  box-shadow: var(--shadow-sm);
}
.invite-section-header { margin-bottom: var(--space-md); }
.invite-section-step {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary-600);
  margin-bottom: var(--space-2xs);
}
.invite-section-header h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  margin: 0;
  color: var(--color-gray-900);
}
.invite-section-header p {
  margin: var(--space-2xs) 0 0;
  color: var(--color-gray-600);
  font-size: var(--text-base);
  line-height: var(--lh-normal);
}

/* Assessment picker on /invite/new.
   Scope-of-delight: the invite page is the first time a paying sender
   interacts with the catalogue. Each row earns a miniature report-card
   feel — colour chip in the assessment's palette, one-line purpose,
   compact meta row with inline-SVG icons, format badge for ipsative
   variants, and a drawn tick that animates in on select. Per-row
   accent comes from the `--ai-accent` custom property set inline by
   the template via `assessmentAccent`; if that fails the row falls
   back to primary, so nothing breaks if a new assessment ID ships
   without a palette entry. */

/* Reset the UA fieldset chrome so the list visually belongs to the
   surrounding card, not a nested rectangle. */
.assessment-invite-fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.assessment-invite-list {
  list-style: none;
  margin: var(--space-xs) 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}
.assessment-invite-list li {
  --ai-accent: var(--color-primary-500);
  position: relative;
  background: #fff;
  border: 1.5px solid var(--color-gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
/* Left-edge accent bar hints at the assessment's palette. Width grows
   on hover + when selected for a subtle "ooh, it responded" beat. */
.assessment-invite-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--ai-accent);
  opacity: 0.35;
  transition: width 0.2s ease, opacity 0.2s ease;
}
.assessment-invite-list li:hover {
  border-color: color-mix(in srgb, var(--ai-accent) 55%, var(--color-gray-200));
  box-shadow: 0 8px 24px -10px color-mix(in srgb, var(--ai-accent) 45%, transparent);
  transform: translateY(-1px);
}
.assessment-invite-list li:hover::before { opacity: 0.7; }
.assessment-invite-list li:focus-within {
  border-color: var(--ai-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ai-accent) 18%, transparent);
}
.assessment-invite-list li:has(input:checked) {
  border-color: var(--ai-accent);
  background:
    radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--ai-accent) 9%, #fff) 0%, #fff 62%);
  box-shadow: 0 10px 28px -12px color-mix(in srgb, var(--ai-accent) 55%, transparent);
}
.assessment-invite-list li:has(input:checked)::before {
  width: 5px;
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  .assessment-invite-list li,
  .assessment-invite-list li::before,
  .assessment-invite-list li:hover { transition: none; transform: none; }
}

.assessment-invite-list label {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: var(--space-md);
  padding: 0.9rem 1rem 0.9rem 1.1rem;
  cursor: pointer;
  min-height: 3.5rem;
}
/* Hide the native checkbox — the whole card is the hit target and
   the tick on the right is the visible state. Keep it focusable via
   :focus-within on the parent so keyboard nav still lights the ring. */
.assessment-invite-list input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 1px;
  height: 1px;
}

/* Colour chip — the per-assessment glyph. Reads as a tiny brand mark:
   a hint of the report palette the recipient will eventually see. */
.assessment-invite-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.65rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--ai-accent);
  background: color-mix(in srgb, var(--ai-accent) 12%, #fff);
  border: 1px solid color-mix(in srgb, var(--ai-accent) 22%, transparent);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  flex-shrink: 0;
}
.assessment-invite-list li:hover .assessment-invite-chip {
  transform: scale(1.03);
}
.assessment-invite-list li:has(input:checked) .assessment-invite-chip {
  color: #fff;
  background: linear-gradient(135deg, color-mix(in srgb, var(--ai-accent) 88%, #fff) 0%, var(--ai-accent) 100%);
  border-color: var(--ai-accent);
  box-shadow: 0 4px 10px -4px color-mix(in srgb, var(--ai-accent) 60%, transparent);
}

.assessment-invite-body {
  display: flex;
  flex-direction: column;
  gap: 0.225rem;
  min-width: 0;
}
.assessment-invite-headline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}
.assessment-invite-name {
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: 600;
  color: var(--color-gray-900);
  line-height: 1.25;
  min-width: 0;
}
.assessment-invite-list li:has(input:checked) .assessment-invite-name {
  color: color-mix(in srgb, var(--ai-accent) 75%, var(--color-gray-900));
}
.assessment-invite-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.1rem 0.45rem;
  border-radius: 9999px;
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--ai-accent) 75%, var(--color-gray-900));
  background: color-mix(in srgb, var(--ai-accent) 10%, #fff);
  border: 1px solid color-mix(in srgb, var(--ai-accent) 22%, transparent);
  flex-shrink: 0;
}
.assessment-invite-desc {
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--color-gray-600);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.assessment-invite-meta {
  font-size: 0.78rem;
  color: var(--color-gray-500);
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.85rem;
  margin-top: 0.15rem;
}
.assessment-invite-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-variant-numeric: tabular-nums;
}
.assessment-invite-meta-icon {
  width: 0.875rem;
  height: 0.875rem;
  color: color-mix(in srgb, var(--ai-accent) 55%, var(--color-gray-400));
  flex-shrink: 0;
}

/* The tick. Empty ring until checked, filled + drawn on select. The
   circular stroke doubles as the visible "checkbox" now the native
   input is hidden, and honours prefers-reduced-motion by dropping the
   draw animation. */
.assessment-invite-tick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 9999px;
  border: 1.5px solid var(--color-gray-300);
  color: transparent;
  background: #fff;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, transform 0.2s ease;
  flex-shrink: 0;
}
.assessment-invite-tick svg {
  width: 0.9rem;
  height: 0.9rem;
  stroke-dasharray: 18;
  stroke-dashoffset: 18;
  transition: stroke-dashoffset 0.25s ease 0.05s;
}
.assessment-invite-list label:hover .assessment-invite-tick {
  border-color: var(--ai-accent);
}
.assessment-invite-list li:has(input:checked) .assessment-invite-tick {
  border-color: var(--ai-accent);
  background: var(--ai-accent);
  color: #fff;
  transform: scale(1.05);
}
.assessment-invite-list li:has(input:checked) .assessment-invite-tick svg {
  stroke-dashoffset: 0;
}
@media (prefers-reduced-motion: reduce) {
  .assessment-invite-tick svg { transition: none; stroke-dashoffset: 0; }
}

@media (max-width: 560px) {
  .assessment-invite-list label {
    grid-template-columns: auto 1fr auto;
    gap: 0.75rem;
    padding: 0.85rem 0.9rem 0.85rem 1rem;
  }
  .assessment-invite-chip { width: 2.25rem; height: 2.25rem; font-size: 0.85rem; }
  .assessment-invite-desc { -webkit-line-clamp: 3; }
}

/* Confirm page: parsed-recipient list + cost breakdown so the sender
   sees exactly what'll happen before a credit is spent. */
.invite-confirm-recipients,
.invite-confirm-assessments {
  list-style: none;
  margin: var(--space-sm) 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}
.invite-confirm-recipients li {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem 0.625rem;
  align-items: baseline;
  padding: 0.625rem var(--space-md);
  background: var(--color-gray-50);
  border-radius: var(--radius-md);
}
.invite-confirm-recipients li strong {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--color-gray-900);
}
.invite-confirm-assessments li {
  padding: 0.625rem var(--space-md);
  background: var(--color-gray-50);
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-weight: 500;
}
.invite-section-cost {
  background: color-mix(in srgb, var(--color-primary) 4%, #fff);
  border-color: color-mix(in srgb, var(--color-primary) 20%, var(--color-gray-200));
}
.invite-section-cost h2 {
  color: var(--color-primary-700);
}
@media (max-width: 540px) {
  /* On narrow screens the name gets the top line and the meta sits
     underneath, so a long assessment name doesn't squeeze the meta
     into a multi-line rag on the right. */
  .assessment-invite-body { flex-direction: column; align-items: flex-start; }
  .assessment-invite-meta { flex-wrap: wrap; }
}

/* Routing radio group on /invite/new step 3.
   Matches the Step 2 assessment picker's visual language: the whole
   card is the hit target, the native radio is hidden, a custom ring
   on the left shows state. Selected state gets a tinted gradient and
   a filled-accent ring to mirror the chip-on-select treatment on the
   assessment cards above. */
.invite-routing-fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}
.invite-routing-fieldset legend {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--color-gray-900);
  padding: 0;
  margin-bottom: var(--space-xs);
}
.invite-routing-options {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  margin-top: var(--space-xs);
}
.invite-routing-options label {
  --ai-accent: var(--color-primary-500);
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: center;
  padding: 0.95rem 1.1rem;
  background: #fff;
  border: 1.5px solid var(--color-gray-200);
  border-radius: var(--radius-lg);
  cursor: pointer;
  font-size: var(--text-base);
  color: var(--color-gray-700);
  line-height: var(--lh-normal);
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
/* Hide native radio; the tick on the left + the card itself are the UI. */
.invite-routing-options label input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 1px;
  height: 1px;
}
.invite-routing-options label:hover {
  border-color: color-mix(in srgb, var(--ai-accent) 55%, var(--color-gray-200));
  box-shadow: 0 8px 24px -10px color-mix(in srgb, var(--ai-accent) 45%, transparent);
  transform: translateY(-1px);
}
.invite-routing-options label:focus-within {
  border-color: var(--ai-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ai-accent) 18%, transparent);
}
.invite-routing-options label:has(input:checked) {
  border-color: var(--ai-accent);
  background:
    radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--ai-accent) 9%, #fff) 0%, #fff 62%);
  box-shadow: 0 10px 28px -12px color-mix(in srgb, var(--ai-accent) 55%, transparent);
  color: var(--color-gray-900);
}
@media (prefers-reduced-motion: reduce) {
  .invite-routing-options label,
  .invite-routing-options label:hover { transition: none; transform: none; }
}

.invite-routing-tick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 9999px;
  border: 2px solid var(--color-gray-300);
  background: #fff;
  flex-shrink: 0;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.invite-routing-tick::after {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 9999px;
  background: var(--ai-accent);
  transform: scale(0);
  transition: transform 0.18s ease;
}
.invite-routing-options label:hover .invite-routing-tick {
  border-color: var(--ai-accent);
}
.invite-routing-options label:has(input:checked) .invite-routing-tick {
  border-color: var(--ai-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ai-accent) 15%, transparent);
}
.invite-routing-options label:has(input:checked) .invite-routing-tick::after {
  transform: scale(1);
}

.invite-routing-body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}
.invite-routing-body > strong {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--color-gray-900);
  line-height: 1.25;
}
.invite-routing-body > span {
  font-size: 0.875rem;
  color: var(--color-gray-600);
  line-height: 1.4;
}

/* Recipient landing — feels like a gift, not a form. A small eyebrow
   and the sender's name is the visual anchor, the personal message is
   set in a quoted block with generous leading. */
.invite-landing-card {
  background: #fff;
  border: 1px solid var(--color-gray-100);
  border-radius: var(--radius-2xl);
  padding: var(--space-xl) var(--space-xl) var(--space-lg);
  margin-bottom: var(--space-lg);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.invite-landing-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary-500), var(--color-purple-600));
}
.invite-landing-eyebrow {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary-600);
  margin: 0 0 var(--space-xs);
}
.invite-landing-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 700;
  line-height: var(--lh-tight);
  margin: 0 0 var(--space-sm);
  color: var(--color-gray-900);
}
.invite-landing-intro {
  font-size: var(--text-lg);
  line-height: var(--lh-copy);
  color: var(--color-gray-700);
  margin: 0 0 var(--space-md);
}
.invite-landing-message {
  margin: 0 0 var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: var(--color-gray-50);
  border-left: 4px solid var(--color-primary-400);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  font-size: var(--text-md);
  line-height: var(--lh-copy);
  color: var(--color-gray-800);
  font-style: normal;
  quotes: none;
}
.invite-landing-message::before,
.invite-landing-message::after { content: none; }
.invite-landing-routing {
  font-size: var(--text-sm);
  color: var(--color-gray-500);
  margin: var(--space-xs) 0 0;
}

/* Consent panel — language has to be legally clear, not corporate. */
.invite-consent-card {
  background: #fff;
  border: 1px solid var(--color-amber-500, #f59e0b);
  border-radius: var(--radius-xl);
  padding: var(--space-lg) var(--space-xl);
  margin-bottom: var(--space-lg);
  box-shadow: var(--shadow-sm);
}
.invite-consent-card h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  margin: 0 0 var(--space-sm);
  color: var(--color-gray-900);
}
.invite-consent-card > p {
  font-size: var(--text-base);
  line-height: var(--lh-copy);
  color: var(--color-gray-700);
  margin: 0 0 var(--space-md);
}
.invite-consent-check {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-sm);
  padding: var(--space-md);
  background: var(--color-gray-50);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-lg);
  cursor: pointer;
  margin-bottom: var(--space-md);
  font-size: var(--text-base);
  line-height: var(--lh-normal);
  color: var(--color-gray-800);
}
.invite-consent-check input[type="checkbox"] { margin-top: 0.125rem; }

/* Invite list on /invites — the sent progress bar is a muted version
   of the score bar, scoped so it doesn't bleed into report scores. */
.invite-progress-bar {
  display: block;
  height: 0.25rem;
  width: 100%;
  max-width: 18rem;
  background: var(--color-gray-100);
  border-radius: 9999px;
  overflow: hidden;
  margin-top: var(--space-2xs);
}
.invite-progress-fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary-400), var(--color-primary-600));
  border-radius: 9999px;
}

@media (max-width: 640px) {
  .invite-section { padding: var(--space-md) var(--space-md); }
  .invite-landing-card { padding: var(--space-lg) var(--space-md); }
  .invite-consent-card { padding: var(--space-md); }
}

@media print {
  .invite-section,
  .invite-landing-card,
  .invite-consent-card { break-inside: avoid; box-shadow: none; }
}

/* ── Print ─────────────────────────────────────────────────────
   HR Directors print reports. They share them with coaches, managers,
   and executives. The printed artefact has to stand on its own —
   calm, dense, typographically serious. This stylesheet:

   • Sets A4 margins at ~15mm (enough to three-hole-punch — a common
     convention for printed psychometric reports).
   • Hides anything that's navigation or a screen-only affordance
     (banners, action buttons, share widget, example banners).
   • Collapses heavy gradients to a solid brand colour so a colour
     printer doesn't bleed through 40% of its toner on a blob.
   • Avoids awful break-inside splits on cards and sections so a
     strength list doesn't end up with its heading orphaned.
   • Keeps body text at 10.5pt (standard HR-report weight) so a
     Big-Five 2-pager remains 2 pages. */
@page {
  size: A4;
  margin: 15mm;
}

@media print {
  /* Global — crisp backgrounds, no blurs, no transforms. */
  *, *::before, *::after {
    box-shadow: none !important;
    text-shadow: none !important;
    filter: none !important;
    backdrop-filter: none !important;
  }

  html, body {
    background: #fff !important;
    color: #111;
    font-size: 10.5pt;
    line-height: 1.45;
  }

  /* Strip chrome entirely. */
  .site-nav,
  .site-footer,
  .nav-mobile-toggle,
  .dropdown-menu { display: none !important; }

  /* Action rows, inline buttons, sharing, and "this is a sample" banners
     aren't useful on paper — the reader is holding it. */
  .report-actions,
  .report-example-banner,
  .report-shared-banner,
  .share-url-display,
  .assessment-take-actions,
  .pending-actions,
  .pending-bookmark,
  .auth-form,
  .checkout-actions,
  .hero-actions { display: none !important; }

  /* Report page frame. Drop the top offset the nav created on screen. */
  .report-page,
  .dashboard-page,
  .assessment-take-page,
  .pending-page { padding-top: 0; min-height: 0; }

  .page-inner { max-width: none; padding: 0; }

  /* Hero gradient — degrade to a single solid brand tint. Printers waste
     ink on full-bleed gradients, and the cited palette is carried
     elsewhere in the report by the primary-style card and per-dimension
     accents. */
  .report-hero {
    background: var(--hero-c1, var(--color-primary-700)) !important;
    color: #fff !important;
    padding: 1.25rem 1.5rem !important;
    margin-bottom: 1rem !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    break-after: avoid;
    page-break-after: avoid;
  }
  .report-hero-blobs { display: none !important; }
  .report-hero-title { font-size: 18pt !important; margin-bottom: 0.25rem !important; }
  .report-eyebrow { font-size: 9pt !important; }
  .report-completed { font-size: 9pt !important; opacity: 0.85; }

  /* Primary-style card — keep the gradient rule but let the name print
     solid rather than a gradient text-fill, which can look muddy on
     mid-range printers. */
  .primary-style-card {
    border: 1px solid #d1d5db !important;
    padding: 1rem 1.25rem !important;
    break-inside: avoid;
    page-break-inside: avoid;
  }
  .primary-style-name {
    background: none !important;
    -webkit-text-fill-color: var(--hero-c2, var(--color-primary-700)) !important;
    color: var(--hero-c2, var(--color-primary-700)) !important;
    font-size: 22pt !important;
  }

  /* Keep cards intact across pages. */
  section,
  article,
  .score-row,
  .dimension-insight-card,
  .summary-list,
  .disc-section,
  .eq-section,
  .conflict-section,
  .culture-section,
  .bf-section,
  .report-methodology,
  .meta-facets,
  .identity-card,
  .meta-facet-card,
  .bf-facet-group,
  .bf-meta-gauge,
  .bf-context-card,
  .bf-interaction-card,
  .bf-research-card,
  .conflict-mode-card,
  .culture-alignment-card,
  .culture-gauge-card,
  .credit-card,
  .pricing-card,
  .product-card,
  .testimonial-card,
  .question-card {
    break-inside: avoid;
    page-break-inside: avoid;
    box-shadow: none !important;
  }

  h1, h2, h3, h4 {
    break-after: avoid;
    page-break-after: avoid;
  }

  /* Keep URL rendering tidy in `<a>` tags without dumping long hrefs in
     the flow — the PDF download already links back to the platform. */
  a { color: inherit; text-decoration: none; }

  /* Form elements: don't waste ink. */
  input, button, textarea { display: none !important; }
}


/* ── Report variant chooser ──────────────────────────────────────
   Thomas International-style multi-document reports. The default
   Personal view shows all three variants as pill-buttons at the top;
   the current variant is highlighted. Each variant has a tagline
   explaining who it's for, so users grasp "share with your manager"
   without guessing. Under Pressure earns a subtly warmer accent so
   it reads as distinct from the standard Personal palette.
──────────────────────────────────────────────────────────────── */
.report-variant-chooser {
  margin: 1.5rem 0 1.25rem;
  padding: 1rem 1.25rem 1.125rem;
  background: var(--color-surface, #fff);
  border: 1px solid var(--color-border, #e5e7eb);
  border-radius: var(--radius-lg, 0.875rem);
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.04);
}
.report-variant-chooser-eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-gray-600, #4b5563);
  letter-spacing: 0.01em;
}
.report-variant-tabs {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.report-variant-tab { margin: 0; }
.report-variant-pill {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.125rem;
  padding: 0.625rem 1rem;
  min-width: 11.5rem;
  border: 1px solid var(--color-border, #e5e7eb);
  border-radius: 999px;
  background: #fff;
  color: var(--color-gray-800, #1f2937);
  text-decoration: none;
  line-height: 1.2;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.report-variant-pill:hover {
  background: var(--color-gray-50, #f9fafb);
  border-color: var(--color-gray-300, #d1d5db);
  transform: translateY(-1px);
}
.report-variant-pill strong {
  font-size: 0.9375rem;
  font-weight: 700;
  font-family: var(--font-display, inherit);
}
.report-variant-tagline {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-gray-500, #6b7280);
  letter-spacing: 0.01em;
}
.report-variant-pill.is-current {
  background: linear-gradient(135deg, var(--hero-c1, #4c6ef5), var(--hero-c2, #7c3aed));
  border-color: transparent;
  color: #fff;
  cursor: default;
  box-shadow: 0 4px 10px rgba(76, 110, 245, 0.25);
}
.report-variant-pill.is-current .report-variant-tagline {
  color: rgba(255, 255, 255, 0.85);
}

/* Variant-specific hero + inline banners ─────────────────────── */
.disc-variant-banner {
  padding: 1.5rem 1.75rem;
  margin-top: 1.5rem;
  border-radius: var(--radius-lg, 0.875rem);
  background: linear-gradient(135deg, #1e293b, #334155);
  color: #fff;
}
.disc-variant-banner.disc-variant-under-pressure {
  background: linear-gradient(135deg, #7c2d12, #b45309);
}
.disc-variant-eyebrow {
  margin: 0 0 0.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
}
.disc-variant-title {
  margin: 0 0 0.5rem;
  font-family: var(--font-display, inherit);
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.15;
}
.disc-variant-lede {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.92);
  max-width: 60ch;
}

.disc-blend-pressure-note {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: var(--color-gray-600, #4b5563);
}

.disc-arrow-list-lg li {
  font-size: 1rem;
  line-height: 1.55;
  padding: 0.5rem 0;
}

.disc-trigger-list,
.disc-recovery-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.75rem;
}
.disc-trigger-list li,
.disc-recovery-list li {
  padding: 0.875rem 1rem;
  background: var(--color-surface-alt, #f9fafb);
  border-left: 4px solid var(--color-accent, #4c6ef5);
  border-radius: 0 var(--radius-md, 0.5rem) var(--radius-md, 0.5rem) 0;
  font-size: 0.9375rem;
  line-height: 1.55;
}

/* Print header — when a variant PDF prints, we stamp the variant
   name + respondent into a running header band so it's obvious which
   of the three variants is on the table. Hidden on screen. */
.report-variant-print-banner { display: none; }
@media print {
  .report-variant-chooser { display: none; }
  .report-variant-print-banner {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 0.25rem 0 0.375rem;
    margin: 0 0 0.5rem;
    border-bottom: 2px solid #111;
    font-family: var(--font-display, inherit);
  }
  .report-variant-print-label {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.18em;
  }
  .report-variant-print-name {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #333;
  }
  .disc-variant-banner { break-inside: avoid; }
}

/* ── Forced-choice take page ──────────────────────────────────────────
   The DISC — Forced-Choice assessment uses an ipsative response format
   (pick one "most", one "least" per block). The table layout keeps
   statements aligned across rows so the columns of radios read cleanly
   and the scan is symmetric left-to-right. */
.fc-form .fc-block-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 1.25rem; }
.fc-block { padding: 1.25rem 1.5rem; }
.fc-block-label { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-gray-500); margin: 0 0 0.75rem; }
.fc-block-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
.fc-block-table thead th {
  text-align: left;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-gray-500);
  padding: 0 0.5rem 0.5rem;
}
.fc-col-most, .fc-col-least { width: 4rem; text-align: center; }
.fc-col-statement { width: auto; }
.fc-row:not(:last-child) td { border-bottom: 1px solid var(--color-gray-100); }
.fc-row td { padding: 0.75rem 0.5rem; vertical-align: middle; color: var(--color-gray-900); font-size: 0.9375rem; line-height: 1.5; }
.fc-row td.fc-col-most, .fc-row td.fc-col-least { text-align: center; }
.fc-radio {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  cursor: pointer;
  position: relative;
}
.fc-radio input[type="radio"] { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.fc-radio-dot {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  border: 2px solid var(--color-gray-300);
  background: #fff;
  transition: border-color 0.12s ease, background 0.12s ease, transform 0.12s ease;
}
.fc-radio:hover .fc-radio-dot { border-color: var(--color-primary); }
.fc-radio input[type="radio"]:focus-visible + .fc-radio-dot { outline: 3px solid color-mix(in srgb, var(--color-primary) 30%, transparent); outline-offset: 2px; }
.fc-col-most .fc-radio input[type="radio"]:checked + .fc-radio-dot { background: var(--color-primary); border-color: var(--color-primary); }
.fc-col-least .fc-radio input[type="radio"]:checked + .fc-radio-dot { background: var(--color-gray-500); border-color: var(--color-gray-500); }
.fc-radio input[type="radio"]:checked + .fc-radio-dot { transform: scale(1.08); }
@media (prefers-reduced-motion: reduce) {
  .fc-radio-dot { transition: none; }
  .fc-radio input[type="radio"]:checked + .fc-radio-dot { transform: none; }
}
@media (max-width: 480px) {
  .fc-col-most, .fc-col-least { width: 3rem; }
  .fc-row td { padding: 0.625rem 0.25rem; font-size: 0.875rem; }
}

/* ═══════════════════════════════════════════════════════════════
   Blog
   Marketing content pages at /blog and /blog/{slug}. Optimised for
   long-form reading — wider line-height, narrower measure, accent
   colour driven by the post's category so the page feels bespoke
   without a separate stylesheet per category.
   ═══════════════════════════════════════════════════════════════ */

.blog-page { background: var(--color-gray-50); padding-top: var(--nav-height); }

.blog-header {
  background: linear-gradient(180deg, #ffffff 0%, var(--color-gray-50) 100%);
  border-bottom: 1px solid var(--color-gray-100);
}
.blog-header-inner { padding-top: var(--space-3xl); padding-bottom: var(--space-xl); }
.blog-eyebrow {
  font-family: var(--font-display);
  font-size: var(--text-sm); font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--color-primary-600);
  margin-bottom: var(--space-sm);
}
.blog-header-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800; line-height: var(--lh-tight);
  letter-spacing: -0.02em;
  color: var(--color-gray-900);
  max-width: 42rem;
}
.blog-header-subtitle {
  font-size: var(--text-lg);
  color: var(--color-gray-600);
  line-height: var(--lh-copy);
  max-width: 42rem;
  margin-top: var(--space-md);
}

.blog-categories {
  display: flex; flex-wrap: wrap; gap: var(--space-xs);
  margin-top: var(--space-xl);
}
.blog-chip {
  --chip-accent: var(--color-gray-500);
  display: inline-flex; align-items: center;
  padding: 0.375rem 0.875rem;
  font-size: var(--text-sm); font-weight: 600;
  color: var(--color-gray-700);
  background: #fff;
  border: 1px solid var(--color-gray-200);
  border-radius: 9999px;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.blog-chip:hover {
  border-color: var(--chip-accent);
  color: var(--chip-accent);
}
.blog-chip.is-active {
  background: var(--chip-accent);
  border-color: var(--chip-accent);
  color: #fff;
}
.blog-chip-static { pointer-events: none; }
.blog-chip-static {
  background: color-mix(in srgb, var(--chip-accent) 12%, #fff);
  border-color: color-mix(in srgb, var(--chip-accent) 25%, var(--color-gray-200));
  color: var(--chip-accent);
}

/* ── Featured hero card ───────────────────────────────────────── */
.blog-featured .section-inner { padding-top: var(--space-2xl); padding-bottom: var(--space-lg); }
.blog-feature-card {
  --accent: var(--color-primary-600);
  position: relative;
  background: #fff;
  border: 1px solid var(--color-gray-100);
  border-radius: var(--radius-2xl);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.blog-feature-card::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 4px;
  background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 50%, var(--color-purple-500)));
}
.blog-feature-card + .blog-feature-card { margin-top: var(--space-lg); }
.blog-feature-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-xs);
  font-size: var(--text-sm); color: var(--color-gray-500);
  margin-bottom: var(--space-md);
}
.blog-meta-dot {
  width: 3px; height: 3px; border-radius: 50%;
  background: var(--color-gray-300);
}
.blog-feature-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.125rem);
  font-weight: 800; line-height: var(--lh-tight);
  letter-spacing: -0.015em;
  margin-bottom: var(--space-sm);
}
.blog-feature-title a { color: var(--color-gray-900); }
.blog-feature-title a:hover { color: var(--accent); }
.blog-feature-subtitle {
  font-size: var(--text-lg);
  color: var(--color-gray-600);
  line-height: var(--lh-copy);
  max-width: 44rem;
  margin-bottom: var(--space-md);
}
.blog-feature-forwho {
  font-size: var(--text-sm);
  color: var(--color-gray-600);
  padding: var(--space-sm) var(--space-md);
  background: var(--color-gray-50);
  border-radius: var(--radius-lg);
  border-left: 3px solid var(--accent);
  margin-bottom: var(--space-lg);
}
.blog-feature-actions {
  display: flex; align-items: center; gap: var(--space-md); flex-wrap: wrap;
}
.blog-feature-author {
  font-size: var(--text-sm);
  color: var(--color-gray-500);
}

/* ── Article grid ─────────────────────────────────────────────── */
.blog-list .section-inner { padding-top: var(--space-lg); padding-bottom: var(--space-3xl); }
.blog-section-heading {
  font-family: var(--font-display);
  font-size: var(--text-xl); font-weight: 700;
  margin-bottom: var(--space-lg);
  color: var(--color-gray-700);
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr));
  gap: var(--space-lg);
}
.blog-card {
  --accent: var(--color-primary-600);
  position: relative;
  background: #fff;
  border: 1px solid var(--color-gray-100);
  border-radius: var(--radius-xl);
  padding: var(--space-lg);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  display: flex; flex-direction: column;
}
.blog-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent);
  border-top-left-radius: var(--radius-xl);
  border-top-right-radius: var(--radius-xl);
}
.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: color-mix(in srgb, var(--accent) 20%, var(--color-gray-100));
}
.blog-card-meta {
  display: flex; align-items: center; gap: var(--space-sm);
  font-size: var(--text-xs); color: var(--color-gray-500);
  margin-bottom: var(--space-sm);
}
.blog-card-title {
  font-family: var(--font-display);
  font-size: var(--text-xl); font-weight: 700;
  line-height: var(--lh-snug);
  margin-bottom: var(--space-sm);
}
.blog-card-title a { color: var(--color-gray-900); }
.blog-card-title a:hover { color: var(--accent); }
.blog-card-summary {
  color: var(--color-gray-600);
  font-size: var(--text-base);
  line-height: var(--lh-copy);
  flex: 1;
  margin-bottom: var(--space-md);
}
.blog-card-footer {
  display: flex; justify-content: space-between;
  font-size: var(--text-xs);
  color: var(--color-gray-500);
  padding-top: var(--space-sm);
  border-top: 1px solid var(--color-gray-100);
}
.blog-empty {
  text-align: center;
  color: var(--color-gray-500);
  padding: var(--space-3xl) 0;
}

/* ── Single post ──────────────────────────────────────────────── */
.blog-post-page { --accent: var(--color-primary-600); padding-top: var(--nav-height); background: #fff; }

.blog-post-hero {
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--accent) 8%, #fff) 0%,
    #fff 100%);
  border-bottom: 1px solid var(--color-gray-100);
}
.blog-post-hero-inner { padding-top: var(--space-2xl); padding-bottom: var(--space-2xl); max-width: 56rem; }
.blog-post-breadcrumb {
  font-size: var(--text-sm);
  color: var(--color-gray-500);
  margin-bottom: var(--space-md);
  display: flex; gap: var(--space-xs); align-items: center;
}
.blog-post-breadcrumb a { color: var(--color-gray-600); font-weight: 500; }
.blog-post-breadcrumb a:hover { color: var(--accent); }
.blog-post-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800; line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--color-gray-900);
  margin-bottom: var(--space-md);
}
.blog-post-subtitle {
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  color: var(--color-gray-600);
  line-height: var(--lh-copy);
  max-width: 48rem;
  margin-bottom: var(--space-xl);
}
.blog-post-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-md);
  margin-bottom: var(--space-md);
}
.blog-post-author-block {
  display: inline-flex; align-items: center; gap: var(--space-sm);
}
.blog-post-author-block .avatar-circle {
  width: 2.5rem; height: 2.5rem;
  background: linear-gradient(135deg, var(--accent), var(--color-purple-600));
  color: #fff; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
}
.blog-post-author-text { display: flex; flex-direction: column; line-height: 1.3; }
.blog-post-author-name { font-weight: 600; color: var(--color-gray-900); font-size: var(--text-base); }
.blog-post-author-role { font-size: var(--text-xs); color: var(--color-gray-500); }
.blog-post-meta-rule {
  width: 1px; height: 1.75rem;
  background: var(--color-gray-200);
}
.blog-post-meta-facts {
  display: inline-flex; align-items: center; gap: var(--space-xs);
  font-size: var(--text-sm); color: var(--color-gray-600);
}
.blog-post-forwho {
  display: inline-block;
  font-size: var(--text-sm);
  color: var(--color-gray-700);
  padding: var(--space-sm) var(--space-md);
  background: color-mix(in srgb, var(--accent) 6%, #fff);
  border: 1px solid color-mix(in srgb, var(--accent) 20%, var(--color-gray-100));
  border-radius: var(--radius-lg);
}

.blog-post-layout {
  display: grid;
  /* Body is the lead column; sidebar only claims space when there's a
     comfortable 44rem+ left for reading. Below that, sidebar stacks
     below the body instead of squeezing it. */
  grid-template-columns: minmax(0, 1fr) 17rem;
  gap: var(--space-2xl);
  padding-top: var(--space-2xl); padding-bottom: var(--space-3xl);
  max-width: 72rem;
  margin: 0 auto;
}
@media (max-width: 1100px) {
  .blog-post-layout { grid-template-columns: 1fr; gap: var(--space-xl); }
  .blog-post-sidebar { max-width: 36rem; }
}

.blog-post-body {
  max-width: 40rem;
  font-size: 1.0625rem;
  color: var(--color-gray-800);
  line-height: 1.75;
}
.blog-post-body .lede {
  font-size: 1.1875rem;
  color: var(--color-gray-700);
  line-height: 1.7;
  margin-bottom: var(--space-xl);
  font-weight: 500;
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--color-gray-100);
}
.blog-post-body h2 {
  font-family: var(--font-display);
  font-size: 1.625rem; font-weight: 700;
  line-height: var(--lh-snug);
  letter-spacing: -0.01em;
  color: var(--color-gray-900);
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-md);
}
.blog-post-body h3 {
  font-family: var(--font-display);
  font-size: 1.25rem; font-weight: 700;
  color: var(--color-gray-900);
  margin-top: var(--space-xl);
  margin-bottom: var(--space-sm);
}
.blog-post-body p { margin-bottom: var(--space-md); }
.blog-post-body ul,
.blog-post-body ol { margin: 0 0 var(--space-md) 1.25rem; }
.blog-post-body li { margin-bottom: var(--space-xs); }
.blog-post-body li p { margin-bottom: var(--space-xs); }
.blog-post-body strong { color: var(--color-gray-900); font-weight: 700; }
.blog-post-body em { color: var(--color-gray-800); }
.blog-post-body a {
  color: var(--accent);
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
}
.blog-post-body a:hover {
  border-bottom-color: var(--accent);
}

.blog-post-cta-block {
  display: flex; flex-direction: column; gap: var(--space-md);
  padding: clamp(1.25rem, 3vw, 2rem);
  margin: var(--space-2xl) 0;
  background: linear-gradient(135deg, var(--color-primary-50), color-mix(in srgb, var(--accent) 8%, #fff));
  border-radius: var(--radius-2xl);
  border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--color-gray-100));
}
.blog-post-cta-text h2 {
  margin-top: 0;
  font-size: 1.375rem;
}
.blog-post-cta-text p {
  color: var(--color-gray-700);
  margin-bottom: 0;
}
.blog-post-cta-actions { display: flex; gap: var(--space-sm); flex-wrap: wrap; }

.blog-post-footer {
  margin-top: var(--space-2xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--color-gray-100);
}
.blog-post-tags { display: flex; flex-wrap: wrap; gap: var(--space-xs); margin-bottom: var(--space-lg); }
.blog-tag {
  font-size: var(--text-xs);
  color: var(--color-gray-500);
  padding: 0.125rem 0.625rem;
  background: var(--color-gray-100);
  border-radius: 9999px;
}
.blog-post-share { display: flex; flex-direction: column; gap: var(--space-sm); }
.blog-share-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-gray-700);
}
.blog-share-list {
  display: flex; flex-wrap: wrap; gap: var(--space-xs);
  list-style: none; padding: 0; margin: 0;
}
.blog-share-list .btn {
  font-size: var(--text-sm);
  padding: 0.5rem 1rem;
}

/* ── Sidebar ──────────────────────────────────────────────────── */
.blog-post-aside {
  display: flex; flex-direction: column; gap: var(--space-lg);
  position: sticky; top: calc(var(--nav-height) + 1rem);
  align-self: start;
  max-height: calc(100vh - var(--nav-height) - 2rem);
  overflow-y: auto;
}
@media (max-width: 960px) {
  .blog-post-aside { position: static; max-height: none; }
}
.blog-aside-card {
  background: #fff;
  border: 1px solid var(--color-gray-100);
  border-radius: var(--radius-xl);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
}
.blog-aside-card h3 {
  font-family: var(--font-display);
  font-size: 1rem; font-weight: 700;
  color: var(--color-gray-900);
  margin-bottom: var(--space-sm);
}
.blog-aside-card p {
  font-size: var(--text-sm);
  color: var(--color-gray-600);
  line-height: var(--lh-copy);
  margin-bottom: var(--space-md);
}
.blog-aside-cta {
  background: linear-gradient(160deg, #fff 0%, color-mix(in srgb, var(--accent) 5%, #fff) 100%);
  border-color: color-mix(in srgb, var(--accent) 20%, var(--color-gray-100));
}
.blog-aside-cta .btn { margin-bottom: var(--space-xs); }
.blog-aside-cta .btn:last-child { margin-bottom: 0; }
.blog-aside-link {
  font-size: var(--text-sm); font-weight: 600;
  color: var(--accent);
}

.blog-related-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: var(--space-sm);
}
.blog-related-link {
  display: flex; flex-direction: column; gap: 0.25rem;
  padding: var(--space-sm);
  border-radius: var(--radius-md);
  transition: background 0.15s ease;
}
.blog-related-link:hover { background: var(--color-gray-50); }
.blog-related-cat {
  font-size: var(--text-xs); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.blog-related-title {
  font-size: var(--text-sm); font-weight: 600;
  color: var(--color-gray-900);
  line-height: var(--lh-snug);
}
.blog-related-meta {
  font-size: var(--text-xs);
  color: var(--color-gray-500);
}

.blog-post-end-cta .btn { margin: 0.25rem; }
.blog-post-end-actions {
  display: inline-flex; gap: var(--space-md); flex-wrap: wrap; justify-content: center;
  margin-top: var(--space-md);
}

/* Print: drop the sidebar, widen the body, strip background tints. */
@media print {
  .blog-post-aside,
  .blog-post-share,
  .blog-post-end-cta,
  .blog-post-cta-block,
  .blog-categories,
  .site-nav,
  .site-footer { display: none !important; }
  .blog-post-layout { grid-template-columns: 1fr; }
  .blog-post-body { max-width: none; }
  .blog-post-hero { background: #fff; }
}
