/* JT Cuts Academy Quiz Funnel — Mobile-First */
/* Branding matched to jtcutsacademy.com */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700;800&family=Roboto+Slab:wght@400;700;800&display=swap');

:root {
  --primary: #FFCB02;
  --primary-dark: #E6B800;
  --dark: #333C4E;
  --darker: #3A3533;
  --accent: #005DA7;
  --rust: #A62215;
  --light: #f5f5f5;
  --white: #ffffff;
  --text: #333333;
  --text-light: #666666;
  --success: #27ae60;
  --danger: #A62215;
  --shadow: 0 4px 20px rgba(0,0,0,0.12);
  --radius: 12px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
  background: var(--light);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ============ WELCOME PAGE ============ */
.welcome-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.timer-bar {
  background: var(--danger);
  color: var(--white);
  text-align: center;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.timer-bar span { font-variant-numeric: tabular-nums; }

.timer-btn {
  background: var(--white);
  color: var(--danger);
  border: none;
  padding: 6px 16px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: transform 0.2s;
}
.timer-btn:hover { transform: scale(1.05); }

.hero-section {
  background: linear-gradient(135deg, var(--dark) 0%, var(--darker) 50%, var(--accent) 100%);
  color: var(--white);
  text-align: center;
  padding: 48px 20px 40px;
}

.hero-section h1 {
  font-family: 'Roboto Slab', serif;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  font-size: 16px;
  opacity: 0.9;
  margin-bottom: 24px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.btn-primary {
  display: inline-block;
  background: var(--primary);
  color: var(--dark);
  padding: 16px 40px;
  border-radius: 50px;
  font-size: 18px;
  font-weight: 800;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(255,203,2,0.4);
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(255,203,2,0.5);
}

.hero-text-section {
  background: var(--darker);
  color: var(--white);
  text-align: center;
  padding: 32px 20px;
}

.hero-text-section p {
  font-size: 18px;
  font-style: italic;
  max-width: 600px;
  margin: 0 auto;
  opacity: 0.9;
  line-height: 1.5;
}

.about-section {
  background: var(--white);
  padding: 40px 20px;
  text-align: center;
}

.about-section h3 {
  font-family: 'Roboto Slab', serif;
  font-size: 18px;
  color: var(--accent);
  margin-bottom: 12px;
}

.about-section p {
  font-size: 15px;
  color: var(--text-light);
  max-width: 500px;
  margin: 0 auto;
}

.mid-section {
  background: var(--light);
  padding: 40px 20px;
  text-align: center;
}

.mid-section h2 {
  font-family: 'Roboto Slab', serif;
  font-size: 22px;
  color: var(--dark);
  margin-bottom: 12px;
}

.mid-section p {
  color: var(--text-light);
  margin-bottom: 24px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.report-section {
  background: var(--white);
  padding: 40px 20px;
  text-align: center;
}

.report-section p {
  font-size: 15px;
  color: var(--text-light);
  max-width: 500px;
  margin: 0 auto 24px;
}

.final-cta-section {
  background: linear-gradient(135deg, var(--dark) 0%, var(--accent) 100%);
  color: var(--white);
  text-align: center;
  padding: 40px 20px;
}

.final-cta-section p {
  margin-bottom: 20px;
  opacity: 0.9;
}

.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.5);
  text-align: center;
  padding: 20px;
  font-size: 12px;
}

.footer a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  margin: 0 8px;
}
.footer a:hover { color: var(--white); }

/* ============ QUIZ ENGINE ============ */
.quiz-container {
  display: none;
  min-height: 100vh;
  background: linear-gradient(180deg, var(--dark) 0%, var(--darker) 100%);
  color: var(--white);
  padding: 0;
}

.quiz-container.active { display: flex; flex-direction: column; }

.progress-bar-wrapper {
  background: rgba(255,255,255,0.1);
  height: 6px;
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 10;
}

.progress-bar {
  background: var(--primary);
  height: 100%;
  width: 0%;
  transition: width 0.5s ease;
  border-radius: 0 3px 3px 0;
}

.question-screen {
  display: none;
  flex: 1;
  padding: 32px 20px 40px;
  max-width: 600px;
  margin: 0 auto;
  width: 100%;
  animation: fadeIn 0.4s ease;
}

.question-screen.active { display: flex; flex-direction: column; }

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

.question-number {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--primary);
  margin-bottom: 12px;
  font-weight: 600;
}

.question-text {
  font-family: 'Roboto Slab', serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 32px;
}

.answer-options { display: flex; flex-direction: column; gap: 12px; }

.answer-option {
  background: rgba(255,255,255,0.08);
  border: 2px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  padding: 18px 20px;
  font-size: 16px;
  color: var(--white);
  cursor: pointer;
  transition: all 0.25s;
  text-align: left;
  line-height: 1.4;
}

.answer-option:hover {
  background: rgba(255,203,2,0.15);
  border-color: var(--primary);
  transform: translateX(4px);
}

.answer-option.selected {
  background: rgba(255,203,2,0.2);
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary);
}

/* ============ LEAD CAPTURE ============ */
.lead-capture-screen {
  display: none;
  min-height: 100vh;
  background: linear-gradient(180deg, var(--dark) 0%, var(--darker) 100%);
  color: var(--white);
  padding: 40px 20px;
  text-align: center;
}

.lead-capture-screen.active { display: flex; flex-direction: column; align-items: center; justify-content: center; }

.result-code {
  display: inline-block;
  background: var(--primary);
  color: var(--dark);
  font-size: 32px;
  font-weight: 900;
  padding: 12px 28px;
  border-radius: var(--radius);
  margin: 20px 0;
  letter-spacing: 4px;
}

.lead-capture-screen h2 {
  font-family: 'Roboto Slab', serif;
  font-size: 24px;
  margin-bottom: 12px;
  max-width: 500px;
}

.lead-capture-screen p {
  font-size: 15px;
  opacity: 0.85;
  max-width: 450px;
  margin-bottom: 28px;
}

.email-form {
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.email-form input[type="text"],
.email-form input[type="email"] {
  width: 100%;
  padding: 16px 20px;
  border-radius: var(--radius);
  border: 2px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.08);
  color: var(--white);
  font-size: 16px;
  outline: none;
  transition: border-color 0.3s;
}

.email-form input::placeholder { color: rgba(255,255,255,0.4); }
.email-form input:focus { border-color: var(--primary); }

.email-form .btn-primary {
  width: 100%;
  text-align: center;
  padding: 16px;
}

.skip-link {
  display: inline-block;
  margin-top: 16px;
  color: rgba(255,255,255,0.4);
  font-size: 13px;
  cursor: pointer;
  text-decoration: underline;
}

/* ============ OUTCOME PAGE ============ */
.outcome-page {
  display: none;
  background: var(--white);
  color: var(--text);
}

.outcome-page.active { display: block; }

.outcome-hero {
  background: linear-gradient(135deg, var(--dark) 0%, var(--accent) 100%);
  color: var(--white);
  text-align: center;
  padding: 48px 20px 40px;
}

.outcome-hero .bucket-label {
  display: inline-block;
  background: var(--primary);
  color: var(--dark);
  padding: 6px 20px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.outcome-hero h1 {
  font-family: 'Roboto Slab', serif;
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 12px;
}

.outcome-hero p {
  font-size: 16px;
  opacity: 0.85;
  max-width: 500px;
  margin: 0 auto;
}

.outcome-content {
  max-width: 680px;
  margin: 0 auto;
  padding: 40px 20px 60px;
}

.outcome-step {
  margin-bottom: 36px;
}

.outcome-step h2 {
  font-family: 'Roboto Slab', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 3px solid var(--rust);
  display: inline-block;
}

.outcome-step p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 12px;
}

.outcome-step ul {
  padding-left: 20px;
  margin-bottom: 12px;
}

.outcome-step li {
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 8px;
  color: var(--text);
}

.outcome-step .highlight {
  background: rgba(255,203,2,0.1);
  border-left: 4px solid var(--primary);
  padding: 16px 20px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 16px 0;
}

.outcome-cta {
  background: linear-gradient(135deg, var(--dark) 0%, var(--accent) 100%);
  color: var(--white);
  text-align: center;
  padding: 48px 20px;
}

.outcome-cta h2 {
  font-family: 'Roboto Slab', serif;
  font-size: 24px;
  margin-bottom: 12px;
}

.outcome-cta p {
  opacity: 0.85;
  margin-bottom: 24px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.outcome-cta .btn-primary { font-size: 20px; padding: 18px 48px; }

.text-link {
  display: block;
  color: var(--primary);
  margin-top: 16px;
  font-size: 14px;
  text-decoration: underline;
}

/* ============ UTILITIES ============ */
.hidden { display: none !important; }

@media (min-width: 768px) {
  .hero-section h1 { font-size: 36px; }
  .hero-section { padding: 64px 40px 56px; }
  .question-text { font-size: 26px; }
  .question-screen { padding: 48px 40px 60px; }
  .answer-option { padding: 20px 24px; font-size: 17px; }
  .outcome-hero h1 { font-size: 36px; }
  .outcome-content { padding: 56px 40px 80px; }
}
