/* hvpanel.nl: rustig en eenvoudig. Licht of donker volgt het systeem, tenzij de knop iets anders kiest. */
:root {
  --bg: #ffffff; --bg2: #f6f7f9; --card: #ffffff; --line: #e6e8ec; --line2: #d5d9e0;
  --text: #15171c; --muted: #5d6573; --faint: #8a919c;
  --accent: #0b84d6; --accent-ink: #ffffff; --accent-soft: #e8f3fb;
  --ok: #138a4b; --bad: #c62f2f;
  --radius: 12px; --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 8px 24px rgba(16, 24, 40, .06);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111318; --bg2: #171a20; --card: #171a20; --line: #262a33; --line2: #333845;
    --text: #eceef2; --muted: #a2a9b5; --faint: #767d89;
    --accent: #3ea6f0; --accent-ink: #0b1220; --accent-soft: #15283a;
    --ok: #45c47f; --bad: #f06a6a; --shadow: none; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #111318; --bg2: #171a20; --card: #171a20; --line: #262a33; --line2: #333845;
  --text: #eceef2; --muted: #a2a9b5; --faint: #767d89;
  --accent: #3ea6f0; --accent-ink: #0b1220; --accent-soft: #15283a;
  --ok: #45c47f; --bad: #f06a6a; --shadow: none; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; line-height: 1.2; letter-spacing: -.015em; }
p { margin: 0; }
svg { width: 18px; height: 18px; flex: none; }
.wrap { width: min(1080px, 100% - 40px); margin: 0 auto; }
.wrap.narrow { width: min(720px, 100% - 40px); }
.grow { flex: 1; }
.muted { color: var(--muted); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* ---- kop */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 8px; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: 17px; color: var(--text); margin-right: 18px; }
.brand:hover { text-decoration: none; }
.brand-mark { display: grid; grid-template-columns: repeat(3, 5px); gap: 2px; }
.brand-mark i { width: 5px; height: 5px; border-radius: 1.5px; background: var(--accent); }
.brand-mark i:nth-child(2n) { opacity: .55; }
.top nav { display: flex; gap: 4px; }
.top nav a { color: var(--muted); font-size: 15px; padding: 6px 10px; border-radius: 8px; }
.top nav a:hover { color: var(--text); background: var(--bg2); text-decoration: none; }
.tbtn { display: inline-grid; place-items: center; min-width: 36px; height: 36px; padding: 0 8px; border: 1px solid transparent; border-radius: 8px; background: none; color: var(--muted); font: 600 13px var(--font); cursor: pointer; }
.tbtn:hover { color: var(--text); background: var(--bg2); text-decoration: none; }
.menu-btn { display: none; }

/* ---- knoppen */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 10px; border: 1px solid var(--line2); background: var(--card); color: var(--text); font: 600 15px var(--font); cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s; }
.btn:hover { text-decoration: none; border-color: var(--faint); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.06); }
.btn.sm { height: 34px; padding: 0 14px; font-size: 14px; }
.btn:disabled { opacity: .6; cursor: default; }
.btn svg { width: 16px; height: 16px; }

/* ---- hero */
.hero { padding: 84px 0 40px; text-align: center; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px; border: 1px solid var(--line); border-radius: 99px; color: var(--muted); font-size: 13px; font-weight: 600; }
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.hero h1 { font-size: clamp(36px, 6vw, 58px); font-weight: 750; margin: 22px 0 18px; }
.hero .lead { font-size: 18px; color: var(--muted); max-width: 600px; margin: 0 auto; }
.hero-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }
.checks { list-style: none; padding: 0; margin: 18px 0 0; display: flex; gap: 6px 20px; justify-content: center; flex-wrap: wrap; color: var(--muted); font-size: 14px; }
.checks li { display: inline-flex; align-items: center; gap: 6px; }
.checks svg, .ticks svg { width: 16px; height: 16px; color: var(--ok); }

/* ---- installatiecommando */
.cmd { display: flex; align-items: center; gap: 10px; max-width: 560px; margin: 28px auto 0; padding: 8px 8px 8px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg2); font: 14px var(--mono); text-align: left; }
.cmd .p { color: var(--faint); user-select: none; }
.cmd code { flex: 1; overflow-x: auto; white-space: nowrap; }
.copy { border: 1px solid var(--line2); background: var(--card); color: var(--text); border-radius: 7px; padding: 5px 10px; font: 600 12px var(--font); cursor: pointer; }

/* ---- schermafbeelding */
.preview { margin: 56px 0 0; }
.preview-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.seg { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg2); }
.seg button { border: 0; background: none; color: var(--muted); font: 600 13px var(--font); padding: 6px 12px; border-radius: 7px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--card); color: var(--text); box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.window { position: relative; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--bg2); }
.window img { width: 100%; cursor: zoom-in; }
.zoom { position: absolute; right: 10px; bottom: 10px; width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--text); cursor: pointer; opacity: .85; }
.preview figcaption { margin-top: 10px; color: var(--faint); font: 13px var(--mono); text-align: center; }
.zoomer { border: 0; padding: 0; background: none; max-width: 96vw; max-height: 94vh; }
.zoomer::backdrop { background: rgba(0, 0, 0, .75); }
.zoomer img { max-width: 96vw; max-height: 94vh; border-radius: 8px; }
.zoomer button { position: fixed; top: 14px; right: 18px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: #fff; color: #111; font-size: 24px; cursor: pointer; }

/* ---- secties */
.s { padding: 72px 0; border-top: 1px solid var(--line); }
.s-head { max-width: 620px; margin-bottom: 36px; }
.s-head h2 { font-size: clamp(26px, 3.4vw, 34px); font-weight: 720; }
.s-head p { color: var(--muted); margin-top: 10px; font-size: 17px; }
.feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.feat { padding: 22px 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--card); }
.feat:nth-child(3n) { border-right: 0; }
.feat:nth-last-child(-n+3) { border-bottom: 0; }
.feat h3 { font-size: 16px; margin-bottom: 6px; }
.feat p { color: var(--muted); font-size: 15px; }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps li { counter-increment: s; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 14px; margin-bottom: 14px; }
.steps h3 { font-size: 16px; margin-bottom: 6px; }
.steps p { color: var(--muted); font-size: 15px; }
.more { margin-top: 28px; font-weight: 600; }
.plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 820px; }
.plan { display: flex; flex-direction: column; gap: 18px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.plan.hi { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.plan h3 { font-size: 17px; }
.price { font-size: 36px; font-weight: 750; letter-spacing: -.02em; }
.price small { display: block; font-size: 14px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan .btn { margin-top: auto; align-self: flex-start; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.ticks svg { margin-top: 4px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 30px 18px 0; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-size: 22px; font-weight: 400; color: var(--faint); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 0 20px; color: var(--muted); }

/* ---- formulieren */
.card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); padding: 28px; }
.form { display: grid; gap: 16px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 6px; font-weight: 600; font-size: 14px; }
.form label > input, .form label > textarea { flex-basis: 100%; margin-top: 2px; }
.form label small { font-weight: 400; color: var(--faint); }
.form input, .form textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line2); border-radius: 9px; background: var(--bg); color: var(--text); font: 15px var(--font); }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.form .btn { justify-self: start; }
.choice { display: flex; flex-wrap: wrap; gap: 8px; }
.choice label { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border: 1px solid var(--line2); border-radius: 9px; font-weight: 500; cursor: pointer; }
.choice input { width: auto; accent-color: var(--accent); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.status { font-size: 14px; min-height: 1em; }
.status:empty { display: none; }
.status.ok { color: var(--ok); }
.status.bad { color: var(--bad); }
.fine { font-size: 13px; color: var(--faint); }
[hidden] { display: none !important; }

/* ---- licentiepagina */
.page-hero { padding: 64px 0 28px; }
.page-hero .eyebrow { display: inline-block; color: var(--accent); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 12px; }
.page-hero h1 { font-size: clamp(30px, 4.5vw, 42px); font-weight: 750; }
.page-hero p { color: var(--muted); font-size: 17px; margin-top: 12px; }
.page-body { padding: 12px 0 80px; }
.lic { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.lic h2 { font-size: 20px; margin-bottom: 18px; }
.side { display: grid; gap: 20px; }
.side h3 { font-size: 16px; margin-bottom: 10px; }
.side ol { margin: 0; padding-left: 18px; color: var(--muted); display: grid; gap: 8px; font-size: 15px; }
.side ol b { color: var(--text); }
.side .muted { margin-bottom: 16px; }

/* ---- voet */
.foot { border-top: 1px solid var(--line); padding: 36px 0 44px; font-size: 14px; color: var(--muted); }
.foot .wrap { display: flex; align-items: flex-start; gap: 20px 36px; flex-wrap: wrap; }
.foot-l { flex: 1; min-width: 240px; }
.foot .brand { margin-bottom: 8px; }
.foot .by a { color: var(--text); font-weight: 600; }
.foot nav { display: flex; gap: 6px 18px; flex-wrap: wrap; }
.foot nav a { color: var(--muted); }
.foot nav a:hover { color: var(--text); }
.copy-r { color: var(--faint); }

/* ---- klein scherm */
@media (max-width: 860px) {
  .feats { grid-template-columns: 1fr 1fr; }
  .feat:nth-child(3n) { border-right: 1px solid var(--line); }
  .feat:nth-child(2n) { border-right: 0; }
  .feat:nth-last-child(-n+3) { border-bottom: 1px solid var(--line); }
  .feat:nth-last-child(-n+1) { border-bottom: 0; }
  .steps, .plans, .lic { grid-template-columns: 1fr; }
  .menu-btn { display: inline-grid; }
  .cta-top { display: none; }
  .top nav { display: none; position: absolute; top: 60px; left: 0; right: 0; flex-direction: column; padding: 10px 20px 16px; background: var(--bg); border-bottom: 1px solid var(--line); }
  .top nav.open { display: flex; }
}
@media (max-width: 560px) {
  .feats { grid-template-columns: 1fr; }
  .feat { border-right: 0 !important; border-bottom: 1px solid var(--line) !important; }
  .feat:last-child { border-bottom: 0 !important; }
  .form .row { grid-template-columns: 1fr; }
  .hero { padding-top: 56px; }
  .s { padding: 56px 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
