.page-products {
  --pd-gap: clamp(20px, 3vw, 36px);
  background: var(--paper);
  color: var(--ink);
}

.page-products h1,
.page-products h2,
.page-products h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -0.01em;
  margin: 0;
}

.page-products h1 {
  font-size: clamp(30px, 6vw, 52px);
  line-height: 1.16;
  margin-top: 14px;
  max-width: 18ch;
}

.page-products h2 {
  font-size: clamp(23px, 3.6vw, 33px);
  max-width: 22ch;
}

.page-products h3 {
  font-size: clamp(17px, 2.2vw, 20px);
}

.page-products p {
  margin: 0;
}

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

.page-products .pd-link {
  color: var(--red);
  text-decoration: none;
  border-bottom: 1px solid rgba(181, 42, 32, 0.36);
  padding-bottom: 1px;
}

.page-products .pd-link:hover {
  color: var(--red-dark);
  border-bottom-color: var(--red-dark);
}

.page-products .pd-link--light {
  color: var(--gold);
  border-bottom-color: rgba(195, 154, 62, 0.5);
}

.page-products .pd-link--light:hover {
  color: var(--paper);
  border-bottom-color: var(--paper);
}

/* ---------- hero ---------- */
.pd-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(84px, 13vh, 130px) 0 clamp(36px, 5vw, 62px);
  border-bottom: 1px solid var(--line);
}

.pd-hero::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: min(62%, 780px);
  height: 100%;
  background:
    linear-gradient(158deg, rgba(181, 42, 32, 0.07), rgba(195, 154, 62, 0.12) 52%, rgba(70, 104, 91, 0.06) 78%, transparent 88%);
  clip-path: polygon(26% 0, 100% 0, 100% 100%, 0 100%);
  pointer-events: none;
}

.pd-hero .u-wrap {
  position: relative;
  z-index: 1;
}

.pd-hero-grid {
  display: grid;
  gap: clamp(26px, 4vw, 48px);
  margin-top: clamp(22px, 3vw, 38px);
}

.pd-hero-lead {
  margin-top: 18px;
  max-width: 48ch;
  font-size: clamp(15.5px, 1.7vw, 17px);
  line-height: 1.85;
  color: var(--ink-2);
}

.pd-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(24px, 3vw, 34px);
}

.pd-hero-card {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  padding: clamp(22px, 3vw, 32px);
}

.pd-hero-card::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(195, 154, 62, 0.3);
  pointer-events: none;
}

.pd-card-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--gold);
  text-transform: uppercase;
}

.pd-card-version {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: clamp(20px, 2.6vw, 25px);
  letter-spacing: 0.06em;
  color: var(--paper);
}

.pd-facts {
  margin: 20px 0 0;
}

.pd-fact {
  padding: 14px 0;
  border-top: 1px solid rgba(246, 241, 231, 0.16);
}

.pd-fact-k {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: rgba(246, 241, 231, 0.6);
}

.pd-fact-v {
  margin: 6px 0 0;
  font-size: 15.5px;
  color: var(--paper);
}

.pd-fact-v b {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 20px;
  letter-spacing: 0.02em;
  color: #fff;
}

/* ---------- section head ---------- */
.pd-sec-head {
  max-width: 66ch;
  margin-bottom: clamp(24px, 3.4vw, 40px);
}

.pd-sec-lead {
  margin-top: 14px;
  font-size: 15.5px;
  line-height: 1.85;
  color: var(--muted);
}

.pd-sec-head--light h2 {
  color: var(--paper);
}

.pd-sec-head--light .pd-sec-lead {
  color: rgba(246, 241, 231, 0.68);
}

/* ---------- paths matrix ---------- */
.pd-paths {
  background: var(--paper);
}

.pd-matrix {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.pd-col {
  position: relative;
  background: var(--card);
  padding: clamp(22px, 3vw, 32px) clamp(18px, 2.4vw, 26px);
}

.pd-col::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--red);
}

.pd-col--jade::before {
  background: var(--jade);
}

.pd-col--gold::before {
  background: var(--gold);
}

.pd-col-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pd-chip {
  width: 11px;
  height: 11px;
  flex: 0 0 auto;
  background: var(--red);
}

.pd-col--jade .pd-chip {
  background: var(--jade);
}

.pd-col--gold .pd-chip {
  background: var(--gold);
}

.pd-col-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.pd-col h3 {
  margin-top: 14px;
}

.pd-col-desc {
  margin-top: 10px;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--ink-2);
}

.pd-col-list {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.pd-col-list li {
  position: relative;
  padding-left: 16px;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--ink-2);
}

.pd-col-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 7px;
  height: 1px;
  background: var(--line);
}

.pd-col-foot {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

/* ---------- register ---------- */
.pd-register {
  background: var(--jade-light);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.pd-flow {
  display: block;
  width: 100%;
  max-width: 640px;
  height: auto;
  margin: 0 auto clamp(20px, 3vw, 32px);
}

.pd-flow rect {
  fill: none;
  stroke: var(--jade);
  stroke-width: 1.25;
}

.pd-flow line,
.pd-flow polyline {
  stroke: var(--jade);
  stroke-width: 1;
  fill: none;
  opacity: 0.55;
}

.pd-flow text {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  fill: var(--jade);
  text-anchor: middle;
  dominant-baseline: middle;
}

.pd-steps {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.pd-step {
  background: var(--card);
  padding: clamp(18px, 2.6vw, 26px);
}

.pd-step-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--jade);
}

.pd-step h3 {
  margin-top: 10px;
}

.pd-step p {
  margin-top: 10px;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--ink-2);
}

.pd-register-foot {
  display: grid;
  gap: clamp(22px, 3vw, 36px);
  margin-top: clamp(26px, 3.6vw, 44px);
}

.pd-receipt {
  margin: 0;
  border: 1px solid var(--line);
  background: var(--card);
}

.pd-register-notes h3 {
  font-size: 18px;
}

.pd-check-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.pd-check-list li {
  position: relative;
  padding-left: 24px;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--ink-2);
}

.pd-check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 1px;
  font-size: 12px;
  color: var(--jade);
}

.pd-register-tip {
  margin-top: 18px;
  padding: 14px 16px;
  background: rgba(70, 104, 91, 0.09);
  border-left: 2px solid var(--jade);
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-2);
}

.pd-register-link {
  margin-top: 14px;
  font-size: 14px;
  color: var(--muted);
}

/* ---------- desktop ---------- */
.pd-desktop-sec {
  background: var(--paper);
}

.pd-desktop-grid {
  display: grid;
  gap: clamp(24px, 3.4vw, 44px);
}

.pd-spec {
  border-top: 1px solid var(--line);
}

.pd-spec-row {
  display: grid;
  gap: 4px;
  padding: 14px 2px;
  border-bottom: 1px solid var(--line);
}

.pd-spec-k {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.pd-spec-v {
  font-size: 15px;
  line-height: 1.72;
  color: var(--ink-2);
}

.pd-num {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.pd-desktop-note {
  margin-top: 18px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
}

.pd-desktop-figure {
  margin: 0;
  border: 1px solid var(--line);
  background: var(--card);
}

/* ---------- packs ---------- */
.pd-packs {
  background: var(--card);
  border-top: 1px solid var(--line);
}

.pd-packs-banner {
  margin: 0 0 clamp(26px, 3.4vw, 40px);
  border: 1px solid var(--line);
}

.pd-format-block {
  display: grid;
  gap: clamp(22px, 3vw, 36px);
  padding-bottom: clamp(24px, 3.4vw, 40px);
  border-bottom: 1px solid var(--line);
}

.pd-format-list {
  margin: 16px 0 0;
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.pd-format-list > div {
  background: var(--paper);
  padding: 12px 14px;
}

.pd-format-list dt {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--gold);
}

.pd-format-list dd {
  margin: 5px 0 0;
  font-size: 14.5px;
  line-height: 1.72;
  color: var(--ink-2);
}

.pd-format-figure {
  margin: 0;
  border: 1px solid var(--line);
}

.pd-folder-note {
  display: grid;
  gap: clamp(20px, 3vw, 34px);
  padding: clamp(24px, 3.4vw, 40px) 0;
  border-bottom: 1px solid var(--line);
}

.pd-folder-figure {
  margin: 0;
  border: 1px solid var(--line);
  background: var(--paper);
}

.pd-folder-copy h3 {
  font-size: 19px;
}

.pd-folder-copy p {
  margin-top: 12px;
  font-size: 14.5px;
  line-height: 1.82;
  color: var(--ink-2);
}

/* filter panel */
.filter-panel {
  margin: clamp(24px, 3.4vw, 38px) 0 0;
  padding: 14px clamp(14px, 2vw, 20px);
  border: 1px solid var(--line);
  background: var(--paper);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
}

.filter-row + .filter-row {
  border-top: 1px dashed var(--line);
}

.filter-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--muted);
  min-width: 44px;
}

.filter-empty {
  margin-top: 18px;
  padding: 16px;
  border: 1px dashed var(--line);
  font-size: 14px;
  color: var(--muted);
  text-align: center;
}

/* pack list */
.pd-pack-list {
  list-style: none;
  margin: clamp(18px, 2.4vw, 26px) 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.pd-pack {
  border-bottom: 1px solid var(--line);
}

.pd-pack-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  width: 100%;
  padding: 15px clamp(8px, 1.6vw, 14px);
  background: transparent;
  border: 0;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
  transition: background-color 0.16s ease;
}

.pd-pack-head:hover,
.pd-pack-head:focus-visible {
  background: var(--paper);
}

.pd-format {
  flex: 0 0 auto;
  min-width: 58px;
  padding: 3px 7px;
  border: 1px solid var(--gold);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-align: center;
  color: var(--ink);
}

.pd-pack-name {
  flex: 1 1 160px;
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.5;
}

.pd-pack-tag {
  flex: 0 0 auto;
}

.pd-pack-vol {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.pd-caret {
  flex: 0 0 auto;
  font-size: 11px;
  color: var(--muted);
  transition: transform 0.16s ease;
}

.pd-pack-head[aria-expanded="false"] .pd-caret {
  transform: rotate(-90deg);
}

.pd-pack-detail {
  display: grid;
  gap: 14px;
  padding: 0 clamp(8px, 1.6vw, 14px) 18px;
}

.pd-pack-head[aria-expanded="false"] + .pd-pack-detail {
  display: none;
}

.pd-detail-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.pd-detail-text {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-2);
}

/* ---------- versions ---------- */
.pd-versions {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(48px, 7vw, 92px) 0;
}

.pd-version-grid {
  display: grid;
  gap: 1px;
  background: rgba(246, 241, 231, 0.16);
  border: 1px solid rgba(246, 241, 231, 0.16);
}

.pd-version-card {
  background: var(--ink-2);
  padding: clamp(20px, 2.8vw, 30px);
}

.pd-version-badge {
  display: inline-block;
  padding: 3px 9px;
  border: 1px solid var(--red);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--paper);
}

.pd-version-badge--gold {
  border-color: var(--gold);
  color: var(--gold);
}

.pd-version-card h3 {
  margin-top: 14px;
  color: var(--paper);
}

.pd-version-card > p {
  margin-top: 10px;
  font-size: 14.5px;
  line-height: 1.82;
  color: rgba(246, 241, 231, 0.72);
}

.pd-col-list--light li {
  color: rgba(246, 241, 231, 0.78);
}

.pd-col-list--light li::before {
  background: rgba(195, 154, 62, 0.7);
}

.pd-relist {
  margin-top: clamp(30px, 4vw, 48px);
  padding-top: clamp(24px, 3vw, 36px);
  border-top: 1px solid rgba(246, 241, 231, 0.16);
}

.pd-relist h3 {
  color: var(--paper);
}

.pd-relist-items {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.pd-relist-items li {
  display: flex;
  gap: 12px;
  align-items: baseline;
  font-size: 14.5px;
  line-height: 1.78;
  color: rgba(246, 241, 231, 0.78);
}

.pd-relist-num {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--gold);
}

.pd-relist-foot {
  margin-top: 20px;
  font-size: 14px;
  line-height: 1.8;
  color: rgba(246, 241, 231, 0.6);
}

/* ---------- next ---------- */
.pd-next {
  background: var(--sand);
  border-top: 1px solid var(--line);
}

.pd-next .pd-sec-head {
  margin-bottom: clamp(20px, 3vw, 32px);
}

.pd-next-grid {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.pd-next-card {
  display: grid;
  gap: 8px;
  padding: clamp(18px, 2.6vw, 26px);
  background: var(--card);
  color: var(--ink);
  text-decoration: none;
  transition: background-color 0.16s ease, box-shadow 0.16s ease;
}

.pd-next-card:hover,
.pd-next-card:focus-visible {
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--gold);
}

.pd-next-k {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.pd-next-t {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
}

.pd-next-d {
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-2);
}

/* ---------- media query ---------- */
@media (min-width: 640px) {
  .pd-spec-row {
    grid-template-columns: 148px minmax(0, 1fr);
    gap: 16px;
    align-items: baseline;
  }

  .pd-pack-detail {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 14px 28px;
  }

  .pd-next-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 820px) {
  .pd-matrix {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .pd-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pd-version-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pd-folder-note {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: center;
  }

  .pd-format-block {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: start;
  }
}

@media (min-width: 920px) {
  .pd-hero-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    align-items: start;
  }

  .pd-register-foot {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    align-items: start;
  }

  .pd-desktop-grid {
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
    align-items: start;
  }

  .pd-desktop-figure {
    margin-top: 6px;
  }
}

@media (min-width: 1080px) {
  .pd-steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .pd-format {
    min-width: 50px;
  }

  .pd-pack-name {
    flex: 1 1 100%;
    order: 3;
  }

  .pd-pack-vol {
    margin-left: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-products .pd-pack-head,
  .page-products .pd-next-card,
  .page-products .pd-caret {
    transition: none;
  }

  .pd-pack-head[aria-expanded="false"] .pd-caret {
    transform: none;
  }
}
