/* Pricing-page components layered on top of site.css. */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  margin: -1px;
  padding: 0;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- hero + billing switch ---------- */
.pricing-hero {
  padding-bottom: 48px;
}

.pricing-hero h1 {
  max-width: 820px;
  margin-top: 20px;
  font-size: clamp(36px, 5.2vw, 54px);
  line-height: 1.1;
}

.pricing-hero .hero-lede {
  max-width: 660px;
  margin-top: 22px;
  font-size: 18px;
}

.billing-switch {
  margin-top: 32px;
}

.switch-group button.has-badge {
  display: flex;
  align-items: center;
  gap: 8px;
}

.save-badge {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--purple-soft);
  color: var(--purple);
  font-size: 10.5px;
  font-weight: 700;
}

.switch-group button.is-active .save-badge {
  background: linear-gradient(100deg, #8b5cf6, var(--pink));
  color: #fff;
}

/* `hidden` must beat anything that gives these spans a display value. */
[data-billing-panel][hidden] {
  display: none;
}

/* ---------- plan cards ---------- */
.plan-section {
  padding-block: 0;
}

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

.plan-card {
  display: flex;
  flex-direction: column;
  padding: 34px;
  border: 1px solid #ececf3;
  border-radius: 18px;
  background: #fff;
}

.plan-card.is-featured {
  border: 2px solid transparent;
  background: linear-gradient(#fff, #fff) padding-box, linear-gradient(120deg, #8b5cf6, var(--pink)) border-box;
  box-shadow: 0 24px 56px -30px rgb(124 58 237 / 35%);
}

.plan-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.plan-name {
  margin: 0;
  font-family: Sora, sans-serif;
  font-size: 19px;
  font-weight: 700;
}

.plan-badge {
  flex: none;
  padding: 5px 12px;
  border-radius: 999px;
  background: linear-gradient(100deg, #8b5cf6, var(--pink));
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.plan-desc {
  margin: 8px 0 0;
  color: var(--quiet);
  font-size: 13.5px;
  line-height: 1.6;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 22px 0 0;
}

.plan-amount {
  font-family: Sora, sans-serif;
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.plan-unit {
  color: var(--quiet);
  font-size: 13px;
}

.plan-features {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  margin-top: 24px;
  color: var(--text);
  font-size: 14px;
}

.plan-feature {
  display: flex;
  gap: 10px;
  margin: 0;
}

.plan-feature i {
  color: var(--purple);
  font-style: normal;
  font-weight: 700;
}

.plan-feature.is-lead span {
  font-weight: 600;
}

.plan-cta {
  display: block;
  margin-top: 28px;
  padding: 13px 0;
  font-size: 14.5px;
  text-align: center;
}

.plan-note {
  margin: 18px 0 0;
  color: #a5a5b8;
  font-size: 12.5px;
  text-align: center;
}

/* ---------- tier ladder ---------- */
.tier-ladder {
  display: grid;
  grid-template-columns: 1fr 48px 1fr 48px 1.05fr;
  align-items: end;
  margin-top: 56px;
}

.tier-card {
  min-height: 280px;
  padding: 28px;
  border: 1px solid #ececf3;
  border-radius: 18px;
  background: #fff;
}

.tier-card.is-mid {
  min-height: 350px;
  border-color: #e0d5f7;
  background: linear-gradient(160deg, #fdfcff, #f7f3fe);
}

.tier-card.is-top {
  min-height: 420px;
  border: 2px solid transparent;
  background: linear-gradient(#fff, #fff) padding-box, linear-gradient(120deg, #8b5cf6, var(--pink)) border-box;
  box-shadow: 0 24px 56px -30px rgb(124 58 237 / 30%);
}

.tier-label {
  margin: 0;
  color: var(--quiet);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.tier-label.is-accent {
  color: #a855f7;
}

.tier-label.is-gradient {
  background: linear-gradient(100deg, #8b5cf6, var(--pink));
  background-clip: text;
  color: transparent;
}

.tier-name {
  margin: 6px 0 0;
  font-family: Sora, sans-serif;
  font-size: 20px;
  font-weight: 700;
}

.tier-desc {
  margin: 6px 0 0;
  color: var(--quiet);
  font-size: 13px;
  line-height: 1.6;
}

.tier-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.tier-tag {
  padding: 6px 12px;
  border: 1px solid #ececf3;
  border-radius: 999px;
  background: var(--canvas);
  color: var(--text);
  font-size: 12.5px;
  font-weight: 600;
}

.tier-tag.is-accent {
  border-color: #e0d5f7;
  background: #fff;
  color: var(--purple);
}

.tier-tag.is-solid {
  padding: 7px 13px;
  border: 0;
  background: var(--dot, linear-gradient(100deg, #8b5cf6, var(--pink)));
  color: #fff;
}

.tier-plus {
  display: flex;
  align-self: center;
  justify-content: center;
}

.tier-plus span {
  display: flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--dot, linear-gradient(120deg, #8b5cf6, #a855f7));
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}

/* ---------- product screen + help band ---------- */
.screen-section {
  padding-top: 0;
}

.section-head.screen-head {
  max-width: 680px;
  margin: 0 auto 32px;
}

.screen-shot {
  max-width: 1060px;
  margin: 0 auto;
}

.help-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 36px;
  padding: 28px 32px;
  border: 1px solid #e0d5f7;
  border-radius: 16px;
  background: linear-gradient(160deg, #fdfcff, #f7f3fe);
}

.help-band h3 {
  margin: 0;
  font-family: Sora, sans-serif;
  font-size: 18px;
  font-weight: 700;
}

.help-band p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.help-band-cta {
  flex: none;
  padding: 13px 26px;
  font-size: 14.5px;
}

@media (max-width: 980px) {
  .plan-grid {
    grid-template-columns: 1fr;
  }

  .tier-ladder {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .tier-card,
  .tier-card.is-mid,
  .tier-card.is-top {
    min-height: 0;
  }

  .tier-plus {
    padding: 14px 0;
  }
}

@media (max-width: 640px) {
  .plan-card {
    padding: 26px 22px;
  }

  .plan-amount {
    font-size: 38px;
  }

  .tier-card {
    padding: 24px 20px;
  }

  .help-band {
    padding: 24px 20px;
  }

  .help-band-cta {
    width: 100%;
    text-align: center;
  }
}
