.page-products {
  --pr-rail-w: 210px;
  background:
    radial-gradient(1100px 620px at 84% -12%, rgba(41, 242, 210, 0.1), transparent 62%),
    radial-gradient(900px 520px at -12% 38%, rgba(123, 97, 255, 0.11), transparent 60%),
    var(--deep-sea);
  color: var(--glass-white);
  padding-bottom: clamp(2rem, 5vw, 4rem);
}

.page-products .breadcrumbs {
  padding-top: clamp(1rem, 2.5vw, 1.75rem);
}

/* ---------- Hero ---------- */
.page-products .pr-hero {
  position: relative;
  padding: clamp(1.5rem, 4vw, 3rem) 0 clamp(2rem, 5vw, 3.75rem);
  border-bottom: 1px solid var(--line-soft);
  overflow: hidden;
}

.page-products .pr-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.5rem, 3vw, 2.75rem);
}

.page-products .pr-rail {
  border-left: 1px solid var(--line);
  padding-left: 1rem;
}

.page-products .pr-rail__title {
  margin: 0 0 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cool-grey);
}

.page-products .pr-rail__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.page-products .pr-rail__list a {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  padding: 0.28rem 0;
  font-size: 0.86rem;
  color: var(--cool-grey);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.page-products .pr-rail__list a:hover,
.page-products .pr-rail__list a:focus-visible {
  color: var(--cyan);
  border-bottom-color: rgba(41, 242, 210, 0.5);
}

.page-products .pr-rail__list .mono {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--amber);
  letter-spacing: 0.08em;
}

.page-products .pr-hero__body h1 {
  margin: 0.4rem 0 1rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.1rem, 5.4vw, 4rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
}

.page-products .pr-hero__body .lede {
  max-width: 64ch;
  color: rgba(234, 246, 255, 0.82);
}

.page-products .pr-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.6rem;
}

.page-products .pr-kpi {
  list-style: none;
  margin: 1.9rem 0 0;
  padding: 1.25rem 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem 1.25rem;
}

.page-products .pr-kpi__value {
  display: block;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(1.25rem, 2.4vw, 1.8rem);
  letter-spacing: 0.01em;
  color: var(--cyan);
}

.page-products .pr-kpi__label {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--cool-grey);
}

.page-products .pr-hero__media,
.page-products .pr-figure {
  position: relative;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(3, 11, 22, 0.6);
}

.page-products .pr-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(180deg, rgba(41, 242, 210, 0.05) 0 1px, transparent 1px 5px);
}

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

.page-products .pr-figure figcaption {
  padding: 0.7rem 0.95rem;
  border-top: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.03em;
  color: var(--cool-grey);
}

/* ---------- Sections ---------- */
.page-products .pr-section {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
  border-top: 1px solid var(--line-soft);
}

.page-products .pr-section--glass {
  background: linear-gradient(180deg, rgba(234, 246, 255, 0.05), rgba(234, 246, 255, 0) 72%);
}

.page-products .pr-head {
  max-width: 66ch;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.page-products .pr-head .section-title {
  margin: 0.35rem 0 0.8rem;
}

.page-products .pr-head .lede {
  color: rgba(234, 246, 255, 0.78);
}

.page-products .pr-note {
  margin-top: 1.5rem;
  max-width: 72ch;
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--cool-grey);
}

/* ---------- Modules ---------- */
.page-products .pr-modules {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.page-products .pr-module {
  display: grid;
  gap: 0.5rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--line-soft);
}

.page-products .pr-module__num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: var(--amber);
}

.page-products .pr-module__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.page-products .pr-module__text {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.75;
  color: rgba(234, 246, 255, 0.74);
}

.page-products .pr-module .tag {
  justify-self: start;
}

/* ---------- Tabs ---------- */
.page-products .tabs {
  border: 0;
  padding: 0;
  margin: 0;
}

.page-products .tabs__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding-bottom: 0.9rem;
  margin-bottom: 1.6rem;
  border-bottom: 1px solid var(--line);
}

.page-products .tab {
  appearance: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--glass);
  color: var(--cool-grey);
  font-family: var(--font-mono);
  font-size: 0.84rem;
  letter-spacing: 0.05em;
  padding: 0.5rem 1.05rem;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.page-products .tab:hover {
  color: var(--glass-white);
  border-color: var(--glass-strong);
}

.page-products .tab[aria-selected="true"] {
  color: var(--cyan);
  background: rgba(41, 242, 210, 0.12);
  border-color: rgba(41, 242, 210, 0.5);
}

.page-products .tab:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}

.page-products .pr-form h3 {
  margin: 0 0 0.7rem;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 700;
}

.page-products .pr-form p {
  margin: 0;
  max-width: 64ch;
  color: rgba(234, 246, 255, 0.76);
}

.page-products .pr-form-list {
  list-style: none;
  margin: 1.1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.page-products .pr-form-list li {
  position: relative;
  padding-left: 1.15rem;
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--cool-grey);
}

.page-products .pr-form-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 8px;
  height: 1px;
  background: var(--amber);
}

/* ---------- Partner entry ---------- */
.page-products .pr-entry {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.page-products .pr-cap {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.15rem;
}

.page-products .pr-cap__item {
  border-left: 2px solid rgba(41, 242, 210, 0.35);
  padding-left: 1.05rem;
}

.page-products .pr-cap__title {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.page-products .pr-cap__text {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.72;
  color: rgba(234, 246, 255, 0.72);
}

/* ---------- API ---------- */
.page-products .pr-api__grid {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: center;
}

.page-products .pr-api__intro .section-title {
  margin: 0.35rem 0 0.8rem;
}

.page-products .pr-api__intro .lede {
  color: rgba(234, 246, 255, 0.78);
}

.page-products .pr-code {
  margin: 2rem 0 0;
  padding: 1.15rem 1.25rem;
  border: 1px solid var(--line);
  border-left: 3px solid var(--cyan);
  border-radius: var(--radius-sm);
  background: rgba(3, 11, 22, 0.82);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.85;
  color: rgba(234, 246, 255, 0.9);
  overflow-x: auto;
  white-space: pre;
  -webkit-overflow-scrolling: touch;
}

.page-products .pr-code code {
  font-family: inherit;
}

/* ---------- White label ---------- */
.page-products .pr-wl__grid {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.page-products .pr-table-caption {
  caption-side: top;
  text-align: left;
  padding: 0 0 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cool-grey);
}

.page-products .data-table th[scope="row"] {
  color: var(--glass-white);
  font-weight: 600;
}

.page-products .data-table td {
  color: rgba(234, 246, 255, 0.74);
}

/* ---------- Flow ---------- */
.page-products .pr-flow {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.page-products .pr-steps {
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-products .pr-step {
  position: relative;
  padding-left: 3.4rem;
  padding-bottom: 1.85rem;
}

.page-products .pr-step::before {
  content: "";
  position: absolute;
  left: 19px;
  top: 42px;
  bottom: 2px;
  width: 1px;
  background: linear-gradient(180deg, rgba(41, 242, 210, 0.5), rgba(41, 242, 210, 0.05));
}

.page-products .pr-step:last-child {
  padding-bottom: 0;
}

.page-products .pr-step:last-child::before {
  display: none;
}

.page-products .pr-step__dot {
  position: absolute;
  left: 0;
  top: 0.1rem;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(41, 242, 210, 0.4);
  background: rgba(41, 242, 210, 0.09);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--cyan);
}

.page-products .pr-step__title {
  margin: 0.3rem 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
}

.page-products .pr-step__text {
  margin: 0;
  max-width: 60ch;
  font-size: 0.93rem;
  line-height: 1.75;
  color: rgba(234, 246, 255, 0.74);
}

.page-products .pr-step details {
  margin-top: 0.75rem;
  padding-top: 0.7rem;
  border-top: 1px dashed var(--line-soft);
}

.page-products .pr-step summary {
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  color: var(--cyan);
}

.page-products .pr-step summary::marker {
  color: var(--amber);
}

.page-products .pr-step details p {
  margin: 0.6rem 0 0;
  font-size: 0.88rem;
  line-height: 1.72;
  color: var(--cool-grey);
}

.page-products .pr-figure--tall {
  max-width: 460px;
}

/* ---------- CTA ---------- */
.page-products .pr-cta {
  padding: clamp(1.5rem, 4vw, 3rem) 0 0;
}

.page-products .pr-cta__inner {
  display: grid;
  gap: 1.5rem;
  padding: clamp(1.6rem, 4vw, 3rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(620px 320px at 90% -10%, rgba(255, 138, 61, 0.17), transparent 66%),
    linear-gradient(180deg, rgba(234, 246, 255, 0.07), rgba(234, 246, 255, 0.02));
}

.page-products .pr-cta__inner .section-title {
  margin: 0 0 0.8rem;
}

.page-products .pr-cta__inner .lede {
  max-width: 58ch;
  color: rgba(234, 246, 255, 0.78);
}

.page-products .pr-cta__links {
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.5rem;
}

.page-products .pr-cta__links a {
  font-size: 0.86rem;
  color: var(--cool-grey);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.15rem;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.page-products .pr-cta__links a:hover,
.page-products .pr-cta__links a:focus-visible {
  color: var(--cyan);
  border-bottom-color: rgba(41, 242, 210, 0.6);
}

.page-products .pr-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-content: start;
}

/* ---------- Responsive ---------- */
@media (min-width: 760px) {
  .page-products .pr-kpi {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .page-products .pr-module {
    grid-template-columns: 68px minmax(150px, 220px) minmax(0, 1fr) auto;
    align-items: baseline;
    gap: 0.5rem 1.5rem;
  }

  .page-products .pr-module .tag {
    justify-self: end;
  }

  .page-products .pr-module__text {
    grid-column: 3;
  }
}

@media (min-width: 920px) {
  .page-products .pr-entry {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: start;
  }

  .page-products .pr-api__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  }

  .page-products .pr-wl__grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    align-items: start;
  }

  .page-products .pr-cta__inner {
    grid-template-columns: minmax(0, 1.4fr) auto;
    align-items: center;
  }
}

@media (min-width: 980px) {
  .page-products .pr-hero__grid {
    grid-template-columns: var(--pr-rail-w) minmax(0, 1fr);
    align-items: start;
  }

  .page-products .pr-rail {
    grid-row: 1 / span 2;
    position: sticky;
    top: calc(var(--header-h) + 1.5rem);
  }

  .page-products .pr-flow {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
    align-items: start;
  }
}

@media (min-width: 1180px) {
  .page-products .pr-module {
    grid-template-columns: 84px minmax(180px, 260px) minmax(0, 1fr) auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-products .pr-rail__list a,
  .page-products .tab,
  .page-products .pr-cta__links a {
    transition: none;
  }
}
