/* Kornich membership and pricing experience — v4.0.0 */
.re-membership {
  --re-ink: #161127;
  --re-muted: #716b80;
  --re-line: rgba(77, 58, 112, .13);
  --re-primary: #5f36c7;
  --re-primary-2: #8762e7;
  --re-gold: #d2a54c;
  --re-soft: #f7f4fc;
  --re-success: #17865b;
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 8vw, 104px) 0;
  color: var(--re-ink);
  background:
    radial-gradient(circle at 8% 9%, rgba(135, 98, 231, .13), transparent 29rem),
    radial-gradient(circle at 91% 86%, rgba(210, 165, 76, .12), transparent 25rem),
    #fbfaff;
}

[dir="rtl"] .re-membership,
.re-membership[dir="rtl"] {
  direction: rtl;
}

.re-membership::before,
.re-membership::after {
  position: absolute;
  border: 1px solid rgba(95, 54, 199, .1);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.re-membership::before {
  top: -160px;
  inset-inline-end: -130px;
  width: 380px;
  height: 380px;
}

.re-membership::after {
  bottom: -130px;
  inset-inline-start: -90px;
  width: 280px;
  height: 280px;
}

.re-membership__shell {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
}

.re-membership__eyebrow {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  min-height: 34px;
  padding: 6px 13px;
  border: 1px solid rgba(95, 54, 199, .16);
  border-radius: 999px;
  color: var(--re-primary);
  background: rgba(255, 255, 255, .86);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .02em;
}

.re-membership__eyebrow::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--re-gold);
  box-shadow: 0 0 0 4px rgba(210, 165, 76, .14);
  content: "";
}

.re-membership__hero {
  max-width: 760px;
  margin: 0 auto clamp(32px, 5vw, 56px);
  text-align: center;
}

.re-membership__hero h1 {
  max-width: 720px;
  margin: 17px auto 14px;
  color: var(--re-ink);
  font-size: clamp(34px, 5vw, 62px);
  font-weight: 900;
  line-height: 1.07;
  letter-spacing: -.035em;
}

.re-membership__hero p {
  max-width: 660px;
  margin: 0 auto;
  color: var(--re-muted);
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.85;
}

.re-apply {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.55fr);
  overflow: hidden;
  border: 1px solid var(--re-line);
  border-radius: 30px;
  background: #fff;
  box-shadow: 0 30px 90px rgba(38, 22, 73, .13);
}

.re-apply__aside {
  position: relative;
  min-height: 100%;
  padding: clamp(30px, 5vw, 54px);
  color: #fff;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, .08), transparent 42%),
    linear-gradient(145deg, #21163a, #4c278f 67%, #7147ca);
}

.re-apply__aside::after {
  position: absolute;
  right: -76px;
  bottom: -90px;
  width: 250px;
  height: 250px;
  border: 48px solid rgba(255, 255, 255, .05);
  border-radius: 50%;
  content: "";
}

.re-apply__aside > * {
  position: relative;
  z-index: 1;
}

.re-apply__aside h2 {
  margin: 20px 0 14px;
  color: #fff;
  font-size: clamp(28px, 3vw, 39px);
  font-weight: 900;
  line-height: 1.22;
}

.re-apply__aside p {
  margin: 0;
  color: rgba(255, 255, 255, .72);
  line-height: 1.8;
}

.re-apply__steps {
  display: grid;
  gap: 18px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
}

.re-apply__steps li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 13px;
  align-items: center;
  color: rgba(255, 255, 255, .9);
  font-size: 14px;
  font-weight: 700;
}

.re-apply__steps span {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 12px;
  color: #f1ca78;
  background: rgba(255, 255, 255, .08);
}

.re-apply__trust {
  display: flex;
  gap: 9px;
  align-items: center;
  margin-top: 42px;
  padding: 13px 14px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 14px;
  color: rgba(255, 255, 255, .78);
  background: rgba(255, 255, 255, .06);
  font-size: 12px;
}

.re-apply__main {
  padding: clamp(26px, 5vw, 56px);
}

.re-identity {
  display: flex;
  gap: 13px;
  align-items: center;
  margin-bottom: 25px;
  padding: 13px 16px;
  border: 1px solid var(--re-line);
  border-radius: 14px;
  background: var(--re-soft);
}

.re-identity__icon {
  display: grid;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  color: var(--re-primary);
  background: #fff;
  box-shadow: 0 7px 20px rgba(49, 29, 91, .08);
}

.re-identity p {
  margin: 0;
  color: var(--re-muted);
  font-size: 12px;
  line-height: 1.5;
}

.re-identity strong {
  display: block;
  overflow: hidden;
  color: var(--re-ink);
  font-size: 14px;
  text-overflow: ellipsis;
}

.re-notice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 22px;
  padding: 14px 16px;
  border: 1px solid rgba(210, 165, 76, .3);
  border-radius: 14px;
  color: #6d511b;
  background: #fffaf0;
  font-size: 13px;
  line-height: 1.7;
}

.re-notice--success {
  border-color: rgba(23, 134, 91, .23);
  color: #105e41;
  background: #f0fbf6;
}

.re-apply__tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-bottom: 30px;
  padding: 6px;
  border-radius: 16px;
  background: #f1eef7;
}

.re-apply__tab {
  min-height: 48px;
  padding: 10px 16px;
  border: 0;
  border-radius: 12px;
  color: var(--re-muted);
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  transition: background .2s ease, box-shadow .2s ease, color .2s ease;
}

.re-apply__tab[aria-selected="true"] {
  color: var(--re-primary);
  background: #fff;
  box-shadow: 0 7px 22px rgba(48, 28, 86, .09);
}

.re-apply__panel[hidden] {
  display: none;
}

.re-apply__section + .re-apply__section {
  margin-top: 28px;
  padding-top: 27px;
  border-top: 1px solid var(--re-line);
}

.re-apply__section-title {
  display: flex;
  gap: 11px;
  align-items: center;
  margin: 0 0 19px;
  color: var(--re-ink);
  font-size: 18px;
  font-weight: 900;
}

.re-apply__section-title span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 9px;
  color: var(--re-primary);
  background: rgba(95, 54, 199, .09);
  font-size: 13px;
}

.re-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.re-field--wide {
  grid-column: 1 / -1;
}

.re-field label {
  display: block;
  margin-bottom: 8px;
  color: #332a45;
  font-size: 13px;
  font-weight: 800;
}

.re-field__optional {
  color: #958da2;
  font-weight: 500;
}

.re-field input,
.re-field select,
.re-field textarea {
  width: 100%;
  min-height: 49px;
  padding: 12px 14px;
  border: 1px solid #ddd7e7;
  border-radius: 12px;
  outline: 0;
  color: var(--re-ink);
  background: #fff;
  font: inherit;
  font-size: 14px;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.re-field textarea {
  min-height: 128px;
  resize: vertical;
  line-height: 1.7;
}

.re-field input:focus,
.re-field select:focus,
.re-field textarea:focus {
  border-color: var(--re-primary-2);
  box-shadow: 0 0 0 4px rgba(95, 54, 199, .1);
}

.re-field input::placeholder,
.re-field textarea::placeholder {
  color: #a39cac;
}

.re-consent {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 11px;
  align-items: start;
  margin: 24px 0 18px;
  color: var(--re-muted);
  font-size: 12px;
  line-height: 1.75;
}

.re-consent input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--re-primary);
}

.re-membership__button {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 54px;
  padding: 13px 22px;
  border: 0;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--re-primary), var(--re-primary-2));
  box-shadow: 0 14px 28px rgba(95, 54, 199, .23);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}

.re-membership__button:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(95, 54, 199, .3);
}

.re-membership__button--light {
  color: var(--re-primary);
  background: #fff;
  box-shadow: none;
}

.re-membership__button--light:hover {
  color: var(--re-primary);
}

.re-apply__footnote {
  margin: 12px 0 0;
  color: #918a9c;
  font-size: 11px;
  text-align: center;
}

.re-application-success {
  padding: clamp(24px, 5vw, 54px) 0;
  text-align: center;
}

.re-application-success__icon {
  display: grid;
  width: 76px;
  height: 76px;
  margin: 0 auto 22px;
  place-items: center;
  border-radius: 24px;
  color: var(--re-success);
  background: #e9f8f1;
  font-size: 30px;
  box-shadow: 0 14px 35px rgba(23, 134, 91, .13);
}

.re-application-success h2 {
  margin: 0 0 12px;
  color: var(--re-ink);
  font-size: clamp(27px, 4vw, 38px);
  font-weight: 900;
}

.re-application-success p {
  max-width: 560px;
  margin: 0 auto 25px;
  color: var(--re-muted);
  line-height: 1.8;
}

.re-application-success .re-membership__button {
  width: auto;
  min-width: 180px;
}

.re-pricing__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}

.re-plan {
  position: relative;
  display: flex;
  min-height: 100%;
  padding: 30px;
  overflow: hidden;
  border: 1px solid var(--re-line);
  border-radius: 24px;
  background: rgba(255, 255, 255, .91);
  box-shadow: 0 18px 55px rgba(42, 23, 79, .07);
  flex-direction: column;
}

.re-plan--featured {
  color: #fff;
  border-color: transparent;
  background:
    radial-gradient(circle at 86% 7%, rgba(210, 165, 76, .25), transparent 13rem),
    linear-gradient(145deg, #21163a, #512a98 70%, #6b40bf);
  box-shadow: 0 27px 75px rgba(50, 26, 93, .25);
  transform: translateY(-9px);
}

.re-plan__badge {
  position: absolute;
  top: 18px;
  inset-inline-end: 18px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #554017;
  background: #f0ca7a;
  font-size: 10px;
  font-weight: 900;
}

.re-plan__icon {
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: 24px;
  place-items: center;
  border-radius: 15px;
  color: var(--re-primary);
  background: rgba(95, 54, 199, .09);
  font-size: 19px;
}

.re-plan--featured .re-plan__icon {
  color: #f1cc7f;
  background: rgba(255, 255, 255, .1);
}

.re-plan h2 {
  margin: 0 0 8px;
  color: var(--re-ink);
  font-size: 22px;
  font-weight: 900;
}

.re-plan--featured h2 {
  color: #fff;
}

.re-plan__price {
  margin: 0 0 19px;
  color: var(--re-primary);
  font-size: 30px;
  font-weight: 900;
}

.re-plan__price s {
  margin-inline-end: 7px;
  color: #9b94a5;
  font-size: 14px;
  font-weight: 500;
}

.re-plan--featured .re-plan__price {
  color: #f1cc7f;
}

.re-plan__description {
  min-height: 52px;
  margin: 0 0 23px;
  color: var(--re-muted);
  font-size: 13px;
  line-height: 1.7;
}

.re-plan--featured .re-plan__description {
  color: rgba(255, 255, 255, .7);
}

.re-plan__features {
  display: grid;
  gap: 13px;
  margin: 0 0 28px;
  padding: 22px 0 0;
  border-top: 1px solid var(--re-line);
  list-style: none;
}

.re-plan--featured .re-plan__features {
  border-color: rgba(255, 255, 255, .13);
}

.re-plan__features li {
  display: grid;
  grid-template-columns: 21px 1fr;
  gap: 9px;
  align-items: start;
  color: #4b4356;
  font-size: 13px;
  line-height: 1.55;
}

.re-plan--featured .re-plan__features li {
  color: rgba(255, 255, 255, .86);
}

.re-plan__features i {
  color: var(--re-success);
  line-height: 1.55;
}

.re-plan--featured .re-plan__features i {
  color: #efca7a;
}

.re-plan .re-membership__button {
  margin-top: auto;
}

.re-plan:not(.re-plan--featured) .re-membership__button {
  color: var(--re-primary);
  border: 1px solid rgba(95, 54, 199, .22);
  background: #fff;
  box-shadow: none;
}

.re-pricing__assurance {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 30px;
}

.re-pricing__assurance div {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  padding: 15px;
  border: 1px solid var(--re-line);
  border-radius: 15px;
  color: #5f586a;
  background: rgba(255, 255, 255, .7);
  font-size: 12px;
  font-weight: 700;
}

.re-pricing__assurance i {
  color: var(--re-primary);
}

.re-pricing__cta {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  margin-top: clamp(36px, 6vw, 70px);
  padding: clamp(26px, 5vw, 44px);
  border-radius: 24px;
  color: #fff;
  background: linear-gradient(135deg, #201638, #4b278e);
}

.re-pricing__cta h2 {
  margin: 0 0 8px;
  color: #fff;
  font-size: clamp(23px, 3vw, 34px);
  font-weight: 900;
}

.re-pricing__cta p {
  margin: 0;
  color: rgba(255, 255, 255, .7);
}

.re-pricing__cta .re-membership__button {
  width: auto;
  min-width: 170px;
}

@media (max-width: 991px) {
  .re-apply {
    grid-template-columns: 1fr;
  }

  .re-apply__aside {
    min-height: auto;
  }

  .re-apply__steps {
    grid-template-columns: repeat(3, 1fr);
  }

  .re-pricing__grid {
    grid-template-columns: 1fr;
    max-width: 630px;
    margin-inline: auto;
  }

  .re-plan--featured {
    transform: none;
  }
}

@media (max-width: 767px) {
  .re-membership {
    padding: 48px 0;
  }

  .re-membership__shell {
    width: min(100% - 22px, 1180px);
  }

  .re-apply {
    border-radius: 22px;
  }

  .re-apply__steps,
  .re-form-grid,
  .re-pricing__assurance,
  .re-pricing__cta {
    grid-template-columns: 1fr;
  }

  .re-pricing__cta {
    text-align: center;
  }

  .re-pricing__cta .re-membership__button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .re-membership *,
  .re-membership *::before,
  .re-membership *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
