/* ============================================
   BASE CSS — Variáveis, Reset, Tipografia
   Quiz Diagnóstico Libertas Bio
   ============================================ */

:root {
  --terra: #3B2A1A;
  --terra-light: #5C3D22;
  --verde: #1E4D2B;
  --verde-light: #2A6B3C;
  --ouro: #C89B3C;
  --ouro-light: #E2B84F;
  --creme: #F5EDD8;
  --creme-light: #FBF6EC;
  --cinza: #8A7968;
  --branco: #FEFCF8;
  --alerta: #C0392B;
  --atencao: #E67E22;
  --ok: #27AE60;
}

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

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--terra);
  color: var(--creme);
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(200,155,60,0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(30,77,43,0.1) 0%, transparent 50%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23C89B3C' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

.app {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}

/* HEADER */
.header {
  text-align: center;
  margin-bottom: 48px;
  animation: fadeDown 0.8s ease both;
}

.header-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(200,155,60,0.15);
  border: 1px solid rgba(200,155,60,0.3);
  color: var(--ouro-light);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.header-badge svg {
  width: 14px;
  height: 14px;
}

h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 900;
  color: var(--creme);
  line-height: 1.15;
  margin-bottom: 14px;
}

h1 span {
  color: var(--ouro);
  font-style: italic;
}

.header-sub {
  font-size: 15px;
  color: var(--cinza);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.65;
}

/* KEYFRAMES */
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-16px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

@keyframes stepIn {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* Respeitar preferência do usuário por menos movimento */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
