/* Botão que explode. Visual igual ao ShatterCta da LP do LINHA RETA (landing-curso/src/seal-v2/shatter-cta.css):
   vidro #70BEFA, raio de 12px, texto azul em caixa alta. Sem brilho: nada de aurora, anel pulsando ou reflexo
   varrendo (pedido do Denis em 25/10: "sem esse neon brilho, quero elegante"). O estouro em cacos no clique fica.
   Só transform/opacity nas animações. Movimento reduzido: tudo parado, o clique navega direto. */

.neon-wrap { position: relative; display: inline-flex; vertical-align: middle }

.neon {
  --c: #70BEFA;
  position: relative; display: inline-flex; align-items: center; justify-content: center; width: 100%;
  min-height: 3.25rem; padding: 1rem 2rem; border-radius: 12px; overflow: hidden; cursor: pointer;
  font-family: var(--f-text, inherit); font-size: .875rem; font-weight: 700; letter-spacing: .08em; line-height: 1.25;
  text-transform: uppercase; white-space: nowrap; text-decoration: none; text-align: center;
  color: var(--c);
  background: linear-gradient(135deg, rgba(112, 190, 250, .13), rgba(112, 190, 250, .27));
  border: 1px solid rgba(112, 190, 250, .4);
  box-shadow: inset 0 1px 0 rgba(214, 238, 255, .12);
  transition: transform 160ms cubic-bezier(.23, 1, .32, 1), border-color 300ms cubic-bezier(.23, 1, .32, 1), opacity 150ms cubic-bezier(.23, 1, .32, 1);
  -webkit-tap-highlight-color: transparent;
}
.neon::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(135deg, rgba(112, 190, 250, .08), rgba(112, 190, 250, .16));
  opacity: 0; transition: opacity 300ms cubic-bezier(.23, 1, .32, 1);
}
.neon > * { position: relative; z-index: 1 }
.neon > span:first-child { text-wrap-style: balance } /* só o estilo: o atalho text-wrap desligaria o nowrap */
.neon-ico { display: none } /* o botão da LP é só texto */
.neon:active { transform: scale(.97) }
.neon.is-off, .neon.is-off:hover { transform: scale(.9); opacity: 0; pointer-events: none }
.neon:focus-visible { outline: 2px solid var(--c); outline-offset: 3px }
.neon:disabled { cursor: progress; opacity: .65 }
@media (hover: hover) and (pointer: fine) {
  .neon:hover { border-color: rgba(112, 190, 250, .7) }
  .neon:hover::before { opacity: 1 }
}

/* tamanhos */
@media (min-width: 64rem) { .neon-grande .neon { min-height: 3.75rem; padding: 1.25rem 3.5rem; font-size: 1rem } }
.neon-bloco { display: flex; width: 100% }
.neon-bloco .neon { white-space: normal }
.neon-compacto .neon { min-height: 2.75rem; padding: 0 1.15rem; font-size: .72rem; letter-spacing: .14em }
@media (max-width: 47.99rem) {
  .neon-wrap { max-width: 100% }
  .neon { padding-inline: 1.125rem; letter-spacing: .05em; white-space: normal }
}
@media (max-width: 23.5rem) { .neon { font-size: .84rem; letter-spacing: .04em } }

/* portal no body */
.neon-fx { position: fixed; inset: 0; z-index: 100; pointer-events: none }
.neon-caco {
  position: absolute; left: var(--ox); top: var(--oy); display: block; background: #8FD0FF;
  animation: neon-caco 800ms cubic-bezier(.25, .46, .45, .94) forwards;
}
@keyframes neon-caco {
  from { transform: translate(-50%, -50%) rotate(0) scale(1); opacity: 1 }
  to { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) rotate(var(--rot)) scale(.5); opacity: 0 }
}
.neon-anel {
  position: absolute; left: var(--ox); top: var(--oy); width: 300px; height: 300px; margin: -150px 0 0 -150px; border-radius: 50%;
  border: 1px solid rgba(112, 190, 250, .7);
  animation: neon-choque 600ms cubic-bezier(.23, 1, .32, 1) forwards;
}
@keyframes neon-choque { from { transform: scale(.1); opacity: 1 } to { transform: scale(1); opacity: 0 } }

@media (prefers-reduced-motion: reduce) {
  .neon-caco, .neon-anel { animation: none }
  .neon, .neon:hover, .neon:active { transition: opacity 150ms cubic-bezier(.23, 1, .32, 1); transform: none }
}
