.page-products {
  --pdl-shadow: 6px 6px 0 var(--edge);
  --pdl-shadow-lg: 10px 10px 0 var(--cabbage);
  color: var(--ink);
  background: var(--paper);
}

.page-products .pdl-hero {
  padding: clamp(20px, 4vw, 48px) 0 clamp(12px, 3vw, 24px);
}

.page-products .pdl-hero__grid {
  display: grid;
  gap: 24px;
}

.page-products .pdl-kicker {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
}

.page-products .pdl-hero__title {
  margin: 0 0 18px;
  max-width: 16ch;
  font-family: var(--font-display);
  font-size: clamp(38px, 6vw, 76px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.page-products .pdl-hero__lede {
  max-width: 58ch;
  margin: 0;
  font-size: 16px;
  line-height: 1.75;
  color: var(--graphite);
}

.page-products .pdl-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.page-products .pdl-meta-chip {
  padding: 6px 10px;
  border: 1px solid var(--edge);
  border-radius: 2px;
  background: var(--card);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.4;
  color: var(--teal);
}

.page-products .pdl-toolbar {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(22px, 3vw, 32px);
  overflow: hidden;
  color: var(--paper);
  background: var(--ink);
  border: 1px solid var(--gold);
  box-shadow: 8px 8px 0 var(--edge);
}

.page-products .pdl-toolbar::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    135deg,
    transparent 0 18px,
    rgba(200, 160, 60, 0.08) 18px 19px
  );
}

.page-products .pdl-toolbar > * {
  position: relative;
  z-index: 1;
}

.page-products .pdl-toolbar__label {
  margin: 0 0 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--edge);
}

.page-products .pdl-toolbar__version {
  margin: 0;
  font-family: var(--font-mono);
  font-size: clamp(64px, 10vw, 112px);
  line-height: 0.85;
  letter-spacing: -0.06em;
  color: var(--gold-hi);
}

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

.page-products .pdl-stat {
  padding-top: 10px;
  border-top: 1px solid rgba(248, 242, 228, 0.18);
}

.page-products .pdl-stat__num {
  display: block;
  font-family: var(--font-mono);
  font-size: 24px;
  line-height: 1.1;
  color: var(--gold-hi);
}

.page-products .pdl-stat__label {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--edge);
}

.page-products .pdl-toolbar__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.page-products .pdl-toolbar__actions .btn {
  flex: 1 1 140px;
  justify-content: center;
}

.page-products .pdl-toolbar .btn--line,
.page-products .pdl-version .btn--line,
.page-products .pdl-cta-row .btn--line {
  color: var(--paper);
  border-color: var(--gold);
}

.page-products .pdl-toolbar .btn--line:hover,
.page-products .pdl-version .btn--line:hover,
.page-products .pdl-cta-row .btn--line:hover {
  color: var(--ink);
  background: var(--gold-hi);
}

.page-products .pdl-chapter {
  padding: clamp(40px, 7vw, 84px) 0 0;
}

.page-products .pdl-chapter__head {
  display: grid;
  gap: 12px;
  margin-bottom: clamp(20px, 3vw, 32px);
}

.page-products .pdl-chapter__num {
  font-family: var(--font-mono);
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--gold);
}

.page-products .pdl-chapter__title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.page-products .pdl-chapter__lede {
  max-width: 72ch;
  margin: 0;
  font-size: 16px;
  line-height: 1.75;
  color: var(--graphite);
}

.page-products .pdl-section-foot {
  margin: 18px 0 0;
  padding-left: 14px;
  border-left: 3px solid var(--cabbage);
  font-size: 14px;
  line-height: 1.7;
  color: var(--graphite);
}

.page-products .pdl-section-foot a {
  color: var(--teal);
  text-underline-offset: 3px;
}

.page-products .pdl-access {
  display: grid;
  gap: 20px;
  align-items: start;
}

.page-products .pdl-channel-grid {
  display: grid;
  gap: 16px;
}

.page-products .pdl-channel {
  padding: 20px;
  border: 1px solid var(--edge);
  box-shadow: var(--pdl-shadow);
  transition: transform 180ms var(--ease), box-shadow 180ms var(--ease), border-color 180ms var(--ease);
}

.page-products .pdl-channel:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
  box-shadow: 8px 10px 0 var(--edge);
}

.page-products .pdl-channel__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.page-products .pdl-channel__title {
  margin: 14px 0 10px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 900;
  line-height: 1.35;
}

.page-products .pdl-channel__list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--graphite);
  font-size: 14px;
  line-height: 1.65;
}

.page-products .pdl-channel__list li {
  position: relative;
  padding-left: 14px;
}

.page-products .pdl-channel__list li::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 5px;
  height: 5px;
  background: var(--gold);
}

.page-products .pdl-media {
  margin: 0 auto;
  width: 100%;
  max-width: 320px;
}

.page-products .pdl-media--phone {
  padding: 8px;
  background: var(--card);
  border: 1px solid var(--ink);
  box-shadow: var(--pdl-shadow-lg);
}

.page-products .pdl-media--phone .figure-frame {
  display: block;
}

.page-products .pdl-media__caption {
  margin: 8px 0 0;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.5;
  color: var(--graphite);
}

.page-products .pdl-group-wall {
  display: grid;
  gap: 14px;
}

.page-products .pdl-group {
  min-width: 0;
  padding: 16px;
  background: var(--card);
  border: 1px solid var(--edge);
  border-top: 3px solid var(--cabbage);
}

.page-products .pdl-group__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.page-products .pdl-group__head h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 900;
}

.page-products .pdl-group__count {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.4;
  color: var(--graphite);
  white-space: nowrap;
}

.page-products .pdl-group__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.page-products .pdl-tag {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 5px 8px;
  background: var(--paper);
  border: 1px solid var(--edge);
  border-radius: 2px;
  font-size: 13px;
  line-height: 1.3;
}

.page-products .pdl-tag b {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  color: var(--teal);
}

.page-products .pdl-version {
  margin-top: clamp(40px, 7vw, 84px);
  padding: clamp(24px, 4vw, 44px);
  color: var(--paper);
  background: var(--ink);
  border: 1px solid var(--gold);
  box-shadow: 8px 8px 0 var(--edge);
}

.page-products .pdl-version .pdl-chapter__title {
  color: var(--paper);
}

.page-products .pdl-version .pdl-chapter__lede {
  color: #d8d2c4;
}

.page-products .pdl-version .pdl-chapter__num {
  color: var(--gold-hi);
}

.page-products .pdl-version__grid {
  display: grid;
  gap: 24px;
  align-items: start;
}

.page-products .pdl-version__media {
  margin: 0;
}

.page-products .pdl-version__mark {
  margin: 0 0 16px;
  font-family: var(--font-mono);
  font-size: clamp(40px, 7vw, 72px);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--gold-hi);
}

.page-products .pdl-version__list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #ece4d4;
  font-size: 15px;
  line-height: 1.7;
}

.page-products .pdl-version__list li {
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(248, 242, 228, 0.14);
}

.page-products .pdl-version__list strong {
  color: var(--gold-hi);
}

.page-products .pdl-version__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.page-products .pdl-adapter__canvas {
  margin: 0 0 18px;
}

.page-products .pdl-filter-bar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--edge);
  border-bottom: 1px solid var(--edge);
}

.page-products .pdl-filter-bar__hint {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--graphite);
}

.page-products .pdl-filter-count {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--graphite);
}

.page-products .pdl-filter-count strong {
  font-size: 18px;
  font-weight: 500;
  color: var(--teal);
}

.page-products .pdl-table-wrap {
  max-height: 560px;
  overflow: auto;
  background: var(--card);
  border: 1px solid var(--edge);
}

.page-products .pdl-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.55;
}

.page-products .pdl-table caption {
  padding: 12px 14px;
  text-align: left;
  color: var(--graphite);
}

.page-products .pdl-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 11px 12px;
  color: var(--paper);
  background: var(--ink);
  border-bottom: 1px solid var(--gold);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-align: left;
  white-space: nowrap;
}

.page-products .pdl-table td {
  padding: 12px;
  border-bottom: 1px solid var(--edge);
  vertical-align: top;
}

.page-products .pdl-table tbody tr:hover {
  background: rgba(94, 158, 127, 0.08);
}

.page-products .pdl-table__sys {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--teal);
}

.page-products .pdl-table__num {
  font-family: var(--font-mono);
  white-space: nowrap;
  color: var(--ink);
}

.page-products .pdl-badge {
  display: inline-block;
  padding: 4px 8px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 1.3;
  white-space: nowrap;
}

.page-products .pdl-badge--ok {
  color: var(--ink);
  background: var(--cabbage);
  border-color: var(--cabbage);
}

.page-products .pdl-badge--base {
  color: var(--ink);
  background: var(--edge);
  border-color: var(--edge);
}

.page-products .pdl-empty {
  margin: 12px 0 0;
  padding: 16px;
  border: 1px dashed var(--stamp);
  background: var(--card);
  color: var(--stamp);
  font-size: 14px;
}

.page-products .pdl-install {
  display: grid;
  gap: 24px;
}

.page-products .pdl-steps {
  display: grid;
  gap: 18px;
}

.page-products .pdl-step {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.page-products .pdl-step__num {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: var(--gold-hi);
  background: var(--ink);
  border: 1px solid var(--gold);
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 16px;
}

.page-products .pdl-step__body {
  padding-left: 16px;
  padding-bottom: 18px;
  border-left: 1px solid var(--edge);
}

.page-products .pdl-step:last-child .pdl-step__body {
  padding-bottom: 0;
}

.page-products .pdl-step__title {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 900;
  line-height: 1.4;
}

.page-products .pdl-step__desc {
  margin: 0;
  color: var(--graphite);
  line-height: 1.7;
}

.page-products .pdl-step__note {
  margin-top: 10px;
  padding: 8px 10px;
  background: var(--card);
  border: 1px solid var(--edge);
  border-radius: 2px;
}

.page-products .pdl-step__note summary {
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--teal);
}

.page-products .pdl-step__note p {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--graphite);
}

.page-products .pdl-install__media {
  margin: 0 auto;
  max-width: 240px;
}

.page-products .pdl-cadence {
  display: grid;
  gap: 24px;
}

.page-products .pdl-cadence__text p {
  margin: 0 0 12px;
  color: var(--graphite);
  font-size: 15px;
  line-height: 1.75;
}

.page-products .pdl-cadence__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.page-products .pdl-cadence__stat {
  padding-top: 10px;
  border-top: 2px solid var(--gold);
}

.page-products .pdl-cadence__stat .pdl-stat__num {
  color: var(--teal);
  font-size: clamp(20px, 3vw, 28px);
}

.page-products .pdl-cadence__stat .pdl-stat__label {
  color: var(--graphite);
}

.page-products .pdl-cadence__media {
  margin: 0;
}

.page-products .pdl-cadence__text .btn {
  margin-top: 4px;
}

.page-products .pdl-trouble__grid {
  display: grid;
  gap: 14px;
}

.page-products .pdl-trouble__item {
  padding: 18px;
  background: var(--card);
  border: 1px solid var(--edge);
  border-left: 4px solid var(--stamp);
}

.page-products .pdl-trouble__item h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 900;
}

.page-products .pdl-trouble__item p {
  margin: 0;
  color: var(--graphite);
  line-height: 1.7;
}

.page-products .pdl-cta-row {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
  padding: 20px;
  color: var(--paper);
  background: var(--ink);
  border: 1px solid var(--gold);
}

.page-products .pdl-cta-row p {
  margin: 0;
  color: #eadfc9;
  line-height: 1.7;
}

.page-products .pdl-cta-row__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

@media (min-width: 640px) {
  .page-products .pdl-group-wall {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (min-width: 700px) {
  .page-products .pdl-channel-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-products .pdl-chapter__head {
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
  }

  .page-products .pdl-filter-bar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (min-width: 900px) {
  .page-products .pdl-install {
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 36px;
    align-items: start;
  }

  .page-products .pdl-cadence {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.9fr);
    align-items: center;
  }

  .page-products .pdl-version__grid {
    grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.3fr);
    gap: 32px;
  }
}

@media (min-width: 960px) {
  .page-products .pdl-hero__grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    align-items: stretch;
    gap: clamp(24px, 4vw, 56px);
  }
}

@media (min-width: 980px) {
  .page-products .pdl-access {
    grid-template-columns: minmax(0, 1.55fr) minmax(220px, 0.45fr);
    gap: 28px;
  }
}

@media (min-width: 1100px) {
  .page-products .pdl-group-wall {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .page-products .pdl-table-wrap {
    max-height: none;
    overflow: visible;
    border: 0;
    background: transparent;
  }

  .page-products .pdl-table,
  .page-products .pdl-table tbody,
  .page-products .pdl-table tr,
  .page-products .pdl-table td {
    display: block;
    width: 100%;
  }

  .page-products .pdl-table thead {
    display: none;
  }

  .page-products .pdl-table caption {
    padding: 0 0 12px;
  }

  .page-products .pdl-table tr {
    margin-bottom: 12px;
    padding: 8px 0;
    background: var(--card);
    border: 1px solid var(--edge);
  }

  .page-products .pdl-table td {
    display: flex;
    gap: 12px;
    justify-content: space-between;
    padding: 8px 14px;
    border-bottom: 1px dashed var(--edge);
  }

  .page-products .pdl-table td:last-child {
    border-bottom: 0;
  }

  .page-products .pdl-table td::before {
    content: attr(data-label);
    flex: 0 0 84px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--graphite);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-products .pdl-channel {
    transition: none;
  }

  .page-products .pdl-channel:hover {
    transform: none;
  }
}
