.page-products {
  --p-hair: rgba(150, 166, 160, .22);
  --p-hair-strong: rgba(150, 166, 160, .42);
  --p-radius: 18px;
  --p-accent: var(--cyan);
}

.page-products .section {
  padding: 56px 0 0;
}

.page-products .p-crumb {
  padding: 26px 0 0;
}

.page-products .crumbs ol {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--grey);
}

.page-products .crumbs li {
  display: flex;
  align-items: center;
}

.page-products .crumbs li+li::before {
  content: "/";
  margin: 0 8px;
  color: var(--p-hair-strong);
}

.page-products .crumbs a {
  color: var(--grey);
  text-decoration: none;
  transition: color .12s ease;
}

.page-products .crumbs a:hover {
  color: var(--cyan);
}

.page-products .crumbs [aria-current="page"] {
  color: var(--sand);
}

/* ---------- hero ---------- */
.page-products .p-hero {
  padding-top: 34px;
}

.page-products .p-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 30px;
  align-items: end;
}

.page-products .p-hero-copy .eyebrow {
  margin: 0;
  color: var(--cyan);
}

.page-products .p-hero h1 {
  margin: 14px 0 18px;
  font-size: clamp(34px, 8vw, 62px);
  line-height: 1.04;
  letter-spacing: .004em;
  color: var(--text);
}

.page-products .p-hero .lede {
  max-width: 58ch;
  margin: 0;
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.78;
  color: var(--body-soft);
}

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

.page-products .p-hero-facts {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px 16px;
  margin: 30px 0 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--p-hair);
  list-style: none;
}

.page-products .p-hero-facts b {
  display: block;
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1;
  color: var(--cyan);
}

.page-products .p-hero-facts span {
  display: block;
  margin-top: 7px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--grey);
}

/* ---------- frames ---------- */
.page-products .p-frame {
  position: relative;
  margin: 0;
  border-radius: 22px;
  border: 1px solid var(--p-hair);
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 10% 0%, rgba(57, 242, 200, .13), transparent 60%),
    var(--panel-soft);
}

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

.page-products .p-frame figcaption {
  position: absolute;
  left: 14px;
  bottom: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(57, 242, 200, .32);
  background: rgba(2, 8, 6, .74);
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--cyan);
}

.page-products .p-hero-figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 52%, rgba(2, 8, 6, .6));
  pointer-events: none;
}

.page-products .p-frame--side {
  margin-top: 8px;
}

/* ---------- section head ---------- */
.page-products .p-head {
  max-width: 780px;
  margin-bottom: 28px;
}

.page-products .p-head--tight {
  margin-bottom: 20px;
}

.page-products .p-head .serif-lead {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 12px;
  font-size: 15px;
  letter-spacing: .08em;
  color: var(--sand);
}

.page-products .p-head .serif-lead::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--p-hair-strong), transparent);
}

.page-products h2.h2 {
  margin: 0 0 12px;
  font-size: clamp(24px, 3.6vw, 38px);
  line-height: 1.16;
  letter-spacing: .002em;
}

.page-products .p-head .muted {
  margin: 0;
  font-size: 15px;
  line-height: 1.78;
  color: var(--body-soft);
}

.page-products h3.h3 {
  margin: 0 0 10px;
  font-size: 19px;
  line-height: 1.35;
  color: var(--text);
}

.page-products p {
  color: var(--body-soft);
  line-height: 1.8;
}

/* ---------- modules ---------- */
.page-products .p-mods {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.page-products .p-mod {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 24px 20px 22px;
  border: 1px solid var(--p-hair);
  border-radius: var(--p-radius);
  background: linear-gradient(155deg, rgba(12, 33, 26, .94), rgba(8, 24, 19, .92));
  overflow: hidden;
}

.page-products .p-mod::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--p-accent);
  opacity: .8;
}

.page-products .p-mod:nth-child(2) {
  --p-accent: var(--blue);
}

.page-products .p-mod:nth-child(3) {
  --p-accent: var(--violet);
}

.page-products .p-mod:nth-child(4) {
  --p-accent: var(--orange);
}

.page-products .p-mod-idx {
  margin: 0 0 10px;
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--p-accent);
}

.page-products .p-mod p {
  margin: 0 0 16px;
  font-size: 14.5px;
  line-height: 1.78;
}

.page-products .p-mod .p-chips {
  margin-top: auto;
}

/* ---------- chips ---------- */
.page-products .p-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-products .p-chip {
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--p-hair);
  background: rgba(6, 19, 15, .66);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .02em;
  color: var(--grey);
}

.page-products .p-chip--cyan {
  border-color: rgba(57, 242, 200, .46);
  color: var(--cyan);
}

.page-products .p-chip--orange {
  border-color: rgba(255, 139, 61, .5);
  color: var(--orange);
}

.page-products .p-chip--violet {
  border-color: rgba(140, 124, 255, .5);
  color: var(--violet);
}

.page-products .p-chips--lg {
  margin-top: 18px;
}

.page-products .p-chips--lg .p-chip {
  padding: 7px 14px;
  font-size: 12.5px;
}

.page-products .p-note {
  margin: 18px 0 0;
  font-size: 11.5px;
  line-height: 1.7;
  letter-spacing: .03em;
  color: var(--grey);
}

/* ---------- splits ---------- */
.page-products .p-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

/* ---------- timeline svg ---------- */
.page-products .p-tl {
  display: block;
  width: 100%;
  height: auto;
  margin: 4px 0 6px;
}

/* ---------- disclosure flow ---------- */
.page-products .p-flow {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.page-products .p-flow .disclosure {
  border-radius: 14px;
}

.page-products .p-flow .disclosure-btn {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 15px 16px;
  border: 1px solid var(--p-hair);
  border-radius: 14px;
  background: var(--panel-soft);
  color: var(--text);
  font: inherit;
  font-size: 15px;
  text-align: left;
  cursor: pointer;
  transition: border-color .12s ease, transform .12s ease, background-color .12s ease;
}

.page-products .p-flow .disclosure-btn:hover {
  border-color: rgba(57, 242, 200, .45);
  transform: translateX(2px);
}

.page-products .p-flow .disclosure-btn[aria-expanded="true"] {
  border-color: rgba(57, 242, 200, .55);
  background: rgba(57, 242, 200, .07);
}

.page-products .p-step-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  border: 1px solid rgba(255, 139, 61, .5);
  font-size: 11.5px;
  color: var(--orange);
}

.page-products .p-flow .disclosure-panel {
  padding: 12px 16px 4px 16px;
}

.page-products .p-flow .disclosure-panel p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.8;
}

/* ---------- devices ---------- */
.page-products .p-devices {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
}

.page-products .p-screen {
  margin: 0;
  padding: 14px;
  border: 1px solid var(--p-hair);
  border-radius: var(--p-radius);
  background:
    radial-gradient(100% 80% at 90% 0%, rgba(43, 217, 232, .12), transparent 60%),
    var(--panel-soft);
}

.page-products .p-screen-top {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}

.page-products .p-screen-top span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--p-hair-strong);
}

.page-products .p-screen-top span:first-child {
  background: var(--orange);
}

.page-products .p-screen-body {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 58px;
  gap: 10px;
  height: 190px;
}

.page-products .p-screen-rail,
.page-products .p-screen-main,
.page-products .p-screen-side {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--p-hair);
  border-radius: 10px;
  background: rgba(6, 19, 15, .5);
}

.page-products .p-screen-rail i {
  height: 12px;
  border-radius: 4px;
  background: rgba(57, 242, 200, .45);
}

.page-products .p-screen-main i {
  height: 14px;
  border-radius: 4px;
  background: rgba(150, 166, 160, .22);
}

.page-products .p-screen-main i:first-child {
  height: 26px;
  background: rgba(57, 242, 200, .28);
}

.page-products .p-screen-side i {
  height: 20px;
  border-radius: 4px;
  background: rgba(43, 217, 232, .24);
}

.page-products .p-screen figcaption {
  margin-top: 12px;
  font-size: 11px;
  letter-spacing: .04em;
  color: var(--grey);
}

.page-products .p-device-copy p {
  margin: 0 0 14px;
  font-size: 14.8px;
  line-height: 1.8;
}

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

.page-products .p-rows li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 10px 12px;
  border-left: 2px solid rgba(57, 242, 200, .5);
  border-radius: 0 10px 10px 0;
  background: rgba(12, 33, 26, .7);
  font-size: 14px;
  color: var(--body-soft);
  line-height: 1.6;
}

.page-products .p-rows .mono {
  flex: none;
  font-size: 12px;
  letter-spacing: .05em;
  color: var(--cyan);
}

.page-products .p-frame--phone {
  max-width: 340px;
}

/* ---------- scenes ---------- */
.page-products .p-scenes {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.page-products .p-scene {
  padding: 24px 20px;
  border: 1px solid var(--p-hair);
  border-radius: var(--p-radius);
  background: linear-gradient(180deg, rgba(12, 33, 26, .85), rgba(8, 24, 19, .86));
}

.page-products .p-scene:nth-child(2) {
  border-radius: 30px 14px 30px 14px;
}

.page-products .p-scene-tag {
  display: inline-block;
  margin: 0 0 12px;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(255, 139, 61, .14);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--orange);
}

.page-products .p-scene p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.8;
}

/* ---------- help ---------- */
.page-products .p-help {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.page-products .p-help-copy .serif-lead {
  margin: 0 0 12px;
  font-size: 15px;
  letter-spacing: .08em;
  color: var(--sand);
}

.page-products .p-help-copy p {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.82;
}

.page-products .p-help-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.page-products .p-help-copy .p-note {
  margin-top: 18px;
}

/* ---------- responsive ---------- */
@media (min-width: 760px) {
  .page-products .section {
    padding-top: 72px;
  }

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

  .page-products .p-mods {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-products .p-scenes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-products .p-scenes > :last-child {
    grid-column: 1 / -1;
  }

  .page-products .p-flow .disclosure-panel {
    padding: 14px 20px 6px 60px;
  }
}

@media (min-width: 900px) {
  .page-products .p-hero-grid {
    grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
    gap: 40px;
  }

  .page-products .p-split {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
    gap: 40px;
  }

  .page-products .p-split--rev > *:first-child {
    order: 2;
  }

  .page-products .p-split--rev > *:last-child {
    order: 1;
  }

  .page-products .p-help {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: 42px;
  }

  .page-products .p-devices {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
    grid-template-areas:
      "screen copy"
      "phone copy";
    gap: 22px 32px;
    align-items: start;
  }

  .page-products .p-screen {
    grid-area: screen;
  }

  .page-products .p-device-copy {
    grid-area: copy;
  }

  .page-products .p-frame--phone {
    grid-area: phone;
    max-width: none;
  }
}

@media (min-width: 1000px) {
  .page-products .p-mods {
    grid-template-columns: 1.5fr 1fr .78fr;
    grid-template-areas:
      "m1 m2 m3"
      "m1 m4 m3";
  }

  .page-products .p-mod:nth-child(1) {
    grid-area: m1;
  }

  .page-products .p-mod:nth-child(2) {
    grid-area: m2;
  }

  .page-products .p-mod:nth-child(3) {
    grid-area: m3;
  }

  .page-products .p-mod:nth-child(4) {
    grid-area: m4;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-products .p-flow .disclosure-btn {
    transition: none;
  }

  .page-products .p-flow .disclosure-btn:hover {
    transform: none;
  }
}
