.page-products {
  --product-card-radius: 24px;
  --product-line: #D1D5DB;
  background: var(--color-white);
  color: var(--color-text);
}

.page-products .product-hero {
  background: var(--color-ink);
  color: var(--color-white);
  padding: clamp(36px, 6vw, 80px) 0;
  position: relative;
  overflow: hidden;
}

.page-products .product-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.page-products .product-hero::after {
  content: "";
  position: absolute;
  right: -140px;
  top: -120px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 106, 0, 0.30), transparent 68%);
  pointer-events: none;
}

.page-products .product-hero__inner {
  position: relative;
  z-index: 1;
}

.page-products .product-hero__grid {
  display: grid;
  gap: 32px;
  margin-top: clamp(32px, 6vw, 56px);
}

.page-products .product-hero__title {
  font-family: var(--font-sans);
  font-weight: 900;
  font-size: clamp(30px, 5.4vw, 52px);
  line-height: 1.16;
  max-width: 800px;
  margin: 0 0 16px;
  color: var(--color-white);
}

.page-products .product-hero__lede {
  font-family: var(--font-serif);
  font-size: clamp(15px, 1.8vw, 18px);
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.84);
  max-width: 660px;
  margin: 0;
}

.page-products .product-hero-panel {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  border-top: 3px solid var(--color-orange);
  padding: 22px;
}

.page-products .product-hero-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.page-products .product-hero-panel__code {
  font-family: var(--font-mono);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.62);
}

.page-products .product-hero-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-products .product-hero-list__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.page-products .product-hero-list__item:last-of-type {
  border-bottom: 0;
}

.page-products .product-hero-list__item dt {
  font-family: var(--font-serif);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.72);
}

.page-products .product-hero-list__item dd {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 500;
  color: var(--color-white);
  margin: 0;
}

.page-products .product-hero-list__highlight {
  color: var(--color-orange) !important;
}

.page-products .product-hero-panel__note {
  font-family: var(--font-serif);
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.58);
  margin: 12px 0 0;
}

.page-products .product-section {
  padding: var(--space-section) 0;
}

.page-products .product-section__head {
  max-width: 720px;
}

.page-products .section-lead {
  font-family: var(--font-serif);
  font-size: 15px;
  line-height: 1.8;
  color: var(--color-muted);
  margin: 12px 0 0;
}

.page-products .product-bento {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: clamp(32px, 5vw, 48px);
}

.page-products .product-card {
  background: var(--color-white);
  border: 1px solid var(--product-line);
  border-radius: var(--product-card-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 0;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  position: relative;
}

.page-products .product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-2);
}

.page-products .product-card--dark {
  background: var(--color-ink);
  color: var(--color-white);
  border-color: var(--color-ink);
}

.page-products .product-card--blue {
  background: var(--color-blue);
  color: var(--color-white);
  border-color: var(--color-blue);
}

.page-products .product-card__media {
  background: var(--color-gray-light);
  position: relative;
  overflow: hidden;
  line-height: 0;
}

.page-products .product-card__media-tag {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--color-white);
  background: rgba(10, 61, 98, 0.9);
  padding: 6px 10px;
  border-radius: 999px;
  line-height: 1.2;
}

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

.page-products .product-card__body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
  line-height: normal;
}

.page-products .product-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.page-products .product-card__index {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--color-muted);
}

.page-products .product-card--dark .product-card__index,
.page-products .product-card--blue .product-card__index {
  color: rgba(255, 255, 255, 0.60);
}

.page-products .product-card__title {
  font-family: var(--font-sans);
  font-weight: 900;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.3;
  margin: 0;
  color: inherit;
}

.page-products .product-card__desc {
  font-family: var(--font-serif);
  font-size: 14px;
  line-height: 1.75;
  color: var(--color-text);
  margin: 0;
}

.page-products .product-card--dark .product-card__desc,
.page-products .product-card--blue .product-card__desc {
  color: rgba(255, 255, 255, 0.86);
}

.page-products .product-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-products .product-card__tags li {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.4;
  color: var(--color-blue);
  background: var(--color-gray-light);
  border-radius: 999px;
  padding: 6px 10px;
}

.page-products .product-card--dark .product-card__tags li,
.page-products .product-card--blue .product-card__tags li {
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.12);
}

.page-products .product-card__link {
  align-self: flex-start;
  margin-top: auto;
}

.page-products .product-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: auto;
}

.page-products .mini-steps {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 12px 14px;
}

.page-products .mini-steps__item {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-white);
}

.page-products .mini-steps__arrow {
  color: var(--color-orange);
  font-family: var(--font-mono);
  font-size: 16px;
  line-height: 1;
}

.page-products .goals-chart {
  background: var(--color-gray-light);
  border-radius: var(--radius-md);
  padding: 12px 12px 8px;
  margin-top: 2px;
}

.page-products .goals-chart__svg {
  width: 100%;
  height: auto;
  display: block;
}

.page-products .goals-chart__legend {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 8px;
  border-top: 1px solid var(--color-gray-line);
  margin-top: 8px;
}

.page-products .goals-chart__legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-serif);
  font-size: 12px;
  color: var(--color-muted);
}

.page-products .goals-chart__legend-item--mono {
  font-family: var(--font-mono);
  margin-left: auto;
  color: var(--color-blue);
}

.page-products .goals-chart__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: none;
}

.page-products .goals-chart__dot--blue {
  background: var(--color-blue);
}

.page-products .goals-chart__dot--orange {
  background: var(--color-orange);
}

.page-products .h2h-tabs {
  display: flex;
  gap: 8px;
  margin-top: 2px;
}

.page-products .h2h-tabs .tab {
  flex: 1;
  justify-content: center;
  background: var(--color-gray-light);
  color: var(--color-text);
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 9px 12px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.page-products .h2h-tabs .tab[aria-selected="true"] {
  background: var(--color-blue);
  color: var(--color-white);
}

.page-products .h2h-tabs .tab__index {
  font-family: var(--font-mono);
  font-size: 11px;
  margin-right: 6px;
  opacity: 0.8;
}

.page-products .h2h-panel {
  background: var(--color-gray-light);
  border-radius: var(--radius-md);
  padding: 14px;
}

.page-products .h2h-data {
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-products .h2h-data__item {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 0;
  border-bottom: 1px solid var(--color-gray-line);
}

.page-products .h2h-data__item:last-child {
  border-bottom: 0;
}

.page-products .h2h-data__item dt {
  font-family: var(--font-serif);
  font-size: 13px;
  color: var(--color-muted);
}

.page-products .h2h-data__item dd {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--color-text);
  text-align: right;
  margin: 0;
}

.page-products .product-steps {
  padding: var(--space-section) 0;
}

.page-products .product-steps__head {
  max-width: 680px;
}

.page-products .steps-track {
  display: grid;
  gap: 20px;
  list-style: none;
  margin: clamp(32px, 5vw, 48px) 0 0;
  padding: 0;
}

.page-products .step-item {
  background: var(--color-white);
  border: 1px solid var(--color-gray-line);
  border-radius: var(--radius-lg);
  padding: 26px;
  position: relative;
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}

.page-products .step-item:hover {
  box-shadow: var(--shadow-1);
  transform: translateY(-2px);
}

.page-products .step-item--highlight {
  border-top: 3px solid var(--color-orange);
}

.page-products .step-item__num {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--color-orange);
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.page-products .step-item__title {
  font-family: var(--font-sans);
  font-weight: 900;
  font-size: 18px;
  line-height: 1.35;
  margin: 0 0 10px;
  color: var(--color-text);
}

.page-products .step-item__desc {
  font-family: var(--font-serif);
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-muted);
  margin: 0;
}

.page-products .step-item__tag {
  position: absolute;
  top: 24px;
  right: 24px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--color-blue);
  background: var(--color-gray-light);
  border-radius: 999px;
  padding: 4px 9px;
  line-height: 1.3;
}

.page-products .steps-track__arrow {
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-products .steps-track__arrow-svg {
  width: 48px;
  height: 24px;
}

.page-products .steps-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-top: 28px;
}

.page-products .steps-cta__note {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-muted);
  line-height: 1.5;
}

@media (min-width: 720px) {
  .page-products .product-hero__grid {
    grid-template-columns: 1.5fr 1fr;
    align-items: end;
    gap: 48px;
  }

  .page-products .product-bento {
    grid-template-columns: repeat(12, 1fr);
  }

  .page-products .product-card--desktop {
    grid-column: span 7;
  }

  .page-products .product-card--preview {
    grid-column: span 5;
  }

  .page-products .product-card--transfer {
    grid-column: span 4;
  }

  .page-products .product-card--goals {
    grid-column: span 5;
  }

  .page-products .product-card--h2h {
    grid-column: span 3;
  }

  .page-products .product-card--watch {
    grid-column: 1 / -1;
  }

  .page-products .product-card--watch .product-card__body {
    padding: 30px;
  }

  .page-products .product-card__body {
    padding: 26px;
  }

  .page-products .mini-steps {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
  }

  .page-products .mini-steps__arrow {
    font-size: 18px;
  }

  .page-products .steps-track {
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
  }

  .page-products .step-item {
    padding: 30px;
  }

  .page-products .steps-cta {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
  }

  .page-products .steps-cta__note {
    text-align: right;
  }
}

@media (min-width: 960px) {
  .page-products .product-hero__grid {
    align-items: center;
  }

  .page-products .product-card--watch {
    flex-direction: row;
    align-items: stretch;
  }

  .page-products .product-card--watch .product-card__body {
    flex: 1.2;
  }

  .page-products .product-card--watch .product-card__media {
    flex: 1;
    min-height: 300px;
  }

  .page-products .product-card--watch .product-img--watch {
    height: 100%;
    object-fit: cover;
  }

  .page-products .product-card--desktop .product-card__media {
    max-height: 520px;
  }
}
