/* ===== PRICING HERO ===== */
.pricing-hero {
  padding: 60px 24px 40px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  animation: fadeUp 1s var(--spring) forwards;
  opacity: 0;
  transform: translateY(20px);
}

.pricing-hero h1 {
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.1;
  margin-bottom: 20px;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pricing-hero p {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* ===== BILLING TOGGLE ===== */
.billing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 40px 0 20px;
}

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

.toggle-label.active {
  color: var(--primary);
}

.toggle-switch {
  width: 60px;
  height: 32px;
  background: rgba(0,0,0,0.1);
  border-radius: 40px;
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;
}

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

.toggle-slider {
  width: 28px;
  height: 28px;
  background: white;
  border-radius: 50%;
  position: absolute;
  top: 2px;
  left: 2px;
  transition: transform 0.3s var(--spring);
  box-shadow: var(--shadow-sm);
}

.toggle-switch.active .toggle-slider {
  transform: translateX(28px);
}

.save-badge {
  background: rgba(0,168,107,0.1);
  color: var(--primary);
  padding: 4px 10px;
  border-radius: 40px;
  font-size: 12px;
  font-weight: 600;
  margin-left: 8px;
}

/* ===== PRICING CARDS ===== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 24px 40px;
}

.pricing-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(0,0,0,0.02);
  transition: all 0.4s var(--spring);
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px);
}

.pricing-card.animate {
  opacity: 1;
  transform: translateY(0);
}

.pricing-card.popular {
  transform: scale(1.05) translateY(-10px);
  border: 2px solid var(--primary);
  box-shadow: 0 20px 40px rgba(0,168,107,0.15);
  z-index: 2;
}

.pricing-card.popular.animate {
  transform: scale(1.05) translateY(-10px);
}

.popular-badge {
  position: absolute;
  top: 20px;
  right: -35px;
  background: var(--primary-gradient);
  color: white;
  padding: 8px 40px;
  font-size: 14px;
  font-weight: 600;
  transform: rotate(45deg);
  box-shadow: var(--shadow-sm);
}

.card-header {
  text-align: center;
  margin-bottom: 28px;
}

.card-header h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.price {
  font-size: 48px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 8px;
}

.price span {
  font-size: 16px;
  font-weight: 400;
  color: var(--text-tertiary);
}

.period {
  color: var(--text-tertiary);
  font-size: 14px;
}

.order-limit {
  background: rgba(0,168,107,0.08);
  padding: 12px;
  border-radius: 50px;
  text-align: center;
  margin: 20px 0;
  font-weight: 600;
  color: var(--primary);
}

.order-limit i {
  margin-right: 8px;
}

.feature-list {
  list-style: none;
  margin: 24px 0;
}

.feature-list li {
  padding: 10px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-secondary);
  font-size: 15px;
  border-bottom: 1px solid rgba(0,0,0,0.03);
}

.feature-list li:last-child {
  border-bottom: none;
}

.feature-list i {
  width: 20px;
  color: var(--primary);
  font-size: 16px;
}

.feature-list .fa-circle-check {
  color: var(--primary);
}

.staff-info {
  background: rgba(0,0,0,0.02);
  padding: 16px;
  border-radius: var(--radius-md);
  margin: 20px 0;
}

.staff-info p {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 8px;
}

.staff-info p:last-child {
  margin-bottom: 0;
}

.staff-info i {
  color: var(--primary);
  width: 20px;
}

.btn-subscribe {
  display: block;
  width: 100%;
  padding: 16px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 16px;
  text-align: center;
  text-decoration: none;
  transition: all 0.2s ease;
  margin-top: 24px;
  border: none;
  cursor: pointer;
}

.btn-free {
  background: rgba(0,168,107,0.1);
  color: var(--primary);
}

.btn-free:hover {
  background: rgba(0,168,107,0.15);
}

.btn-pro {
  background: var(--primary-gradient);
  color: white;
  box-shadow: 0 4px 12px rgba(0,168,107,0.3);
}

.btn-pro:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 16px rgba(0,168,107,0.4);
}

.btn-enterprise {
  background: #1e293b;
  color: white;
}

.btn-enterprise:hover {
  background: #0f172a;
}

.btn-subscribe:active {
  transform: scale(0.98);
}

/* ===== FEATURE COMPARISON ===== */
.comparison-section {
  max-width: 1000px;
  margin: 40px auto 60px;
  padding: 0 24px;
}

.comparison-section h2 {
  font-size: 28px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 32px;
  color: var(--text-primary);
}

.comparison-grid {
  background: white;
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s var(--spring);
}

.comparison-grid.animate {
  opacity: 1;
  transform: translateY(0);
}

.comparison-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  align-items: center;
}

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

.comparison-row.header {
  font-weight: 600;
  color: var(--text-primary);
  background: rgba(0,168,107,0.02);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.comparison-feature {
  color: var(--text-secondary);
  font-size: 15px;
}

.comparison-cell {
  text-align: center;
  font-weight: 500;
}

.comparison-cell.yes {
  color: var(--primary);
}

.comparison-cell.no {
  color: var(--text-tertiary);
  opacity: 0.5;
}

/* ===== FAQ SECTION ===== */
.faq-section {
  max-width: 800px;
  margin: 0 auto 60px;
  padding: 0 24px;
}

.faq-section h2 {
  font-size: 28px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 32px;
  color: var(--text-primary);
}

.faq-item {
  background: white;
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.02);
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
}

.faq-item.animate {
  opacity: 1;
  transform: translateY(0);
}

.faq-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateX(8px);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: var(--text-primary);
  font-size: 16px;
}

.faq-question i {
  color: var(--primary);
  transition: transform 0.3s;
}

.faq-item.active .faq-question i {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
}

.faq-item.active .faq-answer {
  max-height: 200px;
  margin-top: 16px;
}

/* ===== CTA SECTION ===== */
.cta-section {
  max-width: 800px;
  margin: 0 auto 60px;
  padding: 0 24px;
  text-align: center;
}

.cta-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(0,0,0,0.02);
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s var(--spring);
}

.cta-card.animate {
  opacity: 1;
  transform: translateY(0);
}

.cta-card h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.cta-card p {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

@media (max-width: 768px) {
  .pricing-card.popular {
    transform: scale(1.02);
  }

  .pricing-card.popular.animate {
    transform: scale(1.02);
  }

  .comparison-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 16px;
  }

  .comparison-row.header {
    display: none;
  }

  .comparison-feature {
    font-weight: 600;
    color: var(--text-primary);
  }

  .comparison-cell {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .comparison-cell::before {
    content: attr(data-label);
    font-weight: 500;
    color: var(--text-tertiary);
  }

  .cta-card {
    padding: 32px 24px;
  }

  .btn-primary.outline {
    margin-left: 0;
    margin-top: 12px;
  }
}

/* Added to haptic feedback simulation */
.btn-subscribe, .toggle-switch {
  touch-action: manipulation;
}