.page-products {
  background: var(--deep);
  color: var(--text);
  font-family: var(--font-sans);
  overflow-x: hidden;
}

/* ---------- Hero ---------- */

.page-products .prod-hero {
  position: relative;
  padding: clamp(24px, 4.6vw, 52px) 0 clamp(44px, 7vw, 88px);
  overflow: hidden;
  border-bottom: 1px solid var(--line-soft);
}

.page-products .prod-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(201, 162, 74, .11) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(201, 162, 74, .11) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(130% 95% at 8% 0%, #000 28%, transparent 76%);
  mask-image: radial-gradient(130% 95% at 8% 0%, #000 28%, transparent 76%);
}

.page-products .prod-hero > .shell {
  position: relative;
  z-index: 1;
}

.page-products .prod-hero__title {
  margin: 16px 0 0;
  font-size: clamp(2rem, 6.6vw, 4.2rem);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.022em;
  color: var(--paper);
}

.page-products .prod-hero__lede {
  margin: clamp(18px, 2.4vw, 26px) 0 0;
  max-width: 62ch;
  color: var(--text);
}

.page-products .prod-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(22px, 3vw, 32px);
}

.page-products .prod-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(30px, 4.4vw, 52px);
  border: 1px solid var(--line-soft);
  background: var(--line-soft);
}

@media (min-width: 780px) {
  .page-products .prod-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.page-products .prod-stats .stat {
  padding: clamp(14px, 1.8vw, 22px);
  background: linear-gradient(180deg, rgba(20, 51, 43, .78), rgba(11, 31, 26, .94));
}

.page-products .prod-stats .stat-num {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(1.45rem, 3.2vw, 2.15rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--signal);
  letter-spacing: -0.01em;
}

.page-products .prod-stats .stat-label {
  display: block;
  margin-top: 8px;
  font-size: .84rem;
  line-height: 1.55;
  color: var(--text-dim);
}

/* ---------- Band shell ---------- */

.page-products .prod-band {
  position: relative;
  padding: clamp(46px, 7vw, 96px) 0;
  border-bottom: 1px solid var(--line-soft);
}

.page-products .prod-band--last {
  border-bottom: 0;
}

.page-products .prod-band--paper {
  background: var(--paper);
  color: var(--ink);
  --text: rgba(27, 27, 24, .82);
  --text-dim: rgba(27, 27, 24, .58);
  --line: rgba(27, 27, 24, .22);
  --line-soft: rgba(27, 27, 24, .14);
  --gold: #8A6A1E;
  --gold-hi: #A9822C;
  border-bottom-color: rgba(27, 27, 24, .16);
}

.page-products .prod-band__grid {
  display: grid;
  gap: clamp(26px, 4vw, 58px);
  align-items: start;
}

@media (min-width: 980px) {
  .page-products .prod-band__grid--wide-right {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  }
  .page-products .prod-band__grid--wide-left {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  }
}

.page-products .prod-band__head--full {
  max-width: 72ch;
  margin-bottom: clamp(24px, 3.4vw, 40px);
}

.page-products .prod-band__idx {
  display: block;
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .2em;
  color: var(--gold);
}

.page-products .prod-band__title {
  margin: 12px 0 0;
  font-size: clamp(1.5rem, 3.5vw, 2.3rem);
  line-height: 1.24;
  font-weight: 700;
  letter-spacing: -0.012em;
  color: var(--paper);
}

.page-products .prod-band--paper .prod-band__title {
  color: var(--ink);
}

.page-products .prod-band__lead {
  margin: 16px 0 0;
  max-width: 48ch;
  line-height: 1.85;
  color: var(--text);
}

.page-products .prod-band__note {
  margin: 18px 0 0;
  font-size: .9rem;
  line-height: 1.75;
  color: var(--text-dim);
}

.page-products .prod-band__note a {
  color: var(--gold-hi);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-products .prod-band--paper .prod-band__note a {
  color: var(--gold);
}

.page-products .prod-band__more {
  margin: clamp(26px, 3.4vw, 38px) 0 0;
}

.page-products .prod-band__body--tall {
  align-self: stretch;
}

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

.page-products .prod-facts--tight {
  margin-top: 22px;
}

.page-products .prod-facts li {
  position: relative;
  padding-left: 22px;
  font-size: .95rem;
  line-height: 1.75;
  color: var(--text);
}

.page-products .prod-facts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .74em;
  width: 12px;
  height: 1px;
  background: var(--gold);
}

/* ---------- Demo panel ---------- */

.page-products .prod-demo {
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  background: linear-gradient(155deg, rgba(20, 51, 43, .88), rgba(11, 31, 26, .96));
  padding: clamp(16px, 2.2vw, 26px);
}

.page-products .prod-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
}

.page-products .prod-chip {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .06em;
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  color: var(--text-dim);
}

.page-products .prod-chip--on {
  background: var(--gold);
  border-color: var(--gold);
  color: #0B1F1A;
  font-weight: 600;
}

.page-products .prod-demo__svg {
  display: block;
  width: 100%;
  height: auto;
}

.page-products .bracket-line {
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.3;
  stroke-linecap: square;
  opacity: .7;
}

.page-products .bracket-node {
  fill: var(--deep);
  stroke: var(--signal);
  stroke-width: 1.5;
}

.page-products .bracket-node--hot {
  fill: var(--signal);
  stroke: var(--gold-hi);
}

/* ---------- Media ---------- */

.page-products .prod-media {
  margin: 22px 0 0;
  border: 1px solid var(--line);
  background: rgba(20, 51, 43, .35);
  overflow: hidden;
}

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

.page-products .prod-media figcaption {
  padding: 10px 14px;
  font-size: .78rem;
  line-height: 1.6;
  letter-spacing: .02em;
  color: var(--text-dim);
  border-top: 1px solid var(--line-soft);
}

.page-products .prod-media--foot {
  margin-top: clamp(26px, 3.6vw, 40px);
}

/* ---------- Timeline ---------- */

.page-products .prod-tl {
  position: relative;
  padding: clamp(18px, 2.4vw, 28px);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .5);
  overflow: hidden;
}

.page-products .prod-tl__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .12;
  pointer-events: none;
}

.page-products .prod-tl__row,
.page-products .prod-tl__scales {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}

.page-products .prod-tl__row {
  margin-top: 18px;
}

.page-products .prod-tl__row:first-of-type {
  margin-top: 0;
}

@media (min-width: 620px) {
  .page-products .prod-tl__row,
  .page-products .prod-tl__scales {
    grid-template-columns: 108px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
  }
}

.page-products .prod-tl__name {
  margin: 0;
  font-size: .9rem;
  font-weight: 600;
  color: var(--ink);
}

.page-products .prod-tl__track {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  height: 30px;
}

.page-products .prod-tl__band {
  border-radius: 2px;
}

.page-products .prod-tl__band--1 { grid-column: 1; }
.page-products .prod-tl__band--2 { grid-column: 2; }
.page-products .prod-tl__band--3 { grid-column: 3; }

.page-products .prod-tl__row--window .prod-tl__band {
  background: linear-gradient(90deg, rgba(201, 162, 74, .92), rgba(201, 162, 74, .42));
}

.page-products .prod-tl__row--limit .prod-tl__band {
  background: linear-gradient(90deg, rgba(110, 140, 168, .92), rgba(110, 140, 168, .4));
}

.page-products .prod-tl__scales {
  margin-top: 12px;
}

.page-products .prod-tl__scales-track {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.page-products .prod-tl__scales-track span {
  font-family: var(--font-mono);
  font-size: .7rem;
  line-height: 1.5;
  color: var(--text-dim);
}

/* ---------- Data table ---------- */

.page-products .prod-table-wrap {
  border: 1px solid var(--line);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.page-products .prod-table {
  width: 100%;
  min-width: 580px;
  border-collapse: collapse;
  font-size: .92rem;
}

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

.page-products .prod-table thead th {
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--gold);
  background: rgba(20, 51, 43, .78);
  white-space: nowrap;
}

.page-products .prod-table tbody th {
  font-weight: 600;
  color: var(--signal);
  white-space: nowrap;
}

.page-products .prod-table tbody td {
  color: var(--text);
}

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

.page-products .prod-table tbody tr:hover {
  background: rgba(31, 74, 62, .45);
}

.page-products .prod-table .copy-btn {
  white-space: nowrap;
}

/* ---------- Version cards ---------- */

.page-products .prod-vers {
  display: grid;
  gap: 18px;
}

@media (min-width: 800px) {
  .page-products .prod-vers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.page-products .prod-vers__card {
  padding: clamp(18px, 2.2vw, 28px);
  border: 1px solid rgba(27, 27, 24, .18);
  border-left: 3px solid var(--amber);
  background: rgba(255, 255, 255, .58);
}

.page-products .prod-vers__card--now {
  border-left-color: var(--gold);
  background: rgba(255, 255, 255, .82);
}

.page-products .prod-vers__tag {
  margin: 0;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .1em;
  color: var(--text-dim);
}

.page-products .prod-vers__title {
  margin: 10px 0 0;
  font-size: 1.2rem;
  line-height: 1.4;
  font-weight: 700;
  color: var(--ink);
}

.page-products .prod-vers__card p:last-child {
  margin: 12px 0 0;
  font-size: .95rem;
  line-height: 1.8;
  color: var(--text);
}

/* ---------- Export ---------- */

.page-products .prod-code {
  margin: 0;
  padding: clamp(16px, 2vw, 24px);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  background: rgba(11, 31, 26, .8);
  color: var(--signal);
  font-size: .8rem;
  line-height: 1.95;
  white-space: pre;
  overflow-x: auto;
}

.page-products .prod-export__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}

/* ---------- Cadence scale ---------- */

.page-products .prod-scale {
  margin-top: 26px;
}

.page-products .prod-scale__item + .prod-scale__item {
  margin-top: 22px;
}

.page-products .prod-scale__cap {
  display: block;
  margin-bottom: 10px;
  font-size: .74rem;
  letter-spacing: .08em;
  color: var(--text-dim);
}

.page-products .prod-scale__rule {
  height: 12px;
  width: 100%;
}

.page-products .prod-scale__rule--weekly {
  background-image: radial-gradient(circle, var(--gold) 0 3px, transparent 3.5px);
  background-size: 20% 100%;
  background-repeat: repeat-x;
  background-position: 0 50%;
}

.page-products .prod-scale__rule--daily {
  background-image: radial-gradient(circle, #1F4A3E 0 2.2px, transparent 2.6px);
  background-size: 8.3333% 100%;
  background-repeat: repeat-x;
  background-position: 0 50%;
}

/* ---------- Steps ---------- */

.page-products .prod-steps {
  list-style: none;
  display: grid;
  gap: 1px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line-soft);
  background: var(--line-soft);
}

@media (min-width: 620px) {
  .page-products .prod-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1020px) {
  .page-products .prod-steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.page-products .prod-steps li {
  padding: clamp(18px, 2.2vw, 26px);
  background: var(--deep);
}

.page-products .prod-steps__n {
  display: block;
  font-size: .76rem;
  letter-spacing: .2em;
  color: var(--gold);
}

.page-products .prod-steps__title {
  margin: 10px 0 0;
  font-size: 1.04rem;
  font-weight: 700;
  color: var(--paper);
}

.page-products .prod-steps p {
  margin: 10px 0 0;
  font-size: .9rem;
  line-height: 1.75;
  color: var(--text-dim);
}

/* ---------- CTA ---------- */

.page-products .prod-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: clamp(26px, 3.6vw, 40px);
}

/* ---------- Narrow screens ---------- */

@media (max-width: 639px) {
  .page-products .prod-table {
    min-width: 520px;
  }

  .page-products .prod-code {
    font-size: .72rem;
  }

  .page-products .prod-hero__actions .btn,
  .page-products .prod-cta .btn {
    flex: 1 1 auto;
    text-align: center;
  }
}
