@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  --background: 0 0% 7%;
  --foreground: 0 0% 100%;
  --card: 0 0% 10%;
  --card-foreground: 0 0% 100%;
  --primary: 38 92% 50%; /* #f59e0b */
  --primary-foreground: 0 0% 0%;
  --secondary: 0 0% 15%;
  --secondary-foreground: 0 0% 100%;
  --muted: 0 0% 20%;
  --muted-foreground: 0 0% 65%;
  --border: 0 0% 20%;
  --radius: 0.75rem;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border-color: hsl(var(--border));
}

html {
  overflow-y: scroll; /* Force vertical scrollbar to prevent horizontal layout shifting on page growth */
}

body {
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}

/* Common Container Layouts */
.quiz-container {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 2rem 1rem;
}

.quiz-inner {
  width: 100%;
  max-width: 36rem;
  margin: 0 auto;
}

/* Quiz Boot Shell (Landing & Question 1) */
.quiz02-boot-shell {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.quiz02-boot-shell__header,
.quiz02-boot-shell__question-block {
  text-align: center;
}

.quiz02-boot-shell__title {
  margin: 0 0 1.5rem;
  font-size: 2rem;
  line-height: 1.05;
  font-weight: 900;
}

.quiz02-boot-shell__accent {
  color: hsl(var(--primary));
}

.quiz02-boot-shell__subtitle {
  margin: 0 auto;
  font-size: 1rem;
  line-height: 1.6;
  max-width: 28rem;
  color: hsl(var(--muted-foreground));
}

.quiz02-boot-shell__counter {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
}

.quiz02-boot-shell__question {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
}

.quiz02-boot-shell__answers {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.quiz02-boot-shell__answer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid hsl(var(--primary));
  background: hsl(var(--secondary) / 0.6);
  color: hsl(var(--foreground));
  font-size: 1.125rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.15);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.quiz02-boot-shell__answer:hover {
  background: hsl(var(--secondary));
  box-shadow: 0 0 28px rgba(245, 158, 11, 0.28);
}

.quiz02-boot-shell__arrow {
  color: hsl(var(--primary));
  font-size: 1.25rem;
}

.quiz02-boot-shell__skip {
  display: block;
  margin-top: 1rem;
  text-align: center;
  font-size: 1rem;
  font-weight: 700;
  color: hsl(var(--primary));
  text-decoration: underline;
  cursor: pointer;
}

.quiz02-boot-shell__skip:hover {
  color: hsl(var(--primary) / 0.8);
}

/* Testimonial Cards */
.testimonial-card {
  border-radius: 1rem;
  border: 1px solid hsl(var(--border) / 0.5);
  background-color: hsl(var(--card) / 0.5);
  padding: 1rem;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1rem;
  text-align: left;
}

.testimonial-card img {
  width: 5rem !important;  /* 80px */
  height: 5rem !important; /* 80px */
  border-radius: 1rem !important; /* Matches original screenshot rounded corners */
  object-fit: cover;
  border: 1px solid hsl(var(--border) / 0.5);
  flex-shrink: 0;
}

.testimonial-card-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

/* Answers Button - Standard Quiz flow */
.quiz-answer-btn {
  display: flex;
  width: 100%;
  cursor: pointer;
  align-items: center;
  justify-content: space-between;
  border-radius: var(--radius);
  border: 1px solid hsl(var(--primary));
  background-color: hsl(var(--secondary) / 0.6);
  padding: 1rem 1.25rem;
  text-align: left;
  font-size: 1.125rem;
  font-weight: 500;
  color: hsl(var(--foreground));
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.15);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: inherit;
}

.quiz-answer-btn:hover {
  background-color: hsl(var(--secondary));
  box-shadow: 0 0 28px rgba(245, 158, 11, 0.28);
}

.quiz-answer-btn .arrow {
  color: hsl(var(--primary));
  transition: transform 0.2s ease;
}

.quiz-answer-btn:hover .arrow {
  transform: translateX(4px);
}

/* Loading Screen Spinner */
.animate-spin {
  animation: spin 1.2s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* General Animations */
.animate-fade-in {
  animation: fade-in 0.3s ease-out forwards;
}

@keyframes fade-in {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-glow-pulse {
  animation: glow-pulse 3s ease-in-out infinite;
}

@keyframes glow-pulse {
  0%, 100% {
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.45), 0 0 30px rgba(245, 158, 11, 0.25);
  }
  50% {
    box-shadow: 0 0 25px rgba(245, 158, 11, 0.8), 0 0 50px rgba(245, 158, 11, 0.55);
  }
}

/* Confetti particles */
.animate-confetti-fall {
  animation: confetti-fall 3s ease-out forwards;
}

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

/* Media Queries */
@media (min-width: 640px) {
  .quiz-container {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
  .quiz02-boot-shell__title {
    font-size: 2.6875rem;
  }
  .quiz02-boot-shell__subtitle,
  .quiz02-boot-shell__answer,
  .quiz-answer-btn {
    font-size: 1.125rem;
  }
}

/* Utility layout helpers on Results page */
.bg-card-glow {
  background: hsl(var(--card) / 0.5);
  border: 1px solid hsl(var(--border) / 0.5);
}

.badge-info {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  background-color: hsl(0, 0%, 15%);
  border: 1px solid hsl(var(--primary) / 0.4);
  box-shadow: 0 0 12px hsl(var(--primary) / 0.25);
}

.urgency-box {
  background-color: hsl(0, 40%, 15%);
  border: 2px solid hsl(0, 70%, 40%);
  border-radius: 0.75rem;
  padding: 1rem;
  text-align: center;
}

.checklist-card {
  background-color: hsl(0, 0%, 12%);
  border-left: 4px solid hsl(var(--primary));
  border-radius: 0.75rem;
  padding: 1.25rem;
}

.sticky-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: hsl(var(--card) / 0.95);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-top: 1px solid hsl(var(--border) / 0.5);
  padding: 1rem;
  z-index: 50;
}

.sticky-footer-btn {
  width: 100%;
  max-width: 36rem; /* Matches original max-w-xl (576px) */
  margin: 0 auto;
}

.cta-button {
  width: 100%;
  padding: 1rem;
  font-size: 1.125rem;
  font-weight: 700;
  border-radius: 0.75rem;
  background-color: hsl(var(--primary));
  color: #000000; /* High contrast black text for readability */
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  text-decoration: none;
  transition: all 0.3s ease;
  line-height: 1.25;
}

.cta-button:hover {
  background-color: hsl(var(--primary) / 0.9);
  transform: scale(1.03);
}

/* Results text layout classes */
.title-results {
  font-size: 1.6875rem;
  line-height: 1.2;
  font-weight: 900;
}

@media (min-width: 640px) {
  .title-results {
    font-size: 2.0625rem;
  }
}
@media (min-width: 768px) {
  .title-results {
    font-size: 2.8125rem;
  }
}

/* Helpers */
.text-primary { color: hsl(var(--primary)); }
.text-muted { color: hsl(var(--muted-foreground)); }
.text-foreground { color: hsl(var(--foreground)); }
.font-bold { font-weight: 700; }
.font-black { font-weight: 900; }
.text-center { text-align: center; }
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-4 { margin-top: 1rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.font-semibold { font-weight: 600; }
.pb-40 { padding-bottom: 10rem; }
.rounded-xl { border-radius: 0.75rem; }
.overflow-hidden { overflow: hidden; }
.w-full { width: 100%; }
.h-auto { height: auto; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.flex-shrink-0 { flex-shrink: 0; }
.object-cover { object-fit: cover; }
.rounded-full { border-radius: 9999px; }
.border-2 { border-width: 2px; }
.list-none { list-style: none; }

/* Position and overlay utilities for confetti container */
.fixed { position: fixed; }
.absolute { position: absolute; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.pointer-events-none { pointer-events: none; }
.z-50 { z-index: 50; }

.w-5 { width: 1.25rem; }
.h-5 { height: 1.25rem; }
