/* Demo only: the thin ribbon above the app's own top bar, and the offsets it needs. */
:root { --demo-rib: 28px; }
:root.demo-noribbon { --demo-rib: 0px; }
.demo-noribbon .demo-ribbon { display: none; }

.demo-ribbon {
  position: sticky; top: 0; z-index: 45; flex: none;
  height: var(--demo-rib); display: flex; align-items: center; gap: 10px; padding: 0 10px 0 14px;
  background: var(--brand-navy-2); color: var(--topbar-text-2); border-bottom: 1px solid var(--topbar-hairline);
  font-size: 12.5px; line-height: 16px; white-space: nowrap; overflow: hidden;
}
.demo-tag { flex: none; padding: 1px 8px; border-radius: var(--r-pill, 999px); background: var(--brand-orange); color: #fff;
  font-size: 10.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.demo-what { flex: none; }
.demo-hint { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; text-align: center; color: var(--topbar-text); }
.demo-hint b { color: var(--brand-orange-2); font-weight: 600; }
.demo-btn { flex: none; height: 20px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--topbar-control-line);
  background: var(--topbar-control); color: var(--topbar-text); font: inherit; font-size: 12px; cursor: pointer; }
.demo-btn:hover { background: var(--topbar-control-hover); }
.demo-btn:focus-visible { outline: none; box-shadow: var(--focus-ring); }

/* the app's top bar and everything placed under it move down by the ribbon */
.topbar { top: var(--demo-rib); }
main#view { min-height: calc(100vh - var(--topbar-h) - var(--demo-rib)); }
.gear-menu { top: calc(var(--topbar-h) + var(--demo-rib) - 6px); }
.drawer { top: calc(var(--topbar-h) + var(--demo-rib)); }
.overlay.camera { inset: calc(var(--topbar-h) + var(--demo-rib)) 0 0 0; }
.beat-pop { top: calc(var(--topbar-h) + var(--demo-rib) - 4px); }

/* no lock screen in the demo */
#lockBtn { display: none !important; }

@media (max-width: 760px) {
  .demo-what { display: none; }
  .demo-hint { text-align: left; }
}
@media (max-width: 420px) {
  .demo-hint { display: none; }
  .demo-ribbon { justify-content: space-between; }
}

/* the scenario picker in the ribbon */
.demo-pick { flex: none; display: inline-flex; }
.demo-pick .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.demo-pick select { height: 20px; padding: 0 22px 0 9px; border-radius: 999px; border: 1px solid var(--topbar-control-line); background: var(--topbar-control)
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23fff' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 8px center / 9px 6px;
  color: var(--topbar-text); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; appearance: none; -webkit-appearance: none; }
.demo-pick select:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.demo-pick option { color: #0E1325; background: #fff; }

/* the idle poster: the tablet on the counter between conversations (demo-ui.js) */
.demo-poster { position: fixed; inset: var(--demo-rib) 0 0 0; z-index: 80; display: grid; grid-template-rows: auto 1fr auto; padding: clamp(18px, 3.2vw, 44px);
  background: radial-gradient(120% 90% at 85% 55%, #1B2346 0%, #0A0F24 55%, #060916 100%); color: #fff; cursor: pointer; overflow: hidden;
  animation: dp-in .35s ease both; }
.demo-poster.out { animation: dp-out .35s ease both; }
@keyframes dp-in { from { opacity: 0; } }
@keyframes dp-out { to { opacity: 0; } }
.dp-top { display: flex; justify-content: space-between; align-items: center; font-size: clamp(14px, 1.6vw, 20px); font-weight: 600; color: #C9CEDC; }
.dp-brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; }
.dp-brand::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--brand-lime, #C6FD64); box-shadow: 0 0 0 4px rgba(198,253,100,.18); }
.dp-clock { font-variant-numeric: tabular-nums; }
.dp-slides { position: relative; min-height: 0; }
.dp-slide { position: absolute; inset: 0; display: grid; grid-template-columns: 1.25fr .75fr; gap: 3vw; align-items: center; opacity: 0; transform: translateY(14px);
  transition: opacity .6s ease, transform .6s ease; }
.dp-slide.on { opacity: 1; transform: none; }
.dp-kicker { display: inline-block; font-size: clamp(12px, 1.3vw, 16px); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-orange-2, #FF7A45); }
.dp-slide h1 { margin: .35em 0 0; font-size: clamp(30px, 5.6vw, 76px); line-height: 1; font-weight: 800; letter-spacing: -.035em; text-wrap: balance; }
.dp-slide p { margin: .8em 0 0; font-size: clamp(15px, 2vw, 26px); line-height: 1.35; color: #C9CEDC; max-width: 30ch; }
.dp-slide img { width: 100%; max-height: 62vh; object-fit: contain; filter: drop-shadow(0 30px 40px rgba(0,0,0,.35)); }
.dp-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.dp-tap { display: inline-flex; align-items: center; gap: 10px; padding: .7em 1.2em; border-radius: 999px; background: var(--brand-orange, #FF5A1F); font-size: clamp(14px, 1.7vw, 21px); font-weight: 700;
  box-shadow: 0 12px 30px -10px rgba(255,90,31,.8); animation: dp-pulse 2.4s ease-in-out infinite; }
@keyframes dp-pulse { 50% { box-shadow: 0 12px 30px -10px rgba(255,90,31,.8), 0 0 0 10px rgba(255,90,31,.12); } }
.dp-dots { display: flex; gap: 8px; }
.dp-dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.25); transition: background .3s, width .3s; }
.dp-dots i.on { width: 26px; border-radius: 9px; background: #fff; }
.dp-by { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: #9CA3B8; }
.dp-by img { width: 22px; height: 22px; }
@media (max-width: 640px) { .dp-slide { grid-template-columns: 1fr; } .dp-slide img { display: none; } .dp-dots { display: none; } }
