
.plan-cards {
  display: grid;
  grid-template-columns: auto 1fr 1fr 1fr;
  gap: 24px;
  padding-bottom: 12px;
  justify-items: center;
}
.plan-card {
  background: #eee;
  border-radius: 12px;
  padding: 24px;
  width: 220px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  border: 1px solid #e5e5e5;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.plan-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.plan-card.featured {
  border: 2px solid #0078ff;
  box-shadow: 0 6px 16px rgba(0,120,255,0.15);
}

.plan-card h2 {
  margin: 0 0 8px;
  font-size: 1.4rem;
}

.plan-card .tagline {
  margin: 0 0 16px;
  color: #666;
  font-size: 0.9rem;
}

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

.plan-card li {
  padding: 8px 0;
  border-bottom: 1px solid #eee;
  font-size: 0.95rem;
}

.plan-card li:last-child {
  border-bottom: none;
}

/* Make the first card half width */
.plan-card-features {
  flex: 0 0 150px; /* or 220px, 240px, whatever feels right */
 
  width: 150px;
  min-width: 140px;
  pointer-events: none; /* optional: prevents hover pop */
  transform: none !important;
  box-shadow: none !important;
  transform: none !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08) !important;
}

@media (min-width: 1130px) {
  .plan-cards {
    grid-template-columns: repeat(4, 1fr);
	max-width: 1244px;   /* or whatever feels right */
    margin: 0 auto;      /* centers the whole block */
  }

  .plan-card-features { grid-column: 1; grid-row: 1; } 
  .plan-card-features:nth-of-type(1) { display: none } 
}
@media (max-width: 1130px) {
  .plan-cards { 
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .plan-card {
    width: 80%;
  }
  /* Premium card full width at the bottom */
  .plan-card:last-child {
    grid-column: 1 / span 2;
  }

}

@media (max-width: 978px) {
  
  /* Premium card full width at the bottom */
  .plan-card:last-child {
    grid-column: 1 / span 2;
    justify-self: center;
  }

}

@media (max-width: 600px) {
  .plan-cards {
    grid-template-columns: 1fr;
  }

  /* Premium card full width at the bottom */
  .plan-card:last-child {
    grid-column: 1 / span 2;
    justify-self: center;
  }

}