/* ==========================================================================
   Zero-Sum Belief Survey — Design System
   Theme: Dark glassmorphism with bridge/connection metaphor
   Palette: Deep navy base, teal-to-warm-gold gradient accents
   ========================================================================== */

/* ---- Custom Properties ---- */
:root {
  --bg-primary: #070b14;
  --bg-secondary: #0f1629;
  --bg-tertiary: #151d30;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 255, 255, 0.07);
  --bg-glass: rgba(15, 22, 41, 0.7);

  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-active: rgba(45, 212, 191, 0.4);
  --border-glow: rgba(45, 212, 191, 0.25);

  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-inverse: #070b14;

  --accent-teal: #2dd4bf;
  --accent-teal-light: #5eead4;
  --accent-teal-dark: #0d9488;
  --accent-gold: #f59e0b;
  --accent-gold-light: #fbbf24;
  --accent-amber: #d97706;

  --score-low: #34d399;
  --score-mid: #60a5fa;
  --score-high: #f87171;

  --gradient-primary: linear-gradient(135deg, var(--accent-teal), var(--accent-gold));
  --gradient-primary-hover: linear-gradient(135deg, var(--accent-teal-light), var(--accent-gold-light));
  --gradient-bg: radial-gradient(ellipse at 50% 0%, rgba(45, 212, 191, 0.08) 0%, transparent 60%);
  --gradient-hero: radial-gradient(ellipse at 50% 30%, rgba(45, 212, 191, 0.12) 0%, rgba(245, 158, 11, 0.04) 40%, transparent 70%);

  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

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

  --shadow-glow: 0 0 40px rgba(45, 212, 191, 0.12);
  --shadow-glow-strong: 0 0 60px rgba(45, 212, 191, 0.2);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-button: 0 4px 16px rgba(45, 212, 191, 0.25);

  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  --transition-smooth: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}


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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: rgba(45, 212, 191, 0.3);
  color: var(--text-primary);
}


/* ---- Typography ---- */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  color: var(--text-primary);
}

h3 {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  color: var(--text-primary);
}

p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
}


/* ---- Layout ---- */
#app {
  position: relative;
  min-height: 100vh;
}

.screen {
  display: none;
  min-height: 100vh;
  padding: 2rem 1rem;
  animation: fadeSlideIn 0.6s var(--transition-smooth) forwards;
}

.screen.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.container {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1rem;
}


/* ---- Animations ---- */
@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 20px rgba(45, 212, 191, 0.15); }
  50% { box-shadow: 0 0 40px rgba(45, 212, 191, 0.3); }
}

@keyframes drawBridge {
  from { stroke-dashoffset: 600; }
  to { stroke-dashoffset: 0; }
}

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

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.97);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

@keyframes gaugeReveal {
  from { stroke-dashoffset: 251; }
}

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

.animate-slide-up {
  animation: slideUp 0.5s var(--transition-smooth) forwards;
}

.animate-scale-in {
  animation: scaleIn 0.5s var(--transition-spring) forwards;
}


/* ---- Landing Screen ---- */
#landing {
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
}

#landing::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
  pointer-events: none;
}

.hero {
  text-align: center;
  position: relative;
  z-index: 1;
}

.bridge-motif {
  margin: 0 auto 2rem;
  max-width: 500px;
  opacity: 0;
  animation: fadeIn 1.2s ease forwards 0.2s;
}

.bridge-svg {
  width: 100%;
  height: auto;
}

.bridge-svg .arch-main {
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: drawBridge 2s cubic-bezier(0.4, 0, 0.2, 1) forwards 0.5s;
}

.bridge-svg .support-line {
  opacity: 0;
  animation: fadeIn 0.8s ease forwards;
}

.bridge-svg .support-line:nth-child(3) { animation-delay: 1.2s; }
.bridge-svg .support-line:nth-child(4) { animation-delay: 1.4s; }
.bridge-svg .support-line:nth-child(5) { animation-delay: 1.6s; }
.bridge-svg .support-line:nth-child(6) { animation-delay: 1.8s; }
.bridge-svg .support-line:nth-child(7) { animation-delay: 2.0s; }

.bridge-svg .deck-line {
  opacity: 0;
  animation: fadeIn 1s ease forwards 2.2s;
}

.hero h1 {
  margin-bottom: 0.75rem;
  opacity: 0;
  animation: slideUp 0.8s ease forwards 0.3s;
}

.subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-weight: 300;
  opacity: 0;
  animation: slideUp 0.8s ease forwards 0.5s;
}

.description {
  max-width: 520px;
  margin: 0 auto 2.5rem;
  font-size: 0.95rem;
  opacity: 0;
  animation: slideUp 0.8s ease forwards 0.7s;
}

.credit {
  margin-top: 2rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  opacity: 0;
  animation: fadeIn 1s ease forwards 1s;
}

.credit strong {
  color: var(--text-secondary);
}


/* ---- Buttons ---- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2.25rem;
  background: var(--gradient-primary);
  color: var(--text-inverse);
  border: none;
  border-radius: var(--radius-full);
  font-family: var(--font-family);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-button);
  position: relative;
  overflow: hidden;
  opacity: 0;
  animation: slideUp 0.6s ease forwards 0.9s;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-primary-hover);
  opacity: 0;
  transition: opacity var(--transition-base);
}

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

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-strong);
}

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

.btn-primary:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-primary:disabled:hover::before {
  opacity: 0;
}

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

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  background: var(--bg-card);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-family: var(--font-family);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-base);
  backdrop-filter: blur(12px);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-active);
  color: var(--text-primary);
}

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

.btn-secondary:disabled:hover {
  background: var(--bg-card);
  border-color: var(--border-subtle);
  color: var(--text-secondary);
}


/* ---- Survey Screen ---- */
#survey {
  background: var(--bg-primary);
  position: relative;
}

#survey::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-bg);
  pointer-events: none;
}

#survey .container {
  position: relative;
  z-index: 1;
}


/* ---- Progress Bar ---- */
.progress-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.progress-bar {
  flex: 1;
  height: 6px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  transition: width 0.5s var(--transition-smooth);
  position: relative;
}

.progress-fill::after {
  content: '';
  position: absolute;
  right: 0;
  top: -2px;
  width: 10px;
  height: 10px;
  background: var(--accent-gold);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.4);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.progress-fill[style*="width"]:not([style*="width: 0"]):not([style*="width:0"])::after {
  opacity: 1;
}

.progress-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  min-width: 3.5rem;
  text-align: right;
}


/* ---- Question Card ---- */
.question-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-card);
  transition: all var(--transition-base);
  animation: fadeIn 0.4s ease forwards;
}

.question-number {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-teal);
  margin-bottom: 1rem;
}

.question-text {
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: var(--text-primary);
  font-weight: 500;
  line-height: 1.5;
  margin-bottom: 2rem;
}


/* ---- Likert Scale ---- */
.likert-container {
  margin-top: 0.5rem;
}

.likert-scale {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.likert-option {
  position: relative;
}

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

.likert-option label {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-base);
  user-select: none;
  position: relative;
}

.likert-option label:hover {
  border-color: var(--border-active);
  background: var(--bg-card-hover);
  transform: scale(1.08);
  color: var(--text-primary);
}

.likert-option input:checked + label {
  background: var(--gradient-primary);
  border-color: transparent;
  color: var(--text-inverse);
  transform: scale(1.15);
  box-shadow: var(--shadow-glow);
  font-weight: 700;
}

.likert-option input:focus-visible + label {
  outline: 2px solid var(--accent-teal);
  outline-offset: 3px;
}

.likert-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 0.75rem;
  padding: 0 0.25rem;
}

.likert-labels span {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}


/* ---- Navigation Buttons ---- */
.nav-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
  gap: 1rem;
}

.nav-buttons .btn-primary,
.nav-buttons .btn-secondary {
  opacity: 1;
  animation: none;
}

.nav-buttons .btn-primary {
  margin-left: auto;
}


/* ---- Results Screen ---- */
#results {
  background: var(--bg-primary);
  position: relative;
  padding-top: 3rem;
  padding-bottom: 4rem;
}

#results::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
  pointer-events: none;
}

#results .container {
  position: relative;
  z-index: 1;
}

.results-header {
  text-align: center;
  margin-bottom: 2.5rem;
  animation: slideUp 0.6s ease forwards;
}

.results-header h2 {
  margin-bottom: 0.5rem;
}

.results-header p {
  color: var(--text-muted);
  font-size: 0.9rem;
}


/* ---- Score Gauge ---- */
.gauge-container {
  display: flex;
  justify-content: center;
  margin: 1rem auto 2rem;
  max-width: 280px;
  animation: scaleIn 0.8s var(--transition-spring) forwards;
  animation-delay: 0.2s;
  opacity: 0;
}

.gauge-svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.gauge-bg {
  fill: none;
  stroke: var(--bg-tertiary);
  stroke-width: 14;
  stroke-linecap: round;
}

.gauge-fill {
  fill: none;
  stroke-width: 14;
  stroke-linecap: round;
  transition: stroke-dashoffset 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.gauge-score-text {
  fill: var(--text-primary);
  font-family: var(--font-family);
  font-size: 2.8rem;
  font-weight: 700;
}

.gauge-label-text {
  fill: var(--text-muted);
  font-family: var(--font-family);
  font-size: 0.65rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.gauge-marker {
  fill: var(--text-muted);
  font-family: var(--font-family);
  font-size: 0.55rem;
  font-weight: 500;
}


/* ---- Classification Badge ---- */
.classification-container {
  text-align: center;
  margin-bottom: 2rem;
  animation: slideUp 0.6s ease forwards;
  animation-delay: 0.6s;
  opacity: 0;
}

.classification-badge {
  display: inline-block;
  padding: 0.625rem 1.75rem;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.classification-badge.low {
  background: rgba(52, 211, 153, 0.12);
  color: var(--score-low);
  border: 1px solid rgba(52, 211, 153, 0.25);
}

.classification-badge.mid {
  background: rgba(96, 165, 250, 0.12);
  color: var(--score-mid);
  border: 1px solid rgba(96, 165, 250, 0.25);
}

.classification-badge.high {
  background: rgba(248, 113, 113, 0.12);
  color: var(--score-high);
  border: 1px solid rgba(248, 113, 113, 0.25);
}


/* ---- Feedback Card ---- */
.feedback-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  margin-bottom: 1.5rem;
  animation: slideUp 0.6s ease forwards;
  animation-delay: 0.8s;
  opacity: 0;
}

.feedback-card h3 {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.feedback-card h3 .icon {
  font-size: 1.3rem;
}

.feedback-card p {
  font-size: 0.95rem;
  line-height: 1.7;
}


/* ---- Reframing Section ---- */
.reframing-card {
  background: rgba(248, 113, 113, 0.05);
  border: 1px solid rgba(248, 113, 113, 0.15);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 1.5rem;
  animation: slideUp 0.6s ease forwards;
  animation-delay: 1s;
  opacity: 0;
}

.reframing-card h3 {
  color: var(--score-high);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.reframing-card p {
  font-size: 0.95rem;
  line-height: 1.7;
}


/* ---- Benchmark Info ---- */
.benchmark-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  margin-bottom: 2rem;
  animation: slideUp 0.6s ease forwards;
  animation-delay: 1s;
  opacity: 0;
}

.benchmark-card h3 {
  margin-bottom: 1rem;
  font-size: 1rem;
}

.benchmark-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.benchmark-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.benchmark-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.benchmark-dot.low { background: var(--score-low); }
.benchmark-dot.mid { background: var(--score-mid); }
.benchmark-dot.high { background: var(--score-high); }


/* ---- Action Buttons Section ---- */
.results-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  animation: slideUp 0.6s ease forwards;
  animation-delay: 1.2s;
  opacity: 0;
}

.results-actions .btn-primary {
  opacity: 1;
  animation: none;
}

.retake-link {
  color: var(--text-muted);
  font-size: 0.85rem;
  cursor: pointer;
  border: none;
  background: none;
  font-family: var(--font-family);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition-base);
}

.retake-link:hover {
  color: var(--text-secondary);
}


/* ---- Details Screen ---- */
#details {
  background: var(--bg-primary);
  position: relative;
}

#details::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-bg);
  pointer-events: none;
}

#details .container {
  position: relative;
  z-index: 1;
}

.details-card {
  animation: scaleIn 0.5s var(--transition-spring) forwards;
}

.details-field {
  margin-top: 1.75rem;
}

.details-field label {
  display: block;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.field-hint {
  font-size: 0.8rem !important;
  color: var(--text-muted) !important;
  margin-bottom: 0.5rem !important;
  margin-top: -0.25rem;
}

.text-input {
  width: 100%;
  padding: 0.875rem 1.25rem;
  background: var(--bg-card);
  border: 2px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-family);
  font-size: 1rem;
  transition: all var(--transition-base);
  outline: none;
}

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

.text-input:focus {
  border-color: var(--accent-teal);
  background: var(--bg-card-hover);
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.12);
}

.text-input:hover:not(:focus) {
  border-color: rgba(255, 255, 255, 0.12);
}

/* ---- Social Sharing ---- */
.share-section {
  text-align: center;
  margin-top: 1.5rem;
}

.share-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.share-buttons {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
}

.share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #fff;
  text-decoration: none;
  transition: all var(--transition-base);
  cursor: pointer;
}

.share-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.share-x        { background: #000; }
.share-linkedin { background: #0a66c2; }
.share-facebook { background: #1877f2; }
.share-whatsapp { background: #25d366; }

.share-x:hover        { background: #333; }
.share-linkedin:hover { background: #0077b5; }
.share-facebook:hover { background: #166fe5; }
.share-whatsapp:hover { background: #20bd5a; }


/* ---- Email Section ---- */
.email-section {
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border-subtle);
  animation: slideUp 0.6s ease forwards;
  animation-delay: 1.4s;
  opacity: 0;
}

.email-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  text-align: center;
}

.email-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.email-card-desc {
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.email-card-desc strong {
  color: var(--accent-teal);
}

/* Custom Checkbox */
.checkbox-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  padding: 0.875rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  transition: all var(--transition-base);
  text-align: left;
  user-select: none;
}

.checkbox-container:hover {
  border-color: var(--border-active);
  background: var(--bg-card-hover);
}

.checkbox-container input[type="checkbox"] {
  display: none;
}

.checkmark {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 2px solid var(--border-subtle);
  background: var(--bg-card);
  position: relative;
  transition: all var(--transition-base);
}

.checkbox-container input:checked ~ .checkmark {
  background: var(--gradient-primary);
  border-color: transparent;
}

.checkmark::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 2px;
  width: 6px;
  height: 11px;
  border: solid var(--text-inverse);
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.checkbox-container input:checked ~ .checkmark::after {
  opacity: 1;
}

.checkbox-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.checkbox-label em {
  color: var(--text-primary);
  font-style: italic;
}

/* Email Button */
.btn-email {
  opacity: 1;
  animation: none;
  width: 100%;
  max-width: 320px;
}

/* Email Status */
.email-status {
  margin-top: 1rem;
  font-size: 0.9rem;
  min-height: 1.5rem;
  transition: all var(--transition-base);
}

.email-status.success {
  color: var(--score-low);
}

.email-status.error {
  color: var(--score-high);
}


/* ---- Footer ---- */
.site-footer {
  text-align: center;
  padding: 2rem 1rem;
  margin-top: 2rem;
  color: var(--text-muted);
  font-size: 0.75rem;
}

.site-footer a {
  color: var(--accent-teal);
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}


/* ---- Responsive ---- */
@media (max-width: 640px) {
  .screen {
    padding: 1.5rem 0.75rem;
  }

  .question-card {
    padding: 1.75rem 1.25rem;
  }

  .likert-scale {
    gap: 6px;
  }

  .likert-option label {
    width: 40px;
    height: 40px;
    font-size: 0.85rem;
  }

  .nav-buttons {
    flex-direction: column-reverse;
  }

  .nav-buttons .btn-primary {
    width: 100%;
    margin-left: 0;
  }

  .nav-buttons .btn-secondary {
    width: 100%;
  }

  .benchmark-list {
    gap: 0.75rem;
  }
}

@media (max-width: 380px) {
  .likert-scale {
    gap: 4px;
  }

  .likert-option label {
    width: 36px;
    height: 36px;
    font-size: 0.8rem;
  }
}


/* ---- Print / PDF ---- */
@media print {
  body {
    background: white;
    color: #1a1a2e;
  }

  .screen {
    display: block !important;
    min-height: auto;
    padding: 0;
    animation: none;
  }

  #landing, #survey, #details, .nav-buttons, .results-actions,
  .email-section, .site-footer, .retake-link {
    display: none !important;
  }

  #results {
    display: block !important;
  }

  #results::before {
    display: none;
  }

  .question-card, .feedback-card, .reframing-card, .benchmark-card {
    background: white;
    border: 1px solid #e0e0e0;
    box-shadow: none;
    backdrop-filter: none;
  }

  .classification-badge {
    border-width: 2px;
  }

  h1, h2, h3 {
    color: #1a1a2e;
    -webkit-text-fill-color: initial;
    background: none;
  }

  p {
    color: #444;
  }
}
