.page-products {
  --pp-panel: rgba(20, 27, 58, 0.62);
  --pp-panel-solid: rgba(20, 27, 58, 0.9);
  --pp-line: rgba(42, 53, 102, 0.78);
  --pp-line-soft: rgba(42, 53, 102, 0.44);
  --pp-glow-p: 0 0 32px rgba(111, 75, 216, 0.34);
  --pp-glow-c: 0 0 26px rgba(53, 224, 214, 0.28);
}

/* ---------- hero ---------- */
.page-products .pp-hero {
  position: relative;
  padding: clamp(1.4rem, 4vw, 2.4rem) 0 clamp(2.2rem, 6vw, 4rem);
  overflow: hidden;
}

.page-products .pp-hero__grid {
  display: grid;
  gap: 2rem;
  align-items: center;
  margin-top: clamp(1.2rem, 3vw, 2rem);
}

.page-products .pp-hero__title {
  margin: 0.5rem 0 1rem;
  font-size: clamp(1.95rem, 6.2vw, 3.9rem);
  line-height: 1.08;
  letter-spacing: 0.022em;
  text-shadow: 0 0 36px rgba(111, 75, 216, 0.35);
}

.page-products .pp-hero__lede {
  max-width: 40ch;
}

.page-products .pp-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.4rem;
}

.page-products .pp-hero__media {
  margin: 0;
  border-radius: var(--radius-l);
  overflow: hidden;
  border: var(--line);
  background: linear-gradient(160deg, rgba(111, 75, 216, 0.2), rgba(5, 7, 15, 0.92) 72%);
}

.page-products .pp-hero__media img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.page-products .pp-hero__index {
  list-style: none;
  margin: clamp(1.8rem, 4vw, 2.8rem) 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.page-products .pp-hero__index a {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  border: 1px solid var(--pp-line);
  border-radius: 999px;
  color: var(--grey);
  font-size: 0.86rem;
  line-height: 1.3;
  text-decoration: none;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.page-products .pp-hero__index a:hover,
.page-products .pp-hero__index a:focus-visible {
  color: var(--stardust);
  border-color: rgba(111, 75, 216, 0.85);
  box-shadow: var(--pp-glow-p);
}

.page-products .pp-hero__index .mono {
  color: var(--pulse);
  font-size: 0.74rem;
}

/* ---------- section rhythm ---------- */
.page-products .pp-section {
  position: relative;
}

.page-products .pp-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--gutter);
  right: var(--gutter);
  height: 1px;
  background: linear-gradient(90deg, rgba(42, 53, 102, 0.7), rgba(42, 53, 102, 0));
}

/* ---------- A. highlights ---------- */
.page-products .pp-cards {
  display: grid;
  gap: 0.9rem;
  margin-top: clamp(1.4rem, 3vw, 2.2rem);
}

.page-products .pp-card {
  position: relative;
  padding: 1.4rem 1.25rem 1.5rem;
  border: 1px solid var(--pp-line-soft);
  border-radius: var(--radius);
  background: var(--pp-panel);
  backdrop-filter: blur(6px);
  overflow: hidden;
}

.page-products .pp-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--purple), var(--pink));
}

.page-products .pp-card__num {
  margin: 0 0 0.6rem;
  color: var(--pulse);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
}

.page-products .pp-card__title {
  margin: 0 0 0.5rem;
  font-size: 1.08rem;
  letter-spacing: 0.02em;
}

.page-products .pp-card p {
  margin: 0;
  color: var(--grey);
  font-size: 0.92rem;
  line-height: 1.8;
}

.page-products .pp-compare {
  display: grid;
  gap: 0.9rem;
  margin-top: clamp(1.6rem, 3.5vw, 2.4rem);
}

.page-products .pp-compare__col {
  padding: 1.3rem 1.2rem;
  border-radius: var(--radius);
  border: 1px solid var(--pp-line-soft);
}

.page-products .pp-compare__col--old {
  background: rgba(11, 16, 36, 0.72);
}

.page-products .pp-compare__col--new {
  background: linear-gradient(150deg, rgba(111, 75, 216, 0.24), rgba(20, 27, 58, 0.88));
  border-color: rgba(111, 75, 216, 0.55);
  box-shadow: var(--pp-glow-p);
}

.page-products .pp-compare__tag {
  margin: 0 0 0.7rem;
  font-size: 0.76rem;
  letter-spacing: 0.16em;
}

.page-products .pp-compare__col--old .pp-compare__tag {
  color: var(--grey);
}

.page-products .pp-compare__col--new .pp-compare__tag {
  color: var(--amber);
}

.page-products .pp-compare__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.page-products .pp-compare__list li {
  position: relative;
  padding-left: 1.1rem;
  color: var(--grey);
  font-size: 0.92rem;
  line-height: 1.75;
}

.page-products .pp-compare__col--new .pp-compare__list li {
  color: var(--stardust);
}

.page-products .pp-compare__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.66em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orbit);
}

.page-products .pp-compare__col--new .pp-compare__list li::before {
  background: var(--pulse);
  box-shadow: 0 0 10px rgba(53, 224, 214, 0.7);
}

/* ---------- B. android fit ---------- */
.page-products .pp-fit {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.page-products .pp-bullets {
  list-style: none;
  margin: 1.3rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.page-products .pp-bullets li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  color: var(--stardust);
  font-size: 0.94rem;
  line-height: 1.75;
}

.page-products .pp-dot {
  flex: none;
  width: 8px;
  height: 8px;
  margin-top: 0.62em;
  border-radius: 50%;
  background: var(--purple);
  box-shadow: 0 0 12px rgba(111, 75, 216, 0.85);
}

.page-products .pp-fit__media {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--pp-line-soft);
  background: linear-gradient(180deg, rgba(20, 27, 58, 0.85), rgba(5, 7, 15, 0.9));
}

.page-products .pp-fit__media img,
.page-products .pp-steps__media img,
.page-products .pp-family__media img,
.page-products .pp-scenes__media img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: cover;
}

.page-products .pp-fit__media .media__caption,
.page-products .pp-steps__media .media__caption,
.page-products .pp-scenes__media .media__caption {
  display: block;
  padding: 0.7rem 0.9rem 0.85rem;
  color: var(--grey);
  font-size: 0.78rem;
  line-height: 1.6;
}

.page-products .pp-filter {
  position: relative;
  margin-top: clamp(1.8rem, 4vw, 2.6rem);
  padding: 1.2rem 1.15rem 1.35rem;
  border: 1px solid var(--pp-line-soft);
  border-radius: var(--radius);
  background: rgba(11, 16, 36, 0.6);
}

.page-products .pp-filter__title {
  margin: 0 0 0.9rem;
  color: var(--grey);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
}

.page-products .pp-filter__radio {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.page-products .pp-filter__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.page-products .pp-filter__tabs label {
  cursor: pointer;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--pp-line);
  color: var(--grey);
  font-size: 0.85rem;
  line-height: 1.4;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.page-products #pp-ver-all:checked ~ .pp-filter__tabs label[for="pp-ver-all"],
.page-products #pp-ver-main:checked ~ .pp-filter__tabs label[for="pp-ver-main"],
.page-products #pp-ver-legacy:checked ~ .pp-filter__tabs label[for="pp-ver-legacy"],
.page-products #pp-ver-large:checked ~ .pp-filter__tabs label[for="pp-ver-large"] {
  background: var(--purple);
  border-color: var(--pink);
  color: #fff;
  box-shadow: var(--pp-glow-p);
}

.page-products .pp-filter__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.page-products .pp-chip {
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(53, 224, 214, 0.35);
  background: rgba(53, 224, 214, 0.08);
  color: var(--stardust);
  font-size: 0.84rem;
  line-height: 1.4;
}

.page-products #pp-ver-main:checked ~ .pp-filter__list li:not(.is-main),
.page-products #pp-ver-legacy:checked ~ .pp-filter__list li:not(.is-legacy),
.page-products #pp-ver-large:checked ~ .pp-filter__list li:not(.is-large) {
  display: none;
}

/* ---------- C. switch steps ---------- */
.page-products .pp-steps {
  position: relative;
  list-style: none;
  margin: clamp(1.4rem, 3vw, 2.2rem) 0 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}

.page-products .pp-step details {
  height: 100%;
  border: 1px solid var(--pp-line-soft);
  border-radius: var(--radius);
  background: var(--pp-panel-solid);
  overflow: hidden;
}

.page-products .pp-step details[open] {
  border-color: rgba(111, 75, 216, 0.6);
  box-shadow: var(--pp-glow-p);
}

.page-products .pp-step summary {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.1rem;
  cursor: pointer;
  list-style: none;
  min-height: 44px;
}

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

.page-products .pp-step summary::after {
  content: "+";
  margin-left: auto;
  color: var(--pulse);
  font-family: var(--font-mono);
  font-size: 1rem;
  line-height: 1;
}

.page-products .pp-step details[open] summary::after {
  content: "–";
}

.page-products .pp-step__idx {
  color: var(--pulse);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
}

.page-products .pp-step__name {
  font-size: 1rem;
  letter-spacing: 0.02em;
  color: var(--stardust);
}

.page-products .pp-step__body {
  padding: 0 1.1rem 1.15rem;
  border-top: 1px solid var(--pp-line-soft);
}

.page-products .pp-step__body p {
  margin: 0.85rem 0 0;
  color: var(--grey);
  font-size: 0.91rem;
  line-height: 1.85;
}

.page-products .pp-step__hint {
  color: var(--purple);
  font-size: 0.76rem;
}

.page-products .pp-steps__media {
  margin: clamp(1.4rem, 3vw, 2rem) 0 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--pp-line-soft);
  background: linear-gradient(120deg, rgba(111, 75, 216, 0.16), rgba(5, 7, 15, 0.92));
}

/* ---------- D. records ---------- */
.page-products .pp-records {
  display: grid;
  gap: 1.8rem;
  align-items: center;
}

.page-products .pp-records__copy p {
  color: var(--grey);
  font-size: 0.94rem;
  line-height: 1.85;
}

.page-products .pp-records__copy .btn {
  margin-top: 0.8rem;
}

.page-products .pp-records__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.page-products .pp-stat {
  padding: 1.05rem 1rem;
  border: 1px solid var(--pp-line-soft);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(53, 224, 214, 0.1), rgba(20, 27, 58, 0.78));
}

.page-products .pp-stat .stat__value {
  display: block;
  color: var(--pulse);
  font-family: var(--font-mono);
  font-size: clamp(1.25rem, 3.4vw, 1.75rem);
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.page-products .pp-stat .stat__label {
  display: block;
  margin-top: 0.4rem;
  color: var(--grey);
  font-size: 0.8rem;
  line-height: 1.6;
}

/* ---------- E. family ---------- */
.page-products .pp-family {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.page-products .pp-family__list {
  list-style: none;
  margin: 1.3rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.page-products .pp-family__list li {
  position: relative;
  padding-left: 1.15rem;
  color: var(--stardust);
  font-size: 0.93rem;
  line-height: 1.75;
}

.page-products .pp-family__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.66em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 10px rgba(200, 107, 255, 0.75);
}

.page-products .pp-family__media {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--pp-line-soft);
  background: linear-gradient(160deg, rgba(200, 107, 255, 0.14), rgba(5, 7, 15, 0.92));
}

.page-products .pp-hub {
  margin-top: clamp(1.6rem, 3.5vw, 2.4rem);
  padding: 1.2rem;
  border: 1px dashed rgba(53, 224, 214, 0.4);
  border-radius: var(--radius);
  background: rgba(11, 16, 36, 0.6);
  display: grid;
  gap: 1rem;
}

.page-products .pp-hub__core {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-s);
  background: linear-gradient(120deg, rgba(53, 224, 214, 0.18), rgba(20, 27, 58, 0.9));
  border: 1px solid rgba(53, 224, 214, 0.45);
}

.page-products .pp-hub__label {
  color: var(--pulse);
  font-size: 0.74rem;
}

.page-products .pp-hub__name {
  color: var(--stardust);
  font-size: 0.98rem;
  letter-spacing: 0.02em;
}

.page-products .pp-hub__pulse {
  position: absolute;
  right: 1rem;
  top: 50%;
  width: 9px;
  height: 9px;
  margin-top: -4.5px;
  border-radius: 50%;
  background: var(--pulse);
  animation: pp-breathe 3.4s var(--ease) infinite;
}

.page-products .pp-hub__members {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  gap: 0.5rem;
}

.page-products .pp-hub__members li {
  padding: 0.55rem 0.4rem;
  text-align: center;
  border-radius: var(--radius-s);
  border: 1px solid var(--pp-line);
  background: rgba(20, 27, 58, 0.85);
  color: var(--grey);
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.page-products .pp-window {
  margin-top: 1.2rem;
  padding: 1.2rem 1.2rem 1.35rem;
  border-radius: var(--radius);
  border: 1px solid rgba(53, 224, 214, 0.42);
  background: linear-gradient(125deg, rgba(53, 224, 214, 0.13), rgba(5, 7, 15, 0.85));
  box-shadow: var(--pp-glow-c);
}

.page-products .pp-window__label {
  margin: 0 0 0.5rem;
  color: var(--pulse);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
}

.page-products .pp-window__title {
  margin: 0 0 0.6rem;
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  letter-spacing: 0.02em;
}

.page-products .pp-window__text {
  margin: 0;
  color: var(--grey);
  font-size: 0.92rem;
  line-height: 1.85;
}

.page-products .pp-window__bar {
  position: relative;
  height: 8px;
  margin-top: 1rem;
  border-radius: 999px;
  background: rgba(42, 53, 102, 0.75);
  overflow: hidden;
}

.page-products .pp-window__bar span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 8.2%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--pulse), var(--purple));
  animation: pp-breathe 3.4s var(--ease) infinite;
}

.page-products .pp-window__scale {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.6rem;
}

.page-products .pp-window__scale .mono {
  font-size: 0.72rem;
  color: var(--grey);
}

/* ---------- F. scenes ---------- */
.page-products .pp-scenes {
  display: grid;
  gap: 0.9rem;
  margin-top: clamp(1.4rem, 3vw, 2.2rem);
}

.page-products .pp-scene {
  padding: 1.25rem 1.15rem 1.35rem;
  border: 1px solid var(--pp-line-soft);
  border-radius: var(--radius);
  background: linear-gradient(170deg, rgba(20, 27, 58, 0.9), rgba(11, 16, 36, 0.72));
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.page-products .pp-scene:hover {
  border-color: rgba(111, 75, 216, 0.7);
  transform: translateY(-2px);
}

.page-products .pp-scene__tag {
  margin: 0 0 0.6rem;
  color: var(--pink);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
}

.page-products .pp-scene h3 {
  margin: 0 0 0.5rem;
  font-size: 1.03rem;
  letter-spacing: 0.02em;
}

.page-products .pp-scene p {
  margin: 0;
  color: var(--grey);
  font-size: 0.9rem;
  line-height: 1.8;
}

.page-products .pp-scenes__media {
  margin: clamp(1.4rem, 3vw, 2rem) 0 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--pp-line-soft);
  background: linear-gradient(140deg, rgba(20, 27, 58, 0.92), rgba(5, 7, 15, 0.9));
}

/* ---------- G. help ---------- */
.page-products .pp-help {
  display: grid;
  gap: 1.6rem;
  padding: clamp(1.4rem, 4vw, 2.4rem);
  border-radius: var(--radius-l);
  border: 1px solid rgba(255, 194, 75, 0.32);
  background: linear-gradient(140deg, rgba(111, 75, 216, 0.18), rgba(5, 7, 15, 0.9) 68%);
}

.page-products .pp-help__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

/* ---------- animation ---------- */
@keyframes pp-breathe {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.42;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-products .pp-hub__pulse,
  .page-products .pp-window__bar span {
    animation: none;
  }
  .page-products .pp-scene:hover {
    transform: none;
  }
}

/* ---------- breakpoints ---------- */
@media (min-width: 700px) {
  .page-products .pp-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .page-products .pp-compare {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .page-products .pp-scenes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .page-products .pp-help {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
    align-items: center;
  }
}

@media (min-width: 900px) {
  .page-products .pp-hero__grid {
    grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
    gap: clamp(2rem, 5vw, 4rem);
  }
  .page-products .pp-fit,
  .page-products .pp-records,
  .page-products .pp-family {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
    gap: clamp(1.8rem, 4vw, 3rem);
  }
  .page-products .pp-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
  }
  .page-products .pp-hub {
    grid-template-columns: minmax(0, 0.34fr) minmax(0, 0.66fr);
    align-items: center;
  }
}

@media (min-width: 1040px) {
  .page-products .pp-cards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .page-products .pp-scenes {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
