/* Pricing page styles — scoped under .pricing-page so they never leak. */

.pricing-page {
  --bg: #ffffff;
  --surface: #eef1f7;
  --border: #e2e2ec;
  --accent: #426dad;
  --text: #0f0f1a;
  --muted: #6b6b8a;
  --font-body: 'Avenir Next', 'Avenir', 'Nunito Sans', sans-serif;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-pill: 99px;
  --nav-h: 60px;
  --col-featured-bg: #f0f5ff;
  --col-featured-border: #426dad;
}

.pricing-page .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;
}

.pricing-page .page-header {
  padding: 72px 0 0;
  text-align: center;
  background: var(--bg);
  position: relative;
  z-index: 51;
}

.pricing-page .page-header h1 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  letter-spacing: -1.5px;
  margin-bottom: 16px;
  margin-left: auto;
  margin-right: auto;
  max-width: 880px;
}

.pricing-page .page-header p,
.pricing-page .page-header__body {
  color: var(--muted);
  font-size: 18px;
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
  padding-bottom: 48px;
}

.pricing-page .currency-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 3px 10px;
}

.pricing-page .currency-wrap label {
  font-size: 11px;
  color: var(--muted);
}

.pricing-page .currency-wrap select {
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  color: var(--text);
  outline: none;
  cursor: pointer;
}

.pricing-page .pricing-wrap {
  padding: 0 0 32px;
}

.pricing-page .pricing-scroll {
  overflow-x: visible;
}

/* Below the table's min-width, allow horizontal scroll. Above it, leave
   overflow as visible so position:sticky on thead cells pins to the viewport
   rather than to this container. */
@media (max-width: 880px) {
  .pricing-page .pricing-scroll {
    overflow-x: auto;
  }
}

/* Native sticky pricing header — same cells as the original table, so column
   widths are inherently identical. Pins to the viewport top. A dedicated
   row-buffer at the top of <thead> provides a 60px opaque strip above the
   visible plan-name cells, so the scrolling table can't peek through (and
   the featured column's rounded top corners sit cleanly below the buffer
   rather than at the viewport edge). */
.pricing-page table.pricing thead {
  position: sticky;
  top: 0;
  z-index: 5;
}

.pricing-page table.pricing thead th,
.pricing-page table.pricing thead td {
  background: var(--bg);
}

/* Row-level background fills any transparent areas left by rounded cell
   corners (notably the featured column's top in row-plans). Without this,
   the small triangular gap outside the radius lets the scrolling tbody
   show through behind the sticky header. */
.pricing-page table.pricing thead tr {
  background: var(--bg);
}

.pricing-page table.pricing thead tr.row-buffer td {
  height: 60px;
  padding: 0;
  border: 0;
  background: var(--bg);
}

/* 1px sentinel sits at the natural top of the table. JS toggles
   .thead-stuck on the table when it scrolls out of view. */
.pricing-page .pricing-thead-sentinel {
  height: 1px;
  margin-bottom: -1px;
}

/* Subtle drop-shadow on the bottom of the sticky thead, only while pinned.
   Applied to the last visible thead row (row-cta) so the shadow falls
   below the entire header block. Featured cell keeps its inset side lines. */
.pricing-page table.pricing.thead-stuck thead tr.row-cta td {
  box-shadow: 0 6px 8px -4px rgba(15, 15, 26, 0.08);
}

.pricing-page table.pricing.thead-stuck thead tr.row-cta td.featured {
  box-shadow:
    inset 1px 0 0 0 rgba(66, 109, 173, 0.25),
    inset -1px 0 0 0 rgba(66, 109, 173, 0.25),
    0 6px 8px -4px rgba(15, 15, 26, 0.08);
}

.pricing-page table.pricing {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 880px;
}

.pricing-page table.pricing col.col-feature {
  width: 19%;
}

.pricing-page table.pricing col.col-plan {
  width: 11.5%;
}

.pricing-page table.pricing col.col-featured {
  width: 11.5%;
}

.pricing-page table.pricing thead tr th,
.pricing-page table.pricing thead tr td {
  background: var(--bg);
}

.pricing-page table.pricing thead tr td.featured,
.pricing-page table.pricing thead tr th.featured {
  background: var(--col-featured-bg);
}

.pricing-page table.pricing tr.row-plans td {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  padding: 12px 16px 8px;
  text-align: center;
  vertical-align: top;
}

.pricing-page table.pricing tr.row-plans td:first-child {
  vertical-align: middle;
}

/* Featured-column row-plans cell: cell box is fully opaque white. The rounded
   blue highlight is painted by a ::before pseudo-element inside the cell, so
   the rounded corners' clipped triangles reveal the cell's own white — not
   the scrolling tbody behind the sticky thead. */
.pricing-page table.pricing tr.row-plans td.featured {
  color: var(--accent);
  background: var(--bg);
  position: relative;
  isolation: isolate;
}

.pricing-page table.pricing tr.row-plans td.featured::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: var(--col-featured-bg);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  border-top: 1px solid rgba(66, 109, 173, 0.25);
  box-shadow: inset 1px 0 0 0 rgba(66, 109, 173, 0.25), inset -1px 0 0 0 rgba(66, 109, 173, 0.25);
}

.pricing-page table.pricing tr.row-prices td {
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  padding: 0 16px 4px;
  text-align: center;
  line-height: 1.1;
  vertical-align: top;
}

.pricing-page table.pricing tr.row-prices td.featured {
  box-shadow: inset 1px 0 0 0 rgba(66, 109, 173, 0.25), inset -1px 0 0 0 rgba(66, 109, 173, 0.25);
}

.pricing-page table.pricing tr.row-prices td small {
  display: block;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
  margin-top: 2px;
  min-height: 1em;
}

.pricing-page table.pricing tr.row-prices td small:empty::before {
  content: '\00a0';
}

.pricing-page table.pricing tr.row-blurb td {
  font-size: 12px;
  color: var(--muted);
  padding: 0 16px 20px;
  text-align: center;
  vertical-align: top;
  line-height: 1.5;
}

.pricing-page table.pricing tr.row-blurb td.featured {
  box-shadow: inset 1px 0 0 0 rgba(66, 109, 173, 0.25), inset -1px 0 0 0 rgba(66, 109, 173, 0.25);
}

.pricing-page table.pricing tr.row-cta td {
  padding: 0 12px 28px;
  text-align: center;
}

.pricing-page table.pricing tr.row-cta td.featured {
  box-shadow: inset 1px 0 0 0 rgba(66, 109, 173, 0.25), inset -1px 0 0 0 rgba(66, 109, 173, 0.25);
}

.pricing-page table.pricing tr.row-cta td a {
  display: block;
  border-radius: var(--radius-sm);
  padding: 10px 0;
  font-size: 13px;
  font-weight: 600;
  transition: opacity .15s;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

.pricing-page table.pricing tr.row-cta td a:hover {
  opacity: .8;
}

.pricing-page table.pricing tr.row-cta td.featured a {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.pricing-page table.pricing th.feature-label {
  text-align: left;
  font-weight: 500;
  font-size: 14px;
  color: var(--text);
  padding: 10px 16px;
  white-space: nowrap;
  position: sticky;
  left: 0;
  z-index: 2;
  background: var(--bg);
}

.pricing-page table.pricing th.feature-label:hover {
  color: var(--accent);
}

.pricing-page table.pricing thead tr td:first-child,
.pricing-page table.pricing thead tr th:first-child {
  position: sticky;
  left: 0;
  z-index: 3;
  background: var(--bg);
}

.pricing-page table.pricing tr.section-heading th {
  position: sticky;
  left: 0;
  z-index: 2;
  background: var(--bg);
}

.pricing-page table.pricing td {
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  padding: 10px 16px;
  vertical-align: middle;
}

.pricing-page table.pricing tbody td.featured,
.pricing-page table.pricing tfoot td.featured {
  background: var(--col-featured-bg);
  box-shadow: inset 1px 0 0 0 rgba(66, 109, 173, 0.25), inset -1px 0 0 0 rgba(66, 109, 173, 0.25);
}

.pricing-page table.pricing tbody tr:nth-child(odd):not(.section-heading) {
  background: var(--surface);
}

.pricing-page table.pricing tbody tr:nth-child(odd):not(.section-heading) td.featured {
  background: var(--col-featured-bg);
}

.pricing-page table.pricing tbody tr:nth-child(odd):not(.section-heading) th.feature-label {
  background: var(--surface);
}

.pricing-page table.pricing tbody tr:nth-child(odd):not(.section-heading) th,
.pricing-page table.pricing tbody tr:nth-child(odd):not(.section-heading) td:not(.featured) {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.pricing-page table.pricing tfoot tr td.featured {
  border-bottom: 1px solid rgba(66, 109, 173, 0.25);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  box-shadow: inset 1px 0 0 0 rgba(66, 109, 173, 0.25), inset -1px 0 0 0 rgba(66, 109, 173, 0.25);
}

.pricing-page table.pricing tr.section-heading th,
.pricing-page table.pricing tr.section-heading td {
  padding: 28px 0 8px;
  border-bottom: 1px solid var(--border);
}

.pricing-page table.pricing tr.section-heading th {
  padding-left: 16px;
  text-align: left;
}

.pricing-page table.pricing tr.section-heading th h2 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
}

.pricing-page table.pricing td.check::after {
  content: '\2705';
  font-size: 12px;
}

.pricing-page table.pricing td.cross::after {
  content: '\2B1C';
  font-size: 12px;
  opacity: .4;
}

.pricing-page table.pricing td.empty {
  color: var(--muted);
  font-weight: 400;
}

.pricing-page table.pricing td.unlimited {
  color: var(--accent);
  font-weight: 700;
  font-size: 13px;
}

.pricing-page .hint {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
  margin-left: 5px;
  vertical-align: middle;
  cursor: help;
}

.pricing-page .hint:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* .tip intentionally unscoped — the pricing-page JS moves it to <body> on hover
   so scoping under .pricing-page would strip its styles while detached. */
.tip {
  display: none;
  position: fixed;
  background: #0f0f1a;
  color: #fff;
  font-size: 12px;
  font-weight: 400;
  padding: 8px 12px;
  border-radius: 8px;
  white-space: normal;
  width: 220px;
  line-height: 1.5;
  z-index: 9999;
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.pricing-page .upgrade-note {
  text-align: center;
  padding: 24px 0 0;
}

.pricing-page .upgrade-note p {
  display: inline-block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 10px 24px;
  font-size: 13px;
  color: var(--muted);
}

.pricing-page .upgrade-note strong {
  color: var(--text);
}

.pricing-page .vs-strip {
  padding: 56px 0 80px;
}

.pricing-page .vs-strip h2 {
  text-align: center;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}

.pricing-page .vs-strip>.container>p {
  text-align: center;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 32px;
}

.pricing-page .vs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.pricing-page .vs-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
}

.pricing-page .vs-card__icon {
  font-size: 20px;
  margin-bottom: 8px;
}

.pricing-page .vs-card h3 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
}

.pricing-page .vs-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

.pricing-page .vs-card .them {
  color: var(--muted);
  font-size: 12px;
  margin-top: 8px;
  font-style: italic;
}

@media (max-width: 768px) {
  .pricing-page .page-header {
    padding: 48px 0 0;
  }

  .pricing-page .vs-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }
}