/* =========================================================
   300 USER PRICE + SAVINGS
   Canary Cloud / Google Workspace / Microsoft 365
   ========================================================= */


/* ---------------------------------------------------------
   Comparison table price emphasis
   --------------------------------------------------------- */

.lx-price-big {
  color: #fff;
  font-size: clamp(1.15rem, 1.8vw, 1.55rem);
  font-weight: 850;
  letter-spacing: -0.025em;
}

.lx-price-total .lx-canary-cell {
  background:
    radial-gradient(
      circle at center,
      rgba(150, 92, 255, 0.24),
      rgba(123, 60, 255, 0.08)
    );
}

.lx-price-total .lx-canary-cell .lx-price-big {
  color: #d8c6ff;
  font-size: clamp(1.35rem, 2.2vw, 1.9rem);
}

.lx-savings-row td:not(.lx-canary-cell) strong {
  color: #ffd36a;
}


/* =========================================================
   Savings callout
   ========================================================= */

.lx-savings {
  position: relative;
  width: 100%;
  margin: 0 0 34px;
  padding: clamp(24px, 4vw, 46px);
  overflow: hidden;

  border: 1px solid rgba(177, 122, 255, 0.24);
  border-radius: 26px;

  background:
    radial-gradient(
      circle at 15% 0%,
      rgba(123, 60, 255, 0.20),
      transparent 35%
    ),
    radial-gradient(
      circle at 90% 100%,
      rgba(97, 125, 255, 0.11),
      transparent 35%
    ),
    rgba(8, 10, 27, 0.92);

  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.35),
    0 0 70px rgba(123, 60, 255, 0.08);
}


/* ---------------------------------------------------------
   Header
   --------------------------------------------------------- */

.lx-savings__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 32px;
}

.lx-savings__copy {
  max-width: 760px;
}

.lx-savings__eyebrow {
  display: block;
  margin-bottom: 10px;

  color: #b17aff;

  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.lx-savings__copy h3 {
  margin: 0;

  color: #fff;

  font-size: clamp(1.8rem, 3.5vw, 3.4rem);
  font-weight: 850;
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.lx-savings__copy h3 span {
  display: block;

  background:
    linear-gradient(
      110deg,
      #ffffff 0%,
      #c7b4ff 35%,
      #965cff 70%,
      #617dff 100%
    );

  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lx-savings__copy p {
  max-width: 680px;
  margin: 14px 0 0;

  color: #939bbd;

  font-size: 0.92rem;
  line-height: 1.6;
}


/* ---------------------------------------------------------
   Savings badge
   --------------------------------------------------------- */

.lx-savings__badge {
  flex: 0 0 auto;

  min-width: 190px;
  padding: 18px 24px;

  border: 1px solid rgba(98, 229, 176, 0.28);
  border-radius: 18px;

  background:
    linear-gradient(
      145deg,
      rgba(98, 229, 176, 0.12),
      rgba(98, 229, 176, 0.025)
    );

  text-align: center;

  box-shadow:
    0 0 35px rgba(98, 229, 176, 0.06);
}

.lx-savings__badge span,
.lx-savings__badge small {
  display: block;

  color: #8ba99e;

  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.lx-savings__badge strong {
  display: block;
  margin: 4px 0;

  color: #62e5b0;

  font-size: clamp(1.6rem, 2.6vw, 2.25rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
}


/* =========================================================
   Three provider cards
   ========================================================= */

.lx-savings__plans,
.lx-savings__plans--three {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 18px;
}

.lx-savings-plan {
  display: flex;
  flex-direction: column;

  min-width: 0;
  padding: clamp(20px, 2.4vw, 30px);

  border: 1px solid rgba(188, 178, 255, 0.10);
  border-radius: 20px;

  background: rgba(12, 15, 38, 0.72);
}

.lx-savings-plan--canary {
  border-color: rgba(177, 122, 255, 0.34);

  background:
    radial-gradient(
      circle at 50% 0%,
      rgba(156, 92, 255, 0.18),
      transparent 65%
    ),
    rgba(20, 17, 48, 0.84);

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 45px rgba(123, 60, 255, 0.08);
}


/* ---------------------------------------------------------
   Provider header
   --------------------------------------------------------- */

.lx-savings-plan__header {
  display: flex;
  align-items: center;
  gap: 12px;

  min-height: 46px;
}

.lx-savings-plan__icon {
  flex: 0 0 auto;

  color: #ffd36a;

  font-size: 1.15rem;

  filter:
    drop-shadow(
      0 0 8px rgba(255, 211, 106, 0.5)
    );
}

.lx-savings-plan__header > div {
  min-width: 0;
}

.lx-savings-plan__header strong,
.lx-savings-plan__header span {
  display: block;
}

.lx-savings-plan__header strong {
  color: #fff;

  font-size: 1rem;
  font-weight: 800;
  line-height: 1.25;
}

.lx-savings-plan__header span {
  margin-top: 4px;

  color: #858dac;

  font-size: 0.7rem;
  line-height: 1.35;
}


/* ---------------------------------------------------------
   Per-user price
   --------------------------------------------------------- */

.lx-savings-plan__price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 7px;

  margin: 25px 0;
}

.lx-savings-plan__price strong {
  color: #fff;

  font-size: clamp(2.5rem, 4.5vw, 4.5rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.06em;
}

.lx-savings-plan--canary
.lx-savings-plan__price strong {
  color: #d8c6ff;

  text-shadow:
    0 0 25px rgba(156, 92, 255, 0.18);
}

.lx-savings-plan__price span {
  color: #858dac;

  font-size: 0.72rem;
  line-height: 1.3;
}


/* ---------------------------------------------------------
   Monthly / annual totals
   --------------------------------------------------------- */

.lx-savings-plan__totals {
  margin: auto 0 0;
}

.lx-savings-plan__totals div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;

  padding: 13px 0;

  border-top:
    1px solid rgba(188, 178, 255, 0.08);
}

.lx-savings-plan__totals dt {
  color: #858dac;

  font-size: 0.75rem;
  line-height: 1.35;
}

.lx-savings-plan__totals dd {
  flex: 0 0 auto;

  margin: 0;

  color: #fff;

  font-size: 1rem;
  font-weight: 800;
  line-height: 1.2;
}

.lx-savings-plan--canary
.lx-savings-plan__totals dd {
  color: #d8c6ff;
}


/* =========================================================
   Savings result bar
   ========================================================= */

.lx-savings__result {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;

  margin-top: 20px;
  overflow: hidden;

  border: 1px solid rgba(188, 178, 255, 0.10);
  border-radius: 16px;

  background: rgba(188, 178, 255, 0.08);
}

.lx-savings__result > div {
  min-width: 0;
  padding: 17px 20px;

  background: rgba(7, 9, 25, 0.95);

  text-align: center;
}

.lx-savings__result span {
  display: block;
  margin-bottom: 5px;

  color: #727b9d;

  font-size: 0.6rem;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.lx-savings__result strong {
  display: block;

  color: #fff;

  font-size: 1.05rem;
  font-weight: 850;
  line-height: 1.2;
}

.lx-savings__result-main {
  background:
    linear-gradient(
      135deg,
      rgba(98, 229, 176, 0.09),
      rgba(123, 60, 255, 0.10)
    ) !important;
}

.lx-savings__result-main strong {
  color: #62e5b0;

  font-size: clamp(1.2rem, 2vw, 1.5rem);
}


/* =========================================================
   Disclaimer
   ========================================================= */

.lx-savings__disclaimer {
  max-width: 1000px;
  margin: 16px auto 0;

  color: #727b9d;

  font-size: 0.68rem;
  line-height: 1.55;
  text-align: center;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

  .lx-savings {
    padding: 28px 22px;
  }

  .lx-savings__top {
    align-items: flex-start;
  }

  .lx-savings__plans,
  .lx-savings__plans--three {
    gap: 12px;
  }

  .lx-savings-plan {
    padding: 20px 16px;
  }

  .lx-savings-plan__price strong {
    font-size: clamp(2.4rem, 7vw, 3.5rem);
  }

  .lx-savings-plan__totals div {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .lx-savings__result > div {
    padding: 15px 12px;
  }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 650px) {

  .lx-savings {
    margin-bottom: 26px;
    padding: 22px 16px;

    border-radius: 20px;
  }


  /* Header */

  .lx-savings__top {
    display: block;
    margin-bottom: 22px;
  }

  .lx-savings__copy h3 {
    font-size: clamp(1.8rem, 9vw, 2.6rem);
  }

  .lx-savings__copy p {
    font-size: 0.86rem;
  }


  /* Badge */

  .lx-savings__badge {
    width: 100%;
    min-width: 0;

    margin-top: 20px;
  }


  /* Stack all three providers */

  .lx-savings__plans,
  .lx-savings__plans--three {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .lx-savings-plan {
    padding: 20px 18px;
  }

  .lx-savings-plan__header {
    min-height: 0;
  }

  .lx-savings-plan__price {
    margin: 20px 0;
  }

  .lx-savings-plan__price strong {
    font-size: 3.3rem;
  }


  /* Totals return to one line */

  .lx-savings-plan__totals div {
    flex-direction: row;
    align-items: center;
    gap: 14px;
  }


  /* Stack result bar */

  .lx-savings__result {
    grid-template-columns: 1fr;
  }

  .lx-savings__result > div {
    padding: 14px 16px;
  }

  .lx-savings__result-main {
    padding: 18px 16px !important;
  }

  .lx-savings__result-main strong {
    font-size: 1.45rem;
  }


  /* Disclaimer */

  .lx-savings__disclaimer {
    margin-top: 14px;
    padding-inline: 4px;

    font-size: 0.64rem;
    line-height: 1.6;
    text-align: left;
  }
}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 420px) {

  .lx-savings {
    padding: 20px 14px;
  }

  .lx-savings-plan {
    padding: 18px 15px;
  }

  .lx-savings-plan__price strong {
    font-size: 3rem;
  }

  .lx-savings-plan__totals dt {
    font-size: 0.7rem;
  }

  .lx-savings-plan__totals dd {
    font-size: 0.92rem;
  }
}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

  .lx-savings *,
  .lx-savings *::before,
  .lx-savings *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
