/* =============================================================================
   Cianorte · Nova fase — base compartilhada das 3 landing pages
   Mobile-first. Espaçamento em múltiplos de 8. Cores tiradas do background
   oficial (azul-noite do estádio + vermelho da pincelada) e do escudo.
   ============================================================================= */

:root {
  /* Neutros: nunca #000 puro — o azul-noite mantém a atmosfera do estádio */
  --noite-900: #050d1c;
  --noite-800: #0a1730;
  --noite-700: #11234a;
  --azul-luz: #4f9bff;      /* luz dos refletores: acento frio */
  --vermelho: #e3262f;      /* pincelada da campanha: cor de ação (CTA) */
  --vermelho-escuro: #b81c24;
  --branco: #f5f7fb;
  --texto-suave: #c3cde0;   /* 10.9:1 sobre --noite-800 → passa AA folgado */
  --borda: rgba(255, 255, 255, 0.14);
  --vidro: rgba(8, 20, 42, 0.62);

  --raio: 12px;             /* raio médio consistente em cards e campos */
  --raio-pill: 9999px;

  --fonte-display: 'Anton', 'Bebas Neue', Impact, sans-serif; /* condensada, energia de futebol */
  --fonte-texto: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 48px; --s6: 64px; --s7: 96px;
  --container: 1200px;
  --sombra: 0 16px 48px rgba(0, 0, 0, 0.35);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--noite-900); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
body {
  font-family: var(--fonte-texto);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--branco);
  /* A cor de base fica só no html: um fundo no body cobriria a camada fixa
     do estádio (.bg-estadio, z-index negativo). */
  background: transparent;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(16px, 5vw, 32px);
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------------------------------------------------------------- fundo -- */
/* Um único background para as 3 versões: a arte do estádio.
   Mobile usa o recorte vertical para não perder os refletores. */
.bg-estadio {
  position: fixed; inset: 0; z-index: -2;
  /* Sem cor de fundo aqui (só a imagem): o Safari do iOS 26 usa a cor de
     elementos fixos encostados na borda para pintar uma faixa sólida sobre
     a página. A cor de base fica no html/body. */
  background: transparent url('img/bg-mobile.jpg') center bottom / cover no-repeat;
}
@media (min-width: 900px) and (min-aspect-ratio: 1/1) {
  .bg-estadio { background-image: url('img/bg-desktop.jpg'); background-position: center; }
}
/* Véu para garantir contraste do texto sobre qualquer trecho da arte */
.bg-estadio::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 13, 28, 0.15) 0%, rgba(5, 13, 28, 0.55) 70%, rgba(5, 13, 28, 0.9) 100%);
}

/* --------------------------------------------------------------- topo -- */
.topo {
  position: absolute; top: 0; left: 0; right: 0; z-index: 10;
  padding-top: var(--s2);
}
.topo .container { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); }
.marca { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.marca img { width: 48px; height: 48px; filter: drop-shadow(0 4px 12px rgba(0,0,0,.4)); }
.marca span {
  font-family: var(--fonte-display); font-size: 1.125rem; letter-spacing: 0.06em; text-transform: uppercase;
}
.topo-tag {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 8px 16px; border: 1px solid var(--borda); border-radius: var(--raio-pill);
  background: rgba(5, 13, 28, 0.45); backdrop-filter: blur(8px);
  display: none;
}
@media (min-width: 600px) { .topo-tag { display: inline-flex; } }

/* --------------------------------------------------------- tipografia -- */
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--s1);
  font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--branco);
}
/* Ponto pulsando = "ao vivo / em breve": reforça o tom de teaser */
.eyebrow .pulso {
  width: 8px; height: 8px; border-radius: 50%; background: var(--vermelho);
  box-shadow: 0 0 0 0 rgba(227, 38, 47, 0.7); animation: pulso 2s infinite;
}
@keyframes pulso {
  0% { box-shadow: 0 0 0 0 rgba(227, 38, 47, 0.7); }
  70% { box-shadow: 0 0 0 12px rgba(227, 38, 47, 0); }
  100% { box-shadow: 0 0 0 0 rgba(227, 38, 47, 0); }
}
.titulo {
  font-family: var(--fonte-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(3rem, 11vw, 6.5rem);
  line-height: 0.98; /* folga para os acentos (Ã, Í) não encostarem na linha de cima */
  letter-spacing: 0.005em;
  text-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
}
.titulo .destaque { color: var(--vermelho); }
.titulo .contorno { color: transparent; -webkit-text-stroke: 2px var(--branco); }
.subtexto {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: var(--texto-suave);
  max-width: 36ch;
}
.subtexto strong { color: var(--branco); font-weight: 600; }

/* --------------------------------------------------------- formulário -- */
/* Card de vidro: legível sobre a arte sem "apagar" o estádio */
.cadastro {
  background: var(--vidro);
  border: 1px solid var(--borda);
  border-radius: 16px;
  padding: var(--s3);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: var(--sombra);
  width: 100%;
  max-width: 440px;
}
@media (min-width: 600px) { .cadastro { padding: var(--s4); } }
.cadastro-titulo {
  font-family: var(--fonte-display); font-weight: 400; text-transform: uppercase;
  font-size: 1.5rem; line-height: 1.1; letter-spacing: 0.02em; margin-bottom: 4px;
}
.cadastro-sub { font-size: 0.9375rem; color: var(--texto-suave); margin-bottom: var(--s3); }

.campo { display: grid; gap: 6px; margin-bottom: var(--s2); }
.campo label { font-size: 0.875rem; font-weight: 600; }
.campo input {
  width: 100%;
  min-height: 48px;                 /* touch target confortável */
  padding: 12px 16px;
  font: inherit; font-size: 1rem;   /* 16px evita zoom automático no iOS */
  color: var(--branco);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--raio);
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.campo input::placeholder { color: rgba(195, 205, 224, 0.6); }
.campo input:hover { border-color: rgba(255, 255, 255, 0.4); }
.campo input:focus { outline: none; border-color: var(--azul-luz); background: rgba(255,255,255,.1); box-shadow: 0 0 0 3px rgba(79, 155, 255, 0.35); }
/* Validação em tempo real: só acusa erro depois que a pessoa saiu do campo */
.campo.invalido input { border-color: #ff6b72; box-shadow: 0 0 0 3px rgba(255, 107, 114, 0.25); }
.campo.valido input { border-color: #4cd08a; }
.campo .erro { font-size: 0.8125rem; color: #ff9aa0; min-height: 0; display: none; }
.campo.invalido .erro { display: block; }

.consentimento {
  display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start;
  font-size: 0.8125rem; line-height: 1.5; color: var(--texto-suave);
  margin: var(--s1) 0 var(--s3);
  cursor: pointer;
}
.consentimento input {
  width: 22px; height: 22px; margin-top: 1px; accent-color: var(--vermelho); cursor: pointer;
}
.consentimento.invalido { color: #ff9aa0; }
.consentimento a { color: var(--branco); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  width: 100%;
  min-height: 56px;
  padding: 16px 32px;
  font-family: var(--fonte-display); font-weight: 400; font-size: 1.25rem;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: #fff;
  background: var(--vermelho);      /* branco sobre #e3262f ≈ 4.6:1 */
  border: none; border-radius: var(--raio);
  cursor: pointer; text-decoration: none;
  box-shadow: 0 8px 24px rgba(227, 38, 47, 0.35);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { background: var(--vermelho-escuro); transform: translateY(-2px); box-shadow: 0 12px 32px rgba(227, 38, 47, 0.45); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid var(--branco); outline-offset: 3px; }
.btn svg { width: 20px; height: 20px; transition: transform .2s ease; }
.btn:hover svg { transform: translateX(4px); }
.btn[aria-busy='true'] { opacity: .75; pointer-events: none; }
.btn-fantasma {
  background: transparent; border: 1px solid rgba(255,255,255,.4); box-shadow: none; width: auto;
}
.btn-fantasma:hover { background: rgba(255,255,255,.08); box-shadow: none; }

.seguranca {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: var(--s2); font-size: 0.75rem; color: rgba(195, 205, 224, 0.8);
}
.seguranca svg { width: 14px; height: 14px; flex: none; }

/* Estado de sucesso: substitui o formulário, sem recarregar a página */
.sucesso { display: none; text-align: center; padding: var(--s2) 0; }
.cadastro.enviado form { display: none; }
.cadastro.enviado .sucesso { display: block; animation: surgir .5s ease both; }
.sucesso-icone {
  width: 64px; height: 64px; margin: 0 auto var(--s2); border-radius: 50%;
  display: grid; place-items: center; background: rgba(76, 208, 138, 0.15); color: #4cd08a;
}
.sucesso-icone svg { width: 32px; height: 32px; }
.sucesso h3 { font-family: var(--fonte-display); font-weight: 400; font-size: 1.75rem; text-transform: uppercase; margin-bottom: var(--s1); }
.sucesso p { color: var(--texto-suave); font-size: 0.9375rem; }
@keyframes surgir { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ------------------------------------------------- segunda dobra (2) -- */
.momento {
  position: relative;
  padding: var(--s7) 0;
  background: linear-gradient(180deg, rgba(5,13,28,0) 0%, var(--noite-900) 18%);
}
.momento-cabeca { max-width: 720px; margin-bottom: var(--s5); }
.momento-cabeca h2 {
  font-family: var(--fonte-display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(2.25rem, 6vw, 4rem); line-height: 1; margin: var(--s2) 0;
}
.momento-cabeca p { color: var(--texto-suave); font-size: clamp(1rem, 2vw, 1.125rem); max-width: 56ch; }

.pilares { display: grid; gap: var(--s2); grid-template-columns: 1fr; }
@media (min-width: 768px) { .pilares { grid-template-columns: repeat(3, 1fr); gap: var(--s3); } }
.pilar {
  position: relative; overflow: hidden;
  padding: var(--s4) var(--s3);
  border: 1px solid var(--borda); border-radius: 16px;
  background: linear-gradient(160deg, rgba(17, 35, 74, 0.7), rgba(10, 23, 48, 0.4));
  transition: transform .3s ease, border-color .3s ease;
}
.pilar:hover { transform: translateY(-4px); border-color: rgba(79,155,255,.4); }
.pilar-num {
  font-family: var(--fonte-display); font-size: 0.875rem; letter-spacing: .12em; color: var(--azul-luz);
}
.pilar h3 { font-family: var(--fonte-display); font-weight: 400; text-transform: uppercase; font-size: 1.75rem; line-height: 1.05; margin: var(--s2) 0 var(--s1); }
.pilar p { color: var(--texto-suave); font-size: 0.9375rem; }
/* Cadeado/"em breve" deixa claro que é teaser, sem antecipar detalhes */
.pilar-selo {
  display: inline-block; margin-top: var(--s2); font-size: .6875rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; padding: 4px 12px; border-radius: var(--raio-pill);
  background: rgba(227,38,47,.15); color: #ff8f95; border: 1px solid rgba(227,38,47,.35);
}

.chamada-final {
  margin-top: var(--s6);
  display: flex; flex-direction: column; align-items: flex-start; gap: var(--s3);
  padding: var(--s4);
  border-radius: 16px;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(227,38,47,.35), transparent 55%),
    linear-gradient(135deg, var(--noite-700), var(--noite-800));
  border: 1px solid var(--borda);
}
.chamada-final h3 { font-family: var(--fonte-display); font-weight: 400; text-transform: uppercase; font-size: clamp(1.75rem, 4vw, 2.5rem); line-height: 1.05; }
.chamada-final .btn { width: 100%; }
@media (min-width: 768px) {
  .chamada-final { flex-direction: row; align-items: center; justify-content: space-between; padding: var(--s5); }
  .chamada-final .btn { width: auto; }
}

/* ------------------------------------------------------------- rodapé -- */
.rodape { padding: var(--s4) 0 var(--s5); border-top: 1px solid var(--borda); background: var(--noite-900); }
.rodape .container { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; justify-content: space-between; }
.rodape p, .rodape a { font-size: 0.8125rem; color: rgba(195,205,224,.75); }
.rodape img { width: 32px; height: 32px; }
.rodape-marca { display: flex; align-items: center; gap: 12px; }

/* --------------------------------------------- entrada em sequência -- */
.entra { opacity: 0; transform: translateY(16px); animation: surgir .8s cubic-bezier(.2,.7,.2,1) forwards; animation-delay: calc(var(--i, 0) * 110ms + 150ms); }
.revela { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.revela.visivel { opacity: 1; transform: none; }

/* CTA fixo no mobile: removido a pedido (a página fica sem botão flutuante). */

/* ------------------------------------- notebooks baixos (≤ 780px alt.) -- */
/* Em 1280×720 / 1366×768 o botão de envio precisa continuar na 1ª dobra:
   os rótulos viram só-leitor-de-tela (o placeholder guia visualmente) e os
   respiros encolhem. */
@media (min-width: 900px) and (max-height: 780px) {
  .hero { padding-top: 80px !important; }
  .hero-texto { gap: 12px !important; }
  .hero-texto .titulo { font-size: min(5rem, 10vh, 8vw) !important; }
  .em-breve { display: none !important; }
  .campo label {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
  }
  .campo { margin-bottom: 8px !important; }
  .cadastro-titulo { margin-bottom: 12px !important; }
}

/* O cabeçalho é largo e transparente: não pode engolir toques de quem está
   por baixo (ex.: botão "Mover com o celular" da V3). Só o conteúdo dele é clicável. */
.topo, .topo .container { pointer-events: none; }
.topo .container > * { pointer-events: auto; }

/* ------------------------------------- indicador "tem mais embaixo" -- */
/* Só no celular e só antes do primeiro scroll: círculo em outline no canto
   direito com a seta descendo. Discreto, não briga com o conteúdo, e some no
   primeiro movimento. Fundo transparente de propósito: o Safari do iPhone
   pinta a barra com a cor de elementos fixos encostados na borda. */
.indicador-rolar {
  /* Absoluto (não fixo): fica no pé da primeira tela e vai embora com a
     rolagem, sem nada preso na borda de baixo do Safari. */
  position: absolute; right: 16px; z-index: 40;
  top: calc(100svh - 64px - env(safe-area-inset-bottom));
  width: 48px; height: 48px; /* alvo de toque ≥ 44px */
  display: grid; place-items: center; overflow: hidden;
  border: 2px solid rgba(255,255,255,.8); border-radius: 50%;
  color: #fff; background: transparent;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.6));
  transition: opacity .3s ease, visibility 0s linear .3s;
}
.indicador-rolar svg { animation: seta-desce 1.6s cubic-bezier(.5,0,.3,1) infinite; }
/* A seta desce, some pela borda de baixo e reaparece por cima: lê como "continua". */
@keyframes seta-desce {
  0%   { transform: translateY(-18px); opacity: 0; }
  25%  { transform: translateY(0);     opacity: 1; }
  60%  { transform: translateY(0);     opacity: 1; }
  100% { transform: translateY(18px);  opacity: 0; }
}
.rolou .indicador-rolar { opacity: 0; visibility: hidden; pointer-events: none; }
.indicador-rolar:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
@media (min-width: 900px) { .indicador-rolar { display: none; } }
@media (prefers-reduced-motion: reduce) { .indicador-rolar svg { animation: none; } }

/* --------------------------------------- pergunta pós-cadastro (FEN-1220) -- */
.pesquisa[hidden] { display: none !important; }
.pesquisa {
  position: fixed;
  inset: 0;
  z-index: 50;
  overflow: auto;
  display: flex;
  flex-direction: column;
  background: var(--noite-900);
  padding: var(--s4) var(--s3) var(--s6);
}
body.pesquisa-aberta { overflow: hidden; }
.pesquisa-topo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: var(--s5);
}
.pesquisa-topo img { width: 48px; height: 48px; }
.pesquisa-marca { display: grid; line-height: 1.1; text-align: left; }
.pesquisa-marca span {
  font-family: var(--fonte-display);
  font-size: 1.125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.pesquisa-marca small {
  margin-top: 4px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--texto-suave);
}
.pesquisa-coluna {
  width: min(100%, 480px);
  margin: auto;
  text-align: center;
  animation: surgir .5s ease both;
}
.pesquisa-coluna h2 {
  font-family: var(--fonte-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(2rem, 7vw, 2.75rem);
  line-height: 0.98;
  letter-spacing: 0.02em;
  text-wrap: balance;
  margin-bottom: var(--s3);
}
.pesquisa-pergunta {
  font-weight: 700;
  font-size: 1.0625rem;
  text-wrap: pretty;
  margin-bottom: var(--s1);
}
.pesquisa-apoio {
  color: var(--texto-suave);
  font-size: 0.9375rem;
  text-wrap: pretty;
  margin-bottom: var(--s3);
}
.pesquisa-opcoes { display: grid; gap: 12px; margin-bottom: var(--s3); text-align: left; }
.pesquisa-opcao {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 12px 16px;
  border: 1px solid var(--borda);
  border-radius: var(--raio);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease, transform .2s ease;
}
.pesquisa-opcao:has(input:checked) {
  border-color: var(--vermelho);
  background: rgba(227, 38, 47, 0.14);
}
.pesquisa-opcao:active { transform: scale(0.98); }
.pesquisa-opcao input {
  width: 22px;
  height: 22px;
  accent-color: var(--vermelho);
  flex: none;
}
.pesquisa-opcao:focus-within { outline: 3px solid var(--branco); outline-offset: 3px; }
.btn:disabled,
.btn:disabled:hover {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  background: var(--vermelho);
}
.pesquisa-pular {
  display: block;
  width: 100%;
  margin-top: var(--s2);
  min-height: 48px;
  padding: 12px;
  border: none;
  background: transparent;
  color: var(--texto-suave);
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.pesquisa-pular:hover { color: var(--branco); }
.pesquisa-pular:focus-visible { outline: 3px solid var(--branco); outline-offset: 3px; }
.pesquisa-final {
  color: var(--texto-suave);
  font-size: 1.0625rem;
  text-wrap: pretty;
}
