/* pricing-cards.css — all rules scoped under .pricing-cards */

/* ── Grid ─────────────────────────────────────────────────────────────────── */

.pricing-cards__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  align-items: stretch;
  max-width: 860px;
  margin: 0 auto;
  padding-top: 20px; /* clearance for .pricing-card--featured badge overflow */
}

/* ── Card base ────────────────────────────────────────────────────────────── */

.pricing-card {
  background: #161619;
  border: 1px solid #252528;
  border-radius: 14px;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: border-color 0.2s ease;
}

.pricing-card:hover {
  border-color: rgba(76, 110, 245, 0.25);
}

/* ── Featured modifier — pro_monthly ─────────────────────────────────────── */

.pricing-card--featured {
  background: #16192a;
  border-color: rgba(76, 110, 245, 0.4);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.pricing-card--featured:hover {
  border-color: rgba(76, 110, 245, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(76, 110, 245, 0.2);
}

/* ── Badge ────────────────────────────────────────────────────────────────── */

.pricing-card__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #4c6ef5;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

/* ── Header ───────────────────────────────────────────────────────────────── */

.pricing-card__header {
  margin-bottom: 14px;
}

.pricing-card--featured .pricing-card__header {
  margin-top: 6px; /* clear the badge */
}

.pricing-card__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #9494a3;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.pricing-card--featured .pricing-card__label {
  color: #7b9cf8;
}

.pricing-card__price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 4px;
}

.pricing-card__price {
  font-size: 28px;
  font-weight: 800;
  color: #f0f0f4;
  letter-spacing: -0.04em;
}

.pricing-card__period {
  font-size: 12.5px;
  color: #9494a3;
}

.pricing-card__description {
  font-size: 12px;
  color: #72727e;
}

/* ── Features ─────────────────────────────────────────────────────────────── */

.pricing-card__features {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid #1e1e24;
  padding-top: 14px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.pricing-card--featured .pricing-card__features {
  border-top-color: rgba(76, 110, 245, 0.15);
}

.pricing-card__feature {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  color: #9494a3;
}

.pricing-card--featured .pricing-card__feature {
  color: #72727e;
}

.pricing-card__check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(18, 184, 134, 0.15);
  flex-shrink: 0;
  margin-top: 1px;
}

/* ── CTA button ───────────────────────────────────────────────────────────── */

.pricing-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 13px;
  font-family: inherit;
  padding: 9px 0;
  border-radius: 10px;
  cursor: pointer;
  margin-top: auto;
  width: 100%;
  box-sizing: border-box;
  transition: background 0.15s ease, border-color 0.15s ease,
              color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

/* Free — outline */
.pricing-card--free .pricing-card__cta {
  font-weight: 500;
  background: transparent;
  color: #a0a0b0;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.pricing-card--free .pricing-card__cta:hover {
  border-color: rgba(255, 255, 255, 0.28);
  color: #f0f0f4;
  background: rgba(255, 255, 255, 0.04);
}

/* Pro (non-featured, i.e. pro_yearly) — blue solid */
.pricing-card--pro:not(.pricing-card--featured) .pricing-card__cta {
  font-weight: 600;
  background: #4c6ef5;
  color: #fff;
  border: none;
}

.pricing-card--pro:not(.pricing-card--featured) .pricing-card__cta:hover {
  background: #3b5bdb;
  transform: translateY(-1px);
}

/* Featured (pro_monthly) — blue solid + shadow on hover */
.pricing-card--featured .pricing-card__cta {
  font-weight: 600;
  background: #4c6ef5;
  color: #fff;
  border: none;
}

.pricing-card--featured .pricing-card__cta:hover {
  background: #3b5bdb;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(76, 110, 245, 0.35);
}
