/* yoli.be – one stylesheet for every page. Colours as in the app (src/theme, docs/prototype.html). */

@font-face { font-family: 'Bricolage Grotesque'; src: url('fonts/BricolageGrotesque_700Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Bricolage Grotesque'; src: url('fonts/BricolageGrotesque_800ExtraBold.ttf') format('truetype'); font-weight: 800; font-display: swap; }
@font-face { font-family: 'Figtree'; src: url('fonts/Figtree_400Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Figtree'; src: url('fonts/Figtree_600SemiBold.ttf') format('truetype'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Figtree'; src: url('fonts/Figtree_700Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }

:root {
  --blauw: #1f49b5;
  --blauw-diep: #173a93;
  --blauw-zacht: #e7edfb;
  --zand: #f4efe6;
  --kaart: #fffdf9;
  --rand: #e6e1d7;
  --koper: #b4632a;
  --groen: #1f7a34;
  --inkt: #1a1d24;
  --grijs: #5b6170;
  --titel: 'Bricolage Grotesque', 'Figtree', system-ui, sans-serif;
  --tekst: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --breed: 1120px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --blauw: #7ea0ff;
    --blauw-diep: #a9bfff;
    --blauw-zacht: #1d2740;
    --zand: #141a28;
    --kaart: #1b2233;
    --rand: #2a3347;
    --inkt: #eef0f5;
    --grijs: #a7aebd;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--zand); color: var(--inkt); font: 400 17px/1.6 var(--tekst); }
img { max-width: 100%; display: block; }
a { color: var(--blauw); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--titel); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 6.4vw, 3.6rem); font-weight: 800; hyphens: auto; overflow-wrap: break-word; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
.muted { color: var(--grijs); }
.wrap { width: 100%; max-width: var(--breed); margin: 0 auto; padding: 0 20px; }

/* Header */
.kop { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--zand) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--rand); }
.kop .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.merk { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--inkt); font: 800 1.45rem var(--titel); }
.merk img { width: 36px; height: 36px; border-radius: 9px; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: var(--inkt); text-decoration: none; font-weight: 600; font-size: .97rem; }
.nav a:hover { color: var(--blauw); }
@media (max-width: 720px) { .nav a:not(.knop) { display: none; } }

/* Buttons */
.knop { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 12px; background: var(--blauw); color: #fff !important; font-weight: 700; text-decoration: none; border: 0; cursor: pointer; transition: background .15s, transform .15s; }
.knop:hover { background: var(--blauw-diep); transform: translateY(-1px); }
.knop.licht { background: var(--kaart); color: var(--inkt) !important; border: 1px solid var(--rand); }
.knop.licht:hover { background: var(--zand); }
.knop.klein { padding: 9px 16px; font-size: .95rem; }

/* Hero */
.held { padding: 72px 0 40px; }
.held .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.label { display: inline-block; font-weight: 700; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--koper); margin-bottom: 14px; }
.held p.groot { font-size: 1.2rem; color: var(--grijs); max-width: 36ch; }
.held .knoppen { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
@media (max-width: 900px) { .held .wrap { grid-template-columns: 1fr; } .held { padding-top: 40px; } }

/* Mock-up of the app on an iPad */
.toestel { background: #0f1420; border-radius: 28px; padding: 14px; box-shadow: 0 30px 60px -20px rgba(20, 30, 60, .35); }
.scherm { background: #f4efe6; border-radius: 16px; overflow: hidden; color: #1a1d24; font-size: 13px; }
.scherm .balk { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; background: #fffdf9; border-bottom: 1px solid #e6e1d7; font-weight: 700; }
.scherm .balk span { font-family: var(--titel); font-size: 15px; }
.scherm .pil { background: #e7edfb; color: #1f49b5; border-radius: 999px; padding: 3px 10px; font-size: 11px; font-weight: 700; }
.scherm .lijst { padding: 12px; display: grid; gap: 8px; }
.scherm .rij { background: #fffdf9; border: 1px solid #e6e1d7; border-radius: 10px; padding: 10px 12px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.scherm .rij b { display: block; }
.scherm .rij small { color: #5b6170; }
.scherm .eval { border-radius: 999px; padding: 3px 9px; font-weight: 700; font-size: 11px; white-space: nowrap; }
.eval.goed { background: #e3f1e6; color: #1f7a34; }
.eval.matig { background: #f6e8dc; color: #b4632a; }
.scherm .fotos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 0 12px 12px; }
.scherm .fotos div { aspect-ratio: 4/3; border-radius: 6px; background: linear-gradient(135deg, #d9d2c4, #c7bfae); position: relative; }
.scherm .fotos div::after { content: 'yoli | I-0' attr(data-n); position: absolute; left: 4px; bottom: 3px; font-size: 8px; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .5); }

/* Sections */
section { padding: 64px 0; }
.intro { max-width: 60ch; margin-bottom: 36px; }
.raster { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .raster { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .raster { grid-template-columns: 1fr; } }
.kaart { background: var(--kaart); border: 1px solid var(--rand); border-radius: 18px; padding: 24px; }
.kaart p { color: var(--grijs); margin: 0; }
.icoon { width: 44px; height: 44px; border-radius: 12px; background: var(--blauw-zacht); color: var(--blauw); display: grid; place-items: center; margin-bottom: 14px; }
.icoon svg { width: 22px; height: 22px; }

/* Steps */
.stappen { counter-reset: stap; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 900px) { .stappen { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .stappen { grid-template-columns: 1fr; } }
.stap { position: relative; padding-top: 52px; }
.stap::before { counter-increment: stap; content: counter(stap); position: absolute; top: 0; left: 0; width: 38px; height: 38px; border-radius: 50%; background: var(--blauw); color: #fff; display: grid; place-items: center; font: 800 1.05rem var(--titel); }
.stap p { color: var(--grijs); }

/* Band */
.band { background: var(--blauw); color: #fff; border-radius: 24px; padding: 48px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; }
.band h2 { color: #fff; }
.band p { color: #dfe6fb; }
.band .knop { background: #fff; color: var(--blauw) !important; }
.band .knop:hover { background: var(--zand); }
@media (max-width: 800px) { .band { grid-template-columns: 1fr; padding: 32px 24px; } }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .band { background: #1f49b5; }
  /* Light blue in dark mode: dark text on the buttons keeps them readable. */
  :root:not([data-theme='light']) .knop:not(.licht) { color: #0f1420 !important; }
  :root:not([data-theme='light']) .band .knop { color: #1f49b5 !important; }
}

/* Questions */
details { background: var(--kaart); border: 1px solid var(--rand); border-radius: 14px; padding: 16px 20px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::after { content: '+'; color: var(--blauw); font-weight: 800; }
details[open] summary::after { content: '–'; }
details p { margin: 12px 0 0; color: var(--grijs); }

/* Text pages (privacy, terms) */
.tekstpagina { max-width: 760px; padding-top: 48px; padding-bottom: 72px; }
.tekstpagina h2 { font-size: 1.45rem; margin-top: 2em; }
.tekstpagina li { margin-bottom: .4em; }
.tekstpagina table { width: 100%; border-collapse: collapse; margin: 1em 0 1.5em; font-size: .95rem; }
.tekstpagina th, .tekstpagina td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--rand); vertical-align: top; }
.tekstpagina th { font-weight: 700; background: var(--kaart); }
.invullen { background: #fff3c4; color: #5a4300; padding: 0 4px; border-radius: 4px; }
.versie { font-size: .9rem; color: var(--grijs); }

/* Footer */
.voet { border-top: 1px solid var(--rand); padding: 36px 0 48px; color: var(--grijs); font-size: .95rem; }
.voet .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; }
.voet a { color: var(--grijs); }
.voet nav { display: flex; flex-wrap: wrap; gap: 18px; }

/* Centered message (account confirmed) */
.midden { min-height: calc(100vh - 68px); display: grid; place-items: center; padding: 40px 20px; }
.midden .kaart { max-width: 480px; text-align: center; padding: 40px 32px; }
.midden .kaart img { width: 64px; height: 64px; border-radius: 16px; margin: 0 auto 18px; }
.midden .kaart p { margin-bottom: 1em; }
