/* GOL-2548 Diepte, GOL-3357 (version A): the home's pictures. The bookkeeping is drawn as the things it is (src/site/kop-hero.ts):
   an invoice with its stamp, a till receipt, the quarter's btw on a sheet. The invoice and the btw sheet lie on the navy table of
   the first view (.tafel, drawing option 1 of 19-11); each of the seven steps has its own thing (.stap__ding). They wear the app's look: cool paper, white sheets, ink,
   Figtree figures, one gold line. The site's weights hold here too (nothing above 500, DESIGN.md §10), so size carries an amount.
   The first view's grid and the bands are in ontwerp-v3-home.css. */

/* GOL-2492: from 1080 wide Inloggen stands in the bar, so the hero leaves out its second one. */
@media (min-width: 1080px) {
  .v3-start :is(.formulier__rij, .v3-knoppen) > a:not(.knop) { display: none; }
}

/* The app's colours for the drawn things, local to the home: the site's own tokens stay the page's. */
html.is-v3 .is-home {
  --hero-navy: #0f1d3a; --hero-lijn: #24406a; --op-navy-stil: #b9c3da;
  --d-inkt: #121b33; --d-inkt2: #34405c; --d-zacht: #5b6782; --d-licht: #8a94aa; --d-vlak: #ffffff; --d-grond: #f0f3f8;
  --d-lijn: #dfe4ec; --d-rijlijn: #edf0f5; --d-streep: #747f96; --d-tekening: #d3def5; --d-blauw: #2446a6; --d-goud-inkt: #7a4f00;
  --d-schaduw-nacht: 0 1px 2px rgb(18 27 51 / 0.1), 0 24px 48px -18px rgb(5 10 24 / 0.55);
  --d-schaduw-dag: 0 1px 2px rgb(18 27 51 / 0.05), 0 18px 44px -20px rgb(18 27 51 / 0.24);
  --d-schaduw: var(--d-schaduw-dag);
}
:is(.tafel, .stap__ding, .prijs-band__kaart) { color: var(--d-inkt); font-family: var(--font-kop); font-variant-numeric: tabular-nums; text-align: start; }
:is(.tafel, .stap__ding) :is(p, b, small, span) { margin: 0; }
:is(.tafel, .prijs-band) { --d-schaduw: var(--d-schaduw-nacht); }

/* ---------- The things ---------- */
.d-papier { position: relative; border-radius: 2px; background: var(--d-vlak); box-shadow: var(--d-schaduw); font-size: 0.8125rem; line-height: 1.45; }
.d-papier::before { content: ""; display: block; block-size: 0.5rem; border-radius: 2px 2px 0 0; background: var(--hero-navy); box-shadow: 0 0 0 1px var(--hero-lijn); }
.d-vel { border-radius: var(--r-m); background: var(--d-vlak); box-shadow: var(--d-schaduw); font-size: 1rem; line-height: 1.45; }

/* A key amount: the euro sign small, the cents quiet. */
.d-bedrag { display: block; font-size: 3.5rem; font-weight: 500; line-height: 1; letter-spacing: -0.03em; white-space: nowrap; }
.d-bedrag i { margin-inline-end: 0.12em; font-style: normal; font-size: 0.62em; }
.d-bedrag s { color: var(--d-licht); text-decoration: none; }
.d-bedrag--m { font-size: 2.5rem; }
html.is-v3 .is-home .d-bedrag-zin { margin-block-start: 0.75rem; color: var(--d-zacht); font-size: 0.9375rem; line-height: 1.45; }
.d-bedrag-zin b, .d-vel__zin b { color: var(--d-inkt); font-weight: 500; }
.d-wacht { color: var(--d-goud-inkt); font-weight: 500; }
/* A quarter that is still running waits on nobody: its words are quiet, not gold (DESIGN.md: gold is what waits on you). */
.d-loopt { color: var(--d-zacht); }
.d-link { color: var(--d-blauw); font-weight: 500; }

/* The stamp: a double ink frame, a little askew. */
.d-stempel {
  display: inline-grid; justify-items: center; padding: 0.3rem 0.85rem 0.25rem; border: 2px solid var(--d-inkt); border-radius: 5px;
  outline: 1px solid var(--d-inkt); outline-offset: 2px; background: var(--d-vlak); rotate: -5deg;
  font-size: 0.9375rem; font-weight: 500; font-variant-numeric: normal; line-height: 1.15; letter-spacing: 0.01em; white-space: nowrap;
}
.d-stempel small { font-size: 0.75rem; font-weight: 400; }

/* The invoice. */
.d-factuur { padding-block-end: 1.5rem; --d-kant: 1.75rem; }
.d-factuur > :not(.d-stempel) { margin-inline: var(--d-kant); }
.d-factuur__kop { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding-block-start: 1.5rem; }
.d-factuur__kop b { font-size: 1rem; font-weight: 500; }
.d-factuur__woord { padding-block-end: 0.35rem; border-block-end: 3px solid var(--goud); font-size: 1.5rem; font-weight: 500; line-height: 1.1; }
.d-factuur__wie { padding-block: 1.25rem 1rem; }
.d-factuur :is(.d-factuur__wie, .d-factuur__feiten) small { display: block; color: var(--d-zacht); font-size: 0.75rem; }
.d-factuur__wie p > span { display: block; }
.d-factuur__feiten { display: flex; flex-wrap: wrap; gap: 0.25rem 1.1rem; padding-block: 0.75rem; border-block-start: 1px solid var(--d-inkt); }
.d-factuur__regels { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; column-gap: 1.25rem; padding-block-start: 0.5rem; }
.d-factuur__regels > p { display: grid; grid-column: 1 / -1; grid-template-columns: subgrid; padding-block: 0.45rem; border-block-end: 1px solid var(--d-lijn); }
.d-factuur__regels > p > :not(:first-child), .d-factuur__som > :nth-child(even), .d-rij > :last-child { text-align: end; white-space: nowrap; }
.d-factuur__regels > .d-factuur__th { padding-block: 0.4rem; border-block-end-color: var(--d-inkt); font-size: 0.75rem; font-weight: 500; }
.d-factuur__som { display: grid; grid-template-columns: 1fr auto; gap: 0.2rem 1.5rem; padding-block-start: 0.5rem; }
.d-factuur__som > :nth-child(odd) { color: var(--d-zacht); text-align: end; }
.d-factuur__totaal { display: flex; justify-content: space-between; align-items: baseline; margin-block-start: 0.75rem; padding-block: 0.6rem; border-block: 2px solid var(--d-inkt); font-size: 1.25rem; font-weight: 500; }
.d-factuur__stempel { position: absolute; inset-block-start: 5.75rem; inset-inline-end: 3rem; padding: 0.45rem 1.1rem 0.35rem; font-size: 1.25rem; }
.d-factuur__stempel small { font-size: 0.875rem; }
.d-factuur__betaal { display: flex; align-items: center; gap: 1rem; margin-block-start: 1.25rem; color: var(--d-zacht); }
.d-factuur__betaal svg { flex: none; inline-size: 4.5rem; block-size: 4.5rem; color: var(--d-inkt); }

/* The till receipt: narrow, its foot torn in teeth, its rules dashed. */
.d-bonhouder { filter: drop-shadow(0 14px 18px rgb(18 27 51 / 0.2)); }
.tafel .d-bonhouder { filter: drop-shadow(0 18px 22px rgb(5 10 24 / 0.5)); }
.d-bon {
  padding: 1.1rem 1rem 1.6rem; background: var(--d-vlak); font-size: 0.8125rem; line-height: 1.5;
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 14px 100%;
}
.d-bon b { display: block; font-size: 1rem; font-weight: 500; text-align: center; }
.d-bon small { display: block; color: var(--d-zacht); font-size: 0.75rem; text-align: center; }
html.is-v3 .is-home .d-bon__regels { display: grid; grid-template-columns: 1fr auto; gap: 0.1rem 0.75rem; margin-block-start: 0.75rem; padding-block-start: 0.6rem; border-block-start: 1px dashed var(--d-streep); }
.d-bon__regels > :nth-child(even) { text-align: end; }
.d-bon__regels > .d-bon__totaal { padding-block-start: 0.4rem; font-size: 1rem; font-weight: 500; }
html.is-v3 .is-home .d-bon__pin { margin-block-start: 0.6rem; padding-block-start: 0.5rem; border-block-start: 1px dashed var(--d-streep); color: var(--d-zacht); font-size: 0.75rem; text-align: center; }

/* A sheet with rows. */
.d-vel__titel { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.25rem 1rem; font-weight: 500; }
.d-vel__titel .d-wacht { font-size: 0.875rem; }
.d-vel--rijen > * { padding: 0.8rem var(--d-kant, 1.5rem); border-block-end: 1px solid var(--d-rijlijn); }
.d-vel--rijen > .d-vel__titel { padding-block: 1.25rem 1rem; }
.d-vel--rijen > :last-child { border-block-end: 0; }
.d-rij { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: baseline; column-gap: 0.9rem; }
.d-rij__nr { inline-size: 1.75rem; color: var(--d-zacht); font-size: 0.875rem; line-height: 1.2; }
.d-rij small { display: block; color: var(--d-zacht); font-size: 0.8125rem; }
.d-rij--som > :not(.d-rij__nr) { font-weight: 500; }
.d-rij--som > :last-child { font-size: 1.125rem; }
.d-vel__voet { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.5rem 1rem; color: var(--d-zacht); font-size: 0.875rem; }
.d-vel > .d-vel__voet { padding: 1rem var(--d-kant, 1.5rem) 1.25rem; border-block-start: 1px solid var(--d-rijlijn); }
.d-kop { padding-block-end: 1.5rem; }
.d-bestand { display: flex; align-items: center; gap: 0.9rem; padding: 1.25rem var(--d-kant, 1.5rem); }
.d-bestand svg { flex: none; inline-size: 2.25rem; block-size: auto; aspect-ratio: 36 / 44; }
.d-bestand small { display: block; color: var(--d-zacht); font-size: 0.8125rem; }
html.is-v3 .is-home .d-vel__zin { padding: 0 var(--d-kant, 1.5rem) 1.25rem; font-size: 1.25rem; line-height: 1.4; }
.d-bon-en-boeking { display: grid; grid-template-columns: 12.5rem minmax(0, 1fr); align-items: center; gap: 1.75rem; }
.d-bon-en-boeking .d-bonhouder { rotate: -3deg; }
html.is-v3 .is-home .d-bon-en-boeking__stempel { margin-block-start: 1.25rem; }

/* In a narrow panel (a phone) the things take less margin, and the booking stands under its receipt. */
@container (width < 24rem) {
  .d-factuur { --d-kant: 1rem; }
  .d-vel { --d-kant: 1rem; }
  .d-bon-en-boeking { grid-template-columns: minmax(0, 1fr); justify-items: start; }
  .d-bon-en-boeking .d-bonhouder { inline-size: 12.5rem; }
  .d-bedrag { font-size: 2.75rem; }
  html.is-v3 .is-home .d-vel__zin { font-size: 1.125rem; }
}

/* ---------- The table of the first view ---------- */
/* GOL-3357, drawing option 1 of 19-11: the paid invoice, tilted, and the quarter's btw sheet over its lower part; no receipt. On the
   table the invoice has no navy band on top and its type is set as drawn. */
.tafel .d-papier::before { content: none; }
.tafel .d-factuur { font-size: 0.875rem; line-height: 1.43; }
.tafel .d-factuur__woord { font-size: 1.5625rem; }
.tafel .d-factuur__regels > .d-factuur__th { border-block-end-color: var(--d-lijn); color: var(--d-zacht); font-weight: 400; }
.tafel .d-factuur__regels > p:not(.d-factuur__th) { border-block-end-color: var(--d-rijlijn); }
.tafel .d-factuur__som { font-size: 0.8125rem; }
.tafel .d-factuur__totaal { border-block-end: 0; }
.tafel .d-factuur__stempel { font-size: 1.125rem; }
.tafel .d-factuur__stempel small { font-size: 0.8125rem; }
.tafel .d-vel__titel { align-items: baseline; font-size: 0.9375rem; }
.tafel .d-vel__titel .d-loopt { font-weight: 400; }
html.is-v3 .is-home .tafel .d-bedrag-zin { margin-block-start: 0.5rem; font-size: 0.875rem; line-height: 1.43; }
/* Phone and tablet: the papers lie in the column under the button, the invoice short (who, the lines and the total) and the btw
   sheet over its lower part. GOL-3357 (20-11): they lie whole on the navy, and the navy runs on to the bottom of the first
   screen (ontwerp-v3-home.css), so no light strip stands behind the btw sheet. */
.tafel { grid-area: held; justify-self: stretch; position: relative; z-index: 1; display: grid; justify-items: end; margin-block: 1.75rem var(--s-6); padding-inline: 0.25rem; }
.tafel__factuur { inline-size: min(20.625rem, 100% - 1rem); block-size: 28.75rem; rotate: 4deg; }
.tafel__factuur .d-factuur { --d-kant: 1.25rem; block-size: 100%; font-size: 0.8125rem; }
.tafel__factuur :is(.d-factuur__feiten, .d-factuur__th, .d-factuur__som) { display: none; }
.tafel__factuur .d-factuur__kop b { font-size: 0.875rem; }
.tafel__factuur .d-factuur__woord { font-size: 1.3125rem; }
.tafel__factuur .d-factuur__wie { padding-block: 0.75rem; }
/* On a phone the address is who and where, as drawn: the street stays off. */
.tafel__factuur .d-factuur__wie p > span:not(:first-of-type, :last-of-type) { display: none; }
.tafel__factuur .d-factuur__regels { padding-block-start: 0.75rem; border-block-start: 1.5px solid var(--d-inkt); }
.tafel__factuur .d-factuur__totaal { margin-block-start: 0.25rem; font-size: 1.0625rem; }
.tafel__factuur .d-factuur__stempel { inset-block-start: 4.25rem; inset-inline-end: 1.25rem; padding: 0.35rem 0.8rem 0.25rem; font-size: 0.9375rem; }
.tafel__factuur .d-factuur__stempel small { font-size: 0.75rem; }
.tafel__btw { justify-self: start; inline-size: min(19.5rem, 100% - 2rem); margin-block-start: -9.75rem; padding: 1rem 1.125rem 1.125rem; rotate: -3deg; }
.tafel__btw .d-vel__titel { font-size: 0.84375rem; }
.tafel__btw .d-vel__titel > :last-child { font-size: 0.78125rem; }
.tafel__btw .d-bedrag { margin-block-start: 0.5rem; font-size: 2.5rem; line-height: 1.15; }
html.is-v3 .is-home .tafel__btw .d-bedrag-zin { margin-block-start: 0.25rem; font-size: 0.78125rem; line-height: 1.44; }
/* GOL-3357, drawing option 1 at 390: the sheet turns about its top left corner and is as tall as drawn (the title on an 18px
   line, 4px between title, amount and sentence), so it lies whole in the first screen of a phone. */
@media (width < 64rem) {
  .tafel__btw { align-self: start; transform-origin: 0 0; }
  .tafel__btw .d-vel__titel { line-height: 1.125rem; }
  .tafel__btw .d-bedrag { margin-block-start: 0.25rem; }
}
/* From 64rem the table stands at the right of the headline, as large as drawn: the invoice 420 by 640 at 3 degrees from just
   above the headline, the btw sheet 440 wide at -2 degrees over its foot. GOL-3357 (20-11): the table keeps that place and size
   also when the text column is taller (the waiting-list form): the band then runs on under it, so at 1280 by 800 the btw sheet
   lies whole in the first screen, on the navy, as with sign-up open. */
@media (min-width: 64rem) {
  .tafel { grid-area: auto; position: absolute; inset-block-start: -2.125rem; inset-inline-end: calc(var(--goot-hier) / var(--z)); display: block; inline-size: 32rem; block-size: 40.375rem; margin: 0; padding: 0; }
  .tafel > * { position: absolute; margin: 0; }
  .tafel__factuur { inset-block: 0 0.375rem; inset-inline-end: 0.4375rem; inline-size: 26.25rem; block-size: auto; rotate: 3deg; }
  .tafel__factuur .d-factuur { --d-kant: 2rem; font-size: 0.875rem; }
  /* GOL-3357 (21-11): the invoice's dates count from today, so their month names change. The three facts stay on one row for
     every pair of dates: the two gap columns give way first, down to 0.5rem. A second row would push the total under the btw sheet. */
  .tafel__factuur .d-factuur__feiten { display: grid; grid-template-columns: max-content minmax(0.5rem, 1.375rem) max-content minmax(0.5rem, 1.375rem) max-content; justify-content: start; white-space: nowrap; }
  .tafel__factuur .d-factuur__feiten > :nth-child(2) { grid-column: 3; }
  .tafel__factuur .d-factuur__feiten > :nth-child(3) { grid-column: 5; }
  .tafel__factuur .d-factuur__th { display: grid; }
  .tafel__factuur .d-factuur__som { display: grid; }
  .tafel__factuur .d-factuur__kop { padding-block-start: 1.875rem; }
  .tafel__factuur .d-factuur__kop b { font-size: 1rem; }
  .tafel__factuur .d-factuur__woord { font-size: 1.5625rem; }
  .tafel__factuur .d-factuur__wie { padding-block: 1rem; }
  .tafel__factuur .d-factuur__wie p > span:not(:first-of-type, :last-of-type) { display: block; }
  .tafel__factuur .d-factuur__regels { padding-block-start: 0.5rem; border-block-start: 0; }
  .tafel__factuur .d-factuur__feiten { gap: 0; padding-block: 1rem; border-block-start-width: 1.5px; font-size: 0.84375rem; }
  .tafel__factuur .d-factuur__totaal { margin-block-start: 0.75rem; padding-block: 0.75rem; border-block-start-width: 1.5px; font-size: 1.25rem; }
  .tafel__factuur .d-factuur__stempel { inset-block-start: 5.75rem; inset-inline-end: 2.5rem; padding: 0.45rem 1.1rem 0.35rem; font-size: 1.125rem; }
  .tafel__factuur .d-factuur__stempel small { font-size: 0.8125rem; }
  .tafel__btw { inset-block-end: 0; inset-inline-start: 0.25rem; inline-size: 27.5rem; padding: 1.125rem 1.5rem 1.25rem; rotate: -2deg; }
  .tafel__btw .d-vel__titel { font-size: 0.9375rem; }
  .tafel__btw .d-vel__titel > :last-child { font-size: 0.875rem; }
  .tafel__btw .d-bedrag { margin-block-start: 0.5rem; font-size: 3.125rem; line-height: 1.12; }
  html.is-v3 .is-home .tafel__btw .d-bedrag-zin { margin-block-start: 0.375rem; font-size: 0.875rem; line-height: 1.43; }
}

/* ---------- Motion, only under no-preference: the papers arrive on the table one after another, and the stamp lands last;
   together about a second, once. Each paper comes from a little lower and a little more askew (--van) and settles. ---------- */
@keyframes d-leg { from { opacity: 0; translate: 0 2.5rem; rotate: var(--van); } }
@keyframes d-stempel { from { opacity: 0; scale: 1.5; } }
@media (prefers-reduced-motion: no-preference) {
  .tafel > * { animation: d-leg 0.6s var(--uit) backwards; }
  .tafel__factuur { --van: 7deg; }
  .tafel__btw { --van: -4deg; animation-delay: 0.2s; }
  .tafel .d-factuur__stempel { animation: d-stempel 0.22s cubic-bezier(0.2, 0.9, 0.3, 1) 0.8s backwards; }
}

/* ---------- The bar ---------- */
/* GOL-2510: on a wide screen the bar grows with the hero by the same --z (the column's width over 1360, capped by the
   screen's height over 900; the hero works it out from its own width, the root from the viewport's). Its height grows with
   it through --kop-h, so the hero's top follows. Below about 1490px --z is 1, so 1280 and the phone are untouched. */
@media (width > 1280px) {
  html.is-v3:has(> body.is-home) {
    --z: clamp(1, min(tan(atan2(min(100vw - 2 * max(var(--kant), min(2.5vw, 6rem)), 140rem), 1360px)), tan(atan2(100vh, 900px))), 3);
    --kop-h: calc(4.5rem * var(--z));
  }
  html.is-v3 .is-home .kop > * { zoom: var(--z); }
}
/* GOL-3357: the bar lies flat on the hero (after the Framer reference on details.so): no surface, no island, no line; it stays
   at the top of the page and scrolls away with it. */
/* A menu word under the mouse rolls up and the same word comes from below: the text is drawn twice as a shadow and the link
   clips it. Not in forced colours, where shadows are dropped and the transparent text would vanish. */
.kop .kop__rechts a { overflow: clip; }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) and (forced-colors: none) {
  html.is-v3 .kop .kop__rechts a { color: transparent; text-shadow: 0 0 0 var(--inkt), 0 2.6em 0 var(--inkt); transition: text-shadow 0.2s var(--uit); }
  html.is-v3 .kop .kop__rechts a:hover { background: transparent; text-shadow: 0 -2.6em 0 var(--inkt), 0 0 0 var(--inkt); }
}
