/* =================================================================
   LICITA AI PRO — FUNIL DE VENDAS
   Design system: dark mode cinematográfico
   ================================================================= */

:root {
  --bg-main: #0a0a0a;
  --bg-secondary: #121212;
  --bg-card: #1a1a1a;
  --gold: #d4af37;
  --gold-soft: rgba(212, 175, 55, 0.12);
  --text-primary: #ffffff;
  --text-secondary: #b0b0b0;
  --border: #2a2a2a;
  --success: #23a559;
  --error: #ef4444;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-width: 450px;

  --space-screen-x: clamp(16px, 5vw, 20px);
  --space-screen-y: clamp(24px, 6vh, 32px);
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg-main);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
  min-width: 0;
}

img { max-width: 100%; display: block; }

button, a {
  font-family: inherit;
  cursor: pointer;
  touch-action: manipulation;
}

.gold { color: var(--gold); }

/* -----------------------------------------------------------------
   LAYOUT: SCREENS & CONTAINER
   ----------------------------------------------------------------- */

.screen {
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-screen-y) var(--space-screen-x);
  padding-left: max(var(--space-screen-x), env(safe-area-inset-left));
  padding-right: max(var(--space-screen-x), env(safe-area-inset-right));
  position: relative;
  overflow: hidden;
}

#quiz-app .screen { display: none; }
#quiz-app .screen.active { display: flex; }

.sales-screen {
  background: var(--bg-main);
  border-top: 1px solid var(--border);
}
.sales-screen:nth-child(odd) { background: var(--bg-secondary); }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(12px, 3vw, 16px);
  min-width: 0;
}

/* -----------------------------------------------------------------
   ANIMATIONS
   ----------------------------------------------------------------- */

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in-up { animation: fadeInUp 0.6s ease both; }

@keyframes pulseSoft {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}
.pulse-soft { animation: pulseSoft 2.4s ease-in-out infinite; }

@keyframes pulseCta {
  0%, 100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.5); }
  70% { box-shadow: 0 0 0 16px rgba(212, 175, 55, 0); }
}
.pulse-cta { animation: pulseCta 2s infinite; }

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

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* -----------------------------------------------------------------
   TYPOGRAPHY
   ----------------------------------------------------------------- */

.title-xl { font-size: clamp(24px, 6.5vw, 36px); font-weight: 800; line-height: 1.25; letter-spacing: -0.5px; }
.title-lg { font-size: clamp(21px, 5.5vw, 30px); font-weight: 800; line-height: 1.3; letter-spacing: -0.3px; }
.title-md { font-size: clamp(17px, 4.5vw, 22px); font-weight: 700; line-height: 1.4; }
.subtitle { font-size: clamp(14px, 3.8vw, 16px); color: var(--text-secondary); line-height: 1.5; }
.body-text { font-size: clamp(13.5px, 3.6vw, 15px); color: var(--text-secondary); line-height: 1.6; }
.body-text.emphasis { color: var(--text-primary); font-weight: 600; }

.badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: var(--gold);
  background: var(--gold-soft);
  border: 1px solid rgba(212,175,55,0.35);
  border-radius: 999px;
  padding: 8px 16px;
  max-width: 100%;
}

.hero-icon { font-size: clamp(44px, 12vw, 72px); line-height: 1; margin-bottom: 4px; }
.result-icon { font-size: clamp(52px, 13vw, 64px); }
.q-icon { font-size: clamp(32px, 9vw, 40px); margin-bottom: 4px; }

/* -----------------------------------------------------------------
   BUTTONS
   ----------------------------------------------------------------- */

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 16px 20px;
  background: var(--gold);
  color: #0a0a0a;
  font-weight: 800;
  font-size: clamp(14.5px, 3.8vw, 16px);
  border: none;
  border-radius: 12px;
  text-decoration: none;
  transition: transform 0.15s ease, filter 0.15s ease;
  margin-top: 8px;
  min-height: 52px;
  line-height: 1.3;
  text-align: center;
  white-space: normal;
}
.btn-primary:hover { filter: brightness(1.08); }
.btn-primary:active { transform: scale(0.98); }

.btn-cta { font-size: clamp(15px, 4vw, 17px); }
.btn-huge { padding: 20px 20px; font-size: clamp(16px, 4.2vw, 18px); }

/* -----------------------------------------------------------------
   QUIZ PROGRESS BAR
   ----------------------------------------------------------------- */

.quiz-progress-wrap {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: calc(10px + env(safe-area-inset-top)) 16px 12px;
}

.quiz-progress-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.quiz-level-label {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.4px;
  color: var(--gold);
  background: var(--gold-soft);
  border: 1px solid rgba(212,175,55,0.3);
  border-radius: 999px;
  padding: 3px 9px;
  white-space: nowrap;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}
.quiz-level-label.bump { transform: scale(1.15); }

.quiz-progress-label {
  font-size: 11px;
  color: var(--text-secondary);
  font-weight: 600;
  text-align: center;
  flex: 1;
  min-width: 0;
}

.quiz-score-label {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-primary);
  white-space: nowrap;
  transition: transform 0.25s ease;
  flex-shrink: 0;
}
.quiz-score-label.bump { transform: scale(1.2); color: var(--gold); }

.quiz-progress-track {
  position: relative;
  height: 8px;
  background: var(--bg-card);
  border-radius: 999px;
  overflow: visible;
}
.quiz-progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #a9812c, var(--gold));
  border-radius: 999px;
  box-shadow: 0 0 10px rgba(212,175,55,0.6);
  transition: width 0.5s cubic-bezier(.4,1.6,.6,1);
}

.quiz-progress-badges {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}
.badge-tick {
  pointer-events: auto;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg-main);
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  filter: grayscale(1) opacity(0.5);
  transition: filter 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}
.badge-tick:last-child { margin-right: -4px; }
.badge-tick.unlocked {
  filter: grayscale(0) opacity(1);
  border-color: var(--gold);
  box-shadow: 0 0 8px rgba(212,175,55,0.7);
  transform: scale(1.25);
}

body.has-progress #quiz-app .screen { padding-top: calc(88px + env(safe-area-inset-top)); }

/* -----------------------------------------------------------------
   POPUP DE PONTOS
   ----------------------------------------------------------------- */

.points-popup {
  position: fixed;
  font-size: 15px;
  font-weight: 800;
  color: var(--gold);
  pointer-events: none;
  animation: pointsFloat 0.9s ease forwards;
  z-index: 250;
}
@keyframes pointsFloat {
  0% { opacity: 0; transform: translateY(0) scale(0.8); }
  20% { opacity: 1; transform: translateY(-6px) scale(1.1); }
  100% { opacity: 0; transform: translateY(-38px) scale(1); }
}

/* -----------------------------------------------------------------
   TOASTS
   ----------------------------------------------------------------- */

.toast-container {
  position: fixed;
  top: calc(100px + env(safe-area-inset-top));
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  width: calc(100% - 32px);
  max-width: var(--max-width);
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  border: 1.5px solid var(--gold);
  border-radius: 12px;
  padding: 12px 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5), 0 0 16px rgba(212,175,55,0.25);
  animation: toastIn 0.4s ease forwards, toastOut 0.4s ease forwards 2.6s;
  max-width: 100%;
}
.toast-icon { font-size: 22px; flex-shrink: 0; }
.toast-text { display: flex; flex-direction: column; text-align: left; min-width: 0; }
.toast-title { font-size: 12.5px; font-weight: 800; color: var(--gold); }
.toast-sub { font-size: 11.5px; color: var(--text-secondary); }

@keyframes toastIn {
  from { opacity: 0; transform: translateY(-16px) scale(0.9); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes toastOut {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to { opacity: 0; transform: translateY(-12px) scale(0.95); }
}

/* -----------------------------------------------------------------
   POP-UP CENTRAL DE FEEDBACK
   ----------------------------------------------------------------- */

.feedback-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(4px);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  padding-left: max(20px, env(safe-area-inset-left));
  padding-right: max(20px, env(safe-area-inset-right));
  opacity: 0;
  animation: modalOverlayIn 0.25s ease forwards;
}
.feedback-modal-overlay[hidden] { display: none; }

@keyframes modalOverlayIn {
  to { opacity: 1; }
}

.feedback-modal {
  width: 100%;
  max-width: 360px;
  background: var(--bg-card);
  border: 1.5px solid var(--gold);
  border-radius: 18px;
  padding: clamp(22px, 6vw, 28px) clamp(18px, 5vw, 22px) 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6), 0 0 30px rgba(212,175,55,0.15);
  transform: scale(0.9) translateY(10px);
  opacity: 0;
  animation: modalCardIn 0.35s cubic-bezier(.34,1.56,.64,1) forwards;
  max-height: min(80vh, 80dvh);
  overflow-y: auto;
}
@keyframes modalCardIn {
  to { transform: scale(1) translateY(0); opacity: 1; }
}
.feedback-modal-icon { font-size: clamp(26px, 7vw, 32px); }
.feedback-modal-text { font-size: clamp(14px, 3.8vw, 15px); color: var(--text-primary); line-height: 1.6; }
.feedback-modal .btn-primary { margin-top: 4px; }

/* -----------------------------------------------------------------
   LISTS
   ----------------------------------------------------------------- */

.check-list {
  list-style: none;
  text-align: left;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: clamp(13.5px, 3.6vw, 15px);
  color: var(--text-primary);
  line-height: 1.5;
}
.check-list .check {
  color: var(--gold);
  font-weight: 800;
  flex-shrink: 0;
}

/* -----------------------------------------------------------------
   LOADING SCREENS
   ----------------------------------------------------------------- */

.spinner-gold {
  width: 56px;
  height: 56px;
  border: 4px solid var(--border);
  border-top-color: var(--gold);
  border-radius: 50%;
  margin: 0 auto 28px;
  animation: spin 0.9s linear infinite;
}
.spinner-lg { width: 72px; height: 72px; }

.loading-lines { display: flex; flex-direction: column; gap: 12px; align-items: center; padding: 0 8px; }
.loading-line {
  font-size: clamp(13.5px, 3.6vw, 15px);
  color: var(--text-secondary);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  text-align: center;
}
.loading-line.shown { opacity: 1; transform: translateY(0); color: var(--text-primary); }

/* -----------------------------------------------------------------
   QUIZ OPTIONS
   ----------------------------------------------------------------- */

.options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}
.options-compact .option-btn { padding: 14px 16px; font-size: clamp(13px, 3.5vw, 14px); }

.option-btn {
  width: 100%;
  text-align: left;
  padding: 16px 18px;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: clamp(14px, 3.8vw, 15px);
  font-weight: 500;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.1s ease;
  min-height: 52px;
  line-height: 1.4;
}
.option-btn:hover { border-color: var(--gold); }
.option-btn:active { transform: scale(0.98); }
.option-btn.selected {
  border-color: var(--gold);
  background: var(--gold-soft);
  color: var(--gold);
  font-weight: 700;
}
.option-btn:disabled { pointer-events: none; opacity: 0.55; }
.option-btn.selected:disabled { opacity: 1; }

/* -----------------------------------------------------------------
   CALLOUTS
   ----------------------------------------------------------------- */

.callout {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  text-align: left;
  border-radius: 12px;
  padding: 16px;
  font-size: clamp(13px, 3.5vw, 14px);
  line-height: 1.55;
}
.callout-icon { font-size: 20px; flex-shrink: 0; }
.callout-warning { background: rgba(239,68,68,0.08); border: 1px solid rgba(239,68,68,0.3); color: #f5b8b8; }
.callout-warning strong { color: #fff; }
.callout-success { background: rgba(35,165,89,0.08); border: 1px solid rgba(35,165,89,0.3); color: #b7e6c8; }

/* NOVO: Callout de Informação */
.callout-info {
  background: rgba(212, 175, 55, 0.06);
  border: 1px solid rgba(212, 175, 55, 0.25);
  color: #f5e6b0;
}
.callout-info strong { color: var(--gold); }

/* -----------------------------------------------------------------
   SALES PAGE — IMAGES
   ----------------------------------------------------------------- */

.mockup-img {
  max-width: min(260px, 70vw);
  border-radius: 16px;
  margin: 0 auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.mockup-img-lg { max-width: min(320px, 80vw); }

/* NOVO: Imagem das perguntas (4:3) */
.question-image {
  width: 100%;
  max-width: 480px;
  aspect-ratio: 4 / 3;
  margin: 0 auto 12px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(0,0,0,0.6);
  background: var(--bg-card);
}
.question-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* -----------------------------------------------------------------
   AGENTS GRID (NOVA SEÇÃO DOS 6 AGENTES)
   ----------------------------------------------------------------- */

.agents-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  text-align: left;
}

.agent-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  transition: border-color 0.3s ease, transform 0.2s ease;
}
.agent-card:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}

.agent-icon-wrap {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.agent-icon-1 { background: linear-gradient(135deg, #d4af37, #b5952f); }
.agent-icon-2 { background: linear-gradient(135deg, #3b82f6, #1e40af); }
.agent-icon-3 { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.agent-icon-4 { background: linear-gradient(135deg, #10b981, #047857); }
.agent-icon-5 { background: linear-gradient(135deg, #f59e0b, #b45309); }
.agent-icon-6 { background: linear-gradient(135deg, #ef4444, #991b1b); }

.agent-content { flex: 1; min-width: 0; }
.agent-content h3 {
  font-size: clamp(15px, 4vw, 17px);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 2px;
  line-height: 1.3;
}
.agent-role {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.agent-desc {
  font-size: clamp(12.5px, 3.4vw, 13.5px);
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 8px;
}
.agent-desc strong { color: var(--text-primary); font-weight: 700; }
.agent-when {
  font-size: 11.5px;
  color: var(--gold);
  background: var(--gold-soft);
  padding: 6px 10px;
  border-radius: 8px;
  border-left: 2px solid var(--gold);
  line-height: 1.4;
}
.agent-when strong { color: var(--gold); }

/* -----------------------------------------------------------------
   FLOW CHAINS
   ----------------------------------------------------------------- */

.flow-chain {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  width: 100%;
}
.flow-step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: clamp(12.5px, 3.4vw, 14px);
  text-align: center;
  position: relative;
  word-break: break-word;
}
.flow-step:not(:last-child)::after {
  content: '↓';
  display: block;
  color: var(--gold);
  font-size: 14px;
  margin-top: 4px;
}
.flow-step-bad { border-color: rgba(239,68,68,0.4); color: #f5b8b8; }
.flow-step-good { border-color: rgba(35,165,89,0.5); color: #b7e6c8; font-weight: 700; }
.flow-chain.small .flow-step { font-size: clamp(11.5px, 3.1vw, 13px); padding: 10px 10px; }

.cost-chain { display: flex; flex-direction: column; gap: 6px; width: 100%; margin-bottom: 8px; }

/* -----------------------------------------------------------------
   STEPS CHAIN
   ----------------------------------------------------------------- */

.steps-chain { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 100%; }
.step-card {
  width: 100%;
  background: var(--bg-card);
  border: 1.5px solid var(--gold);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.step-num { font-size: 12px; font-weight: 800; color: var(--gold); letter-spacing: 0.5px; text-transform: uppercase; }
.step-text { font-size: clamp(14px, 3.8vw, 16px); font-weight: 600; }
.step-arrow { color: var(--gold); font-size: 18px; }

/* -----------------------------------------------------------------
   ANTES / DEPOIS COMPARE
   ----------------------------------------------------------------- */

.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; }
.compare-col { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.compare-label { font-size: 11px; font-weight: 800; letter-spacing: 1px; color: var(--text-secondary); }
.compare-after .compare-label { color: var(--gold); }

@media (max-width: 380px) {
  .compare-grid { grid-template-columns: 1fr; }
}

/* -----------------------------------------------------------------
   FEATURE CARDS
   ----------------------------------------------------------------- */

.feature-cards { display: flex; flex-direction: column; gap: 12px; width: 100%; }
.feature-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  text-align: left;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
}
.feature-icon { font-size: 24px; flex-shrink: 0; }
.feature-card h3 { font-size: clamp(14px, 3.8vw, 15px); font-weight: 700; margin-bottom: 4px; }
.feature-card p { font-size: clamp(12.5px, 3.4vw, 13px); color: var(--text-secondary); line-height: 1.5; }

/* -----------------------------------------------------------------
   VALUE STACK / PRICE
   ----------------------------------------------------------------- */

.value-stack { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.value-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px;
  text-align: left;
}
.value-item img { width: 52px; height: 52px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.value-item-text { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.value-item-text span { font-size: clamp(13px, 3.6vw, 14px); font-weight: 600; }
.value-item-text strong { font-size: 12.5px; color: var(--text-secondary); font-weight: 500; text-decoration: line-through; }

.price-box {
  width: 100%;
  background: var(--bg-card);
  border: 1.5px solid var(--gold);
  border-radius: 16px;
  padding: clamp(20px, 5vw, 24px) clamp(16px, 4vw, 20px);
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.price-total { font-size: 13.5px; color: var(--text-secondary); }
.price-total s { color: #7a7a7a; }
.price-today { font-size: 15px; font-weight: 700; }
.price-big { font-size: clamp(32px, 9vw, 48px); font-weight: 900; display: block; margin-top: 2px; }
.price-installments { font-size: 12.5px; color: var(--text-secondary); margin-bottom: 10px; }

/* -----------------------------------------------------------------
   WEEK TIMELINE
   ----------------------------------------------------------------- */

.week-timeline { display: flex; flex-direction: column; gap: 10px; width: 100%; text-align: left; }
.week-timeline p { font-size: clamp(13.5px, 3.6vw, 15px); color: var(--text-secondary); }
.week-timeline strong { color: var(--gold); }

/* -----------------------------------------------------------------
   TESTIMONIAL CAROUSEL
   ----------------------------------------------------------------- */

.carousel-wrap { position: relative; width: 100%; display: flex; align-items: center; gap: 6px; }
.carousel-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 4px;
  -ms-overflow-style: none;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  min-width: 0;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track img {
  scroll-snap-align: center;
  flex: 0 0 85%;
  border-radius: 14px;
  border: 1px solid var(--border);
}
.carousel-arrow {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.carousel-arrow:hover { border-color: var(--gold); color: var(--gold); }

@media (max-width: 360px) {
  .carousel-track img { flex-basis: 92%; }
}

/* -----------------------------------------------------------------
   FAQ ACCORDION
   ----------------------------------------------------------------- */

.faq-list { width: 100%; display: flex; flex-direction: column; gap: 8px; }
.faq-item { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.faq-question {
  width: 100%;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: clamp(13px, 3.6vw, 14px);
  font-weight: 600;
  text-align: left;
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.faq-toggle { color: var(--gold); font-size: 18px; font-weight: 800; transition: transform 0.25s ease; flex-shrink: 0; }
.faq-item.open .faq-toggle { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 16px;
}
.faq-item.open .faq-answer { max-height: 240px; padding: 0 16px 16px; }
.faq-answer p { font-size: clamp(12.5px, 3.4vw, 13.5px); color: var(--text-secondary); line-height: 1.6; text-align: left; }

/* -----------------------------------------------------------------
   FOOTER
   ----------------------------------------------------------------- */

.footer-screen { min-height: auto; padding: 40px 20px; }
.footer-text { font-size: 13px; color: var(--text-secondary); }
.footer-sub { font-size: 11px; color: #6a6a6a; margin-top: 4px; }

/* -----------------------------------------------------------------
   RESPONSIVE
   ----------------------------------------------------------------- */

@media (max-width: 360px) {
  :root {
    --space-screen-x: 14px;
    --space-screen-y: 20px;
  }
  .btn-primary { padding: 14px 16px; min-height: 48px; }
  .option-btn { padding: 14px 15px; min-height: 48px; }
  .value-item img { width: 44px; height: 44px; }
  .agent-icon-wrap { width: 42px; height: 42px; font-size: 20px; }
}

@media (max-height: 620px) {
  .screen { align-items: flex-start; padding-top: max(20px, env(safe-area-inset-top)); }
  body.has-progress #quiz-app .screen { padding-top: calc(76px + env(safe-area-inset-top)); }
  .hero-icon { font-size: clamp(36px, 10vw, 56px); margin-bottom: 0; }
  .container { gap: 10px; }
}

@media (min-width: 768px) {
  .container { max-width: 560px; }
  .compare-grid { max-width: 560px; }
  .btn-primary { width: auto; min-width: 320px; }
  .carousel-track img { flex-basis: 45%; }
}

@media (min-width: 1100px) {
  .container { max-width: 620px; }
}

a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}