:root {
  --paper: #FAF7F1;
  --card: #FFFFFF;
  --ink: #16183A;
  --muted: #474B6B;
  --line: #E9E3D6;
  --sand: #F3EEE3;
  --violet: #5B34E0;
  --violet-600: #4A26C9;
  --violet-soft: #EFEBFF;
  --violet-ink: #2E1A80;
  --hero: linear-gradient(140deg, #1B1846 0%, #2A1C74 52%, #4A26C9 100%);
  --g-meten: #157F4A; --g-tempo: #5B34E0; --g-ogen: #0B6E80; --g-voor: #9A5208; --g-klassiek: #9A2D58;
  --radius: 18px;
  --shadow: 0 10px 30px -12px rgba(22, 24, 58, .22), 0 2px 6px rgba(22, 24, 58, .05);
  --font-ui: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-head: 'Lexend', system-ui, sans-serif;
  --top-bg: rgba(250, 247, 241, .92);
  --btn-bg: #5B34E0;
  --btn-hover: #4A26C9;
  --ghost-hover: #E2DBFF;
  --amber-soft: #FFF1CC;
  --amber-ink: #4A3000;
  --green-soft: #DDF5E7;
  --green-ink: #0E5C35;
  color-scheme: light;
}
/* Dark mode: the app's own dark steps, not an automatic flip. */
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #12131F;
    --card: #1C1E2E;
    --ink: #ECEDF7;
    --muted: #A9ACC6;
    --line: #2B2E44;
    --sand: #171928;
    --violet: #7C5CFF;
    --violet-600: #B3A2FF;
    --violet-soft: #2A2452;
    --violet-ink: #DCD3FF;
    --hero: linear-gradient(140deg, #1C1947 0%, #2B1F7A 52%, #4F30D2 100%);
    --g-meten: #5BD497; --g-tempo: #A893FF; --g-ogen: #57C9DA; --g-voor: #F2AE62; --g-klassiek: #F284B1;
    --shadow: 0 12px 30px -12px rgba(0, 0, 0, .7), 0 2px 6px rgba(0, 0, 0, .3);
    --top-bg: rgba(18, 19, 31, .9);
    --btn-bg: #6A48F0;
    --btn-hover: #5B34E0;
    --ghost-hover: #352D66;
    --amber-soft: #3A2F14;
    --amber-ink: #F3D597;
    --green-soft: #173528;
    --green-ink: #A2E6C2;
    color-scheme: dark;
  }
  .formula b { color: var(--violet-ink); }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.6 var(--font-ui); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--violet-600); }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(34px, 6vw, 56px); }
h2 { font-size: clamp(26px, 4vw, 36px); }
h3 { font-size: 19px; }
p { margin: 0 0 1em; }
section { padding: 72px 0; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.band { background: var(--card); border-block: 1px solid var(--line); }
.small { font-size: 15px; color: var(--muted); }
.intro { color: var(--muted); max-width: 680px; }
.eyebrow { font-weight: 600; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: #CFC6FF; margin-bottom: 12px; }

.top { position: sticky; top: 0; z-index: 10; background: var(--top-bg); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top__in { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: inline-flex; align-items: baseline; gap: 8px; text-decoration: none; }
.logo__name { font-family: var(--font-head); font-weight: 700; font-size: 28px; color: var(--violet); letter-spacing: -0.03em; }
.logo__tag { font-weight: 550; font-size: 15px; color: var(--muted); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 24px; border-radius: 999px; background: var(--btn-bg); color: #fff; font-weight: 600; font-size: 17px; text-decoration: none; box-shadow: 0 10px 22px -10px rgba(74, 38, 201, .75); transition: background .15s; }
.btn:hover { background: var(--btn-hover); }
.btn:focus-visible, .link:focus-visible, summary:focus-visible { outline: 3px solid #FFB547; outline-offset: 3px; }
.btn--small { min-height: 40px; padding: 0 16px; font-size: 15px; }
.btn--ghost { background: var(--violet-soft); color: var(--violet-ink); box-shadow: none; }
.btn--ghost:hover { background: var(--ghost-hover); }
.btn--light { background: #fff; color: #2E1A80; }
.btn--light:hover { background: #EFEBFF; }
.link { color: #fff; font-weight: 600; }

.hero { background: var(--hero); color: #fff; padding: 64px 0 0; overflow: hidden; }
.hero__in { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: end; }
.hero__text { padding-bottom: 72px; }
.lead { font-size: 20px; color: #E4E0FF; max-width: 560px; }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin: 28px 0 16px; }
.hero .small { color: #CFC6FF; }
.hero__shot { margin: 0; justify-self: center; }
.hero__shot img { width: 320px; border-radius: 36px 36px 0 0; border: 8px solid #0F0D2E; border-bottom: 0; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .55); aspect-ratio: 390 / 600; object-fit: cover; object-position: top; }

.formula { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 24px 0; padding: 20px; background: var(--violet-soft); border-radius: var(--radius); font-size: 17px; }
.formula b { font-family: var(--font-head); font-size: 26px; display: block; color: var(--violet-ink); }
.formula .op { font-size: 26px; color: var(--violet); }
.formula .res b { color: var(--violet); }

.steps { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.steps li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.steps__n { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--violet-soft); color: var(--violet-ink); font-weight: 700; margin-bottom: 12px; }
.steps p { margin: 0; color: var(--muted); font-size: 16px; }

.techs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 28px 0 20px; }
.tech { border: 1px solid var(--line); border-left: 5px solid var(--c, var(--violet)); border-radius: 14px; padding: 20px; background: var(--paper); }
.tech p { margin: 0; color: var(--muted); font-size: 16px; }
.tech--tempo { --c: var(--g-tempo); } .tech--ogen { --c: var(--g-ogen); } .tech--voor { --c: var(--g-voor); }
.tech--klassiek { --c: var(--g-klassiek); } .tech--meten { --c: var(--g-meten); }

.checks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.checks li { padding-left: 34px; position: relative; font-weight: 550; }
.checks li::before { content: ''; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--g-meten) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center / 14px no-repeat; }

.who { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 28px 0 20px; }
.who article { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.who p { margin: 0; color: var(--muted); font-size: 16px; }

.prices { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 28px 0 16px; }
.price { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; }
.price--main { border: 2px solid var(--violet); box-shadow: var(--shadow); }
.price__amount { font-family: var(--font-head); font-size: 40px; font-weight: 700; margin: 0 0 12px; }
.price__amount span { font-family: var(--font-ui); font-size: 17px; font-weight: 500; color: var(--muted); }
.price ul { margin: 0 0 24px; padding-left: 20px; flex: 1; }
.price li { margin-bottom: 6px; }

details { border-bottom: 1px solid var(--line); padding: 16px 0; }
summary { cursor: pointer; font-weight: 600; font-size: 18px; list-style: none; position: relative; padding-right: 32px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; position: absolute; right: 4px; top: -2px; font-size: 24px; color: var(--violet); }
details[open] summary::after { content: '−'; }
details p { margin: 12px 0 0; color: var(--muted); }

.cta-end { background: var(--hero); color: #fff; text-align: center; }
.cta-end p { color: #E4E0FF; font-size: 19px; }

.foot { padding: 32px 0 48px; font-size: 15px; color: var(--muted); }
.foot p { margin: 0 0 6px; }

.legal h1 { font-size: clamp(30px, 5vw, 42px); }
.legal h2 { font-size: 22px; margin-top: 1.6em; }
.legal section { padding: 48px 0; }
.legal table { border-collapse: collapse; width: 100%; font-size: 15px; margin: 8px 0 20px; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 8px; border-bottom: 1px solid var(--line); }
.legal .table-scroll { overflow-x: auto; }
@media (max-width: 600px) {
  /* Each row becomes a small card: label above its value. */
  .legal thead { display: none; }
  .legal table, .legal tbody, .legal tr, .legal td { display: block; width: 100%; }
  .legal tr { border-bottom: 1px solid var(--line); padding: 10px 0; }
  .legal td { border: 0; padding: 4px 0; }
  .legal td::before { content: attr(data-label); display: block; font-size: 13px; font-weight: 600; color: var(--muted); }
}

@media (max-width: 900px) {
  .hero__in { grid-template-columns: 1fr; gap: 8px; }
  .hero__text { padding-bottom: 24px; }
  .hero__shot img { width: 280px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .techs, .who { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  section { padding: 52px 0; }
  .wrap { padding: 0 16px; }
  .steps, .techs, .who, .prices { grid-template-columns: 1fr; }
  .logo__tag { display: none; }
  .lead { font-size: 18px; }
}


/* Skip link: visible only when focused with the keyboard. */
.skip { position: absolute; left: 12px; top: -60px; z-index: 20; padding: 10px 16px; border-radius: 10px; background: var(--btn-bg); color: #fff; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

/* Header menu: wide screens only; phones keep the logo and one button (the footer lists every page). */
.top__nav { display: none; gap: 22px; margin-left: auto; margin-right: 20px; }
.top__nav a { color: var(--muted); text-decoration: none; font-weight: 550; font-size: 15px; }
.top__nav a:hover { color: var(--ink); }
@media (min-width: 1000px) { .top__nav { display: flex; } }

/* Footer columns */
.foot__cols { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 28px; }
.foot__brand { margin-bottom: 8px; }
.foot__brand .logo__name { font-size: 24px; }
.foot h2 { font-family: var(--font-ui); font-size: 15px; letter-spacing: 0; margin: 0 0 10px; color: var(--ink); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot a { color: var(--muted); }
.foot a:hover { color: var(--ink); }
@media (max-width: 900px) {
  .foot__cols { grid-template-columns: 1fr 1fr; }
  .foot__cols > :first-child { grid-column: 1 / -1; }
}

/* 404 */
.notfound { padding: 88px 0; }
.notfound__links { margin: 0 0 28px; padding-left: 20px; display: grid; gap: 8px; }

/* Wide tables scroll inside their box instead of widening the page. */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
@media (max-width: 420px) { .prose .table-scroll table { font-size: 14px; } }
