/* =========================
   GENERAL
========================= */

.section-padding {
  padding: 40px 0;
}

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

/* =========================
   PRICING – DESKTOP
========================= */

.pricing-wrapper {
  display: flex;
  justify-content: center;
}

.pricing-track {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
}

/* Force rows */
.pricing-card {
  flex: 0 0 300px;
}

/* =========================
   CARD STYLES
========================= */

.price {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid #ddd;
  text-align: center;
  background: #fff;
}

.price li {
  padding: 14px;
  font-size: 16px;
}

.price .header {
  color: #fff;
  font-size: 22px;
  font-weight: 700;
}

.price .grey {
  background: #f2f2f2;
}

.button {
  display: inline-block;
  padding: 10px 20px;
  background: #0d7c6d;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
}

/* =========================
   GROUP HEADER COLORS
========================= */

/* Pro Max */
.pricing-card:nth-child(1) .header,
.pricing-card:nth-child(2) .header,
.pricing-card:nth-child(3) .header {
  background: linear-gradient(135deg, #4f46e5, #6366f1);
}

/* Pro */
.pricing-card:nth-child(4) .header,
.pricing-card:nth-child(5) .header,
.pricing-card:nth-child(6) .header {
  background: linear-gradient(135deg, #0d7c6d, #10b981);
}

/* Basic + Free */
.pricing-card:nth-child(7) .header,
.pricing-card:nth-child(8) .header {
  background: linear-gradient(135deg, #374151, #6b7280);
}

/* =========================
   MOBILE – 2 CARDS PER ROW (40vw)
========================= */
@media (max-width: 768px) {
  #pricing,
  .section-padding {
    padding-top: 20px;
    padding-bottom: 40px;
  }

  .pricing-wrapper {
    width: 100%;
    padding-left: 5vw;
    padding-right: 5vw; /* ⬅ 10vw total side space */
  }

  .pricing-track {
    display: flex;
    flex-wrap: wrap; /* ⬅ allow rows */
    gap: 4vw; /* ⬅ space between cards */
    overflow: visible;
  }

  .pricing-card {
    flex: 0 0 40vw; /* ⬅ EXACT requirement */
    max-width: 40vw;
  }

  /* Reduce hero height on mobile */
  #hero {
    min-height: auto; /* ⬅ KILLS the big empty space */
    padding-top: 80px; /* navbar safe space */
    padding-bottom: 24px;
  }

  /* Tighten pricing section */
  #pricing {
    padding-top: 12px !important;
    margin-top: 0 !important;
  }
}

/* =========================
   MOBILE ONLY – FIX HERO HEIGHT
========================= */
@media (max-width: 576px) {
  #hero {
    min-height: auto; /* overrides min-vh-100 ONLY on small phones */
    padding-top: 72px; /* navbar spacing */
    padding-bottom: 24px;
  }

  .price .header {
    font-size: 14px;
    font-weight: 700;
    padding: 12px;
  }
}

/* =========================
   DESKTOP – 3 / 3 / 2 GRID
========================= */

@media (min-width: 1024px) {

  #pricing,
  .section-padding {
    padding-top: 20px;
    padding-bottom: 40px;
  }

  /* Grid layout */
  .pricing-track {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    justify-content: center;
    align-items: stretch;
  }

  /* Card sizing */
  .pricing-card {
    min-width: 15rem;
    max-width: 280px;
    margin: 0 auto;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    will-change: transform;
  }

  /* Hover effect */
  .pricing-card:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.15);
    z-index: 2;
  }

  /* Price list spacing */
  .price li {
    padding: 10px;
    font-size: 14px;
    line-height: 1.4;
  }

  /* Plan title */
  .price .header {
    font-size: 18px;
    font-weight: 700;
    padding: 12px;
  }

  /* MAIN PRICE ($105, $479 etc) */
  .price .grey:nth-of-type(1) {
    font-size: 22px;
    font-weight: 700;
    color: #111827;
  }

  /* PER EMAIL PRICE */
  .price li:nth-child(4) {
    font-size: 17px;
    font-weight: 600;
    color: #0d7c6d;
  }

  /* Button */
  .button {
    padding: 6px 14px;
    font-size: 13px;
  }
  /* MAIN PRICE — BIG & BOLD */
  .price li:nth-child(2) {
    font-size: 24px; /* bigger */
    font-weight: 800; /* bold */
    color: #111827;
  }

  /* PER EMAIL RATE — BIG & BOLD */
  .price li:nth-child(4) {
    font-size: 18px; /* bigger */
    font-weight: 700; /* bold */
    color: #0d7c6d;
  }
}
