/* Reset */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}


body {
  font-family: system-ui, -apple-system, sans-serif;
  background: #f9fafb;
  color: #111827;
}


/* Section */

.pricing {
  padding: 80px 20px;
}


.container {
  max-width: 1200px;
  margin: auto;
  text-align: center;
}


/* Heading */

.pricing-title {
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 32px;
}


/* Toggle */

.toggle-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-bottom: 48px;
}


.toggle-label {
  font-size: 14px;
  color: #6b7280;
}


.discount {
  font-size: 12px;
  color: #047857;
  margin-left: 6px;
  font-weight: 500;
}


/* Switch */

.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
}


.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}


.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: #e5e7eb;
  border-radius: 999px;
  transition: 0.3s;
}


.slider::before {
  content: "";
  position: absolute;
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background: white;
  border-radius: 50%;
  transition: 0.3s;
}


input:checked + .slider {
  background: #047857;
}


input:checked + .slider::before {
  transform: translateX(24px);
}


/* Grid */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
}


/* Cards */

.card {
  background: white;
  padding: 32px;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transition: 0.3s ease;
  position: relative;
}


.card:hover {
  transform: translateY(-6px);
}


/* Featured Card */

.featured {
  background: linear-gradient(135deg, #047857, #065f46);
  color: white;
  transform: scale(1.05);
}


.featured .features li {
  color: rgba(255, 255, 255, 0.9);
}


.featured .duration {
  color: rgba(255, 255, 255, 0.8);
}


/* Badge */

.badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  color: #047857;
  padding: 6px 14px;
  font-size: 12px;
  border-radius: 999px;
  font-weight: 600;
}


/* Plan Name */

.plan-name {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 16px;
}


/* Price */

.price {
  margin-bottom: 24px;
}


.amount {
  font-size: 40px;
  font-weight: 700;
  transition: opacity 0.25s ease;
}


.duration {
  font-size: 14px;
  color: #6b7280;
}


/* Features */

.features {
  list-style: none;
  margin-bottom: 32px;
}


.features li {
  margin-bottom: 10px;
  font-size: 15px;
  color: #4b5563;
}


/* Buttons */

.btn {
  width: 100%;
  height: 44px;
  border-radius: 8px;
  border: none;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  background: #e5e7eb;
  transition: 0.25s ease;
}


.btn:hover {
  background: #d1d5db;
}


.primary {
  background: white;
  color: #047857;
}


.primary:hover {
  background: #f3f4f6;
}


/* Responsive */

@media (max-width: 768px) {

  .featured {
    transform: scale(1);
  }

}