/* Shave Energy homepage 2.0 ("energy intelligence"). Builds on site.css tokens.
   Dark premium surfaces for data (hero, market, final), light surfaces for reading. */
.page-home {
  --midnight: var(--night);
  --lime: #b9f75b;
  --amber: #f6862a;
  --glass: rgba(17, 28, 56, .55);
  --glass-line: rgba(255, 255, 255, .14);
}

/* the hidden attribute always wins over display rules below */
.page-home [hidden] { display: none !important; }

.btn-lg { padding: 1.05em 1.6em; font-size: 1.02rem; }
.btn-text { border: 0; background: none; font: inherit; font-weight: 650; color: var(--navy); cursor: pointer; padding: .6em .2em; text-decoration: underline; text-underline-offset: 3px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--green-dark); margin-top: auto; }
.link-arrow svg { transition: transform .2s var(--ease); }
a:hover > .link-arrow svg, a:hover .link-arrow svg { transform: translateX(4px); }

/* Data status pill: LIVE only with a real, current source */
.status {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 10px; border-radius: 999px;
  font-size: .78rem; font-weight: 700; letter-spacing: .01em; white-space: nowrap;
  background: rgba(255, 255, 255, .08); color: #cfd6e4; border: 1px solid var(--glass-line);
}
.status i { width: 8px; height: 8px; border-radius: 50%; background: #94a3b8; }
.status.is-live { color: #eaffd0; border-color: rgba(185, 247, 91, .35); }
.status.is-live i { background: var(--lime); box-shadow: 0 0 0 0 rgba(185, 247, 91, .6); animation: live-ping 2s infinite; }
.status.is-demo { color: #ffe2c7; border-color: rgba(246, 134, 42, .45); }
.status.is-demo i { background: var(--amber); }
.status.is-stale i { background: #e0de09; }
@keyframes live-ping { 70% { box-shadow: 0 0 0 8px rgba(185, 247, 91, 0); } 100% { box-shadow: 0 0 0 0 rgba(185, 247, 91, 0); } }

/* ---------- 01 Hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; color: #fff; background: #050816; overflow: hidden; display: flex; align-items: flex-end; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transform: scale(1.06); animation: hero-in 1.8s cubic-bezier(.2, .7, .2, 1) forwards; }
@keyframes hero-in { to { transform: scale(1); } }
/* the film as header: same framing as the still, so the last frame lands exactly on it */
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.hero.has-video .hero-still { display: none; }
/* while the film plays the logo flares up behind the text: extra shade on the text side, and a soft text shadow */
.hero.has-video .hero-shade::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(5, 8, 22, .8) 0%, rgba(5, 8, 22, .5) 40%, rgba(5, 8, 22, 0) 68%);
}
.hero.has-video .hero-copy :is(h1, p) { text-shadow: 0 2px 18px rgba(5, 8, 22, .85); }
@media (max-width: 700px) {
  .hero.has-video .hero-shade::after { background: linear-gradient(180deg, rgba(5, 8, 22, .25) 0%, rgba(5, 8, 22, .72) 38%, rgba(5, 8, 22, .9) 100%); }
  .hero-video { object-position: 50% 12%; }
}
.hero.has-video .hero-flow { opacity: 0; transition: opacity 1.2s .3s; }
.hero.has-video .hero-badge { animation: none; opacity: 0; transform: translateY(8px); transition: opacity .7s .5s, transform .7s .5s var(--ease); }
.hero.has-video .hb-high { transition-delay: .8s; }
.hero.is-ended .hero-flow { opacity: 1; }
.hero.is-ended .hero-badge { opacity: 1; transform: none; }
.hero-film-btn {
  position: absolute; right: clamp(16px, 3vw, 32px); bottom: 18px; z-index: 2; display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px 7px 9px; border-radius: 999px; border: 1px solid var(--glass-line); background: var(--glass); color: #dfe5ef;
  font: inherit; font-size: .8rem; cursor: pointer; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.hero-film-btn:hover { color: #fff; border-color: rgba(255, 255, 255, .35); }
.hero-film-btn svg { width: 16px; height: 16px; }
.hero-film-btn .i-play { display: none; }
.hero-film-btn:not([data-state="playing"]) .i-pause { display: none; }
.hero-film-btn:not([data-state="playing"]) .i-play { display: inline; }
.hero-film-btn[hidden] { display: none; }
.hero-flow { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-flow .flow { fill: none; stroke: url(#flowGrad); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 90 900; opacity: .85; animation: flow 6s linear infinite; }
.hero-flow .f2 { animation-delay: -2s; animation-duration: 7s; }
.hero-flow .f3 { animation-delay: -4s; animation-duration: 8s; stroke-width: 1.6; }
@keyframes flow { from { stroke-dashoffset: 990; } to { stroke-dashoffset: 0; } }
.hero-shade {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(5, 8, 22, .55) 0%, rgba(5, 8, 22, 0) 22%, rgba(5, 8, 22, 0) 42%, rgba(5, 8, 22, .82) 78%, #0b1024 100%),
    radial-gradient(70% 60% at 0% 100%, rgba(5, 8, 22, .7), transparent 70%);
}
/* price badges pinned to the valley and a peak of the image (positions in % of the 16:9 frame) */
.hero-badge {
  position: absolute; display: grid; grid-template-columns: auto 1fr; column-gap: 8px; align-items: center;
  padding: 8px 12px 8px 10px; border-radius: var(--r-ctl); background: var(--glass); border: 1px solid var(--glass-line);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-size: .74rem; color: #cfd6e4;
  opacity: 0; transform: translateY(8px); animation: badge-in .7s .9s cubic-bezier(.2, .7, .2, 1) forwards;
}
.hero-badge i { grid-row: span 2; width: 9px; height: 9px; border-radius: 50%; }
.hero-badge strong { color: #fff; font-size: .95rem; font-variant-numeric: tabular-nums; }
.hb-low { left: 46.5%; top: 45%; }
.hb-low i { background: var(--lime); box-shadow: 0 0 12px var(--lime); }
.hb-high { left: 66.5%; top: 9%; animation-delay: 1.15s; }
.hb-high i { background: #e0de09; box-shadow: 0 0 12px #e0de09; }
@keyframes badge-in { to { opacity: 1; transform: none; } }

.hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: end; padding-bottom: clamp(40px, 8vh, 88px); padding-top: 160px; }
.hero-copy > * { opacity: 0; transform: translateY(18px); animation: rise .8s cubic-bezier(.2, .7, .2, 1) forwards; }
.hero-copy > :nth-child(2) { animation-delay: .1s; }
.hero-copy > :nth-child(3) { animation-delay: .22s; }
.hero-copy > :nth-child(4) { animation-delay: .34s; }
@keyframes rise { to { opacity: 1; transform: none; } }
.hero-kicker { font-weight: 650; color: var(--lime); margin-bottom: 14px; }
.hero h1 { font-size: clamp(2.3rem, 4.8vw, 4.2rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1; max-width: 12em; }
.hero-intro { margin-top: 20px; max-width: 32em; font-size: clamp(1rem, 1.25vw, 1.15rem); color: #d5dcea; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
/* three compact buttons: same height, quieter shadows, so the header stays calm */
.hero-cta .btn { padding: .68em 1.15em; font-size: .93rem; box-shadow: none; }
.hero-cta .btn-ghost { background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); }
.hero-live {
  display: grid; gap: 12px; padding: 18px 18px 14px; border-radius: var(--r-card); color: #fff; text-decoration: none;
  background: var(--glass); border: 1px solid var(--glass-line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  opacity: 0; animation: rise .8s .5s cubic-bezier(.2, .7, .2, 1) forwards; transform: translateY(18px);
  transition: border-color .2s;
}
.hero-live:hover { border-color: rgba(185, 247, 91, .45); }
.hero-live .status { justify-self: start; }
.hero-live-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hero-live-row small { display: block; font-size: .75rem; color: #aab4c8; }
.hero-live-row strong { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.hero-spark { width: 100%; height: 56px; }
.hero-spark .area { fill: url(#sparkFill); }
.hero-spark .line { fill: none; stroke: var(--lime); stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.hero-spark .now { stroke: #fff; stroke-width: 1; stroke-dasharray: 2 3; vector-effect: non-scaling-stroke; }
.hero-live-foot { font-size: .74rem; color: #aab4c8; }

/* ---------- 02 Segment ---------- */
.seg-sec { padding-bottom: clamp(48px, 6vw, 80px); }
.seg { display: grid; grid-template-columns: 1.7fr 1fr; gap: 20px; }
.seg-tile {
  position: relative; overflow: hidden; isolation: isolate; border-radius: var(--r-card); min-height: 430px; color: #fff; text-decoration: none;
  display: flex; align-items: flex-end;
}
.seg-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.1s cubic-bezier(.2, .7, .2, 1); }
.seg-tile::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(17, 28, 56, 0) 25%, rgba(17, 28, 56, .72) 55%, rgba(17, 28, 56, .97) 100%); transition: background-color .3s; }
.seg-home::before { background: linear-gradient(180deg, rgba(17, 28, 56, .05) 20%, rgba(17, 28, 56, .8) 60%, rgba(17, 28, 56, .97) 100%); }
.seg-tile:hover img, .seg-tile:focus-visible img { transform: scale(1.05); }
.seg-body { padding: clamp(22px, 2.6vw, 34px); display: grid; gap: 12px; justify-items: start; }
.seg-tag { font-size: .8rem; font-weight: 700; padding: 5px 11px; border-radius: 999px; background: var(--yellow); color: var(--navy-deep); }
.seg-tile h3 { font-size: clamp(1.5rem, 2.4vw, 2.1rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; max-width: 14em; }
.seg-tile ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; color: #e3e9f3; }
.seg-tile li { display: flex; gap: 10px; align-items: baseline; }
.seg-tile li::before { content: ''; flex: none; width: 7px; height: 7px; border-radius: 2px; background: var(--lime); transform: translateY(-1px); }
/* extra sentence: revealed on hover/focus with a pointer, always visible on touch */
.seg-more { display: grid; grid-template-rows: 1fr; }
.seg-more p { min-height: 0; overflow: hidden; color: #c9d3e4; max-width: 34em; }
@media (hover: hover) and (pointer: fine) {
  .seg-more { grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .4s var(--ease), opacity .3s; }
  .seg-tile:hover .seg-more, .seg-tile:focus-visible .seg-more { grid-template-rows: 1fr; opacity: 1; }
}

.viz-line { width: 100%; height: 70px; margin-bottom: 8px; }
.viz-line path { fill: none; stroke: var(--green); stroke-width: 2.4; stroke-linejoin: round; vector-effect: non-scaling-stroke; stroke-dasharray: 400; stroke-dashoffset: 400; transition: stroke-dashoffset 1.6s cubic-bezier(.2, .7, .2, 1); }
.is-in .viz-line path { stroke-dashoffset: 0; }

/* ---------- 04 Oplossingen: editorial ---------- */
/* "Wat doet": visual tiles (site.css .vtile) with the homepage's own visuals: today's real price bars and the app */
.sol .vtile { min-height: 360px; }
.sol-contract { background: radial-gradient(80% 70% at 70% 10%, rgba(102, 180, 52, .16), transparent 70%), var(--night); }
.sol-viz { padding: 22px 24px 0; display: grid; gap: 14px; }
/* the price bars sit above the text, not behind it, so they never collide on small screens */
.sol-contract { justify-content: space-between; }
.sol-contract .vtile-viz { position: relative; inset: auto; z-index: 0; }
.sol-contract::before { display: none; }
.qbars { display: flex; align-items: flex-end; gap: 3px; height: 100px; }
.qbars i { flex: 1; border-radius: 3px 3px 0 0; background: rgba(255, 255, 255, .16); height: calc(var(--v) * 100%); transform-origin: bottom; transform: scaleY(0); transition: transform .8s cubic-bezier(.2, .7, .2, 1), background-color .4s; }
.qbars i.lo { background: var(--lime); }
.qbars i.hi { background: #e0de09; }
.is-in .qbars i { transform: none; }
.sol-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.sol-chips span { font-size: .78rem; font-weight: 650; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--glass-line); color: #d5dcea; background: rgba(255, 255, 255, .05); }
.sol-note { margin-top: 22px; font-size: .9rem; color: var(--muted); max-width: 60em; }

/* ---------- Film on the homepage: shorter story ---------- */

/* ---------- 05 Market explorer ---------- */
.market-sec { background: var(--midnight); color: #fff; }
.market-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 36px; }
.market-head .lead { color: #aab4c8; margin-top: 16px; }
.explorer-x { border-radius: var(--r-card); background: rgba(255, 255, 255, .04); border: 1px solid var(--glass-line); overflow: hidden; }
.x-bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; padding: 16px; border-bottom: 1px solid var(--glass-line); }
.x-tabs { display: flex; gap: 4px; padding: 4px; border-radius: var(--r-inner); background: rgba(0, 0, 0, .25); }
.x-tabs button { border: 0; background: none; color: #aab4c8; font: inherit; font-weight: 650; font-size: .92rem; padding: 9px 16px; border-radius: var(--r-ctl); cursor: pointer; transition: background-color .2s, color .2s; }
.x-tabs button:hover { color: #fff; }
.x-tabs button[aria-selected="true"] { background: #fff; color: var(--midnight); }
.x-tabs em { font-style: normal; font-size: .7rem; font-weight: 700; color: var(--amber); margin-left: 4px; }
.x-opts { display: flex; flex-wrap: wrap; gap: 10px; }
.seg-toggle { display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(0, 0, 0, .25); }
.seg-toggle button { border: 0; background: none; color: #aab4c8; font: inherit; font-size: .85rem; font-weight: 650; padding: 7px 14px; border-radius: 999px; cursor: pointer; }
.seg-toggle button[aria-pressed="true"] { background: rgba(185, 247, 91, .16); color: var(--lime); }
.seg-toggle button:disabled { opacity: .4; cursor: not-allowed; }
.x-body { display: grid; grid-template-columns: minmax(0, 1fr) 330px; }
.x-chart-wrap { position: relative; padding: 22px 22px 18px; min-width: 0; }
.x-readout { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; min-height: 56px; }
.x-time { color: #aab4c8; font-size: .9rem; font-variant-numeric: tabular-nums; }
.x-price { font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.x-sel { color: #aab4c8; font-size: .85rem; flex-basis: 100%; }
.x-chart { width: 100%; height: auto; display: block; touch-action: pan-y; cursor: crosshair; outline: none; border-radius: var(--r-ctl); }
.x-chart:focus-visible { box-shadow: 0 0 0 2px var(--lime); }
.x-chart .grid line { stroke: rgba(255, 255, 255, .07); }
.x-chart .grid .zero { stroke: rgba(255, 255, 255, .3); }
.x-chart text { fill: #8f9ab0; font-size: 12px; font-family: inherit; }
.x-chart .bar { transition: opacity .15s; }
.x-chart .band { opacity: .14; }
.x-chart .usage { fill: none; stroke: #fff; stroke-width: 2; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.x-chart .usage-area { fill: rgba(255, 255, 255, .07); }
.x-chart .sel { fill: rgba(185, 247, 91, .12); stroke: rgba(185, 247, 91, .5); stroke-width: 1; }
.x-chart .win-best { fill: rgba(185, 247, 91, .16); stroke: var(--lime); stroke-dasharray: 4 4; }
.x-chart .win-worst { fill: rgba(246, 134, 42, .14); stroke: var(--amber); stroke-dasharray: 4 4; }
.x-chart .cursor { stroke: #fff; stroke-opacity: .6; stroke-dasharray: 3 3; }
.x-def { margin-top: 10px; font-size: .8rem; color: #8f9ab0; }
/* loading / empty / error states over the chart */
.x-state {
  position: absolute; inset: 78px 22px 40px; display: grid; place-content: center; justify-items: center; gap: 12px; text-align: center;
  border-radius: var(--r-inner); background: rgba(11, 16, 36, .82); color: #d5dcea; padding: 20px;
}
.x-state.is-loading { background: linear-gradient(90deg, rgba(255, 255, 255, .03) 0%, rgba(255, 255, 255, .08) 50%, rgba(255, 255, 255, .03) 100%) 0 0 / 200% 100%, rgba(11, 16, 36, .6); animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0, 0 0; } }
.x-state button { border: 1px solid var(--glass-line); background: rgba(255, 255, 255, .08); color: #fff; font: inherit; font-weight: 650; padding: 8px 16px; border-radius: 999px; cursor: pointer; }
.explorer-x.is-empty .x-side { opacity: .35; pointer-events: none; }
.x-side { border-left: 1px solid var(--glass-line); padding: 22px; background: rgba(0, 0, 0, .12); }
.x-side h3 { font-size: 1.1rem; margin-bottom: 16px; }
.x-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 16px 0; }
.x-stats div { padding: 12px; border-radius: var(--r-ctl); background: rgba(255, 255, 255, .05); }
.x-stats dt { font-size: .75rem; color: #8f9ab0; }
.x-stats dd { margin: 4px 0 0; font-weight: 750; font-variant-numeric: tabular-nums; }
.x-hint { font-size: .8rem; color: #8f9ab0; }
.x-label { display: flex; justify-content: space-between; font-size: .85rem; color: #cfd6e4; margin-top: 12px; }
.x-label output { color: #fff; font-weight: 700; }
.x-side select { width: 100%; margin-top: 6px; padding: 10px 12px; border-radius: var(--r-ctl); border: 1px solid var(--glass-line); background: #18234a; color: #fff; font: inherit; }
.x-side input[type="range"] { width: 100%; accent-color: var(--lime); }
.demo-tag { font-size: .68rem; font-weight: 800; color: var(--amber); }
.slim-result { margin: 18px 0 12px; display: grid; gap: 8px; }
.slim-row { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 10px 12px; border-radius: var(--r-ctl); background: rgba(255, 255, 255, .05); }
.slim-row span { font-size: .75rem; color: #8f9ab0; grid-column: 1 / -1; display: flex; align-items: center; gap: 7px; }
.slim-row span::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.slim-row strong { font-variant-numeric: tabular-nums; }
.slim-row em { font-style: normal; font-variant-numeric: tabular-nums; color: #cfd6e4; }
.slim-row.good span::before { background: var(--lime); }
.slim-row.bad span::before { background: var(--amber); }
.slim-diff { display: flex; justify-content: space-between; align-items: baseline; padding: 4px 2px; }
.slim-diff span { font-size: .8rem; color: #aab4c8; }
.slim-diff strong { font-size: 1.5rem; color: var(--lime); font-variant-numeric: tabular-nums; }
/* "Voorbeeldverbruik": profile with/without steering and battery */
.x-chart .usage-before { fill: none; stroke: rgba(255, 255, 255, .55); stroke-width: 1.6; stroke-dasharray: 5 4; vector-effect: non-scaling-stroke; }
.x-chart .u-limit { stroke: #ff6b5b; stroke-width: 1.6; stroke-dasharray: 6 4; vector-effect: non-scaling-stroke; }
.x-chart .u-over { fill: rgba(255, 107, 91, .28); }
.u-meta { font-size: .8rem; color: #aab4c8; margin: 8px 0 0; }
.u-toggles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.u-toggles > div { display: grid; gap: 6px; }
.u-tlabel { font-size: .78rem; color: #cfd6e4; }
.u-toggles .seg-toggle button { flex: 1; padding: 6px 10px; }
.u-legend { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .74rem; color: #aab4c8; }
.u-legend li { display: inline-flex; align-items: center; gap: 6px; }
.u-legend i { width: 16px; height: 0; border-top: 2px dashed rgba(255, 255, 255, .6); }
.u-legend .ul-met { border-top: 2px solid #fff; }
.u-legend .ul-limit { border-top-color: #ff6b5b; }
.u-compare { width: 100%; border-collapse: collapse; margin: 14px 0 6px; font-size: .84rem; font-variant-numeric: tabular-nums; }
.u-compare th, .u-compare td { text-align: left; padding: 7px 6px; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.u-compare thead th { font-size: .72rem; color: #8f9ab0; font-weight: 600; }
.u-compare tbody th { font-weight: 500; color: #cfd6e4; }
.u-compare td { font-weight: 700; }
.u-compare td:last-child { color: var(--lime); }
/* "Handelen" tab: battery level line, window labels, cycle toggle */
.x-chart .soc { fill: none; stroke: #fff; stroke-width: 2; stroke-dasharray: 5 4; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.x-chart .soc-axis { fill: #cfd6e4; font-size: 11px; }
.x-chart .win-label { fill: #fff; font-size: 11px; font-weight: 700; }
.x-intro { font-size: .85rem; color: #aab4c8; line-height: 1.5; margin: -4px 0 6px; }
.h-cycles { display: flex; margin-top: 16px; }
.h-cycles button { flex: 1; }
#hResult { margin-bottom: 4px; }
.slim-row .slim-when { grid-column: 1 / -1; font-size: .74rem; color: #aab4c8; line-height: 1.45; font-variant-numeric: tabular-nums; }
.x-table { border-top: 1px solid var(--glass-line); padding: 14px 22px; }
.x-table summary { cursor: pointer; font-weight: 650; color: #cfd6e4; }
.x-table-scroll { max-height: 320px; overflow: auto; margin-top: 12px; }
.x-table table { width: 100%; border-collapse: collapse; font-size: .85rem; font-variant-numeric: tabular-nums; }
.x-table caption { text-align: left; color: #8f9ab0; padding-bottom: 8px; }
.x-table th, .x-table td { text-align: left; padding: 6px 10px; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.x-table th { color: #8f9ab0; font-weight: 600; position: sticky; top: 0; background: #142049; }

/* ---------- 06 Energiescan: card quiz (one question per card, tiles with photos, result card) ---------- */
.quiz-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.scan-kicker { font-weight: 700; color: var(--green-dark); }
.scan-head h2 { margin: 10px 0 16px; font-size: clamp(1.9rem, 3.2vw, 2.6rem); }
.scan-promise { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 8px; }
.scan-promise li { display: flex; gap: 10px; align-items: center; font-weight: 550; font-size: .95rem; }
.scan-promise li::before { content: ''; width: 18px; height: 18px; flex: none; border-radius: 50%; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.5 2.5L14 7.5' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px; }
.quiz { background: #fff; border-radius: var(--r-card); box-shadow: var(--shadow-card); padding: clamp(20px, 2.6vw, 30px); min-height: 520px; display: flex; flex-direction: column; }
.quiz-top { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.quiz-back { border: 1px solid var(--line); background: #fff; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: var(--ink); }
.quiz-back svg { transform: rotate(180deg); }
.quiz-back[hidden] { display: none; }
.quiz-dots { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; }
.quiz-dots li { width: 28px; height: 5px; border-radius: 5px; background: var(--line); transition: background-color .3s; }
.quiz-dots li.on { background: var(--green); }
.quiz-count { margin-left: auto; font-size: .82rem; font-weight: 650; color: var(--muted); }
.quiz-q { display: flex; flex-direction: column; gap: 16px; flex: 1; animation: quiz-in .35s var(--ease); }
.quiz-q[hidden] { display: none; }
.quiz-q h3 { font-size: 1.3rem; outline: none; }
.quiz-q h3 small { font-size: .82rem; font-weight: 600; color: var(--muted); margin-left: 6px; }
@keyframes quiz-in { from { opacity: 0; transform: translateX(14px); } }
.quiz-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.quiz-tiles button { position: relative; overflow: hidden; isolation: isolate; aspect-ratio: 4 / 3; border: 0; border-radius: var(--r-inner); padding: 0; cursor: pointer; background: var(--night); color: #fff; text-align: left; display: flex; align-items: flex-end; font: inherit; box-shadow: 0 0 0 0 var(--green); transition: box-shadow .2s, transform .2s var(--ease); }
.quiz-tiles img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s var(--ease); }
.quiz-tiles button::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(17, 28, 56, 0) 30%, rgba(17, 28, 56, .88) 100%); }
.quiz-tiles span { padding: 10px 12px; font-size: .88rem; font-weight: 700; line-height: 1.25; }
.quiz-tiles button:hover img { transform: scale(1.05); }
.quiz-tiles button.is-on { box-shadow: 0 0 0 3px var(--green); }
.quiz-tiles button.is-on::after { content: '✓'; position: absolute; top: 8px; right: 8px; width: 24px; height: 24px; border-radius: 50%; background: var(--green); color: var(--night); display: grid; place-items: center; font-weight: 800; font-size: .8rem; }
.quiz-tiles button:focus-visible, .quiz-pills button:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.quiz-pills { display: grid; gap: 8px; }
.quiz-pills button { border: 1.5px solid var(--line); background: var(--paper); border-radius: var(--r-ctl); padding: 14px 16px; font: inherit; font-weight: 650; text-align: left; cursor: pointer; transition: border-color .2s, background-color .2s; }
.quiz-pills button:hover { border-color: var(--green); }
.quiz-pills button.is-on { border-color: var(--green); background: rgba(102, 180, 52, .12); color: var(--green-dark); }
.quiz-foot { margin-top: auto; padding-top: 6px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.quiz-foot .btn { padding: .62em 1.1em; font-size: .9rem; }
.quiz-skip { border: 0; background: none; font: inherit; font-weight: 650; color: var(--muted); cursor: pointer; padding: 6px 0; text-decoration: underline; text-underline-offset: 3px; }
.quiz-result { gap: 10px; }
.quiz-result:focus { outline: none; }
.quiz-label { margin: 0; font-size: .82rem; font-weight: 700; color: var(--green-dark); }
.quiz-result h3 { font-size: 1.5rem; }
.quiz-top-text { margin: 0; color: var(--muted); }
.quiz-top-link { font-weight: 650; color: var(--green-dark); text-decoration: none; }
.quiz-chart-box { margin-top: 6px; background: var(--paper); border-radius: var(--r-inner); padding: 12px 14px; display: grid; gap: 8px; }
.quiz-chart-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; font-size: .92rem; }
.quiz-chart-head b { font-size: 1.2rem; margin-right: 4px; }
.fscan-mode { display: inline-flex; padding: 3px; border-radius: 999px; background: #fff; border: 1px solid var(--line); }
.fscan-mode button { border: 0; background: none; font: inherit; font-size: .78rem; font-weight: 650; padding: 5px 10px; border-radius: 999px; cursor: pointer; color: var(--muted); }
.fscan-mode button[aria-pressed="true"] { background: var(--night); color: #fff; }
.fscan-chart { width: 100%; height: 110px; display: block; border-radius: var(--r-ctl); background: #fff; }
.fscan-chart .fs-base { fill: #b7c0d6; }
.fscan-chart .fs-flex { fill: var(--green); }
.fscan-chart .fs-cheap { fill: rgba(185, 247, 91, .3); }
.fscan-chart .fs-dear { fill: rgba(224, 222, 9, .24); }
.fscan-legend { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: .75rem; color: var(--muted); margin: 0; }
.fscan-legend span { display: inline-flex; align-items: center; gap: 5px; }
.fscan-legend i { width: 9px; height: 9px; border-radius: 2px; }
.fscan-legend .l-flex { background: var(--green); }
.fscan-legend .l-cheap { background: rgba(185, 247, 91, .6); }
.fscan-legend .l-dear { background: rgba(224, 222, 9, .55); }
/* cold store temperature (example) as a dotted line on its own scale */
.fscan-plot { position: relative; }
.fscan-chart .fs-temp { fill: none; stroke: var(--night); stroke-width: 2; stroke-dasharray: 2 4; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.fscan-temp-axis span { position: absolute; right: 6px; transform: translateY(-50%); font-size: .68rem; font-weight: 700; color: var(--night); background: rgba(255, 255, 255, .85); padding: 0 4px; border-radius: 4px; }
.fscan-legend .l-temp { width: 14px; height: 0; border-radius: 0; border-top: 2px dotted var(--night); }
.quiz-more { margin: 0; font-size: .88rem; color: var(--muted); }
.quiz-more a { color: var(--green-dark); font-weight: 650; }
.scan-sec.sec { padding: clamp(64px, 8vw, 104px) 0; }
/* icon tiles (no photos): calm white tiles with a line icon */
.quiz-tiles button { aspect-ratio: auto; min-height: 92px; background: var(--paper); color: var(--ink); border: 1.5px solid var(--line); flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 14px; }
.quiz-tiles button::before { content: none; }
.quiz-tiles button:hover { border-color: var(--green); background: #fff; }
.quiz-tiles button:hover .qi { background: var(--green); color: var(--night); }
.quiz-tiles .qi { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--night); color: var(--lime); padding: 0; transition: background-color .2s, color .2s; }
.quiz-tiles .qi svg { width: 20px; height: 20px; }
.quiz-tiles span:not(.qi) { padding: 0; font-size: .9rem; }
.quiz-tiles button.is-on { border-color: var(--green); background: rgba(102, 180, 52, .1); box-shadow: none; }
.quiz-tiles button.is-on .qi { background: var(--green); color: var(--night); }
.quiz { min-height: 400px; }
@media (max-width: 900px) { .quiz-grid { grid-template-columns: minmax(0, 1fr); } .quiz { min-height: 0; } }
@media (max-width: 520px) { .quiz-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) { .quiz-q { animation: none; } .quiz-tiles img { transition: none; } }

/* ---------- 07 Over ---------- */
.about { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.about-text { display: grid; gap: 16px; }
.about-text p:not(.lead) { color: var(--muted); max-width: 34em; }
.about-legal { font-size: .85rem; }
.about-points { list-style: none; margin: 8px 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 28px; }
.about-points li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: start; }
.about-points svg { width: 22px; height: 22px; color: var(--green-dark); margin-top: 2px; }
.about-points p { margin: 0; color: var(--muted); font-size: .97rem; line-height: 1.5; }
.about-points b { display: block; color: var(--ink); font-size: 1rem; margin-bottom: 2px; }
.about-points a { color: var(--green-dark); font-weight: 650; }
@media (max-width: 640px) { .about-points { grid-template-columns: 1fr; } }

/* ---------- 08 Cases ---------- */
.tour-nav { display: flex; gap: 10px; flex: none; }
.cases-sec { padding-top: 0; overflow: hidden; }
.cases-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 32px; }
.cases-head .lead { margin-top: 14px; }
.cases-track {
  --edge: max(24px, calc((100vw - var(--wrap)) / 2));
  list-style: none; margin: 0; display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 4px var(--edge) 20px; scroll-padding-inline: var(--edge); scrollbar-width: none;
}
.cases-track::-webkit-scrollbar { display: none; }
.cases-track:focus-visible { outline: 2px solid var(--green); outline-offset: -2px; }
.case-card {
  flex: 0 0 min(420px, 84vw); scroll-snap-align: start; border-radius: var(--r-card); padding: 28px;
  border: 2px dashed rgba(26, 35, 73, .22); background: rgba(255, 255, 255, .6); display: grid; gap: 12px; align-content: start;
}
.case-card h3 { font-size: 1.3rem; }
.case-card dl { margin: 6px 0 0; display: grid; gap: 4px; }
.case-card dt { font-size: .78rem; font-weight: 700; color: var(--navy); margin-top: 8px; }
.case-card dd { margin: 0; color: var(--muted); }

/* ---------- 09 Kennis ---------- */
.kennis { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 22px; }
.k-card { border-radius: var(--r-card); background: var(--midnight); color: #fff; display: grid; grid-template-rows: auto 1fr; text-decoration: none; transition: transform .25s var(--ease); }
.k-card:hover { transform: translateY(-4px); }
.k-viz { position: relative; height: 190px; padding: 56px 22px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.k-viz svg { width: 100%; height: 124px; display: block; }
.k-viz .kb-m { fill: #3d4c78; } .k-viz .kb-c { fill: #66b434; } .k-viz .kb-d { fill: #f6a62a; } .k-viz .kb-n { fill: #b9f75b; }
.k-viz .kb-h { fill: #fff; }
.k-viz .kb-zero { stroke: rgba(255, 255, 255, .5); stroke-dasharray: 3 4; }
/* three different visuals: heat map (96 quarters), line through zero, comparison bars */
/* quarter prices: a day of 24 hours, one hour zoomed into its four quarter prices */
.kz { height: 124px; display: grid; grid-template-rows: 30px 14px 1fr; }
.kz-day { display: flex; align-items: flex-end; gap: 2px; height: 30px; }
.kz-day i { flex: 1; height: var(--h); border-radius: 2px 2px 0 0; background: #3d4c78; }
.kz-day i.on { background: #f6a62a; box-shadow: 0 0 0 2px rgba(246, 166, 42, .35); }
.k-viz .kz-wedge { width: 100%; height: 14px; display: block; }
.kz-wedge polygon { fill: rgba(246, 166, 42, .16); }
.kz-q { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; align-items: end; background: rgba(246, 166, 42, .08); border-radius: 0 0 10px 10px; padding: 6px 8px 0; }
.kz-q div { display: grid; grid-template-rows: 1fr auto auto; height: 100%; justify-items: center; }
.kz-q b { align-self: end; width: 70%; height: var(--h); max-height: 100%; border-radius: 4px 4px 0 0; background: linear-gradient(180deg, #f6a62a, #c9821c); min-height: 6px; }
.kz-q div:nth-child(3) b { background: linear-gradient(180deg, #ffc65a, #f6a62a); }
.kz-q span { font-size: .68rem; color: #aab4c8; margin-top: 3px; }
.kz-q em { font-style: normal; font-size: .74rem; font-weight: 700; color: #fff; }
.k-viz-line { position: relative; }
.k-line { width: 100%; height: 124px; display: block; overflow: visible; }
.k-line .k-zero { stroke: rgba(255, 255, 255, .45); stroke-dasharray: 3 4; vector-effect: non-scaling-stroke; }
.k-zero-label { position: absolute; left: 22px; font-size: .7rem; color: #b9f75b; transform: translateY(-140%); }
.k-flag { position: absolute; top: 18px; right: 20px; font-size: .75rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .1); color: #fff; }
.k-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; }
.k-meta { font-size: .8rem; color: #aab4c8; }
.k-card h3 { font-size: 1.25rem; line-height: 1.25; }
.k-card p { color: #c3cad8; margin: 0; font-size: .97rem; }
.k-more { margin-top: auto; padding-top: 6px; font-weight: 700; color: var(--lime); display: inline-flex; gap: 6px; align-items: center; }
.k-split { height: 124px; display: grid; gap: 12px; align-content: center; }
.k-split div { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: end; }
.k-split span { font-size: .78rem; color: #aab4c8; }
.k-split b { font-size: .95rem; text-align: right; }
.k-split i { grid-column: 1 / -1; height: 14px; border-radius: 7px; }
.k-split .ks-a { background: linear-gradient(90deg, #66b434, #b9f75b); }
.k-split .ks-b { background: linear-gradient(90deg, #66b434 0 38%, #3d4c78 38%); }

/* ---------- 10 FAQ + finale ---------- */
.faq-sec { padding-bottom: clamp(60px, 8vw, 110px); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .x-body { grid-template-columns: 1fr; }
  .x-side { border-left: 0; border-top: 1px solid var(--glass-line); }
  .about { grid-template-columns: 1fr; }
  .kennis { grid-template-columns: 1fr 1fr; }
  .kennis .k-card:first-child { grid-column: span 2; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-live { max-width: 420px; }
}
@media (max-width: 860px) {
  .seg { grid-template-columns: 1fr; }
  .seg-tile { min-height: 400px; }
  .market-head, .cases-head { flex-direction: column; align-items: flex-start; }
  .hb-high { display: none; }
}
@media (max-width: 640px) {
  .kennis { grid-template-columns: 1fr; }
  .kennis .k-card:first-child { grid-column: auto; }
  .x-bar { padding: 12px; }
  .x-tabs { width: 100%; }
  .x-tabs { display: grid; grid-template-columns: 1fr 1fr; }
  .x-tabs button { flex: 1; padding: 9px 8px; font-size: .85rem; }
  .x-chart-wrap { padding: 16px 12px; }
  .hero-badge { display: none; }
  .hero-live { display: none; }
  .hero-flow { display: none; }
  .hero-inner { padding-top: 120px; }
  .hero-media img { object-position: 42% 30%; }
}
/* badges and light lines are pinned to the 16:9 image: only where the crop keeps those spots in place */
@media (max-aspect-ratio: 29/20), (min-aspect-ratio: 2/1) { .hero-badge, .hero-flow { display: none; } }
/* portrait phones: the valley sits in the upper half, the copy below it */
@media (max-aspect-ratio: 3/4) { .hero-media img { object-position: 45% 0; height: 62%; } .hero { background: #0b1024; } }

@media (prefers-reduced-motion: reduce) {
  .hero-media img, .hero-copy > *, .hero-live, .hero-badge { animation: none; opacity: 1; transform: none; }
  .hero-flow .flow { animation: none; stroke-dasharray: none; opacity: .4; }
  .viz-line path { stroke-dashoffset: 0; transition: none; }
  .status.is-live i { animation: none; }
}

/* ---------- Neon sections (sam, 2026-11-04) ---------- */

/* ---------- Merkfilm in "Over" ---------- */
.brandfilm { position: relative; margin: 0; border-radius: var(--r-card); background: var(--midnight); aspect-ratio: 16 / 9; }
.brandfilm video { width: 100%; height: 100%; display: block; border-radius: inherit; object-fit: cover; background: var(--midnight); }
.brandfilm video::cue { opacity: 0; }
.bf-play {
  position: absolute; left: 20px; bottom: 20px; display: inline-flex; align-items: center; gap: 12px; z-index: 5;
  font: inherit; font-weight: 700; color: var(--midnight); background: #fff; border: 0; border-radius: 999px; padding: 10px 20px 10px 10px; cursor: pointer;
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .5); transition: transform .2s var(--ease);
}
.bf-play:hover { transform: translateY(-2px); }
.bf-play svg { width: 38px; height: 38px; padding: 9px; border-radius: 50%; background: var(--lime); color: var(--midnight); }
.bf-play small { font-weight: 500; color: #5c5c7a; margin-left: 6px; }
.brandfilm.is-playing .bf-play { opacity: 0; pointer-events: none; }
.bf-cap { position: absolute; left: 50%; bottom: 7%; transform: translateX(-50%); margin: 0; max-width: 86%; text-align: center; z-index: 4;
  color: #fff; font-weight: 650; font-size: clamp(.9rem, 1.7vw, 1.2rem); line-height: 1.35;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .9), 0 0 14px rgba(0, 0, 0, .55); }
.bf-cap:empty { display: none; }
/* keep captions clear of the native player controls while playing */
.brandfilm.is-playing .bf-cap { bottom: 19%; }

/* Handelen: battery lane, grid operator call-off, other markets */
.x-chart .b-base { stroke: rgba(255, 255, 255, .22); }
.x-chart .b-in { fill: var(--lime); }
.x-chart .b-out { fill: var(--amber); }
.x-chart .b-lane text { font-size: 11px; }
.x-chart .afroep { fill: rgba(255, 255, 255, .06); stroke: #cfd6e4; stroke-width: 1.2; stroke-dasharray: 5 4; }
.x-chart .afroep-label { fill: #cfd6e4; font-size: 11px; font-weight: 700; letter-spacing: .04em; }
.h-afroep { display: grid; gap: 6px; margin-top: 14px; }
.h-afroep .seg-toggle { display: flex; }
.h-afroep .seg-toggle button { flex: 1; padding: 6px 10px; }
.h-markets { margin-top: 14px; border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 12px; }
.h-markets summary { cursor: pointer; font-weight: 650; font-size: .9rem; }
.h-markets p { font-size: .8rem; color: #aab4c8; line-height: 1.5; margin: 10px 0; }
.h-markets dl { display: grid; gap: 10px; margin: 0; }
.h-markets dl > div { border-top: 3px solid var(--mk); padding-top: 6px; }
.h-markets dt { font-weight: 700; font-size: .82rem; }
.h-markets dd { margin: 2px 0 0; font-size: .78rem; color: #aab4c8; line-height: 1.5; }
.h-markets .m-da { --mk: rgba(255, 255, 255, .55); }
.h-markets .m-bat { --mk: var(--lime); }
.h-markets .m-onb { --mk: #ef5a6f; }
.h-markets .m-net { --mk: #8fb3ff; }
.x-chart .b-lane .b-tin { fill: var(--lime); font-size: 9.5px; font-weight: 650; }
.x-chart .b-lane .b-tout { fill: var(--amber); font-size: 9.5px; font-weight: 650; }
.h-legend { margin-top: 14px; }
.h-legend i { display: inline-block; width: 12px; height: 10px; border-top: 0; border-radius: 2px; }
.h-legend .hl-in { background: var(--lime); }
.h-legend .hl-out { background: var(--amber); }
.h-legend .hl-af { border: 1.2px dashed #cfd6e4; background: rgba(255, 255, 255, .06); }

/* Handelen: label above each marked block */
.x-chart .b-tag { font-size: 10.5px; font-weight: 650; }
.x-chart .b-tag.b-tin { fill: var(--lime); }
.x-chart .b-tag.b-tout { fill: var(--amber); }
