.page-products {
  background: var(--ink);
  color: var(--paper);
  --cat-line: rgba(155, 243, 236, 0.22);
  --cat-panel: var(--ink-2);
}

.page-products .cat-figure {
  margin: 0 0 24px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--cat-line);
  background: var(--ink-2);
}

.page-products .cat-figure img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

.page-products .cat-figure--center {
  margin-top: 32px;
}

/* ---------- hero ---------- */
.page-products .cat-hero {
  position: relative;
  overflow: hidden;
  padding: 20px 0 44px;
  background:
    radial-gradient(120% 90% at 82% -10%, rgba(53, 224, 214, 0.18), transparent 62%),
    linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%);
}

.page-products .cat-hero__inner {
  position: relative;
}

.page-products .eyebrow {
  margin: 16px 0 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--cyan);
}

.page-products .cat-hero__title {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(34px, 8.4vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--paper);
}

.page-products .cat-hero__lead {
  margin: 0 0 26px;
  max-width: 62ch;
  font-size: 16px;
  line-height: 1.75;
  color: rgba(242, 237, 228, 0.82);
}

.page-products .cat-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 26px;
}

.page-products .cat-stat {
  border: 1px solid var(--cat-line);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  background: rgba(16, 42, 68, 0.72);
}

.page-products .cat-stat__num {
  display: block;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 30px;
  line-height: 1.1;
  color: var(--lime);
}

.page-products .cat-stat__label {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  color: var(--fog);
}

.page-products .cat-hero__jump {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

/* ---------- section head ---------- */
.page-products .cat-head {
  margin-bottom: 22px;
}

.page-products .cat-num {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 40px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--cyan);
  opacity: 0.75;
}

.page-products .cat-num--dark {
  color: var(--clay);
  opacity: 1;
}

.page-products .cat-head__title {
  margin: 8px 0 12px;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(23px, 5.6vw, 34px);
  line-height: 1.25;
  color: var(--paper);
}

.page-products .cat-head__title--dark {
  color: var(--ink);
}

.page-products .cat-head__lead {
  margin: 0;
  max-width: 66ch;
  font-size: 15.5px;
  line-height: 1.75;
  color: rgba(242, 237, 228, 0.78);
}

.page-products .cat-body {
  margin: 0 0 16px;
  max-width: 60ch;
  font-size: 15.5px;
  line-height: 1.78;
  color: #22405c;
}

.page-products .cat-body--light {
  color: rgba(242, 237, 228, 0.8);
}

/* ---------- tiers ---------- */
.page-products .cat-tiers {
  padding: 44px 0 52px;
  background: linear-gradient(180deg, var(--ink-2) 0%, var(--ink) 78%);
}

.page-products .tier-track {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 2px 14px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

.page-products .tier-pill {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--cat-line);
  background: rgba(16, 42, 68, 0.8);
  color: var(--paper);
  font-size: 14.5px;
  text-decoration: none;
  scroll-snap-align: start;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
}

.page-products .tier-pill__num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--cyan);
}

.page-products .tier-pill:hover,
.page-products .tier-pill:focus-visible {
  border-color: var(--cyan);
  background: rgba(53, 224, 214, 0.14);
}

.page-products .tier-area {
  margin-top: 8px;
}

.page-products .tier-panel {
  display: none;
  padding: 24px 20px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--cat-line);
  background:
    radial-gradient(90% 120% at 100% 0%, rgba(53, 224, 214, 0.12), transparent 60%),
    var(--cat-panel);
}

.page-products .tier-panel:first-of-type {
  display: block;
}

.page-products .tier-area:has(.tier-panel:target) .tier-panel:first-of-type {
  display: none;
}

.page-products .tier-panel:target {
  display: block;
}

.page-products .tier-panel__name {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 26px;
  line-height: 1.15;
  color: var(--mist);
}

.page-products .tier-panel__for {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(242, 237, 228, 0.84);
}

.page-products .tier-panel__list {
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.page-products .tier-panel__list li {
  position: relative;
  padding-left: 20px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--paper);
}

.page-products .tier-panel__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 10px;
  height: 2px;
  background: var(--orange);
}

.page-products .tier-panel__note {
  margin: 0;
  padding-top: 14px;
  border-top: 1px dashed rgba(155, 243, 236, 0.28);
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--fog);
}

/* ---------- sand sections ---------- */
.page-products .cat-sand {
  padding: 44px 0;
  background: var(--paper);
  color: var(--ink);
}

.page-products .cat-sand--alt {
  background: linear-gradient(180deg, var(--paper) 0%, #e8e1d5 100%);
}

.page-products .split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 26px;
}

.page-products .split__media {
  margin: 0;
  border-color: rgba(10, 27, 46, 0.16);
  background: #dfd7c9;
}

.page-products .split__body {
  min-width: 0;
}

.page-products .cap-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 20px;
}

.page-products .cap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 6px 6px 6px 16px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid rgba(10, 27, 46, 0.16);
}

.page-products .cap__text {
  font-size: 14px;
  color: var(--stone);
}

.page-products .cap__price {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--orange);
  color: #ffffff;
}

.page-products .tick-list {
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.page-products .tick-list li {
  position: relative;
  padding-left: 18px;
  font-size: 15px;
  line-height: 1.7;
  color: #22405c;
}

.page-products .tick-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--clay);
}

.page-products .tick-list strong {
  color: var(--ink);
}

/* ---------- tag matrix ---------- */
.page-products .tag-matrix {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 20px;
}

.page-products .tag-cell {
  border-radius: var(--radius-md);
  padding: 14px 14px 16px;
  border: 1px solid rgba(10, 27, 46, 0.1);
  background: #ffffff;
  min-width: 0;
}

.page-products .tag-cell--a { background: rgba(53, 224, 214, 0.16); border-color: rgba(53, 224, 214, 0.4); }
.page-products .tag-cell--b { background: rgba(255, 107, 53, 0.14); border-color: rgba(255, 107, 53, 0.36); }
.page-products .tag-cell--c { background: rgba(143, 191, 106, 0.2); border-color: rgba(143, 191, 106, 0.42); }
.page-products .tag-cell--d { background: rgba(180, 85, 60, 0.13); border-color: rgba(180, 85, 60, 0.32); }
.page-products .tag-cell--e { background: rgba(198, 242, 78, 0.24); border-color: rgba(198, 242, 78, 0.5); }
.page-products .tag-cell--f { background: rgba(46, 58, 70, 0.1); border-color: rgba(46, 58, 70, 0.26); }
.page-products .tag-cell--g { background: rgba(53, 224, 214, 0.1); border-color: rgba(53, 224, 214, 0.3); }
.page-products .tag-cell--h { background: rgba(155, 243, 236, 0.32); border-color: rgba(155, 243, 236, 0.6); }

.page-products .tag-cell__name {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  color: var(--ink);
  margin-bottom: 6px;
}

.page-products .tag-cell__tags {
  display: block;
  font-size: 12.5px;
  line-height: 1.6;
  color: #33506b;
}

/* ---------- metrics ---------- */
.page-products .cat-metrics {
  padding: 48px 0;
  background: linear-gradient(180deg, var(--ink) 0%, var(--stone) 100%);
}

.page-products .metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.page-products .metric {
  padding: 16px 14px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--cat-line);
  background: rgba(16, 42, 68, 0.66);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease), background 0.25s var(--ease);
}

.page-products .metric:hover,
.page-products .metric:focus-within {
  border-color: var(--cyan);
  background: rgba(53, 224, 214, 0.1);
  transform: translateY(-2px);
}

.page-products .metric__idx {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--orange);
  margin-bottom: 6px;
}

.page-products .metric__name {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.2;
  color: var(--paper);
}

.page-products .metric__desc {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(242, 237, 228, 0.7);
}

.page-products .metric__freq {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(198, 242, 78, 0.4);
  color: var(--lime);
}

/* ---------- mobile flow ---------- */
.page-products .cat-mobile {
  padding: 44px 0 52px;
  background: var(--ink);
}

.page-products .flow-line {
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}

.page-products .flow-line__item {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  padding-bottom: 16px;
}

.page-products .flow-line__item:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 16px;
  top: 34px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--cyan), rgba(53, 224, 214, 0.1));
}

.page-products .flow-line__dot {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--ink);
  background: var(--cyan);
}

.page-products .flow-line__title {
  margin: 4px 0 4px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--paper);
}

.page-products .flow-line__text {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.68;
  color: rgba(242, 237, 228, 0.76);
}

/* ---------- map ---------- */
.page-products .cat-map {
  padding: 46px 0 52px;
  background: linear-gradient(180deg, var(--stone) 0%, var(--ink-2) 100%);
}

.page-products .map-list {
  display: grid;
  gap: 8px;
}

.page-products .map-row {
  border-radius: var(--radius-md);
  border: 1px solid var(--cat-line);
  background: rgba(10, 27, 46, 0.6);
  overflow: hidden;
}

.page-products .map-row summary {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  min-height: 48px;
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
}

.page-products .map-row summary::-webkit-details-marker {
  display: none;
}

.page-products .map-row__old {
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: var(--fog);
  text-decoration: line-through;
  text-decoration-color: rgba(255, 107, 53, 0.6);
}

.page-products .map-row__arrow {
  font-family: var(--font-mono);
  color: var(--orange);
}

.page-products .map-row__new {
  font-size: 15px;
  color: var(--paper);
}

.page-products .map-row__note {
  margin: 0;
  padding: 0 16px 16px;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(242, 237, 228, 0.72);
}

.page-products .map-row[open] {
  border-color: rgba(53, 224, 214, 0.5);
  background: rgba(53, 224, 214, 0.08);
}

/* ---------- onboard ---------- */
.page-products .cat-onboard {
  padding: 46px 0 56px;
  background: var(--ink);
}

.page-products .onboard {
  margin: 0 0 30px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.page-products .onboard__box {
  border-radius: var(--radius-md);
  border: 1px solid var(--cat-line);
  background: var(--cat-panel);
}

.page-products .onboard__box summary {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
  flex-wrap: wrap;
}

.page-products .onboard__box summary::-webkit-details-marker {
  display: none;
}

.page-products .onboard__num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--cyan);
}

.page-products .onboard__name {
  flex: 1 1 160px;
  font-size: 15.5px;
  color: var(--paper);
}

.page-products .onboard__time {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 107, 53, 0.18);
  color: var(--orange);
}

.page-products .onboard__box p {
  margin: 0;
  padding: 0 16px 16px;
  font-size: 14.5px;
  line-height: 1.72;
  color: rgba(242, 237, 228, 0.76);
}

.page-products .cat-tail {
  padding: 24px 20px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(53, 224, 214, 0.3);
  background:
    radial-gradient(90% 120% at 0% 0%, rgba(53, 224, 214, 0.14), transparent 62%),
    var(--cat-panel);
}

.page-products .cat-tail__text {
  margin: 0 0 18px;
  max-width: 60ch;
  font-size: 15px;
  line-height: 1.75;
  color: rgba(242, 237, 228, 0.82);
}

.page-products .cat-tail__text a {
  color: var(--mist);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-products .cat-tail__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

@media (min-width: 720px) {
  .page-products .cat-hero {
    padding: 28px 0 60px;
  }

  .page-products .cat-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .page-products .tag-matrix {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .page-products .metric-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .page-products .tier-panel {
    padding: 30px 28px;
  }

  .page-products .cat-tail {
    padding: 32px 28px;
  }
}

@media (min-width: 960px) {
  .page-products .cat-tiers,
  .page-products .cat-sand,
  .page-products .cat-metrics,
  .page-products .cat-mobile,
  .page-products .cat-map,
  .page-products .cat-onboard {
    padding-top: 64px;
    padding-bottom: 72px;
  }

  .page-products .split {
    grid-template-columns: 5fr 7fr;
    gap: 52px;
    align-items: center;
  }

  .page-products .split--flip {
    grid-template-columns: 7fr 5fr;
  }

  .page-products .split__media--narrow {
    max-width: 340px;
    justify-self: end;
  }

  .page-products .metric-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
  }

  .page-products .tier-track {
    flex-wrap: wrap;
    overflow: visible;
  }

  .page-products .map-list {
    gap: 10px;
  }

  .page-products .onboard {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .page-products .onboard__box summary {
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-products .metric,
  .page-products .tier-pill {
    transition: none;
  }

  .page-products .metric:hover {
    transform: none;
  }
}
