:root {
  --ink: #101512;
  --ink-soft: #26312b;
  --paper: #f5f7f4;
  --white: #ffffff;
  --green: #22c96d;
  --green-dark: #08783d;
  --blue: #2388d9;
  --amber: #f1ad2f;
  --red: #d73b37;
  --line: #d8ded9;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: 0;
}
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; }

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  padding: 0 max(24px, calc((100vw - var(--max)) / 2));
  color: var(--white);
  background: rgba(16, 21, 18, .88);
  border-bottom: 1px solid rgba(255,255,255,.15);
  backdrop-filter: blur(14px);
}
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font-size: 20px; }
.brand img { object-fit: contain; }
.brand strong { color: var(--green); }
nav { display: flex; align-items: center; gap: 26px; }
nav a { text-decoration: none; font-size: 14px; font-weight: 700; }
nav a:hover { color: var(--green); }
.nav-cta { padding: 10px 15px; border: 1px solid var(--green); }
.menu-button { display: none; width: 44px; height: 44px; border: 0; background: transparent; padding: 10px; }
.menu-button span { display: block; height: 2px; margin: 5px 0; background: white; }

.hero {
  position: relative;
  min-height: min(820px, 92vh);
  display: flex;
  align-items: center;
  color: white;
  background: url("assets/hejaenergy-hero.png") center center / cover no-repeat;
  overflow: hidden;
}
.hero-shade { position: absolute; inset: 0 46% 0 0; background: rgba(12, 18, 14, .79); }
.hero-content { position: relative; z-index: 1; width: min(650px, calc(100% - 48px)); margin-left: max(24px, calc((100vw - var(--max)) / 2)); padding: 132px 0 90px; }
.eyebrow { margin: 0 0 14px; color: var(--green); font-size: 13px; line-height: 1.2; font-weight: 850; text-transform: uppercase; letter-spacing: 1.5px; }
.eyebrow.dark { color: var(--green-dark); }
.hero h1 { margin: 0; font-size: clamp(64px, 9vw, 130px); line-height: .92; letter-spacing: 0; }
.hero-copy { max-width: 610px; margin: 28px 0; color: #edf2ee; font-size: clamp(18px, 2vw, 23px); line-height: 1.45; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 20px; border: 1px solid transparent; border-radius: 4px; text-decoration: none; font-weight: 800; }
.button.primary { color: #082313; background: var(--green); }
.button.primary:hover { background: #43df87; }
.button.secondary { color: white; border-color: rgba(255,255,255,.65); background: rgba(16,21,18,.45); }
.hero-facts { display: flex; flex-wrap: wrap; gap: 0; list-style: none; padding: 0; margin: 34px 0 0; }
.hero-facts li { padding: 0 18px; border-left: 1px solid rgba(255,255,255,.35); font-size: 14px; font-weight: 750; }
.hero-facts li:first-child { padding-left: 0; border-left: 0; }
.scroll-cue { position: absolute; z-index: 2; left: 50%; bottom: 24px; width: 32px; height: 46px; border: 1px solid rgba(255,255,255,.8); border-radius: 18px; }
.scroll-cue span { position: absolute; left: 14px; top: 9px; width: 3px; height: 8px; background: white; animation: scroll 1.8s infinite; }
@keyframes scroll { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(16px); opacity: 0; } 100% { opacity: 0; } }

.band { padding: 100px max(24px, calc((100vw - var(--max)) / 2)); }
.section-heading { max-width: 760px; margin-bottom: 54px; }
.section-heading h2, .dashboard-copy h2, .safety h2, .service h2, .contact h2 { margin: 0; font-size: clamp(34px, 5vw, 62px); line-height: 1.05; letter-spacing: 0; }
.section-heading > p:last-child, .dashboard-copy > p, .service-copy > p { max-width: 700px; color: #526057; }
.energy-flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 0; padding: 0; list-style: none; background: var(--line); border: 1px solid var(--line); }
.energy-flow li { position: relative; min-height: 260px; padding: 34px; background: var(--white); }
.energy-flow .step { display: block; color: var(--green-dark); font-size: 13px; font-weight: 900; }
.energy-flow strong { display: block; margin-top: 58px; font-size: 27px; }
.energy-flow p { margin-bottom: 0; color: #5b665f; }

.modes { color: white; background: #151d19; }
.modes-inner { max-width: var(--max); margin: auto; }
.section-heading.light p:last-child { color: #bdc8c1; }
.mode-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.mode { min-height: 245px; padding: 25px; border: 1px solid #3b4840; border-top: 4px solid #5c6861; background: #1c2620; }
.mode.active { border-top-color: var(--green); }
.mode.autumn { border-top-color: var(--amber); }
.mode.manual { border-top-color: var(--blue); }
.mode-number { color: #819087; font-size: 13px; font-weight: 850; }
.mode h3 { margin: 66px 0 8px; font-size: 24px; }
.mode p { margin: 0; color: #bac5be; font-size: 15px; }

.dashboard-section { display: grid; grid-template-columns: .85fr 1.15fr; align-items: center; gap: 72px; background: #eef1ee; }
.dashboard-notes { margin-top: 40px; border-top: 1px solid #cdd5cf; }
.dashboard-notes div { display: grid; grid-template-columns: 145px 1fr; gap: 18px; padding: 17px 0; border-bottom: 1px solid #cdd5cf; }
.dashboard-notes span { color: #5a665e; font-size: 14px; }
.device-shell { width: min(100%, 660px); margin-left: auto; padding: 18px; color: white; background: #071422; border: 1px solid #247aca; box-shadow: 0 26px 70px rgba(20,35,26,.2); }
.device-top { display: grid; grid-template-columns: 1fr 1.4fr 42px; align-items: center; gap: 12px; padding: 15px; border: 1px solid #2166a4; }
.device-top small { display: block; color: #a8b7c6; }
.device-name { color: #6ec4ff; font-weight: 800; }
.device-mode { text-align: center; }
.device-mode strong { display: block; font-size: clamp(18px, 3vw, 30px); line-height: 1.1; }
.status-line { margin: 14px 0; padding: 12px; color: #3ae781; border: 1px solid #1db763; text-align: center; font-weight: 850; }
.status-line span { display: inline-block; width: 9px; height: 9px; margin-right: 7px; border-radius: 50%; background: #2adb77; }
.meter-row { display: grid; grid-template-columns: 1fr 1.35fr; gap: 12px; }
.power-meter, .mini-kpis div, .pwm-line { border: 1px solid #244e72; background: #0a1a2b; }
.power-meter { min-height: 280px; padding: 16px; text-align: center; }
.meter-label { display: block; font-weight: 800; }
.meter-arc { position: relative; width: 150px; height: 75px; margin: 45px auto 18px; overflow: hidden; border-radius: 150px 150px 0 0; border: 15px solid var(--green); border-bottom: 0; }
.meter-arc::after { content: ""; position: absolute; right: 0; top: 0; width: 38%; height: 100%; border-radius: 0 100% 0 0; border-top: 15px solid var(--amber); }
.meter-arc i { position: absolute; left: 50%; bottom: 0; z-index: 2; width: 66px; height: 4px; transform-origin: left center; transform: rotate(-5deg); background: white; transition: transform .7s ease; }
.power-meter > strong { font-size: 31px; }
.mini-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mini-kpis div { display: flex; flex-direction: column; justify-content: center; min-height: 104px; padding: 12px; text-align: center; }
.mini-kpis span, .pwm-line span { color: #9badbc; font-size: 13px; }
.mini-kpis strong { font-size: 18px; }
.pwm-line { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 10px; padding: 14px 16px; }
.system-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; }
.system-strip div { display: flex; flex-direction: column; min-height: 64px; justify-content: center; padding: 8px 10px; border: 1px solid #244e72; background: #0a1a2b; text-align: center; }
.system-strip span { color: #9badbc; font-size: 11px; }
.system-strip strong { font-size: 13px; }
.demo-controls { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 10px; }
.demo-controls button { min-height: 45px; color: white; border: 1px solid #315b7f; border-radius: 4px; background: #123453; font-weight: 800; cursor: pointer; }
.demo-controls button.selected { color: #062212; border-color: var(--green); background: var(--green); }
.demo-controls button[data-mode="Herfst"].selected { color: #241400; border-color: var(--amber); background: var(--amber); }
.demo-controls button[data-mode="Handmatig"].selected { color: white; border-color: #d27a00; background: #a95e00; }
.demo-controls button[data-mode="Uit"].selected { color: white; border-color: var(--red); background: #9f1d1d; }
.manual-control { margin-top: 8px; padding: 13px 15px; border: 1px solid #315b7f; background: #0a1a2b; }
.manual-control label { display: flex; justify-content: space-between; gap: 12px; color: #b8c7d4; font-size: 13px; }
.manual-control label strong { color: white; }
.manual-control input { width: 100%; margin: 13px 0 2px; accent-color: var(--amber); }
.price-panel { margin-top: 12px; padding: 16px; border: 1px solid #244e72; background: #0a1a2b; }
.price-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.price-heading > div:first-child { display: flex; flex-direction: column; }
.price-heading span { color: #9badbc; font-size: 12px; }
.price-heading strong { font-size: 18px; }
.price-legend { color: #9badbc; font-size: 10px; white-space: nowrap; }
.price-legend span { display: inline-block; width: 8px; height: 8px; margin: 0 4px 0 8px; }
.price-legend .cheap { background: var(--green); }
.price-legend .current { background: var(--amber); }
.price-chart { height: 164px; display: grid; grid-template-columns: repeat(24, minmax(11px, 1fr)); align-items: end; gap: 3px; margin-top: 18px; padding: 22px 0 22px; border-bottom: 1px solid #41617b; background: repeating-linear-gradient(to bottom, transparent 0, transparent 34px, rgba(110,196,255,.11) 35px); }
.price-bar { position: relative; min-height: 7px; border-radius: 2px 2px 0 0; background: #3c89c2; transition: height .35s ease; }
.price-bar.cheap { background: var(--green); }
.price-bar.current { outline: 2px solid var(--amber); outline-offset: 1px; }
.price-bar span { position: absolute; left: 50%; bottom: -20px; transform: translateX(-50%); color: #9badbc; font-size: 8px; }
.price-bar b { position: absolute; left: 50%; top: -18px; transform: translateX(-50%); color: #dce8f1; font-size: 8px; font-weight: 800; white-space: nowrap; }
.price-bar.current b { color: var(--amber); }
.price-summary { display: grid; grid-template-columns: 1fr auto 1fr auto; gap: 8px 12px; align-items: center; margin-top: 28px; padding-top: 11px; border-top: 1px solid #203f5a; font-size: 12px; }
.price-summary span { color: #9badbc; }
.price-summary strong { color: #dce8f1; }

.features { background: white; }
.feature-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 60px; }
.feature-list article { display: grid; grid-template-columns: 45px 1fr; gap: 18px; padding: 28px 0; border-top: 1px solid var(--line); }
.feature-list article > span { color: var(--green-dark); font-size: 13px; font-weight: 900; }
.feature-list h3 { margin: 0 0 7px; font-size: 22px; }
.feature-list p { margin: 0; color: #5d6861; }

.benefits { background: #f7faf7; }
.benefit-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; border: 1px solid var(--line); background: var(--line); }
.benefit-grid article { min-height: 285px; padding: 28px; background: var(--white); }
.benefit-grid article > span { color: var(--green-dark); font-size: 13px; font-weight: 900; }
.benefit-grid h3 { margin: 58px 0 10px; font-size: 22px; line-height: 1.2; }
.benefit-grid p { margin: 0; color: #59655e; font-size: 15px; }
.plain-explanation { display: grid; grid-template-columns: 230px 1fr; gap: 30px; margin-top: 34px; padding: 25px 0; border-top: 1px solid #cbd4cd; border-bottom: 1px solid #cbd4cd; }
.plain-explanation strong { color: var(--green-dark); font-size: 19px; }
.plain-explanation p { margin: 0; }

.payback { display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; color: white; background: #17221b; }
.payback h2, .downloads h2 { margin: 0; font-size: clamp(34px, 5vw, 62px); line-height: 1.05; letter-spacing: 0; }
.payback-copy > p:not(.eyebrow) { color: #bfcbc3; }
.formula-line { margin: 30px 0 22px; padding: 18px 0; color: #dff9e9; border-top: 1px solid #405047; border-bottom: 1px solid #405047; font-weight: 800; }
.estimate-warning { padding-left: 16px; border-left: 3px solid var(--amber); font-size: 14px; }
.payback-calculator { align-self: start; padding: 28px; color: var(--ink); background: white; }
.payback-calculator > label { display: grid; grid-template-columns: 1fr 230px; align-items: center; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14px; font-weight: 750; }
.input-unit { display: flex; align-items: center; min-height: 46px; border: 1px solid #aeb9b1; background: #f8faf8; }
.input-unit b { padding: 0 10px; color: #536058; font-size: 13px; white-space: nowrap; }
.input-unit input { min-width: 0; width: 100%; height: 44px; padding: 0 8px; border: 0; outline: 0; background: transparent; font: inherit; font-size: 17px; font-weight: 800; }
.input-unit:focus-within { border-color: var(--green-dark); box-shadow: 0 0 0 2px rgba(8,120,61,.14); }
.payback-result { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 24px; background: #cdd6cf; border: 1px solid #cdd6cf; }
.payback-result div { min-height: 122px; display: flex; flex-direction: column; justify-content: center; padding: 18px; background: #edf4ef; }
.payback-result span { color: #59655e; font-size: 13px; }
.payback-result strong { margin-top: 6px; color: var(--green-dark); font-size: 27px; line-height: 1.15; }
#calc-explanation { margin: 18px 0 0; color: #536058; font-size: 13px; }

.downloads { display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; gap: 80px; background: #e8f1eb; }
.downloads-copy > p:last-child { max-width: 710px; color: #526057; }
.download-actions { padding: 30px; border-left: 1px solid #b8c7bc; }
.download-button { width: 100%; color: white; background: var(--green-dark); }
.download-button:hover { background: #075f32; }
.download-actions span { display: block; margin-top: 16px; color: #5b675f; font-size: 14px; }

.safety { display: grid; grid-template-columns: 1.2fr 1fr; gap: 80px; color: white; background: #9f2624; }
.safety > * { min-width: 0; }
.safety .eyebrow { color: #ffd789; }
.safety-copy { padding-top: 38px; border-top: 1px solid rgba(255,255,255,.45); }
.safety-copy p { margin-top: 0; }

.service { display: grid; grid-template-columns: .75fr 1.25fr; align-items: center; gap: 80px; }
.service-visual { position: relative; min-height: 360px; display: grid; place-items: center; background: #dde8e1; overflow: hidden; }
.service-visual img { position: relative; z-index: 2; width: 120px; filter: invert(1); }
.signal { position: absolute; border: 2px solid var(--green-dark); border-radius: 50%; }
.signal-one { width: 250px; height: 250px; }
.signal-two { width: 380px; height: 380px; border-color: var(--blue); }
.privacy-note { padding-left: 18px; border-left: 4px solid var(--green-dark); color: var(--ink) !important; font-weight: 700; }

.faq { background: white; }
.faq-list { max-width: 900px; margin-left: auto; }
details { border-top: 1px solid var(--line); }
details:last-child { border-bottom: 1px solid var(--line); }
summary { position: relative; padding: 25px 52px 25px 0; cursor: pointer; list-style: none; font-size: 20px; font-weight: 800; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 8px; top: 21px; color: var(--green-dark); font-size: 27px; }
details[open] summary::after { content: "−"; }
details p { max-width: 760px; padding: 0 42px 25px 0; margin: 0; color: #59665e; }

.contact { display: flex; align-items: center; justify-content: space-between; gap: 40px; color: white; background: #16201a; }
.contact .button { min-width: 210px; }
footer { display: grid; grid-template-columns: 1fr 1.3fr 1fr; align-items: center; gap: 30px; padding: 45px max(24px, calc((100vw - var(--max)) / 2)); color: #aebbb3; background: #0b100d; font-size: 14px; }
footer p { margin: 0; }
footer > div { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 18px; }
footer a { text-decoration: none; }
footer small { grid-column: 1 / -1; padding-top: 22px; border-top: 1px solid #2d3931; }

@media (max-width: 900px) {
  .menu-button { display: block; }
  nav { position: absolute; inset: 76px 0 auto 0; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 10px 24px 22px; background: #101512; }
  nav.open { display: flex; }
  nav a { padding: 13px 0; border-bottom: 1px solid #344139; }
  .nav-cta { margin-top: 8px; padding: 12px; text-align: center; }
  .hero-shade { inset: 0; background: rgba(12, 18, 14, .68); }
  .hero { min-height: 760px; background-position: 62% center; }
  .energy-flow, .mode-grid, .benefit-grid { grid-template-columns: 1fr 1fr; }
  .dashboard-section, .safety, .service, .payback, .downloads { grid-template-columns: 1fr; }
  .payback, .downloads { gap: 48px; }
  .device-shell { margin: 0 auto; }
  .service-visual { min-height: 280px; }
  footer { grid-template-columns: 1fr; }
  footer > div { justify-content: flex-start; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .site-header { height: 66px; }
  nav { top: 66px; }
  .brand { font-size: 18px; }
  .brand img { width: 36px; height: 36px; }
  .hero { min-height: 720px; align-items: flex-end; }
  .hero-content { width: calc(100% - 36px); margin-left: 18px; padding: 120px 0 80px; }
  .hero h1 { font-size: 60px; }
  .hero-copy { font-size: 18px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-facts { row-gap: 8px; }
  .hero-facts li { padding: 0 10px; font-size: 12px; }
  .band { padding: 72px 18px; }
  .section-heading { margin-bottom: 38px; }
  .energy-flow, .mode-grid, .feature-list, .benefit-grid { grid-template-columns: 1fr; }
  .energy-flow li { min-height: 210px; }
  .mode { min-height: 195px; }
  .mode h3 { margin-top: 42px; }
  .dashboard-section { gap: 42px; }
  .dashboard-notes div { grid-template-columns: 1fr; gap: 4px; }
  .device-shell { padding: 10px; }
  .device-top { grid-template-columns: 1fr 1fr 32px; padding: 10px; }
  .device-top img { width: 30px; height: 30px; }
  .meter-row { grid-template-columns: 1fr; }
  .power-meter { min-height: 245px; }
  .mini-kpis div { min-height: 86px; }
  .pwm-line { align-items: flex-start; flex-direction: column; }
  .system-strip { grid-template-columns: 1fr 1fr 1fr; }
  .demo-controls { grid-template-columns: 1fr 1fr; }
  .demo-controls button:last-child { grid-column: 1 / -1; }
  .price-heading { flex-direction: column; }
  .price-chart { grid-template-columns: repeat(24, minmax(8px, 1fr)); gap: 2px; overflow: hidden; }
  .price-summary { grid-template-columns: 1fr auto; }
  .benefit-grid article { min-height: 225px; }
  .benefit-grid h3 { margin-top: 38px; }
  .plain-explanation { grid-template-columns: 1fr; gap: 8px; }
  .payback-calculator { padding: 18px; }
  .payback-calculator > label { grid-template-columns: 1fr; gap: 7px; }
  .payback-result { grid-template-columns: 1fr; }
  .download-actions { padding: 24px 0 0; border-left: 0; border-top: 1px solid #b8c7bc; }
  .safety { gap: 30px; }
  .safety h2 { overflow-wrap: anywhere; }
  .safety-copy { padding-top: 24px; }
  .contact { align-items: flex-start; flex-direction: column; }
  .contact .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scroll-cue span { animation: none; }
  .meter-arc i { transition: none; }
}
