/* Funil Residência ARQ 01 | estilos
   Cores da marca ficam nas variáveis abaixo. */
:root {
  --fundo: #1a1512;
  --fundo-2: #251e1a;
  --texto: #f4ece1;
  --texto-suave: #cbbfb0;
  --destaque: #d9824f;      /* cobre: palavras em destaque */
  --cta: #c0623d;           /* terracota: botão principal */
  --cta-hover: #a8522f;
  --aviso: #8f2f1f;         /* faixa do topo */
  --grupo: #1f9d55;         /* botão de grupo (verde WhatsApp) */
  --grupo-hover: #188547;
  --cartao: #fbf7f1;
  --cartao-texto: #2a211c;
  --borda: #d8cdbf;
  --raio: 10px;
  --serif: "Crimson Pro", Georgia, serif;
  --sans: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--fundo);
  color: var(--texto);
  font-family: var(--sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.oculto { display: none !important; }

/* ---------- Faixa do topo ---------- */
.faixa {
  background: var(--aviso);
  color: #fff;
  text-align: center;
  font-weight: 700;
  font-size: clamp(15px, 4vw, 19px);
  padding: 14px 16px;
  line-height: 1.3;
}

/* ---------- Bloco central ---------- */
.miolo {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 28px 16px 40px;
  text-align: center;
}

/* Logo / nome do evento */
.evento-marca { margin: 0 auto 22px; }
.evento-marca img { width: 100%; max-width: 380px; margin: 0 auto; }
.evento-texto .rotulo {
  letter-spacing: .35em; font-size: 12px; font-weight: 600;
  color: var(--texto-suave); text-transform: uppercase;
}
.evento-texto .nome {
  font-family: var(--serif); font-weight: 700; color: var(--destaque);
  font-size: clamp(34px, 10vw, 48px); line-height: 1; margin: 6px 0 10px;
}
.evento-texto .selo {
  display: inline-block; border: 2px solid var(--destaque); color: var(--texto);
  border-radius: 999px; padding: 4px 18px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; font-size: 14px;
}

/* Data e formato */
.infos { display: grid; gap: 10px; justify-content: center; margin: 0 0 26px; }
.info {
  display: flex; align-items: center; gap: 12px; color: var(--destaque);
  font-size: clamp(15px, 4.2vw, 19px); text-align: left;
}
.info svg { flex: 0 0 28px; width: 28px; height: 28px; }

h1.promessa {
  font-family: var(--sans); font-weight: 700;
  font-size: clamp(26px, 7.2vw, 36px); line-height: 1.18; margin: 0 0 14px;
}
h1.promessa .dest { color: var(--destaque); }
.sub { color: var(--texto); font-size: clamp(15px, 4vw, 18px); margin: 0 0 22px; }

/* ---------- Formulário de captura ---------- */
.form-captura { display: grid; gap: 12px; text-align: left; }
.campo input {
  width: 100%; font: inherit; font-size: 17px; padding: 15px 16px;
  border-radius: 6px; border: 1px solid #bdb3a7; background: #e9e4de; color: #1a1512;
}
.campo input::placeholder { color: #776d63; }
.campo input:focus { outline: 3px solid var(--destaque); outline-offset: 1px; }
.erro { color: #ffb4a3; font-size: 14px; min-height: 1em; margin: 2px 0 0; }

.botao {
  display: block; width: 100%; border: 0; cursor: pointer; text-decoration: none;
  font: inherit; font-weight: 700; text-transform: uppercase; letter-spacing: .02em;
  font-size: clamp(15px, 4.4vw, 19px); line-height: 1.2; text-align: center;
  padding: 18px 14px; border-radius: 6px; transition: background .15s, transform .05s;
}
.botao:active { transform: translateY(1px); }
.botao[disabled] { opacity: .6; cursor: wait; }
.botao-cta { background: var(--cta); color: #fff; box-shadow: 0 4px 0 rgba(0,0,0,.25); }
.botao-cta:hover { background: var(--cta-hover); }
.botao-grupo { background: var(--grupo); color: #fff; font-size: 14px; padding: 15px 12px; }
.botao-grupo:hover { background: var(--grupo-hover); }

/* Foto + faixa rolante */
.foto-area { position: relative; margin-top: 34px; }
.foto-area img {
  margin: 0 auto; width: 100%; max-width: 440px; height: auto;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 10%, #000 72%, transparent 100%), linear-gradient(to right, transparent 0, #000 12%, #000 88%, transparent 100%);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(to bottom, transparent 0, #000 10%, #000 72%, transparent 100%), linear-gradient(to right, transparent 0, #000 12%, #000 88%, transparent 100%);
  mask-composite: intersect;
}
.rolante {
  overflow: hidden; background: var(--cta); color: #fff; font-weight: 800;
  white-space: nowrap; padding: 10px 0; transform: rotate(-3deg); margin: -10px -20px 0;
}
.rolante span { display: inline-block; padding-right: 28px; animation: rolar 18s linear infinite; }
@keyframes rolar { from { transform: translateX(0); } to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) { .rolante span { animation: none; } }

.rodape { text-align: center; color: var(--texto-suave); font-size: 12px; padding: 24px 16px 32px; }

/* ---------- Pesquisa (uma pergunta por tela) ---------- */
.pesquisa-topo { max-width: 560px; margin: 0 auto; padding: 18px 16px 0; text-align: center; }
.pesquisa-topo p { margin: 0 0 14px; font-size: 15px; }
.pesquisa-wrap { max-width: 560px; margin: 0 auto; padding: 16px; }
.quiz {
  background: var(--cartao); color: var(--cartao-texto); border-radius: var(--raio);
  min-height: 480px; display: flex; flex-direction: column; overflow: hidden;
}
.quiz-barra { height: 5px; background: #e6ddd2; }
.quiz-barra i { display: block; height: 100%; width: 0; background: var(--cartao-texto); transition: width .25s; }
.quiz-corpo { flex: 1; padding: 34px 22px 18px; display: flex; flex-direction: column; justify-content: center; }
.quiz-pergunta { font-size: 19px; font-weight: 500; margin: 0 0 6px; line-height: 1.35; }
.quiz-pergunta .obg { color: #b0533a; margin-left: 4px; }
.quiz-ajuda { font-size: 14px; color: #6b5f55; margin: 4px 0 0; }
.opcoes { display: grid; gap: 9px; margin-top: 18px; }
.opcao {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  font: inherit; font-size: 15px; color: var(--cartao-texto); cursor: pointer;
  background: #efe9e1; border: 1px solid var(--borda); border-radius: 5px; padding: 10px 12px;
}
.opcao:hover { background: #e6ded3; }
.opcao .letra {
  flex: 0 0 22px; height: 22px; display: grid; place-items: center; font-size: 11px;
  border: 1px solid #8f8478; border-radius: 3px; background: #fff;
}
.opcao.sel { background: var(--cartao-texto); color: #fff; border-color: var(--cartao-texto); }
.opcao.sel .letra { background: #fff; color: var(--cartao-texto); }
.escala { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 18px; }
.escala button {
  font: inherit; padding: 12px 0; border: 1px solid var(--borda); border-radius: 5px;
  background: #efe9e1; color: var(--cartao-texto); cursor: pointer;
}
.escala button.sel { background: var(--cartao-texto); color: #fff; }
.escala-legenda { font-size: 12px; color: #6b5f55; margin-top: 10px; }
.quiz textarea, .quiz input.resposta {
  width: 100%; font: inherit; font-size: 17px; margin-top: 18px; padding: 10px 2px;
  border: 0; border-bottom: 2px solid var(--cartao-texto); background: transparent;
  color: var(--cartao-texto); resize: vertical;
}
.quiz textarea:focus, .quiz input.resposta:focus { outline: none; border-bottom-color: var(--cta); }
.quiz-erro { color: #a33b22; font-size: 14px; min-height: 1.2em; margin-top: 10px; }
.quiz-nav { display: flex; gap: 10px; padding: 0 16px 16px; }
.quiz-nav button {
  font: inherit; font-weight: 700; font-size: 17px; border: 0; border-radius: 4px; cursor: pointer;
  padding: 14px; color: #fff; background: #1a1512;
}
.quiz-nav .voltar { flex: 0 0 56px; }
.quiz-nav .ok { flex: 1; }
.quiz-nav button[disabled] { opacity: .45; cursor: default; }

.quiz-final { text-align: center; padding: 40px 22px; flex: 1; display: flex; flex-direction: column; justify-content: center; }
.quiz-final h2 { font-family: var(--serif); font-size: 30px; line-height: 1.15; margin: 0 0 16px; font-weight: 600; }
.quiz-final p { color: #4f443b; margin: 0 0 22px; }
.quiz-final .botao { background: #3a312b; color: #fff; }

/* ---------- Presentes ---------- */
.presentes-titulo {
  font-family: var(--serif); color: var(--destaque); text-transform: uppercase;
  letter-spacing: .08em; font-size: clamp(22px, 6vw, 30px); margin: 4px 0 22px;
}
.presentes-grade { display: grid; gap: 16px; }
@media (min-width: 640px) { .presentes-grade { grid-template-columns: 1fr 1fr; } .miolo.largo { max-width: 860px; } }
.presente {
  background: var(--fundo-2); border: 1px solid #3b2f28; border-radius: var(--raio);
  padding: 14px; display: flex; flex-direction: column; text-align: center;
}
.presente .capa { aspect-ratio: 16/10; background: #31271f; border-radius: 6px; overflow: hidden; display: grid; place-items: center; color: var(--texto-suave); font-size: 13px; }
.presente .capa img { width: 100%; height: 100%; object-fit: cover; }
.presente h3 { color: var(--destaque); font-size: 15px; text-transform: uppercase; margin: 14px 0 6px; }
.presente p { color: var(--texto-suave); font-size: 14px; margin: 0 0 14px; flex: 1; }
.presente .botao { font-size: 14px; padding: 12px; background: var(--destaque); color: #1a1512; }
.lembrete {
  display: inline-block; margin: 26px auto 18px; border: 2px solid var(--destaque);
  border-radius: 8px; padding: 10px 22px; color: var(--texto);
}
.lembrete small { display: block; color: var(--destaque); text-transform: uppercase; font-size: 12px; letter-spacing: .1em; }
.lembrete strong { font-size: 18px; }

/* Aviso de modo de teste */
.modo-teste {
  position: fixed; left: 8px; bottom: 8px; z-index: 50; background: #ffd75e; color: #1a1512;
  font-size: 11px; font-weight: 700; padding: 4px 8px; border-radius: 4px; opacity: .9;
}

/* Página de redirecionamento */
.centro { min-height: 80vh; display: grid; place-items: center; text-align: center; padding: 16px; }
.spinner { width: 42px; height: 42px; border: 4px solid #3b2f28; border-top-color: var(--grupo); border-radius: 50%; margin: 0 auto 18px; animation: gira 1s linear infinite; }
@keyframes gira { to { transform: rotate(360deg); } }
