/* =============================================================================
   PRICING.CSS — Pricing Cards Grid
   ============================================================================= */

.pricing {
  padding: 100px 0 0;
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
}

/* Smooth bleed into dark testimonials below */
.pricing::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 220px;
  background: linear-gradient(to bottom, transparent 0%, rgba(13, 8, 24, 0.55) 60%, #0D0818 100%);
  pointer-events: none;
  z-index: 2;
}

.pricing::before {
  content: '';
  position: absolute;
  top: -300px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 900px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.04) 0%, rgba(139, 92, 246, 0.02) 40%, transparent 70%);
  pointer-events: none;
}

.pricing::after {
  content: '';
  position: absolute;
  bottom: -200px;
  right: -200px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(15, 211, 172, 0.03) 0%, transparent 70%);
  pointer-events: none;
}

.pricing-header {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
  z-index: 1;
}

.pricing-header .section-subtitle {
  margin: 0 auto;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  position: relative;
  z-index: 1;
  padding-bottom: 140px;
}

/* ── Stripe-style 3-column grid ── */
.fg-stripe-grid {
  grid-template-columns: repeat(3, 1fr);
  align-items: start;
}

/* ── Billing Toggle ── */
.billing-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 28px;
  background: rgba(124, 58, 237, 0.07);
  border: 1px solid rgba(124, 58, 237, 0.18);
  border-radius: 100px;
  padding: 4px;
}

.billing-btn {
  position: relative;
  padding: 8px 20px;
  border-radius: 100px;
  border: none;
  background: transparent;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.billing-btn.active {
  background: #fff;
  color: var(--text-primary);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.12);
}

.billing-save-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 100px;
  background: rgba(15, 211, 172, 0.15);
  color: #0FD3AC;
  font-size: 0.7rem;
  font-weight: 700;
}

/* ── Card ── */
.price-card {
  padding: 36px 28px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  position: relative;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.price-card:hover {
  transform: translateY(-4px);
}

/* ── Featured variant ── */
.price-card.featured {
  border-color: var(--purple);
  box-shadow: 0 4px 24px rgba(124, 58, 237, 0.15);
  background: #fff;
}

.price-card.featured::before {
  display: none; /* replaced by .plan-badge */
}

/* ── Plan badge (Stripe style "Most popular") ── */
.plan-badge {
  display: inline-block;
  margin-bottom: 16px;
  padding: 5px 14px;
  border-radius: 100px;
  background: var(--gradient-brand);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
}

/* ── Plan header block ── */
.plan-header {
  display: flex;
  flex-direction: column;
}

/* ── Inner Content ── */
.price-card .plan-name {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-primary);
}

/* Old price (legacy) */
.price-card .plan-price {
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.price-card .plan-price span {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
}

/* New Stripe-style price row */
.plan-price-row {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 4px;
}

.price-amount {
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  line-height: 1;
}

.price-custom {
  font-size: 2rem;
}

.price-period {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
}

/* Annual billing note */
.plan-annual-note {
  font-size: 0.78rem;
  color: #0FD3AC;
  font-weight: 500;
  margin-bottom: 10px;
  min-height: 1.2em;
  display: none;
}

.plan-annual-note.visible {
  display: block;
}

.price-card .plan-desc {
  font-size: 0.84rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.55;
  flex: 1;
}

/* CTA button full-width inside card */
.plan-cta {
  width: 100%;
  justify-content: center;
  margin-bottom: 0;
}

/* Plan divider */
.plan-divider {
  height: 1px;
  background: var(--border);
  margin: 24px 0 20px;
}

/* Features section label */
.plan-features-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 12px;
}

/* Feature list */
.price-card .plan-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.price-card .plan-features li {
  padding: 7px 0;
  font-size: 0.875rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(0,0,0,0.04);
}

.price-card .plan-features li:last-child {
  border-bottom: none;
}

/* Remove old ::before pseudo-element for SVG-based lists */
.price-card .plan-features li::before {
  display: none;
}

.feat-check {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--purple);
}

.feat-x {
  color: var(--text-muted);
  opacity: 0.5;
}

.feat-disabled {
  opacity: 0.45;
}

.price-card .plan-features li.disabled {
  opacity: 0.35;
}

.price-card .plan-features li.disabled::before {
  content: '—';
  color: var(--text-muted);
}

.price-card .btn {
  width: 100%;
  justify-content: center;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .fg-stripe-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }
}
