/* ============================================
   Anansi Cyber - Renewal Readiness Scorecard v2
   Design Direction: "Precision Intelligence"
   Clean surgical whites with precise blue accents
   ============================================ */

/* --- Typography --- */
/* Poppins - Headlines (similar to All Round Gothic, no watermarks) */
/* Montserrat - Body Text */
/* Both loaded from Google Fonts in index.html */

/* --- Hidden attribute fix --- */
/* Ensure [hidden] works even when display is set */
[hidden] {
  display: none !important;
}

/* --- Design System --- */
:root {
  /* Surfaces */
  --white: #FFFFFF;
  --snow: #FAFBFC;
  --cloud: #F3F4F6;
  --mist: #E5E7EB;
  --silver: #D1D5DB;

  /* Brand */
  --primary: #0166FE;
  --primary-hover: #0052CC;
  --primary-light: #E8F1FF;
  --primary-ghost: rgba(1, 102, 254, 0.08);

  /* Text */
  --text-primary: #111827;
  --text-secondary: #4B5563;
  --text-tertiary: #6B7280;
  --text-muted: #9CA3AF;

  /* Status */
  --success: #059669;
  --success-light: #ECFDF5;
  --warning: #D97706;
  --warning-light: #FFFBEB;
  --danger: #DC2626;
  --danger-light: #FEF2F2;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-primary: 0 4px 14px rgba(1, 102, 254, 0.25);

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 40px;
  --space-2xl: 64px;
  --space-3xl: 96px;

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Typography */
  --font-display: 'Montserrat', -apple-system, sans-serif;
  --font-body: 'Montserrat', -apple-system, sans-serif;

  /* Animation */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 150ms;
  --duration-base: 250ms;
  --duration-slow: 400ms;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-primary);
  background:
    linear-gradient(rgba(30, 58, 95, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 58, 95, 0.06) 1px, transparent 1px),
    var(--snow);
  background-size: 40px 40px, 40px 40px, 100% 100%;
  min-height: 100vh;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

main {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

/* Floating accent bubbles */
.floating-accents {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.floating-accent {
  position: absolute;
  border-radius: 50%;
  background: var(--primary);
  opacity: 0.07;
}

.floating-accent:nth-child(1) {
  width: 300px;
  height: 300px;
  top: 10%;
  right: -100px;
  animation: floatBubble1 8s ease-in-out infinite;
}

.floating-accent:nth-child(2) {
  width: 200px;
  height: 200px;
  bottom: 20%;
  left: -50px;
  animation: floatBubble2 10s ease-in-out infinite 1s;
}

.floating-accent:nth-child(3) {
  width: 150px;
  height: 150px;
  top: 50%;
  right: 20%;
  animation: floatBubble3 12s ease-in-out infinite 2s;
}

@keyframes floatBubble1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-40px, -50px) scale(1.1); }
  66% { transform: translate(30px, 40px) scale(0.95); }
}

@keyframes floatBubble2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(50px, -30px) scale(0.9); }
  66% { transform: translate(-30px, 60px) scale(1.15); }
}

@keyframes floatBubble3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-50px, 40px) scale(1.12); }
  66% { transform: translate(40px, -60px) scale(0.88); }
}

::selection {
  background: var(--primary);
  color: white;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
input, select { font: inherit; }

/* --- Particles Background --- */
#particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* --- Header --- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--space-xl);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--mist);
}

.logo img {
  height: 32px;
  width: auto;
}

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

.nav > a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--duration-fast) var(--ease-out);
}

.nav > a:hover {
  color: var(--text-primary);
}

.nav > a.btn-primary {
  color: white;
}

.nav > a.btn-primary:hover {
  color: white;
}

/* --- Buttons --- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 12px 24px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: var(--radius-md);
  transition: all var(--duration-base) var(--ease-out);
}

.btn svg {
  width: 18px;
  height: 18px;
  transition: transform var(--duration-fast) var(--ease-out);
}

.btn:hover svg {
  transform: translateX(3px);
}

.btn-primary {
  color: white;
  background: var(--primary);
  box-shadow: var(--shadow-sm), var(--shadow-primary);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md), 0 6px 20px rgba(1, 102, 254, 0.3);
}

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

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none !important;
  box-shadow: none;
}

.btn:disabled svg {
  transform: none !important;
}

.btn-secondary {
  color: var(--text-primary);
  background: var(--white);
  border: 1px solid var(--mist);
  box-shadow: var(--shadow-xs);
}

.btn-secondary:hover {
  background: var(--cloud);
  border-color: var(--silver);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1rem;
}

.btn-ghost {
  color: var(--text-secondary);
  background: transparent;
}

.btn-ghost:hover {
  background: var(--cloud);
  color: var(--text-primary);
}

.btn-ghost:hover svg {
  transform: translateX(-3px);
}

.btn-outline {
  color: var(--text-primary);
  background: var(--white);
  border: 2px solid var(--silver);
  font-weight: 600;
}

.btn-outline:hover {
  background: var(--cloud);
  border-color: var(--text-tertiary);
  color: var(--text-primary);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  z-index: 1;
  padding: var(--space-2xl) var(--space-xl) var(--space-lg);
  min-height: auto;
  display: flex;
  align-items: center;
  overflow: hidden;
}


.hero-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 6px 14px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-light);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-lg);
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.2); }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4.5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
}

.hero-lead {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
  max-width: 540px;
}

/* Peer Preview Card */
.peer-preview {
  padding: var(--space-lg);
  background: var(--white);
  border: 1px solid var(--mist);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-xl);
  box-shadow: var(--shadow-sm);
}

.peer-preview-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary);
}

.peer-preview-header svg {
  width: 20px;
  height: 20px;
}

.peer-preview p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin: 0;
}

.peer-preview strong {
  color: var(--text-primary);
}

/* Features */
.hero-features {
  display: flex;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.feature {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.feature-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-ghost);
  border-radius: var(--radius-md);
}

.feature-icon svg {
  width: 20px;
  height: 20px;
  color: var(--primary);
}

.feature span {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.hero-source {
  margin-top: var(--space-xl);
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Hero Visual */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 100%;
}

.hero-image-wrapper {
  position: relative;
  max-width: 540px;
  width: 100%;
  aspect-ratio: 5 / 4;
  overflow: hidden;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-glow {
  position: absolute;
  inset: -20px;
  background: radial-gradient(ellipse at center, rgba(1, 102, 254, 0.1) 0%, transparent 70%);
  z-index: -1;
  border-radius: var(--radius-xl);
}

.hero-stats {
  position: absolute;
  bottom: -20px;
  right: -20px;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.stat-card {
  padding: var(--space-md) var(--space-lg);
  background: var(--white);
  border: 1px solid var(--mist);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  text-align: center;
  min-width: 140px;
}

.stat-card.accent {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.stat-card.accent .stat-label {
  color: rgba(255, 255, 255, 0.8);
}

.panel-disclosure {
  margin-top: 16px;
  padding: 10px 14px;
  font-size: 0.8rem;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.03);
  border-left: 3px solid var(--text-muted);
  border-radius: 4px;
}

/* --- Assessment Section --- */
.assessment {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding: var(--space-lg) var(--space-xl);
  max-width: 900px;
  margin: 0 auto;
}

/* --- Live Tracker --- */
.live-tracker {
  position: sticky;
  top: 88px;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  padding: var(--space-md) var(--space-lg);
  background: var(--white);
  border: 1px solid var(--mist);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-xl);
  box-shadow: var(--shadow-md);
}

.tracker-left {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.tracker-ring {
  position: relative;
  width: 64px;
  height: 64px;
}

.tracker-ring svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 2px 4px rgba(1, 102, 254, 0.2));
}

.tracker-ring circle:last-of-type {
  transition: stroke-dashoffset 0.5s var(--ease-out), stroke 0.3s;
}

.tracker-value {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
}

.tracker-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tracker-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tracker-tier {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.tracker-right {
  flex: 1;
  max-width: 300px;
}

.tracker-progress-bar {
  height: 6px;
  background: var(--cloud);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: var(--space-xs);
}

.progress-fill {
  height: 100%;
  background: var(--primary);
  border-radius: var(--radius-full);
  width: 0%;
  transition: width var(--duration-base) var(--ease-out);
}

.tracker-step {
  font-size: 0.8rem;
  color: var(--text-tertiary);
}

/* --- Wizard Steps --- */
.wizard-step {
  display: none;
  animation: slideUp var(--duration-slow) var(--ease-out);
}

.wizard-step.active {
  display: block;
}

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

/* --- Step Card --- */
.step-card,
.question-card {
  background: var(--white);
  border: 1px solid var(--mist);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  box-shadow: var(--shadow-md);
}

.step-intro-hero {
  margin-bottom: var(--space-sm);
}

.step-eyebrow {
  margin: 0 0 14px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary);
}

.step-card h2,
.question-card h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
}

.step-desc {
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
}

.step-desc-intro {
  max-width: 58ch;
}

.step-intro-hero h2 {
  max-width: 11ch;
  font-size: clamp(2.15rem, 4vw, 3.25rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.intro-focus {
  margin: 0 0 var(--space-xl);
  padding: 22px 0 0;
  border-top: 1px solid rgba(1, 102, 254, 0.14);
}

.intro-focus-header {
  margin-bottom: 18px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.intro-focus-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.intro-focus-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 18px 0 0;
  border-top: 1px solid var(--mist);
}

.intro-focus-item strong {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--text-primary);
  line-height: 1.2;
}

.intro-focus-item span {
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

/* --- Form Elements --- */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.honeypot-field {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.field-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.required {
  color: var(--danger);
}

.form-field input,
.form-field select {
  padding: 14px 16px;
  background: var(--snow);
  border: 1px solid var(--mist);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  transition: all var(--duration-fast) var(--ease-out);
}

.form-field input:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 3px var(--primary-ghost);
}

.form-field input::placeholder {
  color: var(--text-muted);
}

.form-field select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
}

.collection-notice {
  margin: 0 0 var(--space-lg);
  padding: 14px 16px;
  background: linear-gradient(180deg, #f8fbff 0%, #f0f6ff 100%);
  border: 1px solid #cfe0ff;
  border-radius: var(--radius-lg);
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

.collection-notice strong {
  color: var(--text-primary);
}

.collection-notice a {
  color: var(--primary);
  font-weight: 600;
}

/* --- Question Card --- */
.question-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.pillar-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-light);
  border-radius: var(--radius-full);
}

.critical-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--danger);
  background: var(--danger-light);
  border-radius: var(--radius-full);
}

.question-text {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
}

.question-context {
  padding: var(--space-lg);
  background: var(--snow);
  border-left: 3px solid var(--primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin-bottom: var(--space-xl);
}

.question-context p {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

.question-context cite {
  display: block;
  margin-top: var(--space-sm);
  font-size: 0.75rem;
  color: var(--text-muted);
  font-style: normal;
}

.question-guidance {
  margin-top: var(--space-md);
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.question-guidance strong {
  color: var(--text-primary);
}

.question-guidance-subtle {
  color: var(--text-muted);
}

/* --- Answer Options --- */
.answer-options {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.answer-option {
  position: relative;
}

.answer-option input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  z-index: 2;
}

.answer-label {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: var(--snow);
  border: 2px solid var(--mist);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--duration-base) var(--ease-out);
}

.answer-option input:hover + .answer-label {
  border-color: var(--silver);
  background: var(--cloud);
}

.answer-option input:checked + .answer-label {
  border-color: var(--primary);
  background: var(--primary-light);
  box-shadow: 0 0 0 3px var(--primary-ghost);
}

.answer-indicator {
  width: 28px;
  height: 28px;
  border: 2px solid var(--silver);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--duration-fast) var(--ease-out);
  background: var(--white);
}

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

.answer-indicator svg {
  width: 14px;
  height: 14px;
  color: white;
  opacity: 0;
  transform: scale(0.5);
  transition: all var(--duration-fast) var(--ease-spring);
}

.answer-option input:checked + .answer-label .answer-indicator svg {
  opacity: 1;
  transform: scale(1);
}

.answer-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.answer-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-primary);
}

.answer-desc {
  font-size: 0.85rem;
  color: var(--text-tertiary);
}

.answer-score {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius-md);
}

.answer-score.full {
  color: var(--success);
  background: var(--success-light);
}
.answer-score.partial {
  color: var(--warning);
  background: var(--warning-light);
}
.answer-score.none {
  color: var(--danger);
  background: var(--danger-light);
}

.answer-score.na {
  color: var(--text-muted);
  background: var(--cloud);
}

/* --- Question Navigation --- */
.question-nav {
  display: flex;
  justify-content: space-between;
  gap: var(--space-md);
}

.question-nav .btn {
  flex: 1;
  max-width: 180px;
}

/* --- Results Section --- */
.results-container {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.results-hero {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--space-xl);
  padding: var(--space-xl);
  background: linear-gradient(135deg, var(--white) 0%, var(--snow) 50%, var(--primary-light) 100%);
  border: 1px solid var(--mist);
  border-radius: var(--radius-xl);
  margin-bottom: var(--space-lg);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.results-score-section {
  display: flex;
  flex-direction: column;
  text-align: center;
  padding-right: var(--space-lg);
  border-right: 1px solid var(--mist);
}

.big-score-ring {
  position: relative;
  width: 180px;
  height: 180px;
  margin: 0 auto var(--space-lg);
}

.big-score-ring svg {
  width: 100%;
  height: 100%;
}

.big-score-ring circle:last-of-type {
  filter: drop-shadow(0 4px 8px rgba(1, 102, 254, 0.25));
  transition: stroke-dashoffset 1.5s var(--ease-out), stroke 0.3s;
}

.big-score-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.final-score-value {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
  color: var(--primary);
}

.final-score-label {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
}

.tier-badge {
  display: inline-block;
  padding: 8px 20px;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-sm);
}

.tier-badge.preferred {
  background: var(--success-light);
  color: var(--success);
}
.tier-badge.standard {
  background: var(--primary-light);
  color: var(--primary);
}
.tier-badge.conditional {
  background: var(--warning-light);
  color: var(--warning);
}
.tier-badge.high-friction {
  background: var(--danger-light);
  color: var(--danger);
}

.tier-description {
  font-size: 0.85rem;
  color: var(--text-tertiary);
  line-height: 1.5;
  margin-bottom: var(--space-lg);
}

/* Score branding */
.score-branding {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex: 1;
  margin-top: var(--space-lg);
  padding: 30px var(--space-lg);
}

.branding-icon {
  width: 112px;
  height: 112px;
}

.branding-text {
  max-width: 18ch;
  font-size: 1.08rem;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.45;
  letter-spacing: 0.14em;
  color: var(--primary);
  text-align: center;
  text-wrap: balance;
}

/* Score Context - replaces peer ranking */
.score-context {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-lg);
  background: var(--snow);
  border: 1px solid var(--mist);
  border-radius: var(--radius-lg);
}

.field-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
}


/* Quick Stats */
.quick-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.quick-stat {
  padding: var(--space-lg);
  background: var(--white);
  border: 1px solid var(--mist);
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--duration-base) var(--ease-out);
}

.quick-stat:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--silver);
}

.quick-stat.critical .quick-stat-value {
  color: var(--danger);
}

.quick-stat.highlight {
  background: var(--primary);
  border-color: var(--primary);
}

.quick-stat.highlight .quick-stat-value,
.quick-stat.highlight .quick-stat-label {
  color: white;
}

.quick-stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.quick-stat-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.results-summary-card {
  position: relative;
  padding: 28px 36px;
  background: linear-gradient(135deg, var(--primary) 0%, #003da5 100%);
  border-radius: var(--radius-xl);
  margin-bottom: var(--space-lg);
  box-shadow: var(--shadow-xl), inset 0 1px 0 rgba(255,255,255,0.1);
  overflow: hidden;
}

.summary-content {
  position: relative;
  z-index: 1;
}

.summary-row {
  display: flex;
  align-items: center;
  gap: 20px;
}

.summary-icon-block {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-lg);
}

.summary-icon-block svg {
  width: 28px;
  height: 28px;
  stroke: white;
}

.summary-text-block {
  flex: 1;
}

.summary-eyebrow {
  display: block;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 2px;
}

.summary-headline {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  font-weight: 800;
  line-height: 1.2;
  color: white;
  margin: 0;
}

.summary-premium-block {
  flex-shrink: 0;
  text-align: right;
  padding-left: 20px;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.summary-premium-label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 2px;
}

.summary-premium-value {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: white;
  line-height: 1.2;
}

.summary-bg-accent {
  position: absolute;
  top: -60%;
  right: -5%;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(255,255,255,0.07) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}

.summary-bg-accent::before {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -200px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 65%);
  border-radius: 50%;
}

@media (max-width: 600px) {
  .summary-row {
    flex-wrap: wrap;
  }

  .summary-premium-block {
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-left: 0;
    padding-top: 12px;
    margin-top: 8px;
    text-align: left;
    width: 100%;
  }
}

/* --- Results Tabs --- */
.results-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: linear-gradient(135deg, var(--cloud) 0%, var(--mist) 100%);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-lg);
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.06);
}

.tab-btn {
  flex: 1;
  padding: 14px 20px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-tertiary);
  border-radius: var(--radius-md);
  transition: all var(--duration-fast) var(--ease-out);
  cursor: pointer;
  border: none;
  background: transparent;
}

.tab-btn:hover {
  color: var(--text-primary);
  background: var(--white);
}

.tab-btn.active {
  color: var(--primary);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.tab-panels {
  background: var(--white);
  border: 1px solid var(--mist);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  margin-bottom: var(--space-xl);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.tab-panels::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle at top right, rgba(1, 102, 254, 0.03) 0%, transparent 60%);
  pointer-events: none;
}

.tab-panel {
  display: none;
  animation: fadeIn var(--duration-base) var(--ease-out);
  padding: var(--space-lg);
  margin: calc(-1 * var(--space-xl));
}

.tab-panel.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.tab-panel h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
}

/* Panel hero image — flush top & sides, fades at bottom */
.panel-hero-image {
  margin: calc(-1 * var(--space-lg)) calc(-1 * var(--space-lg)) var(--space-xl) calc(-1 * var(--space-lg));
  position: relative;
  height: 280px;
  overflow: hidden;
  border-radius: 0;
}

.panel-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  transition: transform 0.6s var(--ease-out), filter 0.6s var(--ease-out);
  filter: saturate(0.95) contrast(1.02);
}

.panel-hero-image:hover img {
  transform: scale(1.03);
  filter: saturate(1) contrast(1.04);
}

/* Bottom fade to white */
.panel-hero-image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.6) 40%, rgba(255, 255, 255, 0.9) 70%, var(--white) 100%);
  z-index: 1;
  pointer-events: none;
}

.panel-subtitle {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: var(--space-lg);
}

.panel-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: calc(-1 * var(--space-md)) 0 var(--space-lg);
}

/* --- Gap & Action Lists --- */
.gaps-list,
.actions-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.gaps-list li,
.actions-list li {
  padding: var(--space-lg);
  background: var(--white);
  border: 1px solid var(--mist);
  border-radius: var(--radius-lg);
  transition: all var(--duration-fast) var(--ease-out);
  box-shadow: var(--shadow-sm);
}

.gaps-list li:hover,
.actions-list li:hover {
  background: var(--snow);
  border-color: var(--primary-light);
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

.gaps-list li.critical-gap {
  border-left: 4px solid var(--danger);
  background: linear-gradient(90deg, var(--danger-light) 0%, var(--white) 10%);
}

.gap-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  margin-bottom: var(--space-sm);
}

.gap-control {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text-primary);
}

.gap-status {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.gap-status.missing {
  background: var(--danger-light);
  color: var(--danger);
}
.gap-status.partial {
  background: var(--warning-light);
  color: var(--warning);
}

.gap-note {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.actions-list {
  counter-reset: action-counter;
}

.actions-list li {
  position: relative;
  padding-left: 70px;
}

.actions-list li::before {
  content: counter(action-counter);
  counter-increment: action-counter;
  position: absolute;
  left: var(--space-lg);
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: white;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 50%;
}

.action-title {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.action-service {
  font-size: 0.85rem;
  margin-top: var(--space-sm);
  padding-top: var(--space-sm);
  border-top: 1px dashed var(--mist);
}

.action-service a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--duration-fast);
}

.action-service a:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

/* --- Benchmark --- */
.benchmark-content {
  padding: var(--space-xl);
  background: linear-gradient(135deg, var(--white) 0%, var(--snow) 100%);
  border: 1px solid var(--mist);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}

.benchmark-bar-wrapper {
  margin: var(--space-xl) 0;
  padding-top: 60px;
  padding-bottom: var(--space-md);
}

.benchmark-bar {
  position: relative;
  height: 14px;
  background: linear-gradient(90deg,
    #FEE2E2 0%,
    #FEF3C7 25%,
    #D1FAE5 50%,
    #CFFAFE 75%,
    #E0E7FF 100%
  );
  border-radius: var(--radius-full);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.06);
}

.benchmark-fill {
  height: 100%;
  background: transparent;
  border-radius: var(--radius-full);
}

.benchmark-marker {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 36px;
  border-radius: 4px;
  transition: transform 0.3s ease;
}

.benchmark-marker:hover {
  transform: translate(-50%, -50%) scale(1.1);
}

.peer-marker {
  background: linear-gradient(180deg, #6B7280, #4B5563);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.you-marker {
  background: linear-gradient(180deg, #3B82F6, #0166FE);
  box-shadow: 0 4px 12px rgba(1, 102, 254, 0.4);
}

.marker-label {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 10px;
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.peer-label {
  color: var(--text-secondary);
  border: 1px solid var(--mist);
}

.you-label {
  color: var(--primary);
  border: 2px solid var(--primary);
  background: var(--primary-light);
}

/* Offset markers when close together */
.benchmark-marker.offset-up .marker-label {
  bottom: auto;
  top: calc(100% + 10px);
}

.benchmark-detail {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-secondary);
  background: var(--snow);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--primary);
}

.benchmark-detail strong {
  color: var(--text-primary);
}

/* --- Results CTA --- */
.results-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xl);
  padding: var(--space-xl);
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--white) 100%);
  border: 1px solid var(--primary-light);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}

.cta-content h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.cta-content p {
  color: var(--text-secondary);
  max-width: 400px;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  align-items: center;
}

/* --- Footer --- */
.footer {
  position: relative;
  z-index: 1;
  background: var(--white);
  border-top: 1px solid var(--mist);
  margin-top: var(--space-3xl);
}

.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: var(--space-2xl) var(--space-xl) var(--space-xl);
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-2xl);
}

.footer-logo {
  height: 28px;
}

.footer-brand p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 320px;
  margin-top: var(--space-md);
}

.footer-col h5 {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-primary);
  margin: 0 0 var(--space-md);
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col ul a {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--duration-fast);
}

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

/* --- Email Widget --- */
.email-widget {
  background: var(--primary-ghost);
  border: 1px solid var(--primary-light);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.email-widget textarea {
  width: 100%;
  min-height: 80px;
  padding: var(--space-md);
  border: 1px solid var(--mist);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.95rem;
  resize: vertical;
  margin-bottom: var(--space-md);
  transition: border-color var(--duration-fast);
}

.email-widget textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-ghost);
}

.email-widget textarea::placeholder {
  color: var(--text-muted);
}

.email-widget .btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
}

.btn-success {
  background: var(--success) !important;
  border-color: var(--success) !important;
  cursor: default;
}

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding: var(--space-lg) var(--space-xl);
  border-top: 1px solid var(--mist);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
}

.footer-copy,
.footer-contact {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
}

.footer-disclaimer {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-xl) var(--space-lg);
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.legal-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(1, 102, 254, 0.08), transparent 32%),
    linear-gradient(180deg, #f6f8fc 0%, #ffffff 100%);
}

.legal-shell {
  max-width: 980px;
  margin: 0 auto;
  padding: 140px 24px 80px;
}

.legal-hero {
  margin-bottom: 28px;
}

.legal-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(1, 102, 254, 0.08);
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.legal-shell h1 {
  margin: 18px 0 10px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
  color: var(--text-primary);
}

.legal-intro {
  max-width: 760px;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.75;
}

.legal-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(200, 210, 224, 0.75);
  border-radius: 28px;
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.08);
  padding: 32px;
}

.legal-card section + section {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid rgba(226, 232, 240, 0.9);
}

.legal-card h2 {
  margin: 0 0 10px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
}

.legal-card p,
.legal-card li {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

.legal-card ul {
  margin: 12px 0 0 18px;
}

.legal-card a {
  color: var(--primary);
  font-weight: 600;
}

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  margin-top: 16px;
  color: var(--text-muted);
  font-size: 0.82rem;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    text-align: center;
  }

  .hero-lead { margin-inline: auto; }
  .hero-features { justify-content: center; flex-wrap: wrap; }
  .hero-visual { order: -1; }
  .hero-image-wrapper { max-width: 400px; margin: 0 auto; aspect-ratio: 5 / 4; }
  .hero-stats { position: static; flex-direction: row; justify-content: center; margin-top: var(--space-lg); }

  .trust-strip-content { grid-template-columns: 1fr; }

  .intro-focus-grid {
    grid-template-columns: 1fr;
  }

  .results-hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .results-score-section {
    border-right: none;
    border-bottom: 1px solid var(--mist);
    padding-right: 0;
    padding-bottom: var(--space-lg);
  }

  .quick-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .header { padding: var(--space-md); }
  .hero { padding: var(--space-lg); }
  .assessment { padding: var(--space-md); }

  .form-grid { grid-template-columns: 1fr; }

  .live-tracker {
    flex-direction: column;
    text-align: center;
  }

  .tracker-right { max-width: none; width: 100%; }

  .step-card,
  .question-card {
    padding: var(--space-lg);
  }

  .question-text { font-size: 1.125rem; }

  .answer-label {
    grid-template-columns: auto 1fr;
    gap: var(--space-sm);
  }

  .answer-score {
    grid-column: 2;
    justify-self: start;
    margin-top: var(--space-sm);
  }

  .question-nav { flex-direction: column; }
  .question-nav .btn { max-width: none; }

  .results-tabs { flex-direction: column; }
  .quick-stats { grid-template-columns: 1fr; }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    padding: var(--space-xl);
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
  }

  .footer-disclaimer {
    padding: 0 var(--space-xl) var(--space-md);
  }

  .legal-shell {
    padding: 120px 16px 56px;
  }

  .legal-card {
    padding: 22px 18px;
    border-radius: 22px;
  }

  .results-cta {
    flex-direction: column;
    text-align: center;
  }

  .cta-buttons {
    flex-direction: column;
    width: 100%;
    gap: var(--space-sm);
  }
  .cta-buttons .btn { width: 100%; }
  .cta-buttons .btn-ghost {
    order: 3;
    background: transparent;
    border: 1px solid var(--mist);
  }

  .footer-brand p { max-width: none; }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* --- Enhanced Visual Polish (Quantum Precision Design) --- */

/* Subtle gradient overlays */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 20% 30%, rgba(1, 102, 254, 0.03) 0%, transparent 50%),
              radial-gradient(ellipse at 80% 70%, rgba(1, 102, 254, 0.02) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.hero-content,
.hero-visual {
  position: relative;
  z-index: 1;
}

/* Refined card hover effects */
.step-card,
.question-card {
  transition: box-shadow var(--duration-base) var(--ease-out),
              transform var(--duration-base) var(--ease-out);
}

.step-card:hover,
.question-card:hover {
  box-shadow: var(--shadow-lg);
}

/* Enhanced score ring glow */
.big-score-ring::after {
  content: '';
  position: absolute;
  inset: -20px;
  background: radial-gradient(circle, rgba(1, 102, 254, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  z-index: -1;
  animation: pulseGlow 3s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

/* Better tier badge styling */
.tier-badge {
  position: relative;
  overflow: hidden;
}

.tier-badge::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.3) 0%, transparent 50%);
  pointer-events: none;
}

/* Quick stat card enhancements */
.quick-stat {
  position: relative;
  overflow: hidden;
}

.quick-stat::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: 0;
  transition: opacity var(--duration-base);
}

.quick-stat:hover::before {
  opacity: 1;
}

.quick-stat.highlight::before {
  background: linear-gradient(90deg, transparent, white, transparent);
  opacity: 1;
}

/* Tab button polish */
.tab-btn {
  position: relative;
  overflow: hidden;
}

.tab-btn::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width var(--duration-base) var(--ease-out);
}

.tab-btn.active::after {
  width: 40%;
}

/* Gap item border accent */
.gap-item.critical {
  border-left: 4px solid var(--danger);
}

.gaps-list li {
  border-left: 4px solid transparent;
  transition: border-color var(--duration-fast);
}

.gaps-list li:hover {
  border-left-color: var(--primary);
}

/* Results CTA enhancement */
.results-cta {
  position: relative;
  overflow: hidden;
}

.results-cta::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 200%;
  background: radial-gradient(circle, rgba(1, 102, 254, 0.05) 0%, transparent 50%);
  animation: float 15s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(10px, -10px) rotate(5deg); }
  66% { transform: translate(-5px, 5px) rotate(-3deg); }
}

/* Input focus states */
input:focus,
select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-ghost);
}

/* Smooth scroll snap for assessment */
.assessment {
  scroll-behavior: smooth;
}

/* Better button micro-interactions */
.btn-primary {
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--duration-fast);
}

.btn-primary:hover::before {
  opacity: 1;
}

/* Stagger animation for results */
.quick-stats .quick-stat {
  animation: slideUp 0.5s var(--ease-out) backwards;
}

.quick-stats .quick-stat:nth-child(1) { animation-delay: 0.1s; }
.quick-stats .quick-stat:nth-child(2) { animation-delay: 0.2s; }
.quick-stats .quick-stat:nth-child(3) { animation-delay: 0.3s; }
.quick-stats .quick-stat:nth-child(4) { animation-delay: 0.4s; }

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

/* Peer preview card interaction */
.peer-preview {
  transition: transform var(--duration-base) var(--ease-out),
              box-shadow var(--duration-base) var(--ease-out);
}

.peer-preview:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Feature icon animation */
.feature-icon {
  transition: transform var(--duration-base) var(--ease-spring),
              background var(--duration-base);
}

.feature:hover .feature-icon {
  transform: scale(1.1);
  background: var(--primary-light);
}

/* Score gauge gradient border effect */
.tracker-ring::after {
  content: '';
  position: absolute;
  inset: -2px;
  background: conic-gradient(from 0deg, var(--primary), var(--success), var(--warning), var(--danger), var(--primary));
  border-radius: 50%;
  z-index: -1;
  opacity: 0.1;
}

/* ============================================
   IMAGE INTEGRATION STYLES
   ============================================ */

/* Trust Strip Section */
.trust-strip {
  position: relative;
  z-index: 1;
  padding: var(--space-xl);
  background: transparent;
}

.trust-strip-content {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 0;
  align-items: stretch;
  background: var(--white);
  border: 1px solid var(--mist);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.trust-strip-image {
  position: relative;
  height: 100%;
  min-height: 280px;
  overflow: hidden;
}

.trust-strip-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.trust-strip-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 60%, var(--white) 100%);
}

.trust-strip-text {
  padding: var(--space-xl);
}

.trust-strip-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary);
}

.trust-strip-eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}

.trust-strip-text h3 {
  font-family: var(--font-display);
  max-width: 17ch;
  font-size: clamp(1.9rem, 3.2vw, 2.45rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.04em;
  text-wrap: balance;
  color: var(--text-primary);
  margin-bottom: 18px;
}

.trust-strip-text p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
  max-width: 58ch;
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-light);
  border-radius: var(--radius-full);
}

.trust-badge::before {
  content: '';
  display: inline-block;
  width: 10px;
  height: 10px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg) translateY(-2px);
}

/* Step Card with Image */
.step-card-with-image {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 0;
  padding: 0;
  overflow: hidden;
}

.step-card-content {
  padding: clamp(32px, 4vw, 48px);
}

.step-card-image {
  position: relative;
  overflow: hidden;
  background: var(--snow);
}

.step-card-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.step-card-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(270deg, transparent 70%, var(--white) 100%);
  z-index: 1;
}

/* Results CTA with Image */
.results-cta-with-image {
  position: relative;
  display: block;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--mist);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.results-cta-with-image .cta-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.results-cta-with-image .cta-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.results-cta-with-image .cta-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255,255,255,0.92) 50%, rgba(255,255,255,0.7) 100%);
}



.results-cta-with-image .cta-main {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 36px 40px;
}

.results-cta-with-image .cta-content {
  margin-bottom: var(--space-lg);
}

.results-cta-with-image .cta-content p {
  line-height: 1.6;
  max-width: none;
}

.cta-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: var(--success);
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-lg);
  letter-spacing: 0.02em;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.3);
}

.cta-badge svg {
  stroke: var(--white);
}

.cta-contact {
  font-size: 0.9rem;
  margin-top: var(--space-sm);
}

.cta-urgency {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-top: var(--space-sm);
}

.cta-contact a {
  color: var(--primary);
  font-weight: 600;
}

.results-cta-with-image .cta-buttons {
  flex-wrap: wrap;
}

/* Score Shield Background */
.score-shield-bg {
  position: absolute;
  inset: -40px;
  opacity: 0.08;
  z-index: 0;
  pointer-events: none;
}

.score-shield-bg img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.results-score-section {
  position: relative;
}

.results-score-section > *:not(.score-shield-bg) {
  position: relative;
  z-index: 1;
}

/* Responsive adjustments for images */
@media (max-width: 1024px) {
  .trust-strip {
    padding: var(--space-lg);
  }

  .trust-strip-content {
    grid-template-columns: 1fr;
  }

  .trust-strip-image {
    min-height: 220px;
  }

  .trust-strip-image::after {
    background: linear-gradient(180deg, transparent 50%, var(--white) 100%);
  }

  .trust-strip-text {
    text-align: center;
  }

  .trust-strip-eyebrow {
    justify-content: center;
  }

  .trust-strip-text h3,
  .trust-strip-text p {
    max-width: none;
    margin-left: auto;
    margin-right: auto;
  }

  .trust-badges {
    justify-content: center;
  }

  .step-card-with-image {
    grid-template-columns: 1fr;
  }

  .step-card-image {
    order: -1;
    min-height: 200px;
    position: relative;
  }

  .step-card-image::before {
    background: linear-gradient(180deg, transparent 50%, var(--white) 100%);
  }
}

@media (max-width: 640px) {
  .trust-strip {
    padding: var(--space-md);
  }

  .trust-strip-text {
    padding: var(--space-lg);
  }

  .trust-strip-image {
    min-height: 180px;
  }

  .step-card-image {
    min-height: 160px;
  }

  .step-intro-hero h2 {
    max-width: none;
  }

  .results-cta-with-image .cta-main {
    padding: var(--space-lg);
  }
}

/* ============================================
   CARRIER READINESS & BREACH CONTEXT STYLES
   ============================================ */

/* Section styling */
.carrier-section,
.cost-impact-section {
  margin-bottom: var(--space-xl);
}

.carrier-section h4,
.cost-impact-section h4 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.section-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
}

/* Requirements grid */
.requirements-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

@media (max-width: 640px) {
  .requirements-grid {
    grid-template-columns: 1fr;
  }
}

.req-column {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  border: 1px solid var(--mist);
}

.req-column.req-met {
  border-color: var(--success);
  background: linear-gradient(135deg, rgba(5, 150, 105, 0.02) 0%, var(--white) 100%);
}

.req-column.req-missing {
  border-color: var(--danger);
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.02) 0%, var(--white) 100%);
}

.req-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--mist);
}

.req-met .req-header {
  color: var(--success);
}

.req-missing .req-header {
  color: var(--danger);
}

.req-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
}

.req-met .req-icon {
  background: var(--success);
  color: white;
}

.req-missing .req-icon {
  background: var(--danger);
  color: white;
}

.req-item {
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--snow);
}

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

.req-item.empty {
  color: var(--text-muted);
  font-style: italic;
  font-size: 0.85rem;
}

.req-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
}

.req-consequence {
  display: block;
  font-size: 0.8rem;
  color: var(--danger);
  margin-top: var(--space-xs);
  font-weight: 500;
}

.req-status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: var(--space-xs);
  padding: 4px 8px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.req-status.missing {
  background: var(--danger-light);
  color: var(--danger);
}

.req-status.partial {
  background: var(--warning-light);
  color: var(--warning);
}

/* Breach cost context section */
.cost-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

@media (max-width: 640px) {
  .cost-stats {
    grid-template-columns: 1fr;
  }
}

.cost-stat {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  text-align: center;
  border: 1px solid var(--mist);
  position: relative;
  overflow: hidden;
}

.cost-stat::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}

.cost-stat.savings {
  border-color: var(--success);
}

.cost-stat.savings::before {
  background: linear-gradient(90deg, var(--success), #34d399);
}

.cost-stat.risk {
  border-color: var(--danger);
}

.cost-stat.risk::before {
  background: linear-gradient(90deg, var(--danger), #f87171);
}

.cost-stat-label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
}

.cost-stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-xs);
}

.cost-stat.savings .cost-stat-value {
  color: var(--success);
}

.cost-stat.risk .cost-stat-value {
  color: var(--danger);
}

.cost-stat-context {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Cost breakdown */
.cost-breakdown {
  background: var(--snow);
  border-radius: var(--radius-md);
  padding: var(--space-md);
}

.breakdown-section {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}

.breakdown-section + .breakdown-section {
  margin-top: var(--space-md);
}

.breakdown-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.breakdown-title.all-good {
  color: var(--success);
}

.breakdown-list {
  display: grid;
  gap: 10px;
}

.breakdown-match {
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--mist);
  background: var(--white);
}

.breakdown-match.savings {
  border-color: rgba(5, 150, 105, 0.22);
  background: linear-gradient(180deg, rgba(236, 253, 245, 0.82) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.breakdown-match.risk {
  border-color: rgba(217, 119, 6, 0.2);
  background: linear-gradient(180deg, rgba(255, 251, 235, 0.92) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.breakdown-match-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.breakdown-match-factor {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.breakdown-match-status {
  flex-shrink: 0;
  padding: 5px 9px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.breakdown-match-status.present {
  background: var(--success-light);
  color: var(--success);
}

.breakdown-match-status.partial {
  background: var(--warning-light);
  color: var(--warning);
}

.breakdown-match-status.missing {
  background: var(--danger-light);
  color: var(--danger);
}

.breakdown-match-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.breakdown-match-control,
.breakdown-match-amount {
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--text-secondary);
}

.breakdown-match-amount {
  color: var(--success);
  font-weight: 600;
}

.breakdown-note {
  margin-top: var(--space-md);
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--text-muted);
}

/* Benchmark detail text */
.benchmark-detail {
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding: var(--space-md);
  background: var(--primary-ghost);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--primary);
  margin-top: var(--space-md);
}

/* ============================================
   RESULTS CTA - FINAL SECTION
   ============================================ */

.results-cta-final {
  display: block;
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
  gap: 0;
  margin-top: var(--space-xl);
}

.results-cta-final::before {
  display: none;
}

.cta-confirmation {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-xl);
  background: linear-gradient(135deg, #eef4ff 0%, #ffffff 100%);
  border: 1px solid #c7d9ff;
  border-radius: var(--radius-xl);
  margin-bottom: var(--space-xl);
}

.cta-confirmation.is-submitted {
  background: linear-gradient(135deg, var(--success-light) 0%, #d1fae5 100%);
  border-color: #a7f3d0;
}

.cta-confirmation.is-manual {
  background: linear-gradient(135deg, #fff7ed 0%, #fffbeb 100%);
  border-color: #fdba74;
}

.confirmation-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cta-confirmation.is-submitted .confirmation-icon {
  background: var(--success);
}

.cta-confirmation.is-manual .confirmation-icon {
  background: #d97706;
}

.confirmation-icon svg {
  width: 24px;
  height: 24px;
  stroke: white;
}

.results-cta-final .cta-badge {
  background: rgba(1, 102, 254, 0.12);
  color: var(--primary);
  box-shadow: none;
}

.results-cta-final .cta-badge svg {
  stroke: currentColor;
}

.cta-confirmation.is-submitted .cta-badge {
  background: rgba(5, 150, 105, 0.14);
  color: #065f46;
}

.cta-confirmation.is-manual .cta-badge {
  background: rgba(217, 119, 6, 0.14);
  color: #92400e;
}

.confirmation-text h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.confirmation-text p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

.cta-confirmation.is-submitted .confirmation-text h3 {
  color: #065f46;
}

.cta-confirmation.is-submitted .confirmation-text p {
  color: #047857;
}

.cta-confirmation.is-manual .confirmation-text h3 {
  color: #92400e;
}

.cta-confirmation.is-manual .confirmation-text p {
  color: #b45309;
}

.results-cta-final .cta-urgency {
  margin-top: var(--space-sm);
}

.results-cta-final .cta-contact {
  margin-top: var(--space-sm);
}

.results-cta-final .cta-contact a {
  color: inherit;
  text-decoration-color: currentColor;
}

.cta-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.cta-action-card {
  background: var(--white);
  border: 1px solid var(--mist);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  transition: all var(--duration-base) var(--ease-out);
}

.cta-action-card:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.cta-action-card.primary {
  border-color: #c7d9ff;
  background: linear-gradient(135deg, #f5f9ff 0%, var(--white) 100%);
}

.action-icon {
  width: 48px;
  height: 48px;
  background: var(--snow);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cta-action-card.primary .action-icon {
  background: var(--primary);
}

.action-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--text-secondary);
}

.cta-action-card.primary .action-icon svg {
  stroke: white;
}

.action-content {
  flex: 1;
}

.action-content h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.action-content p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

.cta-action-card .btn {
  align-self: flex-start;
  margin-top: auto;
}

.cta-inline-note {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0;
}

.cta-restart {
  text-align: center;
  padding-top: var(--space-md);
  border-top: 1px solid var(--mist);
}

.cta-restart .btn-ghost-bordered {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--text-secondary);
  background: var(--white);
  border: 1px solid var(--silver);
  box-shadow: none;
}

.cta-restart .btn-ghost-bordered:hover {
  background: var(--cloud);
  border-color: var(--text-tertiary);
  color: var(--text-secondary);
}

@media (max-width: 768px) {
  .cta-actions {
    grid-template-columns: 1fr;
  }

  .cta-confirmation {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
}

/* ============================================
   DESIGN ENHANCEMENTS
   ============================================ */

/* Quick Stat Icons */
.quick-stat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0 auto var(--space-sm);
  background: var(--snow);
  border-radius: var(--radius-full);
  transition: all var(--duration-base) var(--ease-out);
}

.quick-stat-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--text-muted);
  transition: stroke var(--duration-base);
}

.quick-stat:hover .quick-stat-icon {
  background: var(--primary-light);
  transform: scale(1.1);
}

.quick-stat:hover .quick-stat-icon svg {
  stroke: var(--primary);
}

.quick-stat.critical .quick-stat-icon {
  background: var(--danger-light);
}

.quick-stat.critical .quick-stat-icon svg {
  stroke: var(--danger);
}

.quick-stat.highlight .quick-stat-icon {
  background: rgba(255, 255, 255, 0.2);
}

.quick-stat.highlight .quick-stat-icon svg {
  stroke: white;
}

.quick-stat.highlight:hover .quick-stat-icon {
  background: rgba(255, 255, 255, 0.3);
}

/* Enhanced Tab Buttons */
.results-tabs {
  position: relative;
}

.tab-btn {
  position: relative;
  z-index: 1;
}

.tab-btn.active {
  color: var(--primary);
  background: var(--white);
  box-shadow: 0 2px 8px rgba(1, 102, 254, 0.15);
  border-bottom: 3px solid var(--primary);
  margin-bottom: -1px;
}

.tab-btn:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.tab-btn:not(.active):hover {
  background: rgba(255, 255, 255, 0.7);
}

/* Gap Item Icons */
.gap-item {
  position: relative;
}

.gap-item.critical::before {
  content: '';
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  width: 20px;
  height: 20px;
  background: var(--danger);
  opacity: 0.8;
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

/* Action Item Numbers */
.actions-list {
  counter-reset: action-counter;
}

.actions-list li {
  position: relative;
  padding-left: 50px;
}

.actions-list li::before {
  counter-increment: action-counter;
  content: counter(action-counter);
  position: absolute;
  left: 0;
  top: var(--space-md);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: white;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: var(--radius-full);
}

/* Tier Badge Pulse Animation */
.tier-badge {
  animation: tierPulse 2s ease-in-out infinite;
}

@keyframes tierPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(1, 102, 254, 0.4);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(1, 102, 254, 0);
  }
}

.tier-badge.preferred {
  animation-name: tierPulseSuccess;
}

@keyframes tierPulseSuccess {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.4);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(5, 150, 105, 0);
  }
}

.tier-badge.conditional {
  animation-name: tierPulseWarning;
}

@keyframes tierPulseWarning {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(217, 119, 6, 0.4);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(217, 119, 6, 0);
  }
}

.tier-badge.high-friction {
  animation-name: tierPulseDanger;
}

@keyframes tierPulseDanger {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.4);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(220, 38, 38, 0);
  }
}

/* Mobile Responsiveness Enhancements */
@media (max-width: 900px) {
  .panel-hero-image {
    height: 280px;
  }
}

@media (max-width: 640px) {
  .quick-stat-icon {
    width: 36px;
    height: 36px;
  }

  .quick-stat-icon svg {
    width: 18px;
    height: 18px;
  }

  .quick-stat-value {
    font-size: 1.5rem;
  }

  .panel-hero-image {
    height: 220px;
    margin: calc(-1 * var(--space-md)) calc(-1 * var(--space-md)) var(--space-md) calc(-1 * var(--space-md));
  }

  .actions-list li {
    padding-left: 44px;
  }

  .actions-list li::before {
    width: 28px;
    height: 28px;
    font-size: 0.8rem;
  }

  .tier-badge {
    font-size: 0.8rem;
    padding: 6px 16px;
  }
}

/* Print Styles */
@media print {
  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  body {
    background: white;
  }

  .header,
  .footer,
  #particles,
  .results-tabs,
  .cta-buttons,
  .results-cta,
  .tab-btn,
  .hero,
  .trust-strip {
    display: none !important;
  }

  .results-container {
    padding: 0;
  }

  .results-hero {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .quick-stats {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .tab-panel {
    display: block !important;
    break-inside: avoid;
    page-break-before: always;
    border: 1px solid #ddd;
    margin-bottom: 20px;
    padding: 20px;
  }

  .panel-hero-image {
    display: none;
  }

  .tab-panel h3 {
    border-bottom: 2px solid var(--primary);
    padding-bottom: 10px;
  }

  .gap-item,
  .actions-list li {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  a {
    text-decoration: none;
  }

  a[href]::after {
    content: none;
  }
}

/* Benchmark stats - Enhanced */
.benchmark-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}
.bench-stat {
  text-align: center;
  padding: 20px 16px;
  background: linear-gradient(135deg, #FAFBFC 0%, #F3F4F6 100%);
  border: 1px solid #E5E7EB;
  border-radius: 14px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.bench-stat:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.bench-stat.highlight {
  background: linear-gradient(135deg, #E8F1FF 0%, #D1E3FF 100%);
  border: 2px solid #0166FE;
  box-shadow: 0 4px 16px rgba(1, 102, 254, 0.2);
}
.bench-stat-value {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 6px;
}
.bench-stat.highlight .bench-stat-value {
  color: #0166FE;
}
.bench-stat-label {
  font-size: 0.8rem;
  color: #6B7280;
  font-weight: 500;
}

/* Gap items enhanced */
.gap-item { position: relative; }
.gap-item.critical { border-left: 4px solid #DC2626; }
.gap-impact {
  font-size: 0.9rem;
  color: #4B5563;
  margin: 8px 0;
  line-height: 1.5;
}
.gap-meta {
  display: flex;
  gap: 16px;
  font-size: 0.8rem;
  color: #6B7280;
  margin-top: 8px;
}
.gap-article {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #E5E7EB;
}
.gap-article a {
  font-size: 0.85rem;
  color: #0166FE;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
}
.gap-article a:hover { text-decoration: underline; }

/* Action items enhanced */
.action-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.action-critical {
  font-size: 0.7rem;
  font-weight: 700;
  color: #DC2626;
  background: #FEF2F2;
  padding: 4px 8px;
  border-radius: 4px;
}
.action-details {
  display: flex;
  gap: 16px;
  font-size: 0.8rem;
  color: #6B7280;
  margin: 8px 0;
}
.action-service {
  font-size: 0.85rem;
  color: #0166FE;
  font-weight: 500;
}

/* Score context */
.context-alert {
  display: flex;
  gap: 12px;
  padding: 16px;
  border-radius: 10px;
  margin-bottom: 20px;
}
.context-alert.critical {
  background: #FEF2F2;
  border: 1px solid #FECACA;
}
.context-alert.warning {
  background: #FFFBEB;
  border: 1px solid #FDE68A;
}
.alert-icon { font-size: 24px; }
.alert-content { flex: 1; }
.alert-content strong { display: block; margin-bottom: 4px; }
.context-details h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: #111827;
}
.context-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 20px 0;
}
.context-item {
  padding: 16px;
  background: #F3F4F6;
  border-radius: 8px;
}
.context-label {
  display: block;
  font-size: 0.75rem;
  color: #6B7280;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.context-value {
  font-weight: 600;
  color: #111827;
}
.industry-context {
  margin-top: 20px;
  padding: 16px;
  background: #F0F9FF;
  border-radius: 8px;
}
.industry-context h4 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: #0166FE;
}
.industry-context p {
  font-size: 0.9rem;
  color: #4B5563;
}

/* Articles */
.articles-intro {
  color: #4B5563;
  margin-bottom: 16px;
}
.articles-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.article-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: #FAFBFC;
  border: 1px solid #E5E7EB;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.2s;
}
.article-card:hover {
  background: #F3F4F6;
  border-color: #D1D5DB;
}
.article-source { font-size: 24px; }
.article-content { flex: 1; }
.article-content h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 4px;
}
.article-control {
  font-size: 0.8rem;
  color: #6B7280;
}
.article-arrow {
  color: #0166FE;
  font-weight: 600;
}

/* Email notification */
.email-notification {
  position: fixed;
  bottom: 24px;
  right: 24px;
  left: 24px;
  max-width: 650px;
  margin: 0 auto;
  background: #059669;
  color: white;
  padding: 24px 28px;
  border-radius: 16px;
  border: 5px solid #10B981;
  outline: 3px solid #047857;
  box-shadow: 0 12px 48px rgba(0,0,0,0.35), 0 4px 12px rgba(5,150,105,0.4);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 1000;
}
.email-notification.show {
  transform: translateY(0);
  opacity: 1;
}
.email-notification.email-notification-warning {
  background: #D97706;
  border-color: #FBBF24;
  outline-color: #B45309;
  box-shadow: 0 12px 48px rgba(0,0,0,0.35), 0 4px 12px rgba(217,119,6,0.35);
}
.notification-content {
  display: flex;
  align-items: center;
  gap: 18px;
}
.notification-icon {
  font-size: 32px;
  background: rgba(255,255,255,0.25);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 2px solid rgba(255,255,255,0.4);
}
.notification-content strong { display: block; font-size: 1.25rem; font-weight: 700; margin-bottom: 6px; }
.notification-content p { font-size: 1rem; opacity: 1; margin: 0; line-height: 1.5; }

/* No gaps state */
.no-gaps, .no-actions {
  text-align: center;
  padding: 40px;
  background: #ECFDF5;
  border-radius: 12px;
}
.no-gaps-icon {
  font-size: 48px;
  margin-bottom: 16px;
}
.no-gaps h4, .no-actions h4 {
  font-size: 1.1rem;
  color: #059669;
  margin-bottom: 8px;
}
.no-gaps p, .no-actions p {
  color: #4B5563;
}

/* Suppress outline on programmatically-focused question headings (a11y target, not navigational) */
.question-text:focus { outline: none; }
