/* White-label page: the demo stage. Always dark, like a code editor, so it stands apart from the article. */
.wl { margin: 34px 0 0; }
.wl-stage { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) auto minmax(0, .85fr); gap: clamp(18px, 3vw, 44px); align-items: center; padding: clamp(18px, 3vw, 40px); border-radius: var(--radius); background: radial-gradient(120% 90% at 20% 0%, #1e1f26 0%, #0e0e11 60%); color: #e9e8e4; overflow: hidden; border: 1px solid rgba(255,255,255,.08); }
.wl-code { font: 13px/1.75 var(--mono); border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.09); overflow: hidden; min-width: 0; }
.wl-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid rgba(255,255,255,.08); color: #8d8f98; font-size: 12px; }
.wl-bar i { width: 9px; height: 9px; border-radius: 50%; background: #3a3b42; }
.wl-bar span { margin-left: 8px; }
.wl-code pre { margin: 0; padding: 14px 18px 18px; overflow-x: auto; white-space: pre; }
.wl-code .k { color: #8ab4ff; } .wl-code .s { color: #e8c07a; } .wl-code .b { color: #7fd6a1; } .wl-code .p { color: #7d808a; }
.wl-code .sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; box-shadow: 0 0 0 1px rgba(255,255,255,.25); }
.wl-code .hit { animation: wl-hit .9s ease-out; }
@keyframes wl-hit { from { background: rgba(255,255,255,.22); } to { background: transparent; } }

/* the phone: same layout every time, colours and name come from the selected entry */
.wl-phone { width: clamp(190px, 19vw, 250px); perspective: 1200px; }
.wl-frame { padding: 7px; border-radius: 36px; background: linear-gradient(135deg, #f3f3f5, #a9abb1 50%, #e4e5e8); box-shadow: 0 40px 70px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.2) inset; transform: rotateY(-10deg) rotateX(3deg); }
.wl-app { --c1: var(--brand); --c2: var(--brand); --on: #fff; aspect-ratio: 9 / 18.4; border-radius: 30px; background: #fff; color: #161616; border: 4px solid #0b0b0b; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto auto 1fr auto; gap: 8px; padding: 8px 10px 10px; overflow: hidden; font: 600 10px/1.2 var(--sans); }
.wl-status { display: flex; justify-content: space-between; align-items: center; font-size: 9px; padding: 2px 4px 0; }
.wl-notch { width: 46px; height: 12px; border-radius: 9px; background: #0b0b0b; }
.wl-head { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 8px 10px; border-radius: 12px; background: var(--c1); color: var(--on); transition: background .5s ease, color .5s ease; }
.wl-head b { min-width: 0; flex: 1; font: 800 11px/1.1 var(--display); letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wl-app.upper .wl-head b, .wl-app.upper .wl-chips i { text-transform: uppercase; }
.wl-badge { flex: none; padding: 3px 6px; border-radius: 999px; background: rgba(255,255,255,.22); font-size: 8px; }
.wl-app:not(.sched) .wl-badge { visibility: hidden; }
.wl-hero { display: grid; align-content: end; gap: 8px; min-height: 92px; padding: 10px; border-radius: 14px; background: linear-gradient(145deg, var(--c1), var(--c2)); color: var(--on); transition: background .5s ease, color .5s ease; }
.wl-hero span { font: 800 13px/1.1 var(--display); max-width: 11ch; }
.wl-cta { justify-self: start; font-style: normal; padding: 5px 10px; border-radius: 999px; background: var(--on); color: var(--c1); font-size: 9px; font-weight: 800; }
.wl-chips { display: flex; gap: 5px; overflow: hidden; }
.wl-chips i { font-style: normal; flex: none; padding: 4px 8px; border-radius: 999px; border: 1px solid #d7d7d7; font-size: 8.5px; }
.wl-chips i:first-child { background: var(--c1); border-color: var(--c1); color: var(--on); transition: background .5s ease; }
.wl-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.wl-cards div { border-radius: 12px; background: linear-gradient(160deg, color-mix(in srgb, var(--c1) 22%, #fff), color-mix(in srgb, var(--c2) 12%, #f1f1f1)); min-height: 64px; transition: background .5s ease; }
.wl-tabs { display: flex; justify-content: space-around; padding-top: 6px; border-top: 1px solid #ececec; }
.wl-tabs i { width: 14px; height: 14px; border-radius: 5px; background: #cfcfcf; }
.wl-tabs i:nth-child(2) { background: var(--c1); transition: background .5s ease; }
.wl-app.swap > * { animation: wl-pop .45s cubic-bezier(.16,1,.3,1); }
@keyframes wl-pop { from { opacity: .35; transform: translateY(5px) scale(.985); } to { opacity: 1; transform: none; } }

.wl-side { display: grid; gap: 14px; justify-items: start; min-width: 0; }
.wl-count { margin: 0; display: grid; gap: 4px; }
.wl-count b { font: 900 clamp(64px, 8vw, 120px)/.85 var(--display); font-stretch: 125%; letter-spacing: -.04em; color: #fff; }
.wl-count span { color: #9a9ca5; font: 500 13px/1.3 var(--mono); }
.wl-note { margin: 0; color: #b9bbc2; font-size: 15px; max-width: 34ch; }
.wl-note code, .wl-ver code { font-family: var(--mono); color: #e8c07a; font-size: .92em; }
.wl-ver { margin: 0; color: #8d8f98; font: 500 12px/1.4 var(--mono); }
.wl-ctl { display: flex; gap: 8px; flex-wrap: wrap; }
.wl-ctl button { height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,.28); background: transparent; color: #fff; font: 500 13px/1 var(--sans); cursor: pointer; }
.wl-ctl button:hover { background: #fff; color: #111; }

/* the wall: every live app as a tile in its own brand colour */
.wl-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(34px, 1fr)); gap: 6px; margin: 14px 0 0; padding: clamp(14px, 2vw, 22px); border-radius: var(--radius); border: 1px solid var(--line-2); background: var(--card); }
.wl-tile { aspect-ratio: 1; border: 0; padding: 0; border-radius: 28%; cursor: pointer; background: linear-gradient(145deg, var(--c1), var(--c2)); box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); transition: transform .25s cubic-bezier(.16,1,.3,1), box-shadow .25s ease; animation: wl-in .5s cubic-bezier(.16,1,.3,1) backwards; animation-delay: calc(var(--i) * 4ms); }
.wl-tile:hover { transform: scale(1.35); z-index: 2; position: relative; }
.wl-tile[aria-current="true"] { transform: scale(1.35); z-index: 2; position: relative; box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--ink); }
@keyframes wl-in { from { opacity: 0; transform: scale(.4); } }

@media (max-width: 960px) {
  .wl-stage { grid-template-columns: 1fr; justify-items: center; }
  .wl-code, .wl-side { width: 100%; }
  .wl-phone { order: -1; width: min(240px, 60vw); }
  .wl-frame { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .wl-tile, .wl-app.swap > *, .wl-code .hit { animation: none; }
  .wl-frame { transform: none; }
  .wl-head, .wl-hero, .wl-cards div { transition: none; }
}
