/* ================= WRAP ================= */

.pricing-wrap .pill-toggle input:first-of-type:checked ~ label:first-of-type {
  color: #fff;
}

.pricing-wrap .pill-toggle input:last-of-type:checked ~ label:last-of-type {
  color: #fff;
}

.pricing-wrap .pill-toggle input:last-of-type:checked ~ .slider {
  left: 50%;
}




.pricing-wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0;
  font-family: "League Spartan", sans-serif;
}

/* ================= GRID ================= */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

/* ================= CARD ================= */
.price-card {
  background: #fff;
  border: 2px solid #e5e5e5;
  border-radius: 16px;
  padding: 40px 28px;
  text-align: center;
  position: relative;
}

/* POPULAR CARD */
.price-card.popular {
  border-color: #c01b26;
}

/* ================= RIBBON ================= */
.ribbon {
  position: absolute;
  top: 0;
  right: 0;
  background: #c01b26;
  color: #fff;
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 600;
  transform: rotate(45deg) translate(22px, -14px);
  transform-origin: top right;
}

/* ================= PRICE ================= */
.price {
  margin-bottom: 28px;
}

.currency {
  font-size: 22px;
  vertical-align: top;
}

.amount {
  font-size: 48px;
  font-weight: 700;
  line-height: 1;
}

.period {
  display: block;
  font-size: 16px;
  color: #444;
}

/* ================= FEATURES ================= */
.features {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
}

.features li {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid #eee;
  font-size: 16px;
  text-align: left;
}

.features li:first-child {
  border-top: none;
}

.features li::before {
 content: "✔";
  width: 22px;
  height: 22px;
  min-width: 22px;
  border-radius: 50%;
  background: #3cb371;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #000;
}

/* ================= BUTTON ================= */
.btn {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

/* NORMAL BUTTON */
.price-card .btn {
  background: #fde3e7;
  color: #c01b26;
}

/* POPULAR BUTTON */
/*.price-card.popular .btn {*/
/*  background: #c01b26;*/
/*  color: #fff;*/
/*}*/


/* ================= POPULAR RIBBON (FIXED & CLEAN) ================= */
.price-card.popular {
  position: relative;
  overflow: hidden; /* keeps ribbon inside card */
}

.price-card.popular .ribbon {
  position: absolute;
  top: 68px;
  right: -25px;
  background: #c01b26;
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 9px 40px;
  text-transform: uppercase;
  transform: rotate(45deg);
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}


/* ================= RESPONSIVE ================= */
@media (max-width: 900px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}

/* ================= TOGGLE (UNCHANGED) ================= */
.pill-toggle {
  --pill-bg: #f3f3f3;
  --pill-ring: #efefef;
  --pill-active: #c01b26;
  --text: #3a3a3a;
  position: relative;
  width: 420px;
  max-width: 95%;
  margin: 40px auto 24px;
  height: 64px;
  background: var(--pill-bg);
  border-radius: 999px;
  box-shadow: 0 0 0 8px var(--pill-ring) inset;
  display: flex;
  align-items: center;
  padding: 6px;
}

.pill-toggle input {
  display: none;
}

.pill-toggle label {
  flex: 1;
  text-align: center;
  z-index: 2;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  line-height: 52px; /* ? FIXED */
  color: var(--text);
}

.pill-toggle .slider {
  position: absolute;
  top: 6px;
  left: 6px;
  width: calc(50% - 6px);
  height: calc(100% - 12px);
  background: var(--pill-active);
  border-radius: 999px;
  transition: left 0.3s ease;
}

#bill-monthly:checked ~ label[for="bill-monthly"],
#bill-yearly:checked ~ label[for="bill-yearly"] {
  color: #fff;
}

#bill-yearly:checked ~ .slider {
  left: 50%;
}
