/* Compact Web App pricing page. */

.web-plans-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 7% 4%, rgba(224, 214, 255, 0.9), transparent 26rem),
    radial-gradient(circle at 92% 12%, rgba(244, 232, 255, 0.95), transparent 28rem),
    linear-gradient(180deg, #fcfbff 0%, #fff 52%, #faf8ff 100%);
  color: var(--sales-ink);
}

.web-plans-page .mira-page-nav a[href="/web/plans/"] {
  background: #f3effb;
  color: #5632ba;
}

.web-plans-main {
  width: min(calc(100% - 32px), var(--sales-max));
  margin: 0 auto;
  padding: clamp(34px, 4.5vw, 58px) 0 44px;
}

.web-plans-intro {
  max-width: 940px;
  margin: 0 auto;
  text-align: center;
}

.web-plans-copy h1 {
  margin: 0;
  color: #23172f;
  font-size: clamp(2.6rem, 4.7vw, 4.9rem);
  line-height: 0.96;
  letter-spacing: -0.068em;
}

.web-plans-copy h1 em {
  color: #7652ef;
  font-style: normal;
}

.web-plans-copy > p:not(.sales-eyebrow) {
  margin: 15px auto 0;
  color: #625a6e;
  font-size: clamp(0.95rem, 1.2vw, 1.08rem);
  line-height: 1.5;
}

.web-pricing-panel {
  margin-top: clamp(22px, 3vw, 34px);
  padding: clamp(18px, 2.3vw, 28px);
  border: 1px solid rgba(91, 57, 151, 0.13);
  border-radius: clamp(28px, 3vw, 40px);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(249, 245, 255, 0.9)),
    radial-gradient(circle at 50% 0%, rgba(118, 82, 239, 0.17), transparent 26rem);
  box-shadow: 0 28px 74px rgba(77, 50, 128, 0.12);
}

.web-pricing-title {
  margin: 0 0 clamp(18px, 2vw, 26px);
  color: #2a2037;
  font-size: clamp(1.75rem, 2.8vw, 2.8rem);
  line-height: 1;
  letter-spacing: -0.052em;
  text-align: center;
}

.web-pricing-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.08fr) minmax(0, 0.9fr);
  gap: clamp(10px, 1.5vw, 18px);
  align-items: center;
}

.web-plan-card {
  min-width: 0;
  min-height: 286px;
  padding: clamp(18px, 2vw, 25px);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid rgba(79, 51, 130, 0.13);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow:
    0 18px 42px rgba(78, 51, 126, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
  transition: transform 200ms ease, opacity 200ms ease, box-shadow 200ms ease;
}

.web-plan-card-side {
  opacity: 0.78;
  transform: scale(0.94);
}

.web-plan-card.is-featured {
  min-height: 340px;
  z-index: 2;
  border: 2px solid #7c55ef;
  background:
    radial-gradient(circle at 50% 0%, rgba(118, 82, 239, 0.26), transparent 14rem),
    linear-gradient(180deg, #fff 0%, #f3ebff 100%);
  box-shadow:
    0 30px 70px rgba(94, 58, 198, 0.24),
    0 0 0 5px rgba(118, 82, 239, 0.08),
    inset 0 1px 0 #fff;
  transform: translateY(-4px);
}

.web-plan-badge {
  width: fit-content;
  max-width: 100%;
  margin-bottom: 14px;
  padding: 6px 9px;
  overflow: hidden;
  border: 1px solid rgba(89, 55, 148, 0.12);
  border-radius: 999px;
  background: #f7f3ff;
  color: #745b92;
  font-size: 0.66rem;
  font-weight: 850;
  letter-spacing: 0.07em;
  line-height: 1.1;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.web-plan-card.is-featured .web-plan-badge {
  margin-right: 64px;
  border: 0;
  background: linear-gradient(135deg, #8f6dff, #6841e6);
  box-shadow: 0 9px 0 #5230bc, 0 17px 30px rgba(93, 53, 207, 0.28);
  color: #fff;
}

.web-plan-winner {
  width: 40px;
  height: 40px;
  position: absolute;
  top: -20px;
  left: 50%;
  display: grid;
  place-items: center;
  border: 3px solid #fff;
  border-radius: 50%;
  background: linear-gradient(145deg, #ffd773, #ff9d3d);
  box-shadow: 0 7px 0 #d86a24, 0 16px 28px rgba(178, 83, 30, 0.27);
  color: #fff;
  font-size: 1.05rem;
  transform: translateX(-50%);
}

.web-plan-discount {
  min-width: 58px;
  padding: 8px 10px;
  position: absolute;
  top: 21px;
  right: 16px;
  border: 2px solid #fff;
  border-radius: 13px;
  background: linear-gradient(145deg, #ff8b5d, #ff4f3f);
  box-shadow: 0 7px 0 #c52f2a, 0 14px 24px rgba(198, 52, 43, 0.26);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 950;
  line-height: 1;
  text-align: center;
  transform: rotate(3deg);
}

.web-plan-discount-small {
  min-width: 51px;
  padding: 7px 8px;
  top: 18px;
  right: 14px;
  font-size: 0.75rem;
  opacity: 0.88;
}

.web-plan-card h2 {
  margin: 0 0 11px;
  color: #2a2037;
  font-size: clamp(1.12rem, 1.8vw, 1.55rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.web-plan-price strong {
  display: block;
  color: #7652ef;
  font-size: clamp(2.7rem, 4.6vw, 4.2rem);
  line-height: 0.88;
  letter-spacing: -0.073em;
}

.web-plan-card.is-featured .web-plan-price strong {
  font-size: clamp(3.7rem, 5.8vw, 5.35rem);
  text-shadow: 0 9px 24px rgba(95, 54, 195, 0.18);
}

.web-plan-price span {
  display: block;
  margin-top: 7px;
  color: #7c718b;
  font-size: 0.78rem;
  font-weight: 850;
}

.web-plan-charge {
  margin: 15px 0 0;
  padding: 10px 11px;
  border: 1px solid rgba(88, 57, 142, 0.1);
  border-radius: 13px;
  background: rgba(249, 246, 255, 0.9);
  color: #756b80;
  font-size: 0.76rem;
  line-height: 1.35;
}

.web-plan-charge b {
  color: #3d304d;
  font-weight: 900;
}

.web-plan-caption {
  width: fit-content;
  margin-top: 13px;
  color: #6841d8;
  font-size: 0.78rem;
}

.web-pro-detail {
  margin-top: 18px;
  padding: 15px;
  display: grid;
  grid-template-columns: minmax(180px, 0.68fr) minmax(0, 1.32fr);
  gap: 13px;
  border: 1px solid rgba(84, 54, 141, 0.1);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
}

.web-pro-detail-head {
  min-width: 0;
  padding: 14px;
  display: grid;
  align-content: center;
  border-radius: 16px;
  background:
    radial-gradient(circle at 16% 12%, rgba(118, 82, 239, 0.15), transparent 11rem),
    #f8f4ff;
}

.web-pro-detail-head strong {
  color: #2d223b;
  font-size: clamp(1.1rem, 1.5vw, 1.35rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.web-pro-detail-head p {
  margin: 8px 0 0;
  color: #6b6277;
  font-size: 0.76rem;
  line-height: 1.45;
}

.web-pro-feature-grid {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.web-pro-feature-grid article {
  min-width: 0;
  min-height: 118px;
  padding: 11px;
  display: grid;
  align-content: start;
  border: 1px solid rgba(84, 54, 141, 0.08);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 10px 26px rgba(78, 51, 126, 0.05);
}

.web-pro-feature-grid i {
  width: fit-content;
  padding: 4px 6px;
  border-radius: 9px;
  background: #efe8ff;
  color: #6d49d3;
  font-size: 0.55rem;
  font-style: normal;
  font-weight: 900;
}

.web-pro-feature-grid b {
  margin-top: 8px;
  color: #30243f;
  font-size: 0.82rem;
  line-height: 1.1;
}

.web-pro-feature-grid article > span {
  margin-top: 5px;
  color: #716879;
  font-size: 0.68rem;
  line-height: 1.35;
}

.web-pricing-actions {
  margin-top: 17px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 11px;
  text-align: center;
}

.web-pricing-actions .button {
  min-width: min(100%, 310px);
}

.web-pricing-note {
  max-width: 920px;
  margin: 0;
  color: #766d81;
  font-size: 0.72rem;
  line-height: 1.48;
}

.web-pricing-note a {
  color: #6540d0;
  font-weight: 850;
  text-underline-offset: 3px;
}

@media (hover: hover) {
  .web-plan-card-side:hover {
    opacity: 0.9;
    transform: scale(0.97);
  }
}

@media (min-width: 1024px) and (max-height: 820px) {
  .web-plans-main {
    padding-top: 26px;
  }

  .web-plans-copy h1 {
    font-size: clamp(2.5rem, 4vw, 3.9rem);
  }

  .web-plan-card {
    min-height: 250px;
  }

  .web-plan-card.is-featured {
    min-height: 300px;
  }

  .web-plan-card.is-featured .web-plan-price strong {
    font-size: clamp(3.5rem, 5vw, 4.6rem);
  }
}

@media (max-width: 760px) {
  .web-plans-main {
    width: min(calc(100% - 20px), var(--sales-max));
    padding: 28px 0 28px;
  }

  .web-plans-copy h1 {
    font-size: clamp(2.25rem, 10.7vw, 3.3rem);
  }

  .web-plans-copy > p:not(.sales-eyebrow) {
    max-width: 560px;
    margin-top: 11px;
    font-size: 0.86rem;
  }

  .web-pricing-panel {
    margin-top: 18px;
    padding: 13px 10px 15px;
    border-radius: 25px;
  }

  .web-pricing-title {
    margin-bottom: 18px;
    font-size: clamp(1.6rem, 7vw, 2.1rem);
  }

  .web-pricing-grid {
    grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.14fr) minmax(0, 0.88fr);
    gap: 6px;
  }

  .web-plan-card {
    min-height: 218px;
    padding: 12px 9px;
    border-radius: 18px;
  }

  .web-plan-card-side {
    opacity: 0.72;
    transform: scale(0.95);
  }

  .web-plan-card.is-featured {
    min-height: 276px;
    padding: 17px 10px 14px;
    border-radius: 21px;
    transform: translateY(-2px);
  }

  .web-plan-badge {
    max-width: 100%;
    margin-bottom: 9px;
    padding: 5px 6px;
    font-size: 0.52rem;
    letter-spacing: 0.035em;
  }

  .web-plan-card.is-featured .web-plan-badge {
    width: 100%;
    margin-right: 0;
    padding: 6px 4px;
    overflow: visible;
    font-size: 0.48rem;
    text-align: center;
    text-overflow: clip;
    white-space: normal;
  }

  .web-plan-winner {
    width: 32px;
    height: 32px;
    top: -16px;
    border-width: 2px;
    box-shadow: 0 5px 0 #d86a24, 0 10px 20px rgba(178, 83, 30, 0.24);
    font-size: 0.85rem;
  }

  .web-plan-discount {
    min-width: 47px;
    padding: 6px 6px;
    top: 8px;
    right: -5px;
    border-width: 2px;
    border-radius: 10px;
    box-shadow: 0 5px 0 #c52f2a, 0 9px 17px rgba(198, 52, 43, 0.22);
    font-size: 0.68rem;
  }

  .web-plan-discount-small {
    min-width: 40px;
    top: 9px;
    right: -2px;
    font-size: 0.58rem;
  }

  .web-plan-card h2 {
    margin-bottom: 8px;
    font-size: clamp(0.76rem, 3.2vw, 0.98rem);
  }

  .web-plan-price strong {
    font-size: clamp(1.65rem, 7.5vw, 2.25rem);
  }

  .web-plan-card.is-featured .web-plan-price strong {
    font-size: clamp(2.55rem, 11vw, 3.55rem);
  }

  .web-plan-price span {
    margin-top: 5px;
    font-size: 0.62rem;
  }

  .web-plan-charge {
    margin-top: 11px;
    padding: 7px 5px;
    border-radius: 10px;
    font-size: 0.58rem;
    line-height: 1.28;
    text-align: center;
  }

  .web-plan-caption {
    margin: 10px auto 0;
    font-size: 0.66rem;
  }

  .web-pro-detail {
    margin-top: 12px;
    padding: 9px;
    grid-template-columns: 1fr;
    gap: 8px;
    border-radius: 17px;
  }

  .web-pro-detail-head {
    padding: 11px;
    border-radius: 13px;
    text-align: center;
  }

  .web-pro-detail-head strong {
    font-size: 1rem;
  }

  .web-pro-detail-head p {
    margin-top: 5px;
    font-size: 0.66rem;
    line-height: 1.35;
  }

  .web-pro-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .web-pro-feature-grid article {
    min-height: 103px;
    padding: 8px;
    border-radius: 12px;
  }

  .web-pro-feature-grid i {
    padding: 3px 5px;
    font-size: 0.48rem;
  }

  .web-pro-feature-grid b {
    margin-top: 6px;
    font-size: 0.7rem;
  }

  .web-pro-feature-grid article > span {
    margin-top: 4px;
    font-size: 0.58rem;
    line-height: 1.28;
  }

  .web-pricing-actions {
    margin-top: 13px;
  }

  .web-pricing-actions .button {
    width: 100%;
    min-height: 48px;
  }

  .web-pricing-note {
    font-size: 0.65rem;
    line-height: 1.43;
  }
}

@media (max-width: 359px) {
  .web-plans-main {
    width: min(calc(100% - 14px), var(--sales-max));
  }

  .web-pricing-panel {
    padding-inline: 7px;
  }

  .web-pricing-grid {
    gap: 3px;
  }

  .web-plan-card {
    padding-inline: 6px;
  }

  .web-plan-card h2 {
    font-size: 0.7rem;
  }

  .web-plan-charge {
    font-size: 0.53rem;
  }
}
