.page-products {
  --products-grid: rgba(30, 58, 77, 0.28);
  --products-panel: rgba(15, 38, 56, 0.78);
  --products-panel-strong: rgba(15, 38, 56, 0.96);
  --products-line: rgba(30, 58, 77, 0.9);
  background-color: var(--ink-900);
  background-image:
    linear-gradient(var(--products-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--products-grid) 1px, transparent 1px);
  background-size: 52px 52px;
  background-position: center top;
  color: var(--paper);
}

.page-products img {
  max-width: 100%;
  height: auto;
}

.page-products .section {
  padding-block: clamp(42px, 6.5vw, 82px);
  border-top: 1px solid var(--products-line);
}

.page-products .section-head {
  margin-bottom: clamp(20px, 4vw, 34px);
}

.products-hero {
  padding-block: clamp(18px, 3.5vw, 42px) clamp(42px, 6vw, 78px);
}

.products-hero__grid {
  display: grid;
  gap: clamp(22px, 4vw, 42px);
  min-width: 0;
}

.products-hero__lead {
  min-width: 0;
}

.products-hero h1 {
  margin: 10px 0 0;
  max-width: 12em;
  font-size: var(--fs-display);
  line-height: 0.96;
  letter-spacing: -0.06em;
  text-wrap: balance;
}

.products-hero__intro {
  margin: 20px 0 0;
  max-width: 62ch;
  color: var(--steel);
  font-size: var(--fs-body);
  line-height: 1.78;
}

.products-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 18px;
  margin: 26px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--products-line);
}

.hero-facts__item {
  min-width: 0;
}

.hero-facts dt {
  font-family: var(--font-mono);
  font-size: var(--fs-meta);
  letter-spacing: 0.08em;
  color: var(--steel);
}

.hero-facts dd {
  margin: 4px 0 0;
  color: var(--paper);
  font-size: 1.02rem;
  font-weight: 700;
}

.version-dashboard {
  position: relative;
  min-width: 0;
  padding: clamp(18px, 3vw, 28px);
  background: var(--products-panel-strong);
  border: 1px solid var(--products-line);
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
}

.version-dashboard::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--orange);
}

.version-dashboard__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.version-dashboard__label {
  font-family: var(--font-mono);
  font-size: var(--fs-meta);
  letter-spacing: 0.1em;
  color: var(--steel);
}

.version-dashboard__code {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: clamp(2.8rem, 7vw, 4.6rem);
  line-height: 1;
  letter-spacing: -0.06em;
  color: var(--paper);
}

.version-dashboard__note {
  margin: 12px 0 0;
  color: var(--steel);
  font-size: 0.94rem;
  line-height: 1.7;
}

.version-dashboard__rows {
  margin-top: 18px;
}

.version-dashboard__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 0;
  border-top: 1px solid var(--products-line);
  font-size: 0.92rem;
}

.version-dashboard__row span {
  color: var(--steel);
}

.version-dashboard__row strong {
  color: var(--paper);
  text-align: right;
}

.version-copy {
  font-family: var(--font-mono);
  color: var(--orange) !important;
  cursor: text;
  user-select: all;
}

.version-dashboard__link {
  display: inline-block;
  margin-top: 14px;
}

.hero-frame {
  margin: clamp(24px, 4vw, 42px) 0 0;
  border: 1px solid var(--products-line);
  background: var(--ink-950);
}

.hero-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 1200 / 640;
  object-fit: cover;
}

.hero-frame .frame__caption {
  padding: 10px 14px;
  border-top: 1px solid var(--products-line);
}

.download-table {
  min-width: 760px;
}

.download-table th[scope="row"] {
  color: var(--paper);
  font-weight: 600;
}

.download-table td {
  color: var(--steel);
}

.download-table .chip-link {
  white-space: nowrap;
}

.download-notes {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.download-note {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 16px;
  background: var(--products-panel);
  border: 1px solid var(--products-line);
}

.download-note__num {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--orange);
  color: var(--orange);
  font-family: var(--font-mono);
  font-size: var(--fs-meta);
}

.download-note p {
  margin: 0;
  color: var(--steel);
  line-height: 1.68;
  font-size: 0.95rem;
}

.register-grid {
  display: grid;
  gap: clamp(20px, 4vw, 40px);
  min-width: 0;
}

.register-media,
.register-flow {
  min-width: 0;
}

.register-frame {
  border: 1px solid var(--products-line);
  background: var(--ink-950);
}

.register-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
}

.register-media .meta {
  margin-top: 12px;
}

.step-flow {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.step-flow__item {
  background: var(--products-panel);
  border: 1px solid var(--products-line);
}

.step-flow__item[open] {
  border-left: 3px solid var(--orange);
}

.step-flow__item summary {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
}

.step-flow__item summary::-webkit-details-marker {
  display: none;
}

.step-flow__num {
  font-family: var(--font-mono);
  color: var(--orange);
  font-size: var(--fs-meta);
  letter-spacing: 0.08em;
}

.step-flow__title {
  color: var(--paper);
  font-weight: 600;
}

.step-flow__body {
  padding: 0 16px 16px calc(16px + 3rem + 12px);
  color: var(--steel);
  line-height: 1.72;
  font-size: 0.95rem;
}

.register-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}

.adapt-visual {
  margin-bottom: clamp(20px, 3.5vw, 30px);
}

.adapt-figure {
  margin: 0;
  border: 1px solid var(--products-line);
  background: var(--ink-950);
}

.adapt-figure img {
  display: block;
  width: 100%;
  aspect-ratio: 1200 / 800;
  object-fit: cover;
}

.adapt-figure--inline {
  margin-bottom: 18px;
}

.adapt-figure--inline img {
  aspect-ratio: 1000 / 600;
}

.adapt-tabs {
  margin-top: clamp(18px, 3vw, 28px);
  min-width: 0;
}

.page-products .tabs__list {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 10px;
  scrollbar-width: thin;
}

.page-products .tabs__tab {
  flex: 0 0 auto;
  padding: 10px 14px;
  background: transparent;
  border: 1px solid var(--products-line);
  color: var(--steel);
  font: inherit;
  cursor: pointer;
}

.page-products .tabs__tab[aria-selected="true"] {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--ink-950);
}

.page-products .tabs__tab:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.adapt-tab-count {
  margin-left: 4px;
  font-family: var(--font-mono);
  font-size: 0.7em;
}

.adapt-panel {
  padding-top: 18px;
}

.adapt-table {
  border: 1px solid var(--products-line);
  background: var(--products-panel);
}

.adapt-table__head {
  display: none;
}

.adapt-row {
  display: grid;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--products-line);
}

.adapt-row:last-child {
  border-bottom: 0;
}

.adapt-item {
  display: grid;
  grid-template-columns: 4.7rem minmax(0, 1fr);
  gap: 10px;
  min-width: 0;
}

.adapt-id {
  padding-top: 2px;
  font-family: var(--font-mono);
  font-size: var(--fs-meta);
  letter-spacing: 0.04em;
  color: var(--orange);
}

.adapt-name {
  color: var(--paper);
  font-weight: 600;
}

.adapt-scene {
  margin: 4px 0 0;
  color: var(--steel);
  font-size: 0.92rem;
  line-height: 1.62;
}

.adapt-result {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 8px 12px;
  min-width: 0;
}

.adapt-result .status {
  flex: 0 0 auto;
}

.adapt-advice {
  flex: 1 1 220px;
  margin: 0;
  color: var(--steel);
  font-size: 0.94rem;
  line-height: 1.65;
}

.legend-grid {
  display: grid;
  gap: 14px;
}

.legend-card {
  padding: 20px;
  background: var(--products-panel);
  border: 1px solid var(--products-line);
  border-top: 3px solid var(--steel);
}

.legend-card--ok {
  border-top-color: var(--cyan);
}

.legend-card--warn {
  border-top-color: var(--amber);
}

.legend-card--alert {
  border-top-color: var(--red);
}

.legend-mark {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid currentColor;
  font-family: var(--font-mono);
  font-size: 1rem;
}

.legend-card--ok .legend-mark {
  color: var(--cyan);
}

.legend-card--warn .legend-mark {
  color: var(--amber);
}

.legend-card--alert .legend-mark {
  color: var(--red);
}

.legend-card h3 {
  margin: 12px 0 8px;
  font-size: 1.08rem;
  color: var(--paper);
}

.legend-card p {
  margin: 0;
  color: var(--steel);
  line-height: 1.7;
  font-size: 0.95rem;
}

.legend-foot {
  margin: 18px 0 0;
  color: var(--steel);
  line-height: 1.7;
}

.increment-layout {
  display: grid;
  gap: clamp(22px, 4vw, 42px);
  min-width: 0;
}

.increment-copy,
.increment-stream {
  min-width: 0;
}

.increment-frame {
  border: 1px solid var(--products-line);
  background: var(--ink-950);
}

.increment-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 900 / 600;
  object-fit: cover;
}

.increment-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}

.increment-stream {
  list-style: none;
  margin: 0;
  padding: 0;
}

.increment-item {
  position: relative;
  margin-left: 8px;
  padding: 0 0 22px 30px;
  border-left: 1px solid var(--products-line);
}

.increment-item::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 5px;
  width: 9px;
  height: 9px;
  background: var(--ink-900);
  border: 1px solid var(--steel);
  transform: rotate(45deg);
}

.increment-item--now::before {
  background: var(--orange);
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.15);
}

.increment-item:last-child {
  padding-bottom: 0;
  border-left-color: transparent;
}

.increment-item__top {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.increment-code {
  font-family: var(--font-mono);
  font-size: var(--fs-meta);
  letter-spacing: 0.08em;
  color: var(--orange);
}

.increment-item h3 {
  margin: 6px 0 4px;
  color: var(--paper);
  font-size: 1rem;
}

.increment-item p {
  margin: 0;
  color: var(--steel);
  font-size: 0.94rem;
  line-height: 1.7;
}

.faq-grid {
  display: grid;
  gap: 12px;
}

.faq-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
  background: var(--products-panel);
  border: 1px solid var(--products-line);
  color: inherit;
  text-decoration: none;
  transition: border-color 180ms ease, transform 180ms ease;
}

.faq-card:hover {
  border-color: var(--orange);
  transform: translateY(-2px);
}

.faq-card__q {
  color: var(--paper);
  font-weight: 600;
  line-height: 1.55;
}

.faq-card__a {
  color: var(--steel);
  font-size: 0.92rem;
  line-height: 1.65;
}

.faq-card .chip-link {
  margin-top: auto;
}

.faq-foot {
  margin: 18px 0 0;
  color: var(--steel);
  line-height: 1.7;
}

@media (min-width: 640px) {
  .download-notes {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .legend-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .faq-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 760px) {
  .adapt-table__head {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 18px;
    padding: 10px 18px;
    border-bottom: 1px solid var(--products-line);
    color: var(--steel);
    font-family: var(--font-mono);
    font-size: var(--fs-meta);
  }

  .adapt-row {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 18px;
    align-items: start;
  }
}

@media (min-width: 900px) {
  .products-hero__grid {
    grid-template-columns: minmax(0, 1.45fr) minmax(310px, 0.8fr);
    align-items: start;
  }

  .register-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: start;
  }

  .increment-layout {
    grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
    align-items: start;
  }

  .hero-facts {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .faq-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-products .faq-card {
    transition: none;
  }

  .page-products .faq-card:hover {
    transform: none;
  }
}
