.page-products {
  --prod-rail: 250px;
  --prod-line: var(--grid-line);
  padding-bottom: 5.5rem;
  background:
    radial-gradient(70rem 34rem at 8% -8%, rgba(25, 245, 198, 0.07), transparent 62%),
    radial-gradient(50rem 30rem at 96% 12%, rgba(245, 214, 75, 0.05), transparent 60%);
}

.page-products .breadcrumb {
  padding-block: 1.15rem 0.35rem;
}

/* ---------- Hero ---------- */
.page-products .tools-hero {
  padding-block: clamp(1rem, 3vw, 2rem) clamp(2rem, 5vw, 3.5rem);
}

.page-products .tools-hero__grid {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: center;
}

.page-products .tools-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
}

.page-products .tools-hero h1 {
  margin: 0 0 1.1rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.2rem, 6vw, 3.75rem);
  line-height: 1.05;
  letter-spacing: 0.01em;
  color: var(--white);
  text-wrap: balance;
}

.page-products .tools-hero__lede {
  max-width: 34rem;
  margin: 0 0 1.35rem;
  font-size: clamp(0.95rem, 1.6vw, 1.0625rem);
  line-height: 1.78;
  color: var(--muted);
}

.page-products .tools-hero__status {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 1.6rem;
  padding: 0;
  list-style: none;
}

.page-products .tools-hero__status li {
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--prod-line);
  border-radius: 999px;
  background: rgba(12, 42, 32, 0.65);
  font-family: var(--font-mono);
  font-size: 0.71rem;
  letter-spacing: 0.04em;
  color: var(--white);
  font-variant-numeric: tabular-nums;
}

.page-products .tools-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.page-products .tools-hero__device {
  display: flex;
  justify-content: center;
}

.page-products .device {
  position: relative;
  width: min(320px, 84%);
  padding: 0.7rem 0.7rem 0.9rem;
  border: 1px solid var(--prod-line);
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(12, 42, 32, 0.96), rgba(4, 17, 12, 0.99));
  box-shadow: 0 34px 66px -34px rgba(0, 0, 0, 0.92), 0 0 0 1px rgba(25, 245, 198, 0.07);
}

.page-products .device::before {
  content: "";
  position: absolute;
  top: -14%;
  left: -16%;
  right: -16%;
  height: 56%;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(25, 245, 198, 0.2), transparent 72%);
  filter: blur(12px);
  pointer-events: none;
}

.page-products .device__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.1rem 0.4rem 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.61rem;
  letter-spacing: 0.15em;
  color: var(--cyan);
}

.page-products .device__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 3px rgba(25, 245, 198, 0.18);
}

.page-products .device__clock {
  color: var(--yellow);
  font-variant-numeric: tabular-nums;
}

.page-products .device__img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
  object-fit: cover;
}

/* ---------- Body split ---------- */
.page-products .tools-body {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  padding-bottom: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.page-products .tools-rail {
  padding: 0.9rem;
  border: 1px solid var(--prod-line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(12, 42, 32, 0.9), rgba(6, 26, 19, 0.55));
}

.page-products .tools-rail__title {
  margin: 0 0 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.page-products .section-index__list {
  display: flex;
  gap: 0.4rem;
  margin: 0;
  padding: 0 0 0.35rem;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: thin;
}

.page-products .section-index__list li {
  flex: 0 0 auto;
}

.page-products .section-index__link {
  display: block;
  padding: 0.42rem 0.72rem;
  border: 1px solid var(--prod-line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.71rem;
  letter-spacing: 0.02em;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.page-products .section-index__link:hover,
.page-products .section-index__link:focus-visible {
  color: var(--white);
  border-color: var(--cyan);
}

.page-products .section-index__link[data-active="true"] {
  color: var(--ink-900);
  background: var(--cyan);
  border-color: var(--cyan);
}

.page-products .tools-rail__readout {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.85rem;
  padding-top: 0.8rem;
  border-top: 1px dashed var(--prod-line);
}

.page-products .tools-rail__readout p {
  margin: 0;
  font-size: 0.77rem;
  line-height: 1.55;
  color: var(--muted);
}

.page-products .tools-rail__readout strong {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--yellow);
  font-variant-numeric: tabular-nums;
}

/* ---------- Blocks ---------- */
.page-products .tools-block {
  padding-block: clamp(1.9rem, 4vw, 3.25rem);
  border-top: 1px solid var(--prod-line);
}

.page-products .tools-block:first-child {
  padding-top: 0;
  border-top: 0;
}

.page-products .tools-block__index {
  margin: 0 0 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.69rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--yellow);
}

.page-products .tools-block h2 {
  margin: 0 0 0.7rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.45rem, 3.2vw, 2.1rem);
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: var(--white);
  text-wrap: balance;
}

.page-products .tools-block__lede {
  max-width: 42rem;
  margin: 0 0 1.4rem;
  font-size: 0.94rem;
  line-height: 1.78;
  color: var(--muted);
}

.page-products .tools-block__note {
  margin: 1rem 0 0;
  padding-left: 0.85rem;
  border-left: 2px solid var(--prod-line);
  font-size: 0.83rem;
  line-height: 1.7;
  color: var(--muted);
}

/* ---------- Steps ---------- */
.page-products .steps {
  display: grid;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-products .step {
  overflow: hidden;
  border: 1px solid var(--prod-line);
  border-radius: var(--radius);
  background: linear-gradient(150deg, rgba(12, 42, 32, 0.86), rgba(6, 26, 19, 0.6));
}

.page-products .step[open] {
  border-color: rgba(25, 245, 198, 0.42);
}

.page-products .step__summary {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  list-style: none;
  cursor: pointer;
  font-size: 0.94rem;
  color: var(--white);
}

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

.page-products .step__summary::after {
  content: "+";
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--cyan);
}

.page-products .step[open] .step__summary::after {
  content: "–";
}

.page-products .step__no {
  flex: 0 0 auto;
  padding: 0.1rem 0.38rem;
  border: 1px solid rgba(25, 245, 198, 0.4);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--cyan);
}

.page-products .step__title {
  flex: 1 1 auto;
}

.page-products .step__hint {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 0.67rem;
  color: var(--muted);
}

.page-products .step__body {
  margin: 0;
  padding: 0 1rem 1rem;
  font-size: 0.88rem;
  line-height: 1.72;
  color: var(--muted);
}

.page-products .param-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.6rem;
  margin-top: 1rem;
}

.page-products .param {
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--prod-line);
  border-radius: 10px;
  background: rgba(4, 17, 12, 0.55);
}

.page-products .param__key {
  display: block;
  margin-bottom: 0.3rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.page-products .param__val {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  font-variant-numeric: tabular-nums;
}

/* ---------- Diff bars ---------- */
.page-products .diff-bars {
  display: grid;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-products .diff-row {
  display: grid;
  grid-template-columns: 3.4rem minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 0.55rem;
}

.page-products .diff-row__label {
  font-size: 0.79rem;
  color: var(--muted);
}

.page-products .diff-row__track {
  height: 8px;
  border-radius: 99px;
  background: rgba(34, 72, 58, 0.6);
  overflow: hidden;
}

.page-products .diff-row__fill {
  display: block;
  width: 55%;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, rgba(25, 245, 198, 0.3), var(--cyan));
}

.page-products .diff-row--high .diff-row__fill {
  background: linear-gradient(90deg, rgba(245, 214, 75, 0.28), var(--yellow));
}

.page-products .diff-row--low .diff-row__fill {
  background: linear-gradient(90deg, rgba(255, 122, 47, 0.3), var(--orange));
}

.page-products .diff-row__value {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--white);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.page-products .diff-row__delta {
  padding: 0.1rem 0.38rem;
  border-radius: 5px;
  font-family: var(--font-mono);
  font-size: 0.73rem;
  font-variant-numeric: tabular-nums;
}

.page-products .diff-row--high .diff-row__delta {
  color: var(--yellow);
  background: rgba(245, 214, 75, 0.13);
}

.page-products .diff-row--low .diff-row__delta {
  color: var(--orange);
  background: rgba(255, 122, 47, 0.13);
}

.page-products .diff-row--flat .diff-row__delta {
  color: var(--muted);
  background: rgba(143, 167, 158, 0.13);
}

.page-products .diff-row:nth-child(1) .diff-row__fill { width: 68%; }
.page-products .diff-row:nth-child(2) .diff-row__fill { width: 46%; }
.page-products .diff-row:nth-child(3) .diff-row__fill { width: 62%; }
.page-products .diff-row:nth-child(4) .diff-row__fill { width: 41%; }
.page-products .diff-row:nth-child(5) .diff-row__fill { width: 57%; }
.page-products .diff-row:nth-child(6) .diff-row__fill { width: 52%; }

/* ---------- Shots ---------- */
.page-products .shot {
  margin: 1.35rem 0 0;
}

.page-products .shot img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--prod-line);
  border-radius: var(--radius);
  object-fit: cover;
}

.page-products .shot figcaption {
  margin-top: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  color: var(--muted);
}

/* ---------- Rank table ---------- */
.page-products .table-wrap {
  overflow-x: auto;
  border: 1px solid var(--prod-line);
  border-radius: var(--radius);
  background: rgba(4, 17, 12, 0.5);
}

.page-products .rank-table {
  width: 100%;
  min-width: 33rem;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.page-products .rank-table__caption {
  padding: 0.7rem 0.85rem 0.1rem;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.page-products .rank-table th,
.page-products .rank-table td {
  padding: 0.6rem 0.72rem;
  text-align: right;
  white-space: nowrap;
  border-bottom: 1px solid rgba(34, 72, 58, 0.6);
}

.page-products .rank-table th:first-child,
.page-products .rank-table td:first-child {
  width: 3.2rem;
  text-align: left;
}

.page-products .rank-table th:nth-child(2),
.page-products .rank-table td:nth-child(2) {
  text-align: left;
}

.page-products .rank-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--ink-700);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.page-products .rank-table tbody td {
  font-family: var(--font-mono);
  color: var(--white);
  font-variant-numeric: tabular-nums;
}

.page-products .rank-table tbody td:nth-child(2) {
  font-family: var(--font-body);
}

.page-products .rank-table tbody tr:nth-child(even) {
  background: rgba(34, 72, 58, 0.17);
}

.page-products .rank-table tbody tr:hover {
  background: rgba(25, 245, 198, 0.08);
}

.page-products .rank-table tbody td:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  background: var(--ink-800);
  font-weight: 600;
  color: var(--cyan);
}

.page-products .rank-table tbody tr:last-child td {
  border-bottom: 0;
}

/* ---------- Round line ---------- */
.page-products .round-line {
  display: flex;
  gap: 0.5rem;
  margin: 0;
  padding: 0 0 0.7rem;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}

.page-products .round-node {
  display: grid;
  flex: 0 0 auto;
  gap: 0.2rem;
  min-width: 5.4rem;
  padding: 0.55rem 0.62rem;
  border: 1px solid var(--prod-line);
  border-radius: 10px;
  background: rgba(12, 42, 32, 0.62);
  scroll-snap-align: start;
}

.page-products .round-node__id {
  font-family: var(--font-mono);
  font-size: 0.73rem;
  color: var(--white);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.page-products .round-node__meta {
  font-family: var(--font-mono);
  font-size: 0.63rem;
  color: var(--muted);
  white-space: nowrap;
}

.page-products .round-node--past {
  opacity: 0.52;
}

.page-products .round-node--next {
  border-color: rgba(245, 214, 75, 0.5);
  box-shadow: inset 0 0 0 1px rgba(245, 214, 75, 0.1);
}

.page-products .round-node--next .round-node__id {
  color: var(--yellow);
}

.page-products .round-node--moved .round-node__meta {
  color: var(--orange);
}

/* ---------- Status cards ---------- */
.page-products .status-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
}

.page-products .status-card {
  padding: 0.9rem 1rem;
  border: 1px solid var(--prod-line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(12, 42, 32, 0.82), rgba(6, 26, 19, 0.52));
}

.page-products .status-card__label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.71rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cyan);
}

.page-products .status-card__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.page-products .status-card--inj .status-card__label {
  color: var(--yellow);
}

.page-products .status-card--sus .status-card__label {
  color: var(--orange);
}

.page-products .status-card p:last-child {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.68;
  color: var(--muted);
}

/* ---------- Saved ---------- */
.page-products .saved-grid {
  display: grid;
  gap: 0.65rem;
}

.page-products .saved-card {
  padding: 0.85rem 1rem;
  border: 1px solid var(--prod-line);
  border-left: 3px solid rgba(25, 245, 198, 0.55);
  border-radius: 10px;
  background: rgba(4, 17, 12, 0.55);
}

.page-products .saved-card__label {
  margin: 0 0 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
}

.page-products .saved-card p:last-child {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.68;
  color: var(--muted);
}

/* ---------- Support ---------- */
.page-products .support-panel {
  padding: clamp(1rem, 2.6vw, 1.5rem);
  border: 1px solid var(--prod-line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(12, 42, 32, 0.88), rgba(4, 17, 12, 0.7));
}

.page-products .support-list {
  display: grid;
  gap: 0.75rem;
  margin: 0 0 1.2rem;
  padding: 0;
  list-style: none;
}

.page-products .support-list li {
  display: grid;
  gap: 0.25rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px dashed rgba(34, 72, 58, 0.8);
}

.page-products .support-list li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.page-products .support-list__k {
  font-family: var(--font-mono);
  font-size: 0.67rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--yellow);
}

.page-products .support-list__v {
  font-size: 0.86rem;
  line-height: 1.7;
  color: var(--muted);
}

.page-products .support-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.page-products .support-note {
  margin: 1.1rem 0 0;
  font-size: 0.81rem;
  line-height: 1.75;
  color: var(--muted);
}

.page-products .support-note a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(25, 245, 198, 0.4);
}

.page-products .support-note a:hover,
.page-products .support-note a:focus-visible {
  color: var(--yellow);
  border-bottom-color: var(--yellow);
}

/* ---------- Feedback dock ---------- */
.page-products .feedback-dock {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  padding: 0.55rem clamp(1rem, 3.4vw, 2.75rem);
  border-top: 1px solid rgba(25, 245, 198, 0.28);
  background: rgba(4, 17, 12, 0.95);
  backdrop-filter: blur(8px);
}

.page-products .feedback-dock__text {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--muted);
}

.page-products .feedback-dock__link {
  flex: 0 0 auto;
  padding: 0.42rem 0.95rem;
  border-radius: 999px;
  background: var(--orange);
  font-size: 0.81rem;
  font-weight: 700;
  color: var(--ink-900);
  text-decoration: none;
  transition: background-color 0.2s var(--ease);
}

.page-products .feedback-dock__link:hover,
.page-products .feedback-dock__link:focus-visible {
  background: var(--yellow);
}

/* ---------- Breakpoints ---------- */
@media (min-width: 620px) {
  .page-products .status-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (min-width: 880px) {
  .page-products .tools-hero__grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  }
}

@media (min-width: 1024px) {
  .page-products .tools-body {
    grid-template-columns: var(--prod-rail) minmax(0, 1fr);
  }

  .page-products .tools-rail {
    position: sticky;
    top: calc(var(--header-h) + 1.25rem);
  }

  .page-products .section-index__list {
    flex-direction: column;
    gap: 0.2rem;
    padding-bottom: 0;
    overflow: visible;
  }

  .page-products .section-index__list li {
    flex: 1 1 auto;
  }

  .page-products .section-index__link {
    padding: 0.45rem 0.6rem;
    border-color: transparent;
    border-radius: 8px;
  }

  .page-products .section-index__link[data-active="true"] {
    background: rgba(25, 245, 198, 0.14);
    border-color: rgba(25, 245, 198, 0.42);
    color: var(--cyan);
  }
}

@media (max-width: 419px) {
  .page-products .diff-row {
    grid-template-columns: 3rem minmax(0, 1fr) auto;
  }

  .page-products .diff-row__delta {
    display: none;
  }

  .page-products .feedback-dock__text {
    display: none;
  }

  .page-products .feedback-dock {
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-products .section-index__link,
  .page-products .feedback-dock__link {
    transition: none;
  }
}
