/* ============================================================================
   PRICING CARD COMPONENT

   Pricing tier cards for Free and Premium plans with price display,
   feature lists, and call-to-action buttons.

   Purpose: Display plan options in a clear, conversion-focused layout
   that encourages users to upgrade to Premium.

   Required HTML Structure:

   <section id="pricing" class="pricing-section">
     <div class="container">
       <h2 class="section-title">Simple Pricing</h2>
       <p class="section-subtitle">Start free. Upgrade for more features.</p>

       <div class="pricing-grid">
         <!-- Free Plan -->
         <div class="pricing-card">
           <div class="pricing-card__header">
             <h3 class="pricing-card__title">Free</h3>
             <div class="pricing-card__price">
               <span class="price-amount">$0</span>
             </div>
             <p class="pricing-card__description">
               Core budgeting. Manual updates. Bring-your-own AI.
             </p>
           </div>

           <ul class="pricing-card__features">
             <li>
               <i class="fas fa-check"></i>
               <span>Budgets</span>
             </li>
             <!-- More features -->
           </ul>

           <div class="pricing-card__cta">
             <a href="#" class="pricing-btn">Get Started Free</a>
           </div>
         </div>

         <!-- Premium Plan -->
         <div class="pricing-card pricing-card--featured">
           <div class="pricing-card__badge">Most Popular</div>
           <div class="pricing-card__header">
             <h3 class="pricing-card__title">Premium</h3>
             <div class="pricing-card__price">
               <span class="price-amount">$9.99</span>
               <span class="price-period">per month • auto-renews</span>
             </div>
             <p class="pricing-card__description">
               Integrated AI, automation, and proactive insights.
             </p>
           </div>

           <ul class="pricing-card__features">
             <li>
               <i class="fas fa-check"></i>
               <span>Feature description</span>
             </li>
             <!-- More features -->
           </ul>

           <div class="pricing-card__cta">
             <a href="#" class="pricing-btn pricing-btn--featured">
               Upgrade to Premium
             </a>
           </div>
         </div>
       </div>
     </div>
   </section>

   Modifiers:
   - .pricing-card--featured    # Highlights Premium plan with badge and enhanced styling
   - .pricing-btn--featured     # Enhanced button styling for Premium CTA

   Dependencies:
   - Font Awesome (for checkmark icons)

   Features:
   - Responsive 2-column grid (stacks on mobile)
   - Glassmorphism card effect
   - Hover lift animation
   - Popular badge for featured plan
   - Clear price hierarchy
   - Icon-based feature lists

   Accessibility:
   - Semantic heading hierarchy
   - Clear price announcements for screen readers
   - High contrast for readability
   - Focus states on interactive elements

   Notes:
   - Featured plan has elevated styling to draw attention
   - Grid uses 1fr 1fr for equal-width columns
   - Feature lists use consistent icon + text pattern
   - Price periods use smaller, muted text
   ============================================================================ */

/* ===== Pricing Section ===== */

.pricing-section {
  padding: 80px 0;
  background: transparent;
  position: relative;
  overflow: hidden;
}


/* ===== Pricing Grid ===== */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
  align-items: stretch;
  justify-content: center;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}


/* ===== Pricing Card ===== */

.pricing-card {
  background: linear-gradient(
    145deg,
    rgba(30, 58, 138, 0.3),
    rgba(30, 64, 175, 0.2)
  );
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(96, 165, 250, 0.2);
  position: relative;
  overflow: visible;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-lg),
    inset 0 1px 0 rgba(147, 197, 253, 0.1);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.pricing-card:hover {
  transform: translateY(-5px);
  background: linear-gradient(
    145deg,
    rgba(37, 99, 235, 0.5),
    rgba(30, 64, 175, 0.4)
  );
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4),
    0 0 20px rgba(96, 165, 250, 0.2);
  border-color: var(--sky-blue);
}


/* ===== Featured Plan Modifier ===== */

.pricing-card--featured {
  background: linear-gradient(
    145deg,
    rgba(37, 99, 235, 0.4),
    rgba(30, 64, 175, 0.3)
  );
  border: 2px solid var(--sky-blue);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4),
    0 0 30px rgba(96, 165, 250, 0.3);
}

.pricing-card--featured:hover {
  transform: translateY(-8px);
  background: linear-gradient(
    145deg,
    rgba(37, 99, 235, 0.6),
    rgba(30, 64, 175, 0.5)
  );
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(96, 165, 250, 0.4);
}


/* ===== Popular Badge ===== */

.pricing-card__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--sky-blue), var(--navy-light));
  color: var(--white);
  padding: 6px 20px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(96, 165, 250, 0.4);
  white-space: nowrap;
}


/* ===== Card Header ===== */

.pricing-card__header {
  text-align: center;
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(96, 165, 250, 0.2);
}

.pricing-card__title {
  font-size: 1.25rem;
  color: var(--white);
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: 0.5px;
}


/* ===== Price Display ===== */

.pricing-card__price {
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.price-amount {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  letter-spacing: -1px;
}

.price-period {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.price-period-inline {
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 500;
  letter-spacing: 0;
}


/* ===== Card Description ===== */

.pricing-card__description {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 1rem;
  margin: 0;
}


/* ===== Feature List ===== */

.pricing-card__features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem 0;
  flex-grow: 1;
}

.pricing-card__features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  color: var(--text-secondary);
  line-height: 1.5;
  font-size: 0.9rem;
}

.pricing-card__features li:not(:last-child) {
  border-bottom: 1px solid rgba(96, 165, 250, 0.1);
}

.pricing-card__features i {
  color: var(--sky-blue);
  font-size: 1rem;
  margin-top: 4px;
  flex-shrink: 0;
}

.pricing-card__features span {
  flex: 1;
}


/* ===== CTA Button ===== */

.pricing-card__cta {
  margin-top: auto;
  text-align: center;
}

.pricing-btn {
  display: inline-block;
  width: 100%;
  padding: 14px 28px;
  background: linear-gradient(135deg, var(--navy-light), var(--sky-blue));
  color: var(--white);
  text-decoration: none;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 1rem;
  transition: all var(--transition-normal);
  box-shadow: 0 5px 20px rgba(96, 165, 250, 0.3);
  border: none;
  cursor: pointer;
}

.pricing-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(96, 165, 250, 0.4);
  background: linear-gradient(135deg, var(--sky-blue), var(--navy-light));
}

.pricing-btn--featured {
  background: linear-gradient(135deg, var(--navy-light), var(--sky-blue));
  box-shadow: 0 8px 25px rgba(96, 165, 250, 0.4);
  font-weight: 700;
}

.pricing-btn--featured:hover {
  background: linear-gradient(135deg, var(--sky-blue), var(--navy-light));
  box-shadow: 0 12px 35px rgba(96, 165, 250, 0.5);
  transform: translateY(-3px);
}


/* ===== Responsive ===== */

@media (max-width: 968px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .pricing-card {
    padding: 1.25rem;
  }

  .price-amount {
    font-size: 2rem;
  }

  .price-period-inline {
    font-size: 0.9rem;
  }
}

@media (max-width: 768px) {
  .pricing-section {
    padding: 40px 0;
  }

  .pricing-grid {
    margin-top: 1.5rem;
    gap: 1.25rem;
  }

  .pricing-card {
    padding: 1rem;
  }

  .pricing-card__header {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
  }

  .pricing-card__title {
    font-size: 1.15rem;
    margin-bottom: 0.4rem;
  }

  .price-amount {
    font-size: 1.85rem;
  }

  .price-period {
    font-size: 0.75rem;
  }

  .price-period-inline {
    font-size: 0.8rem;
  }

  .pricing-card__description {
    font-size: 0.85rem;
  }

  .pricing-card__features {
    margin-bottom: 1rem;
  }

  .pricing-card__features li {
    padding: 7px 0;
    font-size: 0.8rem;
    gap: 8px;
  }

  .pricing-card__features i {
    font-size: 0.85rem;
  }

  .pricing-btn {
    font-size: 0.9rem;
    padding: 11px 22px;
  }

  .pricing-card__badge {
    font-size: 0.7rem;
    padding: 4px 14px;
  }
}
