/* =========================================================
   Loopy: responsividade fina e animações
   (carregado depois de loopy.css)
   ========================================================= */

/* Topo: botão Assinar visível em tablet/celular; respiro lateral do menu */
@media (max-width: 991px) {
  .header .container { padding-left: 24px; padding-right: 24px; }
  .sign-up-btn { display: block; }
}

/* Celular: botões do topo centralizados e com a mesma largura */
@media (max-width: 575px) {
  .banner-static .banner-content .thm-btn {
    display: flex; justify-content: center; align-items: center;
    width: 100%; max-width: 320px; margin-left: auto !important; margin-right: auto;
  }
  .banner-static .banner-content .thm-btn + .thm-btn { margin-top: 12px; }
}

/* Áreas de toque de no mínimo 44px no celular */
@media (max-width: 767px) {
  .switch-toggler-list li a { display: inline-block; padding: 10px 4px; }
  .feature-style-content a.more,
  .intigration-content a.more,
  .coverage-actions .more,
  .fixed-line-strip a.more,
  .banner-static .hero-call a,
  .plan-note a { display: inline-flex; align-items: center; min-height: 44px; }
  .coverage-toggle { min-height: 44px; }
  footer.footer .footer-widget .social a { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; }
  footer.footer .footer-widget .social a + a { margin-left: 4px; }
  footer.footer .footer-widget.contact-widget p a { display: inline-block; padding: 8px 0; }
  .navbar-toggler { min-width: 44px; min-height: 44px; }
}

/* Etiquetas um pouco maiores (11px era pequeno demais) */
.pricing-section .single-pricing .plan-tag { font-size: 12px; }

/* Celular: planos em carrossel deslizável (encurta muito a página) */
.swipe-hint { display: none; }
@media (max-width: 767px) {
  .pricing-section .pricing-row {
    flex-wrap: nowrap; overflow-x: auto; overflow-y: visible;
    scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    padding: 30px 0 20px; margin: 0 -15px; scrollbar-width: none;
  }
  .pricing-section .pricing-row::-webkit-scrollbar { display: none; }
  .pricing-section .pricing-row > [class*="col-"] {
    flex: 0 0 84%; max-width: 84%; scroll-snap-align: center; padding: 0 8px;
  }
  .pricing-section .pricing-row > [class*="col-"]:first-child { margin-left: 8%; }
  .pricing-section .pricing-row > [class*="col-"]:last-child { margin-right: 8%; }
  .pricing-section .single-pricing.popular { margin-top: 0; }
  .pricing-section .tabed-content { min-height: 0; }
  .swipe-hint { display: block; text-align: center; font-size: 13px; color: #999; margin: 0; }
  .swipe-hint i { margin-left: 6px; animation: loopy-nudge 1.4s ease-in-out infinite; }
}
@keyframes loopy-nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(6px); } }

/* Celular: vantagens em 2 colunas, mais compactas */
@media (max-width: 767px) {
  .features-grid .item { margin-bottom: 34px; padding: 0 8px; }
  .features-grid .single-app-features i.fas { font-size: 30px; margin-bottom: 14px; }
  .features-grid .single-app-features h3 { font-size: 15px; line-height: 1.3; }
  .features-grid .single-app-features p { font-size: 12.5px; line-height: 1.55; }
  .features-grid .single-app-features p br { display: none; }
  .features-grid .single-app-features .line { display: none; }
}

/* ---------- Animações de entrada ao rolar ---------- */
/* esconder é instantâneo (sem piscar no carregamento); só a entrada é animada */
html.has-reveal .reveal { opacity: 0; transform: translateY(28px); }
html.has-reveal .reveal.is-visible {
  opacity: 1; transform: none;
  transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

/* Topo: entrada em sequência ao carregar */
html.has-reveal .banner-content > *,
html.has-reveal .banner-moc-box > * { animation: loopy-rise .8s cubic-bezier(.2, .7, .2, 1) both; }
html.has-reveal .banner-content > :nth-child(1) { animation-delay: .05s; }
html.has-reveal .banner-content > :nth-child(2) { animation-delay: .15s; }
html.has-reveal .banner-content > :nth-child(3) { animation-delay: .25s; }
html.has-reveal .banner-content > :nth-child(n+4) { animation-delay: .35s; }
html.has-reveal .banner-moc-box > .hero-photo { animation-name: loopy-photo; animation-delay: .2s; }
html.has-reveal .banner-moc-box > .hero-badge { animation-delay: .55s; }
/* mascote entra com um "pulo" e depois flutua de leve */
html.has-reveal .banner-static .banner-moc-box > img.hero-mascot {
  animation: loopy-pop .7s cubic-bezier(.2, .7, .2, 1) .7s both, loopy-float 4s ease-in-out 1.6s infinite;
}
@keyframes loopy-rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes loopy-photo { from { opacity: 0; transform: rotate(-2deg) scale(.94); } to { opacity: 1; transform: rotate(-2deg) scale(1); } }
@keyframes loopy-pop { 0% { opacity: 0; transform: translateY(30px) scale(.8); } 70% { opacity: 1; transform: translateY(-6px) scale(1.03); } 100% { opacity: 1; transform: none; } }
@keyframes loopy-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* Cards de plano: leve elevação no hover (só em dispositivos com mouse) */
.pricing-section .single-pricing { transition: transform .35s ease, box-shadow .35s ease; }
@media (hover: hover) {
  .pricing-section .single-pricing:hover { transform: translateY(-6px); box-shadow: 0 22px 45px rgba(0, 113, 217, .14); }
}

/* Acessibilidade: quem pede menos movimento não vê animações */
@media (prefers-reduced-motion: reduce) {
  html.has-reveal .reveal { opacity: 1; transform: none; transition: none; }
  html.has-reveal .banner-content > *,
  html.has-reveal .banner-moc-box > *,
  html.has-reveal .banner-static .banner-moc-box > img.hero-mascot { animation: none !important; }
  .video-box a.video-btn, .swipe-hint i { animation: none !important; }
  .pricing-section .single-pricing:hover { transform: none; }
}

/* Rodapé e campo de CEP: áreas de toque no celular */
@media (max-width: 767px) {
  footer.footer .footer-widget.links-widget ul.link-list li a { display: inline-block; padding: 12px 8px; }
  footer.footer .footer-widget.about-widget > a { display: inline-block; }
  .footer-bottom .left-content p a { display: inline-block; padding: 12px 0; }
  footer.footer .subscribe-section .subscribe-form input { height: 44px; }
}
@media (max-width: 767px) {
  .plan-note a { display: block; min-height: 0; padding: 10px 0; }
}
