/* ═════════════════════════════════════════════════════════════════════════
 * plans.css — Seção de Planos (Sellerion Landing)
 * 3 cards: Grátis / Sellerion padrão (com promo dinâmica) / Enterprise
 * ═════════════════════════════════════════════════════════════════════════ */


/* ── Header / Intro ─────────────────────────────────────────────────────── */
.plans-section {
  padding: 4rem 0 5rem;
  background-color: #091a43;
}

.plans-intro {
  text-align: center;
  color: var(--text-secondary, #475569);
  font-size: clamp(.95rem, 1vw + .5rem, 1.05rem);
  margin: 0 auto 3rem;
  max-width: 600px;
  padding: 0 1rem;
}


/* ── Grid de 3 cards ────────────────────────────────────────────────────── */
.plans-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
  align-items: stretch;
}

@media (min-width: 769px) {
  .plans-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    align-items: center;
  }
}


/* ── Card base ──────────────────────────────────────────────────────────── */
.plan-card {
  background: #ffffff;
  border: 1px solid rgba(7, 0, 104, .12);
  border-radius: 16px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform .3s ease, box-shadow .3s ease;
}

.plan-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, .12);
}

.plan-header {
  margin-bottom: 24px;
}

.plan-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1e293b;
  margin: 0 0 12px;
}


/* ── Bloco de preço ─────────────────────────────────────────────────────── */
.plan-price {
  font-size: 2rem;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.1;
  margin-bottom: 4px;
}

.plan-price-month {
  font-size: .9rem;
  color: var(--text-secondary, #64748b);
  font-weight: 500;
}

.plan-price-sub {
  font-size: .82rem;
  color: var(--text-secondary, #64748b);
  margin-top: 4px;
}


/* ── Features ───────────────────────────────────────────────────────────── */
.plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.plan-features li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: .92rem;
  color: var(--text-secondary, #475569);
  line-height: 1.5;
}

.plan-check {
  color: var(--green, #10a5b9);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}


/* ── CTA ────────────────────────────────────────────────────────────────── */
.plan-cta {
  display: block;
  text-align: center;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: .95rem;
  font-weight: 700;
  text-decoration: none;
  transition: all .2s ease;
  margin-top: auto;
}

.plan-cta-primary {
  background: var(--gradient-1, linear-gradient(135deg, #1d7cb4, #3f70da));
  color: #fff !important;
  box-shadow: 0 8px 20px rgba(58, 195, 237, .35);
}

.plan-cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(58, 195, 237, .5);
}

.plan-cta-secondary {
  background: transparent;
  color: var(--primary, #0d4fc4) !important;
  border: 2px solid var(--primary, #0d4fc4);
}

.plan-cta-secondary:hover {
  background: var(--primary, #0d4fc4);
  color: #fff !important;
}


/* ╔═══════════════════════════════════════════════════════════════════════╗
 * ║ CARD DESTACADO (Sellerion padrão)                                      ║
 * ╚═══════════════════════════════════════════════════════════════════════╝ */

.plan-card-featured {
  border: 2px solid var(--secondary, #3ac3ed);
  background: linear-gradient(180deg, #ffffff 0%, #f0f9ff 100%);
  box-shadow: 0 20px 50px rgba(58, 195, 237, .2);
  position: relative;
  z-index: 2;
}

@media (min-width: 769px) {
  .plan-card-featured {
    transform: scale(1.04);
  }
  .plan-card-featured:hover {
    transform: scale(1.04) translateY(-6px);
  }
}

.plan-card-featured .plan-price {
  background: var(--gradient-1, linear-gradient(135deg, #1d7cb4, #3f70da));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 2.25rem;
}


/* ── Badge no topo do card destacado ────────────────────────────────────── */
.plan-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-1, linear-gradient(135deg, #1d7cb4, #3f70da));
  color: #fff;
  padding: 6px 18px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
  z-index: 3;
}

/* Estado PROMO: badge muda de cor */
.plan-card-featured.is-promo .plan-badge {
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  box-shadow: 0 4px 12px rgba(245, 158, 11, .35);
}


/* ╔═══════════════════════════════════════════════════════════════════════╗
 * ║ PROMO — preço antigo riscado + desconto + box vagas                   ║
 * ╚═══════════════════════════════════════════════════════════════════════╝ */

.plan-old-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 4px;
}

.plan-old-amount {
  font-size: .9rem;
  color: #94a3b8;
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

.plan-discount-badge {
  background: #fef3c7;
  color: #854f0b;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: .7rem;
  font-weight: 700;
}

/* Quando promo ativa, o preço fica laranja (mais urgência) */
.plan-card-featured.is-promo .plan-price {
  background: linear-gradient(135deg, #ea580c, #c2410c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}


/* ── Box de vagas (só aparece se promo ativa) ──────────────────────────── */
.plan-slots-box {
  background: #fef3c7;
  border-radius: 10px;
  padding: 12px 14px;
  margin-top: 14px;
}

.plan-slots-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .82rem;
  color: #854f0b;
  margin-bottom: 8px;
  font-weight: 500;
}

.plan-slots-header strong {
  font-weight: 700;
}

.plan-slots-icon {
  font-size: 1rem;
}

.plan-slots-bar {
  height: 6px;
  background: rgba(133, 79, 11, .18);
  border-radius: 999px;
  overflow: hidden;
}

.plan-slots-fill {
  height: 100%;
  background: linear-gradient(90deg, #f59e0b, #ea580c);
  border-radius: 999px;
  transition: width .8s cubic-bezier(.4, 0, .2, 1);
}


/* ╔═══════════════════════════════════════════════════════════════════════╗
 * ║ RESPONSIVIDADE                                                         ║
 * ╚═══════════════════════════════════════════════════════════════════════╝ */

@media (max-width: 768px) {
  .plan-card {
    padding: 24px 20px;
  }

  .plan-card-featured {
    order: -1;  /* Destaque vai pro topo no mobile */
  }

  .plan-price {
    font-size: 1.75rem;
  }

  .plan-card-featured .plan-price {
    font-size: 2rem;
  }

  .plans-section {
    padding: 3rem 0 4rem;
  }
}

@media (max-width: 480px) {
  .plan-card {
    padding: 22px 18px;
  }

  .plan-name {
    font-size: 1rem;
  }

  .plan-price {
    font-size: 1.6rem;
  }

  .plan-card-featured .plan-price {
    font-size: 1.85rem;
  }

  .plan-features li {
    font-size: .88rem;
  }

  .plan-badge {
    font-size: .65rem;
    padding: 5px 14px;
  }
}

/* ── Acessibilidade ─────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .plan-card,
  .plan-slots-fill {
    transition: none !important;
  }
}