.rpe-pricing {
  --rpe-blue: #5f72e7;
  --rpe-blue-dark: #4b5ab2;
  --rpe-text: #414141;
  --rpe-muted: #707070;
  --rpe-border: #e1e4eb;
  --rpe-green: #078c52;
  --rpe-green-bg: #ebfaf2;
  --rpe-soft: #f7f8ff;
  font-family: Nunito, sans-serif;
  color: var(--rpe-text);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.rpe-pricing * {
  box-sizing: border-box;
}

.rpe-section-title {
  margin: 0 0 18px;
  text-align: center;
  color: var(--rpe-text);
  font-size: 28px;
  line-height: 1.2;
  font-weight: 800;
}

.rpe-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  max-width: 100%;
  margin: 0 auto 36px;
  padding: 4px;
  border: 1px solid #dedfe5;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(32, 42, 86, .05);
}

.rpe-toggle-btn {
  min-width: 112px;
  min-height: 40px;
  padding: 9px 20px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #656565;
  cursor: pointer;
  font: 700 15px/1 Nunito, sans-serif;
  transition: background-color .2s ease, color .2s ease, box-shadow .2s ease;
}

.rpe-toggle-btn.is-active {
  background: var(--rpe-blue);
  color: #fff;
  box-shadow: 0 5px 12px rgba(95, 114, 231, .22);
}

.rpe-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 20px;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
}

.rpe-card {
  position: relative;
  width: 100%;
  min-width: 0;
  overflow: visible;
  border: 1px solid var(--rpe-border);
  border-radius: 18px;
  background: #fff;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.rpe-card:hover {
  transform: translateY(-2px);
  border-color: #d5d9e5;
  box-shadow: 0 14px 34px rgba(33, 42, 79, .07);
}

.rpe-card.is-recommended {
  border: 2px solid var(--rpe-blue);
  box-shadow: 0 13px 30px rgba(95, 114, 231, .13);
}

.rpe-recommended-label {
  position: absolute;
  top: -13px;
  left: 50%;
  z-index: 2;
  transform: translateX(-50%);
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--rpe-blue);
  color: #fff;
  white-space: nowrap;
  font-size: 12px;
  line-height: 1;
  font-weight: 800;
  box-shadow: 0 5px 14px rgba(95, 114, 231, .18);
}

.rpe-card-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
  padding: 32px 30px 27px;
}

.rpe-pricing .rpe-card h3 {
  margin: 0 0 7px;
  color: #252525;
  font-size: 20px;
  line-height: 1.22;
  font-family: Nunito, sans-serif !important;
  font-weight: 800 !important;
  letter-spacing: -.2px;
}

.rpe-plan-description {
  min-height: 42px;
  margin: 0 0 18px;
  color: var(--rpe-muted);
  font-size: 14px;
  line-height: 1.45;
  font-weight: 500;
}

.rpe-price-panel {
  display: none;
}

.rpe-price-panel.is-active {
  display: block;
}

.rpe-price-line {
  display: flex;
  align-items: baseline;
  gap: 4px;
  min-width: 0;
  line-height: 1;
}

.rpe-currency {
  flex: 0 0 auto;
  color: #151515;
  white-space: nowrap;
  font-size: 21px;
  font-weight: 900;
}

.rpe-price-line strong {
  min-width: 0;
  color: #111;
  white-space: nowrap;
  font-size: clamp(29px, 2.55vw, 34px);
  line-height: 1;
  letter-spacing: -.8px;
  font-weight: 900;
}

.rpe-price-line small {
  flex: 0 0 auto;
  color: var(--rpe-muted);
  white-space: nowrap;
  font-size: 13px;
  font-weight: 600;
}

.rpe-equivalent {
  margin-top: 7px;
  color: var(--rpe-muted);
  font-size: 12.5px;
  line-height: 1.35;
}

.rpe-savings {
  margin-top: 6px;
  color: var(--rpe-green);
  font-size: 13px;
  line-height: 1.35;
  font-weight: 800;
}

.rpe-trial-badge {
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  margin-top: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--rpe-green-bg);
  color: var(--rpe-green);
  font-size: 12.5px;
  line-height: 1.25;
  font-weight: 800;
}


.rpe-features {
  display: grid;
  gap: 11px;
  margin: 19px 0 21px;
  padding: 18px 0 0;
  border-top: 1px solid #edf0f4;
  list-style: none;
}

.rpe-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
  color: var(--rpe-text);
  font-size: 14.5px;
  line-height: 1.4;
  font-weight: 500;
}

.rpe-features li > span:last-child {
  min-width: 0;
  overflow-wrap: anywhere;
}

.rpe-check {
  flex: 0 0 auto;
  margin-top: 1px;
  color: var(--rpe-blue);
  font-size: 16px;
  line-height: 1.1;
  font-weight: 900;
}

.rpe-card-actions {
  margin-top: auto;
}

.rpe-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 46px;
  padding: 9px 14px;
  border: 1.5px solid var(--rpe-blue);
  border-radius: 12px;
  background: #fff;
  color: var(--rpe-blue) !important;
  text-align: center;
  text-decoration: none !important;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 800;
  transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.rpe-button:hover {
  background: var(--rpe-soft);
  transform: translateY(-1px);
}

.rpe-card.is-recommended .rpe-button {
  border-color: var(--rpe-blue);
  background: var(--rpe-blue);
  color: #fff !important;
  box-shadow: 0 7px 17px rgba(95, 114, 231, .16);
}

.rpe-card.is-recommended .rpe-button:hover {
  background: #5365d7;
}

.rpe-link-annual[hidden],
.rpe-link-monthly[hidden] {
  display: none !important;
}

@media (max-width: 1000px) {
  .rpe-cards {
    gap: 16px;
  }

  .rpe-card-inner {
    padding: 28px 24px 23px;
  }

  .rpe-plan-description {
    font-size: 13.5px;
  }

  .rpe-price-line strong {
    font-size: clamp(27px, 3.1vw, 32px);
  }
}

@media (max-width: 820px) {
  .rpe-cards {
    grid-template-columns: 1fr;
    gap: 18px;
    max-width: 560px;
  }

  .rpe-card.is-recommended {
    margin-top: 8px;
  }

  .rpe-card-inner {
    padding: 27px 24px 23px;
  }

  .rpe-plan-description {
    min-height: 0;
  }

  .rpe-price-line strong {
    font-size: 32px;
  }
}

@media (max-width: 600px) {
  .rpe-section-title {
    margin-bottom: 14px;
    font-size: 24px;
  }

  .rpe-toggle {
    width: 100%;
    max-width: 290px;
    margin-bottom: 28px;
    padding: 3px;
  }

  .rpe-toggle-btn {
    flex: 1;
    min-width: 0;
    min-height: 39px;
    padding: 8px 12px;
    font-size: 14.5px;
  }

  .rpe-cards {
    gap: 16px;
    max-width: none;
  }

  .rpe-card {
    border-radius: 16px;
  }

  .rpe-card:hover {
    transform: none;
    box-shadow: none;
  }

  .rpe-card.is-recommended {
    margin-top: 8px;
    box-shadow: 0 9px 22px rgba(95, 114, 231, .11);
  }

  .rpe-recommended-label {
    top: -11px;
    padding: 5px 13px;
    font-size: 11.5px;
  }

  .rpe-card-inner {
    padding: 24px 20px 20px;
  }

  .rpe-pricing .rpe-card h3 {
    margin-bottom: 6px;
    font-size: 18.5px;
  }

  .rpe-plan-description {
    margin-bottom: 15px;
    font-size: 13.5px;
    line-height: 1.42;
  }

  .rpe-currency {
    font-size: 19px;
  }

  .rpe-price-line strong {
    font-size: clamp(28px, 9vw, 31px);
    letter-spacing: -.6px;
  }

  .rpe-price-line small {
    font-size: 12px;
  }

  .rpe-equivalent,
  .rpe-savings {
    font-size: 12px;
  }

  .rpe-trial-badge {
    margin-top: 10px;
    padding: 6px 9px;
    white-space: normal;
    font-size: 11.8px;
  }

  .rpe-features {
    gap: 9px;
    margin: 16px 0 18px;
    padding-top: 15px;
  }

  .rpe-features li {
    gap: 9px;
    font-size: 13.8px;
    line-height: 1.35;
  }

  .rpe-check {
    font-size: 15px;
  }

  .rpe-button {
    min-height: 44px;
    border-radius: 11px;
    padding: 8px 12px;
    font-size: 14.5px;
  }

  .rpe-button:hover {
    transform: none;
  }
}

@media (max-width: 360px) {
  .rpe-card-inner {
    padding: 22px 17px 18px;
  }

  .rpe-price-line strong {
    font-size: 27px;
  }

  .rpe-currency {
    font-size: 18px;
  }

  .rpe-price-line small {
    font-size: 11.5px;
  }

  .rpe-features li {
    font-size: 13.4px;
  }
}
