/* ===========================================================================
   Baas van de Club — demo voor DJ's (rondleiding)
   ---------------------------------------------------------------------------
   Eén telefoon met de echte app, en ernaast (op een telefoon: eronder) de
   uitleg van de huidige stap: wie je bent, één titel, één zin, één knop.
   Wat ín de telefoon staat is de app zelf met zijn eigen app.css; hier staat
   alleen de pagina eromheen. Look als de landingspagina: Anton, geel, roze.
   =========================================================================== */

:root {
	--bg: #0b0712; --sheet: #150d24; --ink: #f7f4fc; --muted: #b9b0cc; --line: rgba(255,255,255,.12);
	--pink: #ff3d6e; --blue: #9ccbff; --yellow: #ffd633; --dark: #0b0712;
	--f-display: 'Anton', 'Arial Narrow', Impact, sans-serif;
	--f-body: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--ease: cubic-bezier(.22,.61,.36,1);
	--gutter: clamp(16px, 4vw, 40px);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column;
	color: var(--ink); font: 400 17px/1.6 var(--f-body); -webkit-font-smoothing: antialiased; overflow-x: hidden;
	background:
		radial-gradient(700px 520px at 78% 42%, rgba(139,92,246,.28), transparent 65%),
		radial-gradient(600px 420px at 12% 8%, rgba(255,61,110,.14), transparent 60%),
		var(--bg);
}
h1, p, ol { margin: 0; padding: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

/* ---- Bovenbalk --------------------------------------------------------- */
.top { flex: none; display: flex; align-items: center; justify-content: space-between; padding: 14px var(--gutter); }
.top__logo img { display: block; width: 54px; height: auto; }
.top__join { color: var(--ink); font-weight: 700; font-size: 15px; text-decoration: none; padding: 9px 16px; border: 1.5px solid var(--line); border-radius: 999px; transition: border-color .2s, background .2s; }
.top__join:hover { border-color: var(--yellow); background: rgba(255,214,51,.08); }

/* ---- Opzet ------------------------------------------------------------- */
.tour {
	flex: 1; width: 100%; max-width: 1080px; margin: 0 auto; padding: 8px var(--gutter) 36px;
	display: grid; grid-template-columns: minmax(0, 1fr) 372px; gap: clamp(32px, 7vw, 100px); align-items: center;
}
.cap { order: 1; }
.device { order: 2; }

/* ---- Uitleg ------------------------------------------------------------ */
.progress { list-style: none; display: flex; gap: 7px; max-width: 260px; margin-bottom: clamp(22px, 3.4vw, 40px); }
.progress li { flex: 1; height: 5px; border-radius: 3px; background: var(--line); transition: background .35s; }
.progress li.is-done, .progress li.is-now { background: var(--yellow); }
.progress li.is-now { animation: now 1.6s ease-in-out infinite; }
@keyframes now { 50% { opacity: .45; } }

.cap__body.is-in { animation: cap-in .5s var(--ease); }
@keyframes cap-in { from { opacity: 0; transform: translateY(12px); } }
.cap__role {
	display: inline-flex; align-items: center; gap: 9px; font-weight: 800; font-size: 13px; line-height: 1;
	letter-spacing: .14em; text-transform: uppercase; color: var(--blue);
	padding: 8px 13px 8px 11px; border-radius: 999px; background: rgba(156,203,255,.1); border: 1px solid rgba(156,203,255,.28);
}
.cap__role::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.cap__title {
	margin-top: 18px; font: 400 clamp(46px, 6.2vw, 84px)/.96 var(--f-display); text-transform: uppercase; letter-spacing: .005em; text-wrap: balance;
	text-shadow: -.035em .03em 0 var(--pink), .03em -.012em 0 rgba(156,203,255,.85);
}
.cap__text { margin-top: 20px; max-width: 460px; font-size: clamp(18px, 1.7vw, 21px); line-height: 1.5; color: #e4ddf1; text-wrap: pretty; }

.cap__nav { display: none; align-items: center; flex-wrap: wrap; gap: 16px 20px; margin-top: clamp(26px, 3.6vw, 40px); }
body:not(.is-end):not(.is-sandbox) .cap__nav--tour, body.is-end .cap__nav--end, body.is-sandbox .cap__nav--sandbox { display: flex; }
body.is-end .progress li, body.is-sandbox .progress li { background: var(--yellow); animation: none; }
.cap__count { color: var(--muted); font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; }
.cap__link { background: none; border: 0; padding: 6px 2px; color: var(--muted); font-weight: 700; font-size: 15px; text-decoration: underline; text-underline-offset: 3px; }
.cap__link:hover { color: var(--ink); }

.btn {
	display: inline-flex; align-items: center; justify-content: center; text-decoration: none;
	font: 400 22px/1 var(--f-display); letter-spacing: .04em; text-transform: uppercase;
	padding: 18px 34px 17px; border: 2px solid var(--dark); border-radius: 12px;
	background: var(--yellow); color: var(--dark); box-shadow: 5px 5px 0 var(--pink);
	transition: transform .15s var(--ease), box-shadow .15s var(--ease);
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--pink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--pink); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); box-shadow: 5px 5px 0 rgba(156,203,255,.5); }
.btn--ghost:hover { box-shadow: 7px 7px 0 var(--blue); }
.btn--sm { font-size: 17px; padding: 13px 20px 12px; box-shadow: 4px 4px 0 var(--pink); }

.switch { display: flex; gap: 3px; padding: 4px; border-radius: 13px; background: rgba(255,255,255,.1); }
.switch button { border: 0; background: transparent; color: var(--muted); font-weight: 800; font-size: 15px; line-height: 1; min-width: 64px; padding: 12px 14px; border-radius: 9px; }
.switch button[aria-selected="true"] { background: var(--ink); color: var(--dark); }

/* ---- Telefoon ---------------------------------------------------------- */
.device { position: relative; justify-self: center; width: 100%; max-width: 372px; }
.device__role {
	position: absolute; z-index: 5; top: -15px; left: 50%; translate: -50% 0; white-space: nowrap;
	font-weight: 800; font-size: 12.5px; line-height: 1; letter-spacing: .1em; text-transform: uppercase;
	color: var(--dark); background: var(--yellow); padding: 8px 13px; border-radius: 999px; border: 2px solid var(--dark);
}
.device__screen {
	position: relative; height: min(720px, calc(100vh - 190px)); height: min(720px, calc(100dvh - 190px)); min-height: 460px;
	background: #05030a; border: 3px solid #2f2740; border-radius: 44px; overflow: hidden;
	box-shadow: 0 0 0 1px rgba(255,255,255,.05), 0 40px 90px -30px rgba(139,92,246,.75), 0 0 120px -30px rgba(255,61,110,.35);
}
.device__screen iframe, .shield, .scan { position: absolute; inset: 11px; width: calc(100% - 22px); height: calc(100% - 22px); border: 0; border-radius: 31px; }
.device__screen iframe { display: block; background: #0a0710; opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility 0s .4s; }
body[data-show="guest"] #frame-guest, body[data-show="dj"] #frame-dj { opacity: 1; visibility: visible; transition: opacity .4s var(--ease); }
/* Tijdens de uitleg doet de app het zelf; de bezoeker hoeft (en kan) niets aan te raken. */
.shield { z-index: 3; }
body.is-sandbox .shield { display: none; }

.scan { z-index: 4; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 24px; text-align: center;
	background: radial-gradient(420px 280px at 50% -6%, rgba(124,58,237,.5), transparent 65%), #0e0a18; }
.scan__eyebrow { font: 800 12.5px/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--dark); background: var(--yellow); padding: 7px 11px; border-radius: 999px; }
.scan__hint { font: 400 30px/1.02 var(--f-display); text-transform: uppercase; }
.scan__small { color: #a89fc0; font-size: 14px; }
/* Zoekerhoekjes rond de QR-code, zoals in een camera. */
.scan__frame {
	--c: var(--yellow); --l: 30px; --t: 3px; position: relative; padding: 14px;
	background:
		linear-gradient(var(--c), var(--c)) left top / var(--l) var(--t) no-repeat, linear-gradient(var(--c), var(--c)) left top / var(--t) var(--l) no-repeat,
		linear-gradient(var(--c), var(--c)) right top / var(--l) var(--t) no-repeat, linear-gradient(var(--c), var(--c)) right top / var(--t) var(--l) no-repeat,
		linear-gradient(var(--c), var(--c)) left bottom / var(--l) var(--t) no-repeat, linear-gradient(var(--c), var(--c)) left bottom / var(--t) var(--l) no-repeat,
		linear-gradient(var(--c), var(--c)) right bottom / var(--l) var(--t) no-repeat, linear-gradient(var(--c), var(--c)) right bottom / var(--t) var(--l) no-repeat;
}
.scan__line { position: absolute; left: 14px; right: 14px; top: 14px; height: 3px; border-radius: 2px; background: var(--pink); box-shadow: 0 0 14px 3px rgba(255,61,110,.7); animation: scan 2.2s ease-in-out infinite; }
@keyframes scan { 50% { transform: translateY(176px); } }
.qr { width: 180px; aspect-ratio: 1; display: grid; grid-template-columns: repeat(17, 1fr); background: #fff; padding: 11px; border-radius: 10px; }
.qr i.on { background: #0b0712; }

.foot { flex: none; border-top: 1px solid var(--line); padding: 18px var(--gutter) 24px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: 14px; color: #8f86a3; }
.foot a { color: var(--muted); }

/* ---- Computerweergave (alleen op een breed scherm) ----------------------
   Het dashboard in een laptop: de app wordt op 960px breed getekend (zijn
   echte brede indeling) en verkleind tot de breedte van het scherm in beeld.
   De schaal (--s) zet demo.js. */
.device__pick, .device__foot { display: none; }
@media (min-width: 1100px) {
	.device__pick { display: flex; justify-content: center; gap: 3px; width: max-content; margin: 22px auto 0; padding: 4px; border-radius: 12px; background: rgba(255,255,255,.08); }
	.device__pick button { border: 0; background: transparent; color: var(--muted); font-weight: 700; font-size: 14px; line-height: 1; padding: 9px 14px; border-radius: 8px; }
	.device__pick button[aria-selected="true"] { background: var(--ink); color: var(--dark); }
	body[data-show="guest"] .device__pick { visibility: hidden; }

	body.is-laptop .tour { max-width: 1320px; grid-template-columns: minmax(300px, 1fr) minmax(0, 780px); gap: clamp(32px, 4vw, 64px); }
	body.is-laptop .device { max-width: 780px; }
	body.is-laptop .cap__title { font-size: clamp(42px, 4.6vw, 66px); }
	body.is-laptop .device__screen { height: auto; min-height: 0; aspect-ratio: 16 / 10.4; border: 10px solid #1d1629; border-radius: 18px; }
	body.is-laptop .device__screen iframe {
		inset: 0 auto auto 0; width: 960px; height: calc(100% / var(--s, 1)); border-radius: 0;
		transform: scale(var(--s, 1)); transform-origin: 0 0;
	}
	body.is-laptop .shield, body.is-laptop .scan { inset: 0; width: 100%; height: 100%; border-radius: 0; }
	/* De voet van de laptop. */
	body.is-laptop .device__foot { display: block; height: 14px; margin: 0 -4.5%; border-radius: 2px 2px 16px 16px;
		background: linear-gradient(180deg, #3d3254, #1d1629); box-shadow: 0 22px 44px -12px rgba(139,92,246,.65); }
}

/* ---- Telefoon en tablet staand -----------------------------------------
   De app bovenaan, schermbreed en zonder rand (de bezoeker houdt al een
   telefoon vast); de uitleg als blad eronder. De pagina is precies zo hoog
   als het zichtbare scherm (demo.js) en scrolt zelf niet. */
@media (max-width: 860px) {
	html, body { height: 100%; overscroll-behavior: none; }
	body { position: fixed; inset: 0 0 auto 0; height: 100vh; height: 100dvh; min-height: 0; overflow: hidden; background: var(--bg); }
	.top, .foot { display: none; }
	.tour { display: flex; flex-direction: column; gap: 0; padding: 0; max-width: none; min-height: 0; }

	.device { order: 1; flex: 1; min-height: 0; max-width: none; }
	.device__screen { height: 100%; min-height: 0; border: 0; border-radius: 0; box-shadow: none; background: #0a0710; }
	.device__screen iframe, .shield, .scan { inset: 0; width: 100%; height: 100%; border-radius: 0; }
	.device__role { display: none; } /* het blad eronder zegt al wie je bent */
	.scan { padding-bottom: 40px; }
	.scan__hint { font-size: 26px; }
	.qr { width: 150px; }
	@keyframes scan { 50% { transform: translateY(146px); } }

	.cap { order: 2; flex: none; position: relative; z-index: 6; padding: 14px 18px calc(16px + env(safe-area-inset-bottom));
		background: var(--sheet); border-top: 1px solid rgba(255,255,255,.14); border-radius: 22px 22px 0 0; margin-top: -18px; box-shadow: 0 -18px 40px rgba(0,0,0,.55); }
	.progress { max-width: none; margin-bottom: 14px; gap: 5px; }
	.progress li { height: 4px; }
	.cap__role { font-size: 11px; padding: 6px 10px 6px 9px; gap: 7px; }
	.cap__role::before { width: 6px; height: 6px; }
	.cap__title { margin-top: 10px; font-size: clamp(30px, 9vw, 40px); }
	.cap__text { margin-top: 8px; font-size: 15.5px; line-height: 1.45; max-width: none; }
	.cap__nav { margin-top: 14px; gap: 10px 14px; }
	.cap__nav--tour .btn { flex: 1; font-size: 20px; padding: 15px 20px 14px; }
	.cap__nav--end .btn { flex: 1 1 100%; font-size: 19px; padding: 14px 18px 13px; }
	.cap__nav--end .cap__link { margin: 0 auto; }
	.btn { box-shadow: 4px 4px 0 var(--pink); }
	.btn--ghost { box-shadow: 4px 4px 0 rgba(156,203,255,.5); }

	/* Zelf proberen: het blad krimpt tot één regel, de app krijgt de ruimte. */
	body.is-sandbox .cap { padding-top: 10px; margin-top: 0; border-radius: 0; }
	body.is-sandbox .progress, body.is-sandbox .cap__body { display: none; }
	body.is-sandbox .cap__nav { margin-top: 0; flex-wrap: nowrap; justify-content: space-between; }
	body.is-sandbox .btn--sm { font-size: 15px; padding: 11px 13px 10px; box-shadow: 3px 3px 0 var(--pink); }
	body.is-sandbox .cap__link { font-size: 13.5px; }
	body.is-typing .cap { display: none; }

	/* De cookiebalk van de site hoort hier niet over de knop "Volgende" te liggen. */
	#bvdc-cookie { top: 10px !important; bottom: auto !important; }
}
@media (max-width: 860px) and (max-height: 620px) {
	.cap__text { font-size: 14.5px; }
	.cap__title { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
}
