:root{
  --bg: #f4f6fb;
  --text: #0f172a;
  --muted:#64748b;

  --primary:#3b0a57;     /* roxo PrimeNet */
  --primary2:#5b21b6;    /* roxo mais vivo */
  --accent:#fbbf24;      /* amarelo */
  --cardBorder:#e6eaf2;

  --shadow: 0 18px 50px rgba(15, 23, 42, 0.10);
  --shadowHover: 0 26px 70px rgba(15, 23, 42, 0.16);
}

/* reset */
*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

body{
  /* ✅ fundo da página inteiro igual o topo/hero (sem faixa branca) */
  background: radial-gradient(
    1400px 650px at 30% -10%,
    #1e3a8a 0%,
    #0b122f 25%,
    #020617 60%,
    #020617 100%
  );
  color: var(--text);
  min-height: 100vh;
}

/* layout */
.planos-container{
  background: transparent;
  text-align: center;
  position: relative;
  z-index: 1;

  /* ✅ mais espaçamento pra header aparecer bonito */
  padding: 40px 18px 90px;
}

/* ✅ offset usado quando clica no menu (âncora) */
.planos-offset{
  padding-top: 110px;
}

/* ===== TÍTULO DA SEÇÃO DE PLANOS (igual referência) ===== */
.planos-header-wrap{
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 26px;
}

.planos-header{
  max-width: 760px;
  padding: 10px 12px 0;
}

.planos-title{
  color: #ffffff;
  font-size: clamp(34px, 3.2vw, 46px);
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
  text-shadow: 0 8px 26px rgba(0,0,0,.35);
}

.planos-subtitle{
  color: rgba(255,255,255,.74);
  font-size: clamp(14px, 1.25vw, 16px);
  line-height: 1.55;
  margin: 0 auto;
}

/* grade */
.planos{
  display: grid;
  grid-template-columns: repeat(4, minmax(220px, 280px));
  justify-content: center;
  gap: 18px;
  align-items: stretch;
  position: relative;
  z-index: 2;
}

/* wrapper do badge (pra ficar "pra fora" sem mexer na altura do card) */
.plano-wrap{
  position: relative;
  display: flex;
  align-items: stretch;
}

.plano-wrap .plano-card{
  width: 100%;
}

/* card */
.plano-card{
  background:#fff;
  border: 1px solid var(--cardBorder);
  border-radius: 16px;
  padding: 24px 18px 18px;

  /* ✅ cards “flutuando” melhor no fundo escuro */
  box-shadow:
    0 22px 70px rgba(0,0,0,.45),
    0 0 0 1px rgba(255,255,255,.06);

  position: relative;
  overflow:hidden;
  min-height: 420px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.plano-card:hover{
  transform: translateY(-6px);
  box-shadow:
    0 30px 85px rgba(0,0,0,.55),
    0 0 0 1px rgba(255,255,255,.08);
  border-color: rgba(91,33,182,.25);
}

/* faixa superior roxa/amarela */
.plano-card::before{
  content:"";
  position:absolute;
  top:0;
  left:0;
  right:0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary2), var(--accent));
}

/* topo */
.plano-topo{
  display:flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  margin-bottom: 14px;
}

.plano-titulo{
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.plano-sub{
  font-size: 13px;
  color: var(--muted);
}

/* preço */
.preco-pill{
  display:flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  background: #ffffff;
  border: 1px solid #eef2f7;
  border-radius: 999px;
  padding: 10px 14px;
  width: calc(100% - 18px);
  margin: 14px auto 10px;
  box-shadow: 0 10px 22px rgba(15,23,42,.08);
}

.preco-pill .rs{
  font-weight: 700;
  color: #111827;
  font-size: 14px;
}

.preco-pill .valor{
  font-size: 38px;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: -0.02em;
}

.preco-pill .periodo{
  font-size: 13px;
  color: var(--muted);
}

/* divisor */
.divisor{
  height: 1px;
  background: #eef2f7;
  margin: 14px 0 16px;
}

/* lista */
.plano-card ul{
  list-style:none;
  text-align:left;
  padding: 0 6px;
  margin: 0 0 18px;
}

.plano-card ul li{
  display:flex;
  gap:10px;
  align-items:flex-start;
  margin-bottom: 10px;
  color: #334155;
  font-size: 14px;
  line-height: 1.25;
}

.plano-card ul li::before{
  content:"✓";
  color: var(--primary2);
  font-weight: 900;
  margin-top: 1px;
}

/* badge flutuando acima do card */
.badge{
  background: rgba(91,33,182,.10);
  border: 1px solid rgba(91,33,182,.22);
  color: var(--primary2);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.badge-topo{
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  background: #fff;
  box-shadow: 0 10px 22px rgba(15,23,42,.10);
}

/* seleção */
.plano-card.selecionado{
  border-color: rgba(91,33,182,.45);
  box-shadow:
    0 0 0 3px rgba(91,33,182,.12),
    0 30px 85px rgba(0,0,0,.55),
    0 0 0 1px rgba(255,255,255,.08);
  transform: translateY(-6px);
}

/* botões */
.btns{
  display:flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
}

/* base comum (responsivo + toque no mobile) */
.btn-primario,
.btn-secundario{
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  min-height: 46px;
  padding: 12px 14px;
  border-radius: 12px;
  text-decoration:none;
  font-weight: 900;
  letter-spacing: .2px;
  text-align:center;
  line-height: 1.1;
  white-space: normal;
  word-break: break-word;
  font-size: clamp(13px, 1.2vw, 15px);
  transition: transform .14s ease, filter .14s ease, box-shadow .14s ease;
  -webkit-tap-highlight-color: transparent;
}

/* COMPRAR (animação leve) */
.btn-primario{
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg, var(--primary), var(--primary2));
  color:#fff;
  box-shadow: 0 10px 20px rgba(59, 10, 87, .18);
}

.btn-primario::after{
  content:"";
  position:absolute;
  inset:0;
  transform: translateX(-120%);
  background: linear-gradient(120deg,
    transparent 0%,
    rgba(255,255,255,.22) 45%,
    rgba(255,255,255,.32) 50%,
    rgba(255,255,255,.22) 55%,
    transparent 100%
  );
  animation: shine 2.8s ease-in-out infinite;
}

@keyframes shine{
  0%   { transform: translateX(-120%); }
  55%  { transform: translateX(120%); }
  100% { transform: translateX(120%); }
}

.btn-primario:hover{
  filter: brightness(1.03);
  transform: translateY(-1px);
}

.btn-primario:active{
  transform: translateY(1px);
}

/* WhatsApp */
.btn-secundario{
  background: var(--accent);
  color:#111827;
  box-shadow: 0 10px 20px rgba(251, 191, 36, .18);
}

.btn-secundario:hover{
  filter: brightness(0.98);
  transform: translateY(-1px);
}

.btn-secundario:active{
  transform: translateY(1px);
}

/* foco teclado (acessibilidade) */
.btn-primario:focus-visible,
.btn-secundario:focus-visible{
  outline: 3px solid rgba(91,33,182,.22);
  outline-offset: 3px;
}

/* responsivo */
@media (max-width: 1200px){
  .planos{ grid-template-columns: repeat(2, minmax(240px, 320px)); }
}

@media (max-width: 640px){
  .planos{ grid-template-columns: 1fr; max-width: 380px; margin: 0 auto; }
  .plano-card{ min-height: auto; }
  .btn-primario, .btn-secundario{ min-height: 48px; }
  .planos-container{ padding: 34px 16px 70px; }
  .planos-title{ margin-bottom: 8px; }
}

/* logo pequena dentro dos cards (ARREDONDADA igual a do topo) */
.plano-logo{
  width: 46px;
  height: 46px;
  margin: 6px auto 10px;

  border-radius: 999px;
  overflow: hidden;
  display: grid;
  place-items: center;

  box-shadow:
    0 10px 18px rgba(0,0,0,.14),
    0 0 0 1px rgba(15,23,42,.08);
  background: #fff;
}

.plano-logo img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 999px;
  filter: none;
}

/* ===== BOTÃO FLUTUANTE WHATSAPP ===== */
.whatsapp-float{
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 58px;
  height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  box-shadow:
    0 12px 30px rgba(0,0,0,.35),
    0 0 0 6px rgba(37,211,102,.18);
  transition: transform .2s ease, box-shadow .2s ease;
  text-decoration: none;
}

.whatsapp-float svg{
  width: 30px;
  height: 30px;
  fill: #fff;
}

.whatsapp-float:hover{
  transform: translateY(-4px) scale(1.05);
  box-shadow:
    0 18px 40px rgba(0,0,0,.45),
    0 0 0 8px rgba(37,211,102,.22);
}

.whatsapp-float:active{
  transform: scale(.96);
}

@media (max-width: 640px){
  .whatsapp-float{
    right: 16px;
    bottom: 16px;
    width: 54px;
    height: 54px;
  }

  .whatsapp-float svg{
    width: 28px;
    height: 28px;
  }
}

/* =========================
   DOWNLOADS (NOVO)
   ========================= */
.downloads-section{
  padding: 70px 16px 30px;
  text-align: center;
}

.downloads-title{
  color: #ffffff;
  font-size: clamp(34px, 3.2vw, 46px);
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
  text-shadow: 0 8px 26px rgba(0,0,0,.35);
}

.downloads-subtitle{
  color: rgba(255,255,255,.74);
  font-size: clamp(14px, 1.25vw, 16px);
  line-height: 1.55;
  margin: 0 auto 34px;
}

.downloads-pills{
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
}

.downloads-pill{
  width: min(520px, 100%);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 18px;
  text-decoration: none;

  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 18px 40px rgba(0,0,0,.35);

  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}

.downloads-pill:hover{
  transform: translateY(-2px);
  background: rgba(255,255,255,.085);
  border-color: rgba(255,255,255,.16);
}

.downloads-pill img{
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex: 0 0 auto;
}

.downloads-pill div{
  text-align: left;
  line-height: 1.1;
}

.downloads-pill strong{
  display: block;
  font-weight: 900;
  font-size: 16px;
  color: rgba(255,255,255,.95);
}

.downloads-pill span{
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: rgba(255,255,255,.62);
}

/* Ajuste de âncoras para header fixo */
#downloads,
#planos {
  scroll-margin-top: 110px; /* altura do header */
}


/* =========================
   MODAL VINCULAR CONTA (NOVO)
   ========================= */
.modal-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 99999;
}

.modal-overlay.is-open{
  display: flex;
}

.modal-box{
  width: min(980px, 100%);
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(30,58,138,.35), rgba(2,6,23,.92));
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 30px 90px rgba(0,0,0,.60);
}

.modal-top{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.10);
}

.modal-top-left{
  font-weight: 800;
  color: rgba(255,255,255,.92);
}

.modal-close{
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.92);
  padding: 8px 14px;
  border-radius: 12px;
  font-weight: 900;
  cursor: pointer;
  transition: .15s ease;
}

.modal-close:hover{
  background: rgba(255,255,255,.10);
  transform: translateY(-1px);
}

.modal-content{
  padding: 18px 18px 22px;
}

.modal-title{
  color: #fff;
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 900;
  letter-spacing: -0.02em;
  margin: 6px 0 14px;
}

.modal-video{
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 18px 50px rgba(0,0,0,.45);
  background: #000;
}

.modal-video iframe{
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
}

.modal-steps{
  margin-top: 16px;
  border-radius: 14px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  padding: 14px 14px;
}

.modal-steps-title{
  color: rgba(255,255,255,.92);
  font-weight: 900;
  margin-bottom: 8px;
}

.modal-steps-text{
  color: rgba(255,255,255,.74);
  line-height: 1.6;
  margin: 0;
}

/* trava scroll do body quando modal abre */
body.modal-open{
  overflow: hidden;
}


/* =========================================================
   AJUSTES PREMIUM DO MODAL (NÃO REMOVE NADA - SÓ SOBRESCREVE)
   ========================================================= */

/* overlay mais “cinema” (menos mistura com o fundo) */
.modal-overlay{
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* caixa com fundo mais sólido (sem “vazar” e misturar) */
.modal-box{
  background: linear-gradient(180deg, rgba(9,16,40,.96) 0%, rgba(2,6,23,.98) 100%);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow:
    0 40px 120px rgba(0,0,0,.75),
    0 0 0 1px rgba(255,255,255,.06);
}

/* topo mais “header” real (menos translúcido) */
.modal-top{
  background: rgba(255,255,255,.08);
}

/* centraliza “Tutorial” */
.modal-top-left{
  width: 100%;
  text-align: center;
  letter-spacing: .02em;
}

/* mantém o botão à direita sem quebrar o centro */
.modal-close{
  position: absolute;
  right: 18px;
  top: 14px;
}

/* título centralizado e com mais presença */
.modal-title{
  text-align: center;
  margin: 10px 0 18px;
  text-shadow: 0 12px 28px rgba(0,0,0,.55);
}

/* vídeo com acabamento premium */
.modal-video{
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.14);
  box-shadow:
    0 24px 70px rgba(0,0,0,.65),
    0 0 0 1px rgba(255,255,255,.06);
}

/* “Passo a passo” mais bonito e centralizado */
.modal-steps{
  background: rgba(255,255,255,.07);
}

.modal-steps-title{
  text-align: center;
}

.modal-steps-text{
  text-align: center;
}

/* mobile: modal fica confortável */
@media (max-width: 640px){
  .modal-content{
    padding: 16px 14px 18px;
  }

  .modal-close{
    right: 14px;
    top: 12px;
    padding: 7px 12px;
  }
}
/* FIX: WhatsApp flutuante com imagem */
.whatsapp-float{
  overflow: hidden; /* corta a imagem dentro do círculo */
}

.whatsapp-float img{
  width: 60px;
  height: 60px;
  object-fit: contain;
  display: block;
}
