:root {
  --bg:#0b132b;
  --fg:#e8eaed;
  --muted:#9aa0a6;
  --accent:#4fd1c5;
}

/* Reset simples */
* {
  box-sizing: border-box;
}
html, body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", Arial, sans-serif;
  background: #fff;
  color: #111;
}

/* Header */
header {
  background: transparent;
  color: var(--fg);
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

/* Faixa do LOGO (ocupando largura inteira) */
.logo-band {
  width: 100%;
  padding: 24px 16px;        /* espa?o em cima/baixo */
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;          /* fundo preto atr?s da arte */
}

/* Imagem do topo (gal?xia + logo) */
.logo-band img {
  width: min(100%, 280px);   /* ocupa a largura, mas no m?x. 900px */
  height: 5;              /* altura vem da propor??o da imagem */
  display: block;
}


/* Barra de navega??o (tarja preta) */
header nav {
  background: var(--bg);
  padding: 8px 16px;
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
}
header nav a {
  color: var(--fg);
  text-decoration: none;
  font-weight: 600;
}
header nav a:hover {
  text-decoration: underline;
}

/* Layout geral */
.container {
  max-width: 980px;
  margin: 0 auto;
  padding: 24px 16px;
}

/* Hero de texto (fica abaixo do logo/gal?xia) */
.hero {
  padding: 32px 0;
}
.hero h1 {
  margin: 0 0 8px 0;
  font-size: 32px;
}
.hero p {
  margin: 0;
  color: #444;
}

section h2 {
  margin-top: 32px;
}
.card {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px;
  margin: 12px 0;
}
ul {
  padding-left: 18px;
}
li {
  margin: 6px 0;
}

/* Bot?o principal (ex: "Quero adquirir o Anjo da Guarda") */
button.btn-link,
a.btn-link {
  display: inline-block;
  margin-top: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--bg);
  color: var(--fg);
  text-decoration: none;
  font-weight: 600;
  border: none;
  cursor: pointer;
}
button.btn-link:hover,
a.btn-link:hover {
  opacity: .9;
}

/* Bot?o contornado (Cancelar) */
button.btn-outline {
  display: inline-block;
  margin-top: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: #fff;
  color: #111;
  border: 1px solid #d1d5db;
  font-weight: 600;
  cursor: pointer;
}
button.btn-outline:hover {
  background: #f3f4f6;
}

/* Rodap? em 2 colunas */
footer {
  border-top: 1px solid #e5e7eb;
  padding: 16px;
  color: #555;
}
footer .container {
  padding: 0 16px;
}
.footer-wrap {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
}
.footer-support-title {
  margin: 0;
  font-size: 13px;
  color: #444;
  font-weight: 600;
}
.footer-support-info {
  margin: 4px 0 6px;
  font-size: 12px;
  line-height: 1.4;
  color: #667085;
}
.footer-support-info a {
  color: inherit;
  text-decoration: none;
}
.footer-support-info a:hover {
  text-decoration: underline;
}
.legal {
  text-align: right;
}
.footer-legal,
.footer-copy {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
  color: #667085;
}
.footer-copy {
  margin-top: 4px;
}

/* Bot?o WhatsApp fixo */
.wa-btn {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #25D366;
  color: #fff;
  padding: 12px 14px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(0,0,0,.25);
}
.wa-btn svg {
  width: 22px;
  height: 22px;
  display: block;
}
.wa-btn svg path {
  fill: currentColor;
}

/* --------- MODAIS (planos, termos, pagamento) --------- */

.modal {
  position: fixed;
  inset: 0;
  display: none;              /* JS muda para flex ao abrir */
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(15,23,42,.65);
  z-index: 50;
}
.modal-content {
  background: #fff;
  border-radius: 16px;
  max-width: 520px;
  width: 100%;
  box-shadow: 0 24px 60px rgba(15,23,42,.35);
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #e5e7eb;
}
.modal-header h3 {
  margin: 0;
  font-size: 1.1rem;
}
.modal-close {
  background: none;
  border: 0;
  font-size: 1.4rem;
  cursor: pointer;
  color: #6b7280;
}
.modal-body {
  padding: 16px 20px;
  max-height: 70vh;
  overflow: auto;
}
.modal-footer {
  padding: 12px 20px 16px;
  border-top: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* Lista de planos */
.plan-list {
  list-style: none;
  margin: 0;
  padding: 16px 20px 8px;
}
.plan-list li + li {
  margin-top: 8px;
}
.plan-item {
  width: 100%;
  border-radius: 12px;
  background: #f9fafb;
  padding: 10px 14px;
  border: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-size: .95rem;
}
.plan-item:hover {
  background: #eef2ff;
  border-color: #1d4ed8;
}
.plan-name {
  font-weight: 500;
}
.plan-price {
  font-weight: 600;
}

.modal-footer,
.plan-footnote,
.modal-note,
.card-note {
  margin: 0;
  font-size: .9rem;
  color: #6b7280;
}

/* Termos */
.terms-plan {
  padding: 16px 20px 8px;
  margin: 0;
}
.terms-body {
  padding: 0 20px 12px;
  max-height: 60vh;
  overflow: auto;
  font-size: .95rem;
  line-height: 1.5;
}
.terms-body h4 {
  margin-top: 0;
}
.terms-pdf {
  padding: 0 20px 16px;
}
.terms-pdf a {
  font-size: .9rem;
  text-decoration: none;
  color: #2563eb;
}
.terms-pdf a:hover {
  text-decoration: underline;
}

/* Rodap? de bot?es nos modais */
.terms-actions {
  padding: 0 20px 16px;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}
.terms-actions button {
  margin: 0;
}

/* Formul?rio de pagamento */
.card-form {
  padding: 0 20px 16px;
}
.card-form label {
  display: block;
  font-size: .9rem;
  margin-bottom: 8px;
}
.card-form input {
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  font-size: .95rem;
}
.card-row {
  display: flex;
  gap: 8px;
}
.card-row > label {
  flex: 1;
}

/* Responsivo */
@media (max-width:640px) {
  .hero h1 {
    font-size: 26px;
  }
  .legal {
    text-align: left;
  }
  .modal-content {
    max-width: 100%;
  }
}

/* === OVERRIDE FINAL PARA OS BOT?.ES DO ANJO DA GUARDA === */

/* Container dos bot?es "Cancelar" / "Eu quero" / "Confirmar pagamento" */
.terms-actions{
  display:flex;
  gap:12px;
  justify-content:flex-end;
  flex-wrap:wrap;
}

/* Garante que todos os bot?es dentro de .terms-actions fiquem alinhados
   e com o mesmo tamanho visual */
.terms-actions button{
  flex:1 0 auto;
  margin:0;
  min-width:140px;
}

/* Bot?o principal (Quero adquirir o Anjo da Guarda / Eu quero / Confirmar pagamento) */
.btn-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin-top:8px;
  padding:10px 18px;
  border-radius:999px;
  background:#0b132b;
  color:#e8eaed;
  text-decoration:none;
  font-weight:600;
  border:1px solid #0b132b;
  cursor:pointer;
}
.btn-link:hover{
  opacity:.9;
}

/* Bot?o claro (Cancelar) */
.btn-outline{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin-top:8px;
  padding:10px 18px;
  border-radius:999px;
  background:#fff;
  color:#111;
  border:1px solid #d1d5db;
  font-weight:600;
  cursor:pointer;
}
.btn-outline:hover{
  background:#f3f4f6;
}

/* =========================================================
   PLANOS (MODAL) ??" 1) Alturas alinhadas  2) Pre?o fixo  3) Menos scroll
   ========================================================= */

/* Modal maior (reduz scroll) */
#plan-modal .modal-content{
  max-width: 980px;
  width: 100%;
  display: flex;
  flex-direction: column;
  max-height: 92vh; /* mais alto na tela */
}

/* Corpo com scroll controlado (reduz scroll) */
#plan-modal .modal-body{
  padding: 16px 20px 20px;
  max-height: 78vh;
  overflow: auto;
}

/* Grid 2 colunas: garante ??olinha??? com altura igual nos dois lados */
#plan-modal .plan-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: stretch; /* for?a itens a esticar */
}

/* Responsivo: em telas menores vira 1 coluna */
@media (max-width: 900px){
  #plan-modal .plan-grid{
    grid-template-columns: 1fr;
  }
}

/* Cabe?alho de coluna (Individual / Fam?lia) */
#plan-modal .plan-col-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #fff;
}

#plan-modal .plan-col-title{
  margin:0;
  font-weight: 800;
  font-size: 1.05rem;
}

#plan-modal .plan-col-badge{
  font-size: .82rem;
  font-weight: 800;
  background:#eef2ff;
  color:#1d4ed8;
  padding: 6px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

/* Card do plano */
#plan-modal .plan-item{
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 14px;
  cursor: pointer;

  /* chave do alinhamento de alturas */
  height: 100%;
  align-self: stretch;

  display: flex;
  flex-direction: column;
  gap: 10px;

  /* se algum navegador aplicar estilo de bot?o (caso voc? use <button>) */
  text-align: left;
}

#plan-modal .plan-item:hover{
  background:#eef2ff;
  border-color:#1d4ed8;
}

/* Linha do t?tulo + pre?o */
#plan-modal .plan-row{
  display: grid;
  grid-template-columns: 1fr auto; /* nome cresce / pre?o fica fixo */
  gap: 12px;
  align-items: start;
}

#plan-modal .plan-name{
  font-weight: 900;
  font-size: 1.03rem;
}

#plan-modal .plan-price{
  text-align: right;
  font-weight: 900;
  white-space: nowrap;
}

#plan-modal .plan-price small{
  display:block;              /* quebra em 2 linhas quando necess?rio */
  font-size: .86rem;
  font-weight: 800;
  opacity: .85;
  margin-top: 2px;
}

/* Features: reserva espa?o para padronizar altura do card */
#plan-modal .plan-features{
  margin: 0;
  padding-left: 18px;
  color:#374151;
  line-height: 1.35;
  font-size: .95rem;

  /* chave para as alturas ficarem parecidas mesmo quando tem poucos itens */
  min-height: 4.4em;
  flex: 1;
}

#plan-modal .plan-features li{ margin: 6px 0; }
#plan-modal .plan-features li:last-child{ margin-bottom: 0; }
