/* Shared presentation board + phone frame for Bela Apps app concepts.
   Each app page sets --board, --board-ink and its own screen styles. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.board {
  margin: 0;
  background: var(--board, #ececef);
  color: var(--board-ink, #1d1d22);
  font: 400 16px/1.55 system-ui, -apple-system, "Segoe UI", sans-serif;
}
.board img { display: block; max-width: 100%; }

/* Back to portfolio pill (also used by website concepts) */
.back-pill {
  position: fixed; left: 16px; bottom: 16px; z-index: 9999;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px 10px 12px; border-radius: 999px;
  background: rgba(20, 22, 30, .88); color: #fff; text-decoration: none;
  font: 600 13px/1 system-ui, -apple-system, "Segoe UI", sans-serif;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .25);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.back-pill svg { width: 16px; height: 16px; }
.back-pill:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

/* Board header */
.board-head {
  max-width: 1200px; margin: 0 auto; padding: 56px 24px 24px;
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 40px; align-items: end;
}
.board-head .tag {
  display: inline-block; font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 6px;
  background: color-mix(in srgb, var(--board-ink) 8%, transparent); margin-bottom: 14px;
}
.board-head h1 { margin: 0; font-size: clamp(40px, 6vw, 64px); line-height: 1; letter-spacing: -0.02em; }
.board-head p { margin: 14px 0 0; max-width: 36em; opacity: .78; }
.specimen { display: grid; gap: 14px; justify-items: start; }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.swatch { display: grid; gap: 6px; font-size: 12px; opacity: .85; }
.swatch i { display: block; width: 52px; height: 52px; border-radius: 12px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); }
.type-sample { font-size: 13px; opacity: .85; }
.type-sample b { display: block; font-size: 34px; line-height: 1.1; opacity: 1; }

/* Device row */
.devices {
  --s: .74;
  display: flex; justify-content: safe center; gap: 28px; overflow-x: auto; padding: 32px 24px 72px;
  max-width: 1440px; margin: 0 auto; scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}
.devices figure { margin: 0; flex: none; scroll-snap-align: center; }
.devices figcaption { margin-top: 14px; font-size: 14px; max-width: calc(390px * var(--s)); opacity: .8; }
.device {
  width: calc(390px * var(--s)); height: calc(844px * var(--s));
  border-radius: calc(54px * var(--s)); overflow: hidden; position: relative;
  box-shadow: 0 0 0 calc(10px * var(--s)) #111, 0 30px 60px rgba(0, 0, 0, .28);
  margin: calc(10px * var(--s));
}
.phone {
  width: 390px; height: 844px; transform: scale(var(--s)); transform-origin: top left;
  position: absolute; inset: 0 auto auto 0; overflow: hidden;
}
.phone .island {
  position: absolute; top: 11px; left: 50%; transform: translateX(-50%);
  width: 120px; height: 34px; border-radius: 20px; background: #000; z-index: 50;
}
.statusbar {
  height: 54px; display: flex; align-items: center; justify-content: space-between;
  padding: 6px 30px 0 34px; font: 600 16px/1 system-ui, -apple-system, sans-serif; position: relative; z-index: 40;
}
.statusbar .sys { display: flex; gap: 6px; align-items: center; }
.statusbar .sys svg { height: 12px; width: auto; fill: currentColor; }
.home-ind {
  position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
  width: 134px; height: 5px; border-radius: 3px; background: currentColor; opacity: .85; z-index: 60;
}

@media (max-width: 800px) {
  .board-head { grid-template-columns: minmax(0, 1fr); padding-top: 40px; }
  .devices { --s: .66; gap: 20px; }
}
@media (max-width: 420px) {
  .devices { --s: .6; padding-inline: 16px; }
  .board-head { padding-inline: 16px; }
}
