.catalog-subscription-grid {
  display: grid;
  gap: 1rem;
}

.catalog-purchase {
  margin-top: auto;
  padding-top: 1rem;
}

.catalog-purchase .button {
  width: 100%;
  justify-content: center;
}

.catalog-loading {
  min-height: 10rem;
  display: grid;
  place-items: center;
  color: #6b7280;
}

.package-grid article {
  display: flex;
  flex-direction: column;
}

.package-grid .catalog-purchase {
  padding-top: .75rem;
}

.site-nav a[aria-current="page"] {
  color: #ffffff;
}

.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.pricing-page-hero {
  position: relative;
  min-height: min(46vh, 440px);
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #ffffff;
  background: #071112;
}

.pricing-page-hero-media,
.pricing-page-hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.pricing-page-hero-media {
  object-fit: cover;
  object-position: center 38%;
}

.pricing-page-hero-shade {
  background:
    linear-gradient(90deg, rgba(4, 13, 14, 0.97) 0%, rgba(4, 13, 14, 0.78) 52%, rgba(4, 13, 14, 0.34) 100%),
    linear-gradient(180deg, rgba(4, 13, 14, 0.18), rgba(4, 13, 14, 0.88));
}

.pricing-page-hero-copy {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(96px, 13vh, 132px) 0 clamp(34px, 5vw, 54px);
}

.pricing-page-hero-copy h1 {
  max-width: 760px;
  margin: 6px 0 12px;
  font-size: clamp(42px, 5.8vw, 72px);
  line-height: 0.98;
  letter-spacing: 0;
}

.pricing-page-hero-copy > p:not(.eyebrow) {
  max-width: 680px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(15px, 1.6vw, 18px);
}

.pricing-page-hero-actions,
.pricing-order-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pricing-page-hero-actions {
  margin-top: 18px;
}

.pricing-page-hero-actions .button-ghost,
.pricing-order-actions .button-ghost {
  color: inherit;
  border-color: rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.06);
}

.pricing-facts {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 40px));
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: -20px auto 0;
  border: 1px solid var(--line);
  background: #ffffff;
  box-shadow: 0 18px 50px rgba(7, 17, 18, 0.12);
}

.pricing-facts div {
  min-width: 0;
  padding: 13px 16px;
  border-right: 1px solid var(--line);
}

.pricing-facts div:last-child {
  border-right: 0;
}

.pricing-facts span,
.pricing-facts strong {
  display: block;
  overflow-wrap: anywhere;
}

.pricing-facts span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.pricing-facts strong {
  margin-top: 3px;
  font-size: clamp(16px, 2vw, 22px);
}

.pricing-public-section {
  width: min(1120px, calc(100% - 40px));
  margin-right: auto;
  margin-left: auto;
}

.pricing-section-nav {
  position: sticky;
  z-index: 20;
  top: var(--site-header-height, 68px);
  width: min(1120px, calc(100% - 40px));
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 12px auto 0;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 32px rgba(7, 17, 18, 0.08);
  backdrop-filter: blur(14px);
}

.pricing-section-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 8px 12px;
  border-right: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 850;
  transition: color 160ms ease, background 160ms ease;
}

.pricing-section-nav a:last-child {
  border-right: 0;
}

.pricing-section-nav a:hover,
.pricing-section-nav a:focus-visible {
  color: #ffffff;
  background: var(--dark-2);
}

.pricing-section-nav span {
  color: var(--teal);
  font-family: "Bahnschrift", "DIN Alternate", sans-serif;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.pricing-public-section {
  padding-top: clamp(46px, 5vw, 68px);
  padding-bottom: clamp(46px, 5vw, 68px);
}

.pricing-public-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
  gap: clamp(28px, 6vw, 78px);
  align-items: end;
  margin-bottom: 20px;
}

.pricing-public-heading.compact {
  grid-template-columns: 1fr;
}

.pricing-public-heading h2,
.pricing-public-heading p {
  margin: 0;
}

.pricing-public-heading h2 {
  margin-top: 6px;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.03;
}

.pricing-public-heading > p {
  color: var(--muted);
}

.pricing-subscription-shell {
  min-height: 250px;
}

.pricing-subscription-card {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1fr);
  border: 1px solid #163b3d;
  color: #ffffff;
  background: #0d2426;
}

.pricing-subscription-main,
.pricing-subscription-details {
  padding: clamp(18px, 2.5vw, 28px);
}

.pricing-subscription-main {
  border-right: 1px solid rgba(255, 255, 255, 0.14);
}

.pricing-subscription-main h3 {
  margin: 6px 0;
  font-size: clamp(24px, 3vw, 36px);
}

.pricing-subscription-price {
  margin: 12px 0;
  font-size: clamp(38px, 5vw, 58px);
  font-weight: 900;
  line-height: 1;
}

.pricing-subscription-price small {
  color: rgba(255, 255, 255, 0.62);
  font-size: 16px;
}

.pricing-subscription-details {
  display: grid;
  align-content: center;
  gap: 10px;
}

.pricing-subscription-features {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.pricing-subscription-features li {
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.78);
}

.pricing-rights-band,
.pricing-packages-band {
  background: var(--paper);
}

.pricing-packages-band {
  scroll-margin-top: calc(var(--site-header-height, 68px) + 68px);
}

.pricing-packages-band .pricing-public-section {
  padding-top: clamp(24px, 3vw, 38px);
  padding-bottom: clamp(24px, 3vw, 38px);
}

.pricing-packages-band .pricing-public-heading {
  margin-bottom: 14px;
}

.pricing-comparison-band {
  scroll-margin-top: calc(var(--site-header-height, 68px) + 68px);
  overflow: hidden;
  color: #ffffff;
  background:
    radial-gradient(circle at 85% 2%, rgba(12, 154, 154, 0.2), transparent 30%),
    linear-gradient(145deg, #071112 0%, #0b1719 48%, #071112 100%);
}

.pricing-comparison-shell {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(30px, 3.5vw, 46px) 0;
}

.pricing-comparison-heading {
  width: min(1120px, 100%);
  margin: 0 auto 16px;
}

.pricing-comparison-heading .eyebrow {
  color: #58d4c8;
}

.pricing-comparison-heading > p {
  color: rgba(255, 255, 255, 0.58);
}

.pricing-tier-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(1120px, 100%);
  margin: 0 auto 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.pricing-tier-overview article {
  position: relative;
  min-width: 0;
  min-height: 132px;
  padding: clamp(14px, 1.8vw, 20px);
  border-right: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.025);
  transition: transform 180ms ease, background 180ms ease;
}

.pricing-tier-overview article:last-child {
  border-right: 0;
}

.pricing-tier-overview article:hover {
  z-index: 1;
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.06);
}

.pricing-tier-index {
  display: block;
  color: #58d4c8;
  font-family: "Bahnschrift", "DIN Alternate", sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.pricing-tier-overview h3 {
  margin: 8px 0 3px;
  font-size: clamp(20px, 2.2vw, 28px);
}

.pricing-tier-overview strong {
  display: block;
  font-family: "Bahnschrift", "DIN Alternate", sans-serif;
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1;
  letter-spacing: -0.03em;
}

.pricing-tier-overview p {
  max-width: 290px;
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
}

.pricing-comparison-note {
  display: none;
  width: min(1120px, 100%);
  margin: 0 auto 10px;
  color: rgba(255, 255, 255, 0.54);
  font-size: 12px;
}

.pricing-mobile-tier-switch {
  display: none;
}

.pricing-comparison-scroll {
  width: min(1120px, 100%);
  margin: 0 auto;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-color: #2c7774 #111d1f;
  scrollbar-width: thin;
}

.pricing-comparison-scroll:focus-visible {
  outline: 2px solid #58d4c8;
  outline-offset: 4px;
}

.pricing-comparison-table {
  width: 100%;
  min-width: 940px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  color: rgba(255, 255, 255, 0.8);
  background: #0b1517;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.pricing-comparison-table th,
.pricing-comparison-table td {
  min-width: 0;
  height: 42px;
  padding: 7px 10px;
  border-right: 1px solid rgba(255, 255, 255, 0.09);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  text-align: center;
}

.pricing-comparison-table tr:last-child > * {
  border-bottom: 0;
}

.pricing-comparison-table tr > *:last-child {
  border-right: 0;
}

.pricing-comparison-table thead th {
  height: 60px;
  color: #ffffff;
  background: #172226;
  font-size: 14px;
}

.pricing-comparison-table thead th span,
.pricing-comparison-table thead th small {
  display: block;
}

.pricing-comparison-table thead th small {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.42);
  font-family: "Bahnschrift", "DIN Alternate", sans-serif;
  font-size: 9px;
  letter-spacing: 0.12em;
}

.pricing-comparison-table thead th:nth-child(1) {
  width: 126px;
}

.pricing-comparison-table thead th:nth-child(2) {
  width: 205px;
}

.pricing-comparison-table tbody th[scope="rowgroup"] {
  color: #ffffff;
  background: #111d20;
  font-size: 13px;
  text-align: left;
  vertical-align: middle;
}

.pricing-comparison-table tbody th[scope="row"] {
  color: rgba(255, 255, 255, 0.82);
  background: #0d181a;
  font-size: 13px;
  text-align: left;
}

.pricing-comparison-table tbody tr:hover > * {
  background-color: rgba(88, 212, 200, 0.08);
}

.pricing-comparison-table td strong {
  color: #ffffff;
  font-family: "Bahnschrift", "DIN Alternate", sans-serif;
  font-size: 16px;
}

.tier-yes,
.tier-no {
  display: inline-grid;
  place-items: center;
  width: 25px;
  height: 25px;
  font-family: "Bahnschrift", sans-serif;
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
}

.tier-yes {
  color: #051413;
  background: #58d4c8;
  border-radius: 50%;
}

.tier-no {
  color: rgba(255, 255, 255, 0.32);
}

.pricing-rights-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.pricing-rights-list li {
  min-width: 0;
  padding: 18px 14px 8px 0;
  border-right: 1px solid var(--line);
}

.pricing-rights-list li + li {
  padding-left: 14px;
}

.pricing-rights-list li:last-child {
  border-right: 0;
}

.pricing-rights-list > li > span {
  display: block;
  margin-bottom: 14px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 900;
}

.pricing-rights-list strong {
  font-size: 16px;
}

.pricing-rights-list p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.pricing-action-table {
  border-top: 1px solid var(--line);
}

.pricing-action-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 104px 104px;
  gap: 12px;
  align-items: center;
  min-height: 40px;
  padding: 5px 0;
  border-bottom: 1px solid var(--line);
}

.pricing-action-row strong:nth-child(2) {
  text-align: right;
  font-size: 14px;
}

.pricing-action-state {
  justify-self: end;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.pricing-action-state.is-live {
  color: #176b4d;
}

.pricing-package-grid,
.pricing-rule-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.pricing-package-card,
.pricing-rule-grid article {
  min-width: 0;
  border: 1px solid var(--line);
  background: #ffffff;
}

.pricing-package-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 188px;
  padding: 14px;
}

.pricing-package-card h3,
.pricing-package-card p {
  margin: 0;
}

.pricing-package-points {
  font-size: clamp(25px, 3vw, 38px);
  font-weight: 900;
  line-height: 1;
}

.pricing-package-price {
  color: var(--teal-dark);
  font-size: 16px;
  font-weight: 900;
}

.pricing-package-copy {
  color: var(--muted);
  font-size: 12px;
}

.pricing-package-card .button {
  width: 100%;
  margin-top: auto;
  justify-content: center;
}

.pricing-rule-grid article {
  padding: 18px;
}

.pricing-rule-grid span {
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
}

.pricing-rule-grid h3 {
  margin: 7px 0 5px;
  font-size: 19px;
}

.pricing-rule-grid p {
  margin: 0;
  color: var(--muted);
}

.pricing-public-loading {
  min-height: 160px;
  display: grid;
  place-items: center;
  border: 1px dashed var(--line);
  color: var(--muted);
}

.pricing-order-overlay {
  position: fixed;
  z-index: 80;
  inset: 0;
  display: none;
  place-items: center;
  padding: 20px;
  overflow: auto;
  background: rgba(3, 11, 12, 0.72);
}

.pricing-order-overlay.is-open {
  display: grid;
}

.pricing-order-dialog {
  position: relative;
  width: min(720px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: clamp(24px, 4vw, 38px);
  background: #ffffff;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

.pricing-order-dialog h2 {
  margin: 5px 0 8px;
}

.pricing-order-copy {
  margin: 0 0 20px;
  color: var(--muted);
}

.pricing-order-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--line);
  background: #ffffff;
  font-size: 22px;
}

.pricing-order-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.pricing-order-dialog textarea {
  width: 100%;
  resize: vertical;
}

.pricing-order-actions {
  justify-content: flex-end;
  margin-top: 18px;
}

.pricing-order-actions .button-ghost {
  color: var(--ink);
  border-color: var(--line);
  background: #ffffff;
}

:root[data-theme="dark"] .pricing-facts,
:root[data-theme="dark"] .pricing-package-grid article,
:root[data-theme="dark"] .pricing-rule-grid article,
:root[data-theme="dark"] .pricing-account-strip,
:root[data-theme="dark"] .pricing-account-card {
  color: var(--ink);
  background: var(--paper);
  border-color: var(--line);
}

:root[data-theme="dark"] .pricing-order-dialog {
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
}

:root[data-theme="dark"] .pricing-order-close,
:root[data-theme="dark"] .pricing-order-actions .button-ghost {
  color: var(--ink);
  background: var(--surface-strong);
  border-color: var(--line);
}

@media (max-width: 920px) {
  .pricing-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pricing-facts div:nth-child(2) { border-right: 0; }
  .pricing-facts div:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .pricing-public-heading,
  .pricing-subscription-card { grid-template-columns: 1fr; }
  .pricing-subscription-main { border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
  .pricing-rights-list { grid-template-columns: 1fr 1fr; }
  .pricing-rights-list li { border-bottom: 1px solid var(--line); }
  .pricing-package-grid { grid-template-columns: 1fr; }
  .pricing-section-nav { grid-template-columns: repeat(5, minmax(128px, 1fr)); overflow-x: auto; }
  .pricing-tier-overview { grid-template-columns: 1fr; }
  .pricing-tier-overview article { min-height: auto; border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
  .pricing-tier-overview article:last-child { border-bottom: 0; }
  .pricing-comparison-note { display: block; }
}

@media (max-width: 720px) {
  .pricing-page-hero {
    min-height: auto;
    display: block;
  }
  .pricing-page-hero-copy {
    width: min(100% - 24px, 680px);
    padding-top: max(96px, calc(76px + env(safe-area-inset-top)));
    padding-bottom: 32px;
  }
  .pricing-account-strip,
  .pricing-public-section,
  .pricing-section-nav { width: min(100% - 28px, 1120px); }
  .pricing-account-strip { align-items: stretch; flex-direction: column; }
  .pricing-account-strip .button { width: 100%; justify-content: center; }
  .pricing-rights-list,
  .pricing-rule-grid,
  .pricing-order-grid { grid-template-columns: 1fr; }
  .pricing-rights-list li,
  .pricing-rights-list li + li { padding: 20px 0; border-right: 0; }
  .pricing-action-row { grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
  .pricing-action-state { grid-column: 1 / -1; justify-self: start; }
  .pricing-order-overlay { align-items: end; padding: 0; }
  .pricing-order-dialog { width: 100%; max-height: 92vh; }
  .pricing-comparison-shell { width: min(100% - 28px, 1240px); }
}

@media (max-width: 600px) {
  .pricing-mobile-tier-switch {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    margin-bottom: 10px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: #050b0c;
  }

  .pricing-mobile-tier-switch button {
    min-height: 46px;
    padding: 8px 10px;
    border: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.58);
    background: transparent;
    font-size: 13px;
    font-weight: 850;
  }

  .pricing-mobile-tier-switch button:last-child {
    border-right: 0;
  }

  .pricing-mobile-tier-switch button[aria-pressed="true"] {
    color: #061314;
    background: #58d4c8;
  }

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

  .pricing-comparison-table {
    min-width: 0;
    table-layout: auto;
  }

  .pricing-comparison-table thead th:nth-child(3),
  .pricing-comparison-table thead th:nth-child(4),
  .pricing-comparison-table thead th:nth-child(5),
  .pricing-comparison-table tbody td {
    display: none;
  }

  .pricing-comparison-table[data-mobile-tier="standard"] thead th:nth-child(3),
  .pricing-comparison-table[data-mobile-tier="standard"] tbody td:nth-of-type(1),
  .pricing-comparison-table[data-mobile-tier="advanced"] thead th:nth-child(4),
  .pricing-comparison-table[data-mobile-tier="advanced"] tbody td:nth-of-type(2),
  .pricing-comparison-table[data-mobile-tier="ultimate"] thead th:nth-child(5),
  .pricing-comparison-table[data-mobile-tier="ultimate"] tbody td:nth-of-type(3) {
    display: table-cell;
    width: 24%;
  }

  .pricing-comparison-table thead th:nth-child(1) {
    width: 30%;
  }

  .pricing-comparison-table thead th:nth-child(2) {
    width: 46%;
  }

  .pricing-comparison-table tbody th[scope="rowgroup"],
  .pricing-comparison-table tbody th[scope="row"] {
    font-size: 12px;
  }

  .pricing-comparison-table td strong {
    font-size: 15px;
  }

  .tier-yes,
  .tier-no {
    width: 27px;
    height: 27px;
    font-size: 17px;
  }
}

/* Final mobile overrides: contain long account/order data inside the viewport. */
@media (max-width: 560px) {
  .pricing-page-hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .pricing-page-hero-copy {
    min-width: 0;
    width: calc(100% - 24px);
    max-width: 100%;
    padding-top: max(96px, calc(76px + env(safe-area-inset-top)));
    padding-bottom: 32px;
  }

  .pricing-page-hero-copy h1 {
    min-width: 0;
    font-size: clamp(40px, 14vw, 60px);
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .pricing-page-hero-copy > p:not(.eyebrow),
  .pricing-page-hero-actions {
    min-width: 0;
    max-width: 100%;
  }

  .pricing-page-hero-actions,
  .pricing-order-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .pricing-page-hero-actions .button,
  .pricing-order-actions .button {
    width: 100%;
    min-height: 48px;
    justify-content: center;
  }

  .pricing-facts,
  .pricing-account-strip,
  .pricing-public-section,
  .pricing-section-nav {
    width: calc(100% - 24px);
  }

  .pricing-section-nav {
    justify-content: start;
    grid-template-columns: repeat(5, 132px);
  }

  .pricing-section-nav a {
    min-height: 48px;
    justify-content: flex-start;
    padding-inline: 12px;
  }

  .pricing-comparison-shell {
    width: calc(100% - 24px);
  }

  .pricing-tier-overview article {
    padding: 26px 22px;
  }

  .pricing-comparison-table th,
  .pricing-comparison-table td {
    padding: 10px 12px;
  }

  .pricing-account-strip,
  .pricing-account-strip > * {
    min-width: 0;
    max-width: 100%;
  }

  .pricing-account-strip strong,
  .pricing-account-strip span,
  .pricing-action-row > * {
    overflow-wrap: anywhere;
  }

  .pricing-action-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .pricing-order-overlay {
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
  }

  .pricing-order-dialog {
    max-height: calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    padding: 26px 18px max(22px, env(safe-area-inset-bottom));
    overscroll-behavior: contain;
  }

  .pricing-order-close {
    width: 44px;
    height: 44px;
  }
}
