/* Página de captura — Story 1.1. Mobile first, fonte do sistema, sem dependências. */
:root {
  /* Visual A — bastidor: noite + amarelo só no que é clicável */
  --bg: #0b0f17;
  --fg: #f2f4f8;
  --muted: #a3adbd;
  --line: #3a4456;
  --surface: #151b26;
  --surface-2: #1d2430;
  --accent: #ffd23f;
  --accent-ink: #111111;
  --accent-ring: rgb(255 210 63 / 0.35);
  --live: #ff4d4d;
  --danger: #ff8a80;
  --wa: #0e7a3e;
  --wa-ink: #ffffff;
  --radius: 10px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.5 var(--font); }
img { max-width: 100%; display: block; }
a { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.faixa { background: var(--surface); color: var(--fg); text-align: center; font-size: 14px; font-weight: 600; line-height: 1.35; padding: 9px 16px; text-wrap: balance; }
.faixa .ponto { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--live); margin-right: 8px; vertical-align: 1px; animation: pulsa 1.6s ease-in-out infinite; }
@keyframes pulsa { 50% { opacity: 0.35; } }
h1 mark { background: var(--accent); color: var(--accent-ink); padding: 0 6px; border-radius: 4px; }

.pagina { max-width: 560px; margin: 0 auto; padding: 18px 16px 104px; display: grid; gap: 20px; }
.topo { display: grid; gap: 12px; justify-items: center; }
.perfil { display: flex; align-items: center; gap: 10px; }
.perfil .anel { width: 52px; height: 52px; border-radius: 50%; padding: 2.5px; background: conic-gradient(from 210deg, #feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5, #feda75); flex: none; }
.perfil .anel img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 2.5px solid var(--bg); }
.perfil-texto { display: grid; text-align: left; line-height: 1.25; }
.perfil-nome { display: flex; align-items: center; gap: 5px; font-size: 15px; font-weight: 700; color: var(--fg); }
.perfil-sub { font-size: 13px; color: var(--muted); }
.verificado { display: inline-flex; width: 16px; height: 16px; color: #3b82f6; flex: none; }
.verificado svg { width: 100%; height: 100%; }
.cartao-form { display: grid; gap: 14px; padding: 22px 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.passo-form { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
.cartao-form h2 { margin: -6px 0 0; font-size: 21px; line-height: 1.25; text-wrap: balance; }
.cartao-form .convite { text-align: left; margin-top: -6px; }
.cartao-form .campo input { background: var(--bg); }
h1 { font-size: clamp(22px, 6vw, 26px); line-height: 1.25; margin: 0; text-align: center; text-wrap: balance; }

/* Vídeo 4:5 com fachada (AC 4) */
.video { position: relative; aspect-ratio: 4 / 5; width: 100%; border-radius: 14px; overflow: hidden; background: var(--surface-2); border: 2px solid var(--accent); }
.video img, .video iframe, .video > div { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.video button { position: absolute; inset: 0; width: 100%; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; padding: 0; }
.video .play { width: 80px; height: 80px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; box-shadow: 0 6px 24px rgb(0 0 0 / 0.5); }
.video .play svg { width: 30px; height: 30px; margin-left: 4px; }
.video .assista { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; color: #fff; font-weight: 700; font-size: 18px; text-shadow: 0 1px 6px rgb(0 0 0 / 0.6); }
.video-vturb { position: relative; width: 100%; border-radius: 14px; overflow: hidden; background: #000; border: 2px solid var(--accent); }
.video-vturb vturb-smartplayer { display: block; width: 100%; }
.duracao { margin: 8px 0 0; text-align: center; font-size: 13px; color: var(--muted); }
.coluna-video, .coluna-form { display: grid; gap: 16px; min-width: 0; }
.convite { margin: 0; text-align: center; color: var(--muted); font-size: 15px; }

/* Formulário (AC 5–8) */
form { display: grid; gap: 14px; }
.campo { display: grid; gap: 6px; }
.campo label { font-size: 14px; font-weight: 600; }
.campo input { height: 48px; font: 16px var(--font); padding: 0 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--fg); width: 100%; }
.campo input::placeholder { color: #6f7a8c; }
.campo input:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-ring); }
.campo.erro input { border-color: var(--danger); }
.msg-erro { display: none; color: var(--danger); font-size: 13px; gap: 6px; align-items: center; }
.campo.erro .msg-erro, .consent.erro .msg-erro { display: flex; }
.msg-erro::before { content: "!"; flex: none; width: 16px; height: 16px; border-radius: 50%; background: var(--danger); color: #111111; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.sugestao { font-size: 13px; color: var(--muted); }
.sugestao button { font: inherit; color: var(--accent); background: none; border: 0; padding: 4px 0; text-decoration: underline; cursor: pointer; min-height: 32px; }
.consent { display: grid; gap: 6px; }
.consent label { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; font-size: 13px; color: var(--muted); padding: 10px 0; cursor: pointer; }
.consent input { width: 22px; height: 22px; margin: 0; accent-color: var(--accent); }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.botao { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 52px; border: 0; border-radius: var(--radius); background: var(--accent); color: var(--accent-ink); font: 700 17px var(--font); cursor: pointer; text-decoration: none; padding: 0 16px; }
.botao[aria-busy="true"] { opacity: 0.8; cursor: progress; }
.botao .seta { font-size: 20px; line-height: 1; }
.botao .spinner { display: none; width: 18px; height: 18px; border: 2px solid rgb(17 17 17 / 0.3); border-top-color: #111111; border-radius: 50%; animation: gira 0.8s linear infinite; }
.botao[aria-busy="true"] .spinner { display: inline-block; }
.botao[aria-busy="true"] .seta { display: none; }
@keyframes gira { to { transform: rotate(360deg); } }
.falha { display: none; margin: 0; padding: 10px 12px; border-radius: var(--radius); background: rgb(255 138 128 / 0.12); color: var(--danger); font-size: 14px; }
.falha.visivel { display: block; }

.rodape { text-align: center; font-size: 12px; color: var(--muted); padding: 8px 0 0; }

/* Barra fixa no celular (AC 2) */
.barra { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); background: rgb(11 15 23 / 0.96); border-top: 1px solid var(--line); transform: translateY(110%); transition: transform 0.2s ease; }
.barra.visivel { transform: none; }
.barra .botao { min-height: 56px; }

/* Computador: duas colunas (AC 3) */
@media (min-width: 1024px) {
  .pagina { max-width: 1000px; grid-template-columns: minmax(0, 460px) minmax(0, 420px); justify-content: center; column-gap: 48px; align-items: start; padding-bottom: 40px; }
  .pagina > .topo { grid-column: 1 / -1; }
  .topo h1 { font-size: 34px; max-width: 22ch; }
  .coluna-video { grid-column: 1; display: grid; gap: 10px; }
  .coluna-video .duracao { margin: 0; }
  .coluna-form { grid-column: 2; position: sticky; top: 24px; display: grid; gap: 16px; }
  .barra { display: none; }
  .convite { text-align: left; }
}

/* Página de obrigado (AC 9) */
.obrigado { min-height: 100vh; min-height: 100dvh; max-width: 440px; margin: 0 auto; padding: 32px 16px calc(32px + env(safe-area-inset-bottom, 0px)); display: grid; align-content: center; gap: 20px; text-align: center; }
.etapas { list-style: none; margin: 0 auto; padding: 0; display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.etapas li { display: flex; align-items: center; gap: 8px; }
.etapas .marca { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; flex: none; }
.etapas .marca svg { width: 15px; height: 15px; }
.etapas .feita .marca { background: var(--accent); color: var(--accent-ink); }
.etapas .atual { color: var(--fg); font-weight: 600; }
.etapas .atual .marca { border: 2px solid var(--accent); color: var(--accent); }
.etapas .linha { width: 28px; height: 2px; background: var(--accent); border-radius: 1px; }
.cartao { display: grid; gap: 16px; padding: 28px 20px 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.selo { margin: 0 auto; padding: 5px 12px; border-radius: 999px; background: rgb(255 210 63 / 0.12); color: var(--accent); font-size: 13px; font-weight: 600; }
.obrigado h1 { font-size: clamp(24px, 7vw, 28px); line-height: 1.2; }
.botao.wa { position: relative; background: var(--wa); color: var(--wa-ink); min-height: 60px; font-size: clamp(15px, 4.4vw, 18px); white-space: nowrap; padding: 0 14px; }
.botao.wa svg { width: 26px; height: 26px; flex: none; }
.botao.wa::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 0 rgb(14 122 62 / 0.55); animation: chama 2.2s ease-out infinite; pointer-events: none; }
@keyframes chama { 0% { box-shadow: 0 0 0 0 rgb(37 211 102 / 0.45); } 70%, 100% { box-shadow: 0 0 0 14px rgb(37 211 102 / 0); } }
.botao.wa[aria-disabled="true"]::after { animation: none; }
.grupo { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); text-align: left; }
.grupo-avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex: none; }
.grupo-texto { display: grid; min-width: 0; line-height: 1.3; }
.grupo-nome { font-size: 16px; font-weight: 700; color: var(--fg); overflow-wrap: anywhere; }
.grupo-tipo { font-size: 13px; color: var(--muted); }
.dica { margin: -6px 0 0; font-size: 13px; color: var(--muted); }
.aviso { margin: 0; display: flex; gap: 12px; align-items: flex-start; text-align: left; padding: 14px 16px; border-radius: var(--radius); border: 1px dashed var(--line); font-size: 14px; line-height: 1.45; color: var(--muted); }
.aviso svg { width: 22px; height: 22px; flex: none; color: var(--accent); margin-top: 1px; }
.aviso strong { color: var(--fg); }

@media (prefers-reduced-motion: reduce) {
  .faixa .ponto, .botao.wa::after { animation: none; }
  *, *::before, *::after { transition: none !important; animation-duration: 0.01ms !important; }
}
