/* ========================================
   AJUSTANDO A ROTA — QUIZ FUNNEL v2.0
   Premium Cinematic Dark Mode
   ======================================== */

/* --- Design Tokens --- */
:root {
  --gold: #D4AF37;
  --gold-light: #F4E8C1;
  --gold-dim: rgba(212, 175, 55, 0.12);
  --gold-glow: rgba(212, 175, 55, 0.4);
  --dark-900: #050505;
  --dark-800: #0a0a0a;
  --dark-700: #111111;
  --dark-600: #1a1a1a;
  --dark-500: #222222;
  --dark-400: #2a2a2a;
  --dark-300: #333333;
  --text-primary: #f0f0f0;
  --text-secondary: #c0c0c0;
  --text-muted: #888888;
  --text-dim: #555555;
  --danger: #DC143C;
  --danger-glow: rgba(220, 20, 60, 0.3);
  --success: #22c55e;
  --success-glow: rgba(34, 197, 94, 0.3);
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);

  --font-display: 'Cinzel', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-editorial: 'Playfair Display', serif;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.4);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.5);
  --shadow-gold: 0 0 30px rgba(212, 175, 55, 0.15);
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --- Reset & Base --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

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

/* --- Film Grain Overlay --- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

#app { position: relative; z-index: 1; min-height: 100dvh; }

/* ========================================
   LOADING SCREEN
   ======================================== */
.loading-screen {
  position: fixed; inset: 0;
  background: var(--dark-900);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  z-index: 10000;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
.loading-screen.hidden { opacity: 0; visibility: hidden; pointer-events: none !important; }
.loading-logo {
  font-family: var(--font-display);
  color: var(--gold);
  font-size: 1.5rem;
  letter-spacing: 3px;
  margin-bottom: 2rem;
  text-transform: uppercase;
}
.loading-spinner {
  width: 44px; height: 44px;
  border: 2px solid var(--dark-400);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ========================================
   PROGRESS BAR
   ======================================== */
.progress-container {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(5, 5, 5, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
}
.progress-inner { max-width: 600px; margin: 0 auto; padding: 12px 20px 10px; }
.progress-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.progress-label {
  font-size: 0.7rem; font-weight: 600; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--gold);
  font-family: var(--font-display);
}
.progress-count { font-size: 0.75rem; color: var(--text-muted); font-weight: 500; font-variant-numeric: tabular-nums; }
.progress-track { width: 100%; height: 4px; background: var(--dark-400); border-radius: var(--radius-full); overflow: hidden; }
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), #e6c84d);
  border-radius: var(--radius-full);
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative; width: 0%;
}
.progress-fill::after {
  content: ''; position: absolute; right: 0; top: -1px;
  width: 6px; height: 6px;
  background: var(--gold-light);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--gold-glow);
}

/* ========================================
   SCREEN SYSTEM
   ======================================== */
.screen {
  min-height: 100dvh; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 80px 20px 40px; position: relative;
  opacity: 0; transform: translateX(40px);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.screen.active { opacity: 1; transform: translateX(0); }
.screen.exit-left { opacity: 0; transform: translateX(-40px); }
.screen-content { width: 100%; max-width: 520px; margin: 0 auto; }

/* ========================================
   WELCOME SCREEN
   ======================================== */
.welcome-screen {
  text-align: center;
  justify-content: center;
  padding-top: 40px;
  background: radial-gradient(ellipse at 50% 30%, rgba(212,175,55,0.06) 0%, transparent 70%);
}
.welcome-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(8px);
  color: var(--gold);
  padding: 8px 18px; border-radius: var(--radius-full);
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase;
  margin-bottom: 2.5rem;
  animation: fadeInDown 0.6s ease forwards;
}
.welcome-screen h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 6vw, 2.8rem);
  color: var(--gold-light);
  line-height: 1.25;
  margin-bottom: 1rem;
  animation: fadeInDown 0.6s 0.15s ease forwards;
  opacity: 0;
}
.welcome-subtitle {
  font-size: 1.05rem; color: var(--text-muted);
  max-width: 320px; margin: 0 auto 2.5rem;
  line-height: 1.7;
  animation: fadeInDown 0.6s 0.25s ease forwards;
  opacity: 0;
}
.welcome-time {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; font-size: 0.8rem; color: var(--text-dim);
  margin-top: 1.5rem;
  animation: fadeInDown 0.6s 0.45s ease forwards;
  opacity: 0;
}

/* ========================================
   BUTTONS
   ======================================== */
.btn-primary {
  appearance: none; border: none;
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--gold) 0%, #B8941F 100%);
  color: var(--dark-900);
  font-family: var(--font-body);
  font-weight: 700; font-size: 0.85rem;
  padding: 13px 28px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.2);
  letter-spacing: 1px;
  width: 100%; max-width: 400px;
  text-transform: uppercase;
  position: relative; overflow: hidden;
  animation: fadeInDown 0.6s 0.35s ease both;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.btn-primary::before {
  content: ''; position: absolute; top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}
.btn-primary:hover::before { left: 100%; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(212, 175, 55, 0.35); }
.btn-primary:active { transform: translateY(0); box-shadow: 0 4px 16px rgba(212, 175, 55, 0.2); }

.btn-cta {
  background: linear-gradient(135deg, var(--success) 0%, #16a34a 100%);
  box-shadow: 0 4px 16px var(--success-glow);
  font-size: 0.85rem; padding: 13px 28px;
  animation: ctaPulse 3s ease-in-out infinite;
  opacity: 1;
}
@keyframes ctaPulse {
  0%, 100% { box-shadow: 0 8px 24px var(--success-glow); }
  50% { box-shadow: 0 8px 40px rgba(34, 197, 94, 0.5); }
}
.btn-cta:hover { box-shadow: 0 12px 32px rgba(34, 197, 94, 0.5); animation: none; }

.btn-arrow { font-size: 1.2rem; transition: transform var(--transition-fast); }
.btn-primary:hover .btn-arrow { transform: translateX(4px); }

/* ========================================
   QUESTION SCREEN
   ======================================== */
.question-block-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1rem;
  font-family: var(--font-display);
}
.question-number {
  font-size: 0.7rem; color: var(--text-dim);
  font-weight: 500; margin-bottom: 1.2rem;
  font-variant-numeric: tabular-nums;
}
.question-text {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 3.5vw, 1.5rem);
  color: var(--text-primary);
  line-height: 1.4; margin-bottom: 2rem; text-align: left;
}

/* --- Glass Options --- */
.options { display: flex; flex-direction: column; gap: 12px; }
.option {
  appearance: none;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--text-secondary);
  padding: 18px 20px; border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.95rem; line-height: 1.5;
  text-align: left; cursor: pointer;
  transition: all var(--transition-fast);
  display: flex; align-items: center; gap: 14px;
  position: relative; overflow: hidden;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.option::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.08) 0%, transparent 100%);
  opacity: 0; transition: opacity var(--transition-fast);
}
.option:hover {
  border-color: rgba(212, 175, 55, 0.4);
  background: rgba(255, 255, 255, 0.05);
  transform: translateX(4px);
}
.option:hover::before { opacity: 1; }
.option:active { transform: scale(0.98) translateX(4px); }
.option.selected {
  border-color: var(--gold);
  background: rgba(212, 175, 55, 0.08);
  color: var(--gold-light);
  box-shadow: var(--shadow-gold);
}
.option-letter {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  color: var(--text-muted); font-weight: 700; font-size: 0.8rem;
  flex-shrink: 0; transition: all var(--transition-fast);
  position: relative; z-index: 1;
}
.option.selected .option-letter { background: var(--gold); color: var(--dark-900); }
.option-text { position: relative; z-index: 1; }

/* ========================================
   TRANSITION SCREEN (Mini-Diagnóstico)
   ======================================== */
.transition-screen {
  text-align: center;
  background: radial-gradient(ellipse at 50% 30%, rgba(212,175,55,0.05) 0%, transparent 70%);
}
.transition-icon { font-size: 3rem; margin-bottom: 1.5rem; animation: pulseScale 2s ease-in-out infinite; }
@keyframes pulseScale { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.1); } }

.transition-badge {
  display: inline-block;
  background: rgba(220, 20, 60, 0.12);
  border: 1px solid rgba(220, 20, 60, 0.25);
  color: #ff6b6b;
  padding: 6px 16px; border-radius: var(--radius-full);
  font-size: 0.65rem; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.transition-title {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 4vw, 1.7rem);
  color: var(--gold-light); line-height: 1.35; margin-bottom: 1.5rem;
}
.transition-text {
  font-size: 0.95rem; color: var(--text-muted);
  line-height: 1.8; margin-bottom: 2.5rem;
  max-width: 440px; margin-left: auto; margin-right: auto;
}
.transition-text em { color: var(--gold); font-style: italic; font-family: var(--font-editorial); font-weight: 400; }

/* --- Divider --- */
.divider {
  display: flex; align-items: center; gap: 16px;
  margin: 2rem 0; color: var(--text-dim);
  font-size: 0.7rem; letter-spacing: 2px;
  text-transform: uppercase; font-weight: 600;
}
.divider::before, .divider::after {
  content: ''; flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, var(--dark-400), transparent);
}

/* --- Testimonial Cards (glass) --- */
.testimonials-mini { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 2.5rem; }
.testimonial-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: var(--radius-md);
  padding: 18px; text-align: left; position: relative;
}
.testimonial-card::before {
  content: '"'; font-family: var(--font-editorial);
  font-size: 3rem; color: var(--gold); opacity: 0.15;
  position: absolute; top: 4px; left: 14px; line-height: 1;
}
.testimonial-quote {
  font-size: 0.82rem; color: var(--text-secondary);
  font-style: italic; font-family: var(--font-editorial);
  line-height: 1.6; margin-bottom: 12px;
  position: relative; z-index: 1;
}
.testimonial-author { display: flex; align-items: center; gap: 10px; }
.testimonial-avatar-img {
  width: 36px; height: 36px; border-radius: 50%;
  object-fit: cover; border: 1.5px solid var(--gold); flex-shrink: 0;
}
.testimonial-name { font-size: 0.75rem; color: var(--gold-light); font-weight: 600; }
.testimonial-stars { font-size: 0.65rem; color: var(--gold); letter-spacing: 2px; }

/* ========================================
   CALCULATING SCREEN
   ======================================== */
.calculating-screen { text-align: center; justify-content: center; }
.calc-icon { font-size: 3.5rem; margin-bottom: 2rem; animation: pulseScale 1.5s ease-in-out infinite; }
.calc-title { font-family: var(--font-display); font-size: clamp(1.3rem, 4vw, 1.8rem); color: var(--gold-light); margin-bottom: 0.5rem; }
.calc-subtitle { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 2.5rem; }
.calc-progress { width: 100%; max-width: 320px; margin: 0 auto 1.5rem; }
.calc-bar-track { width: 100%; height: 6px; background: var(--dark-400); border-radius: var(--radius-full); overflow: hidden; margin-bottom: 12px; }
.calc-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), #e6c84d, var(--gold));
  background-size: 200% 100%;
  border-radius: var(--radius-full); width: 0%;
  transition: width 0.3s ease;
  animation: shimmerGold 2s linear infinite;
}
@keyframes shimmerGold { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.calc-percent { font-size: 0.85rem; color: var(--gold); font-weight: 600; font-variant-numeric: tabular-nums; }
.calc-steps { display: flex; flex-direction: column; gap: 10px; max-width: 300px; margin: 0 auto; }
.calc-step { display: flex; align-items: center; gap: 10px; font-size: 0.8rem; color: var(--text-dim); transition: color 0.3s ease; }
.calc-step.active { color: var(--text-secondary); }
.calc-step.done { color: var(--success); }
.calc-step-icon { width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; font-size: 0.75rem; }

/* ========================================
   RESULTS SCREEN — BASE
   ======================================== */
.results-screen { min-height: auto; padding: 40px 16px; justify-content: flex-start; }
.results-content { width: 100%; max-width: 600px; margin: 0 auto; }

/* --- Scroll Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* --- Results Header --- */
.results-header { text-align: center; margin-bottom: 2rem; padding-bottom: 2rem; border-bottom: 1px solid var(--dark-400); }
.results-badge {
  display: inline-block;
  background: rgba(220, 20, 60, 0.12);
  border: 1px solid rgba(220, 20, 60, 0.25);
  color: #ff6b6b;
  padding: 6px 16px; border-radius: var(--radius-full);
  font-size: 0.65rem; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  margin-bottom: 1rem;
}
.results-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 4.5vw, 2rem);
  color: var(--gold-light); margin-bottom: 0.8rem; line-height: 1.3;
}
.results-subtitle { font-size: 0.95rem; color: var(--text-muted); line-height: 1.6; }

/* --- Score Gauge --- */
.score-gauge { text-align: center; margin-bottom: 2.5rem; }
.gauge-circle { width: 160px; height: 160px; margin: 0 auto 1rem; position: relative; }
.gauge-circle svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.gauge-bg { fill: none; stroke: var(--dark-400); stroke-width: 6; }
.gauge-fill {
  fill: none; stroke: var(--danger); stroke-width: 6;
  stroke-linecap: round; stroke-dasharray: 440;
  stroke-dashoffset: 440;
  transition: stroke-dashoffset 2s cubic-bezier(0.4, 0, 0.2, 1);
}
.gauge-label { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.gauge-score { font-family: var(--font-display); font-size: 2.5rem; font-weight: 700; color: var(--danger); line-height: 1; }
.gauge-max { font-size: 0.75rem; color: var(--text-dim); margin-top: 2px; }
.gauge-status { font-size: 0.85rem; font-weight: 600; color: #ff6b6b; margin-top: 0.5rem; }

/* --- Diagnostic Cards (glass) --- */
.diagnostic-section { margin-bottom: 1.5rem; }
.diagnostic-section-title {
  font-family: var(--font-display);
  font-size: 0.75rem; color: var(--gold);
  letter-spacing: 2px; text-transform: uppercase;
  margin-bottom: 0.8rem;
  display: flex; align-items: center; gap: 8px;
}
.diag-icon { width: 18px; height: 18px; stroke: var(--gold); }
.diagnostic-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(8px);
  border-left: 3px solid var(--danger);
  border-radius: var(--radius-md);
  padding: 20px; margin-bottom: 12px;
}
.diagnostic-card-title { font-size: 0.85rem; font-weight: 700; color: var(--text-primary); margin-bottom: 6px; }
.diagnostic-card-text { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; }
.diagnostic-meter { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.diagnostic-meter-track { flex: 1; height: 4px; background: var(--dark-400); border-radius: var(--radius-full); overflow: hidden; }
.diagnostic-meter-fill { height: 100%; background: var(--danger); border-radius: var(--radius-full); width: 0%; transition: width 1.5s ease; }
.diagnostic-meter-label { font-size: 0.7rem; color: #ff6b6b; font-weight: 600; white-space: nowrap; }

/* ========================================
   RESULTS — SECTION SYSTEM
   ======================================== */
.r-section {
  margin-bottom: 3rem; padding-bottom: 2rem;
  position: relative;
}
/* Decorative separator between sections */
.r-section::after {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 2rem auto 0;
}
.r-section-label {
  font-family: var(--font-display);
  font-size: 0.65rem; font-weight: 700;
  letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--gold); text-align: center;
  margin-bottom: 0.8rem;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.r-section-label .lucide { width: 14px; height: 14px; }
.r-section-title {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 3.5vw, 1.6rem);
  color: var(--gold-light); text-align: center;
  line-height: 1.35; margin-bottom: 1rem;
}
.r-section-text {
  font-size: 0.9rem; color: var(--text-muted);
  text-align: center; line-height: 1.7;
  max-width: 500px; margin-left: auto; margin-right: auto;
}
.r-section-text strong { color: var(--gold); font-weight: 600; }

/* --- Inline CTA --- */
.results-cta-inline {
  text-align: center; padding: 2.5rem 0; margin: 2rem 0;
  position: relative;
}
.results-cta-inline::before,
.results-cta-inline::after {
  content: ''; position: absolute; left: 50%; transform: translateX(-50%);
  width: 60px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--dark-400), transparent);
}
.results-cta-inline::before { top: 0; }
.results-cta-inline::after { bottom: 0; }

.secure-badge {
  display: flex; align-items: center; justify-content: center;
  gap: 6px; font-size: 0.75rem; color: var(--text-dim); margin-top: 1rem;
}

/* ========================================
   RESULTS — PHASES
   ======================================== */
.r-phase {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(8px);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-md);
  padding: 20px; margin-bottom: 12px;
  transition: border-color var(--transition-fast), transform var(--transition-fast);
}
.r-phase:hover { border-color: rgba(212,175,55,0.4); transform: translateX(4px); }
.r-phase-header { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.r-phase-num {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: var(--gold-dim);
  border: 1px solid rgba(212,175,55,0.2);
  color: var(--gold); font-family: var(--font-display);
  font-weight: 700; font-size: 0.85rem; flex-shrink: 0;
}
.r-phase-name {
  font-family: var(--font-display);
  font-size: 0.85rem; font-weight: 700;
  color: var(--gold-light); letter-spacing: 1px;
}
.r-phase-days {
  display: inline-block;
  background: var(--gold-dim); color: var(--gold);
  padding: 2px 10px; border-radius: var(--radius-full);
  font-size: 0.65rem; font-weight: 600; margin-top: 2px;
}
.r-phase-desc { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; }
.r-phase-desc strong { color: var(--text-primary); }

/* ========================================
   RESULTS — PRODUCTS (Bento Grid)
   ======================================== */
.r-product-hero { text-align: center; margin-bottom: 1.5rem; }
.r-product-hero-img {
  max-width: 100%; height: auto; max-height: 300px;
  border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
}
.r-products-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 12px;
}
.r-product-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-md);
  padding: 20px; text-align: left;
  transition: border-color var(--transition-fast), transform var(--transition-fast);
}
.r-product-card:hover { border-color: rgba(212,175,55,0.3); transform: translateY(-4px); }
.r-product-card:first-child {
  grid-column: 1 / -1;
  display: flex; align-items: center; gap: 16px;
  background: linear-gradient(135deg, rgba(212,175,55,0.06), transparent 70%);
  border-color: rgba(212,175,55,0.15);
}
.r-product-icon {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: var(--gold-dim);
  border: 1px solid rgba(212,175,55,0.2);
  flex-shrink: 0;
}
.r-product-icon .lucide { width: 20px; height: 20px; stroke: var(--gold); }
.r-product-card h4 { font-size: 0.82rem; color: var(--gold-light); margin-bottom: 4px; font-weight: 600; }
.r-product-card p { font-size: 0.75rem; color: var(--text-muted); line-height: 1.5; }

/* ========================================
   RESULTS — BONUSES
   ======================================== */
.r-bonus-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.r-bonus-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-md);
  padding: 20px; text-align: center; position: relative;
  overflow: hidden;
}
.r-bonus-card::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
}
.r-bonus-tag {
  position: absolute; top: 8px; right: 8px;
  background: linear-gradient(135deg, var(--gold) 0%, #B8941F 100%);
  color: var(--dark-900);
  padding: 3px 10px; border-radius: var(--radius-full);
  font-size: 0.55rem; font-weight: 700; letter-spacing: 0.5px;
}
.r-bonus-img { width: 64px; height: 64px; object-fit: contain; margin: 12px auto 10px; display: block; }
.r-bonus-card h4 { font-size: 0.78rem; color: var(--gold-light); margin-bottom: 6px; font-weight: 600; }
.r-bonus-card p { font-size: 0.72rem; color: var(--text-muted); line-height: 1.5; }

/* ========================================
   RESULTS — BOOKS
   ======================================== */
.r-books-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.r-book { text-align: center; }
.r-book-img {
  width: 100%; max-width: 140px; height: auto;
  border-radius: var(--radius-sm); box-shadow: var(--shadow-md);
  transition: transform var(--transition-fast);
}
.r-book-img:hover { transform: translateY(-6px) scale(1.03); }
.r-book p { font-size: 0.7rem; color: var(--text-muted); margin-top: 8px; line-height: 1.4; }
.r-bundle-img {
  max-width: 100%; height: auto; max-height: 400px;
  border-radius: var(--radius-md); box-shadow: var(--shadow-lg); margin-top: 1rem;
}

/* ========================================
   RESULTS — PRICE TABLE (Premium)
   ======================================== */
.r-price-table {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-lg); overflow: hidden;
}
.r-price-table-header {
  background: linear-gradient(135deg, var(--gold) 0%, #B8941F 100%);
  color: var(--dark-900);
  padding: 14px 20px;
  font-family: var(--font-display);
  font-size: 0.85rem; font-weight: 700; text-align: center;
}
.r-price-table-body { padding: 12px 20px; }
.r-price-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.04); font-size: 0.82rem;
}
.r-price-item:last-child { border-bottom: none; }
.r-price-item-info { display: flex; align-items: center; gap: 8px; color: var(--text-secondary); }
.r-price-item-info .lucide { width: 16px; height: 16px; stroke: var(--gold); }
.r-price-item-value { color: var(--text-dim); text-decoration: line-through; font-weight: 600; font-size: 0.8rem; }
.r-price-total {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--gold-dim);
  border: 1px solid rgba(212, 175, 55, 0.2);
  padding: 14px 20px; margin: 8px 16px 16px;
  border-radius: var(--radius-md);
  font-weight: 700; color: var(--gold);
  font-family: var(--font-display); font-size: 0.9rem;
}
.r-price-offer {
  text-align: center; padding: 24px 20px;
  border-top: 2px solid var(--success);
  background: rgba(34, 197, 94, 0.03);
}
.r-price-offer-label { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 6px; letter-spacing: 1px; text-transform: uppercase; }
.r-price-offer-price { font-family: var(--font-display); font-size: 2.8rem; font-weight: 700; color: var(--success); }
.r-price-offer-installment { font-size: 0.8rem; color: var(--text-muted); margin-top: 4px; margin-bottom: 20px; }
.r-price-offer .btn-cta { margin: 0 auto; }

/* ========================================
   RESULTS — TESTIMONIALS
   ======================================== */
.r-testimonials-grid { display: flex; flex-direction: column; gap: 14px; }
.r-testimonial-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-md); padding: 20px;
  position: relative; text-align: left;
}
.r-testimonial-card::before {
  content: '"'; font-family: var(--font-editorial);
  font-size: 3rem; color: var(--gold); opacity: 0.12;
  position: absolute; top: 4px; left: 14px; line-height: 1;
}
.r-testimonial-card .testimonial-stars { margin-bottom: 8px; }
.r-testimonial-card .testimonial-quote {
  font-size: 0.84rem; color: var(--text-secondary);
  font-style: italic; font-family: var(--font-editorial);
  line-height: 1.65; margin-bottom: 14px;
  position: relative; z-index: 1;
}
.r-testimonial-card .testimonial-author { display: flex; align-items: center; gap: 10px; }
.r-testimonial-card .testimonial-avatar-img {
  width: 42px; height: 42px; border-radius: 50%;
  object-fit: cover; border: 2px solid var(--gold); flex-shrink: 0;
}
.r-testimonial-card .testimonial-name { font-size: 0.78rem; color: var(--gold-light); font-weight: 600; }
.r-testimonial-card .testimonial-meta { font-size: 0.68rem; color: var(--text-dim); }

/* ========================================
   RESULTS — AUTHOR (Editorial Layout)
   ======================================== */
.r-author {
  display: flex; flex-direction: column;
  gap: 24px; align-items: center;
}
.r-author-image-wrap { position: relative; text-align: center; }
.r-author-img {
  width: 180px; height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--gold);
  box-shadow: 0 0 40px rgba(212,175,55,0.15);
}
.r-author-badge {
  position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%);
  background: var(--gold); color: var(--dark-900);
  padding: 4px 14px; border-radius: var(--radius-full);
  font-size: 0.6rem; font-weight: 700; white-space: nowrap;
}
.r-author-content { text-align: center; }
.r-author-content h3 {
  font-family: var(--font-display); color: var(--gold);
  font-size: 1.4rem; margin-bottom: 4px;
}
.r-author-credentials {
  font-size: 0.72rem; color: var(--text-muted); font-weight: 500;
  margin-bottom: 1.2rem; letter-spacing: 0.5px;
}
.r-author-quote {
  font-family: var(--font-editorial); font-style: italic;
  font-size: 1.1rem; color: var(--gold-light);
  line-height: 1.6; margin-bottom: 1.2rem;
  padding: 0 1rem;
  border-left: 2px solid var(--gold);
  text-align: left;
}
.r-author-content p {
  font-size: 0.85rem; color: var(--text-muted);
  line-height: 1.7; margin-bottom: 10px; text-align: left;
}
.r-author-content p strong { color: var(--gold); }
.r-author-signature {
  font-family: var(--font-editorial); font-style: italic;
  color: var(--gold); font-size: 1.3rem; margin-top: 12px;
}

/* ========================================
   RESULTS — OFFER BOX (Premium Card)
   ======================================== */
.r-offer-box {
  position: relative;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-lg);
  padding: 32px 24px; text-align: center;
  overflow: hidden;
}
/* Animated gradient border */
.r-offer-box::before {
  content: ''; position: absolute; inset: 0;
  border-radius: var(--radius-lg);
  padding: 2px;
  background: linear-gradient(135deg, var(--gold), rgba(212,175,55,0.2), var(--gold), rgba(212,175,55,0.2));
  background-size: 300% 300%;
  animation: gradientBorder 4s ease infinite;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}
@keyframes gradientBorder {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.price-label-small { font-size: 0.75rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 6px; }
.price-old { font-size: 1.2rem; color: var(--text-dim); text-decoration: line-through; margin-bottom: 0.3rem; position: relative; }
.price-current { font-family: var(--font-display); font-size: 3.2rem; font-weight: 700; color: var(--gold); margin-bottom: 0.3rem; }
.price-installment { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1rem; }
.price-savings {
  display: inline-block;
  background: rgba(34, 197, 94, 0.1); border: 1px solid rgba(34, 197, 94, 0.25);
  color: var(--success);
  padding: 6px 16px; border-radius: var(--radius-full);
  font-size: 0.8rem; font-weight: 700;
}

/* ========================================
   RESULTS — GUARANTEE
   ======================================== */
.r-guarantee {
  display: flex; gap: 20px; align-items: flex-start;
  background: var(--glass-bg);
  border: 1px solid rgba(212, 175, 55, 0.15);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-lg);
  padding: 24px; margin: 2rem 0;
}
.r-guarantee-img { width: 80px; height: auto; flex-shrink: 0; }
.guarantee-title { font-family: var(--font-display); font-size: 1rem; color: var(--gold); margin-bottom: 0.5rem; }
.guarantee-text { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; }
@media (max-width: 480px) {
  .r-guarantee { flex-direction: column; align-items: center; text-align: center; }
}

/* ========================================
   RESULTS — FAQ
   ======================================== */
.r-faq-list { display: flex; flex-direction: column; gap: 8px; }
.r-faq-item {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-md); overflow: hidden; cursor: pointer;
}
.r-faq-q {
  padding: 16px 20px; display: flex; justify-content: space-between; align-items: center;
  font-weight: 600; font-size: 0.85rem; color: var(--gold-light);
  transition: background var(--transition-fast);
}
.r-faq-q:hover { background: rgba(255,255,255,0.03); }
.r-faq-arrow { font-size: 0.7rem; transition: transform 0.3s ease; color: var(--text-dim); }
.r-faq-item.open .r-faq-arrow { transform: rotate(180deg); }
.r-faq-a {
  max-height: 0; overflow: hidden; padding: 0 20px;
  font-size: 0.82rem; color: var(--text-muted); line-height: 1.6;
  transition: max-height 0.3s ease, padding 0.3s ease;
}
.r-faq-item.open .r-faq-a { max-height: 300px; padding: 0 20px 16px; }

/* ========================================
   RESULTS — FINAL CTA
   ======================================== */
.r-final-cta { text-align: center; padding: 2.5rem 0; margin: 1rem 0 2rem; }

/* ========================================
   RESULTS — FOOTER
   ======================================== */
.r-footer {
  text-align: center; padding: 2rem 0 1rem;
  border-top: 1px solid var(--glass-border); margin-top: 1rem;
}
.r-footer-logo { height: 40px; width: auto; margin-bottom: 1rem; filter: drop-shadow(0 0 15px rgba(212, 175, 55, 0.2)); }
.r-footer p { font-size: 0.78rem; color: var(--text-muted); max-width: 400px; margin: 0 auto 1rem; line-height: 1.5; }
.r-footer-social { display: flex; justify-content: center; gap: 10px; margin-bottom: 1rem; }
.r-footer-social a {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); text-decoration: none;
  font-size: 0.7rem; font-weight: 700;
  transition: all var(--transition-fast);
}
.r-footer-social a:hover { background: var(--gold); color: var(--dark-900); border-color: var(--gold); }
.r-footer small { font-size: 0.68rem; color: var(--text-dim); line-height: 1.6; }

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.anim-fade-in-up { opacity: 0; animation: fadeInUp 0.5s ease both; }
.anim-delay-1 { animation-delay: 0.1s; }
.anim-delay-2 { animation-delay: 0.2s; }
.anim-delay-3 { animation-delay: 0.3s; }
.anim-delay-4 { animation-delay: 0.4s; }
.anim-delay-5 { animation-delay: 0.5s; }
.anim-delay-6 { animation-delay: 0.6s; }

/* ========================================
   RESPONSIVE — DESKTOP
   ======================================== */
@media (min-width: 768px) {
  .screen { padding: 100px 40px 60px; }
  .welcome-screen { padding-top: 100px; }
  .screen-content { max-width: 560px; }
  .option { padding: 20px 24px; }
  .testimonials-mini { grid-template-columns: 1fr 1fr; }
  .testimonial-card { flex: 1; }
  .results-content { max-width: 680px; }
  .btn-primary { max-width: 480px; }
  .r-author { flex-direction: row; align-items: flex-start; text-align: left; }
  .r-author-content { text-align: left; }
  .r-testimonials-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
}

@media (min-width: 1024px) {
  .progress-inner { padding: 16px 20px 12px; }
  .screen-content { max-width: 600px; }
  .results-content { max-width: 740px; }
}

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--dark-800); }
::-webkit-scrollbar-thumb { background: var(--dark-400); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--dark-300); }

::selection { background: rgba(212, 175, 55, 0.3); color: var(--gold-light); }
*:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.hidden { display: none !important; }

@media (hover: none) {
  .option:hover { transform: none; border-color: var(--glass-border); background: var(--glass-bg); }
  .option:hover::before { opacity: 0; }
  .option:active { transform: scale(0.98); border-color: rgba(212, 175, 55, 0.5); background: rgba(255,255,255,0.05); }
  .r-phase:hover { transform: none; }
  .r-product-card:hover { transform: none; }
}

/* --- Reduced Motion: ensure elements are always visible --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .btn-primary, .welcome-badge, .welcome-screen h1,
  .welcome-subtitle, .welcome-time, .anim-fade-in-up {
    opacity: 1 !important;
    transform: none !important;
  }
  .screen.active { opacity: 1; transform: none; }
}
