/* This file named 'IBM Plex Sans' in `body` from its first line and
   never loaded it, so unless a visitor happened to have the face
   installed -- almost nobody does -- every page has been rendering in
   whatever `system-ui` resolves to: Segoe UI on Windows, Roboto on
   Android. The app has always shipped the real thing (@fontsource, via
   the Angular build); the marketing site in front of it did not, so the
   two halves of the same product were set in different typefaces.
   Nothing in the design changes here -- this is the design finally
   arriving.

   Self-hosted, not fetched from Google's font CDN: a stylesheet <link>
   to a third-party host hands it every visitor's IP before they have
   read a word, on a site whose own privacy answers promise the
   opposite. (The test that pins this greps the served file for that
   host's name, so it is deliberately not written out here -- a comment
   about the rule would otherwise fail the rule.) The files are the same
   @fontsource `latin` subsets the app bundles, copied into
   static/fonts/ -- three faces, ~71 kB in total, and the subset covers
   everything Dutch and French need plus the €, —, · and − this copy
   actually uses.

   Relative `url()`, deliberately: it resolves against this stylesheet's
   own URL, so /assets/site.css finds /assets/fonts/... without this file
   having to know where it is mounted. There is no `?v=` on these the way
   there is on the stylesheet itself -- a font does not get edited, it
   gets replaced, and a replacement gets a new filename. */
@font-face {
  font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 400;
  font-display: swap; src: url('fonts/ibm-plex-sans-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 500;
  font-display: swap; src: url('fonts/ibm-plex-sans-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 600;
  font-display: swap; src: url('fonts/ibm-plex-sans-latin-600-normal.woff2') format('woff2');
}

:root {
  --bg: #FAF9F7; --panel: #FFF; --ink: #14171A; --ink2: #5A616B;
  --line: #E6E3DE; --accent: #2E6A4F; --warn: #A8681B;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink);
       font: 16px/1.6 'IBM Plex Sans', system-ui, sans-serif; }
/* Links in the page body. Until now this file styled `.sitenav a` and
   `.langs a` and nothing else, so every link that is not in the header
   -- "Lees de veelgestelde vragen" at the end of the homepage, both
   footer links, the 404's way back -- rendered in the browser's default
   #0000EE on a page whose only other colour is a muted green. Declared
   on the bare element rather than on each of those three places: both
   nav rules above carry a class and so stay more specific, and `.btn`
   sets its own colour, so nothing that already had a colour loses it.
   The underline is left alone -- these are links inside running prose,
   where colour on its own is not a strong enough signal. */
a { color: var(--accent); }
a:hover { color: #1F4C38; }
.bar { display: flex; justify-content: space-between; align-items: center;
       padding: 0 24px; height: 60px; background: var(--panel);
       border-bottom: 1px solid var(--line); gap: 16px; }
.wordmark { font-weight: 600; flex-shrink: 0; } .dot { color: var(--accent); }
.sitenav { display: flex; gap: 20px; }
.sitenav a { color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 500; }
.langs a { color: var(--ink2); text-decoration: none; margin-left: 12px; font-size: 14px; }
.langs a:first-child { margin-left: 0; }
.langs a.on { color: var(--ink); font-weight: 600; }
/* The header login renders as `.btn.btn--quiet` (see components.py) --
   the same quiet treatment the hero uses for its own secondary
   "Inloggen" -- so it reads as a button, not a bare text link, without
   being a second loud action next to the hero's one primary "Aan de
   slag". `.bar .login` rather than a bare `.login`: it needs enough
   specificity to win over `.btn`'s own `padding`/`font-size` (folded
   into `font: inherit`) declared later in this file, and two classes of
   equal specificity are decided by source order, not which one reads as
   more specific -- only the added `.bar` ancestor guarantees this rule
   wins regardless of where either block sits in the file. */
.bar .login { flex-shrink: 0; font-size: 14px; padding: 8px 16px; }

/* The header's mobile disclosure -- <details>/<summary>, the same element
   the FAQ page already uses. Below 601px it behaves like any other
   disclosure: closed by default, summary visible, everything else
   revealed on tap. From 601px up, the second block below forces it back
   into a plain always-visible row. */
.menu { margin: 0; }
.menu > summary { list-style: none; cursor: pointer; color: var(--ink);
                  font-size: 14px; font-weight: 500; padding: 4px 0; }
.menu > summary::-webkit-details-marker { display: none; }

@media (max-width: 600px) {
  /* `position: relative` makes .bar the containing block for the opened
     panel below (`.menu[open]::details-content`, further down): without
     it, that `position: absolute` would resolve against the nearest
     positioned ancestor found by walking *up* the tree, which is the
     viewport here, and the panel would anchor to the page instead of
     the header. */
  .bar { flex-wrap: wrap; align-items: flex-start; height: auto;
         min-height: 60px; padding: 18px 16px; position: relative; }
  /* Checked live, not assumed: a closed <details> only hides its
     non-summary children via the browser's User-Agent stylesheet, and
     ANY author rule -- regardless of specificity -- outranks a UA rule
     in the cascade, since origin is decided before specificity. This
     site's own `.sitenav { display: flex }` above (needed so the FAQ's
     Home/Veelgestelde-vragen row lays out horizontally once the
     disclosure is open) is exactly such a rule, and it was silently
     defeating the browser's native hide-when-closed behaviour: verified
     in the browser pane that both .sitenav and .langs stayed visible,
     laid out below the header row, while `<details>.open` was still
     `false`. So closed/open has to be driven explicitly here rather
     than left to the element's own default. */
  .menu:not([open]) > .sitenav,
  .menu:not([open]) > .langs { display: none; }
  .menu[open] > .sitenav { flex-direction: column; align-items: flex-start;
                            gap: 10px; }

  /* Opening the disclosure used to grow .menu's own box (both nav lists
     laid out as normal in-flow children), which made it wider than the
     closed summary-only footprint. .bar's `flex-wrap: wrap` above then
     had nowhere to put the login button but a second line, at the left
     -- exactly the bug this whole block exists to prevent. wordmark /
     Menu / Inloggen must hold still in both states, so the opened
     content has to stop contributing to .menu's size entirely rather
     than just be made narrower.

     `position: absolute` on .sitenav and .langs individually was the
     first thing tried, and it does pull them out of .menu's flow -- but
     the two are siblings with no shared box to stack them inside, so
     both anchoring at `top: 100%` of .bar lands them on top of each
     other: .langs (NL / FR) painted over .sitenav's first line. Fixed
     by reaching for the one box that already wraps both of them
     together and nothing else: Chromium's ::details-content (see the
     desktop media query below for the first use of it in this file).
     Styled here as `.menu[open]::details-content` rather than touching
     .sitenav/.langs, this single wrapper is what gets taken out of
     flow, and .sitenav/.langs stay completely unstyled for position --
     they remain plain in-flow children *inside* that wrapper, so they
     stack top-to-bottom exactly as block content always has, with no
     height math required anywhere.

     This is a Chromium-only fix, same as the desktop rule: a browser
     without ::details-content drops the whole selector (unrecognised
     pseudo-element invalidates the entire rule) and falls back to the
     pre-existing in-flow behaviour above -- .menu grows and .bar wraps,
     the original bug, not a new regression. */
  .menu[open]::details-content {
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 20;
    background: var(--panel);
    border-bottom: 1px solid var(--line);
    padding: 14px 16px 18px;
  }
}

/* The fiddly half: a closed <details> hides every non-summary child via
   the browser's own UA stylesheet (`details:not([open]) > *:not(summary)
   { display: none }`), independent of viewport width. Forcing those
   children visible here, and hiding the summary that would otherwise
   still show its toggle affordance, is what makes 601px+ look like a
   plain single-row nav rather than a collapsed disclosure that happens
   to be wide. */
@media (min-width: 601px) {
  .menu { display: flex; align-items: center; gap: 24px; }
  .menu > summary { display: none; }
  .menu > *:not(summary) { display: flex !important; }
  /* The suggested technique above turned out not to be enough on its
     own -- checked live, not assumed. Current Chromium wraps a closed
     <details>'s non-summary content in an internal ::details-content
     pseudo-element (added to support the open/close size transition),
     sized independently of the real children's own `display`. Forcing
     .sitenav/.langs to `display: flex` left them reporting `flex` from
     getComputedStyle while still laying out at a literal 0 width --
     .menu itself measured 0x0. `display: contents` on the pseudo-element
     removes it from the box tree, so .sitenav and .langs become .menu's
     flex children directly instead of sitting inside a box still sized
     for the closed state. Kept alongside the *:not(summary) rule above
     rather than replacing it: a browser without ::details-content
     support drops this whole selector (an unrecognised pseudo-element
     invalidates the entire rule, not just part of it) and is left with
     that rule alone, which is exactly what already un-hides content
     correctly in the plain-child-hiding model -- verified separately by
     the mobile disclosure opening correctly with no ::details-content
     override in play at all. */
  .menu::details-content {
    display: contents !important;
    content-visibility: visible !important;
  }
}
main { max-width: 960px; margin: 0 auto; padding: 48px 24px 64px; }
.kicker { color: var(--warn); font-size: 13px; letter-spacing: .08em;
          text-transform: uppercase; margin: 0 0 8px; }
h1 { font-size: clamp(28px, 5vw, 42px); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 16px; }
.lead { font-size: 18px; color: var(--ink2); max-width: 62ch; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 24px; margin: 48px 0; }
.cols article { background: var(--panel); border: 1px solid var(--line);
                border-radius: 6px; padding: 20px 22px; }
.cols h2 { font-size: 15px; margin: 0 0 8px; }
.cols p { font-size: 14px; color: var(--ink2); margin: 0; }
.action { background: var(--panel); border: 1px solid var(--line);
          border-radius: 6px; padding: 28px 26px; }
.action { margin-bottom: 24px; }
.action h2 { margin: 0 0 8px; font-size: 20px; }
.action > p { color: var(--ink2); max-width: 62ch; }
.cta { display: flex; gap: 12px; align-items: center; }
.btn { display: inline-block; padding: 12px 20px; border-radius: 4px; font: inherit;
       font-weight: 500; text-decoration: none; cursor: pointer; }
.btn--primary { background: var(--accent); color: #fff; }
.btn--quiet { background: transparent; color: var(--ink2); border: 1px solid var(--line); }
.foot { border-top: 1px solid var(--line); padding: 20px 24px; }
.foot p { max-width: 960px; margin: 0 auto; font-size: 12px; color: var(--ink2); }
.faq__section { margin: 0 0 40px; }
.faq__section h2 { font-size: 20px; margin: 0 0 16px; }
.faq__item { background: var(--panel); border: 1px solid var(--line);
             border-radius: 6px; padding: 4px 22px; margin: 0 0 10px; }
.faq__item summary { padding: 16px 0; font-weight: 500; cursor: pointer; }
.faq__item summary::marker { color: var(--accent); }
.faq__item p { margin: 0 0 18px; color: var(--ink2); max-width: 62ch; }

/* ---- Beeld ----------------------------------------------------------
   Three kinds of image on this site, and none of them is a decorative
   band of nothing: the hero photograph, three drawn illustrations on
   the how-it-works cards, and a worked sum in the across-brokers
   section. The drawings are `.svg` files under /assets/art/ rather than
   inline markup, so they cache on their own and so no page module has
   to carry a hundred lines of path data. Every one of them is
   decorative in the accessibility sense -- the heading and body beside
   each drawing already say, in words, what it shows -- so they ship
   with `alt=""` and are skipped rather than announced twice. */

.shot { position: relative; margin: 32px 0 0; border: 1px solid var(--line);
        border-radius: 6px; overflow: hidden; background: var(--ink); }
.shot img { display: block; width: 100%; height: 320px; object-fit: cover;
            object-position: 46% 46%;
            filter: saturate(.6) contrast(1.04) brightness(1.06); }
/* The wash is what lets a dark photograph of a trading screen sit above
   --bg without shouting: it pulls the picture toward the green the rest
   of the page already uses. As ::after rather than an extra element,
   because a rectangle of gradient is not something to make a reader
   walk past. */
.shot::after { content: ""; position: absolute; inset: 0;
               background: linear-gradient(102deg, rgba(46,106,79,.34) 0%,
                                           rgba(20,23,26,.08) 52%,
                                           rgba(250,249,247,.18) 100%); }

.cols figure { margin: 0 0 16px; }
.cols figure img { display: block; width: 100%; height: auto; }

/* The sum under "Waarom over brokers heen": three accounts on the left,
   one calculation on the right, an arrow between them. */
.calc { display: grid; grid-template-columns: 268px 52px minmax(0, 1fr);
        align-items: center; margin: 24px 0 0; padding: 22px 20px;
        background: var(--bg); border: 1px solid var(--line); border-radius: 6px; }
.calc__accounts { display: flex; flex-direction: column; gap: 8px; }
.calc__accounts .calc__row { background: var(--panel); border: 1px solid var(--line);
                             border-radius: 4px; padding: 10px 12px; }
/* The third account is the one that lost money -- matched by position
   because it is last by construction, not by chance: the example is
   two gains and a loss, and the loss is what the whole section is
   about. Reorder the accounts in `content` and this moves with them. */
.calc__accounts .calc__row:last-child .calc__value { color: var(--warn); }
.calc__arrow { display: flex; justify-content: center; }
.calc__arrow img { display: block; }
.calc__arrow--smal { display: none; }
.calc__sum { background: var(--panel); border: 1px solid var(--line);
             border-radius: 4px; padding: 14px 16px; }
.calc__lines { display: flex; flex-direction: column; gap: 6px; }
/* The last line is what the subtraction leaves, so it gets the rule
   above it -- the same convention as a paper sum. */
.calc__lines .calc__row:last-child { border-top: 1px solid var(--line); padding-top: 8px; }
.calc__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.calc__label { font-size: 13px; color: var(--ink2); }
.calc__value { font-size: 14px; font-weight: 500; font-variant-numeric: tabular-nums;
               white-space: nowrap; }
.calc__total { display: flex; justify-content: space-between; align-items: baseline;
               gap: 16px; margin: 10px 0 0; }
.calc__total .calc__value { font-size: 20px; font-weight: 600; letter-spacing: -.01em;
                            color: var(--accent); }
.calc__caption { margin: 10px 0 0; font-size: 13px; color: var(--ink2); }

/* The example screen above "Deze tool" on the FAQ. Drawn in HTML, not
   captured as a picture: it is bilingual, it stays sharp at any zoom,
   and it cannot drift out of date behind a filename the way a
   screenshot does. */
.mock { position: relative; margin: 0 0 20px; border: 1px solid var(--line);
        border-radius: 6px; overflow: hidden; padding: 24px 24px 18px;
        background: linear-gradient(168deg, #F2F5F2 0%, #EDEFEC 100%); }
.mock__window { position: relative; background: var(--bg); border: 1px solid #E1DED8;
                border-radius: 6px; overflow: hidden;
                box-shadow: 0 12px 28px rgba(20,23,26,.10), 0 2px 6px rgba(20,23,26,.05); }
.mock__bar { display: flex; align-items: center; gap: 28px; height: 46px; padding: 0 20px;
             background: var(--panel); border-bottom: 1px solid var(--line); }
.mock__wordmark { font-size: 14px; font-weight: 600; letter-spacing: -.01em; }
.mock__nav { display: flex; gap: 20px; font-size: 12px; color: var(--ink2); }
.mock__nav span:first-child { color: var(--ink); font-weight: 500; }
.mock__body { padding: 20px 20px 24px; }
.mock__meta { display: flex; justify-content: space-between; align-items: baseline;
              margin: 0 0 14px; font-size: 12px; color: var(--ink2); }
.mock__tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.mock__tile { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px;
              background: var(--panel); border: 1px solid var(--line); border-radius: 6px; }
/* The contribution is the figure a visitor came for, so the last tile
   is the one that inverts. Position again, and again by construction:
   the sum ends in what you owe. */
.mock__tile:last-child { background: var(--ink); border-color: var(--ink); }
.mock__label { font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
               color: var(--ink2); }
/* An amount is one word: "€ 14.280" broke after the symbol in a
   narrow tile and left the € stranded on a line of its own. */
.mock__value { font-size: 22px; font-weight: 500; letter-spacing: -.02em;
               font-variant-numeric: tabular-nums; white-space: nowrap; }
.mock__note { font-size: 11px; color: var(--ink2); }
.mock__tile:last-child .mock__label,
.mock__tile:last-child .mock__note { color: #9AA0A8; }
.mock__tile:last-child .mock__value { color: var(--panel); }
/* Said out loud, because a page of tax answers is the wrong place to
   leave a plausible number ambiguous. */
.mock__caption { margin: 8px 0 0; font-size: 12px; color: var(--ink2); }

@media (max-width: 600px) {
  .shot img { height: 190px; }
  /* One column: the fan-in arrow points across a row that no longer
     exists, so the narrow one -- pointing down -- takes over. */
  .calc { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .calc__arrow--breed { display: none; }
  .calc__arrow--smal { display: flex; }
  .mock { padding: 16px 16px 14px; }
  .mock__nav { display: none; }
  .mock__tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Fallback for engines without ::details-content (Safari, Firefox).
   The rule above that keeps the header row from reflowing takes the
   opened panel out of flow through Chromium's ::details-content
   pseudo-element. Where that pseudo does not exist the panel stays
   in flow, .bar's `flex-wrap` puts the login on a second line, and
   `justify-content: space-between` leaves it at the left -- the
   original complaint.

   Scoped through `@supports not selector(...)` rather than applied
   unconditionally, because `margin-left: auto` is NOT harmless on the
   single-line layout: an auto margin absorbs free space before
   justify-content distributes it, so on Chromium it would collapse the
   gap between the wordmark and the Menu toggle and pull the toggle
   left. This way Chromium keeps the row it already has, and the engines
   that still wrap at least wrap to the right. */
@supports not selector(::details-content) {
  @media (max-width: 600px) {
    .bar .login { margin-left: auto; }
  }
}
