/* ===== PRICING SECTION ===== */
.pricing {
  position: relative;
  padding: 6rem 0;
  background: #f8f9ff;
  overflow: hidden;
}

.pricing .section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 4rem;
  position: relative;
  z-index: 2;
}

.pricing .eyebrow {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: 1rem;
  padding: 0.25rem 0.75rem;
  background: rgba(10, 132, 255, 0.1);
  border-radius: 2rem;
}

.pricing h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: #1a1a1a;
}

.pricing .section-intro {
  font-size: 1.25rem;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 3rem;
}

/* Pricing Toggle */
.pricing-toggle-container {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 3rem;
  gap: 1.5rem;
}

.pricing-toggle-label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-light);
  transition: color 0.3s ease;
  cursor: pointer;
}

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

.pricing-toggle {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 32px;
}

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

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #e0e0e0;
  transition: .4s;
  border-radius: 34px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 24px;
  width: 24px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .toggle-slider {
  background-color: var(--primary);
}

input:focus + .toggle-slider {
  box-shadow: 0 0 1px var(--primary);
}

input:checked + .toggle-slider:before {
  transform: translateX(28px);
}

/* Pricing Plans */
.pricing-plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 0 auto;
  max-width: 1200px;
  padding: 0 1rem;
}

.pricing-plan {
  background: white;
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
}

.pricing-plan.popular {
  border: 1px solid var(--primary);
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(10, 132, 255, 0.1);
}

.popular-badge {
  position: absolute;
  top: 20px;
  right: -30px;
  background: var(--primary);
  color: white;
  padding: 0.25rem 2.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  transform: rotate(45deg);
  width: 120px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(10, 132, 255, 0.3);
}

.plan-header {
  margin-bottom: 2rem;
  text-align: center;
  position: relative;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.plan-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 0.5rem;
}

.plan-description {
  font-size: 0.9375rem;
  color: var(--text-light);
  margin: 0 0 1.5rem;
}

.plan-price {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  margin-bottom: 1.5rem;
  line-height: 1;
}

.price-amount {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--primary);
  position: relative;
}

.price-currency {
  font-size: 1.5rem;
  font-weight: 600;
  margin-right: 0.25rem;
  position: relative;
  top: 0.5rem;
}

.price-period {
  font-size: 1rem;
  color: var(--text-light);
  align-self: flex-end;
  margin-bottom: 0.5rem;
  margin-left: 0.25rem;
}

.plan-features {
  margin: 0 0 2.5rem;
  padding: 0;
  list-style: none;
  flex-grow: 1;
}

.plan-features li {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 0.9375rem;
  color: var(--text);
}

.plan-features li::before {
  content: "✓";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: rgba(10, 132, 255, 0.1);
  color: var(--primary);
  border-radius: 50%;
  margin-right: 0.75rem;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.plan-features .not-included {
  color: var(--text-light);
  text-decoration: line-through;
}

.plan-features .not-included::before {
  content: "✕";
  background: rgba(0, 0, 0, 0.05);
  color: var(--text-light);
}

.plan-button {
  display: block;
  width: 100%;
  padding: 1rem;
  text-align: center;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s ease;
  margin-top: auto;
}

.plan-button.primary {
  background: var(--primary);
  color: white;
  border: 2px solid var(--primary);
}

.plan-button.primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(10, 132, 255, 0.3);
}

.plan-button.secondary {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.plan-button.secondary:hover {
  background: rgba(10, 132, 255, 0.05);
  transform: translateY(-2px);
}

/* FAQ Section */
.faq-section {
  margin-top: 6rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.faq-item {
  background: white;
  border-radius: 12px;
  margin-bottom: 1rem;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.faq-item:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 1.5rem 2rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: #1a1a1a;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s ease;
}

.faq-question:hover {
  color: var(--primary);
}

.faq-question::after {
  content: "+";
  font-size: 1.5rem;
  color: var(--primary);
  transition: transform 0.3s ease;
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 2rem;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-light);
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 0 2rem 1.5rem;
}

/* Custom Plan CTA */
.custom-plan {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: 16px;
  padding: 4rem 2rem;
  text-align: center;
  color: white;
  margin-top: 6rem;
  position: relative;
  overflow: hidden;
}

.custom-plan::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiPjxkZWZzPjxwYXR0ZXJuIGlkPSJwYXR0ZXJuIiB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHBhdHRlcm5Vbml0cz0idXNlclNwYWNlT25Vc2UiIHBhdHRlcm5UcmFuc2Zvcm09InJvdGF0ZSg0NSkiPjxyZWN0IHg9IjAiIHk9IjAiIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0icmdiYSgyNTUsMjU1LDI1NSwwLjA1KSIvPjwvcGF0dGVybj48L2RlZnM+PHJlY3Qgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgZmlsbD0idXJsKCNwYXR0ZXJuKSIvPjwvc3ZnPg==') repeat;
  opacity: 0.5;
  z-index: 0;
}

.custom-plan .container {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.custom-plan h2 {
  font-size: 2.25rem;
  margin-bottom: 1.5rem;
  color: white;
}

.custom-plan p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  line-height: 1.6;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
  .pricing-plans {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .pricing-plan.popular {
    transform: none;
  }
}

@media (max-width: 768px) {
  .pricing {
    padding: 4rem 0;
  }
  
  .pricing-plans {
    grid-template-columns: 1fr;
    max-width: 500px;
  }
  
  .pricing-toggle-container {
    flex-direction: column;
    gap: 1rem;
  }
  
  .pricing-plan {
    padding: 2rem 1.5rem;
  }
  
  .price-amount {
    font-size: 3rem;
  }
  
  .custom-plan {
    padding: 3rem 1.5rem;
    margin-top: 4rem;
  }
  
  .custom-plan h2 {
    font-size: 1.75rem;
  }
  
  .custom-plan p {
    font-size: 1.125rem;
  }
}

/* Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.pricing-plan {
  opacity: 0;
  animation: fadeInUp 0.6s ease-out forwards;
}

.pricing-plan:nth-child(1) { animation-delay: 0.1s; }
.pricing-plan:nth-child(2) { animation-delay: 0.2s; }
.pricing-plan:nth-child(3) { animation-delay: 0.3s; }
