/* compare.css: JR19, the "Which plan fits you?" table under the home plan cards (#plan-compare,
   filled by assets/js/compare.js). The pricing section's own look: white card, grey outline, the
   dark pill with the blue selected button the family tabs use. Light first; the dark variation is
   at the foot, under the same html[data-theme="dark"][data-theme-ready] gate theme.css uses and
   with its --t-* tokens, so it paints only where the home route follows the visitor's theme.
   On a phone the table scrolls sideways inside its own box and the row labels stay pinned. */

#pricing .pcmp {
  margin-top: 64px;
  text-align: center;
}
#pricing .pcmp [hidden] {
  display: none !important;
}
#pricing .pcmp__title {
  margin: 0;
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--text, #0b0b14);
}
#pricing .pcmp__sub {
  margin: 10px 0 0;
  font-size: 17px;
  line-height: 1.5;
  color: var(--text-2, #5b5f76);
}

/* ---- account size: the family tabs' pill, one size smaller ---- */
#pricing .pcmp__sizes {
  display: inline-flex;
  gap: 2px;
  margin-top: 22px;
  padding: 5px;
  border-radius: 999px;
  background: #0b0b14;
  box-shadow: 0 14px 30px -14px rgba(60, 64, 90, 0.5);
}
#pricing .pcmp__sizes button {
  height: 42px;
  min-width: 64px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  background: transparent;
  cursor: pointer;
}
#pricing .pcmp__sizes button:hover:not(.on) {
  background: rgba(255, 255, 255, 0.1);
}
#pricing .pcmp__sizes button.on {
  background: #2b2bf5;
  box-shadow: 0 8px 22px rgba(43, 43, 245, 0.55);
}
#pricing .pcmp__sizes button:focus-visible {
  outline: 3px solid #fff;
  outline-offset: -5px;
}

/* ---- the table ---- */
#pricing .pcmp__scroll {
  max-width: 920px;
  margin: 26px auto 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: #fff;
  border: 1px solid #d9dbe6;
  border-radius: 20px;
  box-shadow:
    0 30px 60px -28px rgba(60, 64, 90, 0.45),
    0 1px 2px rgba(60, 64, 90, 0.14);
}
#pricing .pcmp__scroll:focus-visible {
  outline: 3px solid #2b2bf5;
  outline-offset: 2px;
}
/* mobile.css turns every other table on the page into its own scroll box; this one sits in .pcmp__scroll */
#pricing .pcmp__table {
  display: table;
  width: 100%;
  max-width: none;
  overflow: visible;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 0;
  text-align: left;
  font-size: 15px;
  line-height: 1.4;
}
#pricing .pcmp__table th,
#pricing .pcmp__table td {
  padding: 14px 18px;
  border-bottom: 1px solid #e3e4ee;
  vertical-align: top;
}
#pricing .pcmp__table tbody tr:last-child th,
#pricing .pcmp__table tbody tr:last-child td {
  border-bottom: 0;
}
#pricing .pcmp__table thead th {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #3f4256;
  background: #f7f8fc;
  white-space: nowrap;
}
#pricing .pcmp__table thead th[data-family] {
  color: #2b2bf5;
}
#pricing .pcmp__table tbody th {
  width: 26%;
  font-weight: 600;
  color: #3f4256;
  background: #fff;
}
/* the row labels stay in view while the plan columns scroll under them */
#pricing .pcmp__table thead th:first-child,
#pricing .pcmp__table tbody th {
  position: sticky;
  left: 0;
  z-index: 1;
  box-shadow: 1px 0 0 #e3e4ee;
}
#pricing .pcmp__table td {
  font-weight: 700;
  color: #0b0b14;
}
#pricing .pcmp__table td s {
  margin-right: 2px;
  font-weight: 600;
  color: #8a8da3;
}
#pricing .pcmp__table td small {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 600;
  color: #2b2bf5;
}
#pricing .pcmp__table td .plan__naf-add {
  color: #2b2bf5;
}

#pricing .pcmp__note {
  max-width: 920px;
  margin: 14px auto 0;
  font-size: 14px;
  line-height: 1.55;
  text-align: left;
  color: var(--text-2, #5b5f76);
}

@media (max-width: 768px) {
  #pricing .pcmp {
    margin-top: 44px;
  }
  #pricing .pcmp__sizes button {
    min-width: 0;
    padding: 0 14px;
  }
  #pricing .pcmp__scroll {
    border-radius: 16px;
  }
  #pricing .pcmp__table {
    font-size: 14px;
  }
  #pricing .pcmp__table th,
  #pricing .pcmp__table td {
    padding: 12px 12px;
  }
  #pricing .pcmp__table tbody th,
  #pricing .pcmp__table thead th:first-child {
    width: auto;
    min-width: 116px;
    max-width: 132px;
  }
  #pricing .pcmp__table td,
  #pricing .pcmp__table thead th[data-family] {
    min-width: 132px;
  }
}

/* ---- dark ---- */
html[data-theme="dark"][data-theme-ready] #pricing .pcmp__title {
  color: var(--t-text);
}
html[data-theme="dark"][data-theme-ready] #pricing .pcmp__sub,
html[data-theme="dark"][data-theme-ready] #pricing .pcmp__note {
  color: var(--t-text-2);
}
html[data-theme="dark"][data-theme-ready] #pricing .pcmp__sizes {
  background: var(--t-card-2);
  box-shadow: inset 0 0 0 1px var(--t-line-2);
}
html[data-theme="dark"][data-theme-ready] #pricing .pcmp__scroll {
  background: var(--t-card);
  border-color: var(--t-line-2);
  box-shadow: var(--t-shadow-lg);
}
html[data-theme="dark"][data-theme-ready] #pricing .pcmp__table th,
html[data-theme="dark"][data-theme-ready] #pricing .pcmp__table td {
  border-bottom-color: var(--t-line);
}
html[data-theme="dark"][data-theme-ready] #pricing .pcmp__table thead th {
  color: var(--t-text-2);
  background: var(--t-card-2);
}
html[data-theme="dark"][data-theme-ready] #pricing .pcmp__table thead th[data-family],
html[data-theme="dark"][data-theme-ready] #pricing .pcmp__table td small,
html[data-theme="dark"][data-theme-ready] #pricing .pcmp__table td .plan__naf-add {
  color: var(--t-accent);
}
html[data-theme="dark"][data-theme-ready] #pricing .pcmp__table tbody th {
  color: var(--t-text-2);
  background: var(--t-card);
}
html[data-theme="dark"][data-theme-ready] #pricing .pcmp__table thead th:first-child,
html[data-theme="dark"][data-theme-ready] #pricing .pcmp__table tbody th {
  box-shadow: 1px 0 0 var(--t-line);
}
html[data-theme="dark"][data-theme-ready] #pricing .pcmp__table td {
  color: var(--t-text);
}
html[data-theme="dark"][data-theme-ready] #pricing .pcmp__table td s {
  color: var(--t-text-3);
}
