/* /var/www/relyn/static_src/css/pricing.css */

.pricing-section {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 0 24px 80px;
}

.pricing-shell {
  position: relative;
  width: 100%;
  max-width: 1919px;
  min-height: 1195px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 114px;

  /* Blur placement for this section */
  --blur-top: 58%;
  --blur-h: 537px;
}

.pricing-header {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #FFFFFF;
  max-width: 920px;
}

.pricing-kicker {
  margin: 0;
  font-family: "Urbanist", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #FFFFFF;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.pricing-title {
  margin: 20px 0 0;
  font-family: "Urbanist", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 48px;
  font-weight: 600;
  color: #FFFFFF;
}

.pricing-toggle-wrap {
  position: relative;
  z-index: 1;
  margin-top: 65px;
  width: 100%;
  display: flex;
  justify-content: center;
}

/* Glass toggle bar */
.pricing-toggle {
  position: relative;
  width: 316px;
  height: 50px;

  /* ✅ SINGLE SOURCE OF TRUTH FOR CURVE + PERFECT VERTICAL CENTERING */
  --toggle-r: 50px;
  --toggle-pad-x: 8px;
  --toggle-pad-y: 5px;

  --toggle-inner-r: calc(var(--toggle-r) - var(--toggle-pad-y));
  --toggle-pill-h: calc(100% - (var(--toggle-pad-y) * 2));

  /* ✅ JS will set this precisely based on the active button */
  --pill-x: 0px;

  border-radius: var(--toggle-r);
  border: 1px solid #633EB2;

  background: linear-gradient(
    135deg,
    rgba(99, 62, 178, 0.35) 0%,
    rgba(99, 62, 178, 0.12) 100%
  );

  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: var(--toggle-pad-y) var(--toggle-pad-x);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.75);
  overflow: visible;
}

/* Active pill */
.pricing-toggle-pill {
  position: absolute;
  top: var(--toggle-pad-y);
  left: var(--toggle-pad-x);
  width: calc((100% - (var(--toggle-pad-x) * 2)) / 2);
  height: var(--toggle-pill-h);

  /* ✅ MATCH INNER CURVE PERFECTLY */
  border-radius: var(--toggle-inner-r);

  background: #633EB2;

  transform: translateX(var(--pill-x));
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
  z-index: 1;
}

/* Buttons */
.pricing-toggle-btn {
  position: relative;
  z-index: 2;

  /* ✅ Make both halves mathematically equal */
  flex: 1 1 0;
  width: auto;
  height: var(--toggle-pill-h);

  /* ✅ MATCH INNER CURVE PERFECTLY */
  border-radius: var(--toggle-inner-r);

  border: none;
  background: transparent;

  font-family: "Urbanist", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  font-weight: 600;

  color: rgba(255, 255, 255, 0.92);
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;

  transition: color 0.35s ease, transform 0.35s ease;
}

.pricing-toggle-btn:hover {
  transform: translateY(-1px);
}

.pricing-toggle-btn.is-active {
  color: #FFFFFF;
}

/* Discount badge */
.pricing-toggle-badge {
  position: absolute;
  right: -10px;
  top: -11px;
  width: 66px;
  height: 22px;
  border-radius: 20px;
  background: #633EB2;

  display: flex;
  align-items: center;
  justify-content: center;

  font-family: "Urbanist", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #FFFFFF;

  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.75);
  z-index: 3;
}

/* Pricing cards wrap */
.pricing-cards-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  margin-top: 125px;
  display: flex;
  justify-content: center;
}

/* 3-card row container */
.pricing-cards-row {
  position: relative;
  width: 100%;
  max-width: 1164px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 58px;
}

/* Base card */
.pricing-plan-card {
  position: relative;
  width: 345px;
  height: 526px;
  border-radius: 30px;
  overflow: visible;
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.85);
}

/* Inner content */
.pricing-card-inner {
  width: 100%;
  height: 100%;
  padding: 41px 24px 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* CENTER featured card */
.pricing-plan-featured {
  border: 2px solid #FFFFFF;

  background: linear-gradient(
    180deg,
    rgba(99, 62, 178, 0.80) 0%,
    rgba(99, 62, 178, 0.80) 72%,
    rgba(99, 62, 178, 0.20) 100%
  );
}

/* LEFT & RIGHT glass card */
.pricing-plan-glass {
  border: 1px solid #633EB2;
  background: linear-gradient(135deg, rgba(99, 62, 178, 0.8) 0%, rgba(99, 62, 178, 0.2) 100%);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

/* Vertical offset: left and right are 77px lower */
.pricing-plan-left,
.pricing-plan-right {
  margin-top: 77px;
}

/* Most Popular badge */
.pricing-popular-badge {
  position: absolute;
  top: -16px;
  right: 30px;
  width: 135px;
  height: 33px;
  border-radius: 20px;
  background: #FFFFFF;

  display: flex;
  align-items: center;
  justify-content: center;

  font-family: "Urbanist", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #633EB2;

  box-shadow: 0 16px 55px rgba(0, 0, 0, 0.75);
}

/* Plan name */
.pricing-plan-name {
  margin: 0;
  font-family: "Urbanist", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: #FFFFFF;
}

/* Price */
.pricing-plan-price {
  margin: 25px 0 0;
  font-family: "Urbanist", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 40px;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.05;
}

/* Billed text */
.pricing-plan-billed {
  margin: 25px 0 0;
  font-family: "Urbanist", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #FFFFFF;
  opacity: 0.95;
}

/* Divider */
.pricing-divider {
  width: 298px;
  height: 1px;
  background: rgba(255, 255, 255, 1);
  margin-top: 16px;
}

/* Feature list */
.pricing-feature-list {
  list-style: none;
  padding: 0;
  margin: 25px 0 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.pricing-feature-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Tick in circle */
.pricing-tick {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 16px;
}

.pricing-tick svg {
  display: block;
}

/* Purple circle with white tick */
.pricing-tick--purple {
  background: #633EB2;
  color: #FFFFFF;
}

/* White circle with purple tick */
.pricing-tick--white {
  background: #FFFFFF;
  color: #633EB2;
}

/* Feature text */
.pricing-feature-text {
  font-family: "Urbanist", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #FFFFFF;
}

/* Choose Plan button */
.pricing-choose-btn {
  width: 252px;
  height: 40px;
  border-radius: 8px;
  border: none;
  cursor: pointer;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  font-family: "Urbanist", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  font-weight: 600;

  margin-top: 20px;
  align-self: center;

  transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
}

.pricing-choose-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55);
}

.pricing-choose-btn--purple {
  background: #633EB2;
  color: #FFFFFF;
}

.pricing-choose-btn--white {
  background: #FFFFFF;
  color: #633EB2;
}

/* Responsive */
@media (max-width: 1200px) {
  .pricing-cards-row {
    max-width: 980px;
    gap: 32px;
  }
}

@media (max-width: 1024px) {
  .pricing-section {
    padding: 0 16px 64px;
  }

  .pricing-shell {
    padding-top: 96px;
    min-height: 980px;
  }

  .pricing-title {
    font-size: 40px;
  }

  .pricing-cards-row {
    flex-direction: column;
    align-items: center;
    gap: 28px;
    max-width: 420px;
  }

  .pricing-plan-left,
  .pricing-plan-right {
    margin-top: 0;
  }

  .pricing-divider {
    width: 100%;
    max-width: 298px;
  }
}

@media (max-width: 768px) {
  .pricing-shell {
    padding-top: 80px;
    min-height: 900px;
  }

  .pricing-kicker {
    font-size: 16px;
    letter-spacing: 0.14em;
  }

  .pricing-title {
    font-size: 28px;
  }

  .pricing-cards-wrap {
    margin-top: 90px;
  }

  .pricing-toggle-btn {
    font-size: 14px;
  }

  .pricing-toggle-badge {
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .pricing-shell {
    padding-top: 70px;
    min-height: 860px;
  }

  .pricing-kicker {
    font-size: 14px;
    letter-spacing: 0.12em;
  }

  .pricing-title {
    font-size: 22px;
  }

  .pricing-toggle {
    width: 296px;
    height: 48px;

    /* ✅ Keep curve math aligned even on mobile */
    --toggle-r: 48px;
    --toggle-pad-x: 8px;
    --toggle-pad-y: 5px;

    --toggle-inner-r: calc(var(--toggle-r) - var(--toggle-pad-y));
    --toggle-pill-h: calc(100% - (var(--toggle-pad-y) * 2));
  }

  .pricing-plan-card {
    width: 300px;
    height: 520px;
  }

  .pricing-card-inner {
    padding: 34px 18px 0;
  }

  .pricing-popular-badge {
    right: 18px;
    font-size: 12px;
    width: 120px;
    height: 30px;
  }

  .pricing-plan-name {
    font-size: 16px;
  }

  .pricing-plan-price {
    font-size: 32px;
    margin-top: 18px;
  }

  .pricing-plan-billed {
    font-size: 12px;
    margin-top: 18px;
  }

  .pricing-feature-list {
    gap: 18px;
    margin-top: 18px;
  }

  .pricing-feature-text {
    font-size: 13px;
  }

  .pricing-choose-btn {
    width: 100%;
    max-width: 252px;
    font-size: 13px;
  }
}
