.page-products {
  --tile-bg: var(--bg-card);
  --tile-fg: var(--text-dark);
  --tile-chip: rgba(0, 0, 0, .06);
  --year-pct: 0%;
  --products-mint: #1abc9c;
  --products-aubergine: #8e44ad;
  --products-ink-yellow: #3d2f00;
  --products-ink-green: #063b28;
  --products-ink-mint: #00493e;
  --products-border-light: rgba(44, 62, 80, .16);
  --products-coord: rgba(0, 184, 150, .4);
  --products-table-shadow: rgba(44, 62, 80, .18);
  background: var(--bg-card);
  min-width: 0;
}

.page-products__shell {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.page-products__shell--wide {
  max-width: 1240px;
}

.page-products__crumb {
  background: var(--bg-wall);
  border-bottom: 1px solid var(--products-border-light);
  padding: 8px 16px;
}

.page-products__crumb .breadcrumb ol {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0;
}

.page-products__masthead {
  display: grid;
  gap: 24px;
  padding: 28px 0 36px;
}

.page-products__kicker {
  display: inline-block;
  color: var(--accent-teal);
  font-size: 12px;
  letter-spacing: .08em;
  padding: 4px 10px;
  border: 1px solid currentColor;
  border-radius: 4px;
  margin-bottom: 12px;
}

.page-products__masthead h1 {
  font-size: clamp(24px, 4.5vw, 42px);
  line-height: 1.2;
  margin: 0 0 12px;
  color: var(--text-dark);
}

.page-products__lead {
  color: var(--text-dark);
  opacity: .78;
  font-size: 13px;
  line-height: 1.7;
  margin: 0 0 18px;
}

.page-products__masthead-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.page-products__masthead-preview {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 28px var(--products-table-shadow);
  align-self: center;
}

.page-products__masthead-preview img {
  display: block;
  width: 100%;
  height: auto;
  min-height: 180px;
  object-fit: cover;
  background: var(--bg-wall);
}

.page-products__preview-tag {
  position: absolute;
  left: 10px;
  bottom: 10px;
  background: var(--bg-main);
  color: var(--white);
  font-size: 11px;
  letter-spacing: .06em;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--accent-teal);
}

.page-products__section {
  padding: 44px 0;
}

.page-products__section--tiles {
  background: var(--bg-main);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.page-products__section--tiles::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--products-coord) 1px, transparent 1px),
    linear-gradient(90deg, var(--products-coord) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: .14;
}

.page-products__section-head {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 16px;
  margin-bottom: 18px;
}

.page-products__section-index {
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--accent-orange);
  margin: 0;
}

.page-products__section--years .page-products__section-index {
  color: var(--accent-teal);
}

.page-products__section--cloud .page-products__section-index {
  color: var(--tag-purple);
}

.page-products__section--table .page-products__section-index {
  color: var(--status-blue);
}

.page-products__section-title {
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.25;
  font-weight: 800;
  margin: 0;
  color: currentColor;
}

.page-products__section--tiles .page-products__section-title,
.page-products__section--stream .page-products__section-title {
  color: var(--white);
}

.page-products__section--tiles .section-more,
.page-products__section--stream .section-more {
  color: rgba(255, 255, 255, .78);
  border-color: rgba(255, 255, 255, .35);
}

.page-products__mobile-note {
  position: relative;
  z-index: 1;
  font-size: 12px;
  color: var(--white);
  background: rgba(0, 184, 150, .18);
  border: 1px solid rgba(0, 184, 150, .5);
  padding: 8px 12px;
  border-radius: 8px;
  margin: 0 0 16px;
}

.page-products__coord-banner {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .22);
  margin-bottom: 24px;
}

.page-products__tiles {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.page-products__tile {
  position: relative;
  background: var(--tile-bg);
  color: var(--tile-fg);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .28);
  transition: transform .18s ease, box-shadow .18s ease;
}

.page-products__tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 22px rgba(0, 0, 0, .34);
}

.page-products__tile--orange {
  --tile-bg: var(--accent-orange);
  --tile-fg: #ffffff;
  --tile-chip: rgba(255, 255, 255, .26);
}

.page-products__tile--teal {
  --tile-bg: var(--accent-teal);
  --tile-fg: #ffffff;
  --tile-chip: rgba(255, 255, 255, .26);
}

.page-products__tile--blue {
  --tile-bg: var(--status-blue);
  --tile-fg: #ffffff;
  --tile-chip: rgba(255, 255, 255, .26);
}

.page-products__tile--purple {
  --tile-bg: var(--tag-purple);
  --tile-fg: #ffffff;
  --tile-chip: rgba(255, 255, 255, .26);
}

.page-products__tile--yellow {
  --tile-bg: var(--tag-yellow);
  --tile-fg: var(--products-ink-yellow);
  --tile-chip: rgba(0, 0, 0, .1);
}

.page-products__tile--red {
  --tile-bg: var(--status-red);
  --tile-fg: #ffffff;
  --tile-chip: rgba(255, 255, 255, .26);
}

.page-products__tile--green {
  --tile-bg: var(--status-green);
  --tile-fg: var(--products-ink-green);
  --tile-chip: rgba(0, 0, 0, .1);
}

.page-products__tile--mint {
  --tile-bg: var(--products-mint);
  --tile-fg: var(--products-ink-mint);
  --tile-chip: rgba(0, 0, 0, .1);
}

.page-products__tile--dark {
  --tile-bg: #22313f;
  --tile-fg: #eef5f8;
  --tile-chip: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .2);
}

.page-products__tile--aubergine {
  --tile-bg: var(--products-aubergine);
  --tile-fg: #ffffff;
  --tile-chip: rgba(255, 255, 255, .24);
}

.page-products__tile--link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  text-decoration: none;
  padding: 14px;
  min-height: 52px;
}

.page-products__tile-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  list-style: none;
  cursor: pointer;
  padding: 14px;
}

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

.page-products__tile-summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-weight: 700;
  opacity: .8;
  transition: transform .18s ease;
}

.page-products__tile[open] .page-products__tile-summary::after {
  transform: rotate(45deg);
}

.page-products__tile--link .page-products__tile-name,
.page-products__tile-summary .page-products__tile-name {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: .01em;
}

.page-products__tile--link .page-products__tile-count,
.page-products__tile-summary .page-products__tile-count {
  font-size: 17px;
  font-weight: 600;
  white-space: nowrap;
}

.page-products__tile-subs {
  position: absolute;
  left: 8px;
  right: 8px;
  top: calc(100% - 8px);
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 10px;
  background: var(--tile-bg, var(--bg-card));
  border-radius: 10px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, .26);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}

.page-products__tile[open] .page-products__tile-subs {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.page-products__tile-subs li {
  font-size: 12px;
  line-height: 1.4;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--tile-chip);
}

.page-products__section--years {
  background: var(--bg-wall);
  color: var(--text-dark);
}

.page-products__year-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.page-products__year-list {
  display: grid;
  gap: 0;
}

.page-products__year-row {
  display: grid;
  grid-template-columns: 72px minmax(60px, auto) auto;
  grid-template-areas:
    "num count batch"
    "bar bar bar";
  align-items: baseline;
  gap: 4px 12px;
  padding: 10px 0;
  border-top: 1px solid var(--products-border-light);
}

.page-products__year-num {
  grid-area: num;
  font-size: 18px;
  font-weight: 700;
  color: var(--bg-main);
}

.page-products__year-count {
  grid-area: count;
  font-size: 14px;
  color: var(--accent-orange);
  text-align: right;
}

.page-products__year-batch {
  grid-area: batch;
  font-size: 12px;
  color: var(--bg-main);
  opacity: .65;
  text-align: right;
}

.page-products__year-bar {
  grid-area: bar;
  position: relative;
  height: 6px;
  border-radius: 99px;
  background: rgba(44, 62, 80, .12);
  overflow: hidden;
}

.page-products__year-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  width: var(--year-pct);
  background: linear-gradient(90deg, var(--accent-teal), var(--status-blue));
  border-radius: inherit;
}

.page-products__year-chart {
  margin: 0;
  align-self: center;
}

.page-products__year-chart img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 600px;
  margin: 0 auto;
  border-radius: 14px;
  border: 1px solid var(--products-border-light);
  background: var(--bg-card);
}

.page-products__figure-cap {
  margin-top: 8px;
  text-align: center;
  font-size: 11px;
  color: var(--bg-main);
  opacity: .6;
}

.page-products__section--stream {
  background: var(--bg-main);
  color: var(--white);
}

.page-products__batches {
  display: grid;
  gap: 16px;
}

.page-products__batch {
  background: rgba(245, 245, 220, .06);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 14px;
  padding: 4px;
}

.page-products__batch-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  list-style: none;
  cursor: pointer;
  padding: 14px;
}

.page-products__batch-head::-webkit-details-marker {
  display: none;
}

.page-products__batch-head::before {
  content: "▾";
  color: var(--accent-orange);
  font-weight: 700;
  transition: transform .18s ease;
}

.page-products__batch[open] .page-products__batch-head::before {
  transform: rotate(180deg);
}

.page-products__batch-id {
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
}

.page-products__batch-label {
  flex-shrink: 0;
}

.page-products__batch-num {
  margin-left: auto;
  font-size: 12px;
  color: rgba(255, 255, 255, .72);
}

.page-products__stream-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.page-products__batch + .page-products__batch .page-products__stream-grid {
  border-top: 1px solid rgba(255, 255, 255, .1);
}

.page-products__stream-card {
  background: var(--bg-card);
  color: var(--text-dark);
  border-radius: 10px;
  padding: 12px;
  display: grid;
  gap: 6px;
  border-top: 4px solid var(--accent-orange);
  min-width: 0;
}

.page-products__stream-card:nth-child(2n) {
  border-top-color: var(--accent-teal);
}

.page-products__stream-card:nth-child(3n) {
  border-top-color: var(--status-blue);
}

.page-products__stream-title {
  font-size: 15px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.page-products__stream-meta {
  font-size: 11px;
  color: var(--bg-main);
  opacity: .72;
}

.page-products__stream-card .badge {
  justify-self: start;
}

.page-products__section--cloud {
  background: var(--bg-card);
  color: var(--text-dark);
}

.page-products__cloud-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.page-products__cloud-main {
  min-width: 0;
}

.page-products__cloud-art {
  display: block;
  width: 100%;
  height: auto;
  max-width: 500px;
  margin: 0 auto 16px;
  border-radius: 14px;
  border: 1px solid var(--products-border-light);
}

.page-products__cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: center;
}

.page-products__hot {
  align-self: start;
  background: var(--bg-main);
  color: var(--white);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 12px 28px var(--products-table-shadow);
}

.page-products__hot-title {
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 6px;
  color: var(--white);
}

.page-products__hot-note {
  font-size: 11px;
  color: rgba(255, 255, 255, .64);
  margin: 0 0 16px;
}

.page-products__rank {
  margin: 0;
  padding: 0;
}

.page-products__section--table {
  background: var(--bg-wall);
  color: var(--text-dark);
}

.page-products__table-visual {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--products-border-light);
  margin-bottom: 18px;
}

.page-products__table-visual img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  background: var(--bg-card);
}

.page-products__table-visual-tag {
  position: absolute;
  left: 12px;
  bottom: 12px;
  background: var(--bg-main);
  color: var(--white);
  font-size: 11px;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--accent-teal);
}

.page-products__table-scroll {
  max-width: 100%;
  overflow: auto;
  max-height: 560px;
  border: 1px solid var(--products-border-light);
  border-radius: 14px;
  background: var(--bg-card);
}

.page-products__table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.page-products__table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--bg-main);
  color: var(--white);
  font-weight: 700;
  text-align: left;
  padding: 12px 14px;
  border-bottom: 2px solid var(--accent-teal);
  white-space: nowrap;
}

.page-products__table tbody td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--products-border-light);
  font-size: 14px;
  vertical-align: middle;
}

.page-products__table tbody tr:last-child td {
  border-bottom: none;
}

.page-products__table tbody tr:hover {
  background: rgba(255, 128, 64, .12);
}

.page-products__cell-name {
  font-weight: 700;
  color: var(--text-dark);
}

.page-products__table-tail {
  margin: 14px 0 0;
  font-size: 11px;
  color: var(--bg-main);
  opacity: .6;
  text-align: right;
}

@media (prefers-reduced-motion: reduce) {
  .page-products [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

@media (min-width: 640px) {
  .page-products__tiles {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-products__stream-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 860px) {
  .page-products__masthead {
    grid-template-columns: 1.2fr .8fr;
    align-items: center;
  }

  .page-products__year-layout {
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
    align-items: start;
  }

  .page-products__year-chart {
    position: sticky;
    top: 24px;
  }

  .page-products__cloud-layout {
    grid-template-columns: minmax(0, 1.5fr) minmax(300px, .5fr);
    align-items: start;
  }
}

@media (min-width: 1080px) {
  .page-products__section {
    padding: 56px 0;
  }

  .page-products__tiles {
    grid-template-columns: repeat(4, 1fr);
  }

  .page-products__stream-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .page-products__year-row {
    grid-template-columns: 96px minmax(70px, auto) 130px;
    gap: 6px 16px;
    padding: 12px 0;
  }

  .page-products__year-num {
    font-size: 20px;
  }

  .page-products__table tbody td {
    padding: 12px 16px;
  }
}
