/* Professional Pricing Page Styling */

/* Fix iOS Safari double-tap issue */
* {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

/* Disable hover effects on touch devices */
@media (hover: none) and (pointer: coarse) {
  .pricing-card:hover,
  .pricing-button:hover,
  .pricing-feature-list li:hover,
  .faq-item:hover,
  .faq-question:hover {
    transform: none !important;
    box-shadow: initial !important;
    background: initial !important;
    color: initial !important;
    opacity: initial !important;
  }
}

/* Reduce default theme spacing for pricing page */
.section .content {
  margin-bottom: 0 !important;
}

.section {
  padding-bottom: 0 !important;
}

/* Target the main section wrapper specifically for pricing page */
body .section:has(.pricing-hero),
body .section .content:has(.pricing-hero) {
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}

/* Make sections break out to full width */
.pricing-hero,
.pricing-section,
.faq-section {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
}

/* Ensure containers inside sections are properly centered */
.pricing-hero .container,
.pricing-section .container,
.faq-section .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Hero Section */
.pricing-hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 2.5rem 0 0.5rem 0;
  position: relative;
  overflow: hidden;
  color: white;
  text-align: center;
  border-radius: 1rem 1rem 0 0;
}

.pricing-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
}

.pricing-hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.pricing-hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.pricing-hero-subtitle {
  font-size: 1.4rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  font-weight: 400;
}

.pricing-hero-description {
  font-size: 1.1rem;
  opacity: 0.8;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
}

/* Enhanced section styling */
.pricing-section {
  padding: 4rem 0 5rem 0;
  position: relative;
  background: #ffffff;
  overflow: visible;
}

/* Give FAQ section a subtle grey background for alternation */
.faq-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  padding: 5rem 0;
}

.pricing-section .container {
  overflow: visible;
}

.pricing-section .columns {
  overflow: visible;
}

.pricing-section .column {
  overflow: visible;
}

.pricing-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="rgba(102, 126, 234, 0.02)"/></svg>');
  pointer-events: none;
}

/* Professional pricing card design */
.pricing-card {
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  border: none;
  border-radius: 24px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  height: 100%;
  position: relative;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin-top: 30px;
}

.pricing-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.pricing-card.featured {
  transform: scale(1.05);
  border: 2px solid #667eea;
  box-shadow: 0 15px 40px rgba(102, 126, 234, 0.2);
}

.pricing-card.featured:hover {
  transform: translateY(-12px) scale(1.07);
  box-shadow: 0 30px 60px rgba(102, 126, 234, 0.25);
}

.pricing-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--card-accent, #667eea), var(--card-accent-secondary, #764ba2));
}

.pricing-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
  pointer-events: none;
  border-radius: 24px;
}

/* Card header improvements */
.pricing-card-header {
  padding: 2.5rem 2rem 1.5rem;
  background: linear-gradient(135deg, var(--card-bg, #f8f9fa) 0%, var(--card-bg-secondary, #ffffff) 100%);
  position: relative;
  text-align: center;
}

.pricing-card-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2rem;
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
}

.pricing-card.featured .pricing-card-icon {
  background: linear-gradient(135deg, #ff6b6b, #ee5a24);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.pricing-card-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 0.5rem;
  letter-spacing: -0.025em;
}

.pricing-card-description {
  color: #718096;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.pricing-card-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  margin-bottom: 1rem;
}

.pricing-card-currency {
  font-size: 1.5rem;
  font-weight: 600;
  color: #4a5568;
}

.pricing-card-amount {
  font-size: 3.5rem;
  font-weight: 800;
  color: #1a202c;
  line-height: 1;
  margin: 0 0.25rem;
}

.pricing-card-period {
  font-size: 1.1rem;
  color: #718096;
  font-weight: 500;
}

/* Card content improvements */
.pricing-card-content {
  padding: 2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.pricing-card-stats {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

.pricing-stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid #e2e8f0;
}

.pricing-stat:last-child {
  border-bottom: none;
}

.pricing-stat-label {
  color: #4a5568;
  font-weight: 500;
}

.pricing-stat-value {
  color: #1a202c;
  font-weight: 700;
  font-size: 1.1rem;
}

.pricing-features {
  margin-bottom: 2rem;
  flex-grow: 1;
}

.pricing-features-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #1a202c;
  margin-bottom: 1rem;
  text-align: center;
}

.pricing-feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pricing-feature-list li {
  padding: 0.75rem 0;
  color: #4a5568;
  font-size: 1rem;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
  border-radius: 8px;
  padding-left: 1rem;
  margin: 0.25rem -1rem;
}

.pricing-feature-list li:hover {
  color: #2d3748;
  background: rgba(102, 126, 234, 0.05);
  transform: translateX(4px);
}

.pricing-feature-list li i {
  margin-right: 1rem;
  width: 20px;
  flex-shrink: 0;
  font-size: 1.1rem;
  color: #10b981;
}

.pricing-button {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  border-radius: 12px;
  color: white;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
  display: block;
  margin-top: auto;
}

.pricing-button:hover {
  background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
  color: white;
  text-decoration: none;
}

.pricing-card.featured .pricing-button {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

.pricing-card.featured .pricing-button:hover {
  background: linear-gradient(135deg, #ff5252 0%, #d63031 100%);
  box-shadow: 0 8px 25px rgba(255, 107, 107, 0.6);
}

/* Featured badge */
.featured-badge {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
  color: white;
  padding: 0.6rem 1.8rem;
  border-radius: 25px;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
  z-index: 1000;
  white-space: nowrap;
}

.featured-badge-external {
  text-align: center;
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
  color: white;
  padding: 0.6rem 1.8rem;
  border-radius: 25px;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
  margin: 0 auto 0 auto;
  display: block;
  width: fit-content;
  white-space: nowrap;
}

/* FAQ Section */
.faq-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  padding: 5rem 0;
}

.faq-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 3rem;
  position: relative;
}

.faq-title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #667eea, #764ba2);
  border-radius: 2px;
}

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

.faq-item:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.faq-question {
  padding: 1.5rem 2rem;
  font-weight: 600;
  color: #1a202c;
  cursor: pointer;
  transition: color 0.3s ease;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  font-size: 1.1rem;
}

.faq-question:hover {
  color: #667eea;
}

.faq-answer {
  padding: 0 2rem 1.5rem;
  color: #4a5568;
  line-height: 1.6;
}

/* Color schemes for different plans */
.plan-free {
  --card-bg: #e2e8f0;
  --card-bg-secondary: #f7fafc;
  --card-accent: #718096;
  --card-accent-secondary: #a0aec0;
}

.plan-basic {
  --card-bg: #e6fffa;
  --card-bg-secondary: #ffffff;
  --card-accent: #10b981;
  --card-accent-secondary: #059669;
}

.plan-premium {
  --card-bg: #edf2f7;
  --card-bg-secondary: #ffffff;
  --card-accent: #667eea;
  --card-accent-secondary: #764ba2;
}

/* Responsive improvements */
@media (max-width: 1024px) {
  .pricing-section {
    padding: 4rem 0;
  }
  
  .pricing-hero-title {
    font-size: 3rem;
  }
  
  .pricing-card-header {
    padding: 2rem 1.5rem 1.25rem;
  }
  
  .pricing-card-content {
    padding: 1.5rem;
  }
}

@media (max-width: 768px) {
  .pricing-hero {
    padding: 3rem 0;
  }
  
  .pricing-hero-title {
    font-size: 2.5rem;
  }
  
  .pricing-hero-subtitle {
    font-size: 1.2rem;
  }
  
  .pricing-section {
    padding: 4rem 0 3rem 0;
  }
  
  .pricing-card {
    margin-bottom: 2rem;
    border-radius: 20px;
  }
  
  .pricing-card.featured {
    transform: none;
    margin-bottom: 2rem;
  }
  
  .pricing-card-header {
    padding: 1.5rem 1.25rem 1rem;
  }
  
  .pricing-card-content {
    padding: 1.5rem 1.25rem;
  }
  
  .pricing-card-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
  
  .pricing-card-amount {
    font-size: 2.5rem;
  }
  
  .faq-question {
    padding: 1.25rem 1.5rem;
    font-size: 1rem;
  }
  
  .faq-answer {
    padding: 0 1.5rem 1.25rem;
  }
}

/* Animation for cards */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.pricing-card {
  animation: slideInUp 0.8s ease-out forwards;
}

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

/* Loading state */
.pricing-card.loading {
  opacity: 0;
  transform: translateY(40px);
}

/* Enhanced typography */
body.loaded {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.pricing-card-title,
.pricing-hero-title,
.faq-title {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 700;
  letter-spacing: -0.025em;
}

/* Accessibility improvements */
.pricing-card:focus-within {
  outline: 3px solid #667eea;
  outline-offset: 3px;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .pricing-card,
  .pricing-card-icon,
  .pricing-button {
    transition: none !important;
    animation: none !important;
  }
  
  .pricing-card:hover,
  .pricing-card.featured {
    transform: none !important;
  }
  
  .pricing-card.featured .pricing-card-icon {
    animation: none !important;
  }
}