/* ============================================================
   STEMWise Landing — Plans Section
   ============================================================ */

.stmw-plans {
  background: var(--stmw-gray-50);
}

/* ===== Period Toggle ===== */
.stmw-period-selector--landing {
  display: inline-flex;
  background: rgba(0, 0, 0, .06);
  border-radius: 12px;
  padding: 4px;
}

.stmw-period-selector--landing .stmw-period-option {
  padding: 12px 28px;
  border: none;
  background: transparent;
  border-radius: 10px;
  font-family: var(--stmw-font-display);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all .2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: rgba(0, 0, 0, .65);
}

.stmw-period-selector--landing .stmw-period-option:hover {
  background: rgba(0, 0, 0, .04);
}

.stmw-period-selector--landing .stmw-period-option.active {
  background: var(--stmw-primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(99, 55, 254, .28);
}

.stmw-period-selector--landing .stmw-period-option.active:hover {
  background: var(--stmw-primary);
}

.stmw-period-selector--landing .stmw-period-discount {
  background: var(--stmw-secondary);
  color: #111;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
}

.stmw-period-selector--landing .stmw-period-option.active .stmw-period-discount {
  background: rgba(255, 255, 255, .9);
}

/* ===== Plan Cards ===== */
.stmw-plan-card {
  border-radius: var(--stmw-radius-card, 12px);
  padding: 28px 24px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .08);
  transition: transform .18s ease, box-shadow .18s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.stmw-plan-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(0, 0, 0, .12);
}

/* ── Popular Badge ── */
.stmw-plan-popular-badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--stmw-primary);
  color: #fff;
  font-family: var(--stmw-font-display, sans-serif);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 18px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(99, 55, 254, .3);
}

/* ── Plan Type Badge ── */
.stmw-plan-type {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 6px;
  background: rgba(0, 0, 0, .06);
  color: rgba(0, 0, 0, .5);
  margin-bottom: 4px;
  width: fit-content;
}

.stmw-plan-premium .stmw-plan-type {
  background: rgba(255, 255, 255, .15);
  color: rgba(255, 255, 255, .7);
}

.stmw-plan-pro .stmw-plan-type {
  background: rgba(0, 0, 0, .08);
  color: rgba(0, 0, 0, .5);
}

/* ── Header ── */
.stmw-plan-header {
  display: grid;
  gap: 6px;
}

.stmw-plan-name {
  font-family: var(--stmw-font-display, sans-serif);
  font-size: 20px;
  font-weight: 700;
  margin: 0;
}

.stmw-plan-desc {
  margin: 0;
  font-size: 14px;
  opacity: .8;
  line-height: 1.4;
}

/* ── Benefits ── */
.stmw-benefits {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.stmw-benefits li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 13px;
}

.stmw-check {
  width: 22px;
  height: 22px;
  min-width: 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(99, 55, 254, .12);
  color: var(--stmw-primary);
  font-size: 16px;
}

/* ===== Pricing ===== */
.stmw-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 8px 0 12px;
}

.stmw-price-value {
  font-family: var(--stmw-font-display, sans-serif);
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -.5px;
  transition: opacity .18s ease;
}

.stmw-price-value.stmw-price-fading {
  opacity: 0;
}

.stmw-price-suffix {
  font-size: 13px;
  opacity: .7;
  transition: opacity .18s ease;
}

.stmw-price-suffix.stmw-price-fading {
  opacity: 0;
}

/* Per-professor price */
.stmw-price-per-prof {
  font-size: 13px;
  font-weight: 600;
  color: var(--stmw-primary);
  margin-top: -4px;
  margin-bottom: 8px;
  transition: opacity .18s ease;
}

.stmw-price-per-prof.stmw-price-fading {
  opacity: 0;
}

.stmw-plan-premium .stmw-price-per-prof {
  color: var(--stmw-secondary);
}

/* Annual detail & savings */
.stmw-price-annual-detail {
  font-size: 13px;
  margin-top: -6px;
  margin-bottom: 8px;
  opacity: .75;
}

.stmw-plan-savings-badge {
  margin-bottom: 10px;
}

/* ===== Card Variants ===== */

/* Essential (Individual) — White */
.stmw-plan-essential {
  background: var(--stmw-white, #fff);
  color: #111;
}

.stmw-plan-essential .stmw-plan-name {
  color: #000;
}

/* Lab — Soft purple tint */
.stmw-plan-lab {
  background: #f0ecff;
  color: #111;
  border: 1px solid rgba(99, 55, 254, .12);
}

.stmw-plan-lab .stmw-plan-name {
  color: var(--stmw-primary);
}

.stmw-plan-lab .stmw-check {
  background: rgba(99, 55, 254, .15);
  color: var(--stmw-primary);
}

/* Pro (Tech — lime green) */
.stmw-plan-pro {
  background: var(--stmw-secondary, #cffe5a);
  color: #111;
}

.stmw-plan-pro .stmw-plan-name {
  color: #000;
}

/* Premium (Pro — purple) */
.stmw-plan-premium {
  background: var(--stmw-primary, #6337fe);
  color: #fff;
}

.stmw-plan-premium .stmw-check {
  background: rgba(255, 255, 255, .18);
  color: #fff;
}

.stmw-plan-premium .stmw-plan-desc,
.stmw-plan-premium .stmw-price-suffix {
  opacity: .85;
}

.stmw-plan-premium .stmw-price-annual-detail {
  color: rgba(255, 255, 255, .7);
}

.stmw-plan-premium .stmw-plan-name {
  color: var(--stmw-secondary) !important;
}

.stmw-plan-premium .stmw-plan-popular-badge {
  background: var(--stmw-secondary);
  color: var(--stmw-dark);
}

/* ===== Responsive ===== */
@media (max-width: 1199.98px) {
  .stmw-plans__grid {
    justify-content: center;
  }
}

@media (max-width: 575.98px) {
  .stmw-period-selector--landing .stmw-period-option {
    padding: 10px 20px;
    font-size: 14px;
  }

  .stmw-price-value {
    font-size: 26px;
  }
}
