/* BEGIN gedeelde FF-appstijl */
/* Flow Force Systems · Midnight */
@font-face {
  font-family: Instrument;
  src: url("./assets/letters/instrument-sans.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Instrument;
  src: url("./assets/letters/instrument-sans-vet.woff2") format("woff2");
  font-weight: 600 900;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("./assets/letters/instrument-serif-cursief.woff2") format("woff2");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --ff-night: #050c12;
  --ff-surface: #0a1924;
  --ff-field: #071520;
  --ff-text: #eef5f9;
  --ff-muted: #afc2ce;
  --ff-ice: #a0efff;
  --ff-line: #284457;
  --ff-control: #688695;
  --ff-radius: .35rem;
  --ff-gutter: clamp(1rem, 5.7vw, 6.5rem);
  --ff-sans: Instrument, Arial, sans-serif;
  --ff-serif: "Instrument Serif", Georgia, serif;
  --ff-panel-fill: linear-gradient(145deg, #102532, #0a1924 72%);
  --ff-hero-fill: radial-gradient(ellipse at 82% 42%, #122a3a, transparent 59%), #07131c;
  --ff-primary-fill: linear-gradient(110deg, #aaf0f6, #72d2ec 83%, #67b9e8);
  --ff-error: #ffbaa6;
  font: 16px/1.5 var(--ff-sans);
  color: var(--ff-text);
  background: var(--ff-night);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
button, input, select, textarea { font: inherit; }
::selection { color: #061420; background: #94e5f3; }
:focus-visible { outline: 3px solid var(--ff-ice); outline-offset: 3px; }
.ff-bar {
  position: sticky;
  inset-block-start: 0;
  z-index: 8;
  background: linear-gradient(#061018, #060e15 72%, #050d14);
  border-bottom: 1px solid var(--ff-line);
}
.ff-bar-inner {
  min-height: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(.6rem, 2vw, 2rem);
  max-width: 96rem;
  margin-inline: auto;
  padding-inline: var(--ff-gutter);
}
.ff-brand {
  --logo-width: clamp(8.8rem, 11vw, 11rem);
  position: relative;
  display: inline-grid;
  grid-template-columns: var(--logo-width) auto;
  align-items: center;
  gap: 1.15rem;
  min-height: 44px;
  color: var(--ff-muted);
  font-size: .8rem;
  line-height: 1.25;
  font-weight: 600;
  text-decoration: none;
}
.ff-brand img {
  grid-area: 1 / 1;
  display: block;
  width: var(--logo-width);
  height: auto;
  padding: 0;
  background: transparent;
  filter: brightness(1.22) saturate(1.12);
}
/* De donkere letters onder het beeldmerk krijgen hetzelfde koele licht als op de site. */
.ff-brand::after {
  content: "";
  grid-area: 1 / 1;
  z-index: 1;
  pointer-events: none;
  width: var(--logo-width);
  aspect-ratio: 600 / 167;
  background: linear-gradient(transparent 20%, #82d7f41c 45%, #74c5e5ad 75%, #64b9dbad);
  mask: url("./assets/logo-flowforce.png") center/contain no-repeat;
}
.ff-brand > span { border-left: 1px solid var(--ff-line); padding-left: 1rem; }
.ff-trial, .ff-primary, .ff-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .7rem;
  min-height: 2.8rem;
  padding: .68rem 1rem;
  font: 700 .98rem/1.25 var(--ff-sans);
  text-decoration: none;
  cursor: pointer;
  border: 1px solid var(--ff-control);
  border-radius: var(--ff-radius);
  transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.ff-primary {
  color: #071620;
  background: var(--ff-primary-fill) #67b9e8;
  border-color: #8fe0f4;
  box-shadow: inset 0 1px #e3fcff85, 0 4px 24px #0e5d831c;
}
.ff-primary:hover:not(:disabled) { background: #c1f5ff; color: #071620; }
.ff-secondary, .ff-trial { color: #eaf9ff; background: linear-gradient(135deg, #213b4d, #0e2434); }
.ff-trial { margin-left: auto; font-size: .9rem; }
:is(.ff-secondary, .ff-trial):hover:not(:disabled) { background: #244255; border-color: var(--ff-ice); }
:is(.ff-primary, .ff-secondary):disabled { opacity: 1; color: #afc2ce; background: #21333d; border-color: #4d6471; cursor: default; box-shadow: none; }
.ff-hero { background: var(--ff-hero-fill); border-bottom: 1px solid var(--ff-line); }
.ff-title {
  font: 700 clamp(2.8rem, 5.7vw, 5.65rem)/1.01 var(--ff-sans);
  color: var(--ff-text);
  letter-spacing: -.062em;
  text-wrap: balance;
}
.ff-title em {
  font: inherit;
  letter-spacing: inherit;
  color: var(--ff-ice);
  background: linear-gradient(108deg, #d9f7fb 8%, #a6e6f7 39%, #51c6ef 76%, #5e9df5);
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.ff-eyebrow {
  display: flex;
  align-items: center;
  gap: .65rem;
  color: #bbdce8;
  font: 700 .73rem/1.4 var(--ff-sans);
  letter-spacing: .14em;
  text-transform: uppercase;
}
.ff-eyebrow::before { content: ""; width: 1.7rem; height: 1px; background: currentColor; }
.ff-panel { background: var(--ff-panel-fill); color: var(--ff-text); border: 1px solid var(--ff-line); border-radius: var(--ff-radius); }
.ff-input {
  min-height: 2.8rem;
  max-width: 100%;
  border: 1px solid var(--ff-control);
  border-radius: var(--ff-radius);
  padding: .62rem .75rem;
  background: var(--ff-field);
  color: var(--ff-text);
  font: 400 1rem/1.4 var(--ff-sans);
}
.ff-input::placeholder { color: var(--ff-muted); opacity: 1; }
.ff-price { color: var(--ff-ice); font-variant-numeric: tabular-nums; }
@media (max-width: 42rem) {
  .rail.ff-bar-inner, .ff-bar-inner { min-height: 4.15rem; padding-inline: 1rem; gap: .65rem; }
  .ff-brand { --logo-width: 7.4rem; grid-template-columns: auto; align-content: center; gap: .12rem; }
  .ff-brand > span { font-size: .67rem; font-weight: 400; line-height: 1.22; padding: 0; border: 0; text-wrap: balance; }
  .ff-trial { padding-inline: .62rem; gap: .4rem; font-size: .81rem; }
}
@media (min-width: 23.5rem) and (max-width: 42rem) {
  .ff-trial { white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media (forced-colors: active) {
  .ff-title em { -webkit-text-fill-color: currentColor; background: none; }
}
/* EINDE gedeelde FF-appstijl */

:root {
  --werkvlak: #0a1822;
  --streep: #344b5c;
  --veld: #0d2130;
  --controle: #587589;
  --leeslicht: #c6d9e4;
  scroll-padding-block-start: 4.5rem;
}

[hidden] { display: none !important; }
:where(button) { cursor: pointer; }
:where(button:disabled) { cursor: default; }
:where(h1, h2, h3, p, dl, dd, figure) { margin: 0; }
:where(h1, h2, h3) { line-height: 1.06; letter-spacing: -.045em; }

i[aria-hidden] { font: normal 1.12em/1 Arial, sans-serif; }
.rail {
  width: min(100%, 96rem);
  margin-inline: auto;
  padding-inline: var(--ff-gutter);
}

.skip {
  position: fixed;
  z-index: 10;
  left: 1rem;
  top: 1rem;
  transform: translateY(-160%);
  padding: .55rem .85rem;
  background: #fff;
  color: #081420;
}
.skip:focus { transform: none; }

.hero { overflow: hidden; }
.hero-in {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  min-height: clamp(14rem, 20vw, 18rem);
}
.hero-copy { z-index: 1; padding-block: 2.25rem; }
.hero h1 {
  margin-block: .36rem .7rem;
  font-size: clamp(3.2rem, 6.6vw, 6.7rem);
  letter-spacing: -.065em;
}
.hero h1 em { margin-inline-start: .055em; }
.intro {
  max-width: 39ch;
  color: var(--leeslicht);
  font-size: clamp(1rem, 1.48vw, 1.22rem);
}
.modelbeeld {
  position: relative;
  display: grid;
  align-items: center;
  align-self: stretch;
  min-width: 0;
}
.modelbeeld::before {
  content: "";
  position: absolute;
  inset: 11% -4%;
  background: radial-gradient(ellipse, #4bb5e128 0%, #2e65931a 40%, transparent 75%);
}
.modelbeeld img {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  max-height: 18rem;
  object-fit: contain;
}

.werk {
  padding-block: clamp(1.15rem, 2vw, 1.75rem) clamp(3rem, 5vw, 5rem);
}
.stappen {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--streep);
  border-radius: var(--ff-radius);
  margin-bottom: clamp(1rem, 1.65vw, 1.5rem);
  scroll-margin-top: 1rem;
}
.stappen button {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .6rem;
  min-height: 3.35rem;
  border: 0;
  border-radius: 0;
  padding: .5rem .2rem;
  color: var(--ff-text);
  background: #0a1724;
  font-size: .96rem;
  font-weight: 700;
}
.stappen button + button { border-inline-start: 1px solid var(--streep); }
.stappen button:first-child { border-radius: var(--ff-radius) 0 0 var(--ff-radius); }
.stappen button:last-child { border-radius: 0 var(--ff-radius) var(--ff-radius) 0; }
.stappen button:focus-visible { z-index: 1; }
.stappen button:hover:not(:disabled), .stappen button[aria-current] { background: #122c40; }
.stappen button:disabled { color: #9aafbf; }
.stappen button[aria-current] { color: var(--ff-ice); box-shadow: inset 0 -2px var(--ff-ice); }
.stappen small { font-size: .72rem; font-variant-numeric: tabular-nums; }

.werkgrid {
  display: grid;
  grid-template-columns: minmax(0, 2.5fr) minmax(15.3rem, 1fr);
  gap: clamp(1rem, 1.7vw, 1.6rem);
  align-items: start;
}
.tafel, .overzicht { min-width: 0; }
.tafel {
  background: var(--werkvlak);
  border-color: var(--streep);
  padding: clamp(1.25rem, 2.55vw, 2.3rem);
}
.tafel h2 { font-size: clamp(1.9rem, 3.1vw, 3.15rem); }
.uitleg {
  max-width: 65ch;
  margin-block: .65rem clamp(1.35rem, 2.2vw, 2rem);
  color: var(--leeslicht);
}
.overzicht {
  position: sticky;
  top: 6rem;
  padding: clamp(1rem, 1.85vw, 1.75rem);
}
.overzichtkop, .totaal, .som, .post {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .7rem;
}
.voorbeeld {
  font-size: .75rem;
  line-height: 1.5;
  color: var(--leeslicht);
  border: 1px solid var(--controle);
  border-radius: var(--ff-radius);
  padding: .1rem .4rem;
}
.overzicht h2 { margin-block: .7rem 1.15rem; font-size: clamp(1.5rem, 2.3vw, 2rem); }
.overzicht dl {
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(0, 1fr);
  font-size: .92rem;
}
.overzicht dt, .overzicht dd {
  border-block-start: 1px solid var(--streep);
  padding-block: .5rem;
}
.overzicht dt, .totaal span, .opslaghulp { color: var(--leeslicht); }
.overzicht dt { padding-inline-end: .8rem; }
.overzicht dd { text-align: right; overflow-wrap: anywhere; }
.totaal {
  align-items: end;
  border-block-start: 1px solid var(--streep);
  padding-top: .85rem;
}
.totaal span { font-size: .84rem; }
.totaal strong { font-size: clamp(1.55rem, 2.25vw, 2rem); }
.opslaghulp { margin-top: 1.15rem; font-size: .82rem; }

.tekstknop, .terug {
  color: var(--ff-ice);
  background: none;
  border: 0;
  min-height: 44px;
  padding: .4rem 0;
  font-weight: 700;
  text-align: left;
}
.tekstknop:hover, .terug:hover { text-decoration: underline; text-underline-offset: .2em; }
.tekstknop i { margin-right: .2rem; }
.terug { margin-right: auto; }
.actierij, .dialoogacties, .documentacties {
  display: flex;
  align-items: center;
  gap: .7rem;
  flex-wrap: wrap;
}
.actierij {
  justify-content: flex-end;
  border-block-start: 1px solid var(--streep);
  padding-top: 1.2rem;
  margin-top: 1.55rem;
}
.begroting h3 { margin-bottom: .65rem; font-size: 1.3rem; }
.post, .som {
  align-items: flex-start;
  padding-block: .7rem;
  border-block-start: 1px solid var(--streep);
  font-size: .95rem;
}
.post small { display: block; color: var(--leeslicht); }
.post b, .som b { white-space: nowrap; font-variant-numeric: tabular-nums; }
.som:last-child { color: var(--ff-ice); font-size: 1.17rem; }
.documentacties { margin-top: 1.15rem; }
.documentacties p { width: 100%; font-size: .9rem; color: var(--leeslicht); }
.docbericht { margin-top: .75rem; font-size: .9rem; color: var(--ff-ice); }
.archief { margin-top: .9rem; }
.archief summary {
  display: list-item;
  align-content: center;
  min-height: 44px;
  cursor: pointer;
}
.archief button { display: block; }

dialog {
  width: min(30rem, calc(100% - 1.75rem));
  max-height: calc(100dvh - 2rem);
  padding: clamp(1.25rem, 2.8vw, 2rem);
  overflow-y: auto;
}
dialog::backdrop { background: #020b14cf; backdrop-filter: blur(3px); }
dialog h2 { margin-block: .65rem; font-size: clamp(1.7rem, 3vw, 2.2rem); }
dialog p:not(.ff-eyebrow) { margin-bottom: .8rem; color: var(--leeslicht); }
.kruis {
  position: absolute;
  top: .4rem;
  right: .4rem;
  width: 44px;
  min-height: 44px;
  border: 0;
  color: var(--ff-text);
  background: none;
  font-size: 1.55rem;
}
.dialoogacties { margin-top: 1.3rem; justify-content: flex-end; }
form label { display: grid; gap: .3rem; margin-block: .72rem; font-size: .92rem; font-weight: 700; }
form input { width: 100%; min-height: 44px; font-size: 1rem; }
form button { margin-top: .35rem; }
#aanvraagresultaat:not(:empty) { margin: .85rem 0 0; color: var(--ff-ice); }

@media (max-width: 880px) {
  .werkgrid { grid-template-columns: minmax(0, 1fr); }
  .overzicht { position: static; }
}

@media (max-width: 600px) {
  :root { scroll-padding-block-start: 4.2rem; }
  .hero-in {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
    gap: .2rem;
    min-height: 0;
    padding-block: 1.3rem 1rem;
  }
  .hero-copy { grid-column: 1 / -1; grid-row: 1; padding-block: 0; }
  .hero h1 {
    font-size: clamp(2.55rem, 11vw, 4rem);
    width: fit-content;
    margin-block: .4rem .6rem;
  }
  .hero .ff-eyebrow { font-size: .62rem; }
  .hero .intro { max-width: 27ch; width: 70%; font-size: .95rem; }
  .modelbeeld {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    width: 88%;
    align-self: end;
    transform: translate(14%, 12%);
  }
  .modelbeeld img { max-height: 6rem; }
  .stappen { margin-bottom: .9rem; scroll-margin-top: .7rem; }
  .stappen button { flex-direction: column; gap: .15rem; font-size: clamp(.67rem, 2.95vw, .87rem); }
  .stappen small { font-size: .67rem; }
  .tafel { padding-inline: clamp(.9rem, 4.1vw, 1.25rem); }
  .uitleg { font-size: .94rem; }
  .actierij { padding-top: .9rem; margin-top: 1.1rem; }
  .documentacties button { width: 100%; }
}

/* BEGIN gedeeld demo-familie.css */
/* Gemeenschappelijke afwerking voor de tien openbare demo's. */
@media screen {
  .ff-familiekop {
    background: linear-gradient(110deg, #071620, #091b27 65%, #07131c);
    border-bottom: 1px solid var(--ff-line, #284457);
    box-shadow: 0 2px 14px #02091030;
  }
  .ff-familiekop .ff-bar-inner {
    box-sizing: border-box;
    width: 100%;
    max-width: 96rem;
    min-height: 4.5rem;
    margin-inline: auto;
    padding: 0 clamp(1rem, 5.7vw, 6.5rem);
  }
  .ff-familiekop .ff-trial {
    border-radius: var(--ff-radius, .35rem);
    font-family: var(--ff-sans, Instrument, Arial, sans-serif);
  }
  .ff-familiekop .ff-trial > [aria-hidden="true"] {
    font: inherit;
    letter-spacing: normal;
  }
  .ff-familiestappen {
    font-family: var(--ff-sans, Instrument, Arial, sans-serif);
    font-variant-numeric: tabular-nums;
  }
  .ff-familiestappen [aria-current]:not([aria-current="false"]) {
    box-shadow: inset 0 -2px #91dbe9;
  }
  .ff-familiekaart {
    border-radius: .55rem;
    border-color: var(--ff-line, #284457);
  }
}
@media screen and (max-width: 42rem) {
  .ff-familiekop .ff-bar-inner {
    min-height: 4.15rem;
    padding-inline: 1rem;
  }
}
@media screen and (prefers-reduced-motion: no-preference) {
  [data-ff-merk] { animation: ff-merk-binnen 360ms ease-out both; }
  .ff-familiekaart, .ff-familiestappen :is(a, button) {
    transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
  }
  @keyframes ff-merk-binnen {
    from { opacity: .45; transform: translateY(3px); }
    to { opacity: 1; transform: translateY(0); }
  }
}
@media (prefers-reduced-motion: reduce) {
  [data-ff-merk], .ff-familiekaart, .ff-familiestappen :is(a, button) {
    animation: none !important;
    transition: none !important;
  }
}
/* EINDE gedeeld demo-familie.css */
