/* css/pages/planos.css */

/* ── Tokens extras ───────────────────────────────────────── */
:root {
  --primary-glow: rgba(247, 75, 75, .15);
}

/* ── Scroll suave no main (Herdado de styles.css via content-wrapper) ── */


/* ── Hero ────────────────────────────────────────────────── */
.planos-hero {
  text-align: center;
  padding: 32px 16px 0;
  /* Base: padding superior compacto; expande em 480px+ */
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-glow);
  color: var(--primary);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.planos-hero h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -.03em;
  color: var(--text);
  margin-bottom: 14px;
}

.planos-hero h1 span {
  color: var(--primary);
}

.planos-hero p {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

/* ── Toggle faturamento ──────────────────────────────────── */
.billing-toggle {
  display: inline-flex;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px;
  margin-bottom: 48px;
  position: relative;
}

.billing-option {
  padding: 7px 20px;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-muted);
  transition: all .2s;
  user-select: none;
  position: relative;
}

.billing-option.active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(247, 75, 75, .35);
}

.save-badge {
  position: absolute;
  top: -10px;
  right: -4px;
  background: #22c55e;
  color: #fff;
  font-size: .6rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 999px;
}

/* ── Cards ───────────────────────────────────────────────── */
.cards-section {
  padding: 0 16px 64px;
  /* Mobile-first: padding horizontal reduzido; expandido em @media */
}

.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  /* Mobile-first: 1 coluna; multi no tablet */
  gap: 20px;
  max-width: 400px;
  margin: 0 auto;
  align-items: start;
}

.plan-card {
  background: var(--card-bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
  transition: transform .2s, box-shadow .2s;
}

.plan-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, .12);
}

.plan-card.featured {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow), 0 4px 20px rgba(0, 0, 0, .1);
  /* Mobile-first: sem elevação extra; aplicada no tablet */
  transform: none;
}

.plan-card.featured:hover {
  transform: translateY(-3px);
}

.popular-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 3px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

.plan-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  font-size: 1.2rem;
}

.plan-icon.free {
  background: rgba(100, 116, 139, .12);
}

.plan-icon.premium {
  background: var(--primary-glow);
}

.plan-icon.teams {
  background: rgba(139, 92, 246, .12);
}

.plan-name {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.plan-tagline {
  font-size: .85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.45;
}

.price-amount {
  font-size: 2.4rem;
  font-weight: 900;
  letter-spacing: -.04em;
  line-height: 1;
  color: var(--text);
}

.price-currency {
  font-size: .95rem;
  font-weight: 700;
  vertical-align: super;
  margin-right: 1px;
}

.price-period {
  font-size: .78rem;
  color: var(--text-muted);
  margin-top: 3px;
}

.price-annual {
  font-size: .75rem;
  color: #22c55e;
  font-weight: 600;
  margin-bottom: 20px;
  min-height: 16px;
}

.plan-cta {
  width: 100%;
  padding: 11px;
  border-radius: var(--radius-sm);
  font-size: .875rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all .18s;
  margin-bottom: 22px;
  font-family: inherit;
}

.plan-cta.outline {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text);
}

.plan-cta.outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.plan-cta.solid {
  background: var(--primary);
  color: #fff;
}

.plan-cta.solid:hover {
  background: #d63636;
}

.plan-cta.dark {
  background: var(--text);
  color: var(--bg);
}

.plan-cta.dark:hover {
  opacity: .85;
}

.plan-card.current-plan-highlight {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary), 0 4px 20px rgba(var(--primary-rgb), 0.15);
  transform: scale(1.02);
}

.plan-cta.btn-plan-status {
  background: transparent;
  border: 2px solid var(--border);
  color: var(--text-muted);
  cursor: default;
  box-shadow: none;
}

.plan-cta.btn-plan-status:hover {
  background: transparent;
  transform: none;
}

.plan-divider {
  height: 1px;
  background: var(--border);
  margin-bottom: 20px;
}

.features-label {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: .85rem;
  color: var(--text);
}

.feat-ok {
  color: #22c55e;
  flex-shrink: 0;
  margin-top: 1px;
}

.feat-lock {
  color: var(--border);
  flex-shrink: 0;
  margin-top: 1px;
}

/* ── Prova social ────────────────────────────────────────── */
.social-proof {
  text-align: center;
  padding: 32px 24px 48px;
  border-top: 1px solid var(--border);
}

.social-proof p {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.logo-pill {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 16px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* ── Tabela comparativa ──────────────────────────────────── */
.compare-section {
  padding: 0 16px 64px;
  /* Mobile-first: padding horizontal reduzido; expandido em @media */
}

.compare-section h2 {
  text-align: center;
  font-size: clamp(1.3rem, 2.5vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--text);
  margin-bottom: 36px;
}

.compare-table {
  max-width: 960px;
  margin: 0 auto;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.ct-head {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr;
  background: var(--card-bg);
  border-bottom: 1.5px solid var(--border);
  /* Mobile-first: scroll horizontal sempre habilitado */
  overflow-x: auto;
}

.ct-head-cell {
  padding: 16px 20px;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--text-muted);
}

.ct-head-cell.hl {
  background: var(--primary-glow);
  color: var(--primary);
}

.ct-group-label {
  padding: 11px 20px;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
}

.ct-row {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr;
  border-bottom: 1px solid var(--border);
  transition: background .13s;
  overflow-x: auto;
  /* Mobile-first: scroll horizontal sempre habilitado */
}

.ct-row:last-child {
  border-bottom: none;
}

.ct-row:hover {
  background: var(--card-bg);
}

.ct-cell {
  padding: 14px 20px;
  font-size: .85rem;
  display: flex;
  align-items: center;
  color: var(--text);
}

.ct-cell.center {
  justify-content: center;
}

.ct-cell.hl-col {
  background: rgba(247, 75, 75, .04);
}

.c-yes {
  color: #22c55e;
}

.c-no {
  color: var(--border);
}

.c-partial {
  font-size: .75rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* ── FAQ ─────────────────────────────────────────────────── */
.faq-section {
  padding: 0 16px 64px;
  /* Mobile-first: padding horizontal reduzido */
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

.faq-section h2 {
  text-align: center;
  font-size: clamp(1.3rem, 2.5vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--text);
  margin-bottom: 32px;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: .925rem;
  font-weight: 600;
  color: var(--text);
  font-family: inherit;
  gap: 14px;
}

.faq-q svg {
  flex-shrink: 0;
  transition: transform .2s;
  color: var(--text-muted);
}

.faq-item.open .faq-q svg {
  transform: rotate(180deg);
}

.faq-a {
  display: none;
  padding-bottom: 18px;
  font-size: .875rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.faq-item.open .faq-a {
  display: block;
}

/* ── CTA final ───────────────────────────────────────────── */
.cta-section {
  text-align: center;
  padding: 64px 24px;
  background: var(--primary);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(255, 255, 255, .12) 0%, transparent 70%);
  pointer-events: none;
}

.cta-section h2 {
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 900;
  letter-spacing: -.03em;
  color: #fff;
  margin-bottom: 12px;
  position: relative;
}

.cta-section p {
  color: rgba(255, 255, 255, .8);
  font-size: .975rem;
  margin-bottom: 28px;
  position: relative;
}

.cta-btns {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  position: relative;
}

.btn-cta-white {
  background: #fff;
  color: var(--primary);
  padding: 12px 28px;
  border-radius: 9px;
  font-size: .9rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: transform .15s, box-shadow .15s;
}

.btn-cta-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .2);
}

.btn-cta-outline {
  background: transparent;
  color: #fff;
  padding: 12px 28px;
  border-radius: 9px;
  font-size: .9rem;
  font-weight: 700;
  border: 2px solid rgba(255, 255, 255, .45);
  cursor: pointer;
  font-family: inherit;
}

.btn-cta-outline:hover {
  border-color: #fff;
}

/* ── Responsive — Mobile-First ────────────────────────────────────────────── */
@media (min-width: 480px) {
  .planos-hero { padding: 48px 24px 0; }
}

@media (min-width: 640px) {
  .planos-hero { padding: 60px 24px 0; }

  .cards-section,
  .compare-section {
    padding-left: 32px;
    padding-right: 32px;
  }

  .faq-section {
    padding-left: 32px;
    padding-right: 32px;
  }

  .cards-grid {
    grid-template-columns: repeat(3, 1fr);
    max-width: 1140px;
  }

  .plan-card.featured {
    transform: scale(1.02);
  }

  .plan-card.featured:hover {
    transform: scale(1.02) translateY(-3px);
  }

  .ct-head {
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  }

  .ct-row {
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  }
}