.plan-card {
  background: var(--bg-card);
  border: 1px solid var(--border-line);
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
  max-width: 370px;
  width: 100%;
  padding: 32px 28px 28px 28px;
  display: flex;
  flex-direction: column;
}

.plan-card .plan-card-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
  height: 450px;
}

.plan-card--highlight {
  border-color: #2563eb;
}
.plan-card h4 {
  font-family: "Playfair Display", serif;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--text-primary);
}
.plan-card .plan-card-pricing {
  display: flex;
  align-items: flex-start;
  margin-bottom: 24px;
}
.plan-card .plan-price-currency {
  font-size: 32px;
  font-weight: 700;
  margin-right: 2px;
  color: var(--text-primary);
  margin-top: 8px;
  font-family: "Playfair Display", serif;
}
.plan-card .plan-yearly-currency {
  font-size: 18px;
  font-weight: 600;
  margin-right: 2px;
  color: var(--text-body);
}
.plan-card .plan-price-desc {
  font-size: 16px;
  color: var(--text-tertiary);
  margin-top: 8px;
  margin-left: 0;
}
.plan-card .plan-price {
  font-family: "Playfair Display", serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
  margin-right: 8px;
}
.plan-card .plan-yearly {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-body);
}
.plan-card .plan-badge {
  background: var(--state-success);
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  border-radius: 25px;
  padding: 10px 15px;
  margin-left: 14px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}
.plan-card .plan-desc {
  color: var(--text-body);
  font-size: 16px;
  margin-bottom: 24px;
  margin-top: 20px;
  height: auto;
}
.plan-card .plan-btn {
  border-radius: 20px;
  font-weight: 500;
  font-size: 16px;
  padding: 10px 0;
  margin-bottom: 24px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border 0.2s;
  width: 100%;
  outline: none;
}
.plan-btn-filled {
  background: var(--btn-primary-bg);
  color: #fff;
  border: none;
}
.plan-btn-filled:hover {
  background: #174bbd;
}
.plan-btn-outline {
  background: var(--bg-card);
  /* Use primary stroke colour for text in light mode so it stays visible */
  color: var(--btn-stroke);
  border: 1px solid var(--btn-stroke);
}

.dark-theme .plan-btn-outline {
  color: #FFFFFF;
}

.plan-card .section-title {
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 18px;
  color: var(--text-primary);
}
.plan-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.2rem 0;
}
.plan-card ul li {
  font-size: 16px;
  color: var(--text-primary);
  margin-bottom: 16px;
}
.plan-card ul.plan-list {
  list-style: disc;
  padding-left: 1.5em;
}
.plan-card ul.features-list {
  list-style: none;
  padding-left: 0;
}
.plan-card ul.features-list li {
  color: var(--text-primary);
  display: flex;
  align-items: flex-start;
}
.plan-card ul.features-list li .checkmark {
  color: #2563eb;
  font-size: 18px;
  margin-right: 6px;
  font-weight: bold;
}
.plan-card hr {
  border: none;
  border-top: 1.5px solid var(--border-line);
  margin: 1.2rem 0;
}
.plan-card-section {
  /* removed extra margin */
  min-height: 375px;
}
.plan-card .or-divider {
  font-size: 16px;
  color: var(--text-body);
  margin: 8px 0;
}
.plan-card .yearly-price-container {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  justify-content: center;
}

.plan-card .strikethrough-price {
  text-decoration: line-through;
  color: var(--text-tertiary);
  font-size: 16px;
  font-weight: 500;
  margin-right: 14px;
}

.plan-billing {
  font-size: 14px;
  color: var(--text-tertiary);
  margin-bottom: 12px;
  text-align: center;
}

@media (max-width: 500px) {
  .plan-card {
    padding: 18px 6px 18px 6px;
    max-width: 98vw;
  }
  .subscribe-section {
    padding: 10px 0;
  }
}

/* Bullet marker colour */
.plan-card ul.plan-list li::marker {
  color: var(--btn-primary-bg);
}

/* Mobile responsive enhancements */
@media (max-width: 639px) {
  .plan-card {
    padding: 20px 16px 16px 16px;
    max-width: 100%;
    margin: 0 auto;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  }
  
  .plan-card h4 {
    font-size: 20px;
    margin-bottom: 16px;
    text-align: center;
  }
  
  .plan-card .plan-card-pricing {
    justify-content: center;
    margin-bottom: 16px;
  }
  
  .plan-card .plan-price-currency {
    font-size: 24px;
    margin-top: 6px;
  }
  
  .plan-card .plan-price {
    font-size: 28px;
  }
  
  .plan-card .plan-price-desc {
    font-size: 14px;
    margin-top: 6px;
  }
  
  .plan-card .yearly-price-container {
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
  }
  
  .plan-card .plan-yearly {
    font-size: 14px;
  }
  
  .plan-card .plan-badge {
    font-size: 12px;
    padding: 6px 8px;
    margin-left: 0;
  }
  
  .plan-card .strikethrough-price {
    font-size: 14px;
    margin-right: 8px;
  }
  
  .plan-billing {
    font-size: 12px;
    margin-bottom: 8px;
  }
  
  .plan-card .plan-desc {
    font-size: 14px;
    margin-bottom: 20px;
    margin-top: 16px;
    text-align: center;
    line-height: 1.4;
  }
  
  .plan-card .plan-btn {
    font-size: 14px;
    padding: 12px 0;
    margin-bottom: 20px;
    border-radius: 12px;
  }
  
  .plan-card .section-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 12px;
    text-align: center;
  }
  
  .plan-card ul li {
    font-size: 14px;
    margin-bottom: 12px;
    line-height: 1.4;
  }
  
  .plan-card ul.features-list li .checkmark {
    font-size: 16px;
    margin-right: 8px;
  }
  
  .plan-card hr {
    margin: 16px 0;
  }
  
  .plan-card .or-divider {
    font-size: 14px;
    text-align: center;
    margin: 8px 0;
  }
}

@media (min-width: 640px) and (max-width: 767px) {
  .plan-card {
    padding: 24px 20px 20px 20px;
    max-width: 380px;
    margin: 0 auto;
  }
  
  .plan-card h4 {
    font-size: 22px;
    text-align: center;
  }
  
  .plan-card .plan-card-pricing {
    justify-content: center;
  }
  
  .plan-card .yearly-price-container {
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
  }
  
  .plan-card .plan-desc {
    text-align: center;
  }
  
  .plan-card .section-title {
    text-align: center;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .plan-card {
    padding: 28px 24px 24px 24px;
    max-width: 400px;
    margin: 0 auto;
  }
  
  .plan-card h4 {
    text-align: center;
  }
  
  .plan-card .plan-card-pricing {
    justify-content: center;
  }
  
  .plan-card .yearly-price-container {
    justify-content: center;
  }
  
  .plan-card .plan-desc {
    text-align: center;
  }
  
  .plan-card .section-title {
    text-align: center;
  }
}

/* Family Plan Specific Styles */
.family-plan-discount {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  gap: 12px;
  flex-wrap: wrap;
}

.discount-badge {
  background: #dc2626;
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  border-radius: 25px;
  padding: 8px 12px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.family-trial-info {
  text-align: center;
  margin-bottom: 16px;
}

.trial-title {
  font-weight: 700;
  font-size: 18px;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.trial-desc {
  font-size: 14px;
  color: var(--text-body);
  line-height: 1.4;
}

.family-audience {
  font-size: 14px;
  color: var(--text-body);
  text-align: center;
  margin-bottom: 20px;
  font-style: italic;
}

/* Mobile responsive for Family plan */
@media (max-width: 639px) {
  .family-plan-discount {
    margin-bottom: 12px;
    gap: 8px;
  }
  
  .strikethrough-price {
    font-size: 14px;
  }
  
  .discount-badge {
    font-size: 12px;
    padding: 6px 10px;
  }
  
  .trial-title {
    font-size: 16px;
    margin-bottom: 6px;
  }
  
  .trial-desc {
    font-size: 13px;
  }
  
  .family-audience {
    font-size: 13px;
    margin-bottom: 16px;
  }
  
  .plan-billing {
    font-size: 12px;
  }
}
