/* ==========================================================================
   Jaarnota huisstijl — gedeeld door jaarnota.nl, app.jaarnota.nl en mijn.jaarnota.nl
   Bron: /shared/jaarnota.css  →  wordt bij publiceren gekopieerd naar <site>/public/assets/
   Pas kleuren en maten alleen hier aan.
   ========================================================================== */

/* Lettertypes worden in de <head> van elke pagina geladen (sneller dan @import). */

:root {
  /* Kleuren — inkt (tekst) */
  --ink: #0F1E2E;
  --ink-2: #33475B;
  --muted: #667585;
  --faint: #98A3AE;

  /* Kleuren — vlakken */
  --bg: #FBFBF8;
  --surface: #FFFFFF;
  --sand: #F4F2EC;
  --line: #E7E8E2;
  --line-strong: #D6D9D1;

  /* Kleuren — merkgroen */
  --green-800: #0A5A43;
  --green-700: #0C6E52;
  --green-600: #0E7F5E;   /* primair: knoppen, links */
  --green-500: #19A378;   /* accent in het woordmerk */
  --green-100: #DFF1E8;
  --green-50:  #EFF7F2;

  /* Kleuren — signaal */
  --amber: #A9661A;  --amber-bg: #FBF1E1;
  --red:   #B0402C;  --red-bg:   #FBEAE6;
  --blue:  #2F5F8A;  --blue-bg:  #E8EFF6;

  /* Typografie */
  --font-display: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --fs-xs: .8125rem;  --fs-sm: .9375rem;  --fs-md: 1.0625rem;
  --fs-lg: 1.25rem;   --fs-xl: 1.625rem;  --fs-2xl: 2.25rem;
  --fs-3xl: clamp(2.375rem, 4.6vw, 3.5rem);

  /* Ruimte, rondingen, schaduw */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 72px; --s9: 112px;
  --r-sm: 8px; --r-md: 12px; --r-lg: 18px; --r-xl: 26px; --r-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(15,30,46,.05);
  --shadow-md: 0 1px 2px rgba(15,30,46,.04), 0 8px 24px -8px rgba(15,30,46,.10);
  --shadow-lg: 0 2px 4px rgba(15,30,46,.04), 0 24px 56px -16px rgba(15,30,46,.18);
  --container: 1160px;
  --ease: cubic-bezier(.2,.7,.2,1);
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink-2);
  font: 400 var(--fs-md)/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--green-600); text-decoration: none; }
a:hover { color: var(--green-800); }
:focus-visible { outline: 2px solid var(--green-600); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--green-100); color: var(--ink); }

h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); margin: 0; letter-spacing: -.02em; line-height: 1.15; font-weight: 700; }
h1 { font-size: var(--fs-3xl); letter-spacing: -.03em; line-height: 1.08; font-weight: 800; }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-lg); letter-spacing: -.01em; }
h4 { font-size: var(--fs-md); letter-spacing: 0; }
p  { margin: 0; }
.lead { font-size: var(--fs-lg); line-height: 1.6; color: var(--muted); }
.small { font-size: var(--fs-sm); }
.muted { color: var(--muted); }
.accent { color: var(--green-600); }
.num { font-variant-numeric: tabular-nums; }

/* ---------- Opmaak ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--s5); }
.section { padding: var(--s9) 0; }
.section--tight { padding: var(--s8) 0; }
.section--sand { background: var(--sand); }
.section--ink { background: var(--ink); color: #C9D2DB; }
.section--ink h2, .section--ink h3 { color: #fff; }
.section-head { max-width: 640px; margin: 0 auto var(--s7); text-align: center; display: grid; gap: var(--s4); justify-items: center; }
.section-head--left { margin-left: 0; text-align: left; justify-items: start; }
.grid { display: grid; gap: var(--s5); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.stack > * + * { margin-top: var(--s4); }
.grid > *, [class*="__grid"] > * { min-width: 0; }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .section { padding: var(--s8) 0; } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); } .section { padding: 56px 0; } .section--tight { padding: 48px 0; } .section-head { margin-bottom: var(--s6); } }
@media (max-width: 380px) { .container { padding: 0 16px; } .card { padding: var(--s5); } }
h1, h2, h3, h4, p, li, a { overflow-wrap: break-word; }
img, svg, video { height: auto; }

/* ---------- Woordmerk ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-size: 1.45rem; letter-spacing: -.05em; color: var(--ink); line-height: 1; }
.brand:hover { color: var(--ink); }
.brand__mark { width: 30px; height: 30px; flex: none; }
.brand__nota { color: var(--green-500); }
.brand__tld { color: inherit; }
.brand__sub { font-family: var(--font-body); font-weight: 500; font-size: var(--fs-xs); letter-spacing: 0; color: var(--muted); padding-left: 10px; margin-left: 2px; border-left: 1px solid var(--line-strong); }
.brand--light { color: #fff; } .brand--light:hover { color: #fff; } 

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(251,251,248,.86); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: var(--s5); }
.nav { display: flex; gap: 28px; }
.nav a { white-space: nowrap; }
.nav a { color: var(--ink-2); font-size: var(--fs-sm); font-weight: 500; }
.nav a:hover { color: var(--ink); }
.nav__mobile { display: none; }
.header-actions { display: flex; align-items: center; gap: var(--s3); }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface); cursor: pointer; place-items: center; padding: 0; color: var(--ink); -webkit-tap-highlight-color: transparent; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor; position: relative; transition: transform .2s var(--ease), background .2s; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; } .nav-toggle span::after { top: 6px; }
.site-header.is-open .nav-toggle span { background: transparent; }
.site-header.is-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.site-header.is-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 1040px) {
  .nav-toggle { display: inline-grid; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md); padding: 4px var(--s5) var(--s4); max-height: calc(100vh - 72px); max-height: calc(100dvh - 72px); overflow-y: auto; -webkit-overflow-scrolling: touch; }
  .site-header.is-open .nav { display: flex; }
  .site-header.is-open { background: var(--surface); border-bottom-color: var(--line); }
  .nav a { padding: 15px 0; font-size: var(--fs-md); border-bottom: 1px solid var(--line); }
  .nav a:last-child { border-bottom: 0; }
  .nav__mobile { display: block; }
}
@media (max-width: 560px) { .header-actions .btn--ghost { display: none; } .site-header__inner { gap: var(--s3); } }

/* ---------- Knoppen ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 22px; border-radius: var(--r-md); border: 1px solid transparent; font: 600 var(--fs-sm)/1 var(--font-body); cursor: pointer; transition: background .18s var(--ease), border-color .18s, transform .18s var(--ease), box-shadow .18s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--green-600); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.15) inset, 0 6px 16px -6px rgba(14,127,94,.55); }
.btn--primary:hover { background: var(--green-700); color: #fff; }
.btn--secondary { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn--secondary:hover { border-color: var(--ink-2); color: var(--ink); }
.btn--ghost { background: transparent; color: var(--green-600); padding: 0 6px; }
.btn--ghost:hover { color: var(--green-800); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--green-50); color: var(--ink); }
.btn--sm { height: 40px; padding: 0 16px; border-radius: 10px; }
.btn--lg { height: 56px; padding: 0 28px; font-size: var(--fs-md); }
.btn .arrow { transition: transform .18s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btn { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
@media (hover: none) { .btn:hover .arrow { transform: none; } }
@media (max-width: 560px) {
  .btn { white-space: normal; text-align: center; height: auto; min-height: 48px; padding-top: 12px; padding-bottom: 12px; line-height: 1.25; }
  .btn--sm { min-height: 44px; padding-top: 10px; padding-bottom: 10px; }
  .btn--lg { min-height: 54px; padding-left: 22px; padding-right: 22px; }
  .row > .btn--lg, .row > .btn--primary:not(.btn--sm), .row > .btn--secondary:not(.btn--sm) { width: 100%; }
}

/* ---------- Labels ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 600 var(--fs-xs)/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--green-700); }
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green-500); }
.badge { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: var(--r-pill); font: 600 .75rem/1 var(--font-body); background: var(--sand); color: var(--ink-2); }
.badge--green { background: var(--green-50); color: var(--green-700); }
.badge--amber { background: var(--amber-bg); color: var(--amber); }
.badge--red { background: var(--red-bg); color: var(--red); }
.badge--blue { background: var(--blue-bg); color: var(--blue); }
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ---------- Kaarten ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s6); }
.card--soft { background: var(--sand); border-color: transparent; }
.card--raised { box-shadow: var(--shadow-md); border-color: transparent; }
.card--link { display: block; color: inherit; transition: border-color .18s, box-shadow .18s, transform .18s var(--ease); }
.card--link:hover { border-color: var(--line-strong); box-shadow: var(--shadow-md); transform: translateY(-2px); color: inherit; }
.card h3 + p, .card h4 + p { margin-top: var(--s2); color: var(--muted); font-size: var(--fs-sm); }
.icon-tile { width: 44px; height: 44px; border-radius: var(--r-md); background: var(--green-50); color: var(--green-700); display: grid; place-items: center; margin-bottom: var(--s5); }
.icon-tile svg { width: 22px; height: 22px; }

/* ---------- Lijsten ---------- */
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s3); }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 3px; border-radius: 50%; background: var(--green-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%230C6E52' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 10.5l2.6 2.5L14 7.5'/%3E%3C/svg%3E") center/20px no-repeat; }
.trust { display: flex; flex-wrap: wrap; gap: var(--s5); list-style: none; padding: 0; margin: 0; font-size: var(--fs-sm); color: var(--ink-2); }
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust svg { width: 18px; height: 18px; color: var(--green-600); }

/* ---------- Formulier ---------- */
.field { display: grid; gap: 6px; }
.field label { font-size: var(--fs-sm); font-weight: 500; color: var(--ink); }
.input { height: 48px; padding: 0 14px; border-radius: var(--r-md); border: 1px solid var(--line-strong); background: var(--surface); font: 400 var(--fs-md) var(--font-body); color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.input:focus { outline: none; border-color: var(--green-600); box-shadow: 0 0 0 4px var(--green-50); }
.hint { font-size: var(--fs-xs); color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--s4); padding: var(--s5) 0; font: 600 var(--fs-md)/1.4 var(--font-display); color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--sand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%230F1E2E' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M10 5v10M5 10h10'/%3E%3C/svg%3E") center/16px no-repeat; transition: transform .2s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 var(--s5); color: var(--muted); max-width: 640px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #9AA8B5; padding: var(--s8) 0 var(--s6); font-size: var(--fs-sm); }
.site-footer a { color: #C9D2DB; } .site-footer a:hover { color: #fff; }
.site-footer__top { display: flex; justify-content: space-between; gap: var(--s6); flex-wrap: wrap; padding-bottom: var(--s6); border-bottom: 1px solid rgba(255,255,255,.08); }
.site-footer__links { display: flex; gap: var(--s5); flex-wrap: wrap; }
.site-footer__bottom { padding-top: var(--s5); display: flex; justify-content: space-between; gap: var(--s4); flex-wrap: wrap; }

/* ---------- Jaarnota-kaart (merkelement) ---------- */
.bill { background: var(--surface); border-radius: var(--r-xl); box-shadow: var(--shadow-lg); padding: var(--s6); border: 1px solid var(--line); }
.bill__head { display: flex; justify-content: space-between; align-items: center; padding-bottom: var(--s5); border-bottom: 1px solid var(--line); }
.bill__row { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px dashed var(--line); font-size: var(--fs-sm); }
.bill__row span:last-child { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.bill__row--flag { margin: 6px -12px 0; padding: 12px; border: 0; border-radius: var(--r-md); background: var(--amber-bg); }
.bill__row--flag span:first-child { display: inline-flex; gap: 8px; align-items: center; color: var(--amber); font-weight: 500; }
.bill__total { display: flex; justify-content: space-between; align-items: baseline; padding-top: var(--s5); margin-top: var(--s3); border-top: 1px solid var(--ink); }
.bill__total strong { font: 700 var(--fs-xl)/1 var(--font-display); color: var(--ink); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }

/* ---------- Hulpjes ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.center { text-align: center; }
.mt-2 { margin-top: var(--s2); } .mt-4 { margin-top: var(--s4); } .mt-5 { margin-top: var(--s5); } .mt-6 { margin-top: var(--s6); } .mt-7 { margin-top: var(--s7); }
.row { display: flex; gap: var(--s4); align-items: center; flex-wrap: wrap; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

/* ---------- Aanraakvlakken (min. 44px) ---------- */
.brand { min-height: 44px; }
.site-footer__links a { display: inline-block; padding: 10px 0; }
.faq summary { min-height: 56px; }
@media (max-width: 560px) { .site-footer__links { gap: 0 var(--s5); } }

/* Ankers niet onder de vaste header laten vallen */
[id] { scroll-margin-top: 88px; }
.site-footer__bottom a { display: inline-block; padding: 10px 0; }
.input { width: 100%; min-width: 0; -webkit-appearance: none; appearance: none; }
@media (max-width: 560px) { .btn--sm { white-space: nowrap; } }
@media (max-width: 380px) { .header-actions .btn--primary { display: none; } .brand { font-size: 1.3rem; } }
