/* ===== RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', sans-serif;
  line-height: 1.6;
  background-color: #f5f7fa;
  color: #333;
  padding: 2rem;
  animation: fadeIn 1s ease-in;
}

/* ===== HEADER ===== */
.header {
  text-align: center;
  margin-bottom: 3rem;
}

.header h1 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
  color: #2c3e50;
  font-weight: 700;
}

.header p {
  color: #666;
  font-size: 1rem;
}

/* ===== PLANS ===== */
.comparison-table {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.plan {
   background: white;
  border: 1px solid #ddd;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
  padding: 2rem 1.5rem;
  width: 100%;
  max-width: 300px;
  text-align: center;
  position: relative;
  transition: 
    transform 0.4s ease,
    box-shadow 0.4s ease,
    border 0.3s ease,
    background-color 0.4s;
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
}

.plan:nth-child(1) {
  animation-delay: 0.2s;
}
.plan:nth-child(2) {
  animation-delay: 0.4s;
}
.plan:nth-child(3) {
  animation-delay: 0.6s;
}

.plan:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
  border: 2px solid #007bff;
  background-color: #f8faff;
}

.plan h2 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: #1e272e;
  font-weight: 600;
}

.plan ul {
  list-style: none;
  text-align: left;
  margin-bottom: 1.5rem;
}

.plan ul li {
  margin: 0.6rem 0;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
}

.plan ul li::before {
  content: '✅';
  margin-right: 0.5rem;
  color: #27ae60;
}

.plan ul li:has(:contains("❌"))::before {
  content: '❌';
  color: #e74c3c;
}
.basic:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 12px 28px rgba(0, 123, 255, 0.25);
  border: 2px solid #3498db;
  background-color: #f0f9ff;
}

/* ===== POPULAR PLAN ===== */
.popular {
  border: 2px solid #007bff;
  background: #e9f4ff;
  position: relative;
}

.badge {
  position: absolute;
  top: -10px;
  right: -10px;
  background: #007bff;
  color: #fff;
  font-size: 0.75rem;
  padding: 6px 12px;
  border-radius: 20px;
  font-weight: bold;
  animation: popIn 1s ease;
}
.premium:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 12px 28px rgba(40, 167, 69, 0.25);
  border: 2px solid #28a745;
  background-color: #f3fcf5;
}

/* ===== BUTTON ===== */
button {
  background-color: #007bff;
  color: white;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 25px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.3s;
}

button:hover {
  background-color: #0056cc;
  transform: scale(1.05);
}

/* ===== CTA SECTION ===== */
.cta {
  margin-top: 4rem;
  text-align: center;
}

.cta h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #2c3e50;
}

.cta-btn {
  background: #28a745;
  color: white;
  padding: 0.8rem 1.8rem;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.cta-btn:hover {
  background: #1e7e34;
  transform: scale(1.1);
}

/* ===== RESPONSIVE STACKING ===== */
@media (max-width: 768px) {
  .comparison-table {
    flex-direction: column;
    align-items: center;
  }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
  from {
    opacity: 0;
  } to {
    opacity: 1;
  }
}

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

@keyframes popIn {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  60% {
    transform: scale(1.1);
    opacity: 1;
  }
  100% {
    transform: scale(1);
  }
}