.page-products {
  --gp-gold-soft: rgba(217, 164, 65, 0.2);
  --gp-gold-line: rgba(217, 164, 65, 0.5);
  --gp-red-soft: rgba(176, 58, 46, 0.18);
  --gp-panel-dark: rgba(18, 24, 32, 0.8);
}

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

.page-products h2 {
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  line-height: 1.2;
  margin: 0 0 0.75rem;
}

.page-products .download-hero {
  position: relative;
  padding: 2.25rem 0 3.5rem;
  background:
    radial-gradient(circle at 82% 12%, rgba(217, 164, 65, 0.18), transparent 42%),
    linear-gradient(135deg, var(--navy) 0%, var(--ink) 85%);
  color: var(--ivory);
  overflow: hidden;
}

.page-products .download-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(-45deg, transparent 0 14px, rgba(217, 164, 65, 0.045) 14px 16px);
}

.page-products .download-hero .container {
  position: relative;
  z-index: 1;
}

.page-products .breadcrumbs {
  margin-bottom: 1.5rem;
  color: var(--slate);
  font-size: 0.85rem;
}

.page-products .breadcrumbs a {
  color: var(--gold-light);
  text-decoration: none;
}

.page-products .breadcrumbs a:hover {
  text-decoration: underline;
}

.page-products .breadcrumb-divider {
  margin: 0 0.55rem;
  color: var(--slate);
}

.page-products .section-kicker {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.page-products .hero-content h1 {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(1.9rem, 5vw, 3.1rem);
  line-height: 1.18;
  color: var(--ivory);
  margin: 0.5rem 0 1rem;
}

.page-products .h1-version {
  display: inline-block;
  margin-left: 0.4rem;
  color: var(--gold-light);
  font-size: 0.58em;
  border: 1px solid var(--gold);
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  vertical-align: middle;
  white-space: nowrap;
}

.page-products .lede {
  font-size: 1.02rem;
  line-height: 1.8;
  color: rgba(244, 237, 228, 0.84);
  margin: 0;
}

.page-products .version-section .lede,
.page-products .compat-section .lede {
  color: rgba(18, 24, 32, 0.78);
}

.page-products .download-steps {
  list-style: none;
  margin: 1.5rem 0 2rem;
  padding: 0;
  counter-reset: step;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.page-products .download-steps li {
  position: relative;
  padding: 0.9rem 1.25rem 0.9rem 4rem;
  background: var(--gp-panel-dark);
  border: 1px solid rgba(217, 164, 65, 0.26);
  border-radius: 0.5rem;
  font-size: 0.97rem;
  line-height: 1.65;
}

.page-products .download-steps li::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0.9rem;
  top: 0.9rem;
  width: 2.4rem;
  height: 2.4rem;
  color: var(--ink);
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  border-radius: 0.4rem;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-weight: 700;
}

.page-products .download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-top: 0.5rem;
}

.page-products .btn--download {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--ink);
  border: 1px solid var(--gold-light);
  box-shadow: 0 0 24px rgba(217, 164, 65, 0.28);
}

.page-products .btn--outline {
  border: 1px solid var(--gp-gold-line);
  color: var(--gold-light);
}

.page-products .btn--outline:hover {
  background: rgba(217, 164, 65, 0.12);
}

.page-products .download-details {
  display: inline-block;
  position: relative;
}

.page-products .download-details summary {
  list-style: none;
  cursor: pointer;
}

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

.page-products .download-details summary.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.page-products .download-details-body {
  position: static;
  margin-top: 0.75rem;
  background: var(--ivory);
  color: var(--ink);
  border: 1px solid var(--gold);
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  max-width: 100%;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
}

.page-products .download-details-body p {
  margin: 0 0 0.75rem;
  font-size: 0.92rem;
  line-height: 1.7;
}

.page-products .download-details-body .btn--outline {
  color: var(--red-dark);
  border-color: var(--red);
}

.page-products .download-details-body .btn--outline:hover {
  background: rgba(176, 58, 46, 0.1);
  color: var(--red-dark);
}

.page-products .hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(217, 164, 65, 0.28);
}

.page-products .hero-trust span {
  font-size: 0.82rem;
  color: var(--gold-light);
  letter-spacing: 0.03em;
}

.page-products .hero-phone-wrap {
  position: relative;
  max-width: 360px;
  margin: 2rem auto 0;
}

.page-products .hero-phone-media {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 1.5rem;
  border: 1px solid var(--gold);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
}

.page-products .hero-float-card {
  position: absolute;
  right: -1rem;
  bottom: 1.5rem;
  width: min(240px, 78%);
  background: var(--ink);
  border: 1px solid var(--gold);
  border-radius: 0.9rem;
  padding: 1rem 1.1rem;
  color: var(--ivory);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
}

.page-products .hero-version {
  display: block;
  font-family: var(--display);
  font-size: 2.4rem;
  line-height: 1;
  color: var(--gold-light);
  margin: 0.25rem 0 0.2rem;
}

.page-products .hero-version-desc {
  display: block;
  font-size: 0.86rem;
  color: rgba(244, 237, 228, 0.78);
  margin-bottom: 0.6rem;
}

.page-products .hero-meta-list {
  list-style: none;
  padding: 0.6rem 0 0;
  margin: 0;
  border-top: 1px solid rgba(217, 164, 65, 0.25);
}

.page-products .hero-meta-list li {
  display: flex;
  justify-content: space-between;
  padding: 0.4rem 0;
  font-size: 0.82rem;
  color: var(--slate);
}

.page-products .hero-meta-list strong {
  color: var(--ivory);
  font-family: var(--sans);
}

.page-products .version-section {
  background: var(--ivory);
  color: var(--ink);
  padding: 3.5rem 0;
}

.page-products .version-section .section-kicker {
  color: var(--red);
}

.page-products .version-heading-grid {
  align-items: center;
}

.page-products .version-visual img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 1rem;
  border: 1px solid rgba(165, 103, 63, 0.3);
}

.page-products .version-track {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: 2.5rem;
}

.page-products .version-node {
  background: var(--ink);
  border: 1px solid var(--slate);
  border-radius: 0.75rem;
  padding: 1.5rem;
  color: var(--ivory);
}

.page-products .node-label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.35rem;
}

.page-products .node-version {
  font-family: var(--display);
  font-size: 2.5rem;
  line-height: 1;
  color: var(--gold);
  display: block;
  margin-bottom: 0.5rem;
}

.page-products .version-node p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(244, 237, 228, 0.78);
}

.page-products .node-current {
  border-color: var(--gold);
  background: linear-gradient(145deg, var(--ink), var(--navy));
  box-shadow: 0 0 0 1px var(--gold), 0 16px 36px rgba(217, 164, 65, 0.18);
}

.page-products .node-current .node-version {
  animation: pageProductsVersionGlow 3s ease-in-out infinite alternate;
}

@keyframes pageProductsVersionGlow {
  from {
    text-shadow: 0 0 8px rgba(217, 164, 65, 0.45);
  }
  to {
    text-shadow: 0 0 20px rgba(217, 164, 65, 0.9);
  }
}

.page-products .track-line {
  position: relative;
  width: 1px;
  height: 2.5rem;
  margin-left: 1.9rem;
  background: linear-gradient(var(--gold), transparent);
}

.page-products .track-line::before {
  content: "";
  position: absolute;
  top: -3px;
  left: -3px;
  width: 7px;
  height: 7px;
  background: var(--gold);
  border-radius: 50%;
}

.page-products .migration-section {
  background: linear-gradient(135deg, var(--ink), var(--navy));
  color: var(--ivory);
  padding: 3.5rem 0;
}

.page-products .migration-image-col img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 1rem;
  border: 1px solid rgba(217, 164, 65, 0.35);
}

.page-products .migration-content .lede {
  margin-bottom: 1rem;
}

.page-products .migration-steps {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  counter-reset: mstep;
  display: grid;
  gap: 0.75rem;
}

.page-products .migration-steps li {
  position: relative;
  padding: 0.8rem 1rem 0.8rem 3.4rem;
  background: rgba(18, 24, 32, 0.55);
  border-left: 3px solid var(--gold);
  border-radius: 0.5rem;
  font-size: 0.95rem;
  line-height: 1.65;
}

.page-products .migration-steps li::before {
  counter-increment: mstep;
  content: counter(mstep);
  position: absolute;
  left: 0.9rem;
  top: 0.9rem;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  background: var(--gold);
  color: var(--ink);
  font-weight: 700;
  display: grid;
  place-items: center;
  font-size: 0.9rem;
}

.page-products .member-card {
  background: var(--gp-red-soft);
  border: 1px solid rgba(176, 58, 46, 0.4);
  border-radius: 0.75rem;
  padding: 1.25rem 1.5rem;
}

.page-products .member-card h3 {
  color: var(--gold-light);
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.page-products .member-card ul {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.4rem;
}

.page-products .member-card li {
  font-size: 0.95rem;
  line-height: 1.65;
}

.page-products .compat-section {
  background: var(--ivory);
  color: var(--ink);
  padding: 3.5rem 0;
}

.page-products .compat-section .section-kicker {
  color: var(--red);
}

.page-products .compat-section .btn--outline {
  color: var(--red-dark);
  border-color: var(--red);
  background: rgba(176, 58, 46, 0.04);
}

.page-products .compat-section .btn--outline:hover {
  background: var(--red);
  color: var(--ivory);
}

.page-products .compat-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.5rem 0 0.75rem;
}

.page-products .compat-tab-block {
  display: contents;
}

.page-products .compat-radio {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.page-products .compat-tab-label {
  display: inline-block;
  box-sizing: border-box;
  padding: 0.5rem 1rem;
  border: 1px solid var(--slate);
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.88rem;
  color: var(--ink);
  background: rgba(18, 24, 32, 0.03);
  white-space: nowrap;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.page-products .compat-radio:checked + .compat-tab-label {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--ink);
  border-color: var(--gold);
  font-weight: 700;
}

.page-products .compat-radio:focus-visible + .compat-tab-label {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.page-products .compat-panel {
  display: none;
  width: 100%;
  padding: 1.25rem;
  background: var(--ink);
  color: var(--ivory);
  border-radius: 0.75rem;
  margin: 0.5rem 0 1rem;
  line-height: 1.7;
  font-size: 0.95rem;
}

.page-products .compat-radio:checked ~ .compat-panel {
  display: block;
}

.page-products .compat-panel p {
  margin: 0;
}

.page-products .compat-panel ul {
  margin: 0.75rem 0 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.35rem;
}

.page-products .compat-panel li {
  color: rgba(244, 237, 228, 0.85);
}

.page-products .compat-visual img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 1rem;
  border: 1px solid var(--clay);
}

.page-products .compat-note {
  margin-top: 1rem;
  background: var(--ink);
  color: var(--ivory);
  padding: 1rem 1.25rem;
}

.page-products .compat-note strong {
  display: block;
  font-size: 1.5rem;
  color: var(--gold-light);
  margin: 0.25rem 0 0.2rem;
}

.page-products .compat-note p {
  font-size: 0.9rem;
  line-height: 1.65;
  color: rgba(244, 237, 228, 0.75);
  margin: 0;
}

.page-products .checksum-section {
  background: linear-gradient(160deg, var(--ink), var(--navy) 120%);
  color: var(--ivory);
  padding: 3.5rem 0;
}

.page-products .checksum-visual img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 1rem;
  border: 1px solid rgba(217, 164, 65, 0.3);
}

.page-products .checksum-box {
  background: rgba(18, 24, 32, 0.7);
  border: 1px solid var(--gold);
  border-radius: 0.75rem;
  padding: 1.25rem;
  display: grid;
  gap: 0.35rem;
  margin: 1.5rem 0;
}

.page-products .checksum-box .meta-label {
  color: var(--gold);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.page-products .checksum-box code {
  font-family: var(--mono);
  font-size: 0.92rem;
  background: rgba(244, 237, 228, 0.08);
  padding: 0.55rem 0.75rem;
  border-radius: 0.35rem;
  word-break: break-all;
  display: block;
  color: var(--gold-light);
  border: 1px solid rgba(217, 164, 65, 0.16);
}

.page-products .checksum-value {
  user-select: all;
  cursor: text;
}

.page-products .checksum-size {
  color: var(--ivory);
  font-size: 1.05rem;
}

.page-products .checksum-box .btn--small {
  justify-self: start;
  margin-top: 0.6rem;
}

.page-products .checksum-steps {
  list-style: none;
  counter-reset: cstep;
  padding: 0;
  margin: 1.25rem 0 0;
  display: grid;
  gap: 0.75rem;
}

.page-products .checksum-steps li {
  position: relative;
  padding: 0.8rem 1rem 0.8rem 3.2rem;
  background: rgba(244, 237, 228, 0.05);
  border: 1px solid rgba(244, 237, 228, 0.08);
  border-radius: 0.6rem;
  font-size: 0.95rem;
  line-height: 1.65;
}

.page-products .checksum-steps li::before {
  counter-increment: cstep;
  content: counter(cstep, decimal-leading-zero);
  position: absolute;
  left: 0.9rem;
  top: 0.85rem;
  color: var(--gold);
  font-family: var(--mono);
  font-weight: 700;
}

.page-products .index-note {
  background: var(--ivory);
  color: var(--ink);
}

.page-products .index-note-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  padding: 2rem;
  background: var(--navy);
  color: var(--ivory);
  border: 1px solid rgba(217, 164, 65, 0.4);
}

.page-products .index-note-inner p {
  margin: 0;
}

.page-products .index-note-inner .section-kicker {
  color: var(--gold);
}

.page-products .index-note-inner .btn--primary {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--ink);
  border: 1px solid var(--gold-light);
  box-shadow: 0 0 20px rgba(217, 164, 65, 0.25);
}

@media (min-width: 768px) {
  .page-products .download-steps li:nth-child(2) {
    margin-left: 1.5rem;
  }

  .page-products .download-steps li:nth-child(3) {
    margin-left: 3rem;
  }

  .page-products .download-details {
    position: relative;
  }

  .page-products .download-details-body {
    position: absolute;
    z-index: 6;
    left: 0;
    bottom: calc(100% + 0.75rem);
    width: min(340px, 72vw);
  }

  .page-products .hero-phone-wrap {
    margin-top: 1.25rem;
  }

  .page-products .index-note-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .page-products .index-note-inner > div {
    max-width: 44rem;
  }
}

@media (min-width: 992px) {
  .page-products .version-track {
    grid-template-columns: minmax(0, 1fr) 3.5rem minmax(0, 1fr) 3.5rem minmax(0, 1fr) 3.5rem minmax(0, 1fr);
    align-items: stretch;
  }

  .page-products .track-line {
    width: 3.5rem;
    height: 1px;
    margin-left: 0;
    align-self: center;
    background: linear-gradient(90deg, var(--gold), rgba(217, 164, 65, 0.2));
  }
}
