.page-products {
  --pp-index-w: 208px;
  --pp-rule: rgba(11, 27, 43, .12);
  --pp-rule-copper: rgba(185, 138, 75, .42);
  background: var(--paper);
  color: var(--text);
}

.page-products .pp-hero {
  padding: .75rem 0 clamp(2rem, 5vw, 3.5rem);
}

.page-products h1 {
  margin: .55rem 0 1rem;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2rem, 5vw, 3.3rem);
  line-height: 1.16;
  letter-spacing: -.015em;
  max-width: 22ch;
}

.page-products h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  line-height: 1.28;
  letter-spacing: -.01em;
}

.page-products h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: 1.5;
  margin: 0 0 .3rem;
}

.page-products p {
  margin: 0;
}

.page-products .pp-hero__grid {
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.75rem);
}

.page-products .pp-hero__lead {
  max-width: 58ch;
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--muted);
}

.page-products .pp-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.5rem;
}

.page-products .pp-hero__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  background: var(--ink-900);
  border: 2px solid var(--ink-900);
  box-shadow: var(--hard-shadow);
}

.page-products .pp-stat {
  padding: .9rem 1rem 1rem;
  border-right: 1px solid var(--pp-rule-copper);
  border-bottom: 1px solid var(--pp-rule-copper);
}

.page-products .pp-stat:nth-child(2n) {
  border-right: 0;
}

.page-products .pp-stat:nth-last-child(-n+2) {
  border-bottom: 0;
}

.page-products .pp-stat__num {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.7rem;
  line-height: 1.1;
  color: var(--copper-bright);
}

.page-products .pp-stat__label {
  display: block;
  margin-top: .3rem;
  font-size: .8125rem;
  line-height: 1.5;
  color: rgba(232, 237, 242, .76);
}

.page-products .pp-wrap {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  padding-bottom: clamp(2.5rem, 6vw, 5rem);
}

.page-products .pp-index {
  border-top: 2px solid var(--ink-900);
  padding-top: .9rem;
}

.page-products .pp-index__title {
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .16em;
  color: var(--copper);
  margin-bottom: .75rem;
}

.page-products .pp-index__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 .9rem;
}

.page-products .pp-index__list a {
  display: flex;
  align-items: baseline;
  gap: .5rem;
  padding: .5rem 0;
  border-bottom: 1px solid var(--pp-rule);
  font-size: .875rem;
  color: var(--ink-800);
  text-decoration: none;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.page-products .pp-index__list a:hover,
.page-products .pp-index__list a:focus-visible {
  color: var(--copper);
  border-bottom-color: var(--copper);
}

.page-products .pp-index__num {
  font-family: var(--font-mono);
  font-size: .75rem;
  color: var(--muted);
}

.page-products .pp-section {
  padding: clamp(2rem, 5vw, 3.5rem) 0;
  border-top: 1px solid var(--pp-rule-copper);
}

.page-products .pp-section:first-child {
  border-top: 0;
  padding-top: 0;
}

.page-products .pp-section__head {
  display: grid;
  gap: .6rem;
  margin-bottom: clamp(1.25rem, 3vw, 2rem);
}

.page-products .pp-section__num {
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .18em;
  color: var(--copper);
}

.page-products .pp-section__lead {
  max-width: 62ch;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--muted);
}

.page-products .pp-features {
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-products .pp-feature {
  display: grid;
  grid-template-columns: 2.6rem minmax(0, 1fr);
  gap: .2rem .8rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--pp-rule);
}

.page-products .pp-feature:last-child {
  border-bottom: 0;
}

.page-products .pp-feature__num {
  grid-row: 1 / span 3;
  font-family: var(--font-mono);
  font-size: .8125rem;
  color: var(--copper);
  padding-top: .35rem;
}

.page-products .pp-feature > h3,
.page-products .pp-feature > p,
.page-products .pp-feature > details {
  grid-column: 2;
}

.page-products .pp-feature p {
  max-width: 66ch;
  line-height: 1.8;
  color: var(--muted);
}

.page-products .pp-split {
  display: grid;
  gap: clamp(1.25rem, 3vw, 2rem);
}

.page-products .pp-manage {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.1rem;
}

.page-products .pp-manage li {
  padding-left: .9rem;
  border-left: 3px solid var(--copper);
}

.page-products .pp-manage p {
  line-height: 1.8;
  color: var(--muted);
  max-width: 58ch;
}

.page-products .pp-status {
  padding: 1.15rem 1.25rem 1.3rem;
}

.page-products .pp-status__title {
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .16em;
  color: var(--copper-bright);
  margin-bottom: .85rem;
}

.page-products .pp-status__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .7rem;
}

.page-products .pp-status__list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: .55rem;
  align-items: start;
  font-size: .9375rem;
  line-height: 1.65;
  color: rgba(232, 237, 242, .9);
}

.page-products .pp-status__note {
  margin-top: 1rem;
  padding-top: .9rem;
  border-top: 1px solid rgba(185, 138, 75, .38);
  font-size: .875rem;
  line-height: 1.75;
  color: rgba(232, 237, 242, .72);
}

.page-products .pp-status__note a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

.page-products .pp-figure {
  margin: 0 0 clamp(1.25rem, 3vw, 2rem);
}

.page-products .figure__frame {
  border: 2px solid var(--ink-900);
  box-shadow: var(--hard-shadow);
  overflow: hidden;
  background: var(--cool);
}

.page-products .figure__frame img {
  display: block;
  width: 100%;
  height: auto;
}

.page-products .figure__caption {
  margin-top: .7rem;
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .02em;
  line-height: 1.7;
  color: var(--muted);
}

.page-products .pp-figure--stamp .figure__frame {
  max-width: 420px;
}

.page-products .pp-table-scroll {
  overflow-x: auto;
  border: 2px solid var(--ink-900);
  background: var(--cool);
}

.page-products .pp-matrix {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: .9375rem;
}

.page-products .pp-matrix caption {
  caption-side: top;
  text-align: left;
  padding: .7rem .9rem;
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .04em;
  color: var(--muted);
  background: var(--paper);
  border-bottom: 2px solid var(--ink-900);
}

.page-products .pp-matrix th,
.page-products .pp-matrix td {
  padding: .7rem .9rem;
  text-align: left;
  border-bottom: 1px solid var(--pp-rule);
  border-right: 1px solid var(--pp-rule);
}

.page-products .pp-matrix tr > *:last-child {
  border-right: 0;
}

.page-products .pp-matrix tbody tr:last-child > * {
  border-bottom: 0;
}

.page-products .pp-matrix thead th {
  background: var(--ink-900);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .08em;
  font-weight: 500;
}

.page-products .pp-matrix tbody th {
  font-weight: 600;
  color: var(--ink-900);
  white-space: nowrap;
}

.page-products .pp-matrix td {
  color: var(--ink-800);
  white-space: nowrap;
}

.page-products .pp-term {
  display: inline-block;
  min-width: 1.9rem;
  margin-right: .4rem;
  padding: .05rem .3rem;
  font-size: .75rem;
  text-align: center;
  color: var(--copper);
  border: 1px solid var(--pp-rule-copper);
}

.page-products .pp-matrix__note {
  margin-top: .9rem;
  font-size: .875rem;
  line-height: 1.8;
  color: var(--muted);
  max-width: 62ch;
}

.page-products .pp-compare {
  border: 2px solid var(--ink-900);
  background: var(--paper);
  box-shadow: var(--hard-shadow);
}

.page-products .pp-compare__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--pp-rule);
}

.page-products .pp-compare__row:last-child {
  border-bottom: 0;
}

.page-products .pp-compare__key {
  grid-column: 1 / -1;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .9375rem;
  color: var(--ink-900);
}

.page-products .pp-compare__cell {
  display: grid;
  gap: .35rem;
  align-content: start;
}

.page-products .pp-compare__cell p {
  font-size: .9375rem;
  line-height: 1.75;
  color: var(--muted);
}

.page-products .pp-compare__tag {
  font-family: var(--font-mono);
  font-size: .6875rem;
  letter-spacing: .1em;
  color: var(--muted);
}

.page-products .pp-compare__cell--now {
  padding-left: .7rem;
  border-left: 3px solid var(--cyan);
}

.page-products .pp-compare__cell--now .pp-compare__tag {
  color: var(--copper);
}

.page-products .pp-compare__cell--now p {
  color: var(--ink-900);
}

.page-products .pp-steps-block {
  background: var(--ink-900);
  color: var(--cool);
  padding: clamp(1.25rem, 4vw, 2.25rem);
  border-left: 4px solid var(--cyan);
  box-shadow: var(--hard-shadow);
}

.page-products .pp-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: ppstep;
}

.page-products .pp-steps li {
  counter-increment: ppstep;
  display: grid;
  grid-template-columns: 2.2rem minmax(0, 1fr);
  gap: .25rem .85rem;
  padding: 1rem 0;
  border-top: 1px solid rgba(232, 237, 242, .16);
}

.page-products .pp-steps li:first-child {
  border-top: 0;
  padding-top: 0;
}

.page-products .pp-steps li::before {
  content: counter(ppstep, decimal-leading-zero);
  grid-row: 1 / span 2;
  font-family: var(--font-mono);
  font-size: .875rem;
  color: var(--cyan);
  padding-top: .25rem;
}

.page-products .pp-steps h3 {
  color: var(--paper);
  margin: 0;
}

.page-products .pp-steps p {
  font-size: .9375rem;
  line-height: 1.8;
  color: rgba(232, 237, 242, .78);
  max-width: 62ch;
}

.page-products .pp-steps__note {
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(185, 138, 75, .42);
  font-size: .875rem;
  line-height: 1.8;
  color: rgba(232, 237, 242, .74);
}

.page-products .pp-steps__note a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

.page-products .pp-dl {
  display: grid;
  gap: clamp(1.25rem, 3vw, 2rem);
}

.page-products .pp-formats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .7rem;
}

.page-products .pp-format {
  display: grid;
  grid-template-columns: 3.6rem minmax(0, 1fr);
  gap: .9rem;
  align-items: baseline;
  padding: .7rem .9rem;
  border: 2px solid var(--ink-900);
  font-size: .9375rem;
  line-height: 1.7;
  color: var(--muted);
}

.page-products .pp-format__code {
  font-family: var(--font-mono);
  font-size: .8125rem;
  letter-spacing: .06em;
  color: var(--copper);
}

.page-products .pp-numbers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--pp-rule);
  border: 1px solid var(--pp-rule);
}

.page-products .pp-number {
  background: var(--cool);
  padding: .9rem 1rem;
}

.page-products .pp-number b {
  display: block;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 1.45rem;
  line-height: 1.1;
  color: var(--ink-900);
}

.page-products .pp-number span {
  display: block;
  margin-top: .25rem;
  font-size: .8125rem;
  line-height: 1.5;
  color: var(--muted);
}

.page-products .fold {
  margin-top: .5rem;
  border-top: 1px dashed var(--pp-rule-copper);
  padding-top: .6rem;
}

.page-products .fold summary {
  cursor: pointer;
  font-size: .875rem;
  font-weight: 500;
  color: var(--ink-700);
  list-style: none;
}

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

.page-products .fold summary::before {
  content: "＋";
  display: inline-block;
  width: 1rem;
  font-family: var(--font-mono);
  color: var(--copper);
}

.page-products .fold[open] summary::before {
  content: "－";
}

.page-products .fold summary:hover {
  color: var(--copper);
}

.page-products .fold__body {
  padding-top: .55rem;
  font-size: .9375rem;
  line-height: 1.8;
  color: var(--muted);
  max-width: 64ch;
}

.page-products .pp-fold {
  border-top: 0;
  border-left: 3px solid var(--copper);
  padding: 0 0 0 .9rem;
  margin-top: 1.25rem;
}

.page-products .pp-scen-grid {
  display: grid;
  gap: clamp(1.25rem, 3vw, 2rem);
}

.page-products .pp-figure--side {
  margin: 0;
}

.page-products .pp-figure--side .figure__frame {
  max-width: 340px;
}

.page-products .pp-scenarios {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.1rem;
}

.page-products .pp-scenarios li {
  padding: 1rem 0 0;
  border-top: 1px solid var(--pp-rule);
}

.page-products .pp-scenarios li:first-child {
  border-top: 2px solid var(--ink-900);
}

.page-products .pp-scenarios p {
  font-size: .9375rem;
  line-height: 1.8;
  color: var(--muted);
  max-width: 60ch;
  margin-bottom: .5rem;
}

.page-products .pp-link {
  display: inline-block;
  font-size: .875rem;
  font-weight: 500;
  color: var(--ink-900);
  text-decoration: none;
  border-bottom: 2px solid var(--copper);
  padding-bottom: .1rem;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.page-products .pp-link:hover,
.page-products .pp-link:focus-visible {
  color: var(--copper);
  border-bottom-color: var(--ink-900);
}

.page-products a:focus-visible,
.page-products summary:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 2px;
}

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

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

  .page-products .pp-stat__num {
    font-size: 1.9rem;
  }
}

@media (min-width: 900px) {
  .page-products .pp-hero__grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, .7fr);
    align-items: end;
  }

  .page-products .pp-split {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    align-items: start;
  }

  .page-products .pp-dl {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
  }

  .page-products .pp-scen-grid {
    grid-template-columns: minmax(0, .55fr) minmax(0, 1fr);
    align-items: start;
  }

  .page-products .pp-compare__row {
    grid-template-columns: minmax(150px, .8fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 1rem 1.5rem;
    align-items: start;
  }

  .page-products .pp-compare__key {
    grid-column: auto;
    padding-top: .1rem;
  }
}

@media (min-width: 1000px) {
  .page-products .pp-wrap {
    grid-template-columns: var(--pp-index-w) minmax(0, 1fr);
    align-items: start;
  }

  .page-products .pp-index {
    position: sticky;
    top: 1.5rem;
    border-top: 2px solid var(--ink-900);
  }

  .page-products .pp-index__list {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .page-products .pp-index__list a {
    padding: .55rem 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-products .pp-index__list a,
  .page-products .pp-link {
    transition: none;
  }
}
