:root {
  --bg: #111111;
  --surface: #1a1a1a;
  --text: #f5f5f5;
  --muted: #a0a0a0;
  --line: #333333;
  --primary: #e63946;
  --primary-dark: #b71c1c;
  --accent: #f4a261;
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.5);
}

* { box-sizing: border-box; }

body {
  margin: 0; min-height: 100vh;
  background: var(--bg); color: var(--text);
  font-family: 'Montserrat', system-ui, sans-serif;
  letter-spacing: 0;
}

button, input { font: inherit; }
.app { min-height: 100vh; }
.screen { display: none; min-height: 100vh; padding: 32px 20px; }
.screen.is-active { display: flex; align-items: center; justify-content: center; }
.shell { width: min(800px, 100%); margin: 0 auto; }

.eyebrow, .question-kicker {
  margin: 0 0 18px; color: var(--accent); font-size: 1rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
}

h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 20px; font-size: clamp(2.2rem, 5vw, 3.5rem); line-height: 1.1; font-weight: 800; color: #ffffff; }
.lead { margin-bottom: 32px; color: var(--muted); font-size: clamp(1.15rem, 2vw, 1.3rem); line-height: 1.5; }

.primary-btn {
  display: inline-flex; min-height: 60px; align-items: center; justify-content: center;
  border: 0; border-radius: 6px; background: var(--primary); color: #ffffff;
  cursor: pointer; font-weight: 800; font-size: 1.1rem; padding: 0 32px; text-decoration: none; text-transform: uppercase;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 15px rgba(230, 57, 70, 0.3);
}

.primary-btn:hover {
  background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(230, 57, 70, 0.5);
}

.fine-print { margin: 18px 0 0; color: #666; font-size: 0.85rem; }

.quiz-shell { padding-top: 18px; width: min(700px, 100%); }
.progress-wrap { margin-bottom: 28px; }
.progress-meta { display: flex; justify-content: space-between; margin-bottom: 10px; color: var(--muted); font-weight: 700; }
.progress-track { height: 8px; border-radius: 4px; background: #2a2a2a; }
.progress-fill { width: 0%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--primary)); transition: width 0.3s ease; }

.question-card, .result-hero {
  border: 1px solid var(--line); border-radius: 8px; background: var(--surface); padding: clamp(24px, 4vw, 44px); box-shadow: var(--shadow);
}

.question-card h2 { margin-bottom: 24px; font-size: clamp(1.5rem, 3vw, 2.2rem); line-height: 1.2; }

.options { display: grid; gap: 14px; }
.option-btn {
  width: 100%; min-height: 60px; border: 2px solid #333; border-radius: 6px; background: #222;
  color: var(--text); cursor: pointer; display: flex; align-items: center; padding: 16px 20px;
  text-align: left; font-size: 1.05rem; font-weight: 600; transition: all 0.2s;
}

.option-btn:hover, .option-btn.is-selected {
  border-color: var(--primary); background: rgba(230, 57, 70, 0.1);
}

.loader-mark {
  width: 80px; height: 80px; margin: 0 auto 28px; border: 8px solid #333; border-top-color: var(--primary); border-radius: 50%; animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.loading-shell h2 { font-size: 2rem; color: #fff; }
.loading-bar { height: 8px; background: #2a2a2a; border-radius: 4px; overflow: hidden; margin-top: 20px; }
.loading-bar div { width: 0; height: 100%; background: var(--primary); transition: width 0.5s; }

.result-hero h2 { color: #d32f2f; font-size: 2.2rem; }
.recommendation-copy { margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line); }
.recommendation-copy h3 { font-size: 1.5rem; margin-bottom: 12px; }
.result-actions { margin-top: 30px; display: flex; justify-content: center; }

.offer-btn {
  width: 100%; font-size: 1.3rem; padding: 20px 30px; animation: pulse-red 1.5s infinite; letter-spacing: 1px;
}

@keyframes pulse-red {
  0% { box-shadow: 0 0 0 0 rgba(211, 47, 47, 0.7); }
  70% { box-shadow: 0 0 0 20px rgba(211, 47, 47, 0); }
  100% { box-shadow: 0 0 0 0 rgba(211, 47, 47, 0); }
}