.page-products {
  --prod-surface: rgba(20, 42, 84, .46);
  --prod-surface-2: rgba(20, 42, 84, .72);
  --prod-teal-soft: rgba(53, 224, 200, .14);
  --prod-amber-soft: rgba(255, 138, 61, .14);
  background: var(--ink);
  color: var(--cream);
  overflow-x: clip;
}

.page-products h2 {
  margin: 0;
  font-size: var(--step-3);
  line-height: 1.2;
  letter-spacing: -.012em;
}

.page-products h3 {
  margin: 0;
  font-size: var(--step-1);
  line-height: 1.35;
  color: var(--cream);
}

.page-products p {
  margin: 0;
  line-height: 1.75;
}

.page-products a {
  color: inherit;
}

/* ---------------- HERO ---------------- */

.page-products .prod-hero {
  position: relative;
  padding: clamp(40px, 7vw, 84px) 0 clamp(36px, 6vw, 72px);
  overflow: hidden;
}

.page-products .prod-hero::before {
  position: absolute;
  content: "";
  top: -22%;
  right: -24%;
  width: min(700px, 96vw);
  aspect-ratio: 1 / 1;
  border-radius: 44% 56% 38% 62% / 58% 40% 60% 42%;
  background: linear-gradient(150deg, var(--teal) 0%, rgba(53, 224, 200, 0) 68%);
  opacity: .17;
  transform: rotate(16deg);
  pointer-events: none;
}

.page-products .prod-hero::after {
  position: absolute;
  content: "";
  bottom: -34%;
  left: -18%;
  width: min(440px, 74vw);
  aspect-ratio: 1 / 1;
  border-radius: 62% 38% 55% 45% / 44% 58% 42% 56%;
  background: linear-gradient(28deg, var(--amber) 0%, rgba(255, 138, 61, 0) 72%);
  opacity: .13;
  pointer-events: none;
}

.page-products .prod-hero__wrap {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(30px, 5vw, 52px);
  align-items: center;
}

.page-products .prod-hero__copy {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.page-products .prod-hero__copy h1 {
  margin: 0;
  font-size: var(--step-5);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -.026em;
  max-width: 15ch;
}

.page-products .prod-hero__copy .lede {
  max-width: 52ch;
  color: var(--mist);
  font-size: var(--step-1);
}

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

.page-products .prod-hero__device {
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-products .prod-device {
  position: relative;
  width: min(268px, 74vw);
  padding: 20px 16px 26px;
  border: 1px solid var(--line);
  border-radius: 34px;
  background: linear-gradient(168deg, var(--ink-2) 0%, var(--ink) 58%, var(--char) 100%);
  box-shadow: 0 44px 90px -56px rgba(0, 0, 0, .96), inset 0 1px 0 rgba(244, 241, 234, .07);
  transform: rotate(-3.5deg);
}

.page-products .prod-device__bar {
  display: block;
  width: 64px;
  height: 5px;
  margin: 0 auto 16px;
  border-radius: var(--radius-pill);
  background: var(--line-soft);
}

.page-products .prod-device__shelf {
  display: grid;
  gap: 8px;
}

.page-products .prod-device__row {
  display: block;
  height: 30px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: linear-gradient(90deg, rgba(143, 163, 191, .11), rgba(143, 163, 191, 0));
}

.page-products .prod-device__row--on {
  border-color: var(--amber);
  background: linear-gradient(90deg, var(--prod-amber-soft), rgba(255, 138, 61, 0));
}

.page-products .prod-device__tag {
  display: inline-block;
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: .16em;
  color: var(--teal);
}

/* ---------------- SECTION SHELL ---------------- */

.page-products .prod-section {
  position: relative;
  padding: clamp(48px, 8vw, 92px) 0;
}

.page-products .prod-section + .prod-section {
  border-top: 1px solid var(--line-faint);
}

.page-products .prod-head {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 62ch;
}

.page-products .prod-head .lede {
  max-width: 56ch;
  color: var(--mist);
}

/* ---------------- CATALOG ---------------- */

.page-products .prod-catalog__grid {
  display: grid;
  gap: clamp(22px, 4vw, 42px);
  margin-top: clamp(28px, 5vw, 48px);
}

.page-products .prod-catalog__figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  overflow: hidden;
  background: linear-gradient(160deg, var(--ink-2), var(--char));
}

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

.page-products .prod-catalog__cards {
  display: grid;
  gap: 14px;
}

.page-products .prod-note {
  padding: 20px 18px 22px;
  border: 1px solid var(--line-faint);
  border-left: 2px solid var(--teal);
  border-radius: var(--radius);
  background: var(--prod-surface);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.page-products .prod-note p {
  color: var(--mist);
  font-size: var(--step-0);
}

.page-products .prod-note .tag {
  align-self: flex-start;
}

/* ---------------- INSTALL ---------------- */

.page-products .prod-install {
  background: linear-gradient(180deg, rgba(6, 12, 24, .0) 0%, rgba(6, 12, 24, .55) 40%, rgba(6, 12, 24, .0) 100%);
}

.page-products .prod-install__head {
  display: grid;
  gap: clamp(24px, 4vw, 46px);
  align-items: center;
}

.page-products .prod-install__figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  overflow: hidden;
  background: linear-gradient(150deg, var(--ink-2), var(--char));
}

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

.page-products .prod-steps {
  margin: clamp(30px, 5vw, 52px) 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-soft);
}

.page-products .prod-step {
  border-bottom: 1px solid var(--line-soft);
}

.page-products .prod-step__num {
  font-size: clamp(1.5rem, 1.05rem + 2.1vw, 2.5rem);
  font-weight: 700;
  line-height: 1;
  color: var(--amber);
}

.page-products .prod-step summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 24px;
  gap: 14px;
  align-items: center;
  padding: clamp(16px, 3vw, 24px) 0;
  cursor: pointer;
  list-style: none;
  transition: color 220ms var(--ease);
}

.page-products .prod-step summary::-webkit-details-marker {
  display: none;
}

.page-products .prod-step summary:hover .prod-step__title {
  color: var(--teal);
}

.page-products .prod-step__title {
  font-size: var(--step-1);
  font-weight: 600;
  color: var(--cream);
  transition: color 220ms var(--ease);
}

.page-products .prod-step__mark {
  position: relative;
  width: 22px;
  height: 22px;
  border: 1px solid var(--line);
  border-radius: 50%;
  flex: none;
}

.page-products .prod-step__mark::before,
.page-products .prod-step__mark::after {
  position: absolute;
  content: "";
  top: 50%;
  left: 50%;
  width: 10px;
  height: 1.5px;
  background: var(--teal);
  transform: translate(-50%, -50%);
  transition: transform 240ms var(--ease);
}

.page-products .prod-step__mark::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.page-products .prod-step details[open] .prod-step__mark::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.page-products .prod-step__body {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 24px;
  gap: 14px;
  padding-bottom: clamp(18px, 3vw, 26px);
}

.page-products .prod-step__body p {
  grid-column: 2;
  max-width: 66ch;
  color: var(--mist);
  font-size: var(--step-0);
}

/* ---------------- SYNC ---------------- */

.page-products .prod-sync__grid {
  display: grid;
  gap: clamp(24px, 4vw, 44px);
  align-items: center;
  margin-top: clamp(28px, 5vw, 46px);
}

.page-products .prod-sync__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 2px;
  counter-reset: sync;
}

.page-products .prod-sync__item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-faint);
}

.page-products .prod-sync__item:first-child {
  border-top: 1px solid var(--line-faint);
}

.page-products .prod-sync__item p {
  color: var(--mist);
  font-size: var(--step-0);
}

.page-products .prod-sync__num {
  font-size: var(--step-1);
  font-weight: 700;
  color: var(--teal);
  letter-spacing: .04em;
}

.page-products .prod-sync__figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  overflow: hidden;
  background: linear-gradient(150deg, var(--ink-2), var(--char));
}

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

/* ---------------- PLATFORMS ---------------- */

.page-products .prod-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: clamp(24px, 4vw, 34px);
}

.page-products .prod-chip {
  appearance: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: rgba(20, 42, 84, .5);
  color: var(--mist);
  font-family: var(--font-sans);
  font-size: var(--step--1);
  letter-spacing: .08em;
  padding: 9px 20px;
  cursor: pointer;
  transition: color 200ms var(--ease), background 200ms var(--ease), border-color 200ms var(--ease);
}

.page-products .prod-chip:hover {
  border-color: var(--teal);
  color: var(--cream);
}

.page-products .prod-chip[aria-pressed="true"],
.page-products .prod-chip.is-active {
  border-color: var(--teal);
  background: var(--teal);
  color: var(--ink);
  font-weight: 600;
}

.page-products .prod-panels {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.page-products .prod-panel {
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid var(--line-faint);
  border-radius: var(--radius);
  background: var(--prod-surface);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.page-products .prod-panel.is-filtered-out {
  display: none;
}

.page-products .prod-panel .tag {
  align-self: flex-start;
}

.page-products .prod-panel p {
  color: var(--mist);
  font-size: var(--step-0);
}

.page-products .prod-panel__foot {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line-faint);
  font-size: var(--step--1);
  color: var(--cream);
  opacity: .82;
}

/* ---------------- SUBSCRIBE ---------------- */

.page-products .prod-subscribe__grid {
  display: grid;
  gap: clamp(26px, 4vw, 48px);
  align-items: center;
}

.page-products .prod-subscribe__figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  overflow: hidden;
  background: linear-gradient(150deg, var(--ink-2), var(--char));
}

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

.page-products .prod-subscribe__copy {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.page-products .prod-subscribe__copy .lede {
  color: var(--mist);
}

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

.page-products .prod-subscribe__list li {
  position: relative;
  padding-left: 24px;
  color: var(--mist);
  line-height: 1.7;
}

.page-products .prod-subscribe__list li::before {
  position: absolute;
  content: "";
  top: .68em;
  left: 4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--magenta);
  opacity: .85;
}

.page-products .prod-subscribe__hint {
  font-size: var(--step-0);
  color: var(--mist);
}

.page-products .prod-subscribe__hint a {
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ---------------- OFFLINE ---------------- */

.page-products .prod-offline__grid {
  display: grid;
  gap: clamp(26px, 4vw, 48px);
  align-items: center;
}

.page-products .prod-offline__copy {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.page-products .prod-offline__copy .lede {
  color: var(--mist);
}

.page-products .prod-offline__states {
  display: grid;
  gap: 14px;
  margin-top: 6px;
}

.page-products .prod-state {
  padding: 16px 18px;
  border: 1px solid var(--line-faint);
  border-radius: var(--radius);
  background: var(--prod-surface);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.page-products .prod-state .tag {
  align-self: flex-start;
}

.page-products .prod-state p {
  color: var(--mist);
  font-size: var(--step-0);
}

.page-products .prod-offline__figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  overflow: hidden;
  background: linear-gradient(150deg, var(--ink-2), var(--char));
}

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

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

.page-products .prod-cta__panel {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: linear-gradient(140deg, var(--ink-2) 0%, var(--ink) 52%, var(--char) 100%);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.page-products .prod-cta__panel::before {
  position: absolute;
  content: "";
  top: -40%;
  right: -12%;
  width: min(420px, 70vw);
  aspect-ratio: 1 / 1;
  border-radius: 50% 50% 42% 58% / 48% 44% 56% 52%;
  background: linear-gradient(210deg, var(--teal) 0%, rgba(53, 224, 200, 0) 70%);
  opacity: .16;
  pointer-events: none;
}

.page-products .prod-cta__panel h2,
.page-products .prod-cta__panel p,
.page-products .prod-cta__panel .eyebrow,
.page-products .prod-cta__actions {
  position: relative;
  z-index: 1;
}

.page-products .prod-cta__panel .lede {
  max-width: 54ch;
  color: var(--mist);
}

.page-products .prod-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}

/* ---------------- RESPONSIVE ---------------- */

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

  .page-products .prod-offline__states {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

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

@media (min-width: 900px) {
  .page-products .prod-hero__wrap {
    grid-template-columns: minmax(0, 1.12fr) minmax(240px, .88fr);
  }

  .page-products .prod-catalog__grid {
    grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
    align-items: start;
  }

  .page-products .prod-catalog__cards > :nth-child(2),
  .page-products .prod-catalog__cards > :nth-child(4) {
    transform: translateY(18px);
  }

  .page-products .prod-install__head {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
  }

  .page-products .prod-sync__grid {
    grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  }

  .page-products .prod-subscribe__grid {
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  }

  .page-products .prod-offline__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  }
}

@media (max-width: 599px) {
  .page-products .prod-step__body {
    grid-template-columns: minmax(0, 1fr);
    padding-left: 4px;
  }

  .page-products .prod-step__body p {
    grid-column: 1;
  }

  .page-products .prod-step summary {
    gap: 10px;
  }

  .page-products .prod-hero__copy h1 {
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-products .prod-device {
    transform: none;
  }

  .page-products .prod-catalog__cards > :nth-child(2),
  .page-products .prod-catalog__cards > :nth-child(4) {
    transform: none;
  }

  .page-products .prod-step__mark::before,
  .page-products .prod-step__mark::after,
  .page-products .prod-step__title,
  .page-products .prod-chip {
    transition: none;
  }
}
