/* ==========================================================
   Espetáculo Encantadamente · Landing page
   Mobile first. Breakpoint único em 768px.
   Paleta: off-white, areia, preto e amarelo. Sem blur, glow ou degradê.
   ========================================================== */

:root {
  --bg: #FAF8F3;
  --sand: #EFE9DD;
  --ink-line: 1.5px solid #0A0A0B;
  --card: #FFFFFF;
  --line: rgba(10, 10, 11, .08);
  --text: #0A0A0B;
  --muted: #5A5853;          /* 6,7:1 sobre --bg (WCAG AA ok para texto pequeno) */
  --yellow: #F5C518;
  --yellow-hover: #FFD43B;

  /* Grão: SVG feTurbulence inline, ~0,5 KB, 4% de opacidade */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='.33 .33 .33 0 0 .33 .33 .33 0 0 .33 .33 .33 0 0 0 0 0 0 1'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.04'/%3E%3C/svg%3E");

  --section-y: 56px;

  --font-display: "Anton", Impact, "Arial Narrow Bold", sans-serif;
  --font-body: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --gutter: 16px;
  /* Altura máxima do player no mobile (9:16, a largura acompanha) */
  --vsl-max-h: 48svh;   /* 62svh deixava o botão fora da primeira tela em 375x812; 48 com o selo da logo */
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; }

/* ---------- Faixas full-bleed ---------- */
.band {
  position: relative;
  padding: var(--section-y) var(--gutter);
  background-image: var(--grain);
}

.band-light { background-color: var(--bg); }
.band-sand  { background-color: var(--sand); }

.band-hero {
  padding-top: 0;          /* o topo do hero fica justo para caber na primeira tela */
  overflow: hidden;        /* a data fantasma sangra sem gerar scroll horizontal */
}

.band-hero > :not(.ghost-date) { position: relative; z-index: 1; }

/* Data fantasma atrás da headline (decorativa) */
.ghost-date {
  position: absolute;
  z-index: 0;
  top: 48px;
  right: -.12em;
  font-family: var(--font-display);
  font-size: 40vw;
  line-height: .8;
  color: #0A0A0B;
  opacity: .05;
  white-space: nowrap;
  user-select: none;
  -webkit-user-select: none;
  pointer-events: none;
}

/* Faixa de informação */
.info-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 8px var(--gutter);
  background: #0A0A0B;
  color: #FFFFFF;
}

.info-strip p {
  margin: 0;
  max-width: 100%;
  font-weight: 600;
  font-size: .6875rem;
  line-height: 1.5;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-align: center;
  text-wrap: balance;
}

.info-date { color: var(--yellow); }

[data-hidden] { display: none !important; }

/* Destaque amarelo: amarelo sobre o off-white tem contraste de 1,5:1,
   então a palavra vira marca-texto (fundo amarelo, texto preto = 12:1). */
.hl {
  background: var(--yellow);
  color: var(--text);
  padding: 0 .12em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* ---------- 1. Headline ---------- */
.hero {
  max-width: 720px;
  margin: 0 auto;
  padding: 12px 0 12px;
  text-align: center;
}

/* Logo oficial é a versão para fundo escuro ("encantada" branco):
   entra original, sobre um selo preto da paleta. */
.logo-badge {
  display: inline-block;
  margin: 0 auto 8px;
  padding: 6px 14px;
  border-radius: 12px;
  background: #0A0A0B;
  line-height: 0;
}

.logo {
  height: 60px;
  width: auto;
}

.pretitle {
  margin: 0 0 6px;
  font-weight: 600;
  font-size: .6875rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
}

.headline {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.125rem, 9.6vw, 5.25rem);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: .01em;
}

/* Segunda linha em bloco próprio, afastada para o "Ç" não encostar no marca-texto */
.headline .hl {
  display: inline-block;
  margin-top: .3em;   /* a cedilha da Anton desce ~.22em abaixo da linha */
  padding: .04em .14em 0;
}

.subheadline {
  margin: 10px auto 0;
  max-width: 560px;
  font-size: .9375rem;
  line-height: 1.5;
  color: var(--muted);
}

/* ---------- 2. VSL ---------- */
.vsl {
  max-width: 420px;
  margin: 0 auto;
}

.vsl-frame {
  position: relative;
  /* Mobile: altura máxima de 62svh mantendo 9:16 (a largura acompanha a altura) */
  width: min(100%, calc(48vh * 9 / 16));
  width: min(100%, calc(var(--vsl-max-h) * 9 / 16));
  margin: 0 auto;
  aspect-ratio: 9 / 16;
  border-radius: 12px;
  overflow: hidden;
  background: var(--card);
  border: var(--ink-line);
}

.vsl-frame iframe,
.vsl-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}

.vsl-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.vsl-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80px;
  height: 80px;
  margin: -40px 0 0 -40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--text);
  box-shadow: 0 0 0 8px rgba(255, 255, 255, .55), 0 8px 24px rgba(10, 10, 11, .18);
  transition: transform .2s ease;
}

.play-icon svg { margin-left: 4px; }

.vsl-thumb:hover .play-icon,
.vsl-thumb:focus-visible .play-icon { transform: scale(1.08); }

.vsl-thumb:focus-visible { outline: 3px solid var(--text); outline-offset: -3px; }

@media (prefers-reduced-motion: no-preference) {
  .play-icon { animation: pulse 2s ease-in-out infinite; }
  @keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 8px rgba(255, 255, 255, .55), 0 8px 24px rgba(10, 10, 11, .18); }
    50%      { box-shadow: 0 0 0 16px rgba(255, 255, 255, .2), 0 8px 24px rgba(10, 10, 11, .18); }
  }
}

.vsl-info {
  margin: 8px 0 0;
  text-align: center;
  font-weight: 600;
  font-size: .8125rem;
  color: var(--text);
}

/* ---------- 3 e 6. Botão ---------- */
.cta-block {
  max-width: 520px;
  margin: 0 auto;
  padding: 12px 0 8px;
  text-align: center;
}

.cta {
  display: block;
  width: 100%;
  padding: 18px 20px;
  border-radius: 12px;
  background: var(--yellow);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: 1.3;
  text-align: center;
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: .02em;
  box-shadow: 0 1px 2px rgba(10, 10, 11, .08), 0 4px 12px rgba(10, 10, 11, .06);
  transition: transform .15s ease, background-color .15s ease;
  -webkit-tap-highlight-color: transparent;
}

.cta:hover { background: var(--yellow-hover); transform: translateY(-2px); }
.cta:active { transform: translateY(0); }
.cta:focus-visible { outline: 3px solid var(--text); outline-offset: 3px; }

.cta-note {
  margin: 10px 0 0;
  font-size: .8125rem;
  color: var(--muted);
}

/* Revelação com atraso (BUTTON_DELAY_SECONDS > 0) */
.cta-block.is-locked { display: none; }
.cta-block.is-revealed { animation: reveal .5s ease both; }
@keyframes reveal { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* Barra fixa (só mobile) */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: rgba(250, 248, 243, .96);
  border-top: 1px solid var(--line);
  box-shadow: 0 -4px 16px rgba(10, 10, 11, .06);
  transform: translateY(110%);
  visibility: hidden;
  transition: transform .25s ease, visibility .25s;
}

.sticky-cta.is-visible { transform: none; visibility: visible; }

.sticky-cta .cta { padding: 15px 16px; font-size: 1rem; }

/* ---------- 4. Carta de vendas ---------- */
.letter {
  max-width: 1000px;
  margin: 0 auto;
}

.section-title {
  margin: 0 0 28px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 9vw, 3.25rem);
  line-height: 1.1;
  text-transform: uppercase;
  text-align: center;
}

/* Marca-texto em bloco próprio: não invade a linha de cima quando o título quebra */
.section-title .hl {
  display: inline-block;
  margin-top: .08em;
  padding: .04em .14em 0;
}

.letter-grid {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: center;
}

.letter-photo {
  margin: 0;
  width: 100%;
  max-width: 360px;
}

.letter-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 12px;
  border: var(--ink-line);
  background: var(--card);
}

.letter-text {
  max-width: 640px;
  font-size: 1.0625rem;
}

.letter-text p { margin: 0 0 1.1em; }
.letter-text p:last-child { margin-bottom: 0; }

.signoff { margin-top: 1.6em !important; }
.signoff strong { font-weight: 700; }

/* ---------- 5. FAQ ---------- */
.faq {
  max-width: 720px;
  margin: 0 auto;
}

.faq-list { display: grid; gap: 10px; }

.faq-item {
  background: var(--card);
  border: var(--ink-line);
  border-radius: 10px;
  padding: 0 18px;
  transition: border-color .2s ease;
}

/* Aberto: borda esquerda vira 4px amarela (padding compensa a largura extra) */
.faq-item.is-open {
  border-left: 4px solid var(--yellow);
  padding-left: 15.5px;
}

.faq-item h3 { margin: 0; font-size: inherit; }

.faq-q {
  position: relative;
  display: block;
  width: 100%;
  padding: 18px 36px 18px 0;
  border: 0;
  background: none;
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
}

.faq-q::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 50%;
  width: 9px;
  height: 9px;
  margin-top: -7px;
  border-right: 2px solid var(--text);
  border-bottom: 2px solid var(--text);
  transform: rotate(45deg);
  transition: transform .25s ease;
}

.faq-q[aria-expanded="true"]::after { transform: rotate(-135deg); margin-top: -2px; }

.faq-q:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; border-radius: 4px; }

.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .25s ease, visibility .25s;
  visibility: hidden;
}

.faq-a > div { overflow: hidden; }

.faq-a p { margin: 0 0 18px; color: var(--muted); }

.faq-item.is-open .faq-a { grid-template-rows: 1fr; visibility: visible; }

/* ---------- Rodapé ---------- */
.cta-final { padding-top: 48px; padding-bottom: 0; }

.footer {
  padding: var(--section-y) var(--gutter) calc(var(--section-y) + env(safe-area-inset-bottom));
  border-top: 1px solid #0A0A0B;
  background: #FFFFFF;
  text-align: center;
}

.footer-band + .footer-band { margin-top: 36px; }

.footer-title {
  margin: 0 0 16px;
  font-weight: 600;
  font-size: .75rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Logos soltas sobre o branco, centralizadas. A altura de cada logo é
   ajustada individualmente com --s (escala sobre a altura de referência)
   para equilibrar o peso visual dentro do grupo. */
.partners {
  --logo-h: 36px;
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 900px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 24px 32px;
}

.partners img {
  height: calc(var(--logo-h) * var(--s, 1));
  width: auto;
  max-width: none;
}

/* Mobile: Apoio quebra em 2 + 2 (em vez de 3 + 1) */
.partners-apoio { max-width: 240px; }

/* Bloco institucional em linha própria, abaixo do Apoio */
.footer-band-gov {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid rgba(10, 10, 11, .15);
}

.footer-social { margin: 36px 0 0; }

.footer-social a {
  font-weight: 600;
  font-size: .9375rem;
  text-decoration: underline;
  text-decoration-color: var(--yellow);
  text-decoration-thickness: 3px;
  text-underline-offset: 4px;
}

.footer-social a:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; border-radius: 2px; }

.footer-copy {
  margin: 16px 0 0;
  font-size: .75rem;
  color: var(--muted);
}

/* ---------- Desktop ---------- */
@media (min-width: 768px) {
  :root { --section-y: 80px; }

  .ghost-date { top: 72px; font-size: 40vw; }

  .info-strip { min-height: 56px; }
  .info-strip p { font-size: .8125rem; }

  .hero { padding: 48px 0 32px; }
  .logo-badge { margin-bottom: 20px; padding: 10px 18px; }
  .logo { height: 80px; }
  .pretitle { font-size: .75rem; margin-bottom: 12px; }
  .subheadline { font-size: 1.125rem; margin-top: 18px; }

  .vsl-frame { width: 100%; }

  .cta-block { padding-top: 28px; }
  .cta { display: inline-block; width: auto; min-width: 420px; padding: 22px 36px; font-size: 1.125rem; }

  .sticky-cta { display: none; }

  .letter-grid { flex-direction: row; align-items: flex-start; gap: 48px; justify-content: center; }
  .letter-photo { flex: 0 0 300px; position: sticky; top: 32px; }

  .faq-q { font-size: 1.0625rem; }

  .partners { --logo-h: 48px; gap: 32px 56px; }
  .partners-apoio { max-width: 900px; }
  .footer-band-gov { max-width: 900px; margin-left: auto; margin-right: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}
