/*
 * Pricing page custom styles
 *
 * This stylesheet defines a clean, modern dark themed pricing page similar
 * to the example provided by the user. It builds on top of the base
 * typography and layout defined in global.css and layout.css.
 */

/* Ensure the body takes the full height and uses a dark background */
body {
  background-color: #0d0d0d;
  color: #f5f5f5;
  font-family: Inter, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
}

/* Wrapper for pricing content */
.pricing-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 1rem;
}

/* Toggle button group */
.pricing-toggle {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

.toggle-btn {
  padding: 0.6rem 1.2rem;
  background-color: #1e1e1e;
  color: #bbb;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
}

.toggle-btn.active {
  background-color: #f5f5f5;
  color: #0d0d0d;
}

.discount-text {
  color: #5fc88a;
  font-weight: 500;
  margin-left: 0.2rem;
}

/* Category headings */
.category-heading {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  margin-top: 2rem;
  text-align: center;
  color: var(--primary-color);
  position: relative;
}

.category-heading::after {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  margin: 0.5rem auto 0;
  border-radius: 2px;
}

/* Distinguish the team category heading */
.category-heading.team {
  margin-top: 4rem;
}

/* Grid layout for plan cards */
.plans-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

/* Plan card */
.plan-card {
  background-color: #1a1a1a;
  border: 1px solid #2e2e2e;
  border-radius: 12px;
  padding: 2rem;
  width: 280px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.plan-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* Highlight variant for featured plan */
.plan-card.highlight {
  border-color: #784ffa;
}

/* Plan title */
.plan-name {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

/* Plan price line */
.plan-price {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

/* Units (e.g. /mo or /yr) */
.plan-period {
  font-size: 0.8rem;
  color: #aaa;
  margin-bottom: 1.5rem;
}

/* Features list styling */
.plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.plan-features li {
  margin-bottom: 0.6rem;
  position: relative;
  padding-left: 1.6rem;
  font-size: 0.9rem;
  color: #ddd;
}

.plan-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #5fc88a;
  font-weight: 700;
}

/* Buttons on plan cards */
.plan-button {
  display: block;
  text-align: center;
  text-decoration: none;
  padding: 0.8rem 1.2rem;
  border-radius: 8px;
  font-weight: 600;
  transition: background-color 0.3s, color 0.3s;
  cursor: pointer;
}

/* Primary button styling */
.plan-button.primary {
  background-color: #784ffa;
  color: #fff;
}

.plan-button.primary:hover {
  background-color: #6a42d1;
}

/* Secondary button styling (for custom pricing or contact) */
.plan-button.secondary {
  background-color: #2e2e2e;
  color: #bbb;
  border: 1px solid #444;
}

.plan-button.secondary:hover {
  background-color: #3b3b3b;
}