.pricing-hero {
  background: linear-gradient(135deg, var(--color-bg) 0%, #e8f4f8 100%);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.pricing-card {
  background: var(--color-white);
  border-radius: var(--border-radius);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.pricing-card.featured {
  border-color: var(--color-accent);
}

.pricing-card.featured::before {
  content: 'Most Popular';
  position: absolute;
  top: 1rem;
  right: -2.5rem;
  background: var(--color-accent);
  color: white;
  padding: 0.25rem 3rem;
  transform: rotate(45deg);
  font-size: 0.75rem;
  font-weight: 600;
}

.pricing-card h3 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
  color: var(--color-primary);
}

.tier-description {
  color: var(--color-text-light);
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
}

.price {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--color-primary);
  margin: 1.5rem 0;
}

.price-period {
  font-size: 1rem;
  color: var(--color-text-light);
  font-weight: 400;
}

.features-list {
  list-style: none;
  margin: 2rem 0;
  flex: 1;
}

.features-list li {
  padding: 0.75rem 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
}

.features-list li::before {
  content: '✓';
  color: var(--color-accent);
  font-weight: bold;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.pricing-card .btn {
  width: 100%;
  margin-top: auto;
}

.billing-toggle {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin: 2rem 0;
}

.toggle-label {
  font-weight: 500;
  color: var(--color-text);
}

.discount-badge {
  background: var(--color-accent);
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-left: 0.5rem;
}

.toggle-switch {
  position: relative;
  width: 60px;
  height: 30px;
  background: var(--color-border);
  border-radius: 30px;
  cursor: pointer;
  transition: var(--transition);
}

.toggle-switch:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.toggle-switch.active {
  background: var(--color-accent);
}

.toggle-switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  background: white;
  border-radius: 50%;
  transition: var(--transition);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-switch.active::after {
  left: 33px;
}

.calculator-section {
  background: var(--color-bg);
}

.calculator-card {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
}

.calculator-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.slider-container {
  padding: 1.5rem;
  background: var(--color-bg);
  border-radius: var(--border-radius);
}

.slider-container label {
  display: block;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--color-primary);
}

.slider-container input[type="range"] {
  width: 100%;
  height: 6px;
  background: var(--color-border);
  border-radius: 3px;
  outline: none;
  -webkit-appearance: none;
}

.slider-container input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  background: var(--color-accent);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.slider-container input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: var(--color-accent);
  border-radius: 50%;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.slider-description {
  font-size: 0.875rem;
  color: var(--color-text-light);
  margin-top: 0.5rem;
}

.cost-breakdown {
  background: var(--color-bg);
  padding: 1.5rem;
  border-radius: var(--border-radius);
}

.cost-row {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--color-border);
}

.cost-row:last-child {
  border-bottom: none;
}

.cost-row.total {
  border-top: 2px solid var(--color-primary);
  padding-top: 1rem;
  margin-top: 0.5rem;
  font-size: 1.25rem;
}

.api-pricing-table {
  overflow-x: auto;
  margin: 2rem 0;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

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

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

.comparison-table tr:hover {
  background: rgba(0, 0, 0, 0.02);
}

.comparison-table small {
  color: var(--color-text-light);
  font-size: 0.875rem;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.faq-item {
  padding: 1.5rem;
  background: var(--color-white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.faq-item:hover {
  box-shadow: var(--shadow-md);
}

.faq-item h3 {
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
  color: var(--color-primary);
}

.faq-item p {
  font-size: 0.9375rem;
  line-height: 1.6;
  margin: 0;
}

.pricing-preview-grid {
  margin: 2rem 0;
}

.pricing-preview-card {
  text-align: center;
}

.pricing-preview-card .price {
  font-size: 2.5rem;
  margin: 1rem 0;
}

.pricing-preview-card .features-list {
  margin: 1.5rem 0;
}

.pricing-preview-card .features-list li {
  font-size: 0.875rem;
  padding: 0.5rem 0;
}

.pricing-preview-card .btn {
  margin-top: 1rem;
}

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

  .calculator-grid {
    grid-template-columns: 1fr;
  }

  .faq-grid {
    grid-template-columns: 1fr;
  }

  .pricing-card {
    padding: 1.5rem;
  }

  .price {
    font-size: 2.5rem;
  }

  .calculator-card {
    padding: 1rem;
  }

  .slider-container {
    padding: 1rem;
  }
}
