/* Identidade da Hosana: somente estas cinco cores. Estrutura copiada da página de referência. */
:root {
  --vinho-profundo: #5E0202;
  --vinho-vivo: #950100;
  --creme: #EDE6CF;
  --off: #FFFDF2;
  --verde: #1B7F2A;
  --verde-escuro: #135A1E;
  --branco: #FFFFFF;
  --preto: #1E1914;

  --texto-suave: rgba(30, 25, 20, 0.78);
  --linha: rgba(30, 25, 20, 0.18);
  --fundo-suave: rgba(237, 230, 207, 0.4);

  /* Troque aqui quando os arquivos das fontes oficiais forem fornecidos. */
  --fonte-titulo: "Roboto Serif", "Times New Roman", serif;
  --fonte-corpo: "Noto Serif", Georgia, serif;

  --altura-topo: 44px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  padding-top: var(--altura-topo);
  background: var(--branco);
  color: var(--preto);
  font-family: var(--fonte-corpo);
  font-size: 1rem;
  line-height: 1.55;
  overflow-x: hidden;
}

[hidden] { display: none !important; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p, h1, h2, h3, ul, figure, blockquote { margin: 0; }
ul { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--vinho-vivo); outline-offset: 3px; }

.container { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: 24px; }

h1, h2, h3, .numero-grande, .contador-num {
  font-family: var(--fonte-titulo);
  font-stretch: 50%;
  text-transform: uppercase;
}
.destaque { color: var(--vinho-vivo); }

/* ---------- 1. Barra do topo: faixa em movimento ---------- */
.topo {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--altura-topo);
  z-index: 50;
  overflow: hidden;
  background: var(--vinho-vivo);
}
.topo-trilha { display: flex; width: max-content; animation: faixa 40s linear infinite; }
.topo:hover .topo-trilha { animation-play-state: paused; }
.topo-grupo {
  display: flex;
  align-items: center;
  gap: 22px;
  padding-right: 22px;
  white-space: nowrap;
  line-height: var(--altura-topo);
  font-family: var(--fonte-titulo);
  font-stretch: 50%;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  color: var(--off);
}
.topo .dest { font-weight: 700; color: var(--creme); }
.ponto { display: inline-block; flex-shrink: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--off); }
@keyframes faixa { to { transform: translateX(-25%); } }

/* ---------- Botão (pílula grande, como na referência) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  padding: 0 16px;
  border: 0;
  border-radius: 500px;
  background: var(--verde);
  color: var(--branco);
  font-family: var(--fonte-corpo);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.btn:hover { background: var(--verde-escuro); }
.btn:disabled { cursor: wait; opacity: 0.8; }
.btn-bloco { display: flex; width: 100%; }

/* ---------- 2. Primeira dobra ---------- */
.hero-foto {
  position: relative;
  aspect-ratio: 390 / 204;
  overflow: hidden;
}
.hero-foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 24%;
  -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent), linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to bottom, #000 78%, transparent), linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
  mask-composite: intersect;
}

.hero-grade { display: grid; gap: 12px; padding-bottom: 40px; }
.hero-foto { margin-inline: -24px; justify-self: stretch; }
.hero-texto { margin-top: -30px; position: relative; text-align: center; }
.hero-direita { display: grid; gap: 12px; }

h1 {
  font-weight: 700;
  font-size: clamp(1.7rem, 8.3vw, 4rem);
  line-height: 0.98;
  letter-spacing: 0.005em;
  text-wrap: balance;
}

/* Faixa de informações: linhas finas e colunas separadas */
.info {
  display: flex;
  margin-top: 12px;
  border-block: 1px solid var(--linha);
  font-family: var(--fonte-titulo);
  font-stretch: 50%;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.1;
  text-align: center;
}
.info li { flex: 1 1 auto; display: flex; align-items: center; justify-content: center; padding: 9px 6px; border-left: 1px solid var(--linha); }
.info li:first-child { border-left: 0; }

.sub { color: var(--texto-suave); font-size: 0.95rem; font-weight: 500; line-height: 1.45; text-align: center; }

/* Painel do formulário */
.form-painel {
  padding: 17px;
  border: 0.8px solid var(--linha);
  border-radius: 16px;
  background: linear-gradient(rgba(149, 1, 0, 0.07), rgba(237, 230, 207, 0.55));
}
.form-titulo { font-size: 1.3rem; line-height: 1; text-align: center; }
.form-apoio { margin: 3px 0 10px; color: var(--texto-suave); font-size: 0.72rem; text-align: center; white-space: nowrap; }
.campo { margin-bottom: 6px; }
.campo > label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.campo input:not([type="radio"]) {
  width: 100%;
  height: 50px;
  padding: 0 24px;
  border: 0.8px solid rgba(30, 25, 20, 0.28);
  border-radius: 66px;
  background: var(--branco);
  color: var(--preto);
  font: inherit;
  font-size: 1rem;
}
.campo input:not([type="radio"])::placeholder { color: rgba(30, 25, 20, 0.58); }
.campo input:not([type="radio"])[aria-invalid="true"] { border-color: var(--vinho-vivo); box-shadow: 0 0 0 1px var(--vinho-vivo); }
.erro { margin: 4px 0 0 20px; color: var(--vinho-vivo); font-size: 0.82rem; font-weight: 600; }
.erro:empty { display: none; }
.isca { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-cartao .btn { margin-top: 4px; }
.form-status { margin-top: 10px; font-weight: 600; text-align: center; }
.form-status:empty { display: none; }
.form-status.erro-envio { color: var(--vinho-vivo); }
.form-nota { margin-top: 12px; color: var(--texto-suave); font-size: 0.8rem; text-align: center; }
.form-legal { margin-top: 6px; color: var(--texto-suave); font-size: 0.72rem; text-align: center; }

.contador-bloco { margin-top: 4px; }
.contador-bloco .info { margin-top: 0; }
.contador { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.contador-celula { padding: 8px 4px; text-align: center; border: 0.8px solid var(--linha); border-radius: 12px; background: var(--branco); }
.contador-num { display: block; color: var(--vinho-vivo); font-size: 1.9rem; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.contador-rot { display: block; margin-top: 3px; color: var(--texto-suave); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; }
.contador-aovivo { text-align: center; font-family: var(--fonte-titulo); font-stretch: 50%; font-weight: 700; font-size: 1.7rem; text-transform: uppercase; color: var(--vinho-vivo); }

@media (min-width: 900px) {
  .btn { min-height: 66px; }
  .hero { overflow: hidden; }
  .hero-grade {
    max-width: none;
    padding: 0;
    gap: 0;
    grid-template-columns: minmax(0, 54%) minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    grid-template-areas: "foto texto" "foto direita";
    align-items: start;
  }
  .hero-foto { grid-area: foto; margin: 0; width: 100%; max-width: none; align-self: stretch; aspect-ratio: auto; min-height: 0; }
  .hero-foto picture { position: absolute; inset: 0; }
  .hero-foto img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100% + 6vw);
    transform: translateY(-6vw);
    object-position: 50% 0%;
    -webkit-mask-image: linear-gradient(to right, #000 78%, transparent), linear-gradient(to bottom, #000 90%, transparent);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(to right, #000 78%, transparent), linear-gradient(to bottom, #000 90%, transparent);
    mask-composite: intersect;
  }
  .hero-texto { grid-area: texto; margin: 0 auto; width: min(100%, 620px); padding: 44px 32px 0; }
  .hero-direita { grid-area: direita; align-self: start; gap: 18px; margin: 18px auto 0; width: min(100%, 620px); padding: 0 32px 48px; }
  h1 { font-size: clamp(2.4rem, 3.2vw, 3.6rem); }
  .info { font-size: 1rem; }
  .info li { white-space: nowrap; padding-inline: 4px; }
  .sub { font-size: 1.1rem; }
  .form-painel { padding: 22px; }
}

/* ---------- Seções, como na referência: coluna única, cartões com borda fina ---------- */
.secao { padding-block: 40px 8px; }
.miolo { display: flex; flex-direction: column; gap: 20px; text-align: center; }
.titulo { font-size: 2rem; font-weight: 700; line-height: 1.02; letter-spacing: 0.005em; text-wrap: balance; }
.abertura, .texto { font-size: 1.05rem; font-weight: 500; line-height: 1.5; }
.fecho { color: var(--texto-suave); font-size: 1.05rem; font-weight: 500; line-height: 1.5; }
.fecho .destaque { font-weight: 700; }
.urgencia { color: var(--texto-suave); font-size: 1.05rem; font-weight: 500; line-height: 1.5; }
.urgencia .destaque { font-weight: 700; }

.cartao {
  padding: 25px;
  border: 0.8px solid var(--linha);
  border-radius: 16px;
  background: var(--fundo-suave);
}

.pilares { display: flex; flex-direction: column; align-items: stretch; gap: 14px; }
.pilar-rot { margin-bottom: 4px; color: var(--texto-suave); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.18em; }
.numero-grande { display: block; color: var(--vinho-vivo); font-size: 3.75rem; font-weight: 700; line-height: 1.05; text-transform: none; }
.pilar h3 { margin: 6px 0 8px; font-size: 1.5rem; font-weight: 700; line-height: 1.05; }
.pilar p:last-child { color: var(--texto-suave); font-size: 1.05rem; }
.mais { position: relative; align-self: center; width: 22px; height: 22px; }
.mais::before, .mais::after { content: ""; position: absolute; background: var(--vinho-vivo); border-radius: 2px; }
.mais::before { left: 0; right: 0; top: 9px; height: 4px; }
.mais::after { top: 0; bottom: 0; left: 9px; width: 4px; }

.foto-cartao { overflow: hidden; border: 0.8px solid var(--linha); border-radius: 16px; background: var(--creme); }
.foto-cartao img { width: 100%; height: auto; }

/* Da Queixa ao Laudo */
.cartao-cab { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.avatar { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; object-position: 50% 14%; background: var(--creme); }
.cartao-nome { font-size: 0.875rem; font-weight: 700; }
.cartao-curso > p { color: var(--texto-suave); font-size: 0.95rem; }
.numeros { display: flex; flex-wrap: wrap; gap: 14px 40px; margin-top: 20px; }
.numeros li { display: flex; flex-direction: column; }
.numeros .numero-grande { font-size: 3.75rem; }
.numero-rot { color: var(--texto-suave); font-size: 0.875rem; font-weight: 500; }
.depoimento blockquote { font-size: 1.15rem; font-weight: 600; line-height: 1.4; }
.depoimento figcaption { margin-top: 10px; color: var(--texto-suave); font-size: 0.875rem; }

.lista-titulo { font-size: 1.05rem; font-weight: 700; }
.motivos { display: flex; flex-direction: column; margin-top: -6px; }
.motivos li { padding: 14px 0; border-top: 0.8px solid var(--linha); font-size: 1rem; }
.motivos li:last-child { border-bottom: 0.8px solid var(--linha); }

/* ---------- 7. Rodapé: painel escuro com cantos superiores arredondados ---------- */
.rodape { margin-top: 56px; padding: 40px 0 44px; border-radius: 16px 16px 0 0; background: var(--preto); color: var(--creme); font-size: 0.8rem; text-align: center; }
.rodape p + p { margin-top: 14px; }
.rodape-links { display: flex; flex-direction: column; gap: 10px; font-size: 0.875rem; }
.rodape-links a { color: var(--creme); text-underline-offset: 3px; }
.rodape-aviso { font-size: 0.75rem; opacity: 0.85; }


/* ---------- Revelação ao rolar ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.entrou { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .topo-trilha { animation: none; width: 100%; }
  .topo-grupo:not(:first-child) { display: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn { transition: none; }
}

/* Escala única de textos nas seções (computador) */
@media (min-width: 900px) {
  .miolo { max-width: 680px; }
  .secao { padding-block: 64px 16px; }
  .titulo { font-size: 3rem; }
  .abertura, .texto, .fecho, .urgencia, .pilar p:last-child { font-size: 1.15rem; }
}

/* ---------- Página de obrigado: barra de progresso em 90% ---------- */
body.obrigado, .obrigado-raiz { padding-top: 0; }
.obr-topo { display: flex; flex-direction: column; align-items: center; gap: 22px; padding: 28px 24px 26px; border-bottom: 0.8px solid var(--linha); }
.obr-logo { width: 56px; height: 56px; }
.progresso { position: relative; width: min(100%, 550px); height: 26px; overflow: hidden; border: 2px solid var(--vinho-vivo); border-radius: 999px; }
.progresso-barra {
  width: 0;
  height: 100%;
  border-radius: 999px;
  background: repeating-linear-gradient(135deg, var(--vinho-vivo) 0 14px, var(--vinho-profundo) 14px 28px);
  transition: width 1.2s ease-out;
}
.progresso-rot { position: absolute; right: 7px; top: 50%; transform: translateY(-50%); color: var(--vinho-vivo); font-size: 0.68rem; font-weight: 700; }
.obr-miolo { max-width: 700px; margin: 0 auto; padding: 36px 24px 64px; }
.obr-painel { padding: 28px 24px; text-align: center; }
.obr-titulo { font-size: clamp(2rem, 8vw, 3rem); font-weight: 700; line-height: 1.02; text-wrap: balance; }
.obr-texto { margin: 14px 0 12px; color: var(--texto-suave); font-size: 1.05rem; font-weight: 500; }
.obr-data { margin: 0 0 22px; color: var(--texto-suave); font-size: 1.05rem; font-weight: 500; }
.obr-data .destaque { font-weight: 700; }
.obr-micro { margin-top: 14px; color: var(--texto-suave); font-size: 0.85rem; }
@media (prefers-reduced-motion: reduce) { .progresso-barra { transition: none; } }

/* Perguntas de múltipla escolha: opções sempre visíveis, em caixinhas com bolinha */
.opcoes { margin: 0 0 10px; padding: 0; border: 0; min-width: 0; }
.opcoes legend { display: block; width: 100%; padding: 0; margin-bottom: 8px; color: var(--preto); font-size: 0.95rem; font-weight: 700; line-height: 1.3; text-align: center; }
.opcoes-grade { display: grid; grid-template-columns: 1fr; gap: 6px; }
.opcao { position: relative; display: block; }
.opcao input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.opcao span {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 6px 20px;
  border: 0.8px solid rgba(30, 25, 20, 0.28);
  border-radius: 66px;
  background: var(--branco);
  color: var(--preto);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.25;
  text-align: left;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.opcao span::before {
  content: "";
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(30, 25, 20, 0.45);
  border-radius: 50%;
  background: var(--branco);
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}
.opcao input:checked + span { border-color: var(--vinho-vivo); background: rgba(237, 230, 207, 0.55); font-weight: 600; }
.opcao input:checked + span::before { border-color: var(--vinho-vivo); background: var(--vinho-vivo); box-shadow: inset 0 0 0 3px var(--branco); }
.opcao input:focus-visible + span { outline: 2px solid var(--vinho-vivo); outline-offset: 3px; }
.opcoes[aria-invalid="true"] .opcao span { border-color: var(--vinho-vivo); }
@media (min-width: 900px) { .opcoes-grade.grade-2 { grid-template-columns: 1fr 1fr; } }
