/* Pricing page content – normal CSS (no HDS / hash files) */

.pricing-page {
  --pp-purple: #533afd;
  --pp-purple-hover: #5851ea;
  --pp-text: #0a2540;
  --pp-text-soft: #50617a;
  --pp-text-muted: #697386;
  --pp-bg: #ffffff;
  --pp-bg-soft: #f6f9fc;
  --pp-border: #e3e8ee;
  --pp-radius: 6px;
  font-family: sohne-var, Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--pp-text);
  background: var(--pp-bg);
}

.pricing-page *,
.pricing-page *::before,
.pricing-page *::after {
  box-sizing: border-box;
}

/* Match supply-new: HDS section-container owns width, gutters, and side rails */
.pricing-page .section-container.pricing-wrap {
  --section-container-pbs: 0;
  --section-container-pbe: 0;
  --section-container-pbs-tb: 0;
  --section-container-pbe-tb: 0;
  --section-container-pbs-dt: 0;
  --section-container-pbe-dt: 0;
}

/* Hero band: subnav + intro/cards share one billing-hero section like Connect. */
.pricing-page .billing-hero > .section-container.pricing-wrap {
  --section-container-pbs: 3rem;
  --section-container-pbs-tb: 4rem;
  --section-container-pbs-dt: 5rem;
  --section-container-pbe: 0;
  --section-container-pbe-tb: 0;
  --section-container-pbe-dt: 0;
}

/* Compare + CTA section below the hero band */
.pricing-page__main > .section-container.pricing-wrap {
  --section-container-pbs: 2.5rem;
  --section-container-pbs-tb: 3rem;
  --section-container-pbs-dt: 3.5rem;
  --section-container-pbe: 0;
  --section-container-pbe-tb: 0;
  --section-container-pbe-dt: 0;
}

/* ----- Hero ----- */

.pricing-hero__intro {
  max-width: 56ch;
  margin: 0 auto 2rem;
  text-align: center;
}

.pricing-hero__title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.pricing-hero__subtitle {
  margin: 0 auto;
  max-width: 38ch;
  font-size: 1.25rem;
  font-weight: 300;
  line-height: 1.45;
  color: var(--pp-text-soft);
  text-wrap: balance;
}

/* Tabs – compact centered pill (not full card width) */

.pricing-tabs {
  margin-bottom: 0;
  text-align: center;
}

.pricing-tabs__list {
  position: relative;
  display: inline-grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 4px;
  width: auto;
  max-width: calc(100% - 32px);
  padding: 4px;
  margin: 0;
  list-style: none;
  background: #f0f3f9;
  border: 1px solid var(--pp-border);
  border-radius: var(--pp-radius);
  vertical-align: top;
}

.pricing-tabs__btn {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 7px 16px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--pp-purple);
  font: inherit;
  font-size: 0.9375rem;
  line-height: 1.3;
  cursor: pointer;
  white-space: nowrap;
  text-align: center;
  transition: color 0.15s ease;
}

.pricing-tabs__btn:hover {
  color: var(--pp-purple-hover);
}

.pricing-tabs__btn.is-active {
  color: #fff;
}

.pricing-tabs__indicator {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 0;
  width: 0;
  border-radius: 4px;
  background: var(--pp-purple);
  transition: transform 0.22s cubic-bezier(0.45, 0.05, 0.55, 0.95), width 0.22s cubic-bezier(0.45, 0.05, 0.55, 0.95);
  pointer-events: none;
}

.pricing-tabs__panel {
  display: none;
}

.pricing-tabs__panel.is-active {
  display: block;
}

.pricing-tabs__panel .pricing-cards-bg {
  margin-top: var(--pricing-cards-outer-gap);
}

@media (min-width: 940px) {
  .pricing-hero__intro {
    margin-bottom: 2.5rem;
  }

  .pricing-hero__subtitle {
    max-width: 42ch;
  }
}

@media (max-width: 639px) {
  .pricing-tabs__list {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 360px;
    margin-inline: auto;
  }

  .pricing-tabs__btn {
    width: 100%;
    white-space: normal;
    padding: 8px 12px;
    font-size: 0.875rem;
  }

  .pricing-hero__subtitle {
    max-width: 32ch;
    font-size: 1rem;
  }
}

/* Cards area – gradient bg image behind pricing cards */

.pricing-cards-bg {
  --pricing-cards-outer-gap: 2.5rem;
  position: relative;
  margin-bottom: var(--pricing-cards-outer-gap);
  margin-inline: var(--section-container-margin-inline-bleed);
  border-radius: 0;
  overflow: hidden;
}

@media (min-width: 640px) {
  .pricing-cards-bg {
    --pricing-cards-outer-gap: 3rem;
  }
}

@media (min-width: 940px) {
  .pricing-cards-bg {
    --pricing-cards-outer-gap: 3.5rem;
  }
}

.pricing-cards-bg__inner {
  position: relative;
  z-index: 1;
  padding-block: 10px;
  padding-inline: var(--section-container-padding-inline, var(--hds-space-layout-content-margin, 16px));
  border-radius: 0;
  background-color: #e8b4d4;
  background-image: url("/pricing/images/pricing-cards-bg-mobile.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

@media (min-width: 640px) {
  .pricing-cards-bg__inner {
    padding-block: 14px;
    background-image: url("/pricing/images/pricing-cards-bg-desktop.png");
  }
}

@media (min-width: 940px) {
  .pricing-cards-bg__inner {
    padding-block: 18px 16px;
  }
}

.pricing-cards {
  display: grid;
  gap: 10px;
  align-items: stretch;
}

@media (min-width: 640px) {
  .pricing-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
}

@media (min-width: 940px) {
  .pricing-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }
}

.pricing-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
  border: 0;
  box-shadow: 0 1px 2px rgba(10, 37, 64, 0.06);
}

.pricing-card__top {
  flex: 1 1 auto;
  padding: 22px 16px 20px;
  text-align: left;
  background: #fff;
}

.pricing-card__name {
  margin: 0 0 10px;
  font-size: 1.625rem;
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--pp-text);
}

.pricing-card__desc {
  margin: 0;
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.45;
  color: var(--pp-text-soft);
}

.pricing-card__bottom {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  height: 252px;
  padding: 16px;
  text-align: left;
  background: #f6f9fc;
  border-top: 1px solid #e3e8ee;
}

@media (min-width: 640px) {
  .pricing-card__bottom {
    height: 258px;
  }
}

@media (min-width: 940px) {
  .pricing-card__bottom {
    height: 264px;
  }
}

#panel-business .pricing-card__bottom,
#panel-platforms .pricing-card__bottom {
  height: auto;
  min-height: 0;
  gap: 32px;
}

#panel-business .pricing-card__offer,
#panel-platforms .pricing-card__offer {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 0;
  padding-bottom: 0;
}

#panel-business .pricing-card__starting,
#panel-platforms .pricing-card__starting {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.4;
  color: var(--pp-text);
}

#panel-business .pricing-card__starting-amount,
#panel-platforms .pricing-card__starting-amount {
  font-weight: 500;
}

#panel-business .pricing-card__paygo,
#panel-platforms .pricing-card__paygo {
  margin: 6px 0 0;
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.4;
  color: var(--pp-text-soft);
}

#panel-business .pricing-btn--show,
#panel-platforms .pricing-btn--show {
  margin-top: 0;
  flex-shrink: 0;
  font-weight: 500;
}

#panel-business .pricing-btn__plus,
#panel-platforms .pricing-btn__plus {
  margin-left: 0.2em;
  font-weight: 500;
}

button.pricing-btn {
  border: none;
  cursor: pointer;
  font: inherit;
  text-decoration: none;
}

.pricing-card__pricing {
  flex: 1 1 auto;
  display: grid;
  grid-template-rows: repeat(3, minmax(48px, auto));
  gap: 8px;
  align-content: start;
  min-height: 0;
}

.pricing-card__price-block {
  min-height: 48px;
}

.pricing-card__price-block + .pricing-card__price-block {
  margin-top: 0;
}

.pricing-card__amount {
  margin: 0;
  font-size: 1.375rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--pp-text);
}

.pricing-card__suffix {
  margin: 2px 0 0;
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.4;
  color: var(--pp-text-soft);
}

#panel-business .pricing-card .pricing-btn--show,
#panel-platforms .pricing-card .pricing-btn--show {
  margin-top: 0;
}

.pricing-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  padding: 10px 16px;
  border: 0;
  border-radius: 4px;
  background: var(--pp-purple);
  color: #fff;
  font: inherit;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease;
}

.pricing-btn:hover {
  background: var(--pp-purple-hover);
  color: #fff;
}

.pricing-btn--secondary {
  background: transparent;
  color: var(--pp-purple);
  border: 1px solid var(--pp-border);
}

.pricing-btn--secondary:hover {
  background: var(--pp-bg-soft);
  color: var(--pp-purple-hover);
}

/* Link cards */

.pricing-links {
  display: grid;
  gap: 16px;
  margin-block-end: 3.5rem;
  padding-block-end: 3.5rem;
}

@media (min-width: 640px) {
  .pricing-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.pricing-link-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.5rem;
  border: 1px solid var(--pp-border);
  border-radius: var(--pp-radius);
  background: var(--pp-bg-soft);
}

.pricing-link-card__title {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  font-weight: 400;
}

.pricing-link-card__desc {
  margin: 0;
  flex: 1;
  padding-right: 72px;
  font-size: 1rem;
  line-height: 1.4;
  color: var(--pp-text-soft);
  font-weight: 300;
}

.pricing-link-card .pricing-btn {
  width: auto;
  margin-top: 1.5rem;
  align-self: flex-start;
}

.pricing-link-card .pricing-btn--secondary {
  border-color: #b9b9f9;
}

.pricing-link-card .pricing-btn--secondary:hover {
  border-color: #533afd;
}

/* ----- Compare ----- */

.pricing-compare {
  --compare-sticky-top: 86px;
  padding-block-end: 5.5rem;
}

body.mw-sticky-subnav-active .pricing-compare {
  --compare-sticky-top: 88px;
}

.pricing-compare__title {
  margin: 0 0 2rem;
  font-size: 1.625rem;
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.compare-block + .compare-block {
  margin-top: 2.5rem;
}

.compare-table-wrap {
  border: none;
  border-radius: 4px;
  overflow: visible;
  background: #fff;
}

.compare-block .compare-table-wrap {
  border-block-end: 1px solid var(--pp-border);
  border-inline: 1px solid var(--pp-border);
}

.compare-block:first-of-type .compare-table-wrap {
  border-block-start: 1px solid var(--pp-border);
}

.compare-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  background: #fff;
  text-align: left;
}

@media (min-width: 640px) {
  .compare-table {
    min-width: 640px;
  }
}

.compare-table thead th {
  position: sticky;
  top: var(--compare-sticky-top);
  z-index: 4;
  padding: 1rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.3;
  color: var(--pp-text);
  text-align: left;
  vertical-align: top;
  background: var(--pp-bg-soft);
  border-bottom: 1px solid var(--pp-border);
}

.compare-table__section {
  width: 44%;
}

.compare-table__tier {
  width: 18.67%;
  border-left: 1px solid var(--pp-border);
}

.compare-col-feature {
  width: 44%;
}

.compare-col-tier {
  width: 18.67%;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.compare-table tbody th,
.compare-table tbody td {
  padding: 1rem;
  border-top: 1px solid var(--pp-border);
  vertical-align: top;
  font-size: 1rem;
  font-weight: 300;
}

.compare-table tbody tr:first-child th,
.compare-table tbody tr:first-child td {
  border-top: none;
}

.compare-table tbody th {
  font-weight: 400;
  background: transparent;
}

.compare-table tbody td {
  background: transparent;
  text-align: left;
  border-left: 1px solid var(--pp-border);
}

.compare-feature-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  color: var(--pp-purple);
  text-decoration: none;
}

.compare-feature-link:hover,
.compare-feature-link:focus-visible {
  text-decoration: none;
}

.compare-feature-link svg {
  position: relative;
  top: 1px;
  display: block;
  width: 12px;
  height: 16px;
  flex: 0 0 12px;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.compare-feature-link:hover svg,
.compare-feature-link:focus-visible svg {
  opacity: 1;
}

.compare-status {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.5rem;
  color: var(--pp-text-soft);
  font-size: 1rem;
}

.compare-status svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.compare-status--no {
  color: var(--pp-text-muted);
}

/* Success Plan comparison structure and reference notes */
.compare-table__section {
  width: auto;
}

.compare-table__tier {
  width: auto;
}

.compare-col-agent {
  width: 5.5%;
}

.compare-col-category {
  width: 14.5%;
}

.compare-col-feature {
  width: 30%;
}

.compare-col-tier {
  width: 16.6667%;
}

.compare-table__agent {
  padding: 0 !important;
  color: #fff;
  text-align: center;
  vertical-align: middle !important;
  background: var(--pp-text) !important;
  border-left: none !important;
}

.compare-table__agent span {
  display: block;
  color: inherit;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.02em;
  white-space: nowrap;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.compare-table__category {
  padding: 1rem 0.75rem !important;
  color: var(--pp-text);
  font-size: 1rem;
  font-weight: 400 !important;
  line-height: 1.15;
  text-align: center;
  vertical-align: middle !important;
  background: var(--pp-bg-soft) !important;
  border-left: 1px solid var(--pp-border) !important;
}

.compare-support-copy {
  display: grid;
  gap: 0.45rem;
  color: var(--pp-text-soft);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.4;
}

.compare-support-copy span {
  display: block;
}

.compare-support-copy sup,
.compare-feature-link sup,
.compare-footnotes sup {
  position: relative;
  top: -0.25em;
  font-size: 0.7em;
  line-height: 0;
}

.compare-footnotes {
  display: grid;
  gap: 0.4rem;
  margin: 1rem 0 0;
  color: var(--pp-text-muted);
  font-size: 0.8125rem;
  font-weight: 300;
  line-height: 1.45;
}

.compare-footnotes p {
  margin: 0;
}

@media (max-width: 639px) {
  .compare-table {
    min-width: 0;
    display: block;
  }

  .compare-table colgroup {
    display: none;
  }

  .compare-table thead,
  .compare-table tbody {
    display: block;
  }

  /* Full header block sticks together (same behavior as desktop row) */
  .compare-table thead {
    position: sticky;
    top: var(--compare-sticky-top);
    z-index: 5;
    background: var(--pp-bg-soft);
  }

  .compare-table thead tr {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .compare-table thead th {
    position: static;
    top: auto;
    box-shadow: none;
  }

  .compare-table__section {
    display: block;
    grid-column: 1 / -1;
    z-index: 1;
    width: auto;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--pp-border);
    background: var(--pp-bg-soft);
  }

  .compare-table__tier {
    width: auto;
    padding: 0.75rem 0.5rem;
    font-size: 0.875rem;
    line-height: 1.25;
    text-align: center;
    border-left: none;
    border-bottom: 1px solid var(--pp-border);
    background: var(--pp-bg-soft);
  }

  .compare-table__tier + .compare-table__tier {
    border-left: 1px solid var(--pp-border);
  }

  .compare-table tbody tr {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid var(--pp-border);
  }

  .compare-table tbody tr:first-child {
    border-top: none;
  }

  .compare-table tbody th[scope="row"] {
    grid-column: 1 / -1;
    padding: 0.875rem 1rem 0.5rem;
    font-size: 0.9375rem;
    line-height: 1.35;
    background: transparent;
    border-top: none;
  }

  .compare-table tbody td {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.5rem 0.875rem;
    background: transparent;
    border-top: none;
    border-left: none;
    text-align: center;
  }

  .compare-table tbody td + td {
    border-left: 1px solid var(--pp-border);
  }

  .compare-feature-link svg {
    margin-top: 0;
  }

  .compare-status--yes {
    gap: 0;
    font-size: 0;
    line-height: 0;
  }

  .compare-status--yes svg {
    margin-top: 0;
    width: 18px;
    height: 18px;
  }

  .compare-status--no {
    font-size: 1.125rem;
    line-height: 1;
  }
}


@media (max-width: 639px) {

  .compare-table tbody .compare-table__agent {
    display: none;
  }

  .compare-table tbody th.compare-table__category {
    display: block;
    grid-column: 1 / -1;
    padding: 0.75rem 1rem 0.55rem !important;
    color: var(--pp-text-soft);
    font-size: 0.75rem;
    font-weight: 500 !important;
    line-height: 1.2;
    letter-spacing: 0.06em;
    text-align: left;
    text-transform: uppercase;
    background: var(--pp-bg-soft) !important;
    border-top: none;
    border-left: none !important;
  }

  .compare-support-copy {
    gap: 0.4rem;
    font-size: 0.875rem;
    line-height: 1.4;
  }

}

/* Tablet: desktop table layout + sticky header row */
@media (min-width: 640px) and (max-width: 939px) {
  .compare-table thead th {
    padding: 0.875rem 0.75rem;
    font-size: 0.9375rem;
  }

  .compare-table tbody th,
  .compare-table tbody td {
    padding: 0.875rem 0.75rem;
    font-size: 0.9375rem;
  }
}

/* ----- CTA (inside main rail) ----- */

.pricing-page__main.section {
  padding-block: 0;
}

.pricing-page__main .pricing-cta {
  position: relative;
  z-index: 6;
  margin-inline: var(--section-container-margin-inline-bleed);
  padding-inline: var(--section-container-padding-inline, var(--hds-space-layout-content-margin, 16px));
  padding-block: 96px;
  background: var(--pp-bg-soft);
  border-block-start: 1px solid var(--pp-border);
}

.pricing-cta__inner {
  max-width: 52ch;
  margin: 0 auto;
  text-align: center;
}

.pricing-cta__title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.625rem, 3.5vw, 2rem);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--pp-text);
}

.pricing-cta__text {
  margin: 0 auto 1.5rem;
  max-width: 46ch;
  font-size: 1.25rem;
  font-weight: 300;
  line-height: 1.45;
  color: var(--pp-text-soft);
}

.pricing-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  align-items: center;
}

/* Use the approved homepage CTA component in this final conversion band. */
.pricing-cta__actions.hds-button-group .hds-button {
  flex: 0 0 auto;
}

.pricing-cta__actions .pricing-btn {
  width: auto;
  min-width: 148px;
}

.pricing-cta__actions .pricing-btn--secondary {
  background: #fff;
}

.pricing-cta__actions .pricing-btn--secondary:hover {
  background: #fff;
  border-color: #b9b9ff;
}

@media (max-width: 479px) {
  .pricing-cta__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .pricing-cta__actions .pricing-btn,
  .pricing-cta__actions .hds-button {
    width: 100%;
    justify-content: center;
  }
}


/* Success Plan comparison: source-chart structure with myWork plan colors */
.pricing-compare {
  --compare-foundation: #6a56e8;
  --compare-plus: var(--pp-purple);
  --compare-strategic: var(--pp-text);
  --compare-rail: var(--pp-purple);
}

/* The table begins directly with the plan labels; the redundant left header remains semantic only. */
.compare-table thead .compare-table__section {
  padding: 0;
  color: transparent;
  background: var(--pp-bg-soft);
  border-bottom: 0;
}

.compare-col-tier--foundation,
.compare-col-tier--plus,
.compare-col-tier--strategic {
  background: transparent;
}

.compare-table thead .compare-table__tier {
  padding: 1rem;
  color: #fff;
  font-weight: 500;
  text-align: center;
  border-bottom: 0;
  border-left-color: rgba(255, 255, 255, 0.22);
}

.compare-table thead .compare-table__tier--foundation {
  background: var(--compare-foundation);
  border-radius: var(--pp-radius) 0 0 0;
}

.compare-table thead .compare-table__tier--plus {
  background: var(--compare-plus);
}

.compare-table thead .compare-table__tier--strategic {
  background: var(--compare-strategic);
  border-radius: 0 var(--pp-radius) 0 0;
}

/* A shared color and seamless edges make the row-spanning cells read as one rail. */
.compare-table tbody .compare-table__agent {
  position: relative;
  padding: 0 !important;
  color: #fff;
  background: var(--compare-rail) !important;
  border-top: 0 !important;
  border-right: 0 !important;
  border-bottom: 0 !important;
}

.compare-table tbody tr:first-child .compare-table__agent--spacer {
  border-radius: var(--pp-radius) 0 0 0;
}

.compare-table tbody .compare-table__agent:not(.compare-table__agent--spacer) {
  border-radius: 0 0 0 var(--pp-radius);
}

.compare-table__agent span {
  /* A real table cell already centers a row-spanning label reliably. */
  position: static;
  display: inline-block;
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.01em;
  vertical-align: middle;
  white-space: nowrap;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.compare-table__category {
  /* Source-chart divider: categories read as one left-hand block, features begin after this line. */
  background: #fff !important;
  border-right: 1px solid var(--pp-border) !important;
}

/* The plan pricing/end-state row mirrors the source-chart conclusion without adding more page copy. */
.compare-table tfoot td {
  padding: 1rem;
  color: #fff;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  vertical-align: middle;
  border-top: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.22);
}

.compare-table__footer-spacer {
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
}

.compare-table__plan-footer--foundation {
  background: var(--compare-foundation);
  border-radius: 0 0 0 var(--pp-radius);
}

.compare-table__plan-footer--plus {
  background: var(--compare-plus);
}

.compare-table__plan-footer--strategic {
  background: var(--compare-strategic);
  border-radius: 0 0 var(--pp-radius) 0;
}

/* Notes sit beneath the plan columns, small and quiet rather than competing with the table. */
.compare-footnotes {
  width: 50%;
  max-width: none;
  margin: 1rem 0 0 50%;
  padding-left: 1rem;
  color: var(--pp-text-muted);
  font-size: 0.75rem;
  line-height: 1.4;
}

.compare-footnotes sup {
  color: var(--pp-text-soft);
}

@media (max-width: 639px) {
  .compare-table thead {
    background: var(--pp-bg);
  }

  .compare-table thead .compare-table__section {
    display: none;
  }

  .compare-table thead .compare-table__tier {
    color: #fff;
    border-bottom: 0;
  }

  .compare-table thead .compare-table__tier--foundation {
    background: var(--compare-foundation);
    border-radius: var(--pp-radius) 0 0 0;
  }

  .compare-table thead .compare-table__tier--plus {
    background: var(--compare-plus);
  }

  .compare-table thead .compare-table__tier--strategic {
    background: var(--compare-strategic);
    border-radius: 0 var(--pp-radius) 0 0;
  }

  .compare-table tbody th.compare-table__category {
    background: #fff !important;
    border-right: none !important;
  }

  .compare-table tfoot {
    display: block;
  }

  .compare-table tfoot tr {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .compare-table tfoot .compare-table__footer-spacer {
    display: none;
  }

  .compare-table tfoot .compare-table__plan-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 3.5rem;
    padding: 0.75rem 0.5rem;
    font-size: 0.875rem;
  }

  .compare-footnotes {
    width: auto;
    margin: 1rem 0 0;
    padding-left: 0;
    font-size: 0.6875rem;
  }
}



/* Success Plan comparison: centered cells and continuous boundaries */
/* Keep compact feature labels and plan values optically centered in the matrix. */
.compare-table tbody th[scope="row"] {
  text-align: left;
  vertical-align: middle !important;
}

.compare-table tbody th[scope="row"] .compare-feature-link {
  width: 100%;
  justify-content: flex-start;
  text-align: left;
}

.compare-table tbody td {
  text-align: center;
  vertical-align: middle !important;
}

.compare-table tbody td > .compare-status {
  justify-content: center;
  text-align: center;
}

.compare-table tbody td > .compare-support-copy {
  text-align: left;
}

/* The row-spanning Help Agent rail is intentionally positioned from the cell,
   rather than by the first row, so its label remains centered as support copy grows. */
.compare-table tbody .compare-table__agent {
  position: relative;
  text-align: center;
  vertical-align: middle !important;
}

.compare-table tbody .compare-table__agent > span {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.01em;
  white-space: nowrap;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

/* Complete the two quiet horizontal rules across the full matrix:
   once before Value acceleration and again above the plan end states. */
.compare-table thead .compare-table__section,
.compare-table thead .compare-table__tier {
  border-bottom: 1px solid var(--pp-border);
}

.compare-table tbody tr:first-child > .compare-table__agent--spacer {
  border-top: 1px solid rgba(255, 255, 255, 0.28) !important;
}

.compare-table tbody tr:first-child > :not(.compare-table__agent--spacer) {
  border-top: 1px solid var(--pp-border) !important;
}

.compare-table tfoot .compare-table__footer-spacer {
  border-top: 1px solid var(--pp-border) !important;
}

.compare-table tfoot .compare-table__plan-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.28);
}

@media (max-width: 639px) {
  .compare-table tbody th[scope="row"] {
    text-align: left;
  }

  .compare-table tbody th[scope="row"] .compare-feature-link {
    width: auto;
    justify-content: flex-start;
    text-align: left;
  }

  .compare-table thead .compare-table__tier {
    border-bottom: 0;
  }

  .compare-table tbody tr:first-child > .compare-table__agent--spacer {
    border-top: 0 !important;
  }
}
