/* Pricing Page Specific Styles */
.pricing-page-body {
  background: radial-gradient(circle at top, #0b1220, #020617 55%, #020617 100%);
  background-color: #020617;
  background-attachment: fixed;
  min-height: 100vh;
}

.pricing-section {
  padding: 120px 0 96px;
}

.pricing-section h2 {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.pricing-section .section-lead {
  text-align: center;
  font-size: 1.1rem;
  color: var(--text-soft);
  margin-bottom: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Global Billing Toggle */
.global-billing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 48px;
}

.toggle-label {
  font-size: 1rem;
  font-weight: 500;
  transition: color 0.2s ease;
  user-select: none;
  color: rgba(148, 163, 184, 0.6);
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 56px;
  height: 32px;
  cursor: pointer;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #1e293b;
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 16px;
  transition: 0.3s ease;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 24px;
  width: 24px;
  left: 3px;
  bottom: 3px;
  background-color: #6366f1;
  border-radius: 50%;
  transition: 0.3s ease;
}

.toggle-switch input:checked + .toggle-slider {
  background-color: #1e293b;
  border-color: rgba(99, 102, 241, 0.4);
}

.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(24px);
  background-color: #6366f1;
}

/* Update label colors based on toggle state using classes */
.global-billing-toggle.monthly .toggle-label[data-period="monthly"] {
  color: #6366f1;
}

.global-billing-toggle.monthly .toggle-label[data-period="yearly"] {
  color: rgba(148, 163, 184, 0.6);
}

.global-billing-toggle.yearly .toggle-label[data-period="monthly"] {
  color: rgba(148, 163, 184, 0.6);
}

.global-billing-toggle.yearly .toggle-label[data-period="yearly"] {
  color: #6366f1;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 48px;
}

@media (max-width: 960px) {
  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .pricing-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
}

@media (max-width: 640px) {
  .pricing-grid {
    gap: 16px;
  }

  .pricing-section {
    padding: 100px 0 64px;
  }

  .pricing-section h2 {
    font-size: 2rem;
  }

  .pricing-section .section-lead {
    font-size: 1rem;
  }
}
