/* ═══════════════════════════════════════════════════════════════
   SWIPE OFFERS · Pesquisa da revista
   Mesmos tokens da roleta e do app (app/globals.css):
   brand hsl(22 100% 52%), background hsl(0 0% 3.9%), card hsl(0 0% 10%),
   border hsl(0 0% 20%). Geist Sans / Bricolage Grotesque.
   ═══════════════════════════════════════════════════════════════ */

:root {
  --bg:        #0a0a0a;
  --card:      #121212;
  --card-alto: #181818;
  --line:      #242424;
  --line-soft: #1a1a1a;
  --fg:        #f4f3f1;
  --muted:     #8d8d8d;
  --dim:       #5f5f5f;
  --brand:     #ff6207;
  --brand-esc: #7d2f04;
  --erro:      #ff6b6b;

  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Bricolage Grotesque", var(--font-sans);

  --radius: 10px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

/* As regras abaixo dão `display` a botões e campos, o que venceria o atributo
   `hidden` do HTML. Sem isto, os botões de voltar/enviar e os campos "Outro"
   aparecem quando não deviam. */
[hidden] { display: none !important; }

body {
  margin: 0;
  min-height: 100svh;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* Grade fina ao fundo: profundidade sem virar textura de banner */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(hsl(0 0% 100% / .022) 1px, transparent 1px),
    linear-gradient(90deg, hsl(0 0% 100% / .022) 1px, transparent 1px);
  background-size: 62px 62px;
  pointer-events: none;
  z-index: 0;
}

/* Brilho laranja atrás do conteúdo, para a página não ficar num vazio chapado */
body::after {
  content: "";
  position: fixed;
  left: 50%;
  top: 28%;
  width: min(760px, 120vw);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, hsl(22 100% 52% / .13), transparent 62%);
  pointer-events: none;
  z-index: 0;
}

/* ═══════════════════ PALCO ═══════════════════ */

.palco {
  position: relative;
  z-index: 1;
  max-width: 660px;
  margin: 0 auto;
  padding: clamp(40px, 9vh, 88px) 20px 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 22px;
}

.marca { width: 148px; height: auto; opacity: .95; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--brand-esc);
  border-radius: 999px;
  background: hsl(22 100% 52% / .08);
  color: var(--brand);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.titulo {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(34px, 8vw, 58px);
  line-height: 1.05;
  letter-spacing: -.02em;
}
.titulo .em { color: var(--brand); }

.chamada {
  margin: 0;
  max-width: 46ch;
  color: var(--muted);
  font-size: clamp(16px, 2.4vw, 18px);
}

.aviso {
  margin: 0;
  color: var(--dim);
  font-size: 13px;
}

/* ═══════════════════ BOTÕES ═══════════════════ */

.botao {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 30px;
  border: 0;
  border-radius: var(--radius);
  background: var(--brand);
  color: #140800;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .04em;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  box-shadow: 0 10px 30px hsl(22 100% 52% / .22);
}
.botao:hover { transform: translateY(-2px); box-shadow: 0 14px 36px hsl(22 100% 52% / .3); }
.botao:active { transform: translateY(0); }
.botao svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; }

.botao--fantasma {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
  box-shadow: none;
  font-weight: 500;
  letter-spacing: 0;
}
.botao--fantasma:hover { color: var(--fg); border-color: #3a3a3a; transform: none; box-shadow: none; }

.botao[disabled] { opacity: .6; cursor: progress; transform: none; }

/* ═══════════════════ JANELA ═══════════════════ */

.janela {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: hsl(0 0% 0% / .72);
  backdrop-filter: blur(3px);
}
.janela.is-aberta { display: flex; }

.janela__caixa {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: calc(100svh - 32px);
  display: flex;
  flex-direction: column;
  padding: 22px 22px 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  box-shadow: 0 24px 70px hsl(0 0% 0% / .6);
  animation: sobe .22s ease both;
}
@keyframes sobe { from { opacity: 0; transform: translateY(14px) } to { opacity: 1; transform: none } }

.janela__topo {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.janela__conta {
  margin: 0 0 8px;
  color: var(--dim);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.trilho {
  width: 190px;
  max-width: 44vw;
  height: 4px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}
.trilho span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: var(--brand);
  transition: width .28s ease;
}

.janela__fechar {
  flex: none;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--dim);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}
.janela__fechar:hover { color: var(--fg); background: var(--card-alto); }

/* ═══════════════════ FORMULÁRIO ═══════════════════ */

#form { display: flex; flex-direction: column; min-height: 0; }

.passo {
  display: none;
  margin: 0;
  padding: 0;
  border: 0;
  overflow-y: auto;
  /* a rolagem é do passo, não da janela: o topo com o progresso e os botões
     ficam sempre visíveis, inclusive nas perguntas com muitas opções */
  max-height: calc(100svh - 260px);
  padding-right: 4px;
}
.passo.is-ativo { display: block; }

/* a barra de rolagem padrão é branca e corta a borda dos cards no escuro */
.passo { scrollbar-width: thin; scrollbar-color: #3a3a3a transparent; }
.passo::-webkit-scrollbar { width: 6px; }
.passo::-webkit-scrollbar-track { background: transparent; }
.passo::-webkit-scrollbar-thumb { background: #3a3a3a; border-radius: 999px; }
.passo::-webkit-scrollbar-thumb:hover { background: #4d4d4d; }

.pergunta {
  padding: 0;
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(20px, 4.4vw, 25px);
  line-height: 1.22;
  letter-spacing: -.01em;
}

.dica {
  margin: 0 0 14px;
  color: var(--dim);
  font-size: 13px;
}
.pergunta + .opcao, .pergunta + .campo { margin-top: 14px; }

.opcao {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card-alto);
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.opcao:hover { border-color: #3a3a3a; }
.opcao span { font-size: 15px; }

.opcao input {
  flex: none;
  width: 19px;
  height: 19px;
  margin: 0;
  accent-color: var(--brand);
  cursor: pointer;
}

/* marcado: a borda laranja é o que deixa a escolha óbvia no escuro */
.opcao:has(input:checked) {
  border-color: var(--brand);
  background: hsl(22 100% 52% / .09);
}
.opcao:has(input:focus-visible) { outline: 2px solid var(--brand); outline-offset: 2px; }

.campo {
  display: block;
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card-alto);
  color: var(--fg);
  font-family: inherit;
  font-size: 15px;
  resize: vertical;
}
.campo::placeholder { color: var(--dim); }
.campo:focus { outline: 0; border-color: var(--brand); }
.campo--outro { margin: -2px 0 10px; }

.rotulo { display: block; margin-bottom: 4px; font-size: 14px; font-weight: 600; }
.rotulo .opt { color: var(--dim); font-weight: 400; }

.email {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
}

.erro {
  margin: 14px 0 0;
  color: var(--erro);
  font-size: 14px;
}

.navegacao {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
}
.navegacao .botao { flex: 1; }

/* ═══════════════════ FIM ═══════════════════ */

.fim { text-align: center; padding: 14px 0 6px; }

.fim__selo {
  width: 62px;
  height: 62px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: hsl(22 100% 52% / .12);
  border: 1px solid var(--brand-esc);
  color: var(--brand);
  font-size: 30px;
}

.janela__titulo {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(22px, 5vw, 28px);
  letter-spacing: -.01em;
}

.janela__texto {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 15px;
}

@media (max-width: 420px) {
  .janela__caixa { padding: 18px 16px 20px; }
  .passo { max-height: calc(100svh - 250px); }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
