/* Office Ecosystem, website 0.1.0
   Kleuren als tokens, licht en donker. Geen externe bronnen: lettertypen staan in assets/fonts. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("fonts/bricolage-grotesque.woff2") format("woff2-variations"), url("fonts/bricolage-grotesque.woff2") format("woff2");
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Literata";
  src: url("fonts/literata.woff2") format("woff2-variations"), url("fonts/literata.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f2f4f0;
  --paper-2: #e5eae3;
  --card: #fbfcf9;
  --ink: #1d2a27;
  --ink-soft: #4a5853;
  --rule: #c7d0c6;
  --spil: #2753cc;
  --archive: #11704f;
  --you: #9e530a;
  --you-ink: #ffffff;
  --bezel: #1d2a27;
  --band: #1d2a27;
  --band-ink: #eef2ec;
  --band-soft: #b9c6c0;
  --focus: #2753cc;

  --sans: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Literata", ui-serif, Georgia, "Times New Roman", serif;

  --wrap: 72rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #162220;
    --paper-2: #1c2a27;
    --card: #1f2e2b;
    --ink: #e6ece7;
    --ink-soft: #a7b5af;
    --rule: #33443f;
    --spil: #8aa8ff;
    --archive: #5cc9a0;
    --you: #f0a95e;
    --you-ink: #1b1408;
    --bezel: #0c1513;
    --band: #0f1918;
    --band-ink: #e6ece7;
    --band-soft: #a7b5af;
    --focus: #8aa8ff;
  }
}
:root[data-theme="dark"] {
  --paper: #162220;
  --paper-2: #1c2a27;
  --card: #1f2e2b;
  --ink: #e6ece7;
  --ink-soft: #a7b5af;
  --rule: #33443f;
  --spil: #8aa8ff;
  --archive: #5cc9a0;
  --you: #f0a95e;
  --you-ink: #1b1408;
  --bezel: #0c1513;
  --band: #0f1918;
  --band-ink: #e6ece7;
  --band-soft: #a7b5af;
  --focus: #8aa8ff;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.68;
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
@media (min-width: 48rem) { body { font-size: 1.125rem; } }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, dt { font-family: var(--sans); color: var(--ink); margin: 0; }
p { margin: 0 0 1em; }
.small { font-size: 0.875rem; line-height: 1.5; color: var(--ink-soft); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 10;
  background: var(--ink); color: var(--paper); padding: 0.6rem 1rem; border-radius: 6px;
  font-family: var(--sans); text-decoration: none;
}
.skip:focus { top: 1rem; }

/* Kop */
.top { padding: 1.25rem 0; }
.top__in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.brand__mark { width: 1.75rem; height: 1.75rem; flex: none; }
.brand__mark .m1 { fill: var(--spil); }
.brand__mark .m2 { fill: var(--archive); mix-blend-mode: multiply; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .brand__mark .m2 { mix-blend-mode: screen; } }
.brand__name { font-family: var(--sans); font-weight: 680; font-stretch: 88%; font-size: 1.15rem; letter-spacing: -0.005em; }
.nav { display: flex; align-items: center; gap: 0.25rem 1.25rem; flex-wrap: wrap; font-family: var(--sans); font-size: 1rem; }
.nav a { text-decoration: none; padding: 0.25rem 0; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: currentColor; }
.nav__lang { display: inline-flex; gap: 0.5rem; text-transform: uppercase; font-size: 0.875rem; }
.nav__lang [aria-current] { font-weight: 700; }

/* Knoppen */
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.75rem 0 0; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 2.875rem; padding: 0.65rem 1.3rem; border-radius: 999px;
  font-family: var(--sans); font-weight: 620; font-size: 1rem; line-height: 1.2;
  text-decoration: none; border: 2px solid var(--ink);
}
.btn--solid { background: var(--ink); color: var(--paper); }
.btn--solid:hover { background: transparent; color: var(--ink); }
.btn--line { background: transparent; color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--paper); }

/* Opening */
.hero { padding: clamp(2rem, 6vw, 5rem) 0 clamp(3rem, 7vw, 6rem); }
.hero__in { display: grid; gap: clamp(2.5rem, 5vw, 4.5rem); align-items: center; }
@media (min-width: 60rem) { .hero__in { grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); } }
.hero h1 {
  font-size: clamp(2.6rem, 6.6vw, 4.9rem);
  font-weight: 760;
  font-stretch: 78%;
  line-height: 0.98;
  letter-spacing: -0.012em;
  text-wrap: balance;
  max-width: 13ch;
}
.lead { font-size: clamp(1.125rem, 1.6vw, 1.25rem); line-height: 1.62; color: var(--ink-soft); margin-top: 1.5rem; max-width: 36rem; }

/* De keten: één factuur, stap voor stap */
.record {
  margin: 0;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 16px;
  padding: 1.4rem 1.4rem 1.2rem;
  --who: 4.75rem;
}
.record__title { font-family: var(--sans); font-weight: 650; font-size: 1rem; margin: 0 0 1rem; }
.record__list { list-style: none; margin: 0; padding: 0; position: relative; }
.record__list::before {
  content: ""; position: absolute; top: 0.9rem; bottom: 0.9rem;
  left: calc(var(--who) / 2); width: 2px; margin-left: -1px; background: var(--rule);
}
.step {
  position: relative; display: grid; grid-template-columns: var(--who) minmax(0, 1fr);
  gap: 0.9rem; align-items: start; padding: 0.42rem 0;
  font-family: var(--sans); font-size: 0.97rem; line-height: 1.4;
  font-variant-numeric: tabular-nums;
}
.step__who {
  justify-self: center; position: relative;
  font-size: 0.78rem; font-weight: 650; line-height: 1; letter-spacing: 0.01em;
  padding: 0.38rem 0.6rem; border-radius: 999px; border: 1.5px solid currentColor;
  background: var(--card); white-space: nowrap; margin-top: 0.05rem;
}
.step__what { padding-top: 0.1rem; }
.step--app .step__who { color: var(--spil); }
.step--agent .step__who { color: var(--ink-soft); border-style: dashed; }
.step--you .step__who { color: var(--you-ink); background: var(--you); border-color: var(--you); }
.step--you .step__what { font-weight: 650; }
.record figcaption { margin-top: 1rem; padding-top: 0.9rem; border-top: 1px solid var(--rule); font-size: 0.9rem; line-height: 1.5; color: var(--ink-soft); }

@media (prefers-reduced-motion: no-preference) {
  .step { animation: step-in 0.5s cubic-bezier(.2,.7,.2,1) both; }
  .step:nth-child(1) { animation-delay: 0.30s; }
  .step:nth-child(2) { animation-delay: 0.68s; }
  .step:nth-child(3) { animation-delay: 1.06s; }
  .step:nth-child(4) { animation-delay: 1.44s; }
  .step:nth-child(5) { animation-delay: 1.82s; }
  .step:nth-child(6) { animation-delay: 2.50s; }
  .step:nth-child(7) { animation-delay: 2.98s; }
  .step--you .step__who { animation: verdict 0.9s ease-out 2.75s both; }
}
@keyframes step-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes verdict {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--you) 55%, transparent); }
  100% { box-shadow: 0 0 0 12px color-mix(in srgb, var(--you) 0%, transparent); }
}

@media (max-width: 30rem) {
  .record { padding: 1.1rem 1rem 1rem; --who: 4.1rem; }
  .step { gap: 0.6rem; font-size: 0.92rem; }
}

/* Koppen van secties */
.section-head { max-width: 40rem; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
h2 {
  font-size: clamp(2rem, 4.2vw, 2.9rem);
  font-weight: 720; font-stretch: 82%;
  line-height: 1.04; letter-spacing: -0.008em;
  margin-bottom: 0.9rem; text-wrap: balance;
}
.section-head p { color: var(--ink-soft); }

/* De tools */
.tools { padding: clamp(3rem, 7vw, 6rem) 0; border-top: 1px solid var(--rule); }
.tool {
  display: grid; gap: 2.5rem 4rem; align-items: center;
  padding: clamp(1.5rem, 4vw, 3rem) 0 clamp(3.5rem, 8vw, 6rem);
}
@media (min-width: 60rem) {
  .tool { grid-template-columns: minmax(0, 4.4fr) minmax(0, 7.6fr); gap: 2.5rem 3.5rem; }
  .tool:nth-of-type(even) { grid-template-columns: minmax(0, 7.6fr) minmax(0, 4.4fr); }
  .tool:nth-of-type(even) .tool__text { order: 2; }
}
.tool--spil { --tool: var(--spil); }
.tool--archive { --tool: var(--archive); }
.tool__name {
  font-size: clamp(2.2rem, 4vw, 2.8rem); font-weight: 760; font-stretch: 80%;
  line-height: 1; color: var(--tool); margin-bottom: 0.4rem;
}
.tool__tagline { font-family: var(--sans); font-size: 1.2rem; font-weight: 560; line-height: 1.3; margin-bottom: 1.25rem; }
.tool__text > p { max-width: 34rem; }
.tool__points { list-style: none; margin: 1.5rem 0 0; padding: 1rem 0 0; border-top: 1px solid var(--rule); font-family: var(--sans); font-size: 0.98rem; line-height: 1.4; }
.tool__points li { position: relative; padding: 0.3rem 0 0.3rem 1.3rem; }
.tool__points li::before {
  content: ""; position: absolute; left: 0; top: 0.72rem;
  width: 0.55rem; height: 0.55rem; border-radius: 2px; background: var(--tool);
}

.tool__shots { position: relative; }
.shot { border-radius: 12px; border: 1px solid var(--rule); background: #fff; }
.shot-link { display: block; border-radius: 12px; }
.shot--main { width: 100%; }
.tool__shots--phone { padding-bottom: 2rem; padding-right: 9%; }
.shot--phone {
  position: absolute; right: 0; bottom: 0; width: 27%;
  border-radius: 20px; border: 5px solid var(--bezel); background: var(--bezel);
  box-shadow: 0 22px 44px -22px rgba(13, 24, 21, 0.55);
}
.tool__shots--detail { padding-bottom: 3.5rem; padding-left: 8%; }
.shot--detail {
  position: absolute; left: 0; bottom: 0; width: 66%;
  box-shadow: 0 22px 44px -22px rgba(13, 24, 21, 0.5);
}
@media (max-width: 40rem) {
  .tool__shots--phone { padding-right: 18%; padding-bottom: 1.5rem; }
  .shot--phone { width: 34%; border-width: 3px; border-radius: 14px; }
  .tool__shots--detail { padding-left: 0; padding-bottom: 0; }
  .shot--detail { position: static; width: 100%; margin-top: 0.75rem; }
}

/* Hoe ze gebouwd zijn */
.principles { background: var(--paper-2); padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.principles__in { display: grid; gap: 1.5rem 4rem; }
@media (min-width: 60rem) {
  .principles__in { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
  .principles h2 { position: sticky; top: 2rem; align-self: start; }
}
.principles__list { margin: 0; }
.principle { padding: 1.4rem 0; border-top: 1px solid var(--rule); display: grid; gap: 0.35rem 2rem; }
.principle:last-child { border-bottom: 1px solid var(--rule); }
@media (min-width: 44rem) { .principle { grid-template-columns: minmax(0, 13rem) minmax(0, 1fr); } }
.principle dt { font-size: 1.2rem; font-weight: 680; font-stretch: 90%; line-height: 1.25; }
.principle dd { margin: 0; color: var(--ink-soft); }

/* Demo's */
.demos { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.demo-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.demo {
  display: grid; gap: 0.5rem 2.5rem; padding: 1.5rem 0; border-bottom: 1px solid var(--rule); align-items: baseline;
}
@media (min-width: 52rem) { .demo { grid-template-columns: minmax(0, 15rem) minmax(0, 1fr) auto; } }
.demo--archive { --tool: var(--archive); }
.demo--spil { --tool: var(--spil); }
.demo__head h3 { font-size: 1.3rem; font-weight: 700; font-stretch: 88%; line-height: 1.2; margin-bottom: 0.4rem; }
.demo__status {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: var(--sans); font-size: 0.85rem; font-weight: 600; color: var(--ink-soft);
}
.demo__status::before { content: ""; width: 0.55rem; height: 0.55rem; border-radius: 50%; border: 1.5px solid currentColor; }
.is-live .demo__status { color: var(--archive); }
.is-live .demo__status::before { background: currentColor; }
.demo p { margin: 0; color: var(--ink-soft); }
.demo__link { font-family: var(--sans); font-weight: 650; color: var(--tool); justify-self: start; }
@media (min-width: 52rem) { .demo__link { justify-self: end; text-align: right; white-space: nowrap; } }
.demo__link--off { color: var(--ink-soft); font-weight: 500; }

/* Vroege toegang */
.early { background: var(--band); color: var(--band-ink); padding: clamp(3.5rem, 8vw, 6rem) 0; }
.early h2 { color: var(--band-ink); font-size: clamp(2.4rem, 6vw, 4rem); font-stretch: 78%; }
.early__in { display: grid; gap: 1rem 4rem; align-items: start; }
@media (min-width: 60rem) { .early__in { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); } }
.early__body { max-width: 36rem; }
.early .btn--solid { background: var(--band-ink); color: var(--band); border-color: var(--band-ink); }
.early .btn--solid:hover { background: transparent; color: var(--band-ink); }
.early .small { color: var(--band-soft); margin-top: 1rem; }
.early :focus-visible { outline-color: var(--band-ink); }

/* Voet */
.foot { padding: 2.5rem 0 3rem; font-family: var(--sans); font-size: 0.95rem; color: var(--ink-soft); }
.foot__in { display: grid; gap: 0.25rem 2rem; }
@media (min-width: 52rem) { .foot__in { grid-template-columns: auto auto; justify-content: space-between; } }
.foot p { margin: 0.2rem 0; }
.foot__brand { color: var(--ink); font-weight: 650; }

/* Niet gevonden */
.notfound { padding: clamp(3rem, 10vw, 8rem) var(--gutter); }
.notfound h1 { font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 760; font-stretch: 78%; line-height: 1; max-width: 16ch; }
