/* ===================================
   LANSING STREET ADVISORS - QUIZ FUNNEL
   Design Mode: Glossy
   =================================== */

:root {
  /* --- Colors --- */
  --color-primary: #1B365D;
  --color-primary-dark: #122440;
  --color-primary-light: #25516D;
  --color-secondary: #B29D62;
  --color-secondary-light: #C5A55A;
  --color-secondary-dark: #8E7D4E;

  --color-bg: #FAFAF8;
  --color-bg-card: #FFFFFF;
  --color-bg-alt: #F5F3EF;
  --color-bg-dark: #1B365D;
  --color-bg-overlay: rgba(27, 54, 93, 0.95);

  --color-text-primary: #1B365D;
  --color-text-body: #3D3D3D;
  --color-text-secondary: #5A6A7A;
  --color-text-muted: #8B95A2;
  --color-text-on-dark: #FFFFFF;
  --color-text-on-gold: #1B365D;

  --color-border: #E2DFD8;
  --color-border-light: #EDEAE4;
  --color-border-focus: #1B365D;

  --color-success: #22C55E;
  --color-warning: #F59E0B;
  --color-error: #EF4444;

  --color-temp-hot: #22C55E;
  --color-temp-warm: #F59E0B;
  --color-temp-cold: #3B82F6;

  /* --- RGB Variants --- */
  --color-primary-rgb: 27, 54, 93;
  --color-primary-dark-rgb: 18, 36, 64;
  --color-primary-light-rgb: 37, 81, 109;
  --color-secondary-rgb: 178, 157, 98;
  --color-secondary-light-rgb: 197, 165, 90;
  --color-bg-rgb: 250, 250, 248;
  --color-bg-card-rgb: 255, 255, 255;
  --color-text-primary-rgb: 27, 54, 93;
  --color-text-body-rgb: 61, 61, 61;
  --color-success-rgb: 34, 197, 94;
  --color-warning-rgb: 245, 158, 11;
  --color-error-rgb: 239, 68, 68;
  --color-temp-hot-rgb: 34, 197, 94;
  --color-temp-warm-rgb: 245, 158, 11;
  --color-temp-cold-rgb: 59, 130, 246;
  --color-border-rgb: 226, 223, 216;

  /* --- Typography --- */
  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --text-h1: 700 3rem/1.15 var(--font-heading);
  --text-h2: 700 2.25rem/1.2 var(--font-heading);
  --text-h3: 600 1.5rem/1.3 var(--font-heading);
  --text-h4: 600 1.25rem/1.35 var(--font-heading);
  --text-body: 400 1rem/1.6 var(--font-body);
  --text-body-lg: 400 1.125rem/1.6 var(--font-body);
  --text-small: 400 0.875rem/1.5 var(--font-body);
  --text-caption: 500 0.75rem/1.4 var(--font-body);

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

  /* --- Layout --- */
  --max-width-quiz: 640px;
  --max-width-content: 720px;
  --max-width-landing: 1200px;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* --- Shadows (Glossy Mode - Deep Warm) --- */
  --shadow-sm:
    0 1px 1px rgba(20, 15, 10, 0.05),
    0 2px 2px rgba(20, 15, 10, 0.04),
    0 4px 4px rgba(20, 15, 10, 0.03);

  --shadow-md:
    0 1px 1px rgba(20, 15, 10, 0.06),
    0 2px 2px rgba(20, 15, 10, 0.06),
    0 4px 4px rgba(20, 15, 10, 0.05),
    0 8px 8px rgba(20, 15, 10, 0.04),
    0 16px 16px rgba(20, 15, 10, 0.03);

  --shadow-lg:
    0 1px 1px rgba(20, 15, 10, 0.07),
    0 2px 2px rgba(20, 15, 10, 0.06),
    0 4px 4px rgba(20, 15, 10, 0.06),
    0 8px 8px rgba(20, 15, 10, 0.05),
    0 16px 16px rgba(20, 15, 10, 0.04),
    0 24px 24px rgba(20, 15, 10, 0.03);

  --shadow-xl:
    0 2px 2px rgba(20, 15, 10, 0.07),
    0 4px 4px rgba(20, 15, 10, 0.06),
    0 8px 8px rgba(20, 15, 10, 0.06),
    0 16px 16px rgba(20, 15, 10, 0.05),
    0 24px 24px rgba(20, 15, 10, 0.04),
    0 32px 32px rgba(20, 15, 10, 0.03),
    0 48px 48px rgba(20, 15, 10, 0.02);

  --shadow-xxl:
    0 2px 4px rgba(20, 15, 10, 0.08),
    0 4px 8px rgba(20, 15, 10, 0.07),
    0 8px 16px rgba(20, 15, 10, 0.06),
    0 16px 32px rgba(20, 15, 10, 0.05),
    0 24px 48px rgba(20, 15, 10, 0.04),
    0 32px 64px rgba(20, 15, 10, 0.03),
    0 48px 80px rgba(20, 15, 10, 0.02);

  --shadow-card-hover:
    0 1px 1px rgba(20, 15, 10, 0.07),
    0 2px 2px rgba(20, 15, 10, 0.06),
    0 4px 4px rgba(20, 15, 10, 0.06),
    0 8px 8px rgba(20, 15, 10, 0.05),
    0 16px 16px rgba(20, 15, 10, 0.04),
    0 24px 24px rgba(20, 15, 10, 0.03),
    0 32px 32px rgba(20, 15, 10, 0.02);

  /* --- Glow Variables --- */
  --shadow-glow-selected:
    0 0 0 4px rgba(178, 157, 98, 0.25),
    0 0 20px rgba(178, 157, 98, 0.15);

  --shadow-glow-cta:
    0 4px 15px rgba(178, 157, 98, 0.35),
    0 8px 30px rgba(178, 157, 98, 0.2);

  --shadow-glow-focus:
    0 0 0 3px rgba(27, 54, 93, 0.15),
    0 0 15px rgba(27, 54, 93, 0.1);

  --shadow-glow-result:
    0 0 30px rgba(178, 157, 98, 0.3),
    0 0 60px rgba(178, 157, 98, 0.15);

  /* --- Shimmer --- */
  --shimmer-gradient: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.35) 50%, transparent 100%);
  --shimmer-duration: 0.5s;

  /* --- Easing (NEVER use 'ease' keyword) --- */
  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-dramatic: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-decelerate: cubic-bezier(0, 0, 0.2, 1);
  --ease-accelerate: cubic-bezier(0.4, 0, 1, 1);
}

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

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text-body);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-text-primary);
}

h1 { font: var(--text-h1); letter-spacing: -0.02em; }
h2 { font: var(--text-h2); letter-spacing: -0.01em; }
h3 { font: var(--text-h3); }
h4 { font: var(--text-h4); }

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

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

/* ===================================
   KEYFRAME ANIMATIONS
   =================================== */

@keyframes glossyPageEnter {
  0% { opacity: 0; transform: scale(0.9); }
  60% { opacity: 1; transform: scale(1.02); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes glossyQuestionEnter {
  0% { opacity: 0; transform: scale(1.05); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes glossyQuestionExit {
  0% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(0.95); }
}

@keyframes selectionGlow {
  0% { box-shadow: 0 0 0 0 rgba(178, 157, 98, 0.4); }
  50% { box-shadow: 0 0 0 8px rgba(178, 157, 98, 0.15); }
  100% { box-shadow: var(--shadow-glow-selected); }
}

@keyframes progressShimmer {
  0% { left: -100px; }
  100% { left: calc(100% + 100px); }
}

@keyframes glossyReveal {
  0% { opacity: 0; transform: scale(0.9); }
  60% { transform: scale(1.02); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

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

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes shineFlash {
  0% { left: -100%; }
  100% { left: 100%; }
}

@keyframes resultReveal {
  0% { opacity: 0; transform: scale(0.95); }
  60% { transform: scale(1.02); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes shineBurst {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes rotateShine {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes ripple {
  0% { transform: scale(0); opacity: 0.6; }
  100% { transform: scale(3); opacity: 0; }
}

@keyframes staggeredFadeIn {
  0% { opacity: 0; transform: translateY(16px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes scoreRingFill {
  0% { stroke-dashoffset: 283; }
  100% { stroke-dashoffset: var(--target-offset, 0); }
}

@keyframes cardFlip {
  0% { transform: rotateY(0deg); }
  100% { transform: rotateY(180deg); }
}

@keyframes benchmarkFill {
  0% { width: 0%; }
  100% { width: var(--target-width, 50%); }
}

/* ===================================
   STAGGERED ENTRANCE
   =================================== */
.stagger-enter > *:nth-child(1) { animation-delay: 0ms; }
.stagger-enter > *:nth-child(2) { animation-delay: 80ms; }
.stagger-enter > *:nth-child(3) { animation-delay: 160ms; }
.stagger-enter > *:nth-child(4) { animation-delay: 240ms; }
.stagger-enter > *:nth-child(5) { animation-delay: 320ms; }
.stagger-enter > *:nth-child(6) { animation-delay: 400ms; }
.stagger-enter > *:nth-child(7) { animation-delay: 480ms; }

.stagger-enter > * {
  opacity: 0;
  animation: slideUp 0.4s var(--ease-smooth) forwards;
}

/* ===================================
   BACKGROUNDS (Glossy Mode)
   =================================== */
.quiz-page-bg {
  background: linear-gradient(180deg, #FAFAF8 0%, #F5F3EF 30%, #FAFAF8 100%);
  min-height: 100vh;
}

.landing-hero-bg {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.03) 0%, transparent 40%, rgba(0,0,0,0.15) 100%),
    linear-gradient(135deg, #122440 0%, #1B365D 40%, #25516D 100%);
  color: var(--color-text-on-dark);
}

.result-page-bg {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(178,157,98,0.08) 0%, transparent 60%),
    linear-gradient(180deg, #FAFAF8 0%, #F5F3EF 100%);
}

/* ===================================
   QUIZ CONTAINER
   =================================== */
.quiz-container {
  max-width: var(--max-width-quiz);
  margin: 0 auto;
  padding: var(--space-lg);
  position: relative;
}

/* ===================================
   QUESTION CARD (Glossy Mode)
   =================================== */
.question-card {
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl) var(--space-xl);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
  animation: glossyQuestionEnter 0.4s var(--ease-standard) forwards;
}

.question-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.6) 30%, rgba(178,157,98,0.4) 50%, rgba(255,255,255,0.6) 70%, transparent 100%);
  z-index: 1;
}

.question-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,0.06) 0%, transparent 100%);
  pointer-events: none;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.question-card h2 {
  font: var(--text-h3);
  font-family: var(--font-heading);
  color: var(--color-text-primary);
  margin-bottom: var(--space-sm);
  position: relative;
  z-index: 2;
}

.question-card .helper-text {
  font: var(--text-body);
  font-family: var(--font-body);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-xl);
  position: relative;
  z-index: 2;
}

/* ===================================
   ANSWER OPTION (Multiple Choice)
   =================================== */
.answer-options {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  position: relative;
  z-index: 2;
}

.answer-option {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg-card);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition:
    border-color 200ms var(--ease-standard),
    box-shadow 200ms var(--ease-standard),
    transform 200ms var(--ease-standard),
    background-color 200ms var(--ease-standard);
  box-shadow: var(--shadow-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text-body);
  line-height: 1.5;
}

.answer-option:hover {
  border-color: rgba(178, 157, 98, 0.4);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  background-color: rgba(178, 157, 98, 0.03);
}

.answer-option.selected {
  border-color: var(--color-secondary);
  background: linear-gradient(135deg, rgba(178,157,98,0.06) 0%, rgba(178,157,98,0.02) 100%);
  box-shadow: var(--shadow-glow-selected);
  transform: scale(1.01);
  animation: selectionGlow 0.4s var(--ease-bounce) forwards;
}

.answer-option.selected::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.3) 50%, transparent 100%);
  animation: shineFlash 0.6s var(--ease-standard) forwards;
  pointer-events: none;
}

.option-indicator {
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 2px solid var(--color-border);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 200ms var(--ease-standard);
}

.answer-option.selected .option-indicator {
  border-color: var(--color-secondary);
  background: var(--color-secondary);
}

.option-indicator svg {
  width: 14px; height: 14px;
  stroke: white;
  stroke-width: 3;
  fill: none;
  opacity: 0;
  transition: opacity 200ms var(--ease-standard);
}

.answer-option.selected .option-indicator svg {
  opacity: 1;
}

/* ===================================
   CARD SELECTION
   =================================== */
.card-options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  position: relative;
  z-index: 2;
}

.card-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-lg);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-bg-card);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition:
    border-color 200ms var(--ease-standard),
    box-shadow 200ms var(--ease-standard),
    transform 200ms var(--ease-standard);
  box-shadow: var(--shadow-sm);
}

.card-option:hover {
  border-color: rgba(178, 157, 98, 0.4);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.card-option.selected {
  border-color: var(--color-secondary);
  box-shadow: var(--shadow-glow-selected);
  transform: translateY(-2px);
}

.card-option .card-icon {
  font-size: 2rem;
  margin-bottom: var(--space-sm);
  color: var(--color-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-option .card-icon svg {
  width: 32px;
  height: 32px;
}
.card-option.selected .card-icon {
  color: var(--color-primary);
}

.card-option .card-label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--color-text-primary);
  margin-bottom: var(--space-xs);
}

.card-option .card-description {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: var(--color-text-secondary);
  line-height: 1.4;
}

/* ===================================
   SCALE SLIDER
   =================================== */
.scale-slider {
  width: 100%;
  padding: var(--space-lg) 0;
  position: relative;
  z-index: 2;
}

.scale-value-display {
  text-align: center;
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-md);
}

.scale-slider input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--color-border);
  outline: none;
}

.scale-slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--color-secondary);
  border: 3px solid var(--color-bg-card);
  box-shadow: 0 0 0 2px var(--color-secondary), var(--shadow-md);
  cursor: pointer;
  transition: transform 150ms var(--ease-bounce);
}

.scale-slider input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 0 0 2px var(--color-secondary), var(--shadow-glow-selected);
}

.scale-slider input[type="range"]::-moz-range-thumb {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--color-secondary);
  border: 3px solid var(--color-bg-card);
  box-shadow: 0 0 0 2px var(--color-secondary), var(--shadow-md);
  cursor: pointer;
}

.scale-labels {
  display: flex;
  justify-content: space-between;
  margin-top: var(--space-sm);
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.slider-confirm-btn {
  display: block;
  margin: var(--space-lg) auto 0;
}

/* ===================================
   YES/NO TOGGLE
   =================================== */
.toggle-group {
  display: flex;
  gap: var(--space-md);
  position: relative;
  z-index: 2;
}

.toggle-option {
  flex: 1;
  padding: var(--space-lg);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg-card);
  text-align: center;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-text-body);
  transition:
    border-color 200ms var(--ease-standard),
    background-color 200ms var(--ease-standard),
    box-shadow 200ms var(--ease-standard),
    transform 200ms var(--ease-standard);
  box-shadow: var(--shadow-sm);
}

.toggle-option:hover {
  border-color: rgba(178, 157, 98, 0.4);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.toggle-option.selected {
  border-color: var(--color-secondary);
  background: linear-gradient(135deg, rgba(178,157,98,0.08) 0%, rgba(178,157,98,0.03) 100%);
  box-shadow: var(--shadow-glow-selected);
  color: var(--color-primary);
}

/* ===================================
   TAG CLOUD
   =================================== */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  position: relative;
  z-index: 2;
}

.tag-pill {
  display: inline-flex;
  align-items: center;
  padding: var(--space-sm) var(--space-md);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-full);
  background: var(--color-bg-card);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-body);
  transition:
    border-color 200ms var(--ease-standard),
    background-color 200ms var(--ease-standard),
    box-shadow 200ms var(--ease-standard),
    transform 150ms var(--ease-standard);
  box-shadow: var(--shadow-sm);
  user-select: none;
}

.tag-pill:hover {
  border-color: rgba(178, 157, 98, 0.4);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.tag-pill.selected {
  border-color: var(--color-secondary);
  background: linear-gradient(135deg, rgba(178,157,98,0.1) 0%, rgba(178,157,98,0.04) 100%);
  box-shadow: var(--shadow-glow-selected);
  color: var(--color-primary);
  font-weight: 600;
}

.tag-confirm-btn {
  display: block;
  margin: var(--space-lg) auto 0;
}

/* ===================================
   EMOJI SCALE
   =================================== */
.emoji-scale {
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
  position: relative;
  z-index: 2;
}

.emoji-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  cursor: pointer;
  padding: var(--space-md);
  border-radius: var(--radius-lg);
  border: 2px solid transparent;
  transition:
    border-color 200ms var(--ease-standard),
    transform 200ms var(--ease-standard),
    box-shadow 200ms var(--ease-standard);
}

.emoji-option:hover {
  transform: scale(1.1);
}

.emoji-option .emoji-face {
  font-size: 2.5rem;
  line-height: 1;
  transition: transform 200ms var(--ease-bounce);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.emoji-option .emoji-face svg {
  width: 36px;
  height: 36px;
}

.emoji-option:hover .emoji-face {
  transform: scale(1.15);
  color: var(--color-secondary);
}

.emoji-option .emoji-label {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  color: var(--color-text-muted);
  text-align: center;
  max-width: 80px;
  line-height: 1.3;
}

.emoji-option.selected {
  border-color: var(--color-secondary);
  box-shadow: var(--shadow-glow-selected);
  background: rgba(178, 157, 98, 0.05);
}

.emoji-option.selected .emoji-face {
  transform: scale(1.2);
  color: var(--color-secondary);
}

/* ===================================
   STAR RATING
   =================================== */
.star-rating {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  position: relative;
  z-index: 2;
}

.star-rating .star {
  cursor: pointer;
  transition: transform 150ms var(--ease-bounce);
}

.star-rating .star:hover {
  transform: scale(1.2);
}

.star-rating .star svg {
  width: 40px; height: 40px;
  fill: var(--color-border);
  stroke: var(--color-border);
  stroke-width: 1;
  transition:
    fill 200ms var(--ease-standard),
    stroke 200ms var(--ease-standard);
}

.star-rating .star.highlighted svg {
  fill: rgba(178, 157, 98, 0.3);
  stroke: var(--color-secondary);
}

.star-rating .star.filled svg {
  fill: var(--color-secondary);
  stroke: var(--color-secondary-dark);
}

.star-label {
  text-align: center;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  margin-top: var(--space-md);
  min-height: 1.5em;
}

.star-confirm-btn {
  display: block;
  margin: var(--space-lg) auto 0;
}

/* ===================================
   PROGRESS BAR (Glossy Shine Bar)
   =================================== */
.progress-bar-container {
  width: 100%;
  margin-bottom: var(--space-xl);
}

.progress-bar-track {
  width: 100%;
  height: 6px;
  background: var(--color-border-light);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  border-radius: var(--radius-full);
  transition: width 400ms var(--ease-smooth);
  position: relative;
  overflow: hidden;
}

.progress-bar-fill::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,0.4) 0%, transparent 100%);
  border-radius: inherit;
}

.progress-bar-fill::after {
  content: '';
  position: absolute;
  top: 0; left: -100px;
  width: 100px; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
  animation: progressShimmer 2s infinite;
}

.progress-text {
  display: flex;
  justify-content: space-between;
  margin-top: var(--space-sm);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

.progress-text .current-step {
  font-weight: 600;
  color: var(--color-text-primary);
}

/* ===================================
   BUTTONS
   =================================== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  background: var(--color-secondary);
  color: var(--color-text-on-gold);
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.5;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition:
    transform 200ms var(--ease-standard),
    box-shadow 200ms var(--ease-standard),
    background-color 200ms var(--ease-standard);
  text-decoration: none;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: var(--shimmer-gradient);
  transition: left var(--shimmer-duration) var(--ease-standard);
  pointer-events: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-cta);
  background: var(--color-secondary-light);
  text-decoration: none;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
  transition-duration: 100ms;
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: var(--shadow-sm);
}

.btn-primary:disabled::before { display: none; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.5;
  cursor: pointer;
  transition:
    background-color 200ms var(--ease-standard),
    color 200ms var(--ease-standard),
    transform 200ms var(--ease-standard),
    box-shadow 200ms var(--ease-standard);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
}

.btn-secondary:hover {
  background: var(--color-primary);
  color: var(--color-text-on-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
}

.btn-secondary:active {
  transform: translateY(0);
  transition-duration: 100ms;
}

/* ===================================
   FORM INPUT
   =================================== */
.form-input {
  width: 100%;
  padding: var(--space-md) var(--space-lg);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg-card);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text-body);
  outline: none;
  transition:
    border-color 200ms var(--ease-standard),
    box-shadow 200ms var(--ease-standard);
  box-shadow: var(--shadow-sm);
}

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

.form-input:focus {
  border-color: var(--color-border-focus);
  box-shadow: var(--shadow-glow-focus);
}

.form-input:invalid:not(:placeholder-shown) {
  border-color: var(--color-error);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.form-label {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--color-text-primary);
  margin-bottom: var(--space-sm);
}

/* ===================================
   CATEGORY BADGE
   =================================== */
.category-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-md);
  background: rgba(27, 54, 93, 0.08);
  color: var(--color-primary);
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.category-badge--gold {
  background: rgba(178, 157, 98, 0.12);
  color: var(--color-secondary-dark);
}

/* ===================================
   TEXT HIGHLIGHT
   =================================== */
.text-highlight {
  background: linear-gradient(120deg, rgba(178,157,98,0.15) 0%, rgba(178,157,98,0.25) 100%);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  color: var(--color-text-primary);
}

/* ===================================
   EMAIL CAPTURE
   =================================== */
.email-capture {
  background: var(--color-bg-card);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-lg);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.email-capture::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(178,157,98,0.5), transparent);
}

.email-capture h3 {
  font: var(--text-h3);
  font-family: var(--font-heading);
  color: var(--color-text-primary);
  margin-bottom: var(--space-sm);
}

.email-capture p {
  font-family: var(--font-body);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-lg);
}

.email-capture .form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  max-width: 400px;
  margin: 0 auto;
}

.email-capture .privacy-note {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-top: var(--space-md);
}

/* ===================================
   LOADING SCREEN
   =================================== */
.loading-container {
  text-align: center;
  padding: var(--space-2xl) 0;
}

.loading-spinner {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0%, var(--color-secondary) 25%, transparent 50%);
  animation: rotateShine 1s linear infinite;
  position: relative;
  margin: 0 auto var(--space-xl);
}

.loading-spinner::before {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--color-bg-card);
}

.loading-steps {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  max-width: 400px;
  margin: 0 auto;
  text-align: left;
}

.loading-step {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  opacity: 0.3;
  transition: opacity 400ms var(--ease-standard);
}

.loading-step.active {
  opacity: 1;
}

.loading-step.completed {
  opacity: 0.6;
}

.loading-step-icon {
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 2px solid var(--color-border);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 300ms var(--ease-standard);
}

.loading-step.active .loading-step-icon {
  border-color: var(--color-secondary);
  animation: spin 1.5s linear infinite;
}

.loading-step.completed .loading-step-icon {
  border-color: var(--color-success);
  background: var(--color-success);
}

.loading-step-text {
  font-family: var(--font-body);
}

.loading-step-text strong {
  display: block;
  font-size: 0.9375rem;
  color: var(--color-text-primary);
}

.loading-step-text span {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

/* ===================================
   RESULT CARDS
   =================================== */
.result-card {
  background: var(--color-bg-card);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-xl);
  position: relative;
  overflow: hidden;
  animation: glossyReveal 0.7s var(--ease-bounce) forwards;
  opacity: 0;
}

.result-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  z-index: 2;
}

.result-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 40%;
  background: linear-gradient(180deg, rgba(255,255,255,0.05) 0%, transparent 100%);
  pointer-events: none;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.result-score {
  font-family: var(--font-heading);
  font-size: 4rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: var(--space-sm);
}

.result-label {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: var(--space-md);
}

.result-description {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text-body);
}

/* Temperature variants */
.result-card-hot { border-top: 4px solid var(--color-temp-hot); }
.result-card-hot::before { background: linear-gradient(90deg, transparent, rgba(34,197,94,0.5), rgba(178,157,98,0.3), transparent); }
.result-card-hot .result-score { color: var(--color-temp-hot); }

.result-card-warm { border-top: 4px solid var(--color-temp-warm); }
.result-card-warm::before { background: linear-gradient(90deg, transparent, rgba(245,158,11,0.5), rgba(178,157,98,0.3), transparent); }
.result-card-warm .result-score { color: var(--color-temp-warm); }

.result-card-cold { border-top: 4px solid var(--color-temp-cold); }
.result-card-cold::before { background: linear-gradient(90deg, transparent, rgba(59,130,246,0.5), rgba(178,157,98,0.3), transparent); }
.result-card-cold .result-score { color: var(--color-temp-cold); }

/* ===================================
   SECTION DIVIDER (Glossy)
   =================================== */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(178,157,98,0.4) 50%, transparent 100%);
  margin: var(--space-2xl) 0;
}

/* ===================================
   COMPANY STORY
   =================================== */
.company-story {
  background: var(--color-bg-alt);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  position: relative;
  overflow: hidden;
}

.company-story::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(178,157,98,0.3), transparent);
}

.company-story h3 {
  color: var(--color-text-primary);
  margin-bottom: var(--space-md);
}

.company-story p {
  color: var(--color-text-secondary);
  line-height: 1.7;
}

/* ===================================
   SOFT CTA
   =================================== */
.soft-cta {
  text-align: center;
  padding: var(--space-2xl) 0;
}

.soft-cta a {
  color: var(--color-text-secondary);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  transition: color 200ms var(--ease-standard);
}

.soft-cta a:hover {
  color: var(--color-primary);
}

/* ===================================
   SCREEN MANAGEMENT
   =================================== */
.screen {
  display: none;
}

.screen.active {
  display: block;
  animation: fadeIn 0.3s var(--ease-standard);
}

.hidden {
  display: none !important;
}

/* ===================================
   SCORE RING (Results Page)
   =================================== */
.score-ring-container {
  display: flex;
  justify-content: center;
  margin-bottom: var(--space-xl);
}

.score-ring {
  position: relative;
  width: 200px; height: 200px;
}

.score-ring svg {
  width: 100%; height: 100%;
  transform: rotate(-90deg);
}

.score-ring .ring-bg {
  fill: none;
  stroke: var(--color-border-light);
  stroke-width: 8;
}

.score-ring .ring-fill {
  fill: none;
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 283;
  stroke-dashoffset: 283;
  transition: stroke-dashoffset 1.5s var(--ease-smooth);
}

.score-ring .ring-value {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.score-ring .ring-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
}

.score-ring .ring-label {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

/* ===================================
   BENCHMARK BAR
   =================================== */
.benchmark-section {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.benchmark-text {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-md);
}

.benchmark-bar {
  width: 100%;
  height: 8px;
  background: var(--color-border-light);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.benchmark-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 1.2s var(--ease-smooth);
  width: 0%;
}

/* ===================================
   PROFILE CARD FLIP
   =================================== */
.profile-card-container {
  perspective: 1000px;
  margin-bottom: var(--space-xl);
}

.profile-card {
  width: 100%;
  min-height: 200px;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.8s var(--ease-smooth);
  cursor: pointer;
}

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

.profile-card-front,
.profile-card-back {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  min-height: 200px;
  backface-visibility: hidden;
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.profile-card-front {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  color: var(--color-text-on-dark);
  box-shadow: var(--shadow-xl);
}

.profile-card-back {
  background: var(--color-bg-card);
  box-shadow: var(--shadow-xl);
  transform: rotateY(180deg);
}

/* ===================================
   RADAR CHART
   =================================== */
.radar-chart-container {
  display: flex;
  justify-content: center;
  margin: var(--space-xl) 0;
}

.radar-chart-container svg {
  max-width: 360px;
  width: 100%;
}

/* ===================================
   TIPS GRID
   =================================== */
.tips-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin: var(--space-xl) 0;
}

.tip-card {
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.tip-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(178,157,98,0.3), transparent);
}

.tip-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(178, 157, 98, 0.1);
  color: var(--color-secondary-dark);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.875rem;
  margin-bottom: var(--space-md);
}

.tip-card p {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--color-text-body);
}

/* ===================================
   HIDDEN INSIGHT
   =================================== */
.hidden-insight {
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: var(--space-xl) 0;
}

.hidden-insight-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--space-lg);
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-text-primary);
}

.hidden-insight-toggle .toggle-arrow {
  transition: transform 300ms var(--ease-standard);
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.hidden-insight-toggle.open .toggle-arrow {
  transform: rotate(180deg);
}

.hidden-insight-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 400ms var(--ease-standard);
}

.hidden-insight-content.open {
  max-height: 500px;
}

.hidden-insight-content p {
  padding: 0 var(--space-lg) var(--space-lg);
  font-family: var(--font-body);
  color: var(--color-text-secondary);
  line-height: 1.7;
}

/* ===================================
   VALUE CTAs
   =================================== */
.value-ctas {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  align-items: center;
  margin: var(--space-xl) 0;
}

/* ===================================
   SOCIAL PROOF
   =================================== */
.social-proof {
  background: var(--color-bg-alt);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  text-align: center;
  margin: var(--space-xl) 0;
}

.proof-points {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-lg);
  text-align: left;
}

.proof-point {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--color-text-body);
}

.proof-point .proof-icon {
  color: var(--color-secondary);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ===================================
   DISCLAIMER
   =================================== */
.disclaimer {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--color-text-muted);
  text-align: center;
  padding: var(--space-xl) 0;
  border-top: 1px solid var(--color-border-light);
  margin-top: var(--space-2xl);
}

/* ===================================
   ADMIN DASHBOARD
   =================================== */
.admin-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-xl);
}

.login-card {
  max-width: 400px;
  margin: 100px auto;
  padding: var(--space-xl);
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.login-card h2 {
  margin-bottom: var(--space-lg);
}

.login-card .form-input {
  margin-bottom: var(--space-md);
}

.login-card .btn-primary {
  width: 100%;
}

.login-error {
  color: var(--color-error);
  font-size: 0.875rem;
  margin-top: var(--space-sm);
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-xl);
}

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

.dashboard-controls select {
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  background: var(--color-bg-card);
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.kpi-card {
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-md);
  text-align: center;
}

.kpi-label {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  display: block;
  margin-bottom: var(--space-sm);
}

.kpi-value {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-text-primary);
}

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

.chart-container {
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-md);
}

.chart-container h3 {
  font-size: 1rem;
  margin-bottom: var(--space-md);
}

.answer-charts {
  margin-top: var(--space-xl);
}

.answer-chart-card {
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-md);
  margin-bottom: var(--space-lg);
}

/* ===================================
   RESPONSIVE (max-width: 640px)
   =================================== */
@media (max-width: 640px) {
  h1 { font-size: 2.25rem; line-height: 1.2; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.25rem; }
  h4 { font-size: 1.125rem; }

  .quiz-container { padding: var(--space-md); }

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

  .answer-option { padding: var(--space-md); }

  .card-options-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .toggle-group { flex-direction: column; }

  .emoji-scale {
    gap: var(--space-sm);
  }

  .emoji-option .emoji-face { font-size: 1.75rem; }
  .emoji-option .emoji-face svg { width: 28px; height: 28px; }
  .emoji-option .emoji-label { font-size: 0.625rem; max-width: 60px; }

  .star-rating .star svg { width: 32px; height: 32px; }

  .result-card { padding: var(--space-xl) var(--space-md); }
  .result-score { font-size: 3rem; }
  .result-label { font-size: 1.25rem; }

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

  .proof-points { grid-template-columns: 1fr; }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    justify-content: center;
  }

  .email-capture { padding: var(--space-xl) var(--space-md); }

  .progress-text { font-size: 0.75rem; }

  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .charts-row { grid-template-columns: 1fr; }

  .score-ring { width: 160px; height: 160px; }
  .score-ring .ring-number { font-size: 2.25rem; }
}

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

  .progress-bar-fill::after { animation: none; }

  .loading-spinner {
    animation: none;
    border: 3px solid var(--color-border);
    border-top-color: var(--color-secondary);
  }
}
