/*
 * Dark Matter Pricing Page Styles
 * Space-themed pricing cards with cosmic flair
 */

/* ==========================================================================
   Pricing Hero
   ========================================================================== */

.pricing-hero {
  text-align: center;
  padding: var(--dm-space-xl) 0;
  margin-bottom: var(--dm-space-lg);
}

.pricing-hero h1 {
  font-size: 3rem;
  border: none;
  margin-bottom: var(--dm-space-sm);
  background: linear-gradient(135deg, var(--dm-cyan), var(--dm-magenta));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pricing-hero .tagline {
  font-size: 1.25rem;
  color: var(--dm-muted);
  margin-bottom: 0;
}

.pricing-hero .tagline strong {
  color: var(--dm-text);
}

/* ==========================================================================
   Pricing Grid
   ========================================================================== */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--dm-space-lg);
  margin: var(--dm-space-xl) 0;
}

@media (max-width: 900px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* ==========================================================================
   Pricing Card
   ========================================================================== */

.pricing-card {
  background: var(--dm-surface);
  border: 1px solid var(--dm-border);
  border-radius: 12px;
  padding: var(--dm-space-lg);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.3s ease;
}

.pricing-card:hover {
  border-color: var(--dm-cyan);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(88, 166, 255, 0.15);
}

/* Popular card highlight */
.pricing-card.popular {
  border-color: var(--dm-magenta);
  box-shadow:
    0 0 30px rgba(247, 120, 186, 0.2),
    0 8px 30px rgba(0, 0, 0, 0.3);
}

.pricing-card.popular:hover {
  border-color: var(--dm-magenta);
  box-shadow:
    0 0 40px rgba(247, 120, 186, 0.3),
    0 12px 40px rgba(0, 0, 0, 0.3);
}

.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--dm-cyan), var(--dm-magenta));
  color: var(--dm-bg);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 16px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ==========================================================================
   Tier Header
   ========================================================================== */

.tier-header {
  text-align: center;
  margin-bottom: var(--dm-space-md);
}

.tier-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: var(--dm-space-sm);
}

.tier-name {
  font-size: 1.5rem;
  color: var(--dm-text);
  margin: 0 0 var(--dm-space-xs) 0;
}

.tier-tagline {
  color: var(--dm-muted);
  font-size: 0.9rem;
  margin: 0;
}

/* ==========================================================================
   Tier Price
   ========================================================================== */

.tier-price {
  text-align: center;
  margin-bottom: var(--dm-space-sm);
}

.tier-price .price {
  font-size: 3rem;
  font-weight: 600;
  color: var(--dm-text);
  line-height: 1;
}

.tier-price .period {
  color: var(--dm-muted);
  font-size: 1rem;
}

.annual-note {
  text-align: center;
  font-size: 0.85rem;
  color: var(--dm-green);
  margin: 0 0 var(--dm-space-md) 0;
}

/* ==========================================================================
   Tier Features
   ========================================================================== */

.tier-features {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--dm-space-lg) 0;
  flex-grow: 1;
}

.tier-features li {
  padding: var(--dm-space-sm) 0;
  border-bottom: 1px solid var(--dm-border);
  color: var(--dm-muted);
  font-size: 0.95rem;
}

.tier-features li:last-child {
  border-bottom: none;
}

.tier-features li strong {
  color: var(--dm-text);
}

/* CTA button at bottom */
.pricing-card .btn {
  width: 100%;
  text-align: center;
  margin: 0;
}

/* ==========================================================================
   Enterprise Section
   ========================================================================== */

.enterprise-section {
  text-align: center;
  padding: var(--dm-space-xl);
  background: var(--dm-surface);
  border: 1px solid var(--dm-border);
  border-radius: 12px;
  margin: var(--dm-space-xl) 0;
}

.enterprise-section h3 {
  font-size: 1.5rem;
  color: var(--dm-yellow);
  margin-top: 0;
  margin-bottom: var(--dm-space-sm);
}

.enterprise-section p {
  color: var(--dm-muted);
  max-width: 500px;
  margin: 0 auto var(--dm-space-md);
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */

.faq-item {
  margin-bottom: var(--dm-space-lg);
}

.faq-item h3 {
  color: var(--dm-text);
  font-size: 1.1rem;
  margin-top: 0;
  margin-bottom: var(--dm-space-sm);
}

.faq-item p {
  color: var(--dm-muted);
  margin: 0;
}

/* ==========================================================================
   Light Mode Adjustments
   ========================================================================== */

@media (prefers-color-scheme: light) {
  .pricing-hero h1 {
    background: linear-gradient(135deg, var(--dm-cyan), var(--dm-magenta));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }

  .pricing-card:hover {
    box-shadow: 0 8px 30px rgba(9, 105, 218, 0.15);
  }

  .pricing-card.popular {
    box-shadow:
      0 0 30px rgba(191, 57, 137, 0.15),
      0 8px 30px rgba(0, 0, 0, 0.1);
  }

  .popular-badge {
    color: #ffffff;
  }
}
