/**
 * Base — reset, typografie, layout-primitives, knoppen, merk-motief.
 * Gebouwd op tokens.css. Premium = discipline: strakke schaal, veel
 * lucht, één accent, geen ronde hoeken.
 */

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
	margin: 0;
	background: var(--bg);
	color: var(--fg-soft);
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}
img, video, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

/* Typografie */
h1, h2, h3, h4 {
	font-family: var(--font-display);
	font-weight: 900;
	text-transform: uppercase;
	color: var(--fg);
	margin: 0;
	letter-spacing: -.005em;
}
.h-hero    { font-size: clamp(58px, 9.5vw, 150px); line-height: .84; }
.h-section { font-size: clamp(44px, 6.4vw, 96px);  line-height: .84; }
.h-card    { font-size: clamp(28px, 2.6vw, 40px);  line-height: .94; }
.lead      { font-size: clamp(18px, 1.4vw, 21px); line-height: 1.55; color: var(--fg-soft); }
.eyebrow {
	font-family: var(--font-body);
	font-weight: 800;
	font-size: 13px;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--amber);
}
.surface-light .eyebrow { color: var(--amber-text-on-light); }

/* Layout */
.container { width: 100%; padding-inline: var(--gutter); }
.section   { padding-block: var(--section-y); background: var(--bg); color: var(--fg-soft); position: relative; }
.split {
	display: grid;
	grid-template-columns: 1.2fr 1fr;
	gap: var(--sp-12);
	align-items: end;
}
@media (max-width: 760px) { .split { grid-template-columns: 1fr; gap: var(--sp-8); } }

/* Knoppen */
.btn {
	display: inline-flex;
	align-items: center;
	gap: var(--sp-3);
	padding: 16px 26px;
	font-family: var(--font-body);
	font-weight: 800;
	font-size: 15px;
	letter-spacing: .05em;
	text-transform: uppercase;
	text-decoration: none;
	border: 1.5px solid transparent;
	border-radius: var(--radius);
	transition: opacity var(--t-fast), background var(--t-fast), border-color var(--t-fast);
}
.btn:hover { opacity: .85; }
.btn--primary   { background: var(--amber); color: var(--ink-950); }
.btn--secondary { background: transparent; color: var(--fg); border-color: var(--fg); }
.link-underline {
	text-decoration: none;
	border-bottom: 2px solid var(--amber);
	padding-bottom: 2px;
	font-weight: 700;
}

/* Merk-motief: snelheidslijnen (3 schuine balken) */
.speedlines { display: inline-flex; gap: 5px; align-items: center; }
.speedlines span {
	display: block;
	height: 16px;
	background: var(--amber);
	transform: skewX(-20deg);
}
.speedlines span:nth-child(1) { width: 56px; }
.speedlines span:nth-child(2) { width: 32px; }
.speedlines span:nth-child(3) { width: 16px; }

/* Screenreader-only */
.sr-only {
	position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* Skip-link: zichtbaar zodra hij focus krijgt (toetsenbord). */
.skip-link:focus {
	position: fixed; left: 12px; top: 12px; z-index: 100;
	width: auto; height: auto; margin: 0; clip: auto; white-space: normal;
	padding: 12px 16px; background: var(--amber); color: var(--ink-950); font-weight: 800;
}

/* Rekentool-plugin: de "breakout" rond een tool in de tekst krijgt z-index 100
   en schoof daardoor bij scrollen over de sticky header (z-index 40). */
body .fit-calculator-breakout, body.fit-calculators-v2-page .fit-calculator-breakout { z-index: 1; }
/* Rekentool boven de kolommen van een begrip (bp-wide--calc): geen breakout nodig. */
body .bp-wide--calc .fit-calculator-breakout { position: static; left: auto; width: 100%; margin: 0; transform: none; }

/* Volle breedte tussen kop en tekstkolommen van een begrip (MET-rekenhulp, rekentools). */
.bp-wide { padding: 56px var(--gutter) 0; background: var(--paper); }
.bp-wide + .bp-body { padding-top: 56px; }
@media (max-width: 760px) { .bp-wide { padding-top: 32px; } .bp-wide + .bp-body { padding-top: 40px; } }

/* Rekentool-pagina's: de tekstkolom mag niet breder worden dan het scherm
   (één lange regel in een 1fr-raster duwde /hartslag 200px te breed op mobiel). */
.rk-body > * { min-width: 0; }
@media (max-width: 1000px) { .rk-body { grid-template-columns: minmax(0, 1fr); } }
