.page-products {
  --pr-cut: 14px;
  --pr-cut-lg: 20px;
  background: var(--tb-paper);
  color: var(--tb-black);
  font-family: var(--tb-font-body);
  overflow-x: hidden;
}

.page-products [id] {
  scroll-margin-top: 88px;
}

.page-products .tb-crumb {
  padding: 16px 0 0;
}

.page-products .tb-crumb ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--tb-muted);
}

.page-products .tb-crumb li {
  display: flex;
  align-items: center;
  gap: 6px;
}

.page-products .tb-crumb li + li::before {
  content: "/";
  color: var(--tb-sand);
}

.page-products .tb-crumb a {
  color: inherit;
  text-decoration: none;
}

.page-products .tb-crumb a:hover,
.page-products .tb-crumb a:focus-visible {
  color: var(--tb-red);
}

.page-products .tb-crumb [aria-current="page"] {
  color: var(--tb-black);
  font-weight: 700;
}

/* ---------- hero ---------- */
.pr-hero {
  position: relative;
  padding: 26px 0 8px;
}

.pr-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background-image: var(--tb-checker-red);
  background-size: 12px 12px;
  opacity: 0.9;
}

.pr-hero__kicker {
  margin: 12px 0 0;
  color: var(--tb-red);
}

.pr-hero__title {
  margin: 10px 0 14px;
  font-family: var(--tb-font-display);
  font-weight: 900;
  font-size: clamp(32px, 8.4vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.015em;
}

.pr-hero__title em {
  display: inline-block;
  font-style: normal;
  color: var(--tb-red);
}

.pr-hero__lead {
  max-width: 36em;
  margin: 0;
  color: var(--tb-black);
}

.pr-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.pr-hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0 0;
  padding: 16px 0 0;
  border-top: 2px solid var(--tb-ink);
}

.pr-stat {
  margin: 0;
  min-width: 0;
}

.pr-stat__label {
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--tb-muted);
}

.pr-stat__num {
  margin: 6px 0 0;
  font-family: var(--tb-font-mono);
  font-weight: 700;
  font-size: clamp(22px, 6vw, 34px);
  line-height: 1;
  color: var(--tb-ink);
}

/* ---------- section head ---------- */
.page-products .tb-section {
  padding: 44px 0 6px;
}

.pr-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 0 0 18px;
}

.pr-head__num {
  flex: 0 0 auto;
  padding: 4px 8px;
  font-family: var(--tb-font-mono);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.08em;
  color: var(--tb-red);
  border: 1px solid var(--tb-red);
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%);
}

.pr-head__body {
  min-width: 0;
}

.pr-head__title {
  margin: 0;
  font-family: var(--tb-font-display);
  font-size: clamp(22px, 5.6vw, 34px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.pr-head__sub {
  margin: 6px 0 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--tb-muted);
}

/* ---------- bento overview ---------- */
.pr-bento {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--tb-gap);
}

.pr-tool {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 148px;
  padding: 18px 18px 20px;
  background: var(--tb-white);
  border: 1px solid var(--tb-sand);
  color: var(--tb-black);
  text-decoration: none;
  overflow: hidden;
  clip-path: polygon(0 0, calc(100% - var(--pr-cut)) 0, 100% var(--pr-cut), 100% 100%, 0 100%);
  transition: clip-path 0.22s var(--tb-ease), transform 0.22s var(--tb-ease);
}

.pr-tool:hover,
.pr-tool:focus-visible {
  clip-path: polygon(0 0, calc(100% - var(--pr-cut-lg)) 0, 100% var(--pr-cut-lg), 100% 100%, 0 100%);
  transform: translateY(-3px);
}

.pr-tool__kicker {
  display: block;
  color: var(--tb-red);
}

.pr-tool__title {
  display: block;
  font-family: var(--tb-font-display);
  font-size: 24px;
  font-weight: 800;
  line-height: 1.1;
}

.pr-tool__desc {
  display: block;
  font-size: 14px;
  line-height: 1.65;
  color: var(--tb-muted);
}

.pr-tool__meta {
  display: block;
  margin-top: auto;
  font-family: var(--tb-font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--tb-ink-2);
}

.pr-tool--ink {
  background: var(--tb-ink);
  border-color: var(--tb-ink);
  color: var(--tb-paper);
}

.pr-tool--ink .pr-tool__kicker {
  color: var(--tb-yellow);
}

.pr-tool--ink .pr-tool__desc {
  color: rgba(247, 244, 239, 0.78);
}

.pr-tool--ink .pr-tool__meta {
  color: var(--tb-yellow);
}

.pr-tool--ink::after {
  content: "";
  position: absolute;
  top: var(--pr-cut-lg);
  right: 0;
  width: 68px;
  height: 68px;
  background-image: var(--tb-checker-red);
  background-size: 17px 17px;
  opacity: 0.22;
  pointer-events: none;
}

/* ---------- banner ---------- */
.pr-banner {
  position: relative;
  margin: 0 0 20px;
}

.pr-banner img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  clip-path: polygon(0 0, calc(100% - var(--pr-cut-lg)) 0, 100% var(--pr-cut-lg), 100% 100%, 0 100%);
}

.pr-banner__cap {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--tb-muted);
}

/* ---------- segmented tabs spacing ---------- */
.page-products .tb-seg {
  margin-bottom: 18px;
}

.page-products .tb-seg__panel {
  padding-top: 14px;
}

.page-products .tb-seg__panel p {
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
}

/* ---------- table ---------- */
.pr-tablewrap {
  margin-top: 18px;
  overflow-x: auto;
  background: var(--tb-white);
  border: 1px solid var(--tb-sand);
  clip-path: polygon(0 0, calc(100% - var(--pr-cut)) 0, 100% var(--pr-cut), 100% 100%, 0 100%);
}

.pr-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 14px;
}

.pr-table__cap {
  padding: 12px 14px;
  text-align: left;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--tb-muted);
  border-bottom: 1px solid var(--tb-sand);
}

.pr-table th,
.pr-table td {
  padding: 10px 14px;
  text-align: left;
}

.pr-table tbody th {
  font-weight: 600;
}

.pr-table .is-current {
  background: rgba(200, 16, 46, 0.06);
  box-shadow: inset 4px 0 0 var(--tb-red);
}

.pr-note {
  margin: 14px 0 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--tb-muted);
}

/* ---------- split panel ---------- */
.pr-split {
  position: relative;
  overflow: hidden;
  margin-top: 4px;
  background: var(--tb-ink);
  color: var(--tb-paper);
  clip-path: polygon(0 0, calc(100% - var(--pr-cut-lg)) 0, 100% var(--pr-cut-lg), 100% 100%, 0 100%);
}

.pr-split__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
}

.pr-split__inner {
  position: relative;
  padding: 18px 14px 20px;
}

.pr-bars__head {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(247, 244, 239, 0.2);
  font-size: 12px;
  letter-spacing: 0.14em;
}

.pr-bars__tag {
  color: var(--tb-red);
  font-weight: 700;
}

.pr-bars__tag--r {
  text-align: right;
  color: var(--tb-paper);
  opacity: 0.8;
}

.pr-bars__mid {
  color: rgba(247, 244, 239, 0.6);
}

.pr-bars {
  position: relative;
  margin: 0;
  padding: 12px 0 0;
  list-style: none;
}

.pr-bars::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(247, 244, 239, 0.3);
}

.pr-bar {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 82px minmax(0, 1fr) 38px;
  align-items: center;
  gap: 5px;
  padding: 5px 0;
}

.pr-bar__v {
  font-family: var(--tb-font-mono);
  font-size: 12px;
  text-align: center;
  color: rgba(247, 244, 239, 0.92);
}

.pr-bar__track {
  display: flex;
  height: 8px;
  background: rgba(247, 244, 239, 0.1);
}

.pr-bar__track--l {
  justify-content: flex-end;
}

.pr-bar__track--r {
  justify-content: flex-start;
}

.pr-bar__fill {
  display: block;
  height: 100%;
  width: var(--w, 0%);
}

.pr-bar__track--l .pr-bar__fill {
  background: var(--tb-red);
}

.pr-bar__track--r .pr-bar__fill {
  background: rgba(247, 244, 239, 0.82);
}

.pr-bar__name {
  position: relative;
  z-index: 1;
  justify-self: center;
  padding: 2px 5px;
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
  white-space: nowrap;
  color: var(--tb-paper);
  background: var(--tb-ink);
}

.pr-tips {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.pr-tips li {
  position: relative;
  padding: 12px 14px 12px 32px;
  background: var(--tb-white);
  border: 1px solid var(--tb-sand);
  font-size: 14px;
  line-height: 1.65;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
}

.pr-tips li::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 19px;
  width: 8px;
  height: 8px;
  background: var(--tb-red);
  transform: rotate(45deg);
}

/* ---------- timeline ---------- */
.pr-axis {
  position: relative;
  overflow: hidden;
  padding: 20px 16px;
  background: var(--tb-ink);
  color: var(--tb-paper);
  clip-path: polygon(0 0, calc(100% - var(--pr-cut-lg)) 0, 100% var(--pr-cut-lg), 100% 100%, 0 100%);
}

.pr-axis__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.16;
  pointer-events: none;
}

.pr-axis__track {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pr-axis__node {
  flex: 1 1 140px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 12px 14px;
  color: inherit;
  text-decoration: none;
  background: rgba(247, 244, 239, 0.08);
  border-left: 2px solid var(--tb-red);
  transition: background-color 0.2s var(--tb-ease);
}

.pr-axis__node:hover,
.pr-axis__node:focus-visible {
  background: rgba(247, 244, 239, 0.2);
}

.pr-axis__node.is-current {
  background: var(--tb-red);
  border-left-color: var(--tb-yellow);
}

.pr-axis__yr {
  font-family: var(--tb-font-display);
  font-size: 19px;
  font-weight: 800;
  line-height: 1.2;
}

.pr-axis__rng {
  font-family: var(--tb-font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  opacity: 0.8;
}

.pr-axis__note {
  margin: 14px 0 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--tb-muted);
}

/* ---------- squad archive ---------- */
.pr-squad {
  display: grid;
  gap: 16px;
}

.pr-squad__fig {
  margin: 0;
}

.pr-squad__fig img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  clip-path: polygon(0 0, calc(100% - var(--pr-cut-lg)) 0, 100% var(--pr-cut-lg), 100% 100%, 0 100%);
}

.pr-squad__body {
  min-width: 0;
}

.pr-squad__body .tb-prose {
  margin: 0;
}

.pr-fields {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
}

.pr-field {
  display: grid;
  gap: 3px;
  padding-left: 12px;
  border-left: 2px solid var(--tb-sand);
}

.pr-field dt {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--tb-red);
}

.pr-field dd {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
}

/* ---------- skill path ---------- */
.pr-path {
  position: relative;
  margin-top: 6px;
}

.pr-path__lines {
  display: none;
}

.pr-path__list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pr-path__node {
  display: grid;
  gap: 3px;
  padding: 14px 16px;
  text-decoration: none;
  color: var(--tb-black);
  background: var(--tb-white);
  border: 1px solid var(--tb-sand);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
  transition: border-color 0.2s var(--tb-ease), transform 0.2s var(--tb-ease);
}

.pr-path__node:hover,
.pr-path__node:focus-visible {
  border-color: var(--tb-red);
  transform: translateX(3px);
}

.pr-path__step {
  font-family: var(--tb-font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--tb-red);
}

.pr-path__name {
  font-family: var(--tb-font-display);
  font-size: 19px;
  font-weight: 800;
  line-height: 1.2;
}

.pr-path__hint {
  font-size: 13px;
  line-height: 1.6;
  color: var(--tb-muted);
}

/* ---------- android ---------- */
.pr-app {
  display: grid;
  gap: 18px;
}

.pr-app__body {
  min-width: 0;
}

.pr-app__body .tb-prose {
  margin: 0;
}

.pr-app__fig {
  order: -1;
  margin: 0;
}

.pr-app__fig img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
}

.pr-specs {
  margin: 16px 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--tb-sand);
}

.pr-specs li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--tb-sand);
  font-size: 14px;
}

.pr-specs .tb-label {
  color: var(--tb-muted);
}

.pr-specs .tb-num {
  font-weight: 700;
  color: var(--tb-ink);
}

.pr-app__split {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--tb-muted);
}

.pr-app__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

/* ---------- outro ---------- */
.pr-outro {
  padding: 44px 0 56px;
}

.pr-outro__box {
  display: grid;
  gap: 16px;
  padding: 24px 18px;
  background: var(--tb-ink);
  color: var(--tb-paper);
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%);
}

.pr-outro__title {
  margin: 0;
  font-family: var(--tb-font-display);
  font-size: clamp(20px, 5vw, 28px);
  font-weight: 800;
  line-height: 1.25;
}

.pr-outro__text {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.75;
  color: rgba(247, 244, 239, 0.8);
}

.pr-outro__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- desktop ---------- */
@media (min-width: 760px) {
  .pr-hero {
    padding-top: 34px;
  }

  .pr-hero__title {
    margin-left: -8px;
  }

  .pr-bento {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(150px, auto));
  }

  .pr-tool--a {
    grid-column: span 5;
    grid-row: span 2;
    min-height: 320px;
  }

  .pr-tool--b {
    grid-column: span 7;
  }

  .pr-tool--c {
    grid-column: span 4;
  }

  .pr-tool--d {
    grid-column: span 3;
  }

  .pr-outro__box {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    padding: 30px 28px;
  }

  .pr-axis {
    padding: 26px 24px;
  }

  .pr-split__inner {
    padding: 22px 26px 26px;
  }
}

@media (min-width: 860px) {
  .pr-squad {
    grid-template-columns: 320px minmax(0, 1fr);
    align-items: start;
    gap: 28px;
  }

  .pr-app {
    grid-template-columns: minmax(0, 1fr) 300px;
    align-items: center;
    gap: 32px;
  }

  .pr-app__fig {
    order: 0;
  }

  .pr-path {
    padding: 12px 0 44px;
  }

  .pr-path__lines {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    color: var(--tb-red);
    opacity: 0.55;
  }

  .pr-path__list {
    position: relative;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    align-items: start;
  }

  .pr-path__list li:nth-child(1) {
    transform: translateY(0);
  }

  .pr-path__list li:nth-child(2) {
    transform: translateY(26px);
  }

  .pr-path__list li:nth-child(3) {
    transform: translateY(52px);
  }

  .pr-path__list li:nth-child(4) {
    transform: translateY(78px);
  }

  .pr-path__list li:nth-child(5) {
    transform: translateY(104px);
  }

  .pr-path__node {
    padding: 16px 14px;
  }
}

@media (min-width: 1024px) {
  .pr-hero__title {
    margin-left: -14px;
  }

  .pr-bars__mid {
    font-size: 12px;
  }

  .pr-bar {
    grid-template-columns: 44px minmax(0, 1fr) 104px minmax(0, 1fr) 44px;
  }

  .pr-bar__name {
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-products *,
  .page-products *::before,
  .page-products *::after {
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
  }
}

.page-products {
  --w: 1rem;
}
