@import url('https://fonts.googleapis.com/css2?family=Hind:wght@300;400;500;600&display=swap');

:root {
  --dark: #031635;
  --green: #4AB787;
  --text: #1f3354;
  --soft: #6f7782;
  --bg: #f5f5f5;
  --white: #fff;
  --border: rgba(3, 22, 53, 0.45);
}

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

body {
  font-family: 'Hind', sans-serif;
  background: #fff;
  color: var(--text);
}

.pricing-section {
  padding: 4rem 5%;
  background: var(--bg);
  text-align: center;
}

.pricing-header h2 {
  font-size: 2.4rem;
  margin-bottom: 0.3rem;
}


.subtitle {
  color: var(--soft);
  margin-bottom: 2.5rem;
}

.pricing-container {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 2.2rem;
  flex-wrap: wrap;
}

.plan-card {
  position: relative;
  width: 100%;
  max-width: 300px;
  min-height: 420px;
  padding: 3.5rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: background .3s ease, color .3s ease, transform .3s ease, box-shadow .3s ease;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(3, 22, 53, 0.06);
  flex: 1 1 270px;
}
.plan-card:hover {
  transform: translateY(-6px);
  background: var(--dark);
  color: var(--white);
  box-shadow: 0 10px 20px rgba(3, 22, 53, 0.12);
}

.plan-card h3 {
  font-size: 1.9rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.plan-type {
  font-size: 0.85rem;
  color: var(--soft);
  margin-bottom: 4px;
}

.price {
  margin-bottom: 1.2rem;
}

.price strong {
  font-size: 2.1rem;
  font-weight: 500;
}

.plan-card ul {
  list-style: none;
  text-align: left;
  width: 100%;
  margin-top: auto;
}

.plan-card li {
  font-size: 0.9rem;
  margin-bottom: 0.7rem;
  display: flex;
  gap: 8px;
  color: var(--soft);
  line-height: 1.6;
}

.plan-card li::before {
  content: "✓";
  color: inherit;
}

.plan-card:hover h3,
.plan-card:hover .plan-type,
.plan-card:hover .price,
.plan-card:hover li {
  color: var(--white);
}

.featured {
  background: var(--dark);
  color: var(--white);
}

.featured h3,
.featured .plan-type,
.featured .price,
.featured li {
  color: var(--white);
}


.badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--green);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 999px;
  white-space: nowrap;
}


.pricing-container:has(.plan-card:not(.featured):hover) .featured {
  background: var(--white);
  color: var(--text);
  border-color: var(--border);
  box-shadow: 0 4px 10px rgba(3, 22, 53, 0.06);
}

.pricing-container:has(.plan-card:not(.featured):hover) .featured h3,
.pricing-container:has(.plan-card:not(.featured):hover) .featured .price {
  color: var(--dark);
}

.pricing-container:has(.plan-card:not(.featured):hover) .featured .plan-type,
.pricing-container:has(.plan-card:not(.featured):hover) .featured li {
  color: var(--soft);
}


.pricing-container:has(.plan-card:not(.featured):hover) .plan-card:not(.featured):hover {
  background: var(--dark);
  color: var(--white);
}

.pricing-container:has(.plan-card:not(.featured):hover) .plan-card:not(.featured):hover h3,
.pricing-container:has(.plan-card:not(.featured):hover) .plan-card:not(.featured):hover .plan-type,
.pricing-container:has(.plan-card:not(.featured):hover) .plan-card:not(.featured):hover .price,
.pricing-container:has(.plan-card:not(.featured):hover) .plan-card:not(.featured):hover li {
  color: var(--white);
}

@media (max-width: 1024px) {
  .pricing-section {
    padding: 3.5rem 4%;
  }

  .pricing-header h2 {
    font-size: 2.1rem;
  }

  .subtitle {
    margin-bottom: 2rem;
    font-size: 0.95rem;
  }

  .pricing-container {
    gap: 1.5rem;
  }

  .plan-card {
    width: 250px;
    min-height: 400px;
    padding: 3rem 1rem;
  }

  .plan-card h3 {
    font-size: 1.75rem;
  }

  .price strong {
    font-size: 1.95rem;
  }

  .plan-card li {
    font-size: 0.88rem;
  }
}

@media (max-width: 900px) {
  .pricing-container {
    gap: 1.2rem;
  }

  .plan-card {
    width: 220px;
    min-height: 390px;
    padding: 2.6rem 1rem;
  }

  .pricing-header h2 {
    font-size: 1.95rem;
  }

  .plan-card h3 {
    font-size: 1.6rem;
  }

  .plan-type {
    font-size: 0.8rem;
  }

  .price strong {
    font-size: 1.8rem;
  }

  .plan-card li {
    font-size: 0.84rem;
    line-height: 1.5;
  }

  .badge {
    font-size: 0.6rem;
    padding: 4px 12px;
    top: -12px;
  }
}


@media (max-width: 768px) {
  .pricing-section {
    padding: 3rem 1.2rem;
  }

  .pricing-header h2 {
    font-size: 1.8rem;
    line-height: 1.2;
  }

  .subtitle {
    font-size: 0.92rem;
    margin-bottom: 1.8rem;
  }

  .pricing-container {
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
  }

  .plan-card {
    width: 100%;
    max-width: 340px;
    min-height: auto;
    padding: 2.4rem 1.2rem;
  }

  .plan-card h3 {
    font-size: 1.7rem;
  }

  .price strong {
    font-size: 2rem;
  }

  .plan-card ul {
    margin-top: 1.2rem;
  }

  .plan-card li {
    font-size: 0.9rem;
  }

  .pricing-container:has(.plan-card:not(.featured):hover) .featured {
    background: var(--dark);
    color: var(--white);
    border-color: var(--border);
  }

.pricing-container:has(.plan-card:not(.featured):hover) .featured {
    background: var(--white);
    color: var(--text);
    border-color: var(--border);
  }

  .pricing-container:has(.plan-card:not(.featured):hover) .featured h3,
  .pricing-container:has(.plan-card:not(.featured):hover) .featured .price {
    color: var(--dark);
  }

  .pricing-container:has(.plan-card:not(.featured):hover) .featured .plan-type,
  .pricing-container:has(.plan-card:not(.featured):hover) .featured li {
    color: var(--soft);
  }
}

@media (max-width: 480px) {
  .pricing-section {
    padding: 2.5rem 1rem;
  }

  .pricing-header h2 {
    font-size: 1.55rem;
  }

  .subtitle {
    font-size: 0.88rem;
  }

  .plan-card {
    max-width: 100%;
    padding: 2.2rem 1rem;
    border-radius: 10px;
  }

  .plan-card h3 {
    font-size: 1.5rem;
  }

  .plan-type {
    font-size: 0.78rem;
  }

  .price strong {
    font-size: 1.8rem;
  }

  .price span {
    font-size: 0.95rem;
  }

  .plan-card li {
    font-size: 0.85rem;
    gap: 6px;
    margin-bottom: 0.6rem;
  }

  .badge {
    font-size: 0.56rem;
    padding: 4px 10px;
    top: -11px;
  }
}