/* ==========================================================================
   APP.CSS - Design System e Base do Funil RQN
   Paleta: Verde-Menta (#10B981), Laranja (#F97316), Creme (#FFFDF9)
   ========================================================================== */

:root {
  --primary: #10B981;
  --primary-dark: #059669;
  --primary-light: #D1FAE5;
  --primary-subtle: #ECFDF5;
  
  --accent: #F97316;
  --accent-light: #FFEDD5;
  
  --heart: #FB7185;
  --heart-light: #FFE4E6;

  --bg-page: #FFFDF9;
  --bg-card: #FFFFFF;
  --bg-soft: #F8FAFC;
  
  --text-main: #1E293B;
  --text-muted: #64748B;
  --text-light: #94A3B8;
  
  --border-light: #E2E8F0;
  --border-subtle: #F1F5F9;

  --shadow-sm: 0 2px 8px rgba(16, 185, 129, 0.08);
  --shadow-md: 0 8px 24px -4px rgba(15, 23, 42, 0.08), 0 4px 8px -2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 16px 36px -6px rgba(16, 185, 129, 0.16);
  --shadow-button: 0 8px 20px -2px rgba(16, 185, 129, 0.35);

  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  
  --font-main: 'Nunito', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: 'Nunito', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

html, body {
  width: 100%;
  min-height: 100%;
  background-color: var(--bg-page);
  color: var(--text-main);
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
  touch-action: manipulation;
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-bottom: env(safe-area-inset-bottom, 24px);
}

#app {
  width: 100%;
  max-width: 440px;
  min-height: 100vh;
  margin: 0 auto;
  position: relative;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-page);
  transition: max-width 0.3s ease;
}

/* Responsividade no Desktop para a Oferta */
@media (min-width: 640px) {
  #app.is-offer-page,
  #app:has(.offer-page-wrapper) {
    max-width: 720px;
  }
}

/* Tipografia */
h1, h2, h3, h4 {
  font-family: var(--font-main);
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

h1 { font-size: 1.65rem; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.15rem; }

p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Botões Globais (Estilo Tátil 3D inspirado no Dorami) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px 24px;
  font-family: var(--font-main);
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: 0.015em;
  line-height: 1.35;
  border-radius: 16px;
  border: none;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  text-decoration: none;
  background: var(--primary);
  color: #FFFFFF;
  box-shadow: 0 5px 0 #059669;
}

.btn:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 #059669;
}

.btn-secondary {
  background: #FFFFFF;
  color: var(--text-main);
  border: 2px solid var(--border-light);
  border-radius: 16px;
  box-shadow: 0 5px 0 #CBD5E1;
}

.btn-secondary:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 #CBD5E1;
}
  box-shadow: var(--shadow-sm);
}

.btn-secondary:active {
  background: var(--bg-soft);
}

/* Barra de Progresso Superior */
.quiz-top {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 253, 249, 0.95);
  backdrop-filter: blur(8px);
  padding: 12px 20px 8px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-back {
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  color: var(--text-muted);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.btn-back:hover {
  background: var(--primary-light);
  color: var(--primary-dark);
}

.progress-track {
  flex: 1;
  height: 8px;
  background: var(--border-light);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary) 0%, #34D399 100%);
  border-radius: var(--radius-full);
  transition: width 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.sound-toggle {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 16px;
  transition: all 0.2s;
}

.sound-toggle.muted {
  opacity: 0.5;
  background: var(--border-subtle);
}
