.page-products {
  --pr-line: rgba(215, 228, 221, .14);
  --pr-soft: rgba(215, 228, 221, .07);
  background-color: var(--c-ink);
  color: var(--c-paper);
  overflow-x: hidden;
}

.page-products .pr-crumbs-row {
  padding-top: clamp(14px, 2.5vw, 22px);
}

/* ---------- hero ---------- */
.page-products .pr-hero {
  position: relative;
  padding: clamp(18px, 3.5vw, 36px) 0 clamp(34px, 6vw, 76px);
  background:
    radial-gradient(120% 100% at 88% 0%, rgba(53, 242, 208, .12), transparent 58%),
    radial-gradient(90% 80% at 0% 100%, rgba(200, 57, 43, .12), transparent 62%),
    linear-gradient(180deg, var(--c-ink) 0%, #0E2620 58%, var(--c-coal) 100%);
  border-bottom: 1px solid var(--pr-soft);
}

.page-products .pr-hero__grid {
  display: grid;
  gap: clamp(22px, 4vw, 44px);
  align-items: end;
}

.page-products .pr-hero h1 {
  margin: 10px 0 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.05rem, 5.4vw, 4.1rem);
  line-height: 1.03;
  letter-spacing: -.01em;
  text-wrap: balance;
}

.page-products .pr-hero .lead {
  margin: 16px 0 0;
  max-width: 48ch;
}

.page-products .pr-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: clamp(18px, 3vw, 26px);
}

.page-products .pr-hero__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: clamp(20px, 3vw, 30px) 0 0;
  background: var(--pr-line);
  border: 1px solid var(--pr-line);
}

.page-products .pr-fact {
  background: rgba(11, 31, 26, .88);
  padding: 13px 12px 15px;
}

.page-products .pr-fact dt {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--c-mist);
}

.page-products .pr-fact dd {
  margin: 7px 0 0;
}

.page-products .pr-fact__v {
  font-size: clamp(1.25rem, 3vw, 1.9rem);
  line-height: 1;
  color: var(--c-cyan);
}

.page-products .pr-fact__v small {
  font-size: .46em;
  margin-left: 3px;
  color: var(--c-mist);
}

.page-products .pr-hero__figure {
  margin: 0;
}

.page-products .pr-hero__figure img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 1px solid var(--pr-line);
  border-radius: var(--radius);
  filter: saturate(.78) contrast(1.06);
  box-shadow: var(--shadow-card);
}

.page-products .pr-hero__figure figcaption {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: .04em;
  color: var(--c-mist);
}

/* ---------- section shell ---------- */
.page-products .pr-section {
  padding: clamp(38px, 6.5vw, 82px) 0;
  border-top: 1px solid var(--pr-soft);
}

.page-products .pr-head {
  max-width: 780px;
  margin-bottom: clamp(20px, 3.2vw, 36px);
}

.page-products .pr-head h2 {
  margin: 8px 0 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.65rem, 3.5vw, 2.6rem);
  line-height: 1.12;
  letter-spacing: -.005em;
}

.page-products .pr-head__note {
  margin: 12px 0 0;
  max-width: 64ch;
  font-size: .95rem;
  line-height: 1.78;
  color: var(--c-fog);
  opacity: .82;
}

.page-products .pr-head__note a {
  color: var(--c-cyan);
}

/* ---------- download decks ---------- */
.page-products .pr-decks {
  display: grid;
  gap: 14px;
}

.page-products .pr-deck {
  display: flex;
  flex-direction: column;
  gap: 11px;
  padding: 20px 18px 22px;
  background: linear-gradient(180deg, rgba(20, 59, 50, .52), rgba(17, 22, 20, .9));
  border: 1px solid var(--pr-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  transition: border-color .25s var(--ease), transform .25s var(--ease);
}

.page-products .pr-deck:hover {
  border-color: var(--c-line-cyan);
  transform: translateY(-2px);
}

.page-products .pr-deck--pick {
  border-color: var(--c-line-cyan);
  background: linear-gradient(180deg, rgba(53, 242, 208, .12), rgba(17, 22, 20, .92));
}

.page-products .pr-deck__label {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .16em;
  color: var(--c-amber);
}

.page-products .pr-deck__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.45rem;
  line-height: 1.15;
}

.page-products .pr-deck__sys {
  margin: 0;
  font-size: 12px;
  letter-spacing: .05em;
  color: var(--c-mist);
}

.page-products .pr-deck__text {
  margin: 0;
  font-size: .92rem;
  line-height: 1.75;
  color: var(--c-fog);
  opacity: .86;
}

.page-products .pr-steps {
  margin: 0;
  padding: 14px 0 0;
  list-style: none;
  counter-reset: prstep;
  display: grid;
  gap: 9px;
  border-top: 1px solid var(--pr-soft);
}

.page-products .pr-steps li {
  counter-increment: prstep;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 6px;
  font-size: .87rem;
  line-height: 1.62;
  color: var(--c-fog);
}

.page-products .pr-steps li::before {
  content: counter(prstep, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: .74rem;
  color: var(--c-cyan);
  padding-top: 2px;
}

.page-products .pr-download__foot {
  margin: 20px 0 0;
  font-size: .88rem;
  line-height: 1.7;
  color: var(--c-mist);
}

.page-products .pr-download__foot a {
  color: var(--c-cyan);
}

/* ---------- query ---------- */
.page-products .pr-query {
  background: linear-gradient(180deg, var(--c-ink), var(--c-coal));
}

.page-products .pr-query__grid {
  display: grid;
  gap: clamp(20px, 4vw, 44px);
  align-items: center;
}

.page-products .pr-query__figure {
  margin: 0;
}

.page-products .pr-query__figure img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border: 1px solid var(--pr-line);
  border-radius: var(--radius);
  filter: saturate(.8);
}

.page-products .pr-query__body h2 {
  margin: 8px 0 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.65rem, 3.5vw, 2.6rem);
  line-height: 1.12;
}

.page-products .pr-query__body p {
  margin: 12px 0 0;
  font-size: .95rem;
  line-height: 1.8;
  color: var(--c-fog);
  opacity: .88;
}

.page-products .pr-list {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.page-products .pr-list li {
  position: relative;
  padding-left: 18px;
  font-size: .93rem;
  line-height: 1.76;
  color: var(--c-fog);
  opacity: .9;
}

.page-products .pr-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .66em;
  width: 9px;
  height: 1px;
  background: var(--c-cyan);
}

.page-products .pr-list strong {
  color: var(--c-paper);
  font-weight: 600;
}

.page-products .pr-metrics {
  display: grid;
  gap: 1px;
  margin-top: clamp(24px, 4vw, 42px);
  background: rgba(74, 90, 84, .4);
  border: 1px solid rgba(74, 90, 84, .4);
}

.page-products .pr-metric {
  background: var(--c-paper);
  color: var(--c-ink);
  padding: 18px 16px 20px;
}

.page-products .pr-metric__num {
  margin: 0;
  font-size: clamp(1.7rem, 4.2vw, 2.6rem);
  font-weight: 600;
  line-height: 1;
  color: var(--c-ink);
}

.page-products .pr-metric__num small {
  font-size: .4em;
  margin-left: 4px;
  color: var(--c-slate);
}

.page-products .pr-metric__cap {
  margin: 9px 0 0;
  font-size: .82rem;
  line-height: 1.6;
  color: var(--c-slate);
}

/* ---------- EMC ---------- */
.page-products .pr-emc {
  background: var(--c-coal);
}

.page-products .pr-emc__grid {
  display: grid;
  gap: clamp(18px, 3vw, 32px);
  align-items: start;
}

.page-products .pr-emc__cards {
  display: grid;
  gap: 12px;
}

.page-products .pr-emc__card {
  padding: 17px 16px 18px;
  background: rgba(20, 59, 50, .34);
  border: 1px solid var(--pr-line);
  border-left: 2px solid var(--c-amber);
  transition: border-color .25s var(--ease);
}

.page-products .pr-emc__card:hover {
  border-color: var(--c-line-cyan);
  border-left-color: var(--c-cyan);
}

.page-products .pr-emc__card h3 {
  margin: 0 0 7px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.16rem;
}

.page-products .pr-emc__card p {
  margin: 0;
  font-size: .88rem;
  line-height: 1.72;
  color: var(--c-fog);
  opacity: .86;
}

.page-products .pr-speed {
  padding: 20px 18px 22px;
  border: 1px solid var(--c-line-cyan);
  background: rgba(20, 59, 50, .46);
  box-shadow: var(--shadow-lift);
}

.page-products .pr-speed__num {
  margin: 8px 0 0;
  font-size: clamp(2.4rem, 7vw, 3.5rem);
  line-height: 1;
  color: var(--c-amber);
}

.page-products .pr-speed__num small {
  font-size: .32em;
  margin-left: 4px;
  color: var(--c-fog);
}

.page-products .pr-speed__text {
  margin: 10px 0 18px;
  font-size: .89rem;
  line-height: 1.74;
  color: var(--c-fog);
  opacity: .88;
}

.page-products .pr-bars {
  display: grid;
  gap: 14px;
}

.page-products .pr-bar__row {
  display: grid;
  gap: 6px;
}

.page-products .pr-bar__meta {
  margin: 0;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .03em;
  color: var(--c-mist);
}

.page-products .pr-bar__track {
  height: 8px;
  background: rgba(215, 228, 221, .1);
}

.page-products .pr-bar__fill {
  display: block;
  height: 100%;
}

.page-products .pr-bar__fill--now {
  width: 57%;
  background: linear-gradient(90deg, var(--c-cyan), #17a891);
}

.page-products .pr-bar__fill--old {
  width: 100%;
  background: rgba(143, 163, 154, .42);
}

.page-products .pr-emc__figure {
  margin: 18px 0 0;
}

.page-products .pr-emc__figure img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border: 1px solid var(--pr-line);
  filter: saturate(.75);
}

/* ---------- offline ---------- */
.page-products .pr-offline {
  background: linear-gradient(180deg, var(--c-coal), var(--c-ink));
}

.page-products .pr-offline__grid {
  display: grid;
  gap: clamp(20px, 4vw, 40px);
  align-items: center;
}

.page-products .pr-offline__body h2 {
  margin: 8px 0 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.65rem, 3.5vw, 2.6rem);
  line-height: 1.12;
}

.page-products .pr-offline__body > p {
  margin: 12px 0 0;
  font-size: .95rem;
  line-height: 1.8;
  color: var(--c-fog);
  opacity: .88;
}

.page-products .pr-tagline {
  margin: 16px 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: .84rem;
  line-height: 1.7;
  color: var(--c-mist);
}

.page-products .pr-offline__figure {
  margin: 0;
}

.page-products .pr-offline__figure img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 1px solid var(--pr-line);
  border-radius: var(--radius);
  filter: saturate(.72);
}

/* ---------- skill tree ---------- */
.page-products .pr-tree-section {
  background: var(--c-coal);
}

.page-products .pr-tree {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-products .pr-tree::before {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 14px;
  left: 21px;
  width: 1px;
  background: linear-gradient(180deg, rgba(53, 242, 208, .55), rgba(53, 242, 208, .1));
}

.page-products .pr-node {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  padding-bottom: 16px;
}

.page-products .pr-node:last-child {
  padding-bottom: 0;
}

.page-products .pr-node__mark {
  position: relative;
  z-index: 1;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: .8rem;
  color: var(--c-cyan);
  background: var(--c-ink);
  border: 1px solid var(--c-line-cyan);
  border-radius: 50%;
}

.page-products .pr-node__box {
  padding: 13px 15px 15px;
  background: rgba(11, 31, 26, .74);
  border: 1px solid var(--pr-line);
  transition: border-color .25s var(--ease);
}

.page-products .pr-node__box:hover {
  border-color: var(--c-line-cyan);
}

.page-products .pr-node__box h3 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.12rem;
}

.page-products .pr-node__box p {
  margin: 0;
  font-size: .87rem;
  line-height: 1.72;
  color: var(--c-fog);
  opacity: .86;
}

.page-products .pr-branches {
  display: grid;
  gap: 12px;
  margin-top: clamp(22px, 3.4vw, 34px);
}

.page-products .pr-branch {
  padding: 18px 17px 20px;
  background: linear-gradient(180deg, rgba(20, 59, 50, .42), rgba(11, 31, 26, .84));
  border: 1px solid var(--pr-line);
  transition: border-color .25s var(--ease), transform .25s var(--ease);
}

.page-products .pr-branch:hover {
  border-color: var(--c-line-cyan);
  transform: translateY(-2px);
}

.page-products .pr-branch h3 {
  margin: 0 0 7px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.08rem;
}

.page-products .pr-branch p {
  margin: 0 0 12px;
  font-size: .86rem;
  line-height: 1.7;
  color: var(--c-fog);
  opacity: .86;
}

.page-products .pr-branch a {
  font-family: var(--font-mono);
  font-size: .82rem;
  letter-spacing: .04em;
  color: var(--c-cyan);
}

/* ---------- versions ---------- */
.page-products .pr-versions {
  background: linear-gradient(180deg, var(--c-ink), #0E2620);
}

.page-products .pr-versions__grid {
  display: grid;
  gap: clamp(20px, 4vw, 40px);
  align-items: start;
}

.page-products .pr-versions__grid h2 {
  margin: 8px 0 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.65rem, 3.5vw, 2.6rem);
  line-height: 1.12;
}

.page-products .pr-versions__lead {
  margin: 12px 0 0;
  font-size: .93rem;
  line-height: 1.78;
  color: var(--c-fog);
  opacity: .86;
}

.page-products .pr-versions__figure {
  margin: 20px 0 0;
}

.page-products .pr-versions__figure img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 5 / 3;
  object-fit: cover;
  border: 1px solid var(--pr-line);
  filter: saturate(.75);
}

.page-products .pr-acc {
  border-top: 1px solid var(--pr-line);
}

.page-products .pr-acc details {
  border-bottom: 1px solid var(--pr-line);
}

.page-products .pr-acc summary {
  position: relative;
  cursor: pointer;
  list-style: none;
  padding: 15px 34px 15px 0;
  font-size: .96rem;
  font-weight: 600;
  line-height: 1.6;
  color: var(--c-paper);
}

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

.page-products .pr-acc summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 13px;
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--c-cyan);
}

.page-products .pr-acc details[open] summary {
  color: var(--c-cyan);
}

.page-products .pr-acc details[open] summary::after {
  content: "–";
}

.page-products .pr-acc p {
  margin: 0 0 18px;
  max-width: 62ch;
  font-size: .89rem;
  line-height: 1.78;
  color: var(--c-fog);
  opacity: .86;
}

/* ---------- support ---------- */
.page-products .pr-support {
  background: var(--c-coal);
}

.page-products .pr-support__grid {
  display: grid;
  gap: 12px;
}

.page-products .pr-support__card {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 19px 17px 20px;
  background: rgba(11, 31, 26, .72);
  border: 1px solid var(--pr-line);
}

.page-products .pr-support__card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.12rem;
}

.page-products .pr-support__card p {
  margin: 0;
  font-size: .87rem;
  line-height: 1.74;
  color: var(--c-fog);
  opacity: .86;
}

.page-products .pr-support__mail {
  font-family: var(--font-mono);
  font-size: .84rem;
  color: var(--c-cyan);
  word-break: break-all;
  user-select: all;
}

.page-products .pr-support__card .mono {
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .04em;
  color: var(--c-mist);
}

.page-products .pr-support__link {
  margin-top: auto;
  padding-top: 6px;
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: .82rem;
  letter-spacing: .04em;
  color: var(--c-cyan);
}

/* ---------- responsive ---------- */
@media (min-width: 620px) {
  .page-products .pr-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .page-products .pr-emc__cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

@media (min-width: 800px) {
  .page-products .pr-decks {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

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

  .page-products .pr-query__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  }

  .page-products .pr-emc__grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  }

  .page-products .pr-offline__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, .78fr);
  }

  .page-products .pr-versions__grid {
    grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  }

  .page-products .pr-tree::before {
    left: 50%;
  }

  .page-products .pr-node {
    grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1fr);
    align-items: center;
    padding-bottom: 26px;
  }

  .page-products .pr-node__mark {
    grid-column: 2;
    justify-self: center;
  }

  .page-products .pr-node__box {
    grid-column: 1;
    text-align: right;
  }

  .page-products .pr-node:nth-child(even) .pr-node__box {
    grid-column: 3;
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-products .pr-deck,
  .page-products .pr-branch,
  .page-products .pr-node__box,
  .page-products .pr-emc__card {
    transition: none;
  }

  .page-products .pr-deck:hover,
  .page-products .pr-branch:hover {
    transform: none;
  }
}
