:root {
  --bg-primary: #faf7f2;
  --bg-card: rgba(91, 117, 83, 0.06);
  --bg-card-hover: rgba(91, 117, 83, 0.12);
  --text-primary: #2c2420;
  --text-secondary: #5a4e44;
  --text-muted: #8a7d73;
  --accent-sage: #5b7553;
  --accent-sage-hover: #476340;
  --accent-taupe: #a68b6b;
  --accent-rose-soft: #c4828a;
  --accent-green: #5b7553;
  --border-subtle: #e8ddd3;
  --shadow-glow: 0 4px 24px rgba(91, 117, 83, 0.15);
  --font-serif: 'Crimson Pro', Georgia, serif;
  --font-sans: 'Inter', -apple-system, sans-serif;
  --radius: 12px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

.particles {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: rgba(166, 139, 107, 0.25);
  border-radius: 50%;
  animation: float linear infinite;
}

@keyframes float {
  0% { transform: translateY(100vh) translateX(0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-10vh) translateX(100px); opacity: 0; }
}

/* Progress Bar */
.progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-taupe), var(--accent-sage), var(--accent-taupe));
  transition: width 0.5s ease;
  z-index: 100;
}

/* Container */
.quiz-container {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin: 0 auto;
  padding: 40px 20px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Screens */
.screen {
  display: none;
  animation: fadeIn 0.5s ease;
}
.screen.active { display: block; }

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

/* Landing */
.landing-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.landing h1 {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 12px;
}

.landing .subtitle {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 32px;
}

.landing .social-proof {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 32px;
}

.landing .social-proof .dot {
  width: 8px;
  height: 8px;
  background: var(--accent-sage);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Questions */
.question-number {
  color: var(--accent-sage);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.question-text {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 8px;
}

.question-hint {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 28px;
}

/* Answer Options */
.options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.option {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 16px 20px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 15px;
  line-height: 1.4;
}

.option:hover {
  background: var(--bg-card-hover);
  border-color: rgba(91, 117, 83, 0.3);
  transform: translateX(4px);
}

.option.selected {
  background: rgba(91, 117, 83, 0.10);
  border-color: var(--accent-sage);
}

.option-emoji {
  font-size: 22px;
  flex-shrink: 0;
}

.option-text {
  flex: 1;
}

.multi-check {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-sage);
  opacity: 0;
  transition: opacity 0.2s;
}

.option.selected .multi-check {
  opacity: 1;
}

.back-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 14px;
  cursor: pointer;
  padding: 0 0 16px 0;
  display: block;
  opacity: 0.6;
  transition: opacity 0.2s;
}
.back-btn:hover { opacity: 1; }

.interstitial-footer {
  margin-top: 20px;
}
.interstitial-progress-bar {
  width: 100%;
  height: 4px;
  background: rgba(91,117,83,0.15);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 10px;
}
.interstitial-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--accent-sage);
  border-radius: 2px;
}
.continue-label {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  opacity: 0.7;
}

/* Text Input */
.text-input {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 16px 20px;
  color: var(--text-primary);
  font-size: 18px;
  font-family: var(--font-serif);
  outline: none;
  transition: var(--transition);
}

.text-input:focus {
  border-color: var(--accent-sage);
  box-shadow: 0 0 0 3px rgba(91, 117, 83, 0.1);
}

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

/* Buttons */
.btn-primary {
  width: 100%;
  background: var(--accent-sage);
  color: white;
  border: none;
  border-radius: var(--radius);
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 24px;
}

.btn-primary:hover {
  background: var(--accent-sage-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-glow);
}

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

/* Interstitial */
.interstitial {
  text-align: center;
  padding: 40px 0;
}

.interstitial-icon {
  font-size: 56px;
  margin-bottom: 24px;
  animation: breathe 3s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.interstitial h2 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 16px;
}

.interstitial .insight {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 20px;
  margin: 24px 0;
  font-family: var(--font-serif);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-secondary);
  font-style: italic;
}

.loading-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.loading-dots span {
  width: 8px;
  height: 8px;
  background: var(--accent-taupe);
  border-radius: 50%;
  animation: loadDot 1.4s ease-in-out infinite;
}
.loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.loading-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes loadDot {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}

/* Results Page */
.results-header {
  text-align: center;
  margin-bottom: 36px;
}

.results-header h1 {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 600;
  margin-bottom: 8px;
}

.results-header .personalized {
  color: var(--accent-taupe);
  font-size: 14px;
}

.result-section {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 16px;
}

.result-section h3 {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.result-section p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.7;
}

.result-section .open-loop {
  color: var(--accent-rose-soft);
  font-weight: 500;
  font-style: italic;
  margin-top: 12px;
  display: block;
}

.score-bar {
  height: 8px;
  background: rgba(255,255,255,0.06);
  border-radius: 4px;
  margin: 12px 0;
  overflow: hidden;
}

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

.score-fill.low { background: var(--accent-sage); }
.score-fill.mid { background: var(--accent-taupe); }
.score-fill.high { background: var(--accent-rose-soft); }

/* Offer Page */
.offer-section {
  background: linear-gradient(135deg, rgba(91,117,83,0.06), rgba(166,139,107,0.06));
  border: 1px solid rgba(91,117,83,0.15);
  border-radius: var(--radius);
  padding: 32px 24px;
  margin-top: 32px;
  text-align: center;
}

.offer-section h2 {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 8px;
}

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

.value-stack {
  text-align: left;
  margin: 24px 0;
}

.value-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.value-item:last-child { border-bottom: none; }

.value-item .item-name {
  font-size: 14px;
  flex: 1;
  padding-right: 16px;
}

.value-item .item-value {
  color: var(--text-muted);
  font-size: 14px;
  text-decoration: line-through;
  white-space: nowrap;
}

.value-total {
  display: flex;
  justify-content: space-between;
  padding: 16px 0;
  border-top: 2px solid var(--accent-taupe);
  margin-top: 8px;
  font-weight: 600;
}

.value-total .total-value {
  color: var(--text-muted);
  text-decoration: line-through;
}

/* Pricing */
.pricing {
  margin: 28px 0;
}

.price-original {
  font-size: 18px;
  color: var(--text-muted);
  text-decoration: line-through;
  margin-bottom: 4px;
}

.price-current {
  font-size: 42px;
  font-weight: 700;
  color: var(--accent-taupe);
}

.price-current .currency {
  font-size: 24px;
  vertical-align: top;
  margin-right: 2px;
}

.price-savings {
  display: inline-block;
  background: rgba(91, 117, 83, 0.12);
  color: var(--accent-sage);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-top: 8px;
}

/* Countdown */
.countdown {
  background: rgba(196, 130, 138, 0.1);
  border: 1px solid rgba(196, 130, 138, 0.25);
  border-radius: 8px;
  padding: 12px;
  margin: 20px 0;
  font-size: 14px;
}

.countdown .timer {
  font-size: 24px;
  font-weight: 700;
  color: var(--accent-rose-soft);
  font-variant-numeric: tabular-nums;
}

.countdown .timer-label {
  color: var(--text-muted);
  font-size: 12px;
}

/* Guarantee */
.guarantee {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 20px;
  margin: 20px 0;
  text-align: center;
}

.guarantee-icon { font-size: 32px; margin-bottom: 8px; }

.guarantee h4 {
  font-family: var(--font-serif);
  font-size: 16px;
  margin-bottom: 8px;
  color: var(--accent-sage);
}

.guarantee p {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.6;
}

/* Social proof footer */
.social-proof-bar {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
}

.social-proof-bar .proof-item {
  text-align: center;
}

.social-proof-bar .proof-number {
  font-size: 20px;
  font-weight: 700;
  color: var(--accent-taupe);
}

.social-proof-bar .proof-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Footer */
.quiz-footer {
  text-align: center;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 12px;
}

/* Date input */
.date-inputs {
  display: flex;
  gap: 10px;
}

.date-inputs select,
.date-inputs input[type="number"] {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 14px 12px;
  color: var(--text-primary);
  font-size: 16px;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.date-inputs select:focus,
.date-inputs input[type="number"]:focus {
  border-color: var(--accent-sage);
}

/* Responsive */
@media (max-width: 480px) {
  .quiz-container { padding: 24px 16px; }
  .landing h1 { font-size: 24px; }
  .question-text { font-size: 20px; }
  .price-current { font-size: 36px; }
  .social-proof-bar { gap: 16px; }
}
