/* Demo-Sky: de smalle balk bovenin en het ene welkomstkaartje. Eigen laag bovenop de echte app; de app zelf blijft ongewijzigd.
   De app schuift de hoogte van de balk naar beneden: body krijgt ruimte en het frame (.h-dvh) wordt even veel korter, rekening houdend met de
   zoom die de app zelf zet (stand P: 1,1 op desktop, 1,06 op de telefoon; zie suite/src/stijl.css). */
:root[data-demo] { --demo-balk: 30px; --demo-zoom: 1; }
@media (min-width: 2200px) { :root[data-demo] { --demo-zoom: 1.12; } }
@media (min-width: 2800px) { :root[data-demo] { --demo-zoom: 1.25; } }
@media (min-width: 768px) { :root[data-demo][data-nav="p"] { --demo-zoom: 1.1; } }
@media (max-width: 767px) { :root[data-demo][data-nav="p"] { --demo-zoom: 1.06; } }
html[data-demo] body { padding-top: var(--demo-balk); }
html[data-demo] .h-dvh { height: calc(100dvh / var(--demo-zoom) - var(--demo-balk)) !important; }
html[data-demo][data-toetsenbord] .h-dvh { height: calc(var(--sky-vh, 100dvh) / var(--demo-zoom) - var(--demo-balk)) !important; }
html[data-demo][data-venster] .h-dvh { height: calc(var(--sky-venster, 100dvh) / var(--demo-zoom) - var(--demo-balk)) !important; }

.demo-balk {
  position: fixed; inset: 0 0 auto 0; z-index: 2147483000; height: var(--demo-balk);
  display: flex; align-items: center; justify-content: center; gap: 10px; padding: 0 12px;
  font: 500 12.5px/1 Geist, "Geist Variable", ui-sans-serif, system-ui, -apple-system, sans-serif; letter-spacing: 0.005em;
  color: rgba(236, 238, 255, 0.86);
  background: linear-gradient(90deg, rgba(14, 20, 54, 0.94), rgba(30, 16, 58, 0.94) 50%, rgba(14, 20, 54, 0.94));
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.07);
}
.demo-balk::after { /* het randje van Sky's licht */
  content: ""; position: absolute; inset: auto 0 0 0; height: 1px; opacity: 0.75;
  background: linear-gradient(90deg, transparent, #1762f4 20%, #d633be 45%, #7530e8 65%, #00cbde 85%, transparent);
}
.demo-balk-stip { position: relative; width: 8px; height: 8px; flex: none; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #8fd8ff, #7530e8 55%, #d633be); box-shadow: 0 0 10px rgba(117, 48, 232, 0.8); }
.demo-balk-stip::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid rgba(143, 216, 255, 0.5); animation: demo-adem 2.8s ease-in-out infinite; }
@keyframes demo-adem { 0%, 100% { transform: scale(0.6); opacity: 0; } 50% { transform: scale(1); opacity: 1; } }
.demo-balk b { font-weight: 650; color: #fff; letter-spacing: 0.04em; text-transform: uppercase; font-size: 11px; }
.demo-balk-tekst { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.demo-balk-sep { opacity: 0.35; }
.demo-balk a, .demo-balk button {
  all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 9px; border-radius: 999px; white-space: nowrap;
  color: #fff; font-size: 12px; font-weight: 550; background: rgba(255, 255, 255, 0.09); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  transition: background-color 160ms ease, transform 160ms ease;
}
.demo-balk a:hover, .demo-balk button:hover { background: rgba(255, 255, 255, 0.16); }
.demo-balk a:active, .demo-balk button:active { transform: scale(0.97); }
.demo-balk a:focus-visible, .demo-balk button:focus-visible { outline: 2px solid #8fd8ff; outline-offset: 1px; }
.demo-balk-knoppen { display: inline-flex; gap: 6px; flex: none; }
.demo-kort { display: none; }
@media (max-width: 640px) {
  .demo-balk { justify-content: space-between; gap: 8px; font-size: 12px; }
  .demo-lang { display: none; }
  .demo-kort { display: inline; }
  .demo-balk-knoppen .demo-opnieuw { display: none; }
}

/* Eén keer uitleggen (Daan: «allemaal demo data gewoon één keertje uitleggen»). */
.demo-welkom {
  position: fixed; z-index: 2147483001; right: 20px; bottom: 20px; width: min(380px, calc(100vw - 32px)); box-sizing: border-box;
  padding: 18px 18px 16px; border-radius: 20px; color: #eef0ff;
  font: 400 14px/1.45 Geist, "Geist Variable", ui-sans-serif, system-ui, -apple-system, sans-serif;
  background: linear-gradient(160deg, rgba(23, 30, 78, 0.92), rgba(40, 18, 70, 0.92));
  -webkit-backdrop-filter: saturate(1.4) blur(18px); backdrop-filter: saturate(1.4) blur(18px);
  box-shadow: 0 24px 60px -12px rgba(6, 8, 30, 0.7), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  transform-origin: bottom right; animation: demo-in 420ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes demo-in { from { opacity: 0; transform: translateY(12px) scale(0.97); } to { opacity: 1; transform: none; } }
.demo-welkom.weg { animation: demo-uit 220ms ease-in both; }
@keyframes demo-uit { to { opacity: 0; transform: translateY(8px) scale(0.98); } }
.demo-welkom h2 { margin: 0 0 6px; font-size: 17px; line-height: 1.25; font-weight: 600; color: #fff; letter-spacing: -0.01em; }
.demo-welkom p { margin: 0 0 12px; color: rgba(236, 238, 255, 0.78); }
.demo-welkom ul { margin: 0 0 14px; padding: 0; list-style: none; display: grid; gap: 6px; }
.demo-welkom li a {
  all: unset; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 12px; font-size: 13.5px; color: #fff;
  background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); transition: background-color 160ms ease;
}
.demo-welkom li a:hover { background: rgba(255, 255, 255, 0.12); }
.demo-welkom li a::before { content: "↗"; opacity: 0.6; font-size: 12px; }
.demo-welkom-rij { display: flex; justify-content: flex-end; gap: 8px; }
.demo-welkom button {
  all: unset; cursor: pointer; height: 34px; padding: 0 16px; border-radius: 999px; font-weight: 600; font-size: 13.5px;
  background: linear-gradient(135deg, #1762f4, #7530e8 60%, #d633be); color: #fff; box-shadow: 0 6px 18px -6px rgba(117, 48, 232, 0.8);
  transition: transform 160ms ease;
}
.demo-welkom button:active { transform: scale(0.97); }
.demo-welkom button:focus-visible { outline: 2px solid #8fd8ff; outline-offset: 2px; }
@media (max-width: 640px) { .demo-welkom { right: 16px; left: 16px; width: auto; bottom: calc(84px + env(safe-area-inset-bottom)); } }
@media (prefers-reduced-motion: reduce) { .demo-balk-stip::after, .demo-welkom, .demo-welkom.weg { animation: none; } }
