/* Lume Psi v4: galeria cinematográfica dos serviços (rolagem vertical move as cenas na horizontal)
   e ajustes da versão enxuta. As animações de cada cena só rodam quando o painel está ativo (.ativo). */

/* ---------- galeria ---------- */
.galeria { position: relative; height: 560vh; }
.gal-palco { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: var(--gal-cor, var(--fundo)); transition: background .8s ease; }
.gal-topo { position: absolute; left: 0; right: 0; top: 96px; z-index: 3; max-width: var(--larg); margin: 0 auto; padding: 0 24px; display: flex; justify-content: space-between; align-items: center; }
.gal-topo .sobre { margin: 0; }
.gal-topo .sobre::before { width: 34px; }
.gal-cont { font: 600 14px 'Inter', sans-serif; color: var(--suave); letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.gal-cont b { color: var(--tinta); font-size: 18px; }
.gal-trilho { display: flex; height: 100%; will-change: transform; }
.painel { flex: 0 0 100vw; height: 100%; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 40px; padding: 140px max(24px, calc((100vw - var(--larg)) / 2 + 24px)) 70px; }
.pn-txt { position: relative; }
.pn-num { display: block; font: italic 500 clamp(90px, 13vw, 200px)/.8 var(--serif); color: transparent; -webkit-text-stroke: 1.5px rgba(15, 107, 99, .35); margin-bottom: 10px; translate: 0 30px; opacity: 0; transition: translate 1s cubic-bezier(.16, 1, .3, 1), opacity .8s; }
.painel h3 { font-size: clamp(44px, 6vw, 92px); font-weight: 800; letter-spacing: -.05em; line-height: .95; translate: 0 40px; opacity: 0; transition: translate 1s cubic-bezier(.16, 1, .3, 1) .08s, opacity .8s .08s; }
.pn-txt p { margin-top: 18px; font: italic 500 clamp(22px, 2.4vw, 32px)/1.2 var(--serif); color: var(--petroleo); max-width: 460px; translate: 0 30px; opacity: 0; transition: translate 1s cubic-bezier(.16, 1, .3, 1) .16s, opacity .8s .16s; }
.pn-txt .tag { position: static; display: inline-block; margin-top: 22px; opacity: 0; transition: opacity .8s .3s; }
.painel.ativo .pn-num, .painel.ativo h3, .painel.ativo .pn-txt p, .painel.ativo .tag { translate: 0 0; opacity: 1; }
.pn-cena { position: relative; justify-self: center; width: min(420px, 100%); height: min(480px, 58vh); border-radius: 32px; background: var(--branco); box-shadow: 0 50px 90px -40px rgba(19, 48, 44, .45), 0 0 0 1px var(--linha); overflow: hidden;
  scale: .92; opacity: .5; transition: scale 1s cubic-bezier(.16, 1, .3, 1), opacity .8s; }
.painel.ativo .pn-cena { scale: 1; opacity: 1; }
.gal-barra { position: absolute; left: 50%; bottom: 34px; translate: -50% 0; width: min(320px, 60vw); height: 3px; border-radius: 99px; background: rgba(19, 48, 44, .12); overflow: hidden; z-index: 3; }
.gal-barra i { display: block; height: 100%; width: 100%; transform-origin: left; scale: 0 1; background: linear-gradient(90deg, var(--petroleo), var(--sol)); }

/* celular dentro das cenas */
.cel { position: absolute; left: 50%; top: 34px; translate: -50% 0; width: 230px; height: 470px; border-radius: 36px; background: #10221f; padding: 9px; box-shadow: 0 30px 60px -20px rgba(19, 48, 44, .5); }
.cel-tela { position: relative; width: 100%; height: 100%; border-radius: 28px; overflow: hidden; background: var(--branco); }

/* 01 site: a página rola sozinha */
.cena-site { background: linear-gradient(160deg, #e9f3ef, #f6efe6); }
.st-rola { padding: 16px 14px; display: grid; gap: 10px; }
.painel.ativo .st-rola { animation: rola 7s cubic-bezier(.6, 0, .3, 1) .6s infinite alternate; }
@keyframes rola { 0%, 15% { translate: 0 0; } 85%, 100% { translate: 0 -150px; } }
.st-topo { display: grid; grid-template-columns: 26px 1fr; column-gap: 8px; align-items: center; }
.st-topo i { grid-row: span 2; width: 26px; height: 26px; border-radius: 50%; background: var(--sol); }
.st-topo b { font: 800 13px 'Jakarta', sans-serif; }
.st-topo small { font-size: 10px; color: var(--suave); }
.st-foto { height: 150px; border-radius: 18px; background: radial-gradient(circle at 50% 38%, #f3d2b8 0 22%, transparent 23%), radial-gradient(ellipse at 50% 95%, var(--petroleo) 0 38%, transparent 39%), linear-gradient(160deg, var(--menta), var(--lavanda)); }
.st-h { font: 800 17px/1.15 'Jakarta', sans-serif; letter-spacing: -.02em; }
.st-l { height: 8px; border-radius: 9px; background: #ece6dc; }
.st-l.c { width: 70%; }
.st-bt { padding: 11px; border-radius: 99px; background: #25d366; color: #fff; text-align: center; font: 700 12px 'Inter', sans-serif; }
.painel.ativo .st-bt { animation: pulsa 1.6s ease-in-out 2.2s infinite; }
@keyframes pulsa { 50% { box-shadow: 0 0 0 8px rgba(37, 211, 102, .22); } }
.st-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.st-cards i { height: 54px; border-radius: 12px; background: var(--fundo-2); }

/* 02 mapa: pinos caem, o seu cai por último e brilha */
.cena-mapa { background: #e8efe6; }
.mp-fundo { position: absolute; inset: 0; background: linear-gradient(125deg, #e3ecdf 0 30%, #dfe7ee 30% 55%, #e6efe2 55%); }
.mp-r { position: absolute; background: #fff; border-radius: 9px; }
.r1 { left: -10%; right: -10%; top: 38%; height: 14px; rotate: -8deg; }
.r2 { top: -10%; bottom: -10%; left: 58%; width: 14px; rotate: 12deg; }
.r3 { left: -10%; right: -10%; top: 72%; height: 9px; rotate: 6deg; }
.r4 { top: -10%; bottom: -10%; left: 22%; width: 9px; rotate: -4deg; }
.mp-pin { position: absolute; width: 22px; height: 22px; border-radius: 50% 50% 50% 0; rotate: -45deg; background: #b9c2bf; opacity: 0; }
.mp-pin.a { left: 18%; top: 22%; } .mp-pin.b { left: 72%; top: 58%; } .mp-pin.c { left: 34%; top: 64%; }
.mp-pin.eu { left: 52%; top: 26%; width: 40px; height: 40px; background: var(--petroleo); box-shadow: 0 10px 24px rgba(15, 107, 99, .55); }
.mp-pin.eu::after { content: ""; position: absolute; inset: 12px; border-radius: 50%; background: var(--sol); }
.mp-onda { position: absolute; left: calc(52% + 20px); top: calc(26% + 40px); width: 10px; height: 10px; translate: -50% -50%; border-radius: 50%; }
.painel.ativo .mp-pin.a { animation: cai .6s cubic-bezier(.3, 1.6, .5, 1) .3s both; }
.painel.ativo .mp-pin.b { animation: cai .6s cubic-bezier(.3, 1.6, .5, 1) .5s both; }
.painel.ativo .mp-pin.c { animation: cai .6s cubic-bezier(.3, 1.6, .5, 1) .7s both; }
.painel.ativo .mp-pin.eu { animation: cai .8s cubic-bezier(.3, 1.6, .5, 1) 1.2s both; }
.painel.ativo .mp-onda { animation: ondaMapa 2s ease-out 2s infinite; }
@keyframes cai { from { opacity: 0; translate: 0 -120px; } to { opacity: 1; translate: 0 0; } }
@keyframes ondaMapa { from { box-shadow: 0 0 0 0 rgba(15, 107, 99, .5); } to { box-shadow: 0 0 0 60px rgba(15, 107, 99, 0); } }
.mp-card { position: absolute; left: 18px; right: 18px; bottom: 18px; padding: 16px 18px; border-radius: 20px; background: var(--branco); box-shadow: 0 20px 40px -20px rgba(19, 48, 44, .5); display: grid; gap: 3px; translate: 0 140%; }
.mp-card b { font: 800 16px 'Jakarta', sans-serif; }
.mp-est i { font-style: normal; color: #e5a03a; display: inline-block; clip-path: inset(0 100% 0 0); }
.mp-card small { color: var(--suave); }
.painel.ativo .mp-card { animation: sobe .7s cubic-bezier(.16, 1, .3, 1) 1.9s both; }
.painel.ativo .mp-est i { animation: estrelas 1s ease 2.5s both; }
@keyframes sobe { from { translate: 0 140%; } to { translate: 0 0; } }
@keyframes estrelas { to { clip-path: inset(0 0 0 0); } }

/* 03 anúncio: a busca digita, o anúncio entra e é clicado */
.cena-ads { padding: 34px 26px; display: grid; align-content: start; gap: 14px; background: linear-gradient(170deg, #fff8f1, #fdeee2); }
.ad-barra { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-radius: 99px; background: var(--branco); box-shadow: 0 8px 20px -12px rgba(19, 48, 44, .4); font-size: 15px; }
.ad-dig { display: inline-block; overflow: hidden; white-space: nowrap; width: 0; border-right: 2px solid var(--petroleo); }
.painel.ativo .ad-dig { animation: digita 1.4s steps(24) .4s both, pisca-borda .7s steps(1) infinite; }
@keyframes pisca-borda { 50% { border-color: transparent; } }
@keyframes digita { to { width: 24ch; } }
.ad-res { padding: 16px 18px; border-radius: 18px; background: var(--branco); opacity: 0; translate: 0 20px; position: relative; }
.ad-1 small { color: var(--suave); font-size: 12px; }
.ad-1 h4 { color: #1c4fb8; font-size: 19px; margin: 3px 0; letter-spacing: -.01em; }
.ad-1 p { font-size: 13px; color: var(--tinta-2); }
.ad-2 { display: grid; gap: 8px; }
.ad-2 i { height: 9px; border-radius: 9px; background: #efe7dc; }
.ad-2 i:last-child { width: 60%; }
.painel.ativo .ad-res { animation: entraRes .6s cubic-bezier(.16, 1, .3, 1) both; }
.painel.ativo .ad-1 { animation-delay: 2s; }
.painel.ativo .ad-2 { animation-delay: 2.2s; }
.painel.ativo .ad-2 + .ad-2 { animation-delay: 2.35s; }
@keyframes entraRes { to { opacity: 1; translate: 0 0; } }
.ad-1 { box-shadow: 0 0 0 2px transparent; }
.painel.ativo .ad-1 { animation: entraRes .6s cubic-bezier(.16, 1, .3, 1) 2s both, realce 1s ease 3.2s both; }
@keyframes realce { to { box-shadow: 0 0 0 2px var(--sol), 0 18px 40px -18px rgba(244, 177, 131, .9); } }
.ad-clique { position: absolute; right: 30px; top: 50%; width: 18px; height: 18px; border-radius: 50%; background: rgba(19, 48, 44, .85); opacity: 0; }
.painel.ativo .ad-clique { animation: clique 1.4s ease 3s both; }
@keyframes clique { 0% { opacity: 0; translate: 40px 40px; } 40% { opacity: 1; translate: 0 0; } 55% { scale: .7; box-shadow: 0 0 0 0 rgba(244, 177, 131, .8); } 100% { opacity: 1; scale: 1; box-shadow: 0 0 0 22px rgba(244, 177, 131, 0); } }

/* 04 instagram: a grade se monta e o coração pulsa */
.cena-insta { background: linear-gradient(160deg, #efeaf8, #f8efe9); }
.ig-topo { display: flex; gap: 10px; align-items: center; padding: 18px 14px 12px; }
.ig-topo i { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--sol), var(--lavanda)); box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--coral); }
.ig-topo b { display: block; font: 700 13px 'Inter', sans-serif; }
.ig-topo small { font-size: 11px; color: var(--suave); }
.ig-grade { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; padding: 0 2px; }
.ig-grade i { aspect-ratio: 1; border-radius: 4px; scale: 0; }
.ig-grade i:nth-child(3n+1) { background: var(--petroleo); }
.ig-grade i:nth-child(3n+2) { background: var(--sol); }
.ig-grade i:nth-child(3n) { background: var(--lavanda); }
.ig-grade i:nth-child(4), .ig-grade i:nth-child(8) { background: var(--menta); }
.painel.ativo .ig-grade i { animation: brota .5s cubic-bezier(.3, 1.6, .5, 1) both; }
.painel.ativo .ig-grade i:nth-child(1) { animation-delay: .4s; } .painel.ativo .ig-grade i:nth-child(2) { animation-delay: .5s; } .painel.ativo .ig-grade i:nth-child(3) { animation-delay: .6s; }
.painel.ativo .ig-grade i:nth-child(4) { animation-delay: .7s; } .painel.ativo .ig-grade i:nth-child(5) { animation-delay: .8s; } .painel.ativo .ig-grade i:nth-child(6) { animation-delay: .9s; }
.painel.ativo .ig-grade i:nth-child(7) { animation-delay: 1s; } .painel.ativo .ig-grade i:nth-child(8) { animation-delay: 1.1s; } .painel.ativo .ig-grade i:nth-child(9) { animation-delay: 1.2s; }
@keyframes brota { from { scale: 0; } to { scale: 1; } }
.ig-cor { position: absolute; left: 50%; top: 58%; translate: -50% -50%; font-size: 70px; color: #fff; text-shadow: 0 8px 30px rgba(194, 95, 56, .6); opacity: 0; }
.painel.ativo .ig-cor { animation: coracao 1.2s ease 1.8s both; }
@keyframes coracao { 0% { opacity: 0; scale: .2; } 30% { opacity: 1; scale: 1.25; } 50% { scale: 1; } 80% { opacity: 1; } 100% { opacity: 0; scale: 1.1; } }

/* 05 IA: pergunta, digitando, resposta citando você */
.cena-ia { padding: 34px 24px; display: grid; align-content: center; gap: 14px; background: linear-gradient(160deg, #f1eefb, #eef6f3); }
.ia-msg { padding: 15px 18px; border-radius: 22px; font-size: 15px; line-height: 1.45; opacity: 0; translate: 0 16px; }
.eu-pergunto { justify-self: end; max-width: 82%; background: var(--tinta); color: #fff; border-bottom-right-radius: 6px; }
.ia-resp { max-width: 90%; background: var(--branco); border-bottom-left-radius: 6px; box-shadow: 0 16px 34px -20px rgba(19, 48, 44, .5); }
.ia-fonte { display: block; margin-top: 10px; font-size: 12px; font-weight: 600; color: var(--petroleo); }
.ia-digitando { display: flex; gap: 5px; padding: 14px 16px; width: max-content; border-radius: 18px; background: var(--branco); opacity: 0; }
.ia-digitando i { width: 7px; height: 7px; border-radius: 50%; background: var(--suave); animation: ponto 1s ease-in-out infinite; }
.ia-digitando i:nth-child(2) { animation-delay: .15s; } .ia-digitando i:nth-child(3) { animation-delay: .3s; }
@keyframes ponto { 50% { translate: 0 -4px; opacity: .4; } }
.painel.ativo .eu-pergunto { animation: entraRes .6s cubic-bezier(.16, 1, .3, 1) .4s both; }
.painel.ativo .ia-digitando { animation: aparece 1.4s ease 1.1s both; }
.painel.ativo .ia-resp { animation: entraRes .7s cubic-bezier(.16, 1, .3, 1) 2.4s both; }
@keyframes aparece { 0% { opacity: 0; } 15%, 85% { opacity: 1; } 100% { opacity: 0; height: 0; padding: 0; margin: -7px 0; } }

/* 06 WhatsApp: conversa e sessão agendada */
.cena-wpp { padding: 0 20px 24px; display: grid; align-content: start; gap: 10px; background: #efe9df; }
.wp-topo { margin: 0 -20px 10px; padding: 18px 20px; display: flex; align-items: center; gap: 10px; background: var(--tinta); color: #fff; font-size: 14px; }
.wp-topo i { width: 32px; height: 32px; border-radius: 50%; background: var(--sol); }
.wp-msg { max-width: 80%; padding: 11px 14px; border-radius: 16px; font-size: 14.5px; opacity: 0; translate: 0 14px; box-shadow: 0 2px 4px rgba(0, 0, 0, .06); }
.wp-msg.ent { background: #fff; border-top-left-radius: 4px; }
.wp-msg.sai { justify-self: end; background: #d6f5c9; border-top-right-radius: 4px; }
.painel.ativo .m1 { animation: entraRes .5s cubic-bezier(.16, 1, .3, 1) .4s both; }
.painel.ativo .m2 { animation: entraRes .5s cubic-bezier(.16, 1, .3, 1) 1.3s both; }
.painel.ativo .m3 { animation: entraRes .5s cubic-bezier(.16, 1, .3, 1) 2.1s both; }
.wp-ok { justify-self: center; margin-top: 16px; padding: 12px 20px; border-radius: 99px; background: var(--petroleo); color: #fff; font: 700 15px 'Inter', sans-serif; opacity: 0; scale: .6; box-shadow: 0 16px 36px -14px rgba(15, 107, 99, .8); }
.painel.ativo .wp-ok { animation: ok .7s cubic-bezier(.3, 1.8, .5, 1) 2.9s both; }
@keyframes ok { to { opacity: 1; scale: 1; } }

/* ---------- versão enxuta: ajustes ---------- */
.hero { padding-top: 120px; }
.hero-h { font-size: clamp(36px, 4.6vw, 60px); }
.hero-h em { display: block; }
.manifesto { padding: 140px 24px 50px; }
.manifesto-txt { font-size: clamp(32px, 4.6vw, 62px); line-height: 1.12; }
.calc h2 { margin-bottom: 34px; }
.etica-lista.curta li { padding: 22px 22px 22px 60px; display: flex; align-items: center; min-height: 76px; }
.etica-lista.curta li b { font-size: 17px; }
.etica-lista.curta .ck { top: 50%; translate: 0 -50%; }
.etica-grade { align-items: center; }
.planos-nota { margin-top: 26px; text-align: center; color: var(--suave); font-size: 15px; }
.plano ul { margin: 22px 0 26px; }
.contato-caixa { padding: 96px 28px 110px; }

@media (max-width: 1000px) {
  .painel { grid-template-columns: 1fr; grid-template-rows: auto 1fr; gap: 18px; padding: 140px 24px 80px; align-items: start; }
  .pn-num { font-size: 72px; margin-bottom: 4px; }
  .painel h3 { font-size: clamp(38px, 10vw, 60px); }
  .pn-txt p { margin-top: 8px; font-size: 21px; }
  .pn-txt .tag { margin-top: 12px; }
  .pn-cena { height: 100%; max-height: 400px; width: min(360px, 100%); }
  .cel { top: 22px; width: 200px; height: 420px; }
  .galeria { height: 520vh; }
}
@media (max-width: 760px) {
  .gal-topo { top: 80px; padding: 0 16px; }
  .painel { padding: 126px 16px 70px; }
  .manifesto { padding: 100px 16px 30px; }
}
@media (prefers-reduced-motion: reduce) {
  .galeria { height: auto; }
  .gal-palco { position: relative; height: auto; }
  .gal-trilho { flex-direction: column; transform: none !important; }
  .painel { flex: none; width: 100%; height: auto; min-height: 90vh; }
  .painel .pn-num, .painel h3, .pn-txt p, .pn-txt .tag, .pn-cena { opacity: 1; translate: none; scale: 1; }
}
.abre { margin-bottom: -68vh; }
.hero { padding-top: 70px; }
.hero-visual { min-height: 0; padding: 40px 0; }
@media (max-width: 760px) { .abre { margin-bottom: -60vh; } }

/* ---------- v5: depois dos juízes ---------- */
.galeria { height: 320vh; }
.pn-chips { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 8px; max-width: 460px; }
.pn-chips li { padding: 8px 14px; border-radius: 99px; background: rgba(255, 253, 249, .8); border: 1px solid var(--linha); font-size: 14.5px; font-weight: 600; color: var(--tinta-2);
  opacity: 0; translate: 0 14px; transition: opacity .6s, translate .6s cubic-bezier(.16, 1, .3, 1); }
.painel.ativo .pn-chips li { opacity: 1; translate: 0 0; }
.painel.ativo .pn-chips li:nth-child(1) { transition-delay: .35s; } .painel.ativo .pn-chips li:nth-child(2) { transition-delay: .45s; } .painel.ativo .pn-chips li:nth-child(3) { transition-delay: .55s; }
.mp-card { gap: 4px; }
.botao-grande { margin-top: 22px; padding: 18px 30px; font-size: 17px; background: var(--petroleo); box-shadow: 0 16px 36px -14px rgba(15, 107, 99, .7); }
.botao-grande::after { content: "→"; margin-left: 4px; transition: translate .3s; }
.botao-grande:hover::after { translate: 4px 0; }
.cta-sub { display: block; margin-top: 10px; color: var(--suave); font-size: 14px; }
.hb-dica { display: flex; align-items: center; gap: 6px; }
.hb-dica::before { content: "🔒"; font-size: 12px; }
.cabeca.centro { margin-left: auto; margin-right: auto; text-align: center; }
.etica { padding-top: 70px; padding-bottom: 60px; }
.etica-chips { list-style: none; padding: 0; margin: 0 auto; max-width: 900px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.etica-chips li { display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 99px; background: var(--branco); border: 1px solid var(--linha); font: 600 15.5px 'Jakarta', sans-serif; }
.etica-chips li::before { content: "✓"; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--petroleo); color: #fff; font-size: 12px; }
.calc-grade { align-items: center; }
.calc .calc-nota { margin-top: 6px; font-size: 14px; color: #a9c2bc; max-width: 440px; }
.pessoas { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(12, 1fr); gap: 8px; padding: 18px; border-radius: 18px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); }
.pessoas i { position: relative; aspect-ratio: 3 / 4; opacity: .16; transition: opacity .4s var(--d, 0ms), transform .4s cubic-bezier(.2, 1.8, .4, 1) var(--d, 0ms); }
.pessoas i::before { content: ""; position: absolute; left: 30%; right: 30%; top: 0; aspect-ratio: 1; border-radius: 50%; background: #fff; }
.pessoas i::after { content: ""; position: absolute; left: 12%; right: 12%; bottom: 0; height: 48%; border-radius: 50% 50% 20% 20%; background: #fff; }
.pessoas i.on { opacity: 1; }
.pessoas i.on::before, .pessoas i.on::after { background: var(--menta); }
.pessoas i.conv { opacity: 1; transform: translateY(-3px); }
.pessoas i.conv::before, .pessoas i.conv::after { background: var(--sol); box-shadow: 0 0 12px rgba(244, 177, 131, .8); }
.planos-nota { max-width: 640px; margin-left: auto; margin-right: auto; }
.rodape-pq a { color: inherit; }
.abre-frase2 { text-shadow: 0 2px 40px rgba(255, 245, 230, 1), 0 0 2px rgba(255, 245, 230, .8); }
@media (max-width: 1000px) { .galeria { height: 300vh; } }
@media (max-width: 760px) {
  .pn-chips { margin-top: 12px; gap: 6px; } .pn-chips li { font-size: 13px; padding: 6px 11px; }
  .botao-grande { width: 100%; }
  .pessoas { grid-template-columns: repeat(10, 1fr); }
  .etica-chips li { font-size: 14px; padding: 10px 14px; }
}
