/* Powerbox beurs-demo — stijl afgeleid van www.mlvv.eu (tokens: --pb-*), 16-11-2026 */
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(../fonts/Montserrat-var.woff2) format('woff2'); }
@font-face { font-family: 'PowerboxLato'; font-weight: 400; font-display: swap; src: url(../fonts/Lato-Regular.ttf) format('truetype'); }
@font-face { font-family: 'PowerboxLato'; font-weight: 700; font-display: swap; src: url(../fonts/Lato-Bold.ttf) format('truetype'); }

:root {
  --pb-bg: #eef4f8; --pb-soft: #eff7fb; --pb-card: #ffffff;
  --pb-accent: #2fc1ff; --pb-accent-hover: #12b4f7; --pb-cyan: #24bafa; --pb-link: #007cae;
  --pb-ink: #111e2b; --pb-text: #101218; --pb-text-soft: #425466; --pb-text-muted: #6c7e8f;
  --pb-line: #d7e3ec; --pb-radius: 1.125rem; --pb-shadow: 0 12px 28px rgb(16 18 24 / 8%);
  --ok: #16a34a; --warn: #ea580c; --bad: #dc2626; --neg: #7c3aed; --cheap: #16a34a; --dear: #dc2626; --neutral: #94a3b8;
  --font: 'Montserrat', 'PowerboxLato', Arial, Helvetica, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; font-family: var(--font); color: var(--pb-text); background: var(--pb-bg); line-height: 1.5; font-size: 16px; }
h1, h2, h3 { color: var(--pb-ink); font-weight: 800; letter-spacing: -.045em; line-height: 1.12; margin: 0 0 .5em; overflow-wrap: anywhere; }
h1 { font-size: clamp(2.4rem, 4.8vw, 4rem); line-height: 1.05; }
h1 span, h2 span { color: var(--pb-accent); }
h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--pb-link); }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 16px; }
.section { padding-block: clamp(40px, 6vw, 80px); }
.section + .section { border-top: 1px solid var(--pb-line); }
.lead { font-size: 1.15rem; color: var(--pb-text-soft); max-width: 60ch; }
.muted { color: var(--pb-text-muted); }
.small { font-size: .85rem; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; width: fit-content; padding: 7px 13px; border: 1px solid rgb(47 193 255 / 20%); border-radius: 999px; background: #2fc1ff14; color: #176487; font-size: 11px; letter-spacing: .09em; font-weight: 700; text-transform: uppercase; margin-bottom: 14px; }
.eyebrow::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--pb-accent); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; border-radius: 16px; padding: 13px 22px; font: inherit; font-weight: 700; background: var(--pb-accent); color: #101218; border: 0; cursor: pointer; text-decoration: none; transition: background-color .2s, color .2s; }
.btn:hover { background: var(--pb-accent-hover); }
.btn.secondary { background: #e8edf1; color: #425466; }
.btn.secondary:hover { background: #dce6ed; }
.btn.small { min-height: 38px; padding: 8px 14px; border-radius: 12px; font-size: .9rem; }
.btn[aria-pressed="true"] { background: var(--pb-ink); color: #fff; }
.card { background: var(--pb-card); border: 1px solid var(--pb-line); border-radius: var(--pb-radius); box-shadow: var(--pb-shadow); padding: 20px; }

/* nav */
.nav { position: sticky; top: 0; z-index: 20; background: #ffffffc7; backdrop-filter: blur(14px); border-bottom: 1px solid var(--pb-line); }
.nav-inner { display: flex; align-items: center; gap: 22px; min-height: 78px; }
.nav-inner img { height: 40px; width: auto; }
.nav-sub { font-size: 13px; color: var(--pb-text-muted); font-weight: 600; border-left: 1px solid var(--pb-line); padding-left: 14px; }
.navlinks { display: flex; gap: 18px; margin-left: auto; font-size: 13px; font-weight: 600; }
.navlinks a { color: var(--pb-text-soft); text-decoration: none; }
.navlinks a:hover { color: var(--pb-link); }
@media (max-width: 900px) { .navlinks { display: none; } .nav-sub { display: none; } }

/* hero */
.hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; padding-block: 36px 20px; }
.hero-note { border-radius: 20px; border: 1px solid var(--pb-line); box-shadow: var(--pb-shadow); background: #fffffff5; padding: 22px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 22px; }
.stat { background: #fff; border: 1px solid var(--pb-line); border-radius: 16px; padding: 14px 16px; }
.stat b { display: block; font-size: 1.8rem; font-weight: 800; letter-spacing: -.03em; color: var(--pb-ink); line-height: 1.1; }
.stat small { color: var(--pb-text-muted); font-size: .8rem; line-height: 1.3; display: block; margin-top: 4px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; } .stats { grid-template-columns: 1fr; } }

/* demo dashboard */
.demo-head { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; }
.scenario-bar { display: flex; flex-wrap: wrap; gap: 8px; }
.scenario-bar .btn { flex-direction: column; align-items: flex-start; gap: 0; line-height: 1.2; }
.scenario-bar .btn small { font-weight: 500; font-size: .72rem; opacity: .75; }
.demo-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 18px; }
@media (max-width: 1000px) { .demo-grid { grid-template-columns: 1fr; } }
.chart-wrap { position: relative; height: 240px; }
.legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: .78rem; color: var(--pb-text-muted); margin-top: 6px; }
.legend i { display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.rows { margin-top: 14px; display: grid; gap: 6px; }
.row { display: grid; grid-template-columns: 150px 1fr; align-items: center; gap: 10px; }
.row-label { font-size: .82rem; font-weight: 700; color: var(--pb-ink); line-height: 1.2; }
.row-label small { display: block; font-weight: 500; color: var(--pb-text-muted); font-size: .7rem; }
.cells { display: grid; grid-template-columns: repeat(24, 1fr); gap: 2px; }
.cell { height: 26px; border-radius: 5px; background: #f1f5f8; border: 1px solid #e3ebf1; position: relative; font-size: .62rem; display: flex; align-items: center; justify-content: center; color: #334155; }
.cell.on { background: var(--pb-accent); border-color: var(--pb-accent); color: #0b2434; font-weight: 700; }
.cell.sun { background: #fde68a; border-color: #fcd34d; }
.cell.sun.on { background: #f59e0b; border-color: #d97706; color: #fff; }
.cell.curt { background: var(--warn); border-color: var(--warn); color: #fff; font-weight: 700; }
.cell.charge { background: #86efac; border-color: #4ade80; }
.cell.discharge { background: #fca5a5; border-color: #f87171; }
.cell.ghost::after { content: ''; position: absolute; left: 50%; bottom: 2px; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: #94a3b8; }
.cell.now { outline: 2px solid var(--pb-ink); outline-offset: 1px; z-index: 1; }
.hours { display: grid; grid-template-columns: repeat(24, 1fr); gap: 2px; font-size: .6rem; color: var(--pb-text-muted); text-align: center; margin-top: 2px; }
.row.hours-row { grid-template-columns: 150px 1fr; }
@media (max-width: 700px) { .row, .row.hours-row { grid-template-columns: 90px 1fr; } .row-label { font-size: .7rem; } .cell { height: 20px; font-size: 0; } .cell.on::before, .cell.curt::before { content: ''; } }

.controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 14px; }
.clock { font-variant-numeric: tabular-nums; font-weight: 800; font-size: 1.6rem; color: var(--pb-ink); min-width: 80px; }
.toggle { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 600; color: var(--pb-text-soft); cursor: pointer; }
.toggle input { width: 18px; height: 18px; accent-color: var(--pb-accent); }

.gauges { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.gauge-card { background: var(--pb-soft); border: 1px solid var(--pb-line); border-radius: 14px; padding: 10px 8px 8px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.gauge-label { font-size: .68rem; color: var(--pb-text-muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; margin-bottom: 2px; display: flex; align-items: center; gap: 6px; }
.gauge-svg { width: 100%; max-width: 130px; height: auto; display: block; }
.gauge-value { font-size: 1.05rem; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--pb-ink); line-height: 1.1; }
.gauge-sub { font-size: .66rem; color: var(--pb-text-muted); line-height: 1.2; margin-top: 2px; }
.led { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #cbd5e1; }
.led.on { background: var(--ok); box-shadow: 0 0 6px var(--ok); animation: blink 1s ease-in-out infinite; }
.led.warn { background: var(--warn); box-shadow: 0 0 6px var(--warn); animation: blink 1s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .35; } }
.now-box { margin-top: 12px; background: #fff; border: 1px solid var(--pb-line); border-radius: 14px; padding: 12px 14px; min-height: 120px; }
.now-box h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--pb-text-muted); margin-bottom: 6px; }
.now-box ul { margin: 0; padding-left: 18px; font-size: .9rem; }
.now-box li { margin: 2px 0; }
.euro-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-top: 12px; }
.euro { background: #fff; border: 1px solid var(--pb-line); border-radius: 14px; padding: 10px 12px; text-align: center; }
.euro small { display: block; font-size: .68rem; color: var(--pb-text-muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 700; }
.euro b { font-size: 1.3rem; font-weight: 800; color: var(--pb-ink); font-variant-numeric: tabular-nums; }
.euro.win b { color: var(--ok); }

/* vergelijking */
.cmp-grid { display: grid; grid-template-columns: 340px 1fr; gap: 20px; }
@media (max-width: 1000px) { .cmp-grid { grid-template-columns: 1fr; } }
.field { margin-bottom: 14px; }
.field label { display: flex; justify-content: space-between; font-size: .85rem; font-weight: 700; color: var(--pb-ink); margin-bottom: 4px; }
.field label output { color: var(--pb-link); font-variant-numeric: tabular-nums; }
.field input[type=range] { width: 100%; accent-color: var(--pb-accent); }
.seg { display: flex; border: 1px solid var(--pb-line); border-radius: 12px; overflow: hidden; }
.seg label { flex: 1; text-align: center; padding: 9px 6px; font-size: .85rem; font-weight: 600; cursor: pointer; color: var(--pb-text-soft); background: #fff; }
.seg input { display: none; }
.seg input:checked + span { display: block; margin: -9px -6px; padding: 9px 6px; background: var(--pb-ink); color: #fff; border-radius: 10px; }
.result-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 900px) { .result-cards { grid-template-columns: repeat(2, 1fr); } }
.rc { background: #fff; border: 1px solid var(--pb-line); border-radius: 16px; padding: 14px; }
.rc small { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--pb-text-muted); font-weight: 700; min-height: 2.2em; }
.rc b { display: block; font-size: 1.7rem; font-weight: 800; color: var(--pb-ink); letter-spacing: -.03em; font-variant-numeric: tabular-nums; margin: 4px 0; }
.rc .delta { font-size: .85rem; font-weight: 700; }
.rc .delta.win { color: var(--ok); }
.rc .delta.lose { color: var(--bad); }
.rc.hl { border-color: var(--pb-accent); box-shadow: 0 0 0 3px #2fc1ff33; }
.rc .kwh { font-size: .72rem; color: var(--pb-text-muted); margin-top: 6px; line-height: 1.35; }
details { margin-top: 14px; }
details summary { cursor: pointer; font-weight: 700; color: var(--pb-link); }
details .inner { font-size: .88rem; color: var(--pb-text-soft); margin-top: 8px; }
table.t { width: 100%; border-collapse: collapse; font-size: .85rem; }
table.t th, table.t td { text-align: right; padding: 5px 8px; border-bottom: 1px solid var(--pb-line); font-variant-numeric: tabular-nums; }
table.t th:first-child, table.t td:first-child { text-align: left; }

/* features */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (max-width: 900px) { .features { grid-template-columns: 1fr; } }
.feat { background: #fff; border: 1px solid var(--pb-line); border-radius: 16px; padding: 16px 18px; }
.feat .tag { display: inline-block; font-size: .66rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; background: #dcfce7; color: #166534; margin-bottom: 8px; }
.feat h3 { margin-bottom: 4px; }
.feat p { font-size: .92rem; color: var(--pb-text-soft); margin: 0; }
.feat .with { font-size: .78rem; color: var(--pb-text-muted); margin-top: 8px; }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
form .f { margin-bottom: 12px; }
form label { display: block; font-size: .85rem; font-weight: 700; margin-bottom: 4px; color: var(--pb-ink); }
form input, form select, form textarea { width: 100%; font: inherit; padding: 11px 12px; border: 1px solid var(--pb-line); border-radius: 12px; background: #fff; }
form textarea { min-height: 90px; }
.hp { position: absolute; left: -9999px; top: -9999px; height: 0; width: 0; overflow: hidden; }
.form-msg { margin-top: 10px; font-weight: 600; font-size: .9rem; }
.form-msg.ok { color: var(--ok); }
.form-msg.warn { color: var(--warn); }
.qr { display: grid; grid-template-columns: 1fr; gap: 10px; }
.contact-card dl { display: grid; grid-template-columns: 110px 1fr; gap: 6px 10px; font-size: .95rem; margin: 0; }
.contact-card dt { color: var(--pb-text-muted); font-weight: 600; }
.contact-card dd { margin: 0; }

/* footer */
.footer { padding: 30px 0 40px; font-size: .8rem; color: var(--pb-text-muted); border-top: 1px solid var(--pb-line); }
.footer ul { padding-left: 18px; }
.offline-badge { position: fixed; right: 12px; bottom: 12px; background: var(--pb-ink); color: #fff; font-size: .72rem; font-weight: 700; padding: 6px 10px; border-radius: 999px; opacity: 0; transition: opacity .3s; pointer-events: none; z-index: 30; }
.offline-badge.show { opacity: .9; }

/* schermstand (kiosk) */
body.kiosk { font-size: 18px; }
body.kiosk .nav, body.kiosk .footer { display: none; }
body.kiosk .cell { height: 34px; font-size: .75rem; }

/* energiestroom-slides */
.slide-stage { display: grid; grid-template-columns: 1.5fr 1fr; gap: 20px; align-items: center; }
@media (max-width: 1000px) { .slide-stage { grid-template-columns: 1fr; } }
.sl-figure { background: #f7fafc; border: 1px solid var(--pb-line); border-radius: 16px; padding: 8px; }
.sl-svg { width: 100%; height: auto; display: block; font-family: var(--font); }
.sl-label { font-size: 14px; font-weight: 700; fill: var(--pb-ink); }
.sl-sub { font-size: 11px; fill: var(--pb-text-muted); }
.sl-kw { font-size: 12px; font-weight: 800; }
.sl-naam { font-size: 10.5px; font-weight: 700; fill: var(--pb-ink); }
.sl-badge { font-size: 13px; font-weight: 700; fill: #fff; }
.sl-flow { fill: none !important; stroke-linecap: round; stroke-dasharray: 9 7; filter: drop-shadow(0 0 1px #fff); animation: sl-flow 1.4s linear infinite; }
@keyframes sl-flow { to { stroke-dashoffset: -32; } }
.sl-ems { fill: none; stroke: #f59e0b; stroke-width: 1.5; stroke-dasharray: 4 4; opacity: .7; }
.sl-amber { fill: #b45309; }
.sl-figure { position: relative; }
.sl-cap { position: absolute; left: 14px; bottom: 14px; background: var(--pb-ink); color: #fff; font-size: .8rem; font-weight: 700; padding: 6px 12px; border-radius: 999px; max-width: calc(100% - 28px); }
.sl-text h3 { font-size: 1.35rem; margin: 8px 0 10px; }
.sl-text p { color: var(--pb-text-soft); }
.sl-voet { font-size: .8rem; color: var(--pb-text-muted); border-top: 1px solid var(--pb-line); padding-top: 8px; }
.slide-bar { display: grid; grid-template-columns: auto 1fr auto auto; gap: 10px; align-items: center; margin-top: 14px; }
@media (max-width: 800px) { .slide-bar { grid-template-columns: 1fr 1fr; } .slide-bar .dots { grid-column: 1 / -1; } }
.dots { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; }
.dots .btn { border-radius: 999px; }
body.kiosk .sl-text h3 { font-size: 1.7rem; }
@media (prefers-reduced-motion: reduce) { .sl-flow { animation: none; } }
