.page-products {
  position: relative;
  padding-bottom: clamp(48px, 8vw, 96px);
  background:
    radial-gradient(70% 36% at 10% -6%, rgba(184, 255, 61, 0.1), transparent 68%),
    radial-gradient(60% 32% at 92% 2%, rgba(242, 178, 75, 0.09), transparent 70%);
}

.page-products .breadcrumb {
  margin-top: clamp(18px, 3vw, 28px);
  margin-bottom: clamp(14px, 2.6vw, 22px);
}

/* ---------- Hero ---------- */
.page-products .pp-hero {
  display: grid;
  grid-template-columns: 1fr;
  align-items: end;
  gap: clamp(20px, 4vw, 44px);
  padding-bottom: clamp(32px, 5vw, 56px);
  border-bottom: 1px solid var(--line);
}

.page-products .pp-hero__lead h1 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(34px, 8vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.015em;
  margin: 10px 0 18px;
  color: var(--paper);
}

.page-products .pp-hero__intro {
  max-width: 46ch;
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.85;
  color: var(--fog);
  margin: 0 0 24px;
}

.page-products .pp-hero__acts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.page-products .pp-hero__meta {
  margin: 18px 0 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--lime-soft);
}

.page-products .pp-hero__spot {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink-2);
}

.page-products .pp-hero__spot img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.05);
}

.page-products .pp-hero__spot figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 38px 16px 14px;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--lime-soft);
  background: linear-gradient(to top, rgba(7, 17, 14, 0.94), rgba(7, 17, 14, 0));
}

/* ---------- Bento overview ---------- */
.page-products .pp-bento {
  padding-top: clamp(38px, 6vw, 72px);
}

.page-products .pp-bento__head h2,
.page-products .pp-ios__copy h2,
.page-products .pp-legacy__head h2,
.page-products .pp-diff__head h2,
.page-products .pp-scale__copy h2,
.page-products .pp-flow__head h2,
.page-products .pp-next__lead h2 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(24px, 3.6vw, 40px);
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--paper);
  margin: 8px 0 12px;
}

.page-products .pp-bento__sub,
.page-products .pp-legacy__head p,
.page-products .pp-diff__head p,
.page-products .pp-next__lead p {
  max-width: 62ch;
  font-size: 15px;
  line-height: 1.85;
  color: var(--fog);
  margin: 0 0 22px;
}

.page-products .pp-bento__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.page-products .pp-cell {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: clamp(18px, 2.6vw, 26px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(165deg, var(--ink-2), rgba(22, 53, 43, 0.42));
  box-shadow: 0 18px 44px -34px rgba(0, 0, 0, 0.9);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.page-products .pp-cell:hover,
.page-products .pp-cell:focus-within {
  border-color: var(--lime);
  transform: translateY(-2px);
}

.page-products .pp-cell h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 20px;
  letter-spacing: 0.01em;
  color: var(--paper);
  margin: 0;
}

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

.page-products .pp-cell .link-lime {
  margin-top: auto;
  font-size: 13px;
}

/* ---------- iOS block ---------- */
.page-products .pp-ios {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(22px, 4vw, 48px);
  align-items: center;
  padding-top: clamp(44px, 7vw, 84px);
}

.page-products .pp-ios__shot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.page-products .pp-phone {
  width: 100%;
  max-width: 300px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(160deg, var(--ink-3), var(--ink-2) 70%);
  box-shadow: 0 30px 70px -40px rgba(0, 0, 0, 0.95), inset 0 0 0 1px rgba(184, 255, 61, 0.06);
}

.page-products .pp-phone img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
}

.page-products .pp-ios__shotcap {
  max-width: 30ch;
  font-size: 12px;
  line-height: 1.7;
  text-align: center;
  color: var(--fog);
  margin: 0;
}

.page-products .pp-ios__copy p {
  font-size: 15px;
  line-height: 1.85;
  color: var(--fog);
  margin: 0 0 18px;
}

.page-products .pp-list {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: grid;
  gap: 12px;
}

.page-products .pp-list li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--fog);
}

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

.page-products .pp-list strong {
  color: var(--paper);
  font-weight: 500;
}

.page-products .pp-scenes {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-left: 2px solid var(--lime);
  border-radius: var(--radius);
  background: rgba(22, 53, 43, 0.34);
}

.page-products .pp-scenes h3 {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--paper);
}

.page-products .pp-scenes__row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.page-products .pp-scenes p {
  margin: 0;
  font-size: 13px;
  line-height: 1.75;
  color: var(--fog);
}

/* ---------- Legacy compare ---------- */
.page-products .pp-legacy {
  padding-top: clamp(44px, 7vw, 84px);
}

.page-products .pp-compare {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: stretch;
}

.page-products .pp-compare__side {
  padding: clamp(18px, 2.6vw, 26px);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--ink-2);
}

.page-products .pp-compare__side--new {
  border-top: 2px solid var(--lime);
}

.page-products .pp-compare__side--old {
  border-top: 2px solid var(--amber);
  background: linear-gradient(170deg, rgba(138, 90, 26, 0.18), var(--ink-2) 62%);
}

.page-products .pp-compare__side h3 {
  margin: 12px 0 16px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 20px;
  color: var(--paper);
}

.page-products .pp-spec {
  margin: 0;
  display: grid;
  gap: 10px;
}

.page-products .pp-spec__row {
  display: grid;
  gap: 2px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.page-products .pp-spec__row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.page-products .pp-spec dt {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--fog);
}

.page-products .pp-spec dd {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--paper);
}

.page-products .pp-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--lime);
  margin-right: 8px;
}

.page-products .pp-compare__side--old .pp-num {
  color: var(--amber);
}

.page-products .pp-axis {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--amber);
  padding: 2px 0;
}

.page-products .pp-axis svg {
  transform: rotate(90deg);
  transition: transform 0.3s var(--ease), color 0.3s var(--ease);
}

.page-products .pp-axis:hover svg {
  color: var(--lime-soft);
}

.page-products .pp-wide {
  margin: clamp(22px, 3.4vw, 34px) 0 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink-2);
}

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

.page-products .pp-wide figcaption {
  padding: 12px 16px;
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--fog);
  border-top: 1px solid var(--line);
}

.page-products .pp-mailcard {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: clamp(18px, 3vw, 26px);
  padding: clamp(18px, 2.8vw, 26px);
  border: 1px solid var(--amber-deep);
  border-radius: var(--radius);
  background: linear-gradient(150deg, rgba(138, 90, 26, 0.22), rgba(16, 22, 26, 0.9) 68%);
}

.page-products .pp-mailcard h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 19px;
  color: var(--amber);
}

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

.page-products .pp-mailcard__acts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

/* ---------- Version diff ---------- */
.page-products .pp-diff {
  padding-top: clamp(44px, 7vw, 84px);
}

.page-products .pp-strip {
  margin: 0 0 clamp(18px, 3vw, 26px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink-2);
}

.page-products .pp-strip img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 7 / 3;
  object-fit: cover;
}

.page-products .pp-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(16, 22, 26, 0.7);
  -webkit-overflow-scrolling: touch;
}

.page-products .pp-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 14px;
}

.page-products .pp-table th,
.page-products .pp-table td {
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.page-products .pp-table thead th {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fog);
  background: rgba(22, 53, 43, 0.4);
  white-space: nowrap;
}

.page-products .pp-table tbody th {
  font-weight: 400;
  color: var(--paper);
  white-space: nowrap;
  width: 26%;
}

.page-products .pp-table tbody td {
  color: var(--fog);
  line-height: 1.75;
}

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

.page-products .pp-table tbody tr:hover th,
.page-products .pp-table tbody tr:hover td {
  background: rgba(184, 255, 61, 0.05);
}

.page-products .pp-table tbody tr:hover th {
  color: var(--lime);
}

/* ---------- Scale ---------- */
.page-products .pp-scale {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(22px, 3.6vw, 40px);
  padding-top: clamp(44px, 7vw, 84px);
}

.page-products .pp-scale__copy p {
  font-size: 15px;
  line-height: 1.85;
  color: var(--fog);
  margin: 0 0 14px;
}

.page-products .pp-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.page-products .pp-metric {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--ink-3), var(--ink-2) 80%);
}

.page-products .pp-metric__v {
  font-family: var(--font-mono);
  font-size: clamp(24px, 3.4vw, 32px);
  line-height: 1;
  color: var(--lime);
  font-weight: 400;
}

.page-products .pp-metric__u {
  font-size: 12px;
  margin-left: 4px;
  color: var(--lime-soft);
  letter-spacing: 0.04em;
}

.page-products .pp-metric__k {
  font-size: 12px;
  line-height: 1.6;
  color: var(--fog);
}

/* ---------- Flow ---------- */
.page-products .pp-flow {
  padding-top: clamp(44px, 7vw, 84px);
}

.page-products .pp-steps {
  list-style: none;
  margin: 0 0 clamp(18px, 3vw, 26px);
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  counter-reset: ppflow;
}

.page-products .pp-step {
  position: relative;
  padding: 20px;
  border: 1px solid var(--line);
  border-left: 2px solid var(--line);
  border-radius: var(--radius);
  background: rgba(16, 22, 26, 0.75);
  transition: border-left-color 0.25s var(--ease), background 0.25s var(--ease), transform 0.25s var(--ease);
}

.page-products .pp-step:hover,
.page-products .pp-step:focus-within {
  border-left-color: var(--lime);
  background: rgba(22, 53, 43, 0.5);
  transform: translateY(-2px);
}

.page-products .pp-step__n {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--lime);
  margin-bottom: 10px;
}

.page-products .pp-step h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 18px;
  color: var(--paper);
}

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

.page-products .pp-flow__shot {
  margin: 0;
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink-2);
}

.page-products .pp-flow__shot img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 340px;
  object-fit: cover;
  object-position: center 60%;
}

.page-products .pp-flow__shot figcaption {
  padding: 0 16px 14px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--fog);
}

/* ---------- Next steps ---------- */
.page-products .pp-next {
  margin-top: clamp(44px, 7vw, 84px);
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(80% 120% at 0% 0%, rgba(184, 255, 61, 0.1), transparent 62%),
    linear-gradient(155deg, var(--ink-3), var(--ink-2) 70%);
}

.page-products .pp-next__links {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.page-products .pp-jump {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(7, 17, 14, 0.6);
  text-decoration: none;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease), transform 0.25s var(--ease);
}

.page-products .pp-jump:hover,
.page-products .pp-jump:focus-visible {
  border-color: var(--lime);
  background: rgba(184, 255, 61, 0.07);
  transform: translateY(-2px);
}

.page-products .pp-jump__k {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--lime);
}

.page-products .pp-jump__v {
  font-size: 14px;
  line-height: 1.6;
  color: var(--paper);
}

.page-products .pp-next__note {
  margin: 0;
  font-size: 12px;
  line-height: 1.8;
  color: var(--fog);
}

/* ---------- Responsive ---------- */
@media (min-width: 620px) {
  .page-products .pp-bento__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-products .pp-cell--ios {
    grid-column: span 2;
  }

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

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

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

@media (min-width: 860px) {
  .page-products .pp-bento__grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-template-areas:
      "ios ios ios legacy legacy legacy"
      "ios ios ios live hurt hurt";
    gap: 14px;
  }

  .page-products .pp-cell--ios {
    grid-area: ios;
    grid-column: auto;
  }

  .page-products .pp-cell--legacy {
    grid-area: legacy;
  }

  .page-products .pp-cell--live {
    grid-area: live;
  }

  .page-products .pp-cell--hurt {
    grid-area: hurt;
  }

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

  .page-products .pp-scale {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
  }
}

@media (min-width: 900px) {
  .page-products .pp-hero {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: clamp(28px, 4vw, 64px);
  }

  .page-products .pp-ios {
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  }

  .page-products .pp-compare {
    grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1fr);
    gap: 0;
    align-items: stretch;
  }

  .page-products .pp-axis {
    padding: 0;
  }

  .page-products .pp-axis svg {
    transform: none;
  }

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

  .page-products .pp-flow__shot img {
    max-height: none;
    height: 100%;
  }

  .page-products .pp-flow__shot figcaption {
    padding: 20px 22px;
    font-size: 13px;
  }
}

@media (min-width: 1100px) {
  .page-products .pp-ios {
    gap: clamp(40px, 5vw, 72px);
  }

  .page-products .pp-hero__intro {
    font-size: 17px;
  }
}
