/* Aviso do Serviço de Implantação (modelo A-1, escolhido em 29/09/2026): o cofre.
   Uma entrada só: três moedas entram pela fenda, o disco gira, o cofre acende um check, o preço conta até R$ 290
   e os checks dos itens se desenham. Nada fica se mexendo depois. Aparece uma vez por visitante (popup-implantacao.js). */
.imp-fundo { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 16px; background: rgba(9, 16, 34, .6); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); opacity: 0; transition: opacity .6s ease; }
.imp-fundo.imp-aberto { opacity: 1; }
.imp-fundo.imp-saindo { opacity: 0; transition: opacity .35s ease; }
.imp-janela { position: relative; width: min(460px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow-y: auto; border-radius: 28px; padding: 26px 32px 20px; text-align: center; color: #fff; font-family: 'Manrope', system-ui, sans-serif;
  background: linear-gradient(180deg, #1A2A52 0%, #14213D 38%, #0F1A33 100%); box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .08);
  opacity: 0; transform: translateY(24px) scale(.97); }
.imp-aberto .imp-janela { animation: imp-janela .9s cubic-bezier(.22, 1, .36, 1) .1s forwards; }
.imp-saindo .imp-janela { opacity: 1; animation: imp-sai .35s ease forwards; }
@keyframes imp-janela { to { opacity: 1; transform: none; } }
@keyframes imp-sai { to { opacity: 0; transform: translateY(12px) scale(.98); } }
.imp-fechar { position: absolute; top: 16px; right: 16px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .1); color: #fff; font: 700 15px/1 'Manrope', system-ui, sans-serif; cursor: pointer; transition: background .2s; }
.imp-fechar:hover { background: rgba(255, 255, 255, .18); }

/* O cofre */
.imp-cena { position: relative; width: 170px; height: 138px; margin: 0 auto 10px; }
.imp-cofre { position: absolute; left: 0; bottom: 0; width: 170px; height: 124px; overflow: visible; }
.imp-corpo { fill: #1E3263; stroke: rgba(110, 231, 183, .35); stroke-width: 1.5; }
.imp-porta { fill: none; stroke: rgba(255, 255, 255, .14); stroke-width: 1.5; }
.imp-escuro { fill: #0A1226; }
.imp-disco { transform-box: fill-box; transform-origin: center; }
.imp-disco circle { fill: #0F1A33; stroke: #6EE7B7; stroke-width: 2; }
.imp-disco line { stroke: #6EE7B7; stroke-width: 2; stroke-linecap: round; }
.imp-brilho { fill: none; stroke: #10B981; stroke-width: 3; opacity: 0; transform-box: fill-box; transform-origin: center; }
.imp-ok { opacity: 0; transform-box: fill-box; transform-origin: center; transform: scale(.4); }
.imp-ok circle { fill: #10B981; }
.imp-ok path { fill: none; stroke: #03281B; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.imp-tranco { transform-box: fill-box; transform-origin: 50% 100%; }
.imp-aberto .imp-disco { animation: imp-gira 1.5s cubic-bezier(.22, 1, .36, 1) 1.15s forwards; }
@keyframes imp-gira { 25% { transform: rotate(-60deg); } 55% { transform: rotate(-120deg); } 100% { transform: rotate(-180deg); } }
.imp-aberto .imp-tranco { animation: imp-tranco .3s ease 1.3s, imp-tranco .3s ease 1.75s, imp-tranco .3s ease 2.2s; }
@keyframes imp-tranco { 50% { transform: scale(1.025, .975); } }
.imp-aberto .imp-brilho { animation: imp-brilho 1.4s cubic-bezier(.22, 1, .36, 1) 2.6s forwards; }
@keyframes imp-brilho { 0% { opacity: .9; transform: scale(.96); } 100% { opacity: 0; transform: scale(1.12); } }
.imp-aberto .imp-ok { animation: imp-ok .6s cubic-bezier(.22, 1, .36, 1) 2.7s forwards; }
@keyframes imp-ok { to { opacity: 1; transform: none; } }
.imp-moeda { position: absolute; left: calc(50% - 15px); top: 0; width: 30px; height: 30px; border-radius: 50%; opacity: 0; background: radial-gradient(circle at 35% 30%, #FFF6D6, #F2C45A 50%, #B98A2E); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .15); }
.imp-moeda::after { content: ""; position: absolute; inset: 6px; border-radius: 50%; border: 1.5px solid rgba(120, 86, 22, .45); }
.imp-aberto .imp-moeda { animation: imp-entra 1s cubic-bezier(.55, 0, .75, .4) .8s; }
.imp-aberto .imp-moeda:nth-child(2) { animation-delay: 1.25s; }
.imp-aberto .imp-moeda:nth-child(3) { animation-delay: 1.7s; }
@keyframes imp-entra { 0% { opacity: 0; transform: translateY(-20px); } 15% { opacity: 1; } 60% { opacity: 1; transform: translateY(34px) scaleX(.35); } 75% { opacity: 1; transform: translateY(40px) scaleX(.15); } 100% { opacity: 0; transform: translateY(44px) scaleX(.1); } }

/* O texto */
.imp-chip { display: inline-block; font: 800 12px 'Manrope', system-ui, sans-serif; color: #6EE7B7; background: rgba(16, 185, 129, .14); border-radius: 999px; padding: 4px 12px; margin-bottom: 10px; }
.imp-titulo { margin: 0 0 8px; font: 800 28px/1.12 'Manrope', system-ui, sans-serif; letter-spacing: -.6px; color: #fff; }
.imp-sub { margin: 0 auto 16px; max-width: 350px; font-size: 15px; line-height: 1.55; color: #C9D3E8; }
.imp-preco { display: flex; align-items: baseline; justify-content: center; gap: 10px; margin: 0 0 16px; }
.imp-preco b { font: 800 56px/1 'Manrope', system-ui, sans-serif; letter-spacing: -2px; color: #6EE7B7; font-variant-numeric: tabular-nums; }
.imp-preco small { font-weight: 700; font-size: 13px; color: #C9D3E8; background: rgba(255, 255, 255, .08); border-radius: 999px; padding: 3px 10px; }
.imp-pulo { animation: imp-pulo .5s cubic-bezier(.22, 1, .36, 1); }
@keyframes imp-pulo { 40% { transform: scale(1.06); } }
.imp-itens { list-style: none; padding: 16px 0 0; margin: 0 0 20px; display: grid; gap: 10px; text-align: left; border-top: 1px solid rgba(255, 255, 255, .1); }
.imp-itens li { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 15px; }
.imp-itens svg { width: 24px; height: 24px; flex: none; }
.imp-itens circle { fill: #10B981; }
.imp-itens path { fill: none; stroke: #03281B; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 16; stroke-dashoffset: 16; }
.imp-itens small { display: block; font-weight: 500; font-size: 13px; color: #9AA8C4; }
.imp-fundo a.imp-cta, .imp-fundo a.imp-cta:visited, .imp-fundo a.imp-cta:focus { color: #03281B; }
.imp-cta { display: flex; justify-content: center; width: 100%; font: 800 16px 'Manrope', system-ui, sans-serif; border-radius: 14px; padding: 15px 20px; background: #10B981; color: #03281B; text-decoration: none; transition: background .25s, transform .3s cubic-bezier(.22, 1, .36, 1), box-shadow .3s; }
.imp-fundo a.imp-cta:hover { color: #03281B; }
.imp-cta:hover { background: #34D399; transform: translateY(-2px); box-shadow: 0 14px 26px -14px rgba(16, 185, 129, .9); }
.imp-depois { display: block; margin: 6px auto 0; background: none; border: 0; font: 700 14px 'Manrope', system-ui, sans-serif; color: #fff; opacity: .7; cursor: pointer; padding: 8px; }
.imp-depois:hover { opacity: 1; }
.imp-cta:focus-visible, .imp-depois:focus-visible, .imp-fechar:focus-visible { outline: 2px solid #6EE7B7; outline-offset: 3px; }

/* Entrada em ordem */
.imp-parte { opacity: 0; transform: translateY(8px); }
.imp-aberto .imp-parte { animation: imp-aparece .7s cubic-bezier(.22, 1, .36, 1) forwards; }
@keyframes imp-aparece { to { opacity: 1; transform: none; } }
.imp-aberto .imp-p1 { animation-delay: .5s; } .imp-aberto .imp-p2 { animation-delay: .6s; } .imp-aberto .imp-p3 { animation-delay: .7s; } .imp-aberto .imp-p4 { animation-delay: .85s; }
.imp-aberto .imp-p5 { animation-delay: 2.4s; } .imp-aberto .imp-p6 { animation-delay: 2.55s; } .imp-aberto .imp-p7 { animation-delay: 2.7s; } .imp-aberto .imp-p8 { animation-delay: 3s; }
.imp-aberto .imp-itens path { animation: imp-desenha .5s cubic-bezier(.22, 1, .36, 1) forwards; }
.imp-aberto .imp-p5 path { animation-delay: 2.6s; } .imp-aberto .imp-p6 path { animation-delay: 2.75s; } .imp-aberto .imp-p7 path { animation-delay: 2.9s; }
@keyframes imp-desenha { to { stroke-dashoffset: 0; } }

@media (max-width: 520px) {
  .imp-janela { padding: 22px 20px 16px; border-radius: 24px; }
  .imp-titulo { font-size: 24px; }
  .imp-preco b { font-size: 46px; }
  .imp-cena { transform: scale(.85); margin-bottom: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .imp-fundo, .imp-fundo *, .imp-fundo *::after { animation-duration: .01s !important; animation-delay: 0s !important; transition-duration: .01s !important; }
}

/* Passo do pagamento (dentro do painel): a janela se abre e mostra a página de pagamento */
.imp-janela.imp-pagando { width: min(560px, calc(100vw - 32px)); text-align: left; padding: 18px 18px 14px; transition: width .4s cubic-bezier(.22, 1, .36, 1); }
.imp-topo-pagamento { display: flex; align-items: center; gap: 12px; margin: 0 44px 12px 0; }
.imp-topo-pagamento b { font: 800 17px 'Manrope', system-ui, sans-serif; color: #fff; }
.imp-voltar { background: rgba(255, 255, 255, .1); border: 0; border-radius: 10px; padding: 7px 12px; font: 700 13px 'Manrope', system-ui, sans-serif; color: #fff; cursor: pointer; transition: background .2s; }
.imp-voltar:hover { background: rgba(255, 255, 255, .18); }
.imp-voltar[hidden] { display: none; }
.imp-moldura { display: block; width: 100%; height: 520px; border: 0; border-radius: 18px; background: #fff; animation: imp-aparece .5s cubic-bezier(.22, 1, .36, 1); }
