:root {
  --ink: #1b1712;
  --muted: #6b6358;
  --line: #e7e0d3;
  --line-strong: #d4cbba;
  --bg: #f5f1e8;
  --card: #fffdf8;
  --blue: #1b1712;
  --blue-ink: #1b1712;
  --blue-soft: #efe8da;
  --orange: #ff5a1f;
  --bar: #e9e0cd;
  --danger: #b8321c;
  --dark: #17140f;
  --dark-2: #221e17;
  --dark-3: #2d2820;
  --dark-line: #3a342a;
  --dark-text: #f5f1e8;
  --dark-muted: #b3a994;
  --display: 'Bricolage Grotesque', system-ui, sans-serif;
  --body: 'Geist', system-ui, sans-serif;
  --r: 14px;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--body); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
::selection { background: var(--orange); color: #fff; }
a { color: inherit; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; margin: 0; line-height: 1.08; letter-spacing: -0.02em; }
.hidden { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.logo { display: inline-flex; align-items: center; gap: 9px; font-family: var(--display); font-weight: 800; font-size: 21px; letter-spacing: -0.02em; color: inherit; text-decoration: none; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1.5px solid var(--line-strong); background: var(--card); color: var(--ink); font: 500 15px var(--body); text-decoration: none; cursor: pointer; white-space: nowrap; transition: background-color .15s, border-color .15s, transform .15s; }
.btn:hover { border-color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--blue); border-color: var(--blue); color: var(--on-blue, #fff); font-weight: 600; }
.btn.primary:hover { background: var(--blue-ink); filter: brightness(1.15); }
.btn.accent { background: var(--orange); border-color: var(--orange); color: #fff; font-weight: 600; }
.btn.accent:hover { filter: brightness(1.06); border-color: var(--orange); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--ink); font-weight: 500; }
.btn.ghost:hover { background: rgba(27,23,18,.06); }
.btn.danger { color: var(--danger); }
.btn.icon { width: 44px; padding: 0; }
.btn:disabled { background: var(--line); border-color: var(--line); color: var(--muted); cursor: default; }
.btn.big { min-height: 56px; font-size: 17px; width: 100%; }

.field { display: flex; flex-direction: column; gap: 8px; }
.field label, .label { font-size: 14px; font-weight: 600; }
.input { min-height: 46px; padding: 0 14px; border-radius: 12px; border: 1.5px solid var(--line-strong); font: 400 15px var(--body); color: var(--ink); background: var(--card); width: 100%; }
.input::placeholder { color: #a39a8b; }
.input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(255,90,31,.18); }
.btn:focus-visible, a:focus-visible, button:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
textarea.input { padding: 10px 12px; min-height: 88px; resize: vertical; }
.check { display: flex; align-items: center; gap: 10px; font-size: 14px; min-height: 32px; }
.check input { width: 18px; height: 18px; }

.error { color: var(--danger); font-size: 14px; min-height: 20px; }
.muted { color: var(--muted); }

/* ---------- app shell ---------- */
.topbar { display: flex; flex-wrap: wrap; gap: 12px 16px; justify-content: space-between; align-items: center; padding: 12px 24px; background: var(--bg); border-bottom: 1.5px solid var(--line); }
.topbar .left, .topbar .right { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 32px 24px; }
.pill { font-size: 13px; font-weight: 600; color: #fff; background: var(--orange); border-radius: 999px; padding: 4px 10px; }

/* ---------- auth / landing ---------- */
.auth { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.auth { background: radial-gradient(1200px 500px at 50% -10%, #fbe3d6 0%, transparent 60%), var(--bg); }
.auth-card { width: 100%; max-width: 420px; background: var(--card); border: 1.5px solid var(--line); border-radius: 24px; padding: 36px; display: flex; flex-direction: column; gap: 20px; box-shadow: 0 30px 60px -40px rgba(27,23,18,.35); }
.auth-card h1 { font-size: 34px; }

/* ---------- dashboard ---------- */
.deck-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.deck { background: var(--card); border: 1.5px solid var(--line); border-radius: 20px; padding: 22px; display: flex; flex-direction: column; gap: 12px; transition: border-color .15s, box-shadow .15s; }
.deck:hover { border-color: var(--line-strong); box-shadow: 0 18px 40px -30px rgba(27,23,18,.4); }
.deck h3 { font-size: 22px; word-break: break-word; }
.deck .meta { font-size: 14px; color: var(--muted); display: flex; gap: 12px; flex-wrap: wrap; }
.deck .actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; }

/* ---------- editor ---------- */
.editor { display: flex; flex-wrap: wrap; gap: 24px; padding: 24px; align-items: flex-start; }
.qlist { flex: 1 1 240px; max-width: 280px; display: flex; flex-direction: column; gap: 8px; }
.qitem { display: flex; gap: 12px; align-items: center; min-height: 56px; padding: 8px 12px; border-radius: 14px; background: var(--card); border: 1.5px solid var(--line); color: var(--ink); text-align: left; font: inherit; cursor: pointer; width: 100%; }
.qitem.active { background: var(--card); border-color: var(--ink); box-shadow: inset 4px 0 0 var(--orange); }
.qitem .n { font-size: 13px; color: var(--muted); width: 18px; flex: 0 0 auto; }
.qitem .t { font-size: 14px; font-weight: 500; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 190px; }
.qitem .s { font-size: 12px; color: var(--muted); }
.add-q { min-height: 48px; border-radius: 14px; border: 1.5px dashed var(--line-strong); background: transparent; color: var(--ink); font: 600 14px var(--body); cursor: pointer; }
.add-q:hover { border-color: var(--ink); }
.preview { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.slide { aspect-ratio: 16 / 9; background: var(--dark); border-radius: 20px; padding: 40px; color: var(--dark-text); display: flex; flex-direction: column; justify-content: center; gap: 24px; overflow: hidden; }
.slide h2 { font-size: clamp(20px, 3vw, 34px); }
.panel { flex: 1 1 300px; max-width: 380px; background: var(--card); border: 1.5px solid var(--line); border-radius: 20px; padding: 20px; display: flex; flex-direction: column; gap: 20px; }
.types { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.types button { min-height: 44px; border-radius: 12px; border: 1.5px solid var(--line-strong); background: var(--card); font: 500 13px var(--body); cursor: pointer; color: var(--ink); }
.types button.on { border-color: var(--ink); background: var(--ink); color: var(--card); font-weight: 600; }
.opt-row { display: flex; gap: 8px; }
.opt-row .btn.icon { flex: 0 0 44px; }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 16px; }

/* ---------- presenter ---------- */
.present { min-height: 100vh; background: var(--dark); color: var(--dark-text); display: flex; flex-direction: column; gap: 32px; padding: 28px 48px; }
.present a { color: var(--dark-text); }
.join-box { display: flex; align-items: center; gap: 20px; background: var(--dark-2); border-radius: 16px; padding: 12px 12px 12px 24px; }
.join-box .url { font-size: 15px; color: var(--dark-muted); }
.join-box .url strong { color: var(--dark-text); }
.join-box .code { font-family: var(--display); font-weight: 700; font-size: 34px; letter-spacing: 2px; }
.qr { width: 88px; height: 88px; background: #fff; border-radius: 10px; padding: 6px; }
.qr svg { width: 100%; height: 100%; display: block; }
.stage { flex: 1; width: 100%; max-width: 1200px; margin: 0 auto; display: flex; flex-direction: column; justify-content: center; gap: 40px; }
.eyebrow { font-size: 15px; font-weight: 600; color: var(--orange); text-transform: uppercase; letter-spacing: .14em; }
.stage h1 { font-size: clamp(32px, 4.6vw, 60px); }
.bars { display: flex; flex-direction: column; gap: 20px; }
.bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; }
.bar .lbl { flex: 0 1 260px; font-size: 22px; font-weight: 500; }
.bar .track { flex: 1 1 320px; height: 48px; background: var(--dark-3); border-radius: 999px; overflow: hidden; }
.bar .fill { height: 100%; background: var(--bar); border-radius: 999px; transition: width .6s cubic-bezier(.2,.8,.2,1); }
.bar.lead .fill { background: var(--orange); }
.bar.lead .lbl { font-weight: 700; }
.bar .pct { flex: 0 0 90px; text-align: right; font-family: var(--display); font-weight: 700; font-size: 26px; }
.bar.lead .pct { color: var(--orange); }
.cols { display: flex; align-items: flex-end; gap: 16px; height: 300px; }
.col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 10px; height: 100%; justify-content: flex-end; }
.col .c-fill { width: 100%; background: var(--bar); border-radius: 14px 14px 4px 4px; min-height: 4px; transition: height .4s ease; }
.col .c-n { font-family: var(--display); font-weight: 700; font-size: 22px; }
.col .c-l { font-size: 18px; color: var(--dark-muted); }
.scale-ends { display: flex; justify-content: space-between; color: var(--dark-muted); font-size: 16px; }
.avg { font-family: var(--display); font-size: 22px; color: var(--dark-muted); }
.avg strong { color: var(--orange); font-size: 44px; }
.cloud { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: center; align-items: center; min-height: 260px; }
.cloud span { font-family: var(--display); font-weight: 700; line-height: 1.1; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.cards div { background: var(--dark-2); border-radius: 14px; padding: 16px 18px; font-size: 18px; line-height: 1.4; word-break: break-word; }
.qa-list { display: flex; flex-direction: column; gap: 12px; }
.qa-item { display: flex; align-items: center; gap: 18px; background: var(--dark-2); border-radius: 14px; padding: 14px 18px; }
.qa-item .v { flex: 0 0 64px; text-align: center; font-family: var(--display); font-weight: 700; font-size: 28px; color: var(--orange); }
.qa-item .txt { flex: 1; font-size: 20px; line-height: 1.4; word-break: break-word; }
.qa-item.done { opacity: .45; }
.qa-item .btn { background: transparent; color: var(--dark-text); border-color: #3a3f4d; }
.empty { color: var(--dark-muted); font-size: 22px; text-align: center; padding: 40px 0; }
.pfoot { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; border-top: 1px solid var(--dark-line); padding-top: 18px; }
.pfoot .stats { display: flex; align-items: center; gap: 10px; font-size: 16px; color: var(--dark-muted); }
.pfoot .stats strong { color: var(--dark-text); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--orange); display: inline-block; box-shadow: 0 0 0 4px rgba(255,90,31,.18); }
.dot.off { background: #9a917f; box-shadow: none; }
.pfoot .ctrls { display: flex; flex-wrap: wrap; gap: 10px; }
.present .btn { background: transparent; color: var(--dark-text); border-color: #3a3f4d; }
.present .btn.on { background: var(--dark-3); border-color: var(--orange); color: var(--orange); }
.present .btn.primary { background: var(--orange); border-color: var(--orange); color: #fff; }
.present .logo img, .screen .logo img { background: #fff; padding: 4px 8px; height: 40px !important; }
.powered { font-size: 12px; color: var(--muted); text-align: center; }
.powered a { color: inherit; }

/* ---------- participant ---------- */
.phone { max-width: 480px; margin: 0 auto; min-height: 100vh; background: var(--bg); display: flex; flex-direction: column; }
.phone-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.phone-head .t { font-size: 15px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.phone-head .s { font-size: 13px; color: var(--muted); white-space: nowrap; }
.phone-body { flex: 1; display: flex; flex-direction: column; gap: 22px; padding: 28px 20px 32px; }
.phone-body h1 { font-size: 30px; line-height: 1.12; }
.opts { display: flex; flex-direction: column; gap: 12px; }
.opt { display: flex; align-items: center; gap: 14px; min-height: 60px; padding: 10px 18px; border-radius: 16px; border: 1.5px solid var(--line-strong); background: var(--card); transition: border-color .15s, background-color .15s; font: 500 17px var(--body); color: var(--ink); text-align: left; width: 100%; cursor: pointer; }
.opt:hover { border-color: var(--ink); }
.opt .mark { flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%; border: 2px solid #a39a8b; transition: border-width .15s; }
.opt.multi .mark { border-radius: 6px; }
.opt.on { border-color: var(--blue); background: var(--blue-soft); box-shadow: inset 0 0 0 1px var(--blue); }
.opt.on .mark { border: 7px solid var(--blue); }
.opt.on { color: var(--ink); }
.scale-btns { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.scale-btns.n7 { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.scale-btns.n10 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.scale-btns button { min-height: 56px; border-radius: 14px; border: 1.5px solid var(--line-strong); background: var(--card); font: 700 20px var(--display); cursor: pointer; color: var(--ink); }
.scale-btns button.on { border-color: var(--blue); background: var(--blue); color: var(--on-blue, #fff); }
.done-box { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { background: var(--ink); color: var(--card); border-radius: 999px; padding: 6px 12px; font-size: 14px; font-weight: 500; }
.ask-row { display: flex; gap: 8px; }
.ask-row .input { min-height: 48px; }
.pqa { display: flex; flex-direction: column; gap: 10px; }
.pqa-item { display: flex; gap: 12px; align-items: flex-start; background: var(--card); border: 1.5px solid var(--line); border-radius: 16px; padding: 12px 14px; }
.pqa-item p { flex: 1; margin: 0; font-size: 15px; line-height: 1.45; word-break: break-word; }
.pqa-item.done p { color: var(--muted); text-decoration: line-through; }
.up { flex: 0 0 auto; min-width: 52px; height: 52px; border-radius: 14px; border: 1.5px solid var(--line-strong); background: var(--card); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font: 600 14px var(--body); cursor: pointer; color: var(--ink); }
.up.on { border-color: var(--orange); background: var(--orange); color: #fff; }
.foot-note { display: flex; align-items: center; gap: 8px; justify-content: center; font-size: 13px; color: var(--muted); padding: 16px; }

@media (max-width: 640px) {
  .present { padding: 20px; }
  .editor { padding: 16px; }
  .qlist, .panel { max-width: none; }
  .bar .lbl { font-size: 18px; }
  .bar .track { height: 36px; }
}

/* ---------- huisstijl ---------- */
.brand-grid { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.brand-form { flex: 1 1 340px; max-width: 440px; background: var(--card); border: 1.5px solid var(--line); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 20px; }
.brand-prev { flex: 999 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.pro-note { display: flex; gap: 12px; align-items: flex-start; background: #fbe3d6; color: var(--ink); border-radius: 14px; padding: 14px 16px; font-size: 14px; line-height: 1.5; }
.badge { font-size: 12px; font-weight: 700; color: #fff; background: var(--ink); border-radius: 6px; padding: 2px 7px; vertical-align: middle; }
.color-row { display: flex; gap: 10px; align-items: center; }
.color-row input[type=color] { width: 52px; height: 44px; border: 1px solid var(--line-strong); border-radius: 10px; padding: 3px; background: #fff; cursor: pointer; }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.swatches button { width: 32px; height: 32px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line-strong); cursor: pointer; }
.logo-box { display: flex; align-items: center; gap: 14px; }
.logo-prev { width: 120px; height: 64px; border: 1px dashed var(--line-strong); border-radius: 12px; display: flex; align-items: center; justify-content: center; background: #fff; overflow: hidden; color: var(--muted); font-size: 12px; }
.logo-prev img { max-width: 100%; max-height: 100%; object-fit: contain; }
.mini { display: flex; flex-wrap: wrap; gap: 16px; align-items: stretch; }
.mini-screen { flex: 999 1 340px; background: var(--dark); color: var(--dark-text); border-radius: 18px; padding: 22px; display: flex; flex-direction: column; gap: 18px; }
.mini-screen .logo img { background: #fff; padding: 4px 8px; }
.mini-screen .bar .lbl { font-size: 15px; flex-basis: 120px; }
.mini-screen .bar .track { height: 28px; flex-basis: 160px; }
.mini-screen .bar .pct { font-size: 18px; flex-basis: 50px; }
.mini-phone { flex: 1 1 220px; max-width: 260px; background: var(--bg); border: 1.5px solid var(--line); border-radius: 26px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.mini-phone .opt { min-height: 46px; font-size: 15px; }
.logo span { color: inherit; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
