/* ==========================================================================
   Product page — Block 09: what's in the box.
   Bento grid: one card per item (drawn in CSS, same flat style as the setup
   strip) + a volt "0 extras" card. Cards fade up once when first in view.
   ========================================================================== */

.pbox {
  padding: 96px var(--gutter);
  background: var(--c-ink);
  color: #fff;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.pbox__inner { max-width: 1160px; margin: 0 auto; }

.pbox__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 32px;
  margin-bottom: 36px;
}

.pbox__head .eyebrow { color: var(--c-accent); }
.pbox__head .display { font-size: clamp(44px, 5.5vw, 80px); }
.pbox__head .display em { font-style: normal; color: var(--c-accent); }

.pbox__count {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.pbox__count b { font-family: var(--font-display); font-size: 20px; font-weight: 400; letter-spacing: 0; color: var(--c-accent); }

/* ---------- bento grid ---------- */

.pbox__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(0, auto);
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pbox__item {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 20px;
  background: #161616;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.pbox__item--wide { grid-column: span 2; }

/* fade up once (class set by pdp-box.js) */
.js-pbox .pbox__item { opacity: 0; transform: translateY(24px); }

.pbox.is-in .pbox__item {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s var(--ease), transform 0.7s var(--ease);
  transition-delay: calc(var(--i, 0) * 0.12s);
}

/* illustration area: flat wall colour, same as the setup strip */
.pbox__art {
  position: relative;
  display: grid;
  place-items: center;
  height: 220px;
  background: #242322;
}

.pbox__item--wide .pbox__art { height: 260px; }

/* your own photo: drop an <img> into .pbox__art and it fills the area, covering the drawing */
.pbox__art > img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pbox__copy {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 14px;
  padding: 20px 22px 24px;
}

.pbox__num {
  grid-row: 1 / 3;
  font: 700 12px/1 var(--font-mono);
  padding-top: 4px;
  color: var(--c-accent);
}

.pbox__copy h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
}

.pbox__copy p { margin: 4px 0 0; font-size: 14px; line-height: 1.45; color: rgba(255, 255, 255, 0.6); }

/* ---------- 1: the display ---------- */

.pb-display {
  position: relative;
  width: 50%;
  aspect-ratio: 2 / 1;
  padding: 2.2%;
  border-radius: 10px;
  background: #0e0e0e;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), 0 20px 40px rgba(0, 0, 0, 0.5);
}

.pb-display__screen {
  position: relative;
  display: grid;
  place-items: center;
  height: 100%;
  overflow: hidden;
  border-radius: 4px;
  background: radial-gradient(circle, #202020 0 1px, transparent 1.4px) 0 0 / 3px 3px, #000;
  font: 700 clamp(14px, 2.4vw, 30px)/1 "Silkscreen", var(--font-mono);
  letter-spacing: 0.06em;
  color: var(--c-accent);
  text-shadow: 0 0 10px rgba(212, 255, 0, 0.6);
}

.pb-display__screen::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, transparent 0 1.1px, #000 1.5px) 0 0 / 3px 3px;
}

/* built-in USB cable trailing off to the right */
.pb-display::after {
  content: "";
  position: absolute;
  top: 60%;
  left: 100%;
  width: 26%;
  height: 22%;
  border: 4px solid #111;
  border-left: 0;
  border-bottom: 0;
  border-radius: 0 40px 0 0;
}

/* ---------- 2: USB power adapter ---------- */

.pb-adapter { position: relative; width: 74px; height: 88px; border-radius: 12px; background: linear-gradient(180deg, #1d1d1d, #090909); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), 0 16px 30px rgba(0, 0, 0, 0.5); }

/* plug prongs on top */
.pb-adapter::before,
.pb-adapter::after {
  content: "";
  position: absolute;
  top: -18px;
  width: 7px;
  height: 20px;
  border-radius: 2px 2px 0 0;
  background: linear-gradient(90deg, #9a9a9a, #e2e2e2, #9a9a9a);
}

.pb-adapter::before { left: 22px; }
.pb-adapter::after { right: 22px; }

/* USB port */
.pb-adapter i {
  position: absolute;
  left: 50%;
  bottom: 16px;
  width: 30px;
  height: 11px;
  border-radius: 2px;
  background: #000;
  box-shadow: inset 0 0 0 2px #2c2c2c;
  transform: translateX(-50%);
}

.pb-adapter i::after { content: ""; position: absolute; inset: 3px 4px 5px; background: var(--c-accent); opacity: 0.85; border-radius: 1px; }

/* ---------- 3: desk stand ---------- */

.pb-kit { position: relative; width: 84px; height: 96px; transform: scale(1.3); }

/* desk stand, side view: a front lip, the base and an angled back leg */
.pb-stand {
  position: absolute;
  left: 4px;
  bottom: 10px;
  width: 80px;
  height: 84px;
}

/* base */
.pb-stand::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 9px;
  border-radius: 3px;
  background: #3a3a3a;
  box-shadow: -2px -12px 0 -2px #3a3a3a inset;
}

/* angled back leg leaning on the base */
.pb-stand::after {
  content: "";
  position: absolute;
  left: 26px;
  bottom: 4px;
  width: 9px;
  height: 84px;
  border-radius: 3px;
  background: #4a4a4a;
  transform: rotate(-18deg);
  transform-origin: bottom center;
}

/* small front lip that holds the display */
.pb-stand i {
  position: absolute;
  left: 2px;
  bottom: 7px;
  width: 9px;
  height: 16px;
  border-radius: 3px 3px 0 0;
  background: #3a3a3a;
}

/* ---------- 4: welcome card ---------- */

.pb-card {
  display: grid;
  justify-items: center;
  gap: 10px;
  width: 128px;
  padding: 16px 14px 14px;
  border-radius: 8px;
  background: #f4f4f0;
  color: var(--c-ink);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.5);
  transform: rotate(-6deg);
}

.pb-card svg { width: 64px; height: 64px; }

.pb-card span { font: 700 8px/1.3 "Silkscreen", var(--font-mono); text-align: center; text-transform: uppercase; }

/* ---------- 5: volt "0 extras" card ---------- */

.pbox__item--zero {
  justify-content: space-between;
  padding: 24px;
  background: var(--c-accent);
  color: var(--c-ink);
  box-shadow: none;
}

.pbox__zero {
  font-family: var(--font-display);
  font-size: clamp(120px, 14vw, 190px);
  line-height: 0.8;
}

.pbox__item--zero h3 {
  margin: 16px 0 0;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
}

.pbox__item--zero p { margin: 8px 0 0; font-size: 14px; line-height: 1.45; color: rgba(0, 0, 0, 0.7); }

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .pbox { padding: 64px var(--gutter); }
  .pbox__grid { grid-template-columns: 1fr 1fr; }
  .pbox__item--wide { grid-column: span 2; }
  .pbox__art { height: 170px; }
  .pbox__item--wide .pbox__art { height: 200px; }
}

@media (max-width: 560px) {
  .pbox__grid { grid-template-columns: 1fr; }
  .pbox__item--wide { grid-column: auto; }
  .pb-display { width: 66%; }
}

@media (prefers-reduced-motion: reduce) {
  .js-pbox .pbox__item { opacity: 1; transform: none; }
}
