.page-products {
  --pp-rail: 216px;
  --pp-gap: clamp(24px, 4vw, 60px);
  background: var(--paper);
  color: var(--ink);
}

.page-products .hero {
  position: relative;
  overflow: hidden;
  padding: clamp(38px, 6vw, 76px) 0 clamp(42px, 6vw, 84px);
  color: var(--paper);
  background:
    radial-gradient(120% 90% at 86% 6%, rgba(18, 96, 143, 0.58) 0%, rgba(11, 59, 90, 0) 62%),
    linear-gradient(168deg, var(--sea) 0%, var(--sea-deep) 100%);
}

.page-products .hero::after {
  content: "";
  position: absolute;
  right: -12%;
  bottom: -46%;
  width: 440px;
  height: 440px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 107, 78, 0.26), rgba(242, 107, 78, 0) 68%);
  pointer-events: none;
}

.page-products .hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 34px;
}

.page-products .hero__kicker {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--gold-b);
}

.page-products .hero__title {
  margin: 0;
  max-width: 17em;
  font-size: clamp(32px, 5.2vw, 58px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--paper);
}

.page-products .hero__lede {
  margin: 18px 0 0;
  max-width: 48ch;
  font-size: 16px;
  line-height: 1.85;
  color: rgba(251, 247, 239, 0.85);
}

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

.page-products .hero__meta {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 9px;
}

.page-products .hero__meta li {
  display: flex;
  align-items: baseline;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: rgba(251, 247, 239, 0.72);
}

.page-products .hero__meta li::before {
  content: "";
  flex: none;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold-a);
}

.page-products .chapter-nav {
  padding: 18px 20px 20px;
  border: 1px solid var(--line-light);
  border-radius: var(--radius-m);
  background: rgba(251, 247, 239, 0.06);
}

.page-products .chapter-nav__title {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.18em;
  color: var(--gold-b);
}

.page-products .chapter-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
}

.page-products .chapter-nav__link {
  display: flex;
  gap: 12px;
  align-items: baseline;
  padding: 9px 0;
  border-top: 1px solid rgba(251, 247, 239, 0.12);
  color: rgba(251, 247, 239, 0.9);
  text-decoration: none;
  font-size: 14.5px;
  transition: color var(--dur) var(--ease), padding-left var(--dur) var(--ease);
}

.page-products .chapter-nav__list li:first-child .chapter-nav__link {
  border-top: 0;
}

.page-products .chapter-nav__link:hover,
.page-products .chapter-nav__link:focus-visible {
  padding-left: 6px;
  color: var(--gold-b);
}

.page-products .chapter-nav__num {
  flex: none;
  min-width: 22px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--coral);
}

.page-products .chapter {
  padding: clamp(38px, 5.5vw, 72px) 0;
  border-top: 1px solid var(--line-soft);
}

.page-products .chapter--sand {
  background: var(--sand);
}

.page-products .chapter__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.page-products .chapter__side {
  display: grid;
  align-content: start;
  gap: 8px;
}

.page-products .chapter__note {
  margin: 0;
  padding-top: 6px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--rock);
}

.page-products .chapter__body {
  min-width: 0;
}

.page-products .chapter__title {
  margin: 0;
  font-size: clamp(25px, 3.4vw, 38px);
  font-weight: 900;
  line-height: 1.22;
  letter-spacing: -0.01em;
  color: var(--sea);
}

.page-products .chapter__body p {
  margin: 14px 0 0;
  max-width: 68ch;
  font-size: 15.5px;
  line-height: 1.85;
}

.page-products .chapter__body a {
  color: var(--sea-light);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-products .chapter__body a:hover,
.page-products .chapter__body a:focus-visible {
  color: var(--coral);
}

.page-products .chapter__figure {
  margin: 28px 0 0;
}

.page-products .tier-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 26px;
}

.page-products .tier {
  padding: clamp(20px, 3vw, 30px);
  border-radius: var(--radius-m);
}

.page-products .tier--basic {
  background: var(--sand);
  border: 1px solid var(--line-soft);
  color: var(--ink);
}

.page-products .tier--pro {
  background: linear-gradient(165deg, var(--sea) 0%, var(--sea-deep) 100%);
  border: 1px solid rgba(251, 247, 239, 0.14);
  color: var(--paper);
  box-shadow: var(--shadow-paper);
}

.page-products .tier__flag {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  color: var(--roo);
}

.page-products .tier--pro .tier__flag {
  color: var(--gold-b);
}

.page-products .tier__name {
  margin: 6px 0 0;
  font-size: clamp(21px, 2.8vw, 27px);
  font-weight: 900;
  line-height: 1.28;
}

.page-products .tier__fit {
  margin: 10px 0 0;
  font-size: 14.5px;
  line-height: 1.75;
  opacity: 0.88;
}

.page-products .tier__list {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.page-products .tier__list li {
  position: relative;
  padding-left: 22px;
  font-size: 14.8px;
  line-height: 1.7;
}

.page-products .tier__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  transform: rotate(45deg);
  background: var(--coral);
}

.page-products .tier--pro .tier__list li::before {
  background: var(--gold-a);
}

.page-products .advice {
  margin-top: 24px !important;
  padding: 14px 18px;
  border-left: 3px solid var(--gold-a);
  background: linear-gradient(90deg, rgba(233, 180, 76, 0.16), rgba(233, 180, 76, 0));
  font-size: 15px;
  line-height: 1.78;
}

.page-products .steps {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
}

.page-products .step {
  position: relative;
  padding: 0 0 28px 54px;
}

.page-products .step::before {
  content: "";
  position: absolute;
  left: 19px;
  top: 34px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--sand-deep), rgba(231, 216, 193, 0.15));
}

.page-products .step:last-child {
  padding-bottom: 0;
}

.page-products .step:last-child::before {
  display: none;
}

.page-products .step__num {
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--sea);
  background: var(--paper);
  color: var(--sea);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
}

.page-products .step__title {
  margin: 4px 0 0;
  font-size: 18.5px;
  font-weight: 800;
  line-height: 1.4;
  color: var(--ink);
}

.page-products .step__text {
  margin: 8px 0 0;
  font-size: 15px;
  line-height: 1.8;
}

.page-products .step__notes {
  margin-top: 10px;
  border-top: 1px dashed var(--line);
}

.page-products .step__notes summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--sea-light);
}

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

.page-products .step__notes summary::before {
  content: "+";
  display: grid;
  place-items: center;
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: var(--sand-deep);
  color: var(--sea);
  font-size: 13px;
  line-height: 1;
}

.page-products .step__notes[open] summary::before {
  content: "–";
}

.page-products .step__notes p {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.75;
}

.page-products .table-wrap {
  margin-top: 26px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  background: var(--paper);
}

.page-products .diff-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  font-size: 14.5px;
}

.page-products .diff-table caption {
  padding: 13px 16px;
  text-align: left;
  background: var(--sand);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--rock);
}

.page-products .diff-table th,
.page-products .diff-table td {
  padding: 13px 16px;
  text-align: left;
  vertical-align: top;
  line-height: 1.65;
  border-bottom: 1px solid var(--line-soft);
}

.page-products .diff-table thead th {
  background: var(--sea);
  color: var(--paper);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.page-products .diff-table tbody th {
  font-weight: 700;
  color: var(--sea);
  white-space: nowrap;
  background: rgba(244, 233, 216, 0.45);
}

.page-products .diff-table tbody tr:nth-child(even) td {
  background: rgba(244, 233, 216, 0.3);
}

.page-products .diff-table tbody tr:hover td,
.page-products .diff-table tbody tr:hover th {
  background: rgba(233, 180, 76, 0.24);
}

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

.page-products .device-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.page-products .device-switch__link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--sea);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.page-products .device-switch__link::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--coral);
}

.page-products .device-switch__link:hover,
.page-products .device-switch__link:focus-visible {
  background: var(--sea);
  border-color: var(--sea);
  color: var(--paper);
}

.page-products .device-block {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  margin-top: 24px;
  padding: clamp(18px, 3vw, 26px);
  border-radius: var(--radius-m);
  border-left: 4px solid var(--coral);
  background: var(--sand);
}

.page-products .device-block--alt {
  border-left-color: var(--euca);
}

.page-products .device-block__media img {
  display: block;
  width: 100%;
  max-width: 280px;
  height: auto;
  border-radius: var(--radius-s);
}

.page-products .device-block__title {
  margin: 10px 0 0;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.4;
  color: var(--sea);
}

.page-products .device-block__body p {
  margin: 10px 0 0;
  font-size: 14.8px;
  line-height: 1.78;
}

.page-products .device-block__list {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 9px;
}

.page-products .device-block__list li {
  position: relative;
  padding-left: 18px;
  font-size: 14.5px;
  line-height: 1.72;
}

.page-products .device-block__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--coral);
}

.page-products .scene-list {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.page-products .scene {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.page-products .scene__no {
  padding-top: 3px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--coral);
}

.page-products .scene h3 {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.4;
  color: var(--ink);
}

.page-products .scene p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.72;
  color: var(--rock);
}

.page-products .cta-line {
  margin-top: 28px !important;
  padding: 16px 18px;
  border-radius: var(--radius-s);
  border: 1px solid var(--line);
  background: rgba(251, 247, 239, 0.75);
  font-size: 15px;
  line-height: 1.8;
}

@media (min-width: 760px) {
  .page-products .hero__lede {
    font-size: 17px;
  }

  .page-products .tier-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .page-products .tier--pro {
    margin-top: 26px;
  }

  .page-products .device-block {
    grid-template-columns: 260px minmax(0, 1fr);
    align-items: start;
  }

  .page-products .scene-list {
    grid-template-columns: 1fr 1fr;
    gap: 16px 30px;
  }
}

@media (min-width: 900px) {
  .page-products .chapter__grid {
    grid-template-columns: var(--pp-rail) minmax(0, 1fr);
    column-gap: var(--pp-gap);
    align-items: start;
  }

  .page-products .chapter__side {
    position: sticky;
    top: 96px;
  }
}

@media (min-width: 980px) {
  .page-products .hero__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
    column-gap: 52px;
    align-items: end;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-products .chapter-nav__link,
  .page-products .device-switch__link {
    transition: none;
  }
}
