/* Animações e interações extras (PHP/XAMPP) */
body { font-family: Inter, system-ui, sans-serif; }

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-left.revealed { opacity: 1; transform: translateX(0); }
.reveal-right {
  opacity: 0;
  transform: translateX(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-right.revealed { opacity: 1; transform: translateX(0); }

#site-header.scrolled,
#site-header.menu-open {
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}
#site-header.menu-open {
  z-index: 10007;
}
@media (max-width: 1279px) {
  #site-header { z-index: 10005; }
  #site-header.menu-open { z-index: 10007; }
  #cora-popup { z-index: 9990 !important; }
}

/* Botão hamburger — mobile */
.mobile-menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  min-width: 3rem;
  min-height: 3rem;
  border: none;
  border-radius: 0.5rem;
  background: #ffffff;
  color: #1e293b;
  cursor: pointer;
  position: relative;
  z-index: 10006;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
#site-header.menu-open .mobile-menu-btn {
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}
.mobile-menu-btn:active {
  background: #f1f5f9;
}
@media (min-width: 1280px) {
  .mobile-menu-btn { display: none; }
}

/* Menu mobile — CSS puro (não depende do Tailwind) */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10008;
}
.mobile-menu.is-open {
  display: block !important;
}
.mobile-menu__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 0;
}
.mobile-menu__panel {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(100%, 20rem);
  height: 100%;
  background: #ffffff;
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.18);
  overflow: hidden;
  -webkit-overflow-scrolling: touch;
}
.mobile-menu__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #e2e8f0;
  background: #ffffff;
}
.mobile-menu__title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: #1e293b;
}
.mobile-menu__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  border-radius: 0.5rem;
  background: #f1f5f9;
  color: #1e293b;
  cursor: pointer;
  touch-action: manipulation;
}
.mobile-menu__nav {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  background: #ffffff;
}
.mobile-menu__link {
  display: block;
  padding: 0.875rem 1rem;
  border-radius: 0.75rem;
  font-size: 1rem;
  font-weight: 500;
  color: #1e293b;
  text-decoration: none;
  touch-action: manipulation;
}
.mobile-menu__link:active {
  background: #f1f5f9;
}
.mobile-menu__link--cora {
  background: #FE3E6D;
  color: #ffffff;
  font-weight: 700;
  text-align: center;
}
.mobile-menu__footer {
  padding: 1rem;
  border-top: 1px solid #e2e8f0;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.mobile-menu__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  border-radius: 9999px;
  border: 1px solid rgba(30, 41, 59, 0.1);
  background: rgba(30, 41, 59, 0.03);
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(30, 41, 59, 0.7);
  text-decoration: none;
}
.mobile-menu__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 2.75rem;
  border-radius: 0.75rem;
  background: #1e293b;
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  touch-action: manipulation;
}

body.menu-open {
  overflow: hidden;
  touch-action: none;
}

.cora-pulse-tab {
  animation: cora-pulse 1.6s ease-in-out infinite;
}
@keyframes cora-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 4px 18px rgba(254, 62, 109, 0.45); }
  50% { transform: scale(1.07); box-shadow: 0 0 36px rgba(254, 62, 109, 0.85); }
}
.cora-tab-text {
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

.testimonial-track {
  display: flex;
  transition: transform 0.4s ease;
}
.testimonial-slide { flex: 0 0 100%; padding-left: 1rem; }
@media (min-width: 768px) {
  .testimonial-slide { flex: 0 0 50%; }
}

details summary::-webkit-details-marker { display: none; }
details summary { list-style: none; }

.balance-hidden::after { content: 'R$ ••••••'; }
.balance-visible::after { content: 'R$ 48.920,00'; }

/* Card de autorização Cora */
.cora-auth-section {
  background: linear-gradient(180deg, #fafafa 0%, #ffffff 50%, #fafafa 100%);
}
.cora-auth-section__glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 20%, rgba(254, 62, 109, 0.07), transparent 45%),
    radial-gradient(circle at 88% 80%, rgba(254, 62, 109, 0.05), transparent 42%);
  pointer-events: none;
}
.cora-auth-card {
  max-width: 52rem;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 1.75rem;
  border: 1px solid rgba(254, 62, 109, 0.18);
  background: #ffffff;
  box-shadow:
    0 16px 40px rgba(254, 62, 109, 0.1),
    0 4px 14px rgba(0, 0, 0, 0.05);
}
.cora-auth-card__header {
  background: linear-gradient(135deg, #fe3e6d 0%, #f03562 52%, #e5355f 100%);
  padding: 1.5rem 1.25rem;
}
@media (min-width: 640px) {
  .cora-auth-card__header { padding: 1.75rem 2.5rem; }
}
.cora-auth-card__header-grid {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem 1.25rem;
}
@media (max-width: 639px) {
  .cora-auth-card__header-grid {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
}
.cora-auth-card__header-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.cora-auth-card__header-copy {
  min-width: 0;
}
.cora-auth-card__eyebrow {
  margin: 0;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
}
.cora-auth-card__title {
  margin: 0.35rem 0 0;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.2;
  color: #ffffff;
}
@media (min-width: 640px) {
  .cora-auth-card__title { font-size: 1.6rem; }
}
.cora-auth-card__header-logo {
  display: flex;
  align-items: center;
  justify-content: center;
}
.cora-auth-card__logo {
  display: block;
  height: 1.85rem;
  width: auto;
}
@media (min-width: 640px) {
  .cora-auth-card__logo { height: 2rem; }
}
.cora-auth-card__body {
  padding: 2rem 1.25rem 2.25rem;
  text-align: center;
}
@media (min-width: 640px) {
  .cora-auth-card__body { padding: 2.5rem 2.5rem 2.75rem; }
}
.cora-auth-card__intro {
  margin: 0 auto;
  max-width: 38rem;
  font-size: 1rem;
  line-height: 1.75;
  color: #666666;
}
@media (min-width: 640px) {
  .cora-auth-card__intro { font-size: 1.0625rem; }
}
.cora-auth-card__intro strong {
  font-weight: 600;
  color: #202020;
}
.cora-auth-card__highlight {
  color: #fe3e6d !important;
}
.cora-auth-card__benefits {
  display: grid;
  gap: 0.875rem;
  margin: 2rem auto 0;
  max-width: 40rem;
  padding: 0;
  list-style: none;
  text-align: left;
}
@media (min-width: 640px) {
  .cora-auth-card__benefits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 1.25rem;
  }
}
.cora-auth-card__benefit {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.45;
  color: #202020;
}
.cora-auth-card__benefit-icon {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  margin-top: 0.1rem;
  border-radius: 9999px;
  background: rgba(254, 62, 109, 0.1);
  color: #fe3e6d;
}
.cora-auth-card__seal {
  margin: 2.25rem auto 0;
  max-width: 22rem;
  padding: 2rem 1.5rem 1.75rem;
  border-radius: 1.25rem;
  border: 1.5px dashed rgba(254, 62, 109, 0.28);
  background: linear-gradient(180deg, rgba(254, 62, 109, 0.05) 0%, rgba(254, 62, 109, 0.02) 100%);
}
.cora-auth-card__seal-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 5.5rem;
  height: 5.5rem;
  margin: 0 auto 1.25rem;
  border-radius: 9999px;
  background: linear-gradient(145deg, #fe3e6d 0%, #e5355f 100%);
  box-shadow: 0 12px 28px rgba(254, 62, 109, 0.32);
}
.cora-auth-card__seal-check {
  position: absolute;
  right: -0.15rem;
  bottom: -0.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.85rem;
  height: 1.85rem;
  border: 2px solid #ffffff;
  border-radius: 9999px;
  background: #202020;
}
.cora-auth-card__seal-label {
  margin: 0;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fe3e6d;
}
.cora-auth-card__seal-brand {
  margin: 0.5rem 0 0;
  font-size: 1.125rem;
  font-weight: 700;
  color: #202020;
}
.cora-auth-card__seal-date {
  margin: 0.35rem 0 0;
  font-size: 0.75rem;
  color: #666666;
}
.cora-auth-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  height: 2.875rem;
  margin-top: 1.5rem;
  border-radius: 9999px;
  background: #fe3e6d;
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(254, 62, 109, 0.28);
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.cora-auth-card__cta:hover {
  background: #e5355f;
  transform: translateY(-1px);
}
.cora-auth-card__footnote {
  margin: 1rem 0 0;
  font-size: 0.625rem;
  line-height: 1.5;
  color: #999999;
}

/* Como Funciona — números dos passos (somente mobile) */
@media (max-width: 1023px) {
  #como-funciona .step-item__content {
    padding-left: 4.25rem;
  }
  #como-funciona .step-item__number {
    left: 0;
    top: 1.5rem;
  }
}
@media (min-width: 1024px) {
  #como-funciona .step-item__content {
    padding-left: 0;
  }
}
