/* ==========================================================================
   Screen showcase (index3.html) — the display on a blank background with buttons
   around it that change its LED screen (assets/showcase.js). Desktop: three
   buttons each side; phones: a grid under the display.
   ========================================================================== */

.showcase {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 56px var(--gutter) 64px;
  background: #fff;
}

.showcase__hint { margin: 0 0 28px; color: rgba(0, 0, 0, 0.55); text-align: center; }

.showcase__stage {
  position: relative;
  width: min(740px, 52vw);   /* leaves room for the buttons either side down to 990px */
}

.showcase__device { filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.22)); }

/* the buttons hang off the display's sides */
.showcase__tags { position: absolute; inset: 0; }

.showcase__tag {
  position: absolute;
  top: var(--y);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(10, 10, 10, 0.14);
  border-radius: 999px;
  background: #fff;
  color: var(--c-ink);
  font: 600 13px/1 var(--font-body);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  white-space: nowrap;
  transform: translateY(-50%);
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

.showcase__tag::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.45;
}

/* leader line to the display */
.showcase__tag::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 40px;
  height: 1px;
  background: rgba(10, 10, 10, 0.18);
}

.showcase__tag--l { right: calc(100% + 40px); flex-direction: row-reverse; }
.showcase__tag--l::after { left: 100%; }
.showcase__tag--r { left: calc(100% + 40px); }
.showcase__tag--r::after { right: 100%; }

.showcase__tag:hover { border-color: var(--c-ink); }

.showcase__tag[aria-pressed="true"] { border-color: var(--c-ink); background: var(--c-ink); color: var(--c-accent); }
.showcase__tag[aria-pressed="true"]::before { opacity: 1; }
.showcase__tag[aria-pressed="true"]::after { background: var(--c-ink); }

/* tablets and phones: display full width, buttons in a grid underneath */
@media (max-width: 989px) {
  .showcase__stage { width: min(560px, 100%); }
  .showcase__tags {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 32px;
  }
  .showcase__tag { position: static; justify-content: center; padding: 0 12px; font-size: 12px; transform: none; }
  .showcase__tag--l { flex-direction: row; }
  .showcase__tag::after { display: none; }
}

/* ==========================================================================
   What's in the box (index3.html) — the photo with numbered markers + the list,
   as a plain section (same look as the end of the 3D animation on index.html)
   ========================================================================== */

.inbox3 { padding: 40px var(--gutter) 96px; background: #fff; color: var(--c-ink); }

.inbox3__inner {
  display: grid;
  grid-template-columns: minmax(0, 34fr) minmax(0, 58fr);
  gap: 48px;
  align-items: center;
  max-width: 1320px;
  margin: 0 auto;
}

.inbox3__figure { position: relative; order: 2; margin: 0; }

.inbox3__figure img {
  display: block;
  width: 100%;
  height: auto;
  /* soften the photo edges into the white */
  -webkit-mask-image: radial-gradient(ellipse 72% 72% at 50% 50%, #000 62%, transparent 100%);
  mask-image: radial-gradient(ellipse 72% 72% at 50% 50%, #000 62%, transparent 100%);
}

.inbox3__marker {
  position: absolute;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin: -14px 0 0 -14px;
  border-radius: 50%;
  background: var(--c-accent);
  color: var(--c-ink);
  box-shadow: 0 0 0 4px rgba(212, 255, 0, 0.3);
  font: 700 13px/1 var(--font-mono);
}

.inbox3__copy .eyebrow { color: rgba(0, 0, 0, 0.6); }
.inbox3__copy .display { font-size: clamp(48px, 5.4vw, 88px); margin-bottom: 28px; }

.inbox3__list { display: grid; gap: 18px; margin: 0; padding: 0; list-style: none; }
.inbox3__list li { display: grid; grid-template-columns: 34px 1fr; gap: 14px; align-items: start; }

.inbox3__num {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--c-ink);
  color: var(--c-accent);
  font: 700 14px/1 var(--font-mono);
}

.inbox3__list h3 { margin: 4px 0 2px; font-size: 16px; font-weight: 700; }
.inbox3__list p { margin: 0; font-size: 14px; line-height: 1.45; color: rgba(0, 0, 0, 0.62); }

/* tablets and phones: photo on top, list underneath */
@media (max-width: 989px) {
  .inbox3 { padding: 24px var(--gutter) 64px; }
  .inbox3__inner { grid-template-columns: 1fr; gap: 16px; }
  .inbox3__figure { order: 0; }
  .inbox3__copy .display { font-size: 44px; margin-bottom: 16px; }
  .inbox3__list { gap: 12px; }
  .inbox3__list p { font-size: 13px; }
  .inbox3__marker { width: 22px; height: 22px; margin: -11px 0 0 -11px; font-size: 11px; }
}
