/* Plans page inside the stage window: the banner for a visitor sent from
 * locked content, the monthly and yearly toggle, and the comparison table
 * with the same rows for every plan. Unlayered like the stage sheets it
 * augments, and scoped under .pitch-site.
 * ---------------------------------------------------------------------- */

.pitch-site .plans-source {
  align-items: center;
  background: var(--ps-paper-shade);
  border: 1px solid var(--color-border-subtle);
  border-inline-start: 4px solid var(--ps-yellow);
  border-radius: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs) var(--space-l);
  justify-content: space-between;
  padding: var(--space-s) var(--space-m);
}

.pitch-site .plans-source__link {
  color: var(--ps-ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.pitch-site .plans-source__back {
  white-space: nowrap;
}

.pitch-site .plans-header {
  align-items: flex-end;
}

.pitch-site .plans-intervals {
  border: 2px solid var(--ps-ink);
  border-radius: 9px;
  display: inline-flex;
  gap: 0;
  overflow: hidden;
}

.pitch-site .plans-intervals__option {
  align-items: center;
  background: var(--ps-paper-raised);
  color: var(--ps-ink);
  display: inline-flex;
  font-weight: 600;
  gap: var(--space-xs);
  padding: 0.45rem 0.9rem;
  text-decoration: none;
}

.pitch-site .plans-intervals__option + .plans-intervals__option {
  border-inline-start: 2px solid var(--ps-ink);
}

.pitch-site .plans-intervals__option:hover {
  background: var(--ps-paper-deep);
}

.pitch-site .plans-intervals__option[aria-current] {
  background: var(--ps-ink);
  color: var(--ps-cream);
}

.pitch-site .plans-intervals__option:focus-visible {
  outline-offset: -5px;
}

.pitch-site .plans-intervals__saving {
  font-family: var(--font-mono);
  font-size: 12px;
}

.pitch-site .plans-table {
  border-collapse: collapse;
  inline-size: 100%;
  table-layout: fixed;
}

.pitch-site .plans-table th,
.pitch-site .plans-table td {
  border-block-end: 1px solid var(--color-border-subtle);
  font-size: 0.875rem;
  padding: var(--space-s);
  text-align: start;
  vertical-align: top;
}

.pitch-site .plans-table__corner {
  inline-size: 22%;
}

.pitch-site .plans-table th.plans-table__tier {
  font-family: inherit;
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
}

.pitch-site .plans-table th.plans-table__tier {
  height: 1px;
}

.pitch-site .plans-table__tier > .stack-xs {
  height: 100%;
}

.pitch-site .plans-table__tier .btn {
  inline-size: 100%;
  margin-block-start: auto;
  min-inline-size: 0;
  white-space: normal;
}

.pitch-site .plans-table__name {
  font-size: 1.125rem;
  font-weight: 700;
}

.pitch-site .plans-table__amount {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 600;
}

.pitch-site .plans-table__period {
  color: var(--ps-ink-soft);
  font-family: var(--font-mono);
  font-size: 12px;
}

.pitch-site .plans-table__description {
  color: var(--ps-ink-soft);
  font-size: 0.875rem;
  margin-block-end: var(--space-xs);
}

.pitch-site .plans-table th.plans-table__row-label {
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: normal;
  text-transform: none;
}

.pitch-site .plans-table__row-note {
  color: var(--ps-ink-soft);
  display: block;
  font-size: 12px;
  font-weight: 400;
}

.pitch-site .plans-table__number {
  font-family: var(--font-mono);
}

.pitch-site .plans-table__check {
  font-weight: 700;
}

.pitch-site .plans-table__missing {
  color: var(--ps-ink-soft);
}

.pitch-site .plans-table__cell--current {
  background: var(--color-highlight);
}

.pitch-site .plans-table__cell--recommended {
  box-shadow: inset 2px 0 0 var(--ps-ink), inset -2px 0 0 var(--ps-ink);
}

.pitch-site .plans-table thead .plans-table__cell--recommended {
  box-shadow: inset 2px 0 0 var(--ps-ink), inset -2px 0 0 var(--ps-ink), inset 0 2px 0 var(--ps-ink);
}

.pitch-site .plans-table tbody tr:last-child .plans-table__cell--recommended {
  box-shadow: inset 2px 0 0 var(--ps-ink), inset -2px 0 0 var(--ps-ink), inset 0 -2px 0 var(--ps-ink);
}

@media (max-width: 49.999rem) {
  .pitch-site .plans-table__scroll {
    overflow-x: auto;
  }

  .pitch-site .plans-table {
    min-inline-size: 44rem;
  }
}
