.page-products {
  --pr-gap: clamp(16px, 2.4vw, 28px);
  padding-bottom: clamp(48px, 7vw, 96px);
}

.page-products img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ---------- Hero ---------- */
.page-products .pr-hero {
  display: grid;
  gap: var(--pr-gap);
  padding-top: clamp(20px, 3vw, 40px);
}

.page-products .pr-hero__frame {
  position: relative;
  padding: clamp(22px, 3.4vw, 42px);
  border: 1px solid var(--rail);
  border-radius: var(--radius);
  background:
    linear-gradient(158deg, rgba(122, 92, 255, 0.16) 0%, rgba(6, 10, 24, 0.05) 52%, rgba(61, 242, 214, 0.09) 100%),
    var(--panel-2);
  overflow: hidden;
}

.page-products .pr-hero__frame::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 10px;
  background-image: repeating-linear-gradient(90deg, var(--rail) 0 1px, transparent 1px 14px);
  opacity: 0.85;
}

.page-products .pr-hero__frame::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -90px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 181, 71, 0.20), transparent 68%);
  pointer-events: none;
}

.page-products .pr-hero__eyebrow {
  color: var(--cyan);
  letter-spacing: 0.16em;
}

.page-products .pr-hero__title {
  margin: 12px 0 0;
  font-family: var(--font-head);
  font-size: clamp(1.75rem, 4.4vw, 3rem);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.page-products .pr-hero__lede {
  margin: 16px 0 0;
  max-width: 60ch;
  font-size: clamp(0.95rem, 1.6vw, 1.0625rem);
  line-height: 1.75;
  color: var(--muted);
}

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

.page-products .pr-hero__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 18px;
  margin: 28px 0 0;
  padding: 20px 0 0;
  list-style: none;
  border-top: 1px dashed var(--rail);
}

.page-products .pr-hero__stats li {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.page-products .pr-stat {
  font-size: clamp(1.35rem, 3.2vw, 2rem);
  font-weight: 600;
  color: var(--amber);
  line-height: 1.1;
}

.page-products .pr-stat-unit {
  font-size: 0.6em;
  margin-left: 2px;
}

.page-products .pr-stat-label {
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.page-products .pr-hero__media {
  min-height: 200px;
  align-self: stretch;
}

/* ---------- Shell / rail ---------- */
.page-products .pr-shell {
  display: grid;
  gap: var(--pr-gap);
  margin-top: clamp(32px, 5vw, 64px);
}

.page-products .pr-rail {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--rail);
  border-radius: var(--radius);
  background: var(--panel);
}

.page-products .pr-rail__label {
  margin: 0;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: var(--muted);
  text-transform: uppercase;
}

.page-products .pr-rail__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.page-products .pr-rail__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--rail);
  border-radius: 999px;
  font-size: 0.875rem;
  color: var(--ink);
  text-decoration: none;
  transition: border-color 140ms ease, background-color 140ms ease, color 140ms ease;
}

.page-products .pr-rail__link:hover,
.page-products .pr-rail__link:focus-visible {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(61, 242, 214, 0.08);
}

.page-products .pr-rail__num {
  font-size: 0.7rem;
  color: var(--violet);
}

.page-products .pr-rail__note {
  display: flex;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px dashed var(--rail);
}

.page-products .pr-rail__note p {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.65;
  color: var(--muted);
}

.page-products .pr-rail__dot {
  flex: none;
  width: 8px;
  height: 8px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 4px rgba(255, 181, 71, 0.16);
}

.page-products .pr-rail__cta {
  align-self: flex-start;
}

/* ---------- Sections ---------- */
.page-products .pr-main {
  display: flex;
  flex-direction: column;
  gap: clamp(40px, 6vw, 76px);
  min-width: 0;
}

.page-products .pr-sec {
  min-width: 0;
  scroll-margin-top: 96px;
}

.page-products .pr-head {
  border-bottom: 1px dashed var(--rail);
  padding-bottom: 16px;
}

.page-products .pr-head .section-head__title {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 8px 0 0;
  font-size: clamp(1.3rem, 2.8vw, 1.9rem);
  color: var(--ink);
}

.page-products .pr-head .section-head__label {
  color: var(--violet);
  letter-spacing: 0.14em;
  font-size: 0.72rem;
}

.page-products .pr-head .section-head__desc {
  margin: 12px 0 0;
  max-width: 66ch;
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--muted);
}

.page-products .pr-note {
  margin: 16px 0 0;
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--muted);
  padding-left: 14px;
  border-left: 2px solid var(--rail);
}

/* ---------- Schedules ---------- */
.page-products .pr-sched {
  display: grid;
  gap: 20px;
  margin-top: 24px;
}

.page-products .pr-sched__media {
  min-height: 180px;
}

.page-products .pr-sched__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.page-products .pr-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-glass);
}

.page-products .pr-filters__label {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-right: 4px;
}

.page-products .pr-filters .chip {
  cursor: pointer;
  font-size: 0.8125rem;
}

.page-products .pr-scroll {
  overflow-x: auto;
  border: 1px solid var(--rail);
  border-radius: var(--radius);
  background: var(--panel);
  -webkit-overflow-scrolling: touch;
}

.page-products .pr-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 0.875rem;
  color: var(--ink);
}

.page-products .pr-table__caption {
  caption-side: top;
  text-align: left;
  padding: 12px 16px;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.page-products .pr-table thead th {
  padding: 10px 16px;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--muted);
  background: var(--panel-2);
  border-bottom: 1px solid var(--rail);
  white-space: nowrap;
}

.page-products .pr-table tbody th,
.page-products .pr-table tbody td {
  padding: 11px 16px;
  height: 44px;
  border-bottom: 1px solid rgba(34, 51, 92, 0.7);
  text-align: left;
  vertical-align: middle;
}

.page-products .pr-table tbody tr:last-child th,
.page-products .pr-table tbody tr:last-child td {
  border-bottom: 0;
}

.page-products .pr-table tbody th {
  font-weight: 600;
  color: var(--ink);
}

.page-products .pr-table tbody td.mono {
  color: var(--cyan);
  font-size: 0.8125rem;
  white-space: nowrap;
}

.page-products .pr-fmt {
  display: inline-block;
  margin-right: 6px;
  padding: 2px 8px;
  border: 1px solid var(--rail);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}

/* ---------- Versions ---------- */
.page-products .pr-ver {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

.page-products .pr-ver__media {
  min-height: 180px;
}

.page-products .pr-timeline {
  list-style: none;
  margin: 0;
  padding: 0 0 0 18px;
  border-left: 1px solid var(--rail);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.page-products .pr-timeline__item {
  position: relative;
  display: grid;
  gap: 4px;
  padding: 2px 0 2px 16px;
}

.page-products .pr-timeline__dot {
  position: absolute;
  left: -24px;
  top: 8px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--violet);
  box-shadow: 0 0 0 4px rgba(122, 92, 255, 0.16);
}

.page-products .pr-timeline__item:first-child .pr-timeline__dot {
  background: var(--amber);
  box-shadow: 0 0 0 4px rgba(255, 181, 71, 0.18);
}

.page-products .pr-timeline__ver {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--cyan);
}

.page-products .pr-timeline__stage {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.page-products .pr-timeline__text {
  margin: 4px 0 0;
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--ink);
}

.page-products .pr-details {
  border: 1px solid var(--rail);
  border-radius: var(--radius);
  background: var(--panel);
  overflow: hidden;
}

.page-products .pr-details__summary {
  cursor: pointer;
  padding: 14px 18px;
  font-family: var(--font-head);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--panel-2);
  list-style: none;
}

.page-products .pr-details__summary::-webkit-details-marker {
  display: none;
}

.page-products .pr-details__summary::before {
  content: "＋";
  margin-right: 10px;
  font-family: var(--font-mono);
  color: var(--amber);
}

.page-products .pr-details[open] .pr-details__summary::before {
  content: "－";
}

.page-products .pr-details .pr-scroll {
  border: 0;
  border-radius: 0;
  background: transparent;
}

.page-products .pr-table--diff tbody td {
  font-size: 0.8125rem;
  color: var(--muted);
}

.page-products .pr-table--diff tbody td:first-child {
  color: var(--cyan);
  font-size: 0.78rem;
  white-space: nowrap;
}

.page-products .pr-table--diff tbody td:last-child {
  color: var(--ink);
}

/* ---------- V3 ---------- */
.page-products .pr-v3 {
  display: grid;
  gap: 20px;
  margin-top: 24px;
}

.page-products .pr-packs {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
  min-width: 0;
}

.page-products .pr-pack {
  position: relative;
  padding: 20px;
  background: var(--panel);
  border: 1px solid var(--rail);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 160ms ease, transform 160ms ease;
}

.page-products .pr-pack::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, var(--violet), var(--cyan));
  opacity: 0.8;
}

.page-products .pr-pack:hover {
  border-color: var(--violet);
  transform: translateY(-2px);
}

.page-products .pr-pack .card__label {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: var(--violet);
}

.page-products .pr-pack .card__title {
  margin: 8px 0 0;
  font-family: var(--font-head);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--ink);
}

.page-products .pr-pack .card__text {
  margin: 8px 0 0;
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--muted);
}

.page-products .pr-pack .card__meta {
  margin: 14px 0 0;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--amber);
}

.page-products .pr-v3__media {
  min-height: 220px;
}

.page-products .pr-banner {
  margin-top: 22px;
  display: grid;
  gap: 18px;
  padding: clamp(18px, 3vw, 26px);
  border-radius: var(--radius);
  border: 1px solid rgba(122, 92, 255, 0.45);
  background:
    linear-gradient(120deg, rgba(122, 92, 255, 0.18), rgba(61, 242, 214, 0.08) 62%, rgba(255, 181, 71, 0.10));
  box-shadow: var(--shadow-glass);
}

.page-products .pr-banner__label {
  margin: 0;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  color: var(--cyan);
}

.page-products .pr-banner__text {
  margin: 10px 0 0;
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--ink);
}

.page-products .pr-code {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 5px;
  background: rgba(6, 10, 24, 0.6);
  border: 1px solid var(--rail);
  font-size: 0.78rem;
  color: var(--amber);
}

.page-products .pr-banner__chips {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.page-products .pr-banner__hint {
  margin: 10px 0 0;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--muted);
}

/* ---------- iOS ---------- */
.page-products .pr-ios {
  display: grid;
  gap: 20px;
  margin-top: 24px;
}

.page-products .pr-ios__media {
  min-height: 260px;
}

.page-products .pr-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
  min-width: 0;
}

.page-products .pr-list__item {
  padding: 16px 18px;
  border: 1px solid var(--rail);
  border-left: 3px solid var(--cyan);
  border-radius: var(--radius);
  background: var(--panel);
}

.page-products .pr-list__title {
  margin: 0;
  font-family: var(--font-head);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--ink);
}

.page-products .pr-list__item p {
  margin: 8px 0 0;
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--muted);
}

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

.page-products .pr-step {
  position: relative;
  padding: 20px;
  border-radius: var(--radius);
  background: var(--panel-2);
  border: 1px solid var(--rail);
}

.page-products .pr-step__num {
  display: block;
  font-size: clamp(1.5rem, 3.4vw, 2.15rem);
  font-weight: 600;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--violet);
}

.page-products .pr-step__title {
  margin: 10px 0 0;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
}

.page-products .pr-step p {
  margin: 8px 0 0;
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--muted);
}

.page-products .pr-quote {
  margin-top: 22px;
  padding: clamp(20px, 3vw, 30px);
  border-radius: var(--radius);
  border: 1px dashed rgba(255, 181, 71, 0.5);
  background: linear-gradient(135deg, rgba(255, 181, 71, 0.09), rgba(6, 10, 24, 0.2));
}

.page-products .pr-quote__label {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--amber);
}

.page-products .pr-quote__text {
  margin: 10px 0 0;
  font-family: var(--font-display);
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.8;
  color: var(--ink);
}

.page-products .pr-quote__link {
  margin-top: 18px;
}

/* ---------- History ---------- */
.page-products .pr-hist {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--rail);
}

.page-products .pr-hist__item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(34, 51, 92, 0.7);
}

.page-products .pr-hist__year {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--amber);
  padding-top: 2px;
}

.page-products .pr-hist__title {
  margin: 0;
  font-family: var(--font-head);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--ink);
}

.page-products .pr-hist__body p {
  margin: 6px 0 0;
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--muted);
}

.page-products .pr-history__cta {
  margin-top: 22px;
}

/* ---------- Desktop ---------- */
@media (min-width: 720px) {
  .page-products .pr-hero {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    align-items: stretch;
  }

  .page-products .pr-hero__stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

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

  .page-products .pr-sched {
    grid-template-columns: minmax(0, 0.42fr) minmax(0, 0.58fr);
    align-items: start;
  }

  .page-products .pr-ios {
    grid-template-columns: minmax(0, 0.38fr) minmax(0, 0.62fr);
    align-items: start;
  }

  .page-products .pr-banner {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    align-items: center;
  }
}

@media (min-width: 1024px) {
  .page-products .pr-shell {
    grid-template-columns: 232px minmax(0, 1fr);
    gap: clamp(24px, 3vw, 44px);
    align-items: start;
  }

  .page-products .pr-rail {
    position: sticky;
    top: 88px;
  }

  .page-products .pr-rail__nav {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 6px;
  }

  .page-products .pr-rail__link {
    border-radius: 8px;
    border-color: transparent;
    padding: 9px 10px;
  }

  .page-products .pr-rail__link:hover,
  .page-products .pr-rail__link:focus-visible {
    border-color: var(--rail);
  }

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

  .page-products .pr-hist__item {
    grid-template-columns: 88px minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-products .pr-pack,
  .page-products .pr-rail__link {
    transition: none;
  }

  .page-products .pr-pack:hover {
    transform: none;
  }
}
