/* =====================================================
   AI DADDY - AI READINESS ASSESSMENT
   Brand Styling System - LIGHT MODE
   Matching aidaddy.com aesthetic
   ===================================================== */

/* CSS Variables - AI Daddy Brand (Light Mode) */
:root {
  /* Primary colors from AI Daddy website */
  --navy-dark: #0F1628;
  --navy-light: #1A2642;
  --pink-primary: #E5007E;
  /* Vivid Magenta matching logo */
  --pink-hover: #C2006B;
  /* Darker magenta for hover */
  --blue-accent: #3B82F6;

  /* Background colors */
  --bg-white: #FFFFFF;
  --bg-light: #F8FAFC;
  --bg-card: #FFFFFF;
  --bg-input: #F1F5F9;

  /* Text colors */
  --text-dark: #0F172A;
  --text-secondary: #64748B;
  --text-muted: #94A3B8;
  --text-on-dark: #FFFFFF;

  /* Status colors */
  --status-green: #10B981;
  --status-yellow: #F59E0B;
  --status-red: #EF4444;

  /* Sizing */
  --max-width: 640px;
  --border-radius: 12px;
  --border-radius-sm: 8px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-medium: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--navy-dark);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-white);
  color: var(--text-dark);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Header Section - Dark Navy */
.header-section {
  background: linear-gradient(180deg, var(--navy-dark) 0%, var(--navy-light) 100%);
  padding: 60px 24px;
  text-align: center;
  color: var(--text-on-dark);
}

/* Main Container - limits content width for question screens */
.assessment-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

/* Logo */
.logo {
  text-align: center;
  margin-bottom: 32px;
}

.logo-image {
  max-width: 140px;
  height: auto;
}

/* Progress Bar */
.progress-container {
  background: var(--bg-white);
  padding: 16px 24px;
  border-bottom: 1px solid #E2E8F0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.progress-bar {
  height: 6px;
  background: var(--bg-input);
  border-radius: 3px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--pink-primary);
  border-radius: 3px;
  transition: width var(--transition-medium);
}

.progress-text {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 14px;
  /* Increased from 13px */
  font-weight: 500;
  color: var(--text-secondary);
}

/* Screen Container */
.screen {
  display: none;
  animation: fadeInUp 0.4s ease;
}

.screen.active {
  display: block;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Welcome Screen - Full Width Navy Background */
/* Welcome Screen - Split Layout */
#screen-welcome {
  display: none;
  min-height: 100vh;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  background: var(--bg-white);
  flex-direction: column;
}

#screen-welcome.active {
  display: flex !important;
  /* Only flex when active, override .screen.active block */
}

/* Header Bar */
.welcome-header {
  background: linear-gradient(180deg, var(--navy-dark) 0%, var(--navy-light) 100%);
  padding: 24px 0;
  text-align: center;
  width: 100%;
}

.welcome-header .logo {
  margin-bottom: 0;
}

/* Content Body */
.welcome-content {
  background: var(--bg-white);
  padding: 60px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.content-wrapper {
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
}

/* Typography Updates */
.main-headline {
  font-size: 42px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 8px;
  line-height: 1.2;
}

.welcome-content .highlight {
  color: var(--pink-primary);
  font-weight: 800;
}

.welcome-content .subtitle {
  color: var(--text-secondary);
  font-size: 18px;
  margin-bottom: 24px;
}

/* Image Placeholder */
.result-image-placeholder {
  width: 100%;
  max-width: 600px;
  height: auto;
  margin-bottom: 8px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  clip-path: inset(15% 0 6% 0);
}

/* Input Overrides for White Background */
.welcome-content .input-label {
  color: var(--text-secondary);
}

.welcome-content .text-input {
  background: var(--bg-input);
  border: 2px solid #E2E8F0;
  color: var(--text-dark);
}

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

.welcome-content .text-input:focus {
  border-color: var(--pink-primary);
  background: var(--bg-white);
}

/* Benefits Overrides */
.welcome-content .benefit-item {
  color: var(--text-dark);
  font-weight: 500;
}

/* Typography */
h2 {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 16px;
  color: var(--text-dark);
}

h3 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-dark);
}

.subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

/* Question Screens - White Background */
#questions-container .screen {
  background: var(--bg-white);
  padding: 40px 24px;
  min-height: 100vh;
}

.question-number {
  display: inline-block;
  background: var(--pink-primary);
  color: white;
  font-size: 13px;
  /* Increased from 11px */
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.question-text {
  font-size: 26px;
  font-weight: 400;
  /* Regular weight base */
  margin-bottom: 32px;
  color: var(--text-dark);
  line-height: 1.4;
}

.question-text strong {
  color: inherit;
  /* Same color as text */
  font-weight: 700;
  /* Bold emphasis */
}

/* Input Styles */
.input-group {
  margin-bottom: 24px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.input-row {
  display: flex;
  gap: 16px;
}

.input-row .text-input {
  width: 50%;
}

.input-label {
  display: block;
  font-size: 16px;
  /* Increased */
  font-weight: 400;
  color: var(--text-secondary);
  margin-bottom: 8px;
  text-align: left;
}

.input-label strong {
  font-weight: 700;
  color: var(--text-dark);
}

.text-input {
  width: 100%;
  padding: 16px 20px;
  font-size: 16px;
  font-family: inherit;
  background: var(--bg-input);
  border: 2px solid transparent;
  border-radius: var(--border-radius);
  color: var(--text-dark);
  transition: all var(--transition-fast);
}

.text-input:focus {
  outline: none;
  border-color: var(--pink-primary);
  background: var(--bg-white);
  box-shadow: 0 0 0 3px rgba(255, 92, 157, 0.1);
}

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

/* Option Cards */
.options-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 500px;
  margin: 0 auto;
}

.option-card {
  padding: 18px 20px;
  background: var(--bg-white);
  border: 2px solid #E2E8F0;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 16px;
}

.option-card:hover {
  border-color: var(--pink-primary);
  background: #FFF5F8;
  transform: translateX(4px);
}

.option-card.selected {
  background: #FFF0F5;
  border-color: var(--pink-primary);
}

.option-card.selected .option-indicator {
  background: var(--pink-primary);
  border-color: var(--pink-primary);
}

.option-card.selected .option-indicator::after {
  content: '✓';
  color: white;
  font-size: 14px;
  font-weight: bold;
}

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

.option-text {
  font-size: 18px;
  /* High legibility */
  font-weight: 500;
  color: var(--text-dark);
  text-align: left;
  /* Center text labels */
  width: 100%;
}

/* Scale Options (1-5) */
.scale-options {
  display: flex;
  gap: 12px;
  justify-content: center;
  max-width: 500px;
  margin: 0 auto;
}

.scale-option {
  flex: 1;
  max-width: 110px;
  /* Increased from 100px for larger font */
  padding: 20px 8px;
  /* Reduced side padding slightly */
  background: var(--bg-white);
  border: 2px solid #E2E8F0;
  border-radius: var(--border-radius);
  cursor: pointer;
  text-align: center;
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.scale-option:hover {
  border-color: var(--pink-primary);
  background: #FFF5F8;
}

.scale-option.selected {
  background: #FFF0F5;
  border-color: var(--pink-primary);
}

.scale-number {
  font-size: 32px;
  /* Increased from 26px */
  font-weight: 700;
  color: var(--pink-primary);
}

.scale-label {
  font-size: 13px;
  /* Increased from 12px */
  font-weight: 600;
  color: var(--text-secondary);
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: center;
  width: 100%;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 18px 36px;
  font-size: 16px;
  /* Increased from 14px */
  font-weight: 700;
  font-family: inherit;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-primary {
  background: var(--pink-primary);
  color: white;
  width: 100%;
  max-width: 400px;
}

.btn-primary:hover:not(:disabled) {
  background: var(--pink-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 92, 157, 0.3);
}

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

.btn-group-vertical {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
  width: 100%;
}

.btn-link {
  background: transparent;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  padding: 8px 16px;
  cursor: pointer;
  border: none;
  transition: color var(--transition-fast);
}

.btn-link:hover {
  color: var(--text-dark);
  text-decoration: underline;
}

/* Results Screen */
#screen-results {
  background: var(--bg-light);
  padding: 40px 24px;
}

.results-container {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.score-display {
  margin: 40px 0;
}

.score-circle {
  width: 180px;
  height: 180px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: var(--bg-white);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  border: 4px solid var(--pink-primary);
}

.score-number {
  font-size: 56px;
  font-weight: 800;
  color: var(--pink-primary);
  line-height: 1;
}

.score-label {
  font-size: 12px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 8px;
}

.score-message {
  padding: 20px 24px;
  background: var(--bg-white);
  border-radius: var(--border-radius);
  margin-bottom: 32px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  text-align: left;
}

.score-message.ready {
  border-left: 4px solid var(--status-green);
}

.score-message.emerging {
  border-left: 4px solid var(--status-yellow);
}

.score-message.not-ready {
  border-left: 4px solid var(--status-red);
}

#score-message-text {
  color: var(--text-dark);
  font-size: 15px;
  line-height: 1.6;
}

/* Dimension Breakdown */
.dimensions-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 32px 0;
  text-align: left;
}

.dimension-item {
  background: var(--bg-white);
  padding: 20px;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.dimension-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.dimension-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-dark);
}

.dimension-score {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
}

.status-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.status-indicator.green {
  background: var(--status-green);
}

.status-indicator.yellow {
  background: var(--status-yellow);
}

.status-indicator.red {
  background: var(--status-red);
}

.dimension-bar {
  height: 8px;
  background: var(--bg-input);
  border-radius: 4px;
  overflow: hidden;
}

.dimension-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 1s ease;
}

.dimension-fill.green {
  background: var(--status-green);
}

.dimension-fill.yellow {
  background: var(--status-yellow);
}

.dimension-fill.red {
  background: var(--status-red);
}

/* Cost of Waiting Box */
.cost-waiting {
  background: #FEF2F2;
  border: 1px solid #FECACA;
  border-radius: var(--border-radius);
  padding: 24px;
  margin: 32px 0;
  text-align: center;
}

.cost-waiting h4 {
  color: var(--status-red);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.cost-amount {
  font-size: 42px;
  font-weight: 800;
  color: var(--status-red);
  margin: 8px 0;
}

.cost-description {
  font-size: 14px;
  color: var(--text-secondary);
}

/* Recommendations */
.recommendations {
  text-align: left;
  margin: 32px 0;
}

.recommendations h4 {
  font-size: 18px;
  margin-bottom: 16px;
  color: var(--text-dark);
}

.recommendation-item {
  display: flex;
  gap: 16px;
  padding: 16px;
  background: var(--bg-white);
  border-radius: var(--border-radius);
  margin-bottom: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.recommendation-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--pink-primary) 0%, #FF8DC3 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 18px;
}

.recommendation-text {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-secondary);
}

/* Email Capture */
.email-capture {
  background: var(--bg-white);
  border-radius: var(--border-radius);
  padding: 32px;
  margin-top: 40px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.email-capture h3 {
  font-size: 20px;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.email-capture p {
  color: var(--text-secondary);
  margin-bottom: 24px;
  font-size: 14px;
}

/* Benefits List */
.benefits-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 32px auto;
  text-align: left;
  max-width: 420px;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  /* Increased from 14px */
  color: var(--text-dark);
  /* Ensure dark text */
  font-weight: 500;
}

.benefit-icon {
  color: var(--status-green);
  font-size: 20px;
  font-weight: 800;
}

/* Footer Simple */
.footer-simple {
  margin-top: 40px;
  padding: 24px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  width: 100%;
}

/* Preview Mockup */
.preview-mockup {
  text-align: center;
  margin-bottom: 16px;
}

/* Footer */
.footer {
  margin-top: auto;
  padding: 24px;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  background: var(--bg-light);
}

/* Remove old dark background */
.bg-gradient {
  display: none;
}

/* =====================================================
   MOBILE OPTIMIZATION
   ===================================================== */

@media (max-width: 768px) {
  #screen-welcome {
    padding: 48px 20px;
  }

  #screen-welcome h2 {
    font-size: 28px;
  }
}

@media (max-width: 480px) {
  #screen-welcome {
    padding: 40px 16px;
  }

  #screen-welcome h2 {
    font-size: 24px;
  }

  #screen-welcome .subtitle {
    font-size: 15px;
  }

  .logo-image {
    max-width: 120px;
  }

  #questions-container .screen {
    padding: 32px 16px;
  }

  .question-text {
    font-size: 18px;
    margin-bottom: 24px;
  }

  .scale-options {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
  }

  .scale-option {
    max-width: none;
    padding: 14px 6px;
  }

  .scale-number {
    font-size: 18px;
  }

  .scale-label {
    font-size: 8px;
  }

  .option-card {
    padding: 14px 16px;
  }

  .option-text {
    font-size: 14px;
  }

  .btn {
    padding: 16px 20px;
    font-size: 13px;
  }

  .btn-group {
    flex-direction: column-reverse;
  }

  #screen-results {
    padding: 32px 16px;
  }

  .score-circle {
    width: 150px;
    height: 150px;
  }

  .score-number {
    font-size: 44px;
  }

  .cost-amount {
    font-size: 32px;
  }

  .dimension-item {
    padding: 16px;
  }

  .email-capture {
    padding: 24px 16px;
  }

  .text-input {
    font-size: 16px;
    /* Prevents iOS zoom */
  }
}

@media (max-width: 375px) {
  #screen-welcome h2 {
    font-size: 22px;
  }

  .scale-option {
    padding: 12px 4px;
  }

  .scale-number {
    font-size: 16px;
  }

  .score-circle {
    width: 130px;
    height: 130px;
  }

  .score-number {
    font-size: 38px;
  }
}

/* Prevent horizontal scroll */
html,
body {
  overflow-x: hidden;
  max-width: 100vw;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* Confetti animation */
.confetti {
  position: fixed;
  width: 10px;
  height: 10px;
  pointer-events: none;
  animation: confettiFall 3s ease-out forwards;
}

@keyframes confettiFall {
  0% {
    transform: translateY(-100vh) rotate(0deg);
    opacity: 1;
  }

  100% {
    transform: translateY(100vh) rotate(720deg);
    opacity: 0;
  }
}

/* Shake Animation for Validation Error */
@keyframes shake {

  0%,
  100% {
    transform: translateX(0);
  }

  10%,
  30%,
  50%,
  70%,
  90% {
    transform: translateX(-4px);
  }

  20%,
  40%,
  60%,
  80% {
    transform: translateX(4px);
  }
}

.shake {
  animation: shake 0.4s cubic-bezier(.36, .07, .19, .97) both;
  background-color: #E5007E !important;
  color: white !important;
}

/* =====================================================
   PREMIUM SCORE DISPLAY LAYOUT
   Hero-style results with prominent tier image
   ===================================================== */

/* Main Results Row - Image is the hero */
.score-display-row {
  display: flex;
  gap: 40px;
  align-items: stretch;
  justify-content: center;
  margin: 40px 0;
  flex-wrap: wrap;
}

/* Left Column: Score Circle + Tier Info */
.score-column {
  flex: 0 0 auto;
  width: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
}

.score-column .score-circle {
  margin-bottom: 0;
}

.score-column .score-message {
  margin-top: 24px;
  margin-bottom: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
  text-align: center;
}

.score-column .score-message p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.score-column .score-message strong {
  display: block;
  font-size: 22px;
  color: var(--text-dark);
  margin-bottom: 8px;
}

/* Right Column: Tier Image - HERO SIZE */
.tier-image-column {
  flex: 1 1 350px;
  max-width: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tier-image-large {
  width: 100%;
  max-width: 480px;
  height: auto;
  border-radius: 20px;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.15),
    0 8px 24px rgba(0, 0, 0, 0.1);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  object-fit: cover;
}

.tier-image-large:hover {
  transform: scale(1.03) translateY(-4px);
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.18),
    0 12px 32px rgba(0, 0, 0, 0.12);
}

/* Mobile: Image First, Full Width */
@media (max-width: 700px) {
  .score-display-row {
    flex-direction: column;
    gap: 32px;
    align-items: center;
  }

  .tier-image-column {
    order: -1;
    /* Image first on mobile */
    width: 100%;
    max-width: none;
  }

  .tier-image-large {
    max-width: 100%;
    border-radius: 16px;
  }

  .score-column {
    width: 100%;
  }

  .score-column .score-message {
    max-width: 400px;
  }
}

/* =====================================================
   NEW LAYOUT: Hero Image Top + Score/Explanation Row
   ===================================================== */

/* Hero Tier Image - Top Center, Nearly Full Width */
.tier-image-hero {
  width: 100%;
  display: flex;
  justify-content: center;
  margin: 24px 0 32px 0;
}

.tier-image-hero .tier-image-large {
  width: 100%;
  max-width: 550px;
  height: auto;
  border-radius: 20px;
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.12),
    0 8px 24px rgba(0, 0, 0, 0.08);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  object-fit: cover;
}

.tier-image-hero .tier-image-large:hover {
  transform: translateY(-4px);
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.15),
    0 12px 32px rgba(0, 0, 0, 0.1);
}

/* Score Details Row - Score Left, Explanation Right */
.score-details-row {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: center;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

/* Left Column: Score Circle */
.score-circle-column {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.score-circle-column .score-circle {
  width: 120px;
  height: 120px;
  margin: 0;
}

.score-circle-column .score-number {
  font-size: 38px;
}

/* Right Column: Tier Explanation */
.score-explanation-column {
  flex: 1 1 280px;
  max-width: 450px;
  display: flex;
  align-items: center;
}

.score-explanation-column .score-message {
  margin: 0;
  padding: 20px 24px;
  background: var(--bg-white);
  border-radius: var(--border-radius);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  text-align: left;
  border-left: 4px solid var(--pink-primary);
}

.score-explanation-column .score-message p {
  margin: 0;
}

.score-explanation-column .score-message strong {
  display: block;
  font-size: 20px;
  color: var(--text-dark);
  margin-bottom: 8px;
}

/* Mobile: Stack vertically */
@media (max-width: 600px) {
  .tier-image-hero {
    margin: 16px 0 24px 0;
  }

  .tier-image-hero .tier-image-large {
    max-width: 100%;
    border-radius: 16px;
  }

  .score-details-row {
    flex-direction: row;
    gap: 16px;
  }

  .score-circle-column .score-circle {
    width: 100px;
    height: 100px;
  }

  .score-circle-column .score-number {
    font-size: 32px;
  }

  .score-explanation-column {
    flex: 1 1 200px;
  }

  .score-explanation-column .score-message {
    padding: 16px;
  }

  .score-explanation-column .score-message strong {
    font-size: 16px;
  }
}

/* NEW: Score Badge Pills (Matching PDF Premium Layout) */
.score-pill {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 6px;
  color: white;
  font-weight: 700;
  font-size: 13px;
  min-width: 44px;
  text-align: center;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.score-pill.green {
  background-color: var(--status-green);
}

.score-pill.yellow {
  background-color: var(--status-yellow);
}

.score-pill.red {
  background-color: var(--status-red);
}

/* NEW: Tier Image Frame (Matching PDF Premium Layout) */
.tier-image-large {
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  padding: 1px;
  /* Mocking the overlay look */
}

/* =====================================================
   MOBILE UX FIXES - Responsive Styles
   ===================================================== */

/* Insights Grid (Bottleneck + Strongest Asset) */
.insights-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

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

  .insights-grid>div {
    padding: 20px !important;
  }
}

/* Timeline Labels - Adaptive Display */
.timeline-label {
  display: block;
  font-size: 10px;
  margin-top: 6px;
  font-weight: 500;
  color: #64748B;
  text-align: center;
}

.timeline-label.active {
  font-weight: 700;
  color: #0F172A;
}

@media (max-width: 768px) {
  .timeline-label {
    display: none;
  }

  .timeline-label.active {
    display: block;
  }
}