.page-products {
  --pd-radius: 18px 4px 18px 4px;
  --pd-radius-soft: 12px;
  position: relative;
  background:
    radial-gradient(120% 70% at 88% -8%, rgba(255, 74, 28, 0.18), transparent 62%),
    var(--ink-900);
  color: var(--paper);
  padding-bottom: clamp(36px, 6vw, 88px);
}

.page-products .pd-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(20px, 3.5vw, 44px) clamp(32px, 5vw, 64px);
}

.page-products .pd-hero::before {
  content: "";
  position: absolute;
  top: -20%;
  inset-inline-end: -14%;
  width: min(560px, 72vw);
  aspect-ratio: 1;
  background: conic-gradient(from 200deg, rgba(255, 74, 28, 0.26), rgba(38, 240, 200, 0.08), transparent 64%);
  border-radius: 46% 54% 38% 62% / 52% 44% 56% 48%;
  filter: blur(8px);
  pointer-events: none;
}

.page-products .pd-hero-grid {
  position: relative;
  display: grid;
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
  margin-top: clamp(18px, 2.6vw, 30px);
}

.page-products .pd-hero h1 {
  margin: 14px 0 0;
  font-family: var(--font-display);
  font-size: var(--step-4);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.04;
  max-width: 15ch;
}

.page-products .pd-lead {
  margin: clamp(16px, 2vw, 22px) 0 0;
  max-width: 36ch;
  font-size: var(--step-0);
  line-height: 1.72;
  color: var(--muted);
}

.page-products .pd-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(20px, 2.6vw, 30px);
}

.page-products .pd-version-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: clamp(24px, 3vw, 34px) 0 0;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--pd-radius);
  overflow: hidden;
}

.page-products .pd-vcell {
  padding: 14px 14px 16px;
  background: var(--ink-850);
}

.page-products .pd-vcell dt {
  font-size: var(--step--1);
  color: var(--muted);
  letter-spacing: 0.04em;
}

.page-products .pd-vcell dd {
  margin: 6px 0 0;
  font-size: var(--step-1);
  font-weight: 600;
  color: var(--paper);
}

.page-products .pd-hero-note {
  margin: 14px 0 0;
  font-size: var(--step--1);
  line-height: 1.7;
  color: var(--muted);
  max-width: 40ch;
  border-left: 2px solid var(--ember);
  padding-left: 12px;
}

.page-products .pd-hero-figure {
  margin: 0;
}

.page-products .pd-hero-figure figcaption,
.page-products .pd-figcaption,
.page-products .pd-flow-figure figcaption,
.page-products .pd-matrix-figure figcaption {
  margin-top: 10px;
  font-size: var(--step--1);
  line-height: 1.6;
  color: var(--muted);
}

.page-products .pd-hero-figure .media {
  border: 1px solid var(--line);
  border-radius: 26px 6px 26px 6px;
  overflow: hidden;
}

.page-products .pd-section {
  padding-block: clamp(34px, 5vw, 72px);
  border-top: 1px solid var(--line);
}

.page-products .pd-section-head {
  margin: clamp(14px, 2vw, 22px) 0 clamp(22px, 3vw, 34px);
  max-width: 60ch;
}

.page-products .pd-section-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.18;
}

.page-products .pd-section-head p {
  margin: 10px 0 0;
  font-size: var(--step-0);
  line-height: 1.72;
  color: var(--muted);
}

.page-products .pd-steps {
  list-style: none;
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
}

.page-products .pd-step {
  position: relative;
  padding: 20px 18px 18px;
  background: var(--ink-850);
  border: 1px solid var(--line);
  border-radius: var(--pd-radius);
  transition: border-color 180ms ease, transform 180ms ease;
}

.page-products .pd-step::before {
  content: "";
  position: absolute;
  top: 0;
  left: 18px;
  width: 42px;
  height: 3px;
  background: var(--ember);
  border-radius: 0 0 3px 3px;
}

.page-products .pd-step:hover {
  border-color: rgba(255, 74, 28, 0.55);
}

.page-products .pd-step-num {
  display: inline-block;
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--ember);
}

.page-products .pd-step h3 {
  margin: 8px 0 8px;
  font-size: var(--step-1);
  font-weight: 700;
  color: var(--paper);
}

.page-products .pd-step p {
  margin: 0;
  font-size: var(--step--1);
  line-height: 1.7;
  color: var(--muted);
}

.page-products .pd-step .pd-check {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
  color: var(--mint);
  font-size: var(--step--1);
}

.page-products .pd-step .copy-row {
  margin-top: 12px;
}

.page-products .pd-step .copy-row code {
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--paper);
  word-break: break-all;
}

.page-products .pd-flow-figure {
  margin: clamp(22px, 3vw, 34px) 0 0;
}

.page-products .pd-flow-figure .media {
  border: 1px solid var(--line);
  border-radius: var(--pd-radius);
  overflow: hidden;
}

.page-products .pd-section--matrix {
  background: linear-gradient(180deg, rgba(23, 28, 36, 0.72), transparent 70%);
}

.page-products .pd-matrix-grid {
  display: grid;
  gap: clamp(20px, 3vw, 32px);
  align-items: start;
}

.page-products .pd-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--pd-radius);
  background: var(--ink-850);
  -webkit-overflow-scrolling: touch;
}

.page-products .pd-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  font-size: var(--step--1);
}

.page-products .pd-table thead th {
  text-align: left;
  padding: 12px 14px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.06em;
  background: rgba(10, 13, 17, 0.6);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.page-products .pd-table tbody th {
  text-align: left;
  padding: 13px 14px;
  font-weight: 700;
  color: var(--paper);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.page-products .pd-table tbody td {
  padding: 13px 14px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

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

.page-products .pd-table tbody tr {
  transition: background-color 160ms ease;
}

.page-products .pd-table tbody tr:hover {
  background: rgba(255, 74, 28, 0.12);
}

.page-products .pd-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  vertical-align: 1px;
}

.page-products .pd-dot--ok {
  background: var(--mint);
  box-shadow: 0 0 0 3px rgba(38, 240, 200, 0.16);
}

.page-products .pd-dot--warn {
  background: var(--amber);
  box-shadow: 0 0 0 3px rgba(245, 197, 66, 0.16);
}

.page-products .pd-matrix-figure {
  margin: 0;
}

.page-products .pd-matrix-figure .media {
  border: 1px solid var(--line);
  border-radius: 6px 26px 6px 26px;
  overflow: hidden;
}

.page-products .pd-fix-grid {
  display: grid;
  gap: clamp(22px, 3vw, 36px);
  align-items: start;
}

.page-products .pd-fix-figure .media {
  border: 1px solid var(--line);
  border-radius: var(--pd-radius);
  overflow: hidden;
}

.page-products .pd-tabs .tabs-list {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
}

.page-products .pd-tabs .tab {
  flex: 0 0 auto;
  padding: 11px 20px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: var(--step-0);
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color 160ms ease, border-color 160ms ease;
}

.page-products .pd-tabs .tab:hover {
  color: var(--paper);
}

.page-products .pd-tabs .tab[aria-selected="true"] {
  color: var(--paper);
  border-bottom-color: var(--ember);
}

.page-products .pd-tabs .tab-panel h3 {
  margin: 0 0 14px;
  font-size: var(--step-1);
  font-weight: 700;
  color: var(--paper);
}

.page-products .pd-fix-list {
  list-style: none;
  counter-reset: pd-fix;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.page-products .pd-fix-list li {
  position: relative;
  counter-increment: pd-fix;
  padding: 14px 16px 14px 48px;
  background: var(--ink-850);
  border: 1px solid var(--line);
  border-left: 2px solid var(--ember);
  border-radius: 4px 14px 14px 4px;
  font-size: var(--step--1);
  line-height: 1.7;
  color: var(--muted);
}

.page-products .pd-fix-list li::before {
  content: counter(pd-fix, decimal-leading-zero);
  position: absolute;
  left: 14px;
  top: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--ember);
  letter-spacing: 0.04em;
}

.page-products .pd-fix-list strong {
  color: var(--paper);
  font-weight: 700;
}

.page-products .pd-term {
  position: relative;
  overflow: hidden;
  background: var(--shade);
  border: 1px solid var(--line);
  border-radius: var(--pd-radius-soft);
}

.page-products .pd-term-bg {
  position: absolute;
  inset: 0;
  opacity: 0.16;
  pointer-events: none;
}

.page-products .pd-term-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-products .pd-term-bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(23, 28, 36, 0.86);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.page-products .pd-term-log {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 8px 16px 16px;
  display: grid;
  gap: 2px;
}

.page-products .pd-term-log li {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(42, 49, 60, 0.7);
  font-size: var(--step--1);
  line-height: 1.65;
  color: var(--paper);
}

.page-products .pd-term-log li:last-child {
  border-bottom: 0;
}

.page-products .pd-term-tag {
  color: var(--mint);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.page-products .pd-log-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.page-products .pd-faq {
  display: grid;
  gap: 10px;
}

.page-products .pd-faq details {
  background: var(--ink-850);
  border: 1px solid var(--line);
  border-radius: var(--pd-radius-soft);
  overflow: hidden;
  transition: border-color 160ms ease;
}

.page-products .pd-faq details[open] {
  border-color: rgba(255, 74, 28, 0.5);
}

.page-products .pd-faq summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  font-size: var(--step-0);
  font-weight: 700;
  color: var(--paper);
  cursor: pointer;
  list-style: none;
}

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

.page-products .pd-faq summary::before {
  content: "+";
  font-family: var(--font-mono);
  font-size: 16px;
  line-height: 1;
  color: var(--ember);
  width: 14px;
  flex: 0 0 14px;
}

.page-products .pd-faq details[open] summary::before {
  content: "–";
}

.page-products .pd-faq p {
  margin: 0;
  padding: 0 16px 16px 40px;
  font-size: var(--step--1);
  line-height: 1.72;
  color: var(--muted);
}

.page-products .pd-cta {
  display: grid;
  gap: 16px;
  margin-top: clamp(26px, 3.5vw, 40px);
  padding: clamp(20px, 3vw, 30px);
  background:
    linear-gradient(120deg, rgba(255, 74, 28, 0.16), rgba(38, 240, 200, 0.06) 60%, transparent),
    var(--ink-850);
  border: 1px solid var(--line);
  border-radius: 26px 6px 26px 6px;
}

.page-products .pd-cta h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 800;
  color: var(--paper);
}

.page-products .pd-cta p {
  margin: 8px 0 0;
  font-size: var(--step--1);
  line-height: 1.7;
  color: var(--muted);
  max-width: 42ch;
}

@media (min-width: 620px) {
  .page-products .pd-version-card {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .page-products .pd-cta {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }
}

@media (min-width: 900px) {
  .page-products .pd-hero-grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: start;
  }

  .page-products .pd-steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
  }

  .page-products .pd-matrix-grid {
    grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  }

  .page-products .pd-fix-grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  }
}

@media (max-width: 599px) {
  .page-products .pd-hero h1 {
    max-width: none;
  }

  .page-products .pd-section-head h2 {
    font-size: var(--step-2);
  }

  .page-products .pd-term-log li {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .page-products .pd-faq p {
    padding-left: 16px;
  }
}
</main>
