.page-products {
  --p-cut: 20px;
  --p-soft: rgba(234, 242, 255, 0.68);
  --p-hair: 1px solid var(--ab-line);
  --p-glow: rgba(59, 240, 224, 0.08);
}

/* ---------- hero ---------- */
.page-products .hero {
  position: relative;
  padding: clamp(28px, 5vw, 64px) 0 clamp(36px, 6vw, 80px);
  overflow: hidden;
}
.page-products .hero::before {
  content: "";
  position: absolute;
  inset: -20% 40% 30% -30%;
  background: radial-gradient(circle at 30% 40%, rgba(59, 240, 224, 0.12), transparent 62%);
  pointer-events: none;
}
.page-products .hero__grid {
  position: relative;
  display: grid;
  gap: 18px;
  margin-top: 14px;
}
.page-products .hero__title {
  font-size: clamp(2.1rem, 5.2vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 800;
  max-width: 18ch;
  color: var(--ab-white);
}
.page-products .hero__lede {
  font-size: 1rem;
  line-height: 1.78;
  color: var(--p-soft);
  max-width: 62ch;
}
.page-products .hero__quick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  list-style: none;
  margin: 26px 0 0;
  padding: 14px 0 0;
  border-top: var(--p-hair);
  font-family: var(--ab-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--ab-fog);
}
.page-products .hero__quick .ab-num {
  color: var(--ab-amber);
  margin-right: 8px;
}

/* ---------- feature matrix ---------- */
.page-products .matrix {
  display: grid;
  gap: 12px;
  margin-top: clamp(30px, 5vw, 58px);
}
.page-products .matrix__card {
  position: relative;
  padding: 22px 20px 20px;
  background: var(--ab-hull);
  border: var(--p-hair);
  transition: border-color 0.24s ease, transform 0.24s ease;
}
.page-products .matrix__card::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 42px;
  height: 2px;
  background: var(--ab-cyan);
}
.page-products .matrix__card--cut {
  background: linear-gradient(158deg, rgba(15, 94, 92, 0.34), rgba(6, 11, 24, 0.9) 62%);
  clip-path: polygon(0 0, calc(100% - var(--p-cut)) 0, 100% var(--p-cut), 100% 100%, var(--p-cut) 100%, 0 calc(100% - var(--p-cut)));
}
.page-products .matrix__card--cut::after {
  background: var(--ab-magenta);
  width: 64px;
}
.page-products .matrix__card:hover {
  border-color: rgba(59, 240, 224, 0.45);
}
.page-products .matrix__num {
  font-family: var(--ab-mono);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  color: var(--ab-amber);
}
.page-products .matrix__title {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 10px 0 8px;
  color: var(--ab-white);
}
.page-products .matrix__text {
  font-size: 0.93rem;
  line-height: 1.72;
  color: var(--ab-fog);
}
.page-products .matrix__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-size: 0.88rem;
  color: var(--ab-cyan);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.page-products .matrix__link:hover,
.page-products .matrix__link:focus-visible {
  border-bottom-color: currentColor;
}
.page-products .matrix__link--amber {
  color: var(--ab-amber);
}

/* ---------- console + rail ---------- */
.page-products .console {
  padding-block: clamp(34px, 5vw, 72px);
  display: grid;
  gap: 0;
}
.page-products .ab-rail {
  display: none;
}
.page-products .console__main {
  min-width: 0;
}

/* ---------- chapters ---------- */
.page-products .chapter {
  padding-block: clamp(34px, 5vw, 76px);
  border-top: var(--p-hair);
}
.page-products .chapter__head {
  display: grid;
  gap: 10px;
  margin-bottom: 26px;
}
.page-products .chapter__index {
  font-family: var(--ab-mono);
  font-size: 0.76rem;
  letter-spacing: 0.2em;
  color: var(--ab-cyan);
}
.page-products .chapter__title {
  font-size: clamp(1.5rem, 3.2vw, 2.35rem);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ab-white);
  max-width: 24ch;
}
.page-products .chapter__intro {
  font-size: 0.97rem;
  line-height: 1.78;
  color: var(--p-soft);
  max-width: 66ch;
}
.page-products .chapter__body {
  display: grid;
  gap: 24px;
  align-items: start;
}
.page-products .chapter__col {
  min-width: 0;
  display: grid;
  gap: 18px;
}

/* ---------- step list ---------- */
.page-products .step-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
}
.page-products .step-list__item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px dashed var(--ab-line);
}
.page-products .step-list__item:first-child {
  border-top: 1px dashed var(--ab-line);
}
.page-products .step-list__num {
  font-family: var(--ab-mono);
  font-size: 0.8rem;
  line-height: 1.9;
  width: 26px;
  height: 26px;
  text-align: center;
  color: var(--ab-void);
  background: var(--ab-cyan);
  clip-path: polygon(0 0, 100% 0, 100% 68%, 70% 100%, 0 100%);
}
.page-products .step-list__item h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ab-white);
  margin-bottom: 6px;
}
.page-products .step-list__item p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--ab-fog);
}

/* ---------- figures ---------- */
.page-products .ab-figure {
  margin: 0;
  border: var(--p-hair);
  background: var(--ab-hull);
}
.page-products .ab-figure__media {
  overflow: hidden;
}
.page-products .ab-figure__media img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
}
.page-products .ab-figure__cap {
  padding: 10px 14px;
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--ab-fog);
  border-top: var(--p-hair);
}
.page-products .ab-figure--tall .ab-figure__media img {
  max-height: 520px;
  object-fit: contain;
  background: var(--ab-void);
}

/* ---------- note strip ---------- */
.page-products .note-strip {
  margin-top: 22px;
  padding: 13px 16px;
  border-left: 2px solid var(--ab-amber);
  background: rgba(255, 180, 67, 0.06);
  font-size: 0.87rem;
  line-height: 1.7;
  color: var(--p-soft);
}

/* ---------- table ---------- */
.page-products .ab-table-wrap {
  overflow-x: auto;
  border: var(--p-hair);
  background: var(--ab-hull);
}
.page-products .ab-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.87rem;
}
.page-products .ab-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  text-align: left;
  padding: 12px 14px;
  background: var(--ab-void);
  border-bottom: 1px solid var(--ab-line);
  font-family: var(--ab-mono);
  font-weight: 500;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  color: var(--ab-fog);
  white-space: nowrap;
}
.page-products .ab-table td {
  padding: 12px 14px;
  border-bottom: 1px dashed var(--ab-line);
  color: var(--ab-white);
  line-height: 1.55;
}
.page-products .ab-table tbody tr:nth-child(even) {
  background: rgba(234, 242, 255, 0.025);
}
.page-products .ab-table tbody tr:hover {
  background: var(--p-glow);
}
.page-products .ab-table__num {
  font-family: var(--ab-mono);
  font-variant-numeric: tabular-nums;
  color: var(--ab-amber);
  white-space: nowrap;
}
.page-products .roster-tip {
  font-size: 0.86rem;
  line-height: 1.72;
  color: var(--ab-fog);
  padding-left: 14px;
  border-left: 1px solid var(--ab-line);
}

/* ---------- channel matrix ---------- */
.page-products .chan {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px;
}
.page-products .chan__cell {
  position: relative;
  padding: 14px 14px 12px;
  background: var(--ab-hull);
  border: var(--p-hair);
}
.page-products .chan__dot {
  display: block;
  width: 8px;
  height: 8px;
  margin-bottom: 10px;
  border-radius: 50%;
  background: var(--ab-line);
}
.page-products .chan__cell--on .chan__dot {
  background: var(--ab-cyan);
  box-shadow: 0 0 0 3px rgba(59, 240, 224, 0.16);
  animation: ab-pulse 2.4s ease-in-out infinite;
}
.page-products .chan__cell--soon .chan__dot {
  background: var(--ab-amber);
}
.page-products .chan__cell--on {
  border-color: rgba(59, 240, 224, 0.4);
}
.page-products .chan__name {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ab-white);
  margin-bottom: 6px;
}
.page-products .chan__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-family: var(--ab-mono);
  font-size: 0.74rem;
  color: var(--ab-fog);
}
.page-products .chan__state {
  margin-top: 8px;
  font-family: var(--ab-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--ab-fog);
}
.page-products .chan__cell--on .chan__state {
  color: var(--ab-cyan);
}
.page-products .chan__cell--soon .chan__state {
  color: var(--ab-amber);
}
@keyframes ab-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}
.page-products .tagrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.page-products .tagrow__label {
  font-family: var(--ab-mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  color: var(--ab-fog);
  margin-right: 4px;
}

/* ---------- plain list ---------- */
.page-products .plain-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.page-products .plain-list li {
  padding: 14px 16px;
  background: rgba(13, 23, 48, 0.7);
  border-left: 2px solid var(--ab-teal);
  font-size: 0.9rem;
  line-height: 1.72;
  color: var(--ab-fog);
}
.page-products .plain-list strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ab-white);
  font-size: 0.96rem;
}

/* ---------- start paths ---------- */
.page-products .chapter--start {
  border-top: var(--p-hair);
}
.page-products .start {
  display: grid;
  gap: 24px;
}
.page-products .start__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.page-products .start__item {
  position: relative;
  padding: 20px 20px 18px;
  background: var(--ab-hull);
  border: var(--p-hair);
  border-top: 2px solid rgba(59, 240, 224, 0.5);
}
.page-products .start__num {
  font-family: var(--ab-mono);
  font-size: 1.6rem;
  font-variant-numeric: tabular-nums;
  color: var(--ab-amber);
  line-height: 1;
}
.page-products .start__item h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ab-white);
  margin: 10px 0 8px;
}
.page-products .start__item p {
  font-size: 0.9rem;
  line-height: 1.72;
  color: var(--ab-fog);
  margin-bottom: 12px;
}
.page-products .start__figure {
  margin: 0;
}
.page-products .start__figure .ab-figure__media img {
  max-height: 380px;
  object-fit: contain;
  background: var(--ab-void);
}

/* ---------- closing ---------- */
.page-products .closing {
  margin-top: 30px;
  padding: 22px 20px;
  display: grid;
  gap: 16px;
  background: linear-gradient(120deg, rgba(255, 61, 154, 0.1), rgba(59, 240, 224, 0.07));
  border: var(--p-hair);
}
.page-products .closing__text {
  font-size: 0.95rem;
  line-height: 1.72;
  color: var(--ab-white);
  max-width: 46ch;
}
.page-products .closing__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- breakpoints ---------- */
@media (min-width: 700px) {
  .page-products .hero__grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    align-items: end;
    gap: 28px;
  }
  .page-products .matrix {
    gap: 14px;
  }
  .page-products .chapter__body {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 32px;
  }
  .page-products .chapter__body--flip .chapter__col {
    order: 1;
  }
  .page-products .start__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .page-products .closing {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }
}

@media (min-width: 900px) {
  .page-products .matrix {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.92fr) minmax(0, 1.3fr);
  }
  .page-products .chan {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .page-products .start {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
    align-items: start;
  }
}

@media (min-width: 1180px) {
  .page-products .console {
    grid-template-columns: var(--ab-rail) minmax(0, 1fr);
    gap: 40px;
  }
  .page-products .ab-rail {
    display: flex;
    flex-direction: column;
    gap: 2px;
    position: sticky;
    top: 96px;
    align-self: start;
    padding-top: 8px;
  }
  .page-products .ab-rail__link {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 9px 12px;
    font-family: var(--ab-mono);
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    color: var(--ab-fog);
    text-decoration: none;
    border-left: 1px solid var(--ab-line);
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  }
  .page-products .ab-rail__link .ab-num {
    color: var(--ab-amber);
  }
  .page-products .ab-rail__link:hover,
  .page-products .ab-rail__link:focus-visible {
    color: var(--ab-cyan);
    background: var(--p-glow);
    border-left-color: var(--ab-cyan);
  }
  .page-products .chapter__title {
    font-size: clamp(1.9rem, 2.6vw, 2.6rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-products .chan__cell--on .chan__dot {
    animation: none;
  }
  .page-products .matrix__card,
  .page-products .ab-rail__link {
    transition: none;
  }
}
