.page-products {
  --pp-panel: rgba(13, 42, 63, .7);
  --pp-soft-line: rgba(185, 243, 250, .14);
  --pp-dark-line: rgba(34, 211, 238, .26);
  --pp-light-line: rgba(18, 35, 46, .14);
  --pp-light-soft: rgba(18, 35, 46, .62);
  --pp-cyan-ink: #0B7C8F;
  background: var(--c-deep);
  color: var(--ink);
  font-family: var(--font-body);
  overflow-x: hidden;
}

.page-products .container {
  padding-inline: var(--gutter);
  max-width: var(--grid-max);
  margin-inline: auto;
}

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

.page-products p { margin: 0; }

.page-products a { color: inherit; }

/* ---------- hero ---------- */
.page-products .p-hero {
  position: relative;
  padding: clamp(96px, 12vw, 150px) 0 clamp(48px, 7vw, 88px);
  background:
    radial-gradient(120% 90% at 82% -14%, rgba(34, 211, 238, .2), transparent 62%),
    radial-gradient(80% 70% at 4% 6%, rgba(34, 211, 238, .1), transparent 58%),
    linear-gradient(180deg, var(--c-deep) 0%, #0A2234 58%, var(--c-night) 100%);
  overflow: hidden;
}

.page-products .p-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(34, 211, 238, .07) 1px, transparent 1px),
    linear-gradient(0deg, rgba(34, 211, 238, .05) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, .85), transparent 78%);
  pointer-events: none;
}

.page-products .p-hero .container {
  position: relative;
  z-index: 1;
}

.page-products .p-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--ink-faint);
  margin-bottom: clamp(22px, 3vw, 34px);
}

.page-products .p-crumbs a {
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}

.page-products .p-crumbs a:hover,
.page-products .p-crumbs a:focus-visible {
  color: var(--c-cyan);
  border-bottom-color: var(--c-cyan);
}

.page-products .p-crumbs [aria-current="page"] { color: var(--c-ice); }

.page-products .p-hero__grid {
  display: grid;
  gap: clamp(32px, 5vw, 64px);
}

.page-products .p-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--c-cyan);
  margin: 0 0 18px;
}

.page-products .p-eyebrow__dash {
  display: inline-block;
  width: 26px;
  height: 2px;
  background: var(--c-orange);
  flex: none;
}

.page-products .p-hero h1 {
  font-size: clamp(2.15rem, 7.2vw, 4.6rem);
  color: var(--ink-strong);
  margin: 0 0 22px;
}

.page-products .p-hero__lead {
  max-width: 60ch;
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  line-height: 1.75;
  color: var(--ink-soft);
}

.page-products .p-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

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

.page-products .p-fact {
  background: rgba(7, 26, 43, .78);
  padding: 18px 16px;
}

.page-products .p-fact__k {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--ink-faint);
  margin-bottom: 8px;
}

.page-products .p-fact__v {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.4vw, 1.65rem);
  letter-spacing: -.02em;
  color: var(--c-ice);
}

/* ---------- blocks ---------- */
.page-products .p-block {
  padding: clamp(56px, 8vw, 108px) 0;
  position: relative;
}

.page-products .p-block--light {
  background: var(--c-paper);
  color: var(--c-graphite);
}

.page-products .p-block--light .p-eyebrow { color: var(--pp-cyan-ink); }

.page-products .p-block--dark {
  background:
    radial-gradient(90% 70% at 88% 0%, rgba(34, 211, 238, .12), transparent 60%),
    linear-gradient(180deg, var(--c-deep) 0%, #0A2234 100%);
  color: var(--ink);
}

.page-products .p-head {
  display: grid;
  gap: 14px;
  max-width: 780px;
  margin-bottom: clamp(28px, 4vw, 48px);
}

.page-products .p-head__title {
  font-size: clamp(1.75rem, 4.2vw, 2.85rem);
  color: inherit;
}

.page-products .p-head__lead {
  font-size: 1rem;
  line-height: 1.78;
  max-width: 64ch;
  color: inherit;
  opacity: .86;
}

.page-products .p-block--light .p-head__lead { color: var(--pp-light-soft); opacity: 1; }

.page-products .p-sub {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  margin: 0 0 12px;
  color: inherit;
}

/* ---------- figures ---------- */
.page-products .p-figure {
  margin: 0 0 clamp(28px, 4vw, 44px);
  border: 1px solid var(--pp-dark-line);
  background: var(--c-night);
  overflow: hidden;
}

.page-products .p-block--light .p-figure {
  border-color: var(--pp-light-line);
  background: var(--c-mist);
}

.page-products .p-figure img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

.page-products .p-figure--slim img {
  max-height: 300px;
  object-fit: cover;
}

.page-products .p-figure__cap {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  padding: 12px 16px;
  border-top: 1px solid currentColor;
  border-top-color: rgba(34, 211, 238, .2);
  color: var(--pp-light-soft);
}

.page-products .p-block--dark .p-figure__cap { color: var(--ink-faint); }

/* ---------- tree ---------- */
.page-products .tree {
  position: relative;
  display: grid;
  gap: 12px;
  padding-left: 30px;
}

.page-products .tree::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 12px;
  bottom: 12px;
  width: 1px;
  background: linear-gradient(180deg, var(--c-cyan), rgba(34, 211, 238, .12));
}

.page-products .tree__node {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 16px;
  padding: 16px 18px;
  border: 1px solid var(--pp-light-line);
  border-left: 3px solid var(--c-orange);
  background: #fff;
  text-decoration: none;
  color: var(--c-graphite);
  transition: transform .22s var(--ease), border-color .22s var(--ease), box-shadow .22s var(--ease);
}

.page-products .tree__node::before {
  content: "";
  position: absolute;
  left: -21px;
  top: 30px;
  width: 18px;
  height: 1px;
  background: var(--c-cyan);
}

.page-products .tree__node:hover,
.page-products .tree__node:focus-visible {
  transform: translateX(2px);
  border-color: var(--pp-cyan-ink);
  box-shadow: 0 10px 26px rgba(7, 26, 43, .12);
}

.page-products .tree__index {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .06em;
  color: var(--pp-cyan-ink);
  grid-row: 1;
  grid-column: 1;
}

.page-products .tree__title {
  grid-row: 1;
  grid-column: 2;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -.01em;
}

.page-products .tree__desc {
  grid-row: 2;
  grid-column: 2;
  font-size: .92rem;
  line-height: 1.7;
  color: var(--pp-light-soft);
}

/* ---------- tablet section ---------- */
.page-products .tablet-top,
.page-products .tablet-foot {
  display: grid;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
}

.page-products .tablet-top { margin-bottom: clamp(32px, 5vw, 56px); }

.page-products .tablet-top__copy p,
.page-products .tablet-foot__copy p {
  font-size: .97rem;
  line-height: 1.78;
  color: var(--ink-soft);
  max-width: 56ch;
}

.page-products .tablet-foot__copy p + p { margin-top: 12px; }

.page-products .p-ticks {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.page-products .p-ticks li {
  position: relative;
  padding-left: 22px;
  font-size: .93rem;
  line-height: 1.68;
  color: var(--ink-soft);
}

.page-products .p-ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 10px;
  height: 1px;
  background: var(--c-orange);
}

.page-products .tablet-top__media,
.page-products .tablet-foot__media {
  margin: 0;
  border: 1px solid var(--pp-dark-line);
  background: var(--c-night);
  overflow: hidden;
}

.page-products .tablet-top__media img,
.page-products .tablet-foot__media img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

/* ---------- filter + cards ---------- */
.page-products .filter {
  display: block;
  position: relative;
}

.page-products .filter__state {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.page-products .filter__chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  margin: 0 8px 8px 0;
  border: 1px solid var(--pp-light-line);
  background: #fff;
  color: var(--c-graphite);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}

.page-products .filter__chip:hover { border-color: var(--pp-cyan-ink); }

.page-products .filter__state:checked + .filter__chip {
  background: var(--c-graphite);
  color: var(--c-paper);
  border-color: var(--c-graphite);
}

.page-products .filter__state:focus-visible + .filter__chip {
  outline: 2px solid var(--c-cyan);
  outline-offset: 2px;
}

.page-products .vcard-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.page-products #pp-dev-general:checked ~ .vcard-grid .vcard:not([data-dev~="general"]),
.page-products #pp-dev-tablet:checked ~ .vcard-grid .vcard:not([data-dev~="tablet"]),
.page-products #pp-dev-desktop:checked ~ .vcard-grid .vcard:not([data-dev~="desktop"]) {
  display: none;
}

.page-products .vcard {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  background: var(--c-mist);
  border: 1px solid var(--pp-light-line);
  border-top: 2px solid var(--c-cyan);
  transition: transform .22s var(--ease), border-color .22s var(--ease);
}

.page-products .vcard:hover {
  transform: translateY(-2px);
  border-color: var(--pp-cyan-ink);
}

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

.page-products .vcard__id {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .08em;
  color: var(--c-graphite);
  background: var(--c-paper);
  border: 1px solid var(--pp-light-line);
  padding: 3px 8px;
}

.page-products .vcard__tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--pp-cyan-ink);
}

.page-products .vcard__title {
  font-size: 1.1rem;
  letter-spacing: -.01em;
  color: var(--c-graphite);
}

.page-products .vcard__text {
  font-size: .9rem;
  line-height: 1.72;
  color: var(--pp-light-soft);
}

.page-products .vcard__details {
  margin-top: auto;
  border-top: 1px dashed rgba(18, 35, 46, .22);
  padding-top: 4px;
}

.page-products .vcard__details summary {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .05em;
  color: var(--c-graphite);
}

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

.page-products .vcard__details summary::after {
  content: "+";
  margin-left: auto;
  font-size: 15px;
  line-height: 1;
  color: var(--pp-cyan-ink);
}

.page-products .vcard__details[open] summary::after { content: "−"; }

.page-products .vcard__details p {
  font-size: .88rem;
  line-height: 1.72;
  color: var(--pp-light-soft);
  padding-bottom: 8px;
}

.page-products .vcard__link {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .05em;
  text-decoration: none;
  color: var(--pp-cyan-ink);
  border-bottom: 1px solid transparent;
  align-self: flex-start;
  padding: 6px 0;
  transition: border-color .2s var(--ease);
}

.page-products .vcard__link:hover,
.page-products .vcard__link:focus-visible { border-bottom-color: currentColor; }

.page-products .p-note {
  margin-top: 24px;
  padding-left: 16px;
  border-left: 2px solid var(--c-orange);
  font-size: .9rem;
  line-height: 1.72;
  color: var(--pp-light-soft);
  max-width: 62ch;
}

/* ---------- steps ---------- */
.page-products .steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.page-products .steps__item {
  position: relative;
  padding: 22px 20px;
  border: 1px solid var(--pp-dark-line);
  background: var(--pp-panel);
}

.page-products .steps__num {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--c-orange);
  margin-bottom: 10px;
}

.page-products .steps__title {
  font-size: 1.08rem;
  color: var(--ink-strong);
  margin-bottom: 8px;
}

.page-products .steps__text {
  font-size: .92rem;
  line-height: 1.75;
  color: var(--ink-soft);
}

.page-products .p-inline-cta {
  margin-top: 28px;
  display: grid;
  gap: 16px;
  padding: 20px;
  border-left: 3px solid var(--c-cyan);
  background: rgba(13, 42, 63, .55);
}

.page-products .p-inline-cta p {
  font-size: .92rem;
  line-height: 1.72;
  color: var(--ink-soft);
  max-width: 60ch;
}

.page-products .p-inline-cta .btn { justify-self: start; }

/* ---------- timeline ---------- */
.page-products .timeline {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  position: relative;
  margin: 0 0 clamp(28px, 4vw, 44px);
  padding-left: 22px;
}

.page-products .timeline::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(180deg, var(--c-cyan), rgba(18, 35, 46, .18));
}

.page-products .timeline__node {
  position: relative;
  display: grid;
  gap: 4px;
  padding: 14px 0 14px 4px;
  text-decoration: none;
  color: var(--c-graphite);
}

.page-products .timeline__node::before {
  content: "";
  position: absolute;
  left: -22px;
  top: 20px;
  width: 9px;
  height: 9px;
  background: var(--c-cyan);
  border-radius: 50%;
}

.page-products .timeline__node:first-child::before { background: var(--c-orange); }

.page-products .timeline__ver {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .08em;
}

.page-products .timeline__label {
  font-size: .85rem;
  color: var(--pp-light-soft);
}

.page-products .timeline__node:hover .timeline__ver,
.page-products .timeline__node:focus-visible .timeline__ver {
  color: var(--pp-cyan-ink);
  text-decoration: underline;
}

.page-products .p-history__rows {
  display: grid;
  gap: 1px;
  background: var(--pp-light-line);
  border: 1px solid var(--pp-light-line);
}

.page-products .p-history__row {
  display: grid;
  gap: 6px;
  background: var(--c-paper);
  padding: 16px 18px;
}

.page-products .p-history__k {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--pp-cyan-ink);
}

.page-products .p-history__v {
  font-size: .93rem;
  line-height: 1.72;
  color: var(--pp-light-soft);
}

/* ---------- chooser ---------- */
.page-products .chooser {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.page-products .chooser__link {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 6px 16px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--pp-dark-line);
  background: var(--pp-panel);
  text-decoration: none;
  transition: border-color .22s var(--ease), transform .22s var(--ease);
}

.page-products .chooser__link:hover,
.page-products .chooser__link:focus-visible {
  border-color: var(--c-cyan);
  transform: translateX(2px);
}

.page-products .chooser__step {
  grid-row: 1 / span 2;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--c-orange);
}

.page-products .chooser__q {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -.01em;
  color: var(--ink-strong);
}

.page-products .chooser__a {
  font-size: .86rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

.page-products .p-cta {
  margin-top: clamp(32px, 5vw, 56px);
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--pp-dark-line);
  border-left: 3px solid var(--c-orange);
  background: linear-gradient(120deg, rgba(13, 42, 63, .9), rgba(7, 26, 43, .7));
  display: grid;
  gap: 20px;
}

.page-products .p-cta__text {
  font-size: .96rem;
  line-height: 1.78;
  color: var(--ink-soft);
  max-width: 64ch;
}

.page-products .p-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- responsive ---------- */
@media (min-width: 720px) {
  .page-products .p-hero__facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }

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

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

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

  .page-products .timeline {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding-left: 0;
    gap: 12px;
  }

  .page-products .timeline::before {
    left: 0;
    right: 0;
    top: 8px;
    bottom: auto;
    width: auto;
    height: 1px;
    background: linear-gradient(90deg, var(--c-cyan), rgba(34, 211, 238, .16));
  }

  .page-products .timeline__node {
    padding: 26px 12px 0 0;
  }

  .page-products .timeline__node::before {
    left: 0;
    top: 3px;
  }
}

@media (min-width: 960px) {
  .page-products .p-hero__grid {
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    align-items: end;
  }

  .page-products .tablet-top {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  }

  .page-products .tablet-foot {
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  }

  .page-products .tablet-foot__media { order: -1; }

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

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

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

  .page-products .p-cta__actions { justify-content: flex-end; }
}

@media (max-width: 719px) {
  .page-products .p-cta__actions .btn,
  .page-products .p-hero__actions .btn {
    width: 100%;
    justify-content: center;
  }

  .page-products .p-inline-cta .btn { width: 100%; justify-content: center; }

  .page-products .p-figure--slim img { max-height: 200px; }

  .page-products .tree { padding-left: 24px; }

  .page-products .tree__node::before { left: -17px; width: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .page-products .tree__node,
  .page-products .vcard,
  .page-products .chooser__link {
    transition: none;
  }

  .page-products .tree__node:hover,
  .page-products .tree__node:focus-visible,
  .page-products .vcard:hover,
  .page-products .chooser__link:hover,
  .page-products .chooser__link:focus-visible {
    transform: none;
  }
}
