/* Pricing Section Styles */
.pricing-section {
  padding: 5rem 2rem;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.pricing-container {
  max-width: 1200px;
  margin: 0 auto;
}

.pricing-header {
  text-align: center;
  margin-bottom: 4rem;
}

.pricing-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.pricing-header p {
  font-size: 1.125rem;
  color: #64748b;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.pricing-card {
  background: white;
  border-radius: 24px;
  padding: 3rem 2.5rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  max-width: 480px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.pricing-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
}

.pricing-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  color: #1e40af;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 2rem;
  border: 1px solid rgba(37, 99, 235, 0.1);
}

.pricing-badge::before {
  content: '✨';
  font-size: 1rem;
}

.pricing-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.5rem;
}

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

.pricing-cost {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}

.pricing-amount {
  font-size: 3rem;
  font-weight: 700;
  color: #1e293b;
  line-height: 1;
}

.pricing-currency {
  font-size: 1.5rem;
  font-weight: 600;
  color: #64748b;
}

.pricing-period {
  font-size: 1rem;
  color: #64748b;
  font-weight: 500;
}

.pricing-features {
  list-style: none;
  margin-bottom: 2.5rem;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 1rem;
  color: #374151;
  line-height: 1.6;
}

.pricing-features li:last-child {
  margin-bottom: 0;
}

.feature-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.feature-check::after {
  content: '✓';
  color: white;
  font-size: 12px;
  font-weight: 600;
}

/* Make the entire Coming Soon feature look lighter */
.coming-soon-feature {
  position: relative;
  padding-right: 100px; /* Space for badge */
  color: #9ca3af; /* Lighter grey for the full line */
}

/* Keep the check icon a bit faded too */
.coming-soon-feature .feature-check {
  background: linear-gradient(135deg, #d1d5db 0%, #9ca3af 100%);
}

/* Lighter grey "Coming Soon" badge text */
.coming-soon-badge {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: #cbd5e1; /* Light grey text for badge */
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.2rem 0;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

/* Badge dot can stay orange or be muted */
.coming-soon-badge::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f59e0b; /* Keep orange for visibility */
  margin-right: 0.25rem;
}

/* Animation for subtle pulse effect */
@keyframes subtlePulse {
  0% { opacity: 0.9; }
  50% { opacity: 1; }
  100% { opacity: 0.9; }
}

.coming-soon-badge {
  animation: subtlePulse 3s ease-in-out infinite;
}

.pricing-cta {
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 16px;
  font-size: 1.125rem;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.pricing-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s;
}

.pricing-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 25px -5px rgba(37, 99, 235, 0.4);
}

.pricing-cta:hover::before {
  left: 100%;
}

.pricing-cta:active {
  transform: translateY(0);
}

.pricing-guarantee {
  text-align: center;
  margin-top: 2rem;
  color: #64748b;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}



/* Mobile Responsiveness */
@media (max-width: 768px) {
  .pricing-section {
    padding: 3rem 1rem;
  }

  .pricing-header h2 {
    font-size: 2rem;
  }

  .pricing-header p {
    font-size: 1rem;
  }

  .pricing-card {
    padding: 2rem 1.5rem;
    margin: 0 1rem;
  }

  .pricing-amount {
    font-size: 2.5rem;
  }

  .pricing-currency {
    font-size: 1.25rem;
  }
}

/* Animation */
.pricing-card {
  animation: fadeInUp 0.6s ease-out;
}

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

.pricing-features li {
  animation: fadeInLeft 0.6s ease-out forwards;
  opacity: 0;
}

.pricing-features li:nth-child(1) { animation-delay: 0.2s; }
.pricing-features li:nth-child(2) { animation-delay: 0.3s; }
.pricing-features li:nth-child(3) { animation-delay: 0.4s; }
.pricing-features li:nth-child(4) { animation-delay: 0.5s; }
.pricing-features li:nth-child(5) { animation-delay: 0.6s; }

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.pricing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 30px;
  padding: 8px 16px;
  background: #f5f7fa; /* Light grey background */
  border-radius: 50px;
  width: fit-content;
  margin: 0 auto 30px auto;
  border: 1px solid #e2e8f0; /* Subtle border */
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.toggle-option {
  color: #64748b; /* Medium grey for inactive */
  font-weight: 500;
  font-size: 16px;
  transition: all 0.3s ease;
  cursor: pointer;
  padding: 8px 16px;
  border-radius: 20px;
  position: relative;
  z-index: 2;
}

.toggle-option.active {
  color: #2563eb; /* Vibrant purple-blue */
  background: white;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(79, 70, 229, 0.15);
}

.toggle-switch {
  position: relative;
  width: 60px;
  height: 32px;
  background: linear-gradient(145deg, #e2e8f0, #f1f5f9); /* Keep the subtle grey gradient for inactive state */
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid #cbd5e1;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

.toggle-switch::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  transition: transform 0.3s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  background: linear-gradient(145deg, #ffffff, #f8fafc); /* Keep the white knob gradient */
}

.toggle-switch.annual::before {
  transform: translateX(28px);
}

/* Updated active state with your blue */
.toggle-switch.active {
  background: linear-gradient(145deg, #3b82f6, #2563eb); /* From lighter blue to your brand blue */
  border-color: #1d4ed8; /* Slightly darker border for contrast */
}

/* Optional: Add a more vibrant active state when hovered */
.toggle-switch.active:hover {
  background: linear-gradient(145deg, #2563eb, #1e40af); /* Deeper blue gradient on hover */
}

.savings-badge {
  background: linear-gradient(145deg, #10b981, #059669);
  color: white;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 12px;
  margin-left: 8px;
  animation: pulse 2s infinite;
  box-shadow: 0 2px 4px rgba(16, 185, 129, 0.2);
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}
/* Keep the whole control contained */
.pricing-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
  overflow: hidden;            /* clip highlight/bubble */
  position: relative;          /* for your ::after */
}

/* Options sit inline; don't wrap */
.pricing-toggle .toggle-option {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  min-width: 0;                /* allow text to shrink if needed */
  position: relative;
  z-index: 2;                  /* above the ::after highlight */
}

/* Make sure the switch itself doesn't stretch */
.pricing-toggle .toggle-switch {
  flex: 0 0 auto;              /* no grow, no shrink */
}

/* Badge stays on one line and can shrink */
.pricing-toggle .savings-badge {
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 9999px;
  line-height: 1;
  background: #22c55e;
  color: #fff;
  display: inline-block;
  white-space: nowrap;         /* never wrap inside the pill */
  font-size: clamp(10px, 2.8vw, 12px); /* scale down on small screens */
}

/* Tighten spacing and text at very small widths */
@media (max-width: 360px) {
  .pricing-toggle { gap: 6px; }
  .pricing-toggle .toggle-option { font-size: 14px; }
}

/* On ultra-narrow screens, shorten the badge label to prevent overflow */
@media (max-width: 330px) {
  .pricing-toggle .savings-badge { letter-spacing: 0; }
  .pricing-toggle .savings-badge::after { content: "20%"; }
  .pricing-toggle .savings-badge { color: transparent; }
  .pricing-toggle .savings-badge::after {
    color: #fff;               /* show only "20%" */
    position: relative;
  }
}

/* Keep the control on one line and allow inner content to shrink */
.pricing-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
  max-width: 100%;
  overflow: hidden;   /* clips any glow without causing wrap */
  position: relative;
}

/* Options: never wrap the label + badge */
.pricing-toggle .toggle-option {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  min-width: 0;       /* allow content to shrink if needed */
  padding: 8px 12px;  /* a bit tighter than desktop */
}

/* Badge: never wrap inside the pill */
.pricing-toggle .savings-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 9999px;
  line-height: 1;
  white-space: nowrap;            /* important */
  background: #22c55e;
  color: #fff;
  font-weight: 700;
  font-size: clamp(10px, 2.8vw, 12px);
}

/* Default to showing the long label, hide the short one */
.savings-badge .full { display: inline; }
.savings-badge .short { display: none; }

/* Tight mode: shrink spacing and text further */
@media (max-width: 360px) {
  .pricing-toggle { gap: 6px; padding: 6px 10px; }
  .pricing-toggle .toggle-option { padding: 6px 10px; font-size: 14px; }
}

/* Ultra-tight: swap to "20%" label so it never wraps */
@media (max-width: 330px) {
  .savings-badge .full { display: none; }
  .savings-badge .short { display: inline; }
}

/* Annual billing note */
.annual-note {
  text-align: center;
  color: #10b981;              /* green tone for emphasis */
  font-weight: 500;
  margin-bottom: 20px;
  display: none;               /* hidden by default */
  transition: opacity 0.3s ease;
}

.annual-note.show {
  display: block;              /* only show when .show class is added */
  opacity: 1;
}

.powered-by-stripe {
  display: flex;
  justify-content: center; /* centers horizontally */
  margin-top: 12px; /* space above the logo */
}

.powered-by-stripe img {
  width: 120px;  /* adjust size */
  height: auto;
}
