/* IMAC Church · visual do app (preto e amarelo da marca, fonte Poppins) */
:root {
  --preto: #000000; --fundo: #000000; --cartao: #1E1E1E; --cartao2: #262626; --linha: #2E2E2E;
  --amarelo: #FFE24F; --amarelo2: #FFF0A0; --texto: #F5F5F5; --suave: #BDBDBD; --apagado: #9A9A9A;
  --verde: #9BE29B; --vermelho: #FF8A80; --raio: 18px;
  --seguro-baixo: env(safe-area-inset-bottom, 0px); --seguro-topo: env(safe-area-inset-top, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--fundo); color: var(--texto); font-family: Poppins, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; font-size: 16px; line-height: 1.5; }
body { min-height: 100vh; min-height: 100dvh; }
a { color: var(--amarelo); }
a:hover { color: var(--amarelo2); }
img { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0; line-height: 1.2; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--amarelo); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* estrutura */
#tela { max-width: 560px; margin: 0 auto; padding: calc(16px + var(--seguro-topo)) 20px calc(120px + var(--seguro-baixo)); display: flex; flex-direction: column; gap: 20px; }
#tela.cheia { padding-bottom: calc(32px + var(--seguro-baixo)); }
.topo { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; }
.topo h1 { font-size: 24px; font-weight: 700; flex: 1; }
.voltar { width: 44px; height: 44px; margin-left: -10px; display: grid; place-items: center; border: 0; background: none; color: var(--texto); border-radius: 50%; text-decoration: none; }
.redondo { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--linha); background: var(--cartao); display: grid; place-items: center; color: var(--texto); text-decoration: none; position: relative; }
.ponto { position: absolute; top: 9px; right: 10px; width: 9px; height: 9px; border-radius: 50%; background: var(--amarelo); }
.i { width: 22px; height: 22px; flex-shrink: 0; }
.i-g { width: 30px; height: 30px; }

/* barra de baixo */
#nav { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(14px + var(--seguro-baixo)); width: min(536px, calc(100% - 24px)); height: 72px; border-radius: 26px; background: #0A0A0A; border: 1px solid #2A2A2A; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: center; z-index: 20; }
/* fecha o vão entre a barra e o fim da tela, para o conteúdo não aparecer ali embaixo */
#nav::after { content: ""; position: absolute; left: -50vw; right: -50vw; top: calc(100% + 1px); height: calc(16px + var(--seguro-baixo)); background: var(--fundo); }
#nav::before { content: ""; position: absolute; left: -50vw; right: -50vw; bottom: 100%; height: 28px; background: linear-gradient(to bottom, rgba(0,0,0,0), var(--fundo)); pointer-events: none; }
#nav a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 0; color: #D6D6D6; text-decoration: none; font-size: 11px; font-weight: 500; }
#nav a[aria-current="page"] { color: var(--amarelo); font-weight: 600; }

/* textos */
.titulo { font-size: 26px; font-weight: 700; }
.sub { font-size: 15px; color: var(--suave); }
.secao { display: flex; flex-direction: column; gap: 12px; }
.secao-topo { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.secao-topo h2 { font-size: 18px; font-weight: 700; }
.secao-topo a { font-size: 14px; font-weight: 500; padding: 8px 0; }
.olho { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.pequeno { font-size: 13px; color: var(--suave); }
.vazio { padding: 26px 18px; border: 1px dashed #3A3A3A; border-radius: var(--raio); text-align: center; color: var(--suave); font-size: 14px; }
.pre { white-space: pre-line; }

/* cartões */
.cartao { background: var(--cartao); border: 1px solid #2A2A2A; border-radius: var(--raio); padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.destaque { background: var(--amarelo); color: #111; border-radius: 22px; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.destaque .olho { color: #111; }
.linha { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 16px; background: var(--cartao); border: 1px solid #2A2A2A; color: var(--texto); text-decoration: none; }
.linha > span:not(.data) { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.linha b { font-size: 15px; font-weight: 600; }
.linha small { font-size: 13px; color: var(--suave); }
.data { width: 56px; height: 58px; border-radius: 14px; background: var(--cartao2); color: var(--amarelo); display: flex; flex-direction: column; align-items: center; justify-content: center; flex-shrink: 0; line-height: 1.1; }
.data b { font-size: 11px; letter-spacing: .1em; }
.data strong { font-size: 20px; color: var(--texto); }
.data.am { background: var(--amarelo); color: #111; }
.data.am strong { color: #111; }
.grade2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tile { display: flex; flex-direction: column; justify-content: space-between; gap: 16px; min-height: 118px; padding: 16px; border-radius: 18px; background: var(--cartao); border: 1px solid #2A2A2A; color: var(--texto); text-decoration: none; font-weight: 600; text-align: left; }
.tile.am { background: var(--amarelo); color: #111; border-color: var(--amarelo); }
.tile svg { color: var(--amarelo); }
.tile.am svg { color: #111; }

/* botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 22px; border-radius: 999px; border: 0; background: var(--amarelo); color: #111; font-weight: 700; font-size: 16px; text-decoration: none; text-align: center; }
.btn:hover { color: #111; background: var(--amarelo2); }
.btn.linha-btn { background: transparent; color: var(--texto); border: 1.5px solid #3A3A3A; font-weight: 600; }
.btn.linha-btn:hover { border-color: var(--amarelo); color: var(--texto); }
.btn.contorno { background: transparent; color: var(--amarelo); border: 1.5px solid var(--amarelo); }
.btn.escuro { background: #111; color: var(--amarelo); }
.btn.perigo { background: transparent; color: var(--vermelho); border: 1.5px solid #5A2A2A; }
.btn.p { min-height: 44px; padding: 0 16px; font-size: 14px; }
.btn.largo { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.link { background: none; border: 0; color: var(--amarelo); text-decoration: underline; text-underline-offset: 4px; padding: 10px; font-weight: 500; }
.acoes { display: flex; flex-wrap: wrap; gap: 10px; }
.acoes > * { flex: 1 1 140px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; flex-shrink: 0; scrollbar-width: none; }
.chip { flex-shrink: 0; height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--amarelo); background: transparent; color: var(--texto); font-size: 14px; font-weight: 500; white-space: nowrap; }
.chip[aria-pressed="true"] { background: var(--amarelo); color: #111; }
.chip.cinza { border-color: #3A3A3A; }
.abas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: 999px; background: #0A0A0A; border: 1px solid #2A2A2A; }
.abas button { height: 44px; border: 0; border-radius: 999px; background: transparent; color: #D6D6D6; font-size: 14px; font-weight: 600; }
.abas button[aria-selected="true"] { background: var(--amarelo); color: #111; }

/* formulários */
form { display: flex; flex-direction: column; gap: 14px; }
.campo { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 500; color: #D6D6D6; }
.campo input, .campo select, .campo textarea { width: 100%; min-height: 52px; padding: 12px 16px; border-radius: 14px; background: #0A0A0A; border: 1px solid var(--linha); color: var(--texto); font-size: 16px; }
.campo textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.campo input::placeholder, .campo textarea::placeholder { color: var(--apagado); }
.campo small { color: var(--apagado); font-weight: 400; }
.campo.erro input, .campo.erro textarea { border-color: var(--vermelho); }
.marcar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 10px 16px; border-radius: 14px; background: var(--cartao); border: 1px solid #2A2A2A; font-size: 15px; }
.marcar input { width: 22px; height: 22px; accent-color: var(--amarelo); margin: 0; flex-shrink: 0; }
.marcar span { display: flex; flex-direction: column; }
.marcar small { font-size: 12px; color: var(--suave); }
.senha { position: relative; }
.senha button { position: absolute; right: 4px; bottom: 4px; width: 44px; height: 44px; border: 0; background: none; color: var(--texto); display: grid; place-items: center; }
.msg { padding: 12px 16px; border-radius: 14px; font-size: 14px; font-weight: 500; }
.msg.erro { background: #3A1E1E; color: #FFD0CC; }
.msg.ok { background: #1F331F; color: #CDEBC7; }
.duas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

/* abertura e entrada */
.abertura { min-height: calc(100dvh - 120px); display: flex; flex-direction: column; justify-content: space-between; align-items: center; text-align: center; gap: 28px; padding-top: 40px; position: relative; }
.abertura .logo { width: min(300px, 80%); }
.abertura-meio { display: flex; flex-direction: column; align-items: center; gap: 26px; }
.abertura-botoes { display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 400px; }
/* entrada suave: a logo aparece primeiro, depois a frase e os botões */
.abertura .logo { animation: surge 2.4s cubic-bezier(.25,.6,.2,1) both; }
.abertura-meio p { animation: sobe 1.6s cubic-bezier(.25,.6,.2,1) 1.3s both; }
.abertura-botoes { animation: sobe 1.6s cubic-bezier(.25,.6,.2,1) 2.2s both; }
#tela.entra { animation: aparece .7s ease-out both; }
@keyframes surge { from { opacity: 0; transform: scale(.94); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes sobe { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes aparece { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .abertura .logo, .abertura-meio p, .abertura-botoes, #tela.entra { animation: none; } }
.entrar-logo { width: min(260px, 72%); align-self: center; margin: 36px 0 16px; }

/* palavras e mídia */
.capa { position: relative; border-radius: 18px; background: #000 center / cover no-repeat; border: 1px solid #2A2A2A; overflow: hidden; aspect-ratio: 16 / 9; display: flex; align-items: flex-end; padding: 16px; color: #fff; text-decoration: none; }
.capa::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 40%, rgba(0,0,0,.75)); }
.capa > * { position: relative; z-index: 1; }
.capa .play { position: absolute; right: 14px; bottom: 14px; width: 46px; height: 46px; border-radius: 50%; background: var(--amarelo); display: grid; place-items: center; }
.capa.mini { width: 132px; flex-shrink: 0; aspect-ratio: 16 / 10; padding: 8px; border-radius: 12px; }
.capa.mini .play { width: 28px; height: 28px; right: 6px; bottom: 6px; }
.selo { font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--amarelo); }

/* fotos */
.fotos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.fotos button { aspect-ratio: 1; border: 0; padding: 0; border-radius: 10px; overflow: hidden; background: var(--cartao2); }
.fotos img { width: 100%; height: 100%; object-fit: cover; }
.visor { position: fixed; inset: 0; background: #000; z-index: 50; display: flex; flex-direction: column; gap: 14px; padding: calc(16px + var(--seguro-topo)) 16px calc(20px + var(--seguro-baixo)); }
.visor .foto-grande { flex: 1; min-height: 0; display: grid; place-items: center; }
.visor .foto-grande img { max-height: 100%; max-width: 100%; object-fit: contain; border-radius: 12px; }

/* janela, aviso e carregando */
.fundo-janela { position: fixed; inset: 0; background: rgba(0,0,0,.7); z-index: 60; display: flex; align-items: flex-end; justify-content: center; }
.janela { width: min(560px, 100%); max-height: 92dvh; overflow-y: auto; background: var(--fundo); border-radius: 24px 24px 0 0; border: 1px solid #2A2A2A; padding: 20px 20px calc(24px + var(--seguro-baixo)); display: flex; flex-direction: column; gap: 16px; }
.janela-topo { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.janela-topo h2 { font-size: 20px; }
#aviso { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(100px + var(--seguro-baixo)); background: var(--amarelo); color: #111; font-weight: 600; font-size: 14px; padding: 12px 18px; border-radius: 999px; z-index: 70; box-shadow: 0 6px 24px rgba(0,0,0,.4); max-width: calc(100% - 32px); text-align: center; }
.carregando { padding: 40px 0; text-align: center; color: var(--suave); }
.faixa-demo { background: var(--amarelo); color: #111; font-size: 12px; font-weight: 600; text-align: center; padding: 6px 12px; }
.faixa-demo button { background: none; border: 0; text-decoration: underline; font-weight: 700; color: #111; padding: 0 0 0 6px; }
.etiqueta { align-self: flex-start; display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: var(--cartao2); color: var(--suave); }
.etiqueta.am { background: var(--amarelo); color: #111; }
.etiqueta.verde { background: #1F331F; color: #CDEBC7; }
.tabela { display: flex; flex-direction: column; gap: 8px; }
.ingresso { display: flex; gap: 16px; align-items: center; padding: 16px; border-radius: 18px; background: var(--amarelo); color: #111; }
.ingresso .qr { width: 84px; height: 84px; background: #fff; border-radius: 8px; padding: 6px; flex-shrink: 0; }
.ingresso .qr img, .ingresso .qr svg { width: 100%; height: 100%; }
.pix-qr { width: 200px; height: 200px; background: #fff; border-radius: 14px; padding: 10px; align-self: center; }
.pix-qr svg { width: 100%; height: 100%; display: block; }
.video { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #000; border: 1px solid #2A2A2A; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ao-vivo-ponto { width: 12px; height: 12px; border-radius: 50%; background: #E53935; box-shadow: 0 0 0 4px rgba(229,57,53,.25); flex-shrink: 0; animation: pulsa 1.6s ease-in-out infinite; }
@keyframes pulsa { 50% { box-shadow: 0 0 0 8px rgba(229,57,53,0); } }
@media (prefers-reduced-motion: reduce) { .ao-vivo-ponto { animation: none; } }
/* menu mais em lista */
.perfil-cartao { background: var(--cartao); border: 1px solid #2A2A2A; border-radius: 18px; display: flex; flex-direction: column; }
.perfil-linha { display: flex; align-items: center; gap: 16px; padding: 18px; }
.perfil-linha b { display: block; font-size: 18px; font-weight: 700; }
.perfil-linha small { display: block; font-size: 13px; font-weight: 600; color: var(--texto); margin: 2px 0 8px; }
.avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--amarelo); color: #111; display: grid; place-items: center; flex: 0 0 64px; }
.avatar .i-g { width: 34px; height: 34px; }
.barra { display: block; height: 8px; border-radius: 999px; background: #3A3520; overflow: hidden; }
.barra span { display: block; height: 100%; background: var(--amarelo); border-radius: 999px; }
.menu-lista { display: flex; flex-direction: column; gap: 10px; }
.menu-item { display: flex; align-items: center; gap: 14px; min-height: 58px; padding: 0 18px; border-radius: 14px; background: var(--cartao); border: 0; color: var(--texto); text-decoration: none; font-size: 16px; font-weight: 600; text-align: left; width: 100%; }
.menu-item:hover { color: var(--texto); background: var(--cartao2); }
.menu-item > .i:first-child { color: var(--amarelo); width: 24px; height: 24px; }
.menu-item span { flex: 1; }
.menu-item .seta { color: var(--amarelo); }
.menu-item.destaque-item { background: var(--amarelo); color: #111; }
.menu-item.destaque-item > .i, .menu-item.destaque-item .seta { color: #111; }
@media (min-width: 700px) { #tela { padding-top: 32px; } }
