/* Subscription Plans Container */
.subscription-container {
  width: 100%;
  max-width: 1320px; /* slightly wider to accommodate 4 cards */
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.subscription-header {
  text-align: center;
  margin-bottom: 3rem;
}

.subscription-header h1 {
  font-size: 4rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 1rem;
}

.subscription-subtext {
  font-size: 1.125rem;
  color: #4b5563;
  max-width: 600px;
  margin: 0 auto;
}

.plans-container {
  display: flex;
  justify-content: center;
  gap: 1rem; /* tighter gap to fit 4 across on laptops */
  flex-wrap: wrap;
}

/* Plan Card Styles */
.plan-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  padding: 1.5rem; /* slimmer padding so four fit comfortably */
  width: auto;
  max-width: 280px; /* width tuned to allow 4 per row on ~1280px */
  flex: 0 0 280px; /* fix flex-basis so 4 fit in a row */
  box-sizing: border-box; /* include padding and border in width */
  display: flex;
  flex-direction: column;
  position: relative;
  border: 1px solid #e5e7eb;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.plan-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.plan-card.featured {
  border: 2px solid #ee3e36;
  box-shadow: 0 8px 25px rgba(238, 62, 54, 0.15);
}

.featured-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #ee3e36;
  color: white;
  padding: 0.5rem 1.25rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

/* Plan Header Styles */
.plan-header {
  margin-bottom: 1.5rem;
  text-align: center;
}

.plan-header h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 0.75rem;
}

.plan-price {
  font-size: 2.5rem;
  color: #1a1a1a;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 1rem;
}

.plan-price .currency {
  font-size: 1.5rem;
  font-weight: 500;
  vertical-align: super;
  margin-right: 0.125rem;
}

.plan-price .period {
  font-size: 1rem;
  color: #6b7280;
  font-weight: 400;
}

.plan-description {
  font-size: 0.875rem;
  color: #4b5563;
  margin-top: 0.75rem;
}

/* Plan Features Styles */
.plan-features {
  flex-grow: 1;
  margin-bottom: 1.75rem;
}

.plan-features ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
  color: #4b5563;
  font-size: 1rem;
}

.plan-features i {
  color: #ee3e36;
  font-size: 1.25rem;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

/* CTA Button */
.plan-cta {
  background: #ee3e36;
  color: white;
  border: none;
  padding: 0.875rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
  text-align: center;
  text-decoration: none;
  display: block;
}

.plan-cta:hover {
  background: #d63530;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .subscription-header h1 {
    font-size: 2.25rem;
  }

  .plan-card {
    max-width: 260px;
    flex: 0 0 260px; /* keep four across just below 1024 if space allows */
    padding: 1.75rem;
  }
}

@media (max-width: 768px) {
  .subscription-container {
    padding: 2rem 1rem;
  }

  .subscription-header {
    margin-bottom: 2rem;
  }

  .subscription-header h1 {
    font-size: 2rem;
  }

  .subscription-subtext {
    font-size: 1rem;
  }

  .plans-container {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding: 1rem 0;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    gap: 1rem;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
  }

  .plans-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
  }

  .plan-card {
    scroll-snap-align: center;
    min-width: 85%;
    max-width: 85%;
    flex-shrink: 0;
    padding: 1.25rem;
  }
}

@media (max-width: 480px) {
  .subscription-header h1 {
    font-size: 1.75rem;
  }

  .plan-features li {
    font-size: 0.9rem;
  }

  .plan-price {
    font-size: 2.25rem;
  }

  .plan-card {
    min-width: 90%;
    max-width: 90%;
    padding: 1rem;
  }
}

/* Footnote styles for AI‑assisted clarification */
.plans-footnote {
  margin-top: 2rem;
}

.plans-footnote p {
  max-width: 960px;
  margin: 0 auto;
  background: #fff5f5; /* subtle red-tinted background */
  border: 1px solid #fde2e2;
  border-left: 4px solid #ee3e36;
  color: #374151;
  padding: 1rem 1.25rem;
  border-radius: 10px;
  line-height: 1.6;
}
