/* Homepage "Classic or Horizon?" (owner chose Variant 1, 28 Oct 2026): "the lit shelf". Prices: home-duo.js.
   Both consoles stand on one lilac-lit shelf edge at true relative scale (same 3.5-inch screen), two columns at every
   width, with matching lines under each so the eye compares row by row. Every selector is scoped to .pp-duo.

   Matched screens (owner, 28 Oct): the Horizon frame fills its column (capped by --pp-duo-hmax) and the Classic frame is
   1/1.8578 of that, so both black screen panels are the same height (Classic panel 45.85% of its 530x855 crop, Horizon
   panel 83.33% of its 653x312 crop). The picture box is always exactly the Classic's height (column x .8683), so the
   shelf edge sits at the same height in both columns. The Horizon photo is tinted to the Classic's purple. */

.pp-duo {
  --pp-duo-lilac: #baa3e8;
  /* The shelf, drawn as one background so the end-fade masks keep all of it: a 2px lilac edge with a soft glow either
     side (the top 12px), then the shelf's lit front face fading out below it (--pp-duo-face-h). */
  --pp-duo-face-h: 30px;
  --pp-duo-shelf:
    linear-gradient(rgba(196, 163, 255, 0), rgba(196, 163, 255, .3) 34%, #c4a3ff 41.7% 58.3%, rgba(196, 163, 255, .3) 66%, rgba(196, 163, 255, 0)) 0 0 / 100% 12px no-repeat,
    linear-gradient(rgba(186, 163, 232, .28), rgba(186, 163, 232, .1) 40%, rgba(186, 163, 232, 0)) 0 6px / 100% var(--pp-duo-face-h) no-repeat;
  --pp-duo-gap: 24px;          /* between the two columns; the hairline runs down its middle */
  --pp-duo-hmax: 9999px;       /* widest the Horizon gets (no cap on phones) */
}
.pp-sec.pp-duo { padding-bottom: 56px; }

.pp-duo .pp-duo__grid { display: grid; gap: 28px; }
.pp-duo .pp-duo__intro .pp-lede { margin-top: 10px; max-width: 30ch; }

/* ---------- the shelf ---------- */
.pp-duo .pp-duo__shelf {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: var(--pp-duo-gap);
  margin: 0;
  padding: 0;
  list-style: none;
}
.pp-duo .pp-duo__item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  text-align: center;
}
.pp-duo .pp-duo__item--classic { grid-column: 1; }
.pp-duo .pp-duo__item--horizon { grid-column: 2; }

/* Rows line up across the two columns (name with name, price with price) wherever subgrid is supported. */
@supports (grid-template-rows: subgrid) {
  .pp-duo .pp-duo__shelf { grid-template-rows: repeat(6, auto); }
  .pp-duo .pp-duo__item { display: grid; grid-row: 1 / span 6; grid-template-rows: subgrid; justify-items: center; align-items: start; }
  /* the hairline between the columns, hanging from the shelf edge */
  .pp-duo .pp-duo__shelf::after {
    content: "";
    grid-column: 1 / -1;
    grid-row: 2 / -1;
    justify-self: center;
    width: 1px;
    background: linear-gradient(var(--pp-line) 70%, transparent);
    pointer-events: none;
  }
}

/* picture box: as tall as the Classic, consoles stand on its bottom edge */
.pp-duo .pp-duo__pic {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  align-self: stretch;
  justify-self: stretch;
  width: 100%;
  aspect-ratio: 1000 / 868.3;
  max-height: calc(var(--pp-duo-hmax) * .8683);
  /* lilac light rising from the shelf behind each console */
  background: radial-gradient(50% 72% at 50% 100%, rgba(160, 128, 232, .38), rgba(160, 128, 232, .12) 50%, rgba(160, 128, 232, 0));
}
.pp-duo .pp-duo__item--classic .pp-duo__pic { --pp-duo-fw: min(53.827%, calc(var(--pp-duo-hmax) / 1.8578)); }
.pp-duo .pp-duo__item--horizon .pp-duo__pic { --pp-duo-fw: min(100%, var(--pp-duo-hmax)); }

/* the lit shelf (edge and front face): each column draws its half and they meet under the hairline */
.pp-duo .pp-duo__pic::before {
  content: "";
  position: absolute;
  top: 100%;
  height: calc(6px + var(--pp-duo-face-h));
  margin-top: -6px;
  background: var(--pp-duo-shelf);
  pointer-events: none;
}
.pp-duo .pp-duo__item--classic .pp-duo__pic::before {
  left: 0;
  right: calc(var(--pp-duo-gap) / -2);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 40%);
  mask-image: linear-gradient(90deg, transparent, #000 40%);
}
.pp-duo .pp-duo__item--horizon .pp-duo__pic::before {
  left: calc(var(--pp-duo-gap) / -2);
  right: 0;
  -webkit-mask-image: linear-gradient(90deg, #000 60%, transparent);
  mask-image: linear-gradient(90deg, #000 60%, transparent);
}
/* a pool of lilac light on the shelf under each console */
.pp-duo .pp-duo__pic::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -14px;
  width: min(calc(var(--pp-duo-fw) * 1.25), 100%);   /* never wider than its column: the Horizon's pool overflowed the screen */
  height: 28px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(186, 163, 232, .42), rgba(186, 163, 232, 0));
  pointer-events: none;
  transition: opacity 200ms ease-out;
  opacity: .85;
}

.pp-duo .pp-duo__frame {
  position: relative;
  z-index: 1;
  display: block;
  flex: none;
  width: var(--pp-duo-fw);
  overflow: hidden;
  background: #0c0d10;
  /* a faint reflection in the shelf (Chromium and Safari; other browsers simply show none) */
  -webkit-box-reflect: below 2px linear-gradient(to bottom, transparent calc(100% - 30px), rgba(255, 255, 255, .22));
}
.pp-duo .pp-duo__frame img {
  position: absolute;
  max-width: none;
  height: auto;
}
.pp-duo .pp-duo__frame--classic { aspect-ratio: 530 / 855; border-radius: 10% 10% 14% 14% / 6% 6% 10% 10%; }
.pp-duo .pp-duo__frame--classic img { left: -54.528302%; top: -15.087719%; width: 207.54717%; }
.pp-duo .pp-duo__frame--horizon { aspect-ratio: 653 / 312; border-radius: 7.5% / 16%; }
.pp-duo .pp-duo__frame--horizon img { left: -23.7366%; top: -33.974359%; width: 147.013783%; filter: hue-rotate(-12deg) saturate(1.2) brightness(.97); }

/* ---------- matching lines ---------- */
.pp-duo .pp-duo__name {
  margin: 24px 0 0;
  font: 700 24px/1.1 var(--pp-display);
  letter-spacing: -.045em;
  color: var(--pp-ink);
}
.pp-duo .pp-duo__shape {
  margin: 4px 0 0;
  font-size: 15px;
  line-height: 1.35;
  color: var(--pp-muted);
  text-wrap: balance;
}
.pp-duo .pp-duo__colours {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 20px;
  color: var(--pp-muted);
}
.pp-duo .pp-duo__dots { display: flex; gap: 3px; }
.pp-duo .pp-duo__dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--pp-duo-sw);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18);
}
/* swatches as on the product pages (the Classic's purple and yellow are its own shades) */
.pp-duo .pp-duo__dot--pink { --pp-duo-sw: radial-gradient(circle at 34% 28%, #fbcadc 0, #eea9c1 50%, #c3869c 100%); }
.pp-duo .pp-duo__dot--purple { --pp-duo-sw: radial-gradient(circle at 34% 28%, #9a8bc8 0, #5e6295 50%, #3a3760 100%); }
.pp-duo .pp-duo__dot--black { --pp-duo-sw: radial-gradient(circle at 34% 28%, #8f8f91 0, #555557 50%, #2c2c2e 100%); }
.pp-duo .pp-duo__dot--white { --pp-duo-sw: radial-gradient(circle at 34% 28%, #ffffff 0, #e6e4e0 50%, #b9b7b3 100%); }
.pp-duo .pp-duo__dot--yellow { --pp-duo-sw: radial-gradient(circle at 34% 28%, #ffe57a 0, #f0c928 50%, #b8902c 100%); }

.pp-duo .pp-duo__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 0 5px;
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.3;
  color: var(--pp-muted);
}
.pp-duo .pp-duo__price b {
  font: 700 21px/1.1 var(--pp-display);
  letter-spacing: -.03em;
  color: var(--pp-ink);
}
.pp-duo .pp-duo__price small { font-size: 12px; letter-spacing: .02em; }

/* ---------- the action: the site's black-glass pill, sized for a column ---------- */
.pp-duo .pp-outline.pp-duo__go {
  width: 100%;
  min-height: 46px;
  margin-top: 14px;
  padding: 10px 14px;
  gap: 6px;
  font-size: 13px;
  letter-spacing: .08em;
  /* the pill also covers its whole column (see ::after), so it must not be the containing block */
  position: static;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.pp-duo .pp-duo__go .pp-outline__arrow { inline-size: 20px; block-size: 20px; background: none; box-shadow: none; }
.pp-duo .pp-duo__go svg { width: 20px; height: 20px; }
/* the picture also opens the product page; the text lines sit above that hit area so they stay selectable and
   readable by touch screen readers */
.pp-duo .pp-duo__go::after {
  content: "";
  position: absolute;
  inset: -8px -6px;
  z-index: 2;
  border-radius: 14px;
}
.pp-duo .pp-duo__name, .pp-duo .pp-duo__shape, .pp-duo .pp-duo__colours, .pp-duo .pp-duo__price { position: relative; z-index: 3; }
.pp-duo .pp-outline.pp-duo__go:active { transform: none; }
/* home-lower.css squares off focused links in sections (border-radius: 4px); keep the button's own corners */
.pp-duo .pp-outline.pp-duo__go:focus-visible { border-radius: 14px; }

@media (hover: hover) {
  .pp-duo .pp-duo__item:has(.pp-duo__go:hover) .pp-duo__pic::after { opacity: 1; }
}

/* ---------- narrow phones ---------- */
@media (max-width: 359px) {
  .pp-duo { --pp-duo-gap: 18px; }
  .pp-duo .pp-h2 { font-size: 34px; }
  .pp-duo .pp-duo__price { gap: 0 4px; font-size: 12px; }
  .pp-duo .pp-duo__price small { font-size: 12px; letter-spacing: 0; }
  .pp-duo .pp-duo__name { font-size: 20px; }
  .pp-duo .pp-duo__shape { font-size: 13.5px; }
  .pp-duo .pp-duo__price b { font-size: 18px; }
  .pp-duo .pp-outline.pp-duo__go { padding-inline: 10px; font-size: 12.5px; letter-spacing: .06em; }
  .pp-duo .pp-duo__go .pp-outline__arrow { display: none; }
}

/* ---------- 360-379px phones: the uppercase labels need a little less tracking to stay on one line ---------- */
@media (min-width: 360px) and (max-width: 379px) {
  .pp-duo .pp-outline.pp-duo__go { padding-inline: 10px; font-size: 12.5px; letter-spacing: .05em; }
}

/* ---------- large phones and up: cap the consoles, pills fit their label ---------- */
@media (min-width: 480px) {
  .pp-duo { --pp-duo-hmax: 220px; }
  .pp-duo .pp-outline.pp-duo__go { width: auto; min-width: 190px; }
}

/* ---------- tablet: same layout, the shelf gets room ---------- */
@media (min-width: 641px) {
  .pp-duo { --pp-duo-gap: 48px; }
  .pp-duo .pp-duo__name { margin-top: 24px; font-size: 30px; }
  .pp-duo .pp-duo__shape { margin-top: 6px; font-size: 17px; }
  .pp-duo .pp-duo__colours { margin-top: 12px; font-size: 15px; }
  .pp-duo .pp-duo__dots { gap: 4px; }
  .pp-duo .pp-duo__dots i { width: 12px; height: 12px; }
  .pp-duo .pp-duo__price { margin-top: 14px; font-size: 15px; }
  .pp-duo .pp-duo__price b { font-size: 26px; }
  .pp-duo .pp-duo__price small { font-size: 13px; }
  .pp-duo .pp-outline.pp-duo__go { min-height: 48px; margin-top: 16px; padding-inline: 20px; font-size: 13.5px; }
}

/* ---------- desktop: heading on the left, the shelf on the right ---------- */
@media (min-width: 981px) {
  .pp-sec.pp-duo { padding-top: clamp(40px, 4.5vw, 72px); padding-bottom: clamp(56px, 6vw, 88px); }
  .pp-duo { --pp-duo-gap: 64px; --pp-duo-hmax: 300px; --pp-duo-cg: clamp(32px, 5vw, 80px); }
  .pp-duo .pp-duo__name { margin-top: 30px; }
  .pp-duo .pp-duo__grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); column-gap: var(--pp-duo-cg); align-items: center; }
  .pp-duo .pp-duo__intro .pp-lede { max-width: 24ch; }
}
/* With subgrid, the heading stands on the same shelf as the consoles and its intro hangs below the edge,
   level with the consoles' names. */
@supports (grid-template-rows: subgrid) {
  @media (min-width: 981px) {
    .pp-duo .pp-duo__grid { grid-template-rows: repeat(6, auto); row-gap: 0; align-items: stretch; }
    .pp-duo .pp-duo__intro { display: contents; }
    .pp-duo .pp-duo__intro .pp-h2 { position: relative; grid-column: 1; grid-row: 1; align-self: end; padding-bottom: 26px; }
    .pp-duo .pp-duo__intro .pp-lede { grid-column: 1; grid-row: 2 / span 5; align-self: start; margin-top: 30px; }
    .pp-duo .pp-duo__shelf { grid-column: 2; grid-row: 1 / span 6; grid-template-rows: subgrid; }
    /* the shelf runs on under the heading */
    .pp-duo .pp-duo__intro .pp-h2::after {
      content: "";
      position: absolute;
      left: 0;
      right: calc(var(--pp-duo-cg) * -1);
      top: calc(100% - 6px);
      height: calc(6px + var(--pp-duo-face-h));
      background: var(--pp-duo-shelf);
      -webkit-mask-image: linear-gradient(90deg, transparent, rgba(0, 0, 0, .5) 45%, #000);
      mask-image: linear-gradient(90deg, transparent, rgba(0, 0, 0, .5) 45%, #000);
      pointer-events: none;
    }
    .pp-duo .pp-duo__item--classic .pp-duo__pic::before { -webkit-mask-image: none; mask-image: none; }
  }
}

@media (prefers-reduced-motion: reduce) {
  .pp-duo .pp-duo__frame, .pp-duo .pp-duo__pic::after { transition: none; }
}
@media (forced-colors: active) {
  .pp-duo .pp-duo__pic::before, .pp-duo .pp-duo__intro .pp-h2::after { background: CanvasText; height: 1px; margin-top: 0; }
  /* "none" is not accepted for box-reflect, so hide the reflection with a fully transparent mask */
  .pp-duo .pp-duo__frame { -webkit-box-reflect: below 0 linear-gradient(transparent, transparent); }
  .pp-duo .pp-duo__shelf::after { background: CanvasText; }
  .pp-duo .pp-duo__dots i { forced-color-adjust: none; border: 1px solid CanvasText; }
}
