/* Thebalux beursfeedback — volgt thebalux.nl: full-bleed hero, tekst linksonder, glazen label-pill,
   witte outline-pills, GSAP-achtige reveals (y 50 → 0, power3.out, gestaffeld) en trage Ken Burns. */
@font-face {
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/beurs2026/fonts/raleway-latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/beurs2026/fonts/raleway-latin-ext-wght-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* tokens uit thebalux.nl styles/root.css */
  --tekst: #181b1e;
  --tekst-2: #5a6268;
  --wit: #ffffff;
  --grijs-100: #e9ecef;
  --accent: #14b1f7;
  --ease-default: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-power3: cubic-bezier(0.215, 0.61, 0.355, 1);   /* GSAP power3.out (hero-teksten) */
  --ease-spring-soft: cubic-bezier(0.175, 0.885, 0.32, 1.1);
  --t-fast: 150ms;
  --t-normal: 300ms;
  --t-slow: 500ms;
  --gutter: clamp(24px, 4.4vw, 64px);
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  height: 100%;
  background: #0f1113;
  color: var(--wit);
  font-family: 'Raleway', system-ui, sans-serif;
  font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
  overscroll-behavior: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img { display: block; -webkit-user-drag: none; }

.app { position: fixed; inset: 0; height: 100dvh; overflow: hidden; }

/* ---------- topbar ---------- */
.topbar {
  position: absolute; z-index: 20;
  top: calc(var(--gutter) * .7); left: var(--gutter); right: var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
}
.logo { height: clamp(26px, 3vw, 36px); width: auto; }
.topbar-right { display: flex; align-items: center; gap: 18px; }
.pending-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: #f5a524; box-shadow: 0 0 0 4px rgba(245, 165, 36, .25);
  animation: blink 2.4s ease-in-out infinite;
}
@keyframes blink { 50% { opacity: .35; } }

/* ---------- knoppen (zoals de hero-knoppen op thebalux.nl) ---------- */
.btn-outline {
  display: inline-flex; align-items: center; gap: 12px;
  border: 1px solid rgba(255, 255, 255, .85);
  border-radius: 999px;
  padding: 14px 28px;
  font-size: clamp(15px, 1.25vw, 17px); font-weight: 500; letter-spacing: .05em;
  color: var(--wit);
  background: rgba(255, 255, 255, 0);
  transition: background var(--t-normal) var(--ease-default), color var(--t-normal) var(--ease-default), transform var(--t-fast) var(--ease-default);
}
.btn-outline:active { background: var(--wit); color: var(--tekst); transform: scale(.97); }
.btn-sm { padding: 10px 20px; font-size: 14px; }
.btn-arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform var(--t-normal) var(--ease-default); }
.btn-arrow:active svg { transform: translateX(4px); }

/* glazen label-pill ("Badmeubelen" op de homepage-hero) */
.tag {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .16);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  font-size: clamp(13px, 1.1vw, 15px); font-weight: 600; letter-spacing: .03em;
}

/* ==========================================================================
   PANELEN
   ========================================================================== */
.panels { position: absolute; inset: 0; display: grid; gap: 2px; background: #0f1113; }
.layout-split .panels { grid-template-columns: 1fr 1fr; }

.panel { position: relative; overflow: hidden; isolation: isolate; }

/* render + Ken Burns (zoals de hero-slides: lange, trage zoom) */
.bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.bg img {
  width: 100%; height: 100%; object-fit: cover;
  animation: kenburns 22s ease-in-out infinite alternate;
  transform-origin: 60% 50%;
}
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.08); } }
.bg.no-image {
  background:
    radial-gradient(70% 60% at 62% 38%, #3b4046 0%, #23272b 55%, #141618 100%);
}
.bg.no-image::after {
  content: 'Render volgt';
  position: absolute; top: 42%; left: 0; right: 0; text-align: center;
  font-size: 13px; font-weight: 600; letter-spacing: .3em; text-transform: uppercase;
  color: rgba(255, 255, 255, .18);
}
.layout-single .bg.no-image::after { left: 40%; }

/* donker verloop linksonder, zodat witte tekst altijd leesbaar is */
.shade {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(0deg, rgba(0, 0, 0, .72) 0%, rgba(0, 0, 0, .38) 38%, rgba(0, 0, 0, 0) 68%),
    linear-gradient(90deg, rgba(0, 0, 0, .35) 0%, rgba(0, 0, 0, 0) 55%);
  transition: background-color var(--t-slow) var(--ease-default);
}
.panel.is-done .shade { background-color: rgba(0, 0, 0, .35); }

/* inhoud linksonder; vraag en bedankt liggen in dezelfde cel en wisselen elkaar af */
.content {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 0 var(--gutter) calc(var(--gutter) * .9);
  display: grid;
}
.state { grid-area: 1 / 1; align-self: end; max-width: 720px; }
.layout-split .state { max-width: 100%; }
.done { pointer-events: none; }
.panel.is-done .ask { pointer-events: none; }
.panel.is-done .done { pointer-events: auto; }

.title {
  font-size: clamp(44px, 6vw, 84px);
  font-weight: 500; line-height: 1.02; letter-spacing: -.015em;
  margin: 18px 0 14px;
}
.title strong { font-weight: 700; }
.layout-split .title { font-size: clamp(34px, 4vw, 58px); margin: 14px 0 10px; }
.desc {
  font-size: clamp(16px, 1.5vw, 20px); line-height: 1.55; font-weight: 400;
  color: rgba(255, 255, 255, .86);
  max-width: 34ch; margin-bottom: clamp(22px, 3.6vh, 38px);
}
.layout-split .desc { margin-bottom: clamp(16px, 2.6vh, 26px); }
.specs { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: -8px 0 26px; }
.specs li { font-size: 14px; font-weight: 600; padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .4); }

/* ---------- reveals (GSAP-timeline van de homepage-hero nagebootst) ---------- */
.reveal {
  opacity: 0; transform: translateY(50px);
  transition: opacity .9s var(--ease-power3), transform 1s var(--ease-power3);
}
.app.entered .panel:not(.is-done) .ask .reveal,
.app.entered .panel.is-done .done .reveal { opacity: 1; transform: none; }
.ask .reveal:nth-child(1), .done .reveal:nth-child(1) { transition-delay: calc(var(--i) * .15s + .15s); }
.ask .reveal:nth-child(2), .done .reveal:nth-child(2) { transition-delay: calc(var(--i) * .15s + .35s); }
.ask .reveal:nth-child(3), .done .reveal:nth-child(3) { transition-delay: calc(var(--i) * .15s + .55s); }
.ask .reveal:nth-child(4), .done .reveal:nth-child(4) { transition-delay: calc(var(--i) * .15s + .75s); }
.ask .reveal:nth-child(5) { transition-delay: calc(var(--i) * .15s + .95s); }
/* uitgaand: snel en zonder vertraging omhoog weg */
.panel.is-done .ask .reveal { opacity: 0; transform: translateY(-30px); transition-duration: .45s; transition-delay: 0s; }
.panel.is-done .done .reveal:nth-child(1) { transition-delay: .3s; }
.panel.is-done .done .reveal:nth-child(2) { transition-delay: .45s; }
.panel.is-done .done .reveal:nth-child(3) { transition-delay: .6s; }
.panel.is-done .done .reveal:nth-child(4) { transition-delay: .75s; }

/* ---------- cijferschaal ---------- */
.rate { --size: clamp(64px, 7.2vw, 96px); --gap: clamp(10px, 1.3vw, 18px); width: 100%; max-width: calc(var(--size) * 5 + var(--gap) * 4); }
.layout-split .rate { --size: clamp(54px, 5.4vw, 78px); }
.scale { display: flex; gap: var(--gap); }
.score {
  position: relative;
  flex: 1 1 0; min-width: 0; aspect-ratio: 1; max-width: var(--size);
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, .75);
  background: rgba(255, 255, 255, .08);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-size: calc(var(--size) * .34); font-weight: 600;
  display: grid; place-items: center;
  transition:
    background var(--t-normal) var(--ease-default),
    color var(--t-normal) var(--ease-default),
    border-color var(--t-normal) var(--ease-default),
    transform var(--t-normal) var(--ease-spring-soft);
}
.score:active { transform: scale(.92); }
.score.on { background: var(--wit); border-color: var(--wit); color: var(--tekst); }
.score.picked { transform: scale(1.1); box-shadow: 0 10px 34px rgba(0, 0, 0, .35); }
.score.pop { animation: pop .55s var(--ease-spring-soft); }
@keyframes pop { 0% { transform: scale(.86); } 60% { transform: scale(1.16); } 100% { transform: scale(1.1); } }
/* rimpel rond het gekozen cijfer zolang het nog bevestigd wordt */
.score::after {
  content: ''; position: absolute; inset: -1.5px; border-radius: 50%;
  border: 1.5px solid var(--wit); opacity: 0; pointer-events: none;
}
.panel.confirming .score.picked::after { animation: ripple 1.1s var(--ease-out) infinite; }
@keyframes ripple { from { transform: scale(1); opacity: .9; } to { transform: scale(1.55); opacity: 0; } }

/* uitnodigende golf over de cijfers zolang niemand tikt */
.panel.wave .score:not(.on), .panel.nudge .score:not(.on) { animation: invite 1.1s var(--ease-power3) calc((var(--s) - 1) * 90ms); }
.panel.nudge .score:not(.on) { animation-iteration-count: infinite; animation-duration: 2.6s; }
@keyframes invite {
  0%, 100% { transform: none; background: rgba(255, 255, 255, .08); }
  35% { transform: translateY(-8px); background: rgba(255, 255, 255, .26); }
}

.ends {
  display: flex; justify-content: space-between;
  margin-top: 14px;
  font-size: clamp(11px, .95vw, 13px); font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255, 255, 255, .62);
}

/* oordeel per letter (zoals AnimationTextFull) + bevestigingslijn */
.verdict {
  position: relative;
  min-height: 1.5em; margin-top: clamp(12px, 2.2vh, 22px);
  font-size: clamp(22px, 2.3vw, 32px); font-weight: 600; letter-spacing: .01em;
}
.verdict .w { display: inline-block; white-space: nowrap; }
.verdict .ch { display: inline-block; opacity: 0; transform: translateY(.45em); }
.verdict.show .ch { animation: charIn .6s var(--ease-power3) forwards; animation-delay: calc(var(--c) * 24ms); }
@keyframes charIn { to { opacity: 1; transform: none; } }
.verdict::after {
  content: ''; position: absolute; left: 0; bottom: -10px;
  width: 64px; height: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
}
.panel.confirming .verdict::after { animation: confirmLine 1.5s linear forwards; }
@keyframes confirmLine { to { transform: scaleX(1); } }

/* ---------- bedankt ---------- */
.check { width: clamp(64px, 6.4vw, 88px); height: auto; overflow: visible; }
.check circle { fill: none; stroke: var(--wit); stroke-width: 2.5; stroke-dasharray: 185; stroke-dashoffset: 185; transform: rotate(-90deg); transform-origin: center; }
.check path { fill: none; stroke: var(--accent); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 44; stroke-dashoffset: 44; }
.panel.is-done .check circle { animation: draw .9s var(--ease-power3) .35s forwards; }
.panel.is-done .check path { animation: draw .5s var(--ease-power3) 1s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.done .title { margin: 22px 0 12px; }
.done .desc { max-width: 36ch; }

/* aftellen naar het beginscherm */
.countdown { position: absolute; left: 0; right: 0; bottom: 0; z-index: 10; height: 3px; opacity: 0; transition: opacity var(--t-normal); }
.app.all-done .countdown { opacity: 1; }
.countdown span { display: block; height: 100%; background: var(--wit); transform-origin: left; transform: scaleX(0); }

/* ---------- naar thebalux.nl ---------- */
.browse-toast {
  position: absolute; inset: 0; z-index: 40;
  display: grid; place-items: center;
  background: rgba(15, 17, 19, .7);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  animation: fadeIn .4s var(--ease-default);
}
.browse-toast p { font-size: clamp(18px, 1.8vw, 24px); line-height: 1.5; text-align: center; color: rgba(255, 255, 255, .8); }
.browse-toast strong { display: inline-block; font-size: 1.6em; font-weight: 600; color: var(--wit); margin-bottom: 6px; }
@keyframes fadeIn { from { opacity: 0; } }

/* ---------- personeelspaneel ---------- */
.staff { position: absolute; inset: 0; z-index: 80; display: grid; place-items: center; background: rgba(0, 0, 0, .55); animation: fadeIn .3s; }
.staff[hidden], .browse-toast[hidden] { display: none; }
.staff-card { background: var(--wit); color: var(--tekst); border-radius: 20px; padding: 32px 36px; width: min(600px, 92vw); box-shadow: 0 25px 70px -10px rgba(0, 0, 0, .35); }
.tag-dark { background: var(--grijs-100); color: var(--tekst-2); -webkit-backdrop-filter: none; backdrop-filter: none; }
.staff-card h3 { font-size: 28px; font-weight: 600; margin: 12px 0 18px; }
.staff-card dl { display: grid; grid-template-columns: auto 1fr; gap: 9px 22px; font-size: 15px; margin-bottom: 26px; }
.staff-card dt { color: var(--tekst-2); }
.staff-card dd { font-weight: 600; }
.staff-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-solid, .btn-ghost { border-radius: 999px; padding: 12px 22px; font-weight: 600; letter-spacing: .03em; }
.btn-solid { background: var(--tekst); color: var(--wit); }
.btn-ghost { background: var(--grijs-100); color: var(--tekst); }

/* ==========================================================================
   Staande tablet
   ========================================================================== */
@media (orientation: portrait) {
  .layout-split .panels { grid-template-columns: 1fr; grid-template-rows: 1fr 1fr; }
  .layout-split .title { font-size: clamp(32px, 6vw, 52px); }
  .layout-split .content { padding-bottom: calc(var(--gutter) * .7); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
