/* ===================================
   PRICING PAGE STYLES
   =================================== */

/* Page Hero */
.page-hero {
  padding: 120px 0 80px;
  text-align: center;
  background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 50%, #ecfdf5 100%);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 50%, rgba(16, 185, 129, 0.15) 0%, transparent 50%),
              radial-gradient(circle at 80% 80%, rgba(16, 185, 129, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.page-hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: #6b7280;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
}

/* Billing Toggle */
.billing-toggle {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  background: white;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  position: relative;
  z-index: 1;
}

.toggle-label {
  font-weight: 600;
  color: #9ca3af;
  transition: color 0.3s ease;
  font-size: 1rem;
}

.toggle-label.active {
  color: var(--color-primary);
}

.save-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: white;
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  margin-left: 0.5rem;
  font-weight: 700;
  animation: pulse 2s ease-in-out infinite;
}

/* Switch Toggle */
.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 32px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #e5e7eb;
  transition: 0.4s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 24px;
  width: 24px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

input:checked + .slider {
  background-color: var(--color-primary);
}

input:checked + .slider:before {
  transform: translateX(28px);
}

/* Pricing Section */
.pricing-section {
  padding: 80px 0;
  background: white;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Pricing Card */
.pricing-card {
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 20px;
  padding: 2.5rem 2rem;
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}

.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
  border-color: var(--color-primary);
}

/* Featured Card */
.pricing-card.featured {
  border: 3px solid var(--color-primary);
  background: linear-gradient(135deg, #f0fdf4 0%, white 100%);
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.2);
  transform: scale(1.05);
}

.pricing-card.featured:hover {
  transform: scale(1.05) translateY(-8px);
}

.popular-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.875rem;
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3);
}

/* Plan Header */
.plan-header {
  margin-bottom: 2rem;
  text-align: center;
}

.plan-header h3 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--color-text-primary);
}

.plan-description {
  color: #6b7280;
  font-size: 1rem;
}

/* Plan Price */
.plan-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  margin-bottom: 1rem;
}

.currency {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text-secondary);
  margin-right: 0.25rem;
}

.amount {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--color-text-primary);
  line-height: 1;
}

.amount.hidden {
  display: none;
}

.period {
  font-size: 1.125rem;
  color: #6b7280;
  margin-left: 0.25rem;
}

.currency-label {
  text-align: center;
  font-size: 0.75rem;
  color: #9ca3af;
  margin-top: -0.5rem;
  margin-bottom: 1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.annual-note {
  text-align: center;
  color: #6b7280;
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
  min-height: 20px;
}

.annual-note.hidden {
  display: none;
}

/* Plan Button */
.btn-plan {
  width: 100%;
  padding: 1rem 2rem;
  border-radius: 12px;
  border: 2px solid var(--color-primary);
  background: white;
  color: var(--color-primary);
  font-weight: 700;
  font-size: 1.125rem;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 2rem;
}

.btn-plan:hover {
  background: var(--color-primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(16, 185, 129, 0.3);
}

.btn-plan.primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: white;
  border: none;
}

.btn-plan.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.4);
}

/* Plan Features */
.plan-features {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.plan-features h4 {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-secondary);
  margin-bottom: 1rem;
}

.plan-features ul {
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding: 0.5rem 0;
}

.plan-features li img {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  filter: invert(48%) sepia(79%) saturate(2476%) hue-rotate(115deg) brightness(90%) contrast(101%);
}

.plan-features li span {
  color: var(--color-text-secondary);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.plan-features li strong {
  color: var(--color-text-primary);
  font-weight: 700;
}

.plan-features li.extra-feature {
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}

.plan-features li.extra-feature span {
  font-size: 0.875rem;
  color: var(--color-gray-600);
}

/* Enterprise CTA */
.enterprise-cta {
  margin-top: 4rem;
  background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
  border: 2px solid #e5e7eb;
  border-radius: 20px;
  padding: 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.enterprise-content h3 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--color-text-primary);
}

.enterprise-content p {
  color: #6b7280;
  font-size: 1.125rem;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.btn-large {
  font-size: 1.125rem;
  padding: 1rem 2.5rem;
}

.enterprise-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.enterprise-feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.enterprise-feature span {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
}

.enterprise-feature span img {
  width: 100%;
  height: 100%;
  filter: brightness(0) saturate(100%) invert(55%) sepia(71%) saturate(2815%) hue-rotate(122deg) brightness(102%) contrast(95%);
}

.enterprise-feature strong {
  font-weight: 700;
  color: var(--color-text-primary);
}

/* Comparison Table */
.comparison-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #f9fafb 0%, white 100%);
}

.comparison-section h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 3rem;
  color: var(--color-text-primary);
}

.comparison-table-wrapper {
  overflow-x: auto;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.comparison-table {
  width: 100%;
  background: white;
  border-collapse: collapse;
  min-width: 800px;
}

.comparison-table thead {
  background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
}

.comparison-table th {
  padding: 1.5rem 1rem;
  text-align: center;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--color-text-primary);
  border-bottom: 2px solid #e5e7eb;
}

.comparison-table th:first-child {
  text-align: left;
  padding-left: 2rem;
}

.comparison-table .featured-col {
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
  position: relative;
}

.comparison-table .featured-col::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
}

.comparison-table tbody tr {
  border-bottom: 1px solid #f3f4f6;
  transition: background 0.2s ease;
}

.comparison-table tbody tr:hover {
  background: #fafafa;
}

.comparison-table td {
  padding: 1.25rem 1rem;
  text-align: center;
  color: var(--color-text-secondary);
  font-size: 0.9375rem;
}

.comparison-table td:first-child {
  text-align: left;
  padding-left: 2rem;
  font-weight: 600;
  color: var(--color-text-primary);
}

.comparison-table .featured-col {
  background: rgba(240, 253, 244, 0.3);
}

.table-yes {
  color: var(--color-primary);
  font-weight: 700;
  font-size: 1.25rem;
}

.table-no {
  color: var(--color-gray-400);
  font-weight: 400;
  font-size: 1.25rem;
}

/* FAQ Section */
.faq-section {
  padding: 80px 0;
  background: white;
}

.faq-section h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 3rem;
  color: var(--color-text-primary);
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.faq-item {
  background: #f9fafb;
  padding: 2rem;
  border-radius: 12px;
  border-left: 4px solid var(--color-primary);
  transition: all 0.3s ease;
}

.faq-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.faq-item h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--color-text-primary);
}

.faq-item p {
  color: #6b7280;
  line-height: 1.6;
  font-size: 0.9375rem;
}

.faq-item a {
  color: var(--color-primary);
  text-decoration: underline;
  font-weight: 600;
}

/* Trust Section */
.trust-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
}

.trust-section h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 3rem;
  color: var(--color-text-primary);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.trust-card {
  background: white;
  padding: 2.5rem 2rem;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.trust-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.trust-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-primary) 100%);
  border-radius: var(--radius-xl);
  padding: 1rem;
}

.trust-icon img {
  width: 100%;
  height: 100%;
  filter: brightness(0) invert(1);
}

.trust-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--color-text-primary);
}

.trust-card p {
  color: #6b7280;
  line-height: 1.6;
  font-size: 0.9375rem;
}

/* Final CTA */
.final-cta {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}

.final-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 70% 80%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.final-cta h2 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.final-cta > p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.95;
  position: relative;
  z-index: 1;
}

.final-cta .btn-primary {
  background: white;
  color: var(--color-primary);
  border: none;
  font-size: 1.25rem;
  padding: 1.25rem 3rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 1;
}

.final-cta .btn-primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.cta-note {
  margin-top: 1.5rem;
  font-size: 0.875rem;
  opacity: 0.9;
  position: relative;
  z-index: 1;
}

/* Responsive */
@media (max-width: 1024px) {
  .page-hero h1 {
    font-size: 2.75rem;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 450px;
  }

  .pricing-card.featured {
    transform: scale(1);
  }

  .pricing-card.featured:hover {
    transform: translateY(-8px);
  }

  .enterprise-cta {
    grid-template-columns: 1fr;
  }

  .comparison-section h2,
  .faq-section h2,
  .trust-section h2 {
    font-size: 2rem;
  }

  .final-cta h2 {
    font-size: 2.25rem;
  }
}

@media (max-width: 768px) {
  .page-hero {
    padding: 100px 0 60px;
  }

  .page-hero h1 {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .billing-toggle {
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
  }

  .save-badge {
    display: block;
    margin-left: 0;
    margin-top: 0.25rem;
  }

  .pricing-section,
  .comparison-section,
  .faq-section,
  .trust-section {
    padding: 60px 0;
  }

  .enterprise-cta {
    padding: 2rem;
  }

  .enterprise-features {
    grid-template-columns: 1fr;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 1rem 0.75rem;
    font-size: 0.875rem;
  }

  .comparison-table th:first-child,
  .comparison-table td:first-child {
    padding-left: 1rem;
  }

  .final-cta {
    padding: 80px 0;
  }

  .final-cta h2 {
    font-size: 1.75rem;
  }

  .final-cta > p {
    font-size: 1rem;
  }

  .final-cta .btn-primary {
    font-size: 1rem;
    padding: 1rem 2rem;
  }
}

/* Animations */
@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}
