/* Pricing Page Styles */

.pricing-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem 4rem;
  background: var(--bg-primary);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Header */
.pricing-header {
  text-align: center;
  margin-bottom: 2rem;
}

.pricing-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.pricing-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin: 0;
}

/* Billing Toggle */
.billing-toggle {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
  background: var(--bg-tertiary);
  padding: 0.25rem;
  border-radius: var(--radius-md);
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.billing-toggle-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}

.billing-toggle-btn:hover {
  color: var(--text-secondary);
}

.billing-toggle-btn.active {
  background: var(--bg-primary);
  color: var(--text-primary);
  box-shadow: var(--shadow-card-sm);
}

.discount-badge {
  background: linear-gradient(135deg, var(--color-success), var(--color-success-text));
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
}

/* Error Message */
.pricing-error {
  background: var(--color-error-bg);
  border: 1px solid var(--color-error-border);
  color: var(--color-error);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  text-align: center;
  margin-bottom: 1.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Pricing Cards */
.pricing-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 4rem;
}

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

.pricing-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-xl);
  padding: 2rem;
  position: relative;
  display: flex;
  flex-direction: column;
}

.pricing-card-featured {
  background: var(--bg-primary);
  border: 2px solid var(--color-primary);
  box-shadow: var(--shadow-primary-lg);
  transform: scale(1.02);
}

@media (max-width: 900px) {
  .pricing-card-featured {
    transform: none;
    order: -1;
  }
}

.popular-badge {
  position: absolute;
  top: -0.75rem;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #3245ff, #bc52ee);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 1rem;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pricing-card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 1rem;
}

.pricing-price {
  margin-bottom: 0.5rem;
}

.pricing-amount {
  font-size: 3rem;
  font-weight: 700;
  color: var(--text-primary);
}

.pricing-period {
  font-size: 1rem;
  color: var(--text-muted);
}

.pricing-savings {
  font-size: 0.875rem;
  color: var(--color-success);
  font-weight: 500;
  margin-top: 0.25rem;
}

.trial-note,
.lifetime-note {
  font-size: 0.875rem;
  color: var(--color-primary);
  font-weight: 500;
  margin-bottom: 1.5rem;
  padding: 0.5rem 0.75rem;
  background: var(--color-info-bg);
  border-radius: var(--radius-sm);
  display: inline-block;
}

.lifetime-note {
  color: var(--color-primary);
  background: var(--color-primary-light);
}

/* Features List */
.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  flex-grow: 1;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  padding: 0.5rem 0;
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.feature-icon {
  flex-shrink: 0;
  width: 1.25rem;
  text-align: center;
  font-weight: 600;
}

.feature-included .feature-icon {
  color: var(--color-success);
}

.feature-disabled {
  color: var(--text-tertiary);
}

.feature-disabled .feature-icon {
  color: var(--text-muted);
}

.feature-highlight {
  font-weight: 500;
  color: var(--text-primary);
}

/* Buttons */
.pricing-btn {
  display: block;
  width: 100%;
  padding: 0.875rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  text-align: center;
  text-decoration: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  box-sizing: border-box;
  white-space: nowrap;
}

.pricing-btn-primary {
  background: linear-gradient(135deg, #3245ff, #bc52ee);
  color: white;
}

.pricing-btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: var(--shadow-primary);
}

.pricing-btn-secondary {
  background: var(--bg-tertiary);
  color: var(--text-secondary);
}

.pricing-btn-secondary:hover:not(:disabled) {
  background: var(--bg-muted);
}

.pricing-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Comparison Table */
.pricing-comparison {
  margin-bottom: 4rem;
}

.pricing-comparison h2 {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.comparison-table-wrapper {
  overflow-x: auto;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card-sm);
}

.comparison-table th,
.comparison-table td {
  padding: 1rem 1.25rem;
  text-align: center;
  border-bottom: 1px solid var(--border-primary);
}

.comparison-table th {
  background: var(--bg-secondary);
  font-weight: 600;
  color: var(--text-secondary);
}

.comparison-table th:first-child,
.comparison-table td:first-child {
  text-align: left;
  font-weight: 500;
}

.comparison-table td.highlight {
  background: var(--color-info-bg);
  font-weight: 500;
}

.comparison-table th.highlight {
  background: var(--color-primary);
  color: white;
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

/* FAQ Section */
.pricing-faq {
  margin-bottom: 3rem;
}

.pricing-faq h2 {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2rem;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (max-width: 700px) {
  .faq-grid {
    grid-template-columns: 1fr;
  }
}

.faq-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.faq-item h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 0.75rem;
}

.faq-item p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
}

/* Trust Section */
.pricing-trust {
  text-align: center;
  padding: 1.5rem;
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
}

.pricing-trust p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.pricing-trust a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
}

.pricing-trust a:hover {
  text-decoration: underline;
}

