.page-products {
  --pp-shadow: 0 1px 0 rgba(20, 24, 26, 0.04), 0 18px 40px -26px rgba(20, 24, 26, 0.38);
  --pp-tint: rgba(46, 110, 142, 0.1);
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-sans);
  overflow-x: hidden;
}

.page-products .hero {
  position: relative;
  margin-top: calc(var(--head-h) * -1);
  padding: calc(var(--head-h) + clamp(28px, 6vw, 64px)) 0 clamp(44px, 7vw, 88px);
  background: linear-gradient(180deg, var(--paper) 0%, var(--cream) 72%);
  overflow: hidden;
}

.page-products .hero-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(90deg, var(--pp-tint) 0 1px, transparent 1px 72px),
    repeating-linear-gradient(0deg, var(--pp-tint) 0 1px, transparent 1px 72px);
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.85), transparent 76%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.85), transparent 76%);
}

.page-products .hero-grid {
  position: relative;
  display: grid;
  gap: clamp(30px, 5vw, 58px);
}

.page-products .hero-copy .breadcrumb {
  margin: 0 0 22px;
}

.page-products .hero-copy .eyebrow {
  margin: 0 0 14px;
}

.page-products .display {
  margin: 0;
  font-size: clamp(32px, 7.6vw, 74px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  font-weight: 800;
  color: var(--ink);
}

.page-products .hero-copy .lede {
  margin: clamp(18px, 3vw, 26px) 0 0;
  max-width: 34em;
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.85;
  color: var(--fog);
}

.page-products .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(22px, 3.4vw, 32px);
}

.page-products .hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: clamp(26px, 4vw, 38px) 0 0;
  padding: clamp(18px, 3vw, 24px) 0 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.page-products .stat-num {
  display: block;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(17px, 2.4vw, 24px);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--glacier);
}

.page-products .stat-label {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 0.1em;
  color: var(--fog);
}

.page-products .hero-figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--pp-shadow);
  overflow: hidden;
}

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

.page-products .media-caption {
  padding: 12px 16px;
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: 0.04em;
  color: var(--fog);
  border-top: 1px solid var(--line);
}

.page-products .sec-head {
  max-width: 42em;
}

.page-products .sec-head .h2 {
  margin: 10px 0 0;
  font-size: clamp(24px, 3.6vw, 40px);
  line-height: 1.24;
  letter-spacing: -0.01em;
  font-weight: 800;
}

.page-products .sec-head .prose {
  margin: 14px 0 0;
  font-size: 16px;
  line-height: 1.85;
  color: var(--fog);
}

.page-products .h3 {
  margin: 0;
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: -0.005em;
}

.page-products .env-board {
  position: relative;
  display: grid;
  gap: clamp(22px, 3.6vw, 34px);
  margin-top: clamp(26px, 4vw, 40px);
}

.page-products .env-radio {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

.page-products .env-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  border-bottom: 1px solid var(--line);
}

.page-products .env-tab {
  flex: 1 1 auto;
  min-width: 0;
  padding: 13px 10px;
  margin-bottom: -1px;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--fog);
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
  -webkit-tap-highlight-color: transparent;
}

.page-products .env-tab:hover {
  color: var(--glacier);
}

.page-products .env-radio:focus-visible ~ .env-left .env-tab {
  outline: 2px solid var(--glacier-bright);
  outline-offset: -2px;
}

.page-products #env-phone:checked ~ .env-left .env-tab--phone,
.page-products #env-tablet:checked ~ .env-left .env-tab--tablet,
.page-products #env-wechat:checked ~ .env-left .env-tab--wechat {
  color: var(--glacier);
  border-bottom-color: var(--glacier-bright);
  font-weight: 700;
}

.page-products .env-panels {
  margin-top: clamp(20px, 3vw, 28px);
}

.page-products .env-panel {
  display: none;
}

.page-products #env-phone:checked ~ .env-left .env-panel--phone,
.page-products #env-tablet:checked ~ .env-left .env-panel--tablet,
.page-products #env-wechat:checked ~ .env-left .env-panel--wechat {
  display: block;
  animation: pp-fade var(--t-slow) var(--ease) both;
}

@keyframes pp-fade {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.page-products .env-panel p {
  margin: 12px 0 0;
  max-width: 34em;
  font-size: 15px;
  line-height: 1.85;
  color: var(--fog);
}

.page-products .env-points {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.page-products .env-points li {
  position: relative;
  padding-left: 20px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink);
}

.page-products .env-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 10px;
  height: 1px;
  background: var(--maple);
}

.page-products .env-right {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  padding: clamp(22px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(158deg, var(--glacier-pale), var(--paper) 78%);
}

.page-products .stage {
  display: none;
  width: 100%;
  text-align: center;
}

.page-products #env-phone:checked ~ .env-right .stage--phone,
.page-products #env-tablet:checked ~ .env-right .stage--tablet,
.page-products #env-wechat:checked ~ .env-right .stage--wechat {
  display: block;
  animation: pp-fade var(--t-slow) var(--ease) both;
}

.page-products .stage-caption {
  margin: 18px 0 0;
  font-size: 12px;
  line-height: 1.7;
  letter-spacing: 0.06em;
  color: var(--fog);
}

.page-products .device {
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: var(--paper);
  padding: 12px 10px;
  box-shadow: var(--pp-shadow);
  margin: 0 auto;
}

.page-products .device--phone {
  width: min(190px, 68%);
  aspect-ratio: 9 / 16;
}

.page-products .device--tablet {
  width: 100%;
  max-width: 360px;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  padding: 14px 12px;
}

.page-products .device-screen {
  position: relative;
  height: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: linear-gradient(180deg, rgba(220, 233, 240, 0.4), transparent 60%);
}

.page-products .device-row {
  display: block;
  height: 6px;
  width: 100%;
  border-radius: 1px;
  background: rgba(46, 110, 142, 0.28);
}

.page-products .device-row--title {
  height: 10px;
  width: 62%;
  background: var(--glacier);
}

.page-products .device-row--short {
  width: 48%;
}

.page-products .device-dot {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--maple);
  box-shadow: 0 0 0 4px rgba(200, 16, 46, 0.14);
}

.page-products .device-split {
  height: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.page-products .device-col {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px 9px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  background: rgba(220, 233, 240, 0.35);
}

.page-products .device-bubble {
  display: block;
  height: 14px;
  border-radius: 8px;
  background: rgba(46, 110, 142, 0.18);
}

.page-products .device-bubble--in {
  width: 68%;
}

.page-products .device-bubble--out {
  width: 54%;
  margin-left: auto;
  background: rgba(27, 154, 170, 0.3);
}

.page-products .caps-grid {
  display: grid;
  gap: clamp(28px, 4.4vw, 48px);
}

.page-products .caps-copy .lede {
  margin: 14px 0 0;
  max-width: 32em;
  font-size: 16px;
  line-height: 1.85;
  color: var(--fog);
}

.page-products .caps-list {
  margin: clamp(24px, 3.6vw, 34px) 0 0;
  padding: 0;
  list-style: none;
}

.page-products .cap {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.page-products .cap:last-child {
  border-bottom: 1px solid var(--line);
}

.page-products .cap-top {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.page-products .cap-num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--glacier-bright);
}

.page-products .cap p {
  margin: 8px 0 0 30px;
  max-width: 32em;
  font-size: 14px;
  line-height: 1.85;
  color: var(--fog);
}

.page-products .caps-note {
  margin: clamp(22px, 3vw, 30px) 0 0;
  font-size: 13px;
  line-height: 1.8;
  color: var(--fog);
}

.page-products .caps-note a {
  color: var(--glacier);
  text-decoration: none;
  border-bottom: 1px solid var(--glacier-bright);
}

.page-products .caps-figure {
  margin: 0;
  align-self: start;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  overflow: hidden;
  box-shadow: var(--pp-shadow);
}

.page-products .ver-figure {
  margin: 0 0 clamp(26px, 4vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  overflow: hidden;
}

.page-products .ver-figure .media-caption {
  background: var(--glacier-pale);
}

.page-products .vtable {
  margin-top: clamp(24px, 3.6vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  overflow: hidden;
}

.page-products .vtable-head {
  display: none;
}

.page-products .vtable-row {
  display: grid;
  grid-template-columns: 1fr;
  padding: 16px;
  border-top: 1px solid var(--line);
}

.page-products .vtable-row:first-of-type {
  border-top: 0;
}

.page-products .vtable-key {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--glacier);
  text-transform: none;
}

.page-products .vtable-cell {
  display: block;
  padding: 6px 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--fog);
}

.page-products .vtable-cell::before {
  content: attr(data-label) " · ";
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--fog);
}

.page-products .vtable-cell--now {
  color: var(--ink);
}

.page-products .vtable-cell--now::before {
  color: var(--glacier-bright);
}

.page-products .ver-note {
  margin: clamp(20px, 3vw, 28px) 0 0;
  max-width: 40em;
  font-size: 14px;
  line-height: 1.85;
  color: var(--fog);
}

.page-products .ver-note a {
  color: var(--glacier);
  text-decoration: none;
  border-bottom: 1px solid var(--glacier-bright);
}

.page-products .steps-grid {
  display: grid;
  gap: clamp(26px, 4vw, 44px);
}

.page-products .steps-figure {
  margin: 0;
  order: 2;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  overflow: hidden;
  box-shadow: var(--pp-shadow);
}

.page-products .steps-copy .prose {
  margin: 12px 0 0;
  font-size: 15px;
  line-height: 1.85;
  color: var(--fog);
}

.page-products .steps-list {
  margin: clamp(22px, 3vw, 30px) 0 0;
  padding: 0;
  list-style: none;
}

.page-products .step {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 16px;
  padding-bottom: 26px;
}

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

.page-products .step:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 44px;
  bottom: 0;
  width: 1px;
  background: var(--line);
}

.page-products .step-num {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--glacier);
  background: var(--paper);
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  color: var(--glacier);
}

.page-products .step-body p {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--fog);
}

.page-products .compat {
  position: relative;
  overflow: hidden;
}

.page-products .compat-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.12;
  pointer-events: none;
}

.page-products .compat-inner {
  position: relative;
  z-index: 1;
}

.page-products .compat-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: clamp(20px, 3vw, 28px) 0 0;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-strong);
}

.page-products .legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--fog);
}

.page-products .legend-swatch {
  width: 20px;
  height: 10px;
  border-radius: 1px;
}

.page-products .legend-swatch--full {
  background: var(--glacier-bright);
}

.page-products .legend-swatch--ok {
  background: var(--glacier);
}

.page-products .legend-swatch--limited {
  background: var(--linen);
}

.page-products .compat-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.page-products .compat-name {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink);
}

.page-products .compat-cells {
  display: grid;
  grid-template-columns: repeat(3, clamp(22px, 7vw, 44px));
  gap: 6px;
}

.page-products .cell {
  display: block;
  height: 18px;
  border: 1px solid var(--line);
  border-radius: 1px;
  background: rgba(255, 253, 246, 0.6);
}

.page-products .cell.is-on {
  border-color: transparent;
}

.page-products .cell--full.is-on {
  background: var(--glacier-bright);
}

.page-products .cell--ok.is-on {
  background: var(--glacier);
}

.page-products .cell--limited.is-on {
  background: var(--linen);
}

.page-products .compat-notes {
  display: grid;
  gap: 20px;
  margin-top: clamp(26px, 4vw, 38px);
}

.page-products .compat-note {
  padding: 18px 20px;
  border-left: 3px solid var(--glacier);
  background: var(--glacier-pale);
}

.page-products .compat-note p {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--pine);
}

.page-products .compat-help {
  margin: clamp(22px, 3vw, 30px) 0 0;
  font-size: 14px;
  line-height: 1.85;
  color: var(--fog);
}

.page-products .compat-help a {
  color: var(--glacier);
  text-decoration: none;
  border-bottom: 1px solid var(--glacier-bright);
}

.page-products .cta-panel {
  display: grid;
  gap: clamp(22px, 3.4vw, 34px);
  padding: clamp(26px, 5vw, 56px);
  border-radius: var(--radius);
  background: var(--pine);
  color: var(--cream);
}

.page-products .cta-copy .h2 {
  margin: 10px 0 0;
  font-size: clamp(23px, 3.4vw, 36px);
  line-height: 1.26;
  font-weight: 800;
  color: var(--cream);
}

.page-products .cta-copy p {
  margin: 14px 0 0;
  max-width: 34em;
  font-size: 15px;
  line-height: 1.85;
  color: var(--cream-70);
}

.page-products .label--invert {
  color: var(--glacier-bright);
}

.page-products .cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.page-products .cta-ghost {
  border-color: var(--cream-55);
  color: var(--cream);
}

.page-products .cta-ghost:hover {
  border-color: var(--cream);
  background: rgba(247, 243, 234, 0.08);
}

@media (min-width: 720px) {
  .page-products .vtable-head {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr) minmax(0, 1fr);
    background: var(--glacier-pale);
  }

  .page-products .vtable-head span {
    padding: 13px 18px;
    font-size: 12px;
    letter-spacing: 0.14em;
    color: var(--glacier);
  }

  .page-products .vtable-row {
    grid-template-columns: 150px minmax(0, 1fr) minmax(0, 1fr);
    padding: 0;
    align-items: stretch;
  }

  .page-products .vtable-row > span {
    padding: 18px;
    display: flex;
    align-items: center;
  }

  .page-products .vtable-row > span + span {
    border-left: 1px solid var(--line);
  }

  .page-products .vtable-cell::before {
    content: none;
  }

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

  .page-products .cta-panel {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    align-items: center;
  }

  .page-products .cta-actions {
    justify-content: flex-end;
  }
}

@media (min-width: 940px) {
  .page-products .hero-grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: center;
  }

  .page-products .env-board {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    align-items: start;
  }

  .page-products .env-right {
    position: sticky;
    top: calc(var(--head-h) + 24px);
  }

  .page-products .caps-grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: start;
  }

  .page-products .caps-figure {
    position: sticky;
    top: calc(var(--head-h) + 24px);
  }

  .page-products .steps-grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: start;
  }

  .page-products .steps-figure {
    order: 0;
    position: sticky;
    top: calc(var(--head-h) + 24px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-products .env-panel,
  .page-products .stage {
    animation: none !important;
  }

  .page-products .env-tab {
    transition: none;
  }
}
