/* ============================================================
   Billing + Pricing
   ============================================================ */

.pricing-page {
  padding: 3rem 0 4rem;
}

.pricing-page-header {
  text-align: center;
  margin-bottom: 2rem;
}

.billing-toggle {
  display: inline-flex;
  background: #f3f4f6;
  padding: 0.25rem;
  border-radius: 999px;
  gap: 0.25rem;
  margin-top: 1rem;
}

.billing-toggle-btn {
  border: none;
  background: transparent;
  color: #4b5563;
  border-radius: 999px;
  padding: 0.45rem 1rem;
  cursor: pointer;
  font-weight: 600;
}

.billing-toggle-btn.is-active {
  background: #111827;
  color: white;
}

.pricing-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.billing-status-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1rem 1.25rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  background: #f9fafb;
}

.billing-status-actions {
  display: flex;
  gap: 0.5rem;
}

.upgrade-banner {
  margin-bottom: 1rem;
  padding: 0.875rem 1rem;
  border: 1px solid #bfdbfe;
  border-radius: 0.75rem;
  background: #eff6ff;
  color: #1e3a8a;
}

.upgrade-banner a {
  color: #1d4ed8;
  font-weight: 600;
}

.form-help-text {
  margin-top: 0.5rem;
  color: #6b7280;
  font-size: 0.9rem;
}

.feature-comparison {
  margin-top: 2.5rem;
}

.comparison-table-wrap {
  overflow-x: auto;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
}

.comparison-table th,
.comparison-table td {
  padding: 0.8rem;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
  white-space: nowrap;
}

.comparison-table th {
  background: #f9fafb;
}

.appsumo-section {
  margin-top: 2rem;
  padding: 1.25rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
}

.appsumo-form {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.billing-warning {
  margin-top: 1rem;
  padding: 0.875rem 1rem;
  border: 1px solid #fde68a;
  border-radius: 0.75rem;
  color: #92400e;
  background: #fffbeb;
}

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

@media (max-width: 640px) {
  .pricing-grid-4 {
    grid-template-columns: 1fr;
  }

  .billing-status-card,
  .appsumo-form,
  .billing-status-actions {
    flex-direction: column;
    align-items: flex-start;
  }
}
