/* Modal do "Saiba mais" dos produtos.
   Substitui o acordeao do GreatPages, cujo painel expandido vaza para fora do
   card e cobre o CTA "Agendar minha consultoria".
   Cores e tipografia vem de design-system/tokens.css. */

.nx-saiba-trigger {
  cursor: pointer;
}

.nx-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.72);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.nx-modal-overlay[data-aberto='true'] {
  opacity: 1;
  pointer-events: auto;
}

.nx-modal {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: calc(100vh - 48px);
  /* flex item nao encolhe abaixo do conteudo sem isto, e o modal estoura a tela */
  min-height: 0;
  overflow-y: auto;
  padding: 36px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: #242424;
  color: #ffffff;
  font-family: 'Alexandria', sans-serif;
  transform: translateY(12px) scale(0.98);
  transition: transform 0.2s ease;
}

.nx-modal-overlay[data-aberto='true'] .nx-modal {
  transform: translateY(0) scale(1);
}

.nx-modal-titulo {
  margin: 0 44px 20px 0;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
  color: #ffffff;
}

.nx-modal-titulo::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  margin-top: 12px;
  border-radius: 100px;
  background: #f94b0c;
}

/* O conteudo vem do HTML original do acordeao: precisa ser legivel no escuro. */
.nx-modal-corpo {
  font-family: 'Roboto', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.92);
}

.nx-modal-corpo * {
  color: inherit !important;
  font-size: inherit !important;
  background: none !important;
}

.nx-modal-corpo b,
.nx-modal-corpo strong {
  color: #ffffff !important;
  font-weight: 700;
}

/* O CSS do GreatPages zera os marcadores da lista; aqui eles voltam. */
.nx-modal-corpo ul {
  margin: 14px 0 0;
  padding-left: 22px;
  list-style: disc outside;
}

.nx-modal-corpo li {
  margin-bottom: 12px;
  list-style: disc outside;
}

.nx-modal-corpo li::marker {
  color: #f94b0c;
}

.nx-modal-corpo p {
  margin: 0 0 8px;
}

.nx-modal-corpo li p:last-child {
  margin-bottom: 0;
}

.nx-modal-fechar {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease;
}

.nx-modal-fechar:hover,
.nx-modal-fechar:focus-visible {
  background: #f94b0c;
  outline: none;
}

.nx-modal-cta {
  display: inline-block;
  margin-top: 28px;
  padding: 14px 30px;
  border: 0;
  border-radius: 100px;
  background: #f94b0c;
  color: #ffffff;
  font-family: 'Alexandria', sans-serif;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease;
}

.nx-modal-cta:hover,
.nx-modal-cta:focus-visible {
  background: #9f2b0b;
  outline: none;
}

@media (max-width: 500px) {
  .nx-modal-overlay {
    padding: 0;
  }

  .nx-modal {
    max-width: none;
    max-height: 100vh;
    padding: 28px 22px;
    border: 0;
    border-radius: 0;
  }

  .nx-modal-titulo {
    font-size: 21px;
  }
}
