.page-products {
  --pp-hair: rgba(44, 74, 71, 0.85);
  --pp-lime-soft: rgba(201, 242, 76, 0.1);
  --pp-orange-soft: rgba(255, 122, 61, 0.12);
  --pp-panel: rgba(18, 41, 58, 0.72);
  background:
    radial-gradient(140% 80% at 86% -12%, rgba(16, 42, 74, 0.9), rgba(6, 35, 28, 0) 62%),
    var(--green-ink);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.75;
  overflow-x: hidden;
  padding-bottom: clamp(48px, 8vw, 110px);
}

.page-products .pp-crumb {
  padding-top: clamp(18px, 3vw, 30px);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--text-dim);
}

.page-products .pp-crumb a {
  color: var(--text-dim);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

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

.page-products .pp-crumb [aria-current="page"] {
  color: var(--text);
}

.page-products .mono {
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 0.04em;
}

/* ---------- hero ---------- */
.page-products .pp-hero {
  padding: clamp(20px, 3.6vw, 40px) 0 clamp(32px, 5vw, 64px);
}

.page-products .pp-hero-grid {
  display: grid;
  gap: clamp(24px, 4vw, 40px);
  grid-template-columns: 1fr;
}

.page-products .pp-frame {
  position: relative;
  border: 1px solid var(--pp-hair);
  padding: clamp(20px, 3.6vw, 44px);
  background: linear-gradient(158deg, rgba(14, 59, 51, 0.6), rgba(16, 42, 74, 0.38) 58%, rgba(6, 35, 28, 0) 100%);
}

.page-products .pp-frame::before,
.page-products .pp-frame::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  pointer-events: none;
}

.page-products .pp-frame::before {
  top: -1px;
  left: -1px;
  border-top: 2px solid var(--lime);
  border-left: 2px solid var(--lime);
}

.page-products .pp-frame::after {
  right: -1px;
  bottom: -1px;
  border-right: 2px solid var(--lime);
  border-bottom: 2px solid var(--lime);
}

.page-products .pp-kicker {
  margin: 0 0 clamp(14px, 2vw, 22px);
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.18em;
}

.page-products .pp-h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(32px, 6.4vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  transform: skewX(-3deg);
  transform-origin: left bottom;
}

.page-products .pp-lead {
  margin: clamp(18px, 2.6vw, 26px) 0 0;
  max-width: 46ch;
  font-size: clamp(15px, 1.6vw, 17px);
  color: var(--text-dim);
}

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

.page-products .pp-hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin: clamp(22px, 3vw, 32px) 0 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--pp-hair);
  list-style: none;
  font-size: 12px;
  color: var(--text-dim);
}

.page-products .pp-fact-num {
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--lime);
  margin-right: 4px;
}

.page-products .pp-line-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-products .pp-line-list a {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 4px 12px;
  padding: 16px 18px;
  border: 1px solid var(--pp-hair);
  background: var(--pp-panel);
  color: var(--text);
  text-decoration: none;
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.page-products .pp-line-list a:hover,
.page-products .pp-line-list a:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(201, 242, 76, 0.55);
  background: rgba(18, 41, 58, 0.95);
}

.page-products .pp-idx {
  grid-row: span 2;
  font-size: 12px;
  color: var(--lime);
  padding-top: 3px;
}

.page-products .pp-line-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.01em;
}

.page-products .pp-line-desc {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-dim);
}

/* ---------- section shell ---------- */
.page-products .pp-section {
  padding: clamp(44px, 6.4vw, 88px) 0;
  scroll-margin-top: 74px;
}

.page-products .pp-band {
  background: linear-gradient(180deg, rgba(11, 29, 51, 0.86), rgba(11, 29, 51, 0.42));
  border-top: 1px solid var(--pp-hair);
  border-bottom: 1px solid var(--pp-hair);
}

.page-products .pp-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-bottom: clamp(24px, 3.6vw, 42px);
}

.page-products .pp-index {
  font-size: 12px;
  color: var(--lime);
  letter-spacing: 0.2em;
}

.page-products .pp-h2 {
  margin: 0;
  max-width: 24ch;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(24px, 3.4vw, 40px);
  line-height: 1.18;
  letter-spacing: -0.01em;
}

.page-products .pp-sub {
  margin: 12px 0 0;
  max-width: 60ch;
  font-size: 15px;
  color: var(--text-dim);
}

.page-products .pp-h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.01em;
}

.page-products .pp-cap {
  display: block;
  margin-top: 10px;
  font-size: 11px;
  color: var(--text-dim);
}

/* ---------- overview compare rows ---------- */
.page-products .pp-compare {
  border-top: 1px solid var(--pp-hair);
  border-bottom: 1px solid var(--pp-hair);
}

.page-products .pp-compare-head {
  display: none;
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.14em;
  padding: 12px 16px;
  background: rgba(11, 29, 51, 0.7);
}

.page-products .pp-compare-row {
  display: grid;
  gap: 6px;
  padding: 18px 16px;
  border-top: 1px solid var(--pp-hair);
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}

.page-products .pp-compare-row:hover,
.page-products .pp-compare-row:focus-visible {
  background: var(--pp-lime-soft);
  transform: translateY(-2px);
}

.page-products .pp-cell-line {
  display: flex;
  align-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
}

.page-products .pp-compare-row .mono {
  font-size: 12px;
  color: var(--text-dim);
}

.page-products .pp-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 10px;
  flex: 0 0 auto;
}

.page-products .pp-dot--screen {
  background: var(--lime);
}

.page-products .pp-dot--sub {
  background: var(--orange);
}

.page-products .pp-dot--cmp {
  background: linear-gradient(135deg, var(--grad-teal), var(--grad-blue));
  border: 1px solid #4d7f76;
}

.page-products .pp-compare-note {
  margin: 16px 0 0;
  font-size: 13px;
  color: var(--text-dim);
  max-width: 62ch;
}

/* ---------- split layouts ---------- */
.page-products .pp-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(22px, 3.4vw, 40px);
  align-items: start;
}

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

.page-products .media-frame {
  border: 1px solid var(--pp-hair);
  background: rgba(6, 35, 28, 0.7);
  overflow: hidden;
}

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

.page-products .pp-notes {
  display: grid;
  gap: 18px;
}

.page-products .pp-note {
  border-left: 1px solid var(--pp-hair);
  padding-left: 16px;
}

.page-products .pp-note p {
  margin: 0;
  font-size: 14px;
  color: var(--text-dim);
}

.page-products .pp-notes--wide p {
  margin: 0 0 14px;
  font-size: 15px;
  color: var(--text-dim);
  max-width: 36ch;
}

.page-products .pp-notes--wide .btn {
  margin-top: 6px;
}

/* ---------- red / yellow summary ---------- */
.page-products .pp-flags {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(20px, 3vw, 34px);
  margin-top: clamp(26px, 4vw, 48px);
  padding-top: clamp(22px, 3vw, 36px);
  border-top: 1px solid var(--pp-hair);
}

.page-products .pp-flags-body p {
  margin: 0 0 18px;
  font-size: 14px;
  color: var(--text-dim);
  max-width: 52ch;
}

.page-products .pp-bar-wrap {
  padding: 16px;
  border: 1px solid var(--pp-hair);
  background: rgba(18, 41, 58, 0.62);
}

.page-products .pp-bar {
  display: flex;
  height: 16px;
  gap: 4px;
  margin-bottom: 12px;
}

.page-products .pp-bar-seg {
  display: block;
  height: 100%;
  transition: opacity 0.2s var(--ease);
}

.page-products .pp-bar-seg--yellow {
  flex: 62;
  background: var(--card-yellow);
}

.page-products .pp-bar-seg--red {
  flex: 38;
  background: var(--card-red);
}

.page-products .pp-bar:hover .pp-bar-seg {
  opacity: 0.65;
}

.page-products .pp-bar:hover .pp-bar-seg:hover {
  opacity: 1;
}

.page-products .pp-bar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 12px;
  color: var(--text-dim);
}

.page-products .pp-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.page-products .pp-legend-item--plain {
  color: var(--text-dim);
  opacity: 0.85;
}

.page-products .pp-flag {
  display: inline-block;
  width: 10px;
  height: 10px;
}

.page-products .pp-flag--yellow {
  background: var(--card-yellow);
}

.page-products .pp-flag--red {
  background: var(--card-red);
}

.page-products .pp-bar-note {
  margin: 12px 0 0;
  font-size: 12px;
  line-height: 1.7;
  color: var(--text-dim);
}

/* ---------- subscription cards ---------- */
.page-products .pp-slow {
  padding-top: clamp(52px, 7.4vw, 104px);
}

.page-products .pp-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(22px, 3.4vw, 44px);
}

.page-products .pp-card {
  position: relative;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--pp-hair);
  background: var(--pp-panel);
  transition: transform 0.22s var(--ease), border-color 0.22s var(--ease);
}

.page-products .pp-card:hover,
.page-products .pp-card:focus-within {
  transform: translateY(-2px);
  border-color: rgba(255, 122, 61, 0.5);
}

.page-products .pp-card-badge {
  position: absolute;
  top: 0;
  right: 0;
  padding: 4px 10px;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: #0b1d33;
  background: var(--orange);
}

.page-products .pp-card p {
  margin: 0;
  font-size: 14px;
  color: var(--text-dim);
}

.page-products .pp-card-more p {
  font-size: 13px;
  padding-top: 10px;
  margin-top: 10px;
  border-top: 1px dashed var(--pp-hair);
}

.page-products .pp-card-meta {
  margin: 16px 0 0;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--lime);
}

.page-products .pp-figure--sub {
  margin-top: clamp(26px, 4vw, 52px);
}

.page-products .pp-sub-note {
  margin: clamp(16px, 2.4vw, 24px) 0 0;
  font-size: 13px;
  color: var(--text-dim);
  max-width: 64ch;
}

/* ---------- comparison matrix ---------- */
.page-products .pp-matrix {
  border-top: 1px solid var(--pp-hair);
  border-bottom: 1px solid var(--pp-hair);
}

.page-products .pp-matrix-head {
  display: none;
  padding: 12px 16px;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--text-dim);
  background: rgba(18, 41, 58, 0.8);
}

.page-products .pp-matrix-row {
  display: grid;
  gap: 6px;
  padding: 16px;
  border-top: 1px solid var(--pp-hair);
  font-size: 14px;
  color: var(--text-dim);
  transition: background 0.2s var(--ease);
}

.page-products .pp-matrix-row:hover {
  background: rgba(11, 29, 51, 0.9);
}

.page-products .pp-matrix-key {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--text);
}

.page-products .pp-split--reverse {
  margin-top: clamp(26px, 4vw, 46px);
}

/* ---------- scenarios ---------- */
.page-products .pp-scenes {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.page-products .pp-scenes-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.22;
  z-index: -1;
}

.page-products .pp-scenes::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(6, 35, 28, 0.9), rgba(6, 35, 28, 0.65) 55%, rgba(6, 35, 28, 0.94));
}

.page-products .pp-scenes-inner {
  position: relative;
}

.page-products .pp-scene-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(18px, 2.6vw, 30px);
}

.page-products .pp-scene {
  padding: 22px;
  border: 1px solid rgba(201, 242, 76, 0.22);
  background: rgba(6, 35, 28, 0.72);
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.page-products .pp-scene:hover {
  border-color: rgba(201, 242, 76, 0.6);
  transform: translateY(-2px);
}

.page-products .pp-scene-tag {
  margin: 0 0 10px;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--lime);
}

.page-products .pp-scene p {
  margin: 0 0 14px;
  font-size: 14px;
  color: var(--text-dim);
}

.page-products .pp-scene-link {
  display: inline-block;
  font-size: 13px;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

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

/* ---------- steps + links ---------- */
.page-products .pp-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--pp-hair);
}

.page-products .pp-step {
  padding: 20px 0;
  border-bottom: 1px solid var(--pp-hair);
}

.page-products .pp-step-num {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  color: var(--orange);
  letter-spacing: 0.16em;
}

.page-products .pp-step p {
  margin: 0;
  font-size: 14px;
  color: var(--text-dim);
  max-width: 42ch;
}

.page-products .pp-links {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: clamp(28px, 4vw, 44px);
}

.page-products .pp-link-card {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 2px 10px;
  padding: 16px 18px;
  border: 1px solid var(--pp-hair);
  background: rgba(18, 41, 58, 0.6);
  color: var(--text);
  text-decoration: none;
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease);
}

.page-products .pp-link-card:hover,
.page-products .pp-link-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(201, 242, 76, 0.5);
}

.page-products .pp-link-idx {
  grid-row: span 2;
  font-size: 12px;
  color: var(--lime);
}

.page-products .pp-link-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
}

.page-products .pp-link-desc {
  font-size: 12px;
  color: var(--text-dim);
}

.page-products :focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(201, 242, 76, 0.18);
}

/* ---------- responsive ---------- */
@media (min-width: 700px) {
  .page-products .pp-links {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  .page-products .pp-steps {
    grid-template-columns: repeat(2, 1fr);
    column-gap: clamp(24px, 4vw, 56px);
  }
}

@media (min-width: 900px) {
  .page-products .pp-hero-grid {
    grid-template-columns: 1.55fr 0.9fr;
    align-items: end;
  }

  .page-products .pp-head {
    grid-template-columns: 64px 1fr;
    gap: 20px;
    align-items: start;
  }

  .page-products .pp-compare-head,
  .page-products .pp-compare-row {
    grid-template-columns: 1.15fr 1.7fr 0.95fr 1fr;
    align-items: center;
    gap: 18px;
  }

  .page-products .pp-compare-head {
    display: grid;
  }

  .page-products .pp-matrix-head,
  .page-products .pp-matrix-row {
    grid-template-columns: 0.9fr 1.5fr 1.6fr 1fr;
    align-items: center;
    gap: 18px;
  }

  .page-products .pp-matrix-head {
    display: grid;
  }

  .page-products .pp-split {
    grid-template-columns: 1.3fr 0.85fr;
    gap: clamp(28px, 4vw, 56px);
  }

  .page-products .pp-split--reverse {
    grid-template-columns: 0.85fr 1.3fr;
  }

  .page-products .pp-split--reverse .pp-figure {
    order: 2;
  }

  .page-products .pp-flags {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: center;
  }

  .page-products .pp-steps {
    grid-template-columns: repeat(4, 1fr);
  }

  .page-products .pp-links {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (hover: hover) and (min-width: 900px) {
  .page-products .pp-card-more {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s var(--ease), opacity 0.25s var(--ease);
  }

  .page-products .pp-card:hover .pp-card-more,
  .page-products .pp-card:focus-within .pp-card-more {
    max-height: 200px;
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-products * {
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
  }

  .page-products .pp-h1 {
    transform: none;
  }
}
