/* PreWeb – binnenkort live
   Richting: middernachtblauw "bouwstation". Eén signaalgeel, één elektrisch blauw,
   groen enkel voor 'live' en scores. Bricolage Grotesque voor tekst, JetBrains Mono enkel voor code. */
:root {
  color-scheme: dark;
  --bg: #0A1430;
  --bg-2: #0F1C42;
  --paneel: rgba(20, 34, 78, .62);
  --lijn: rgba(150, 178, 255, .16);
  --lijn-sterk: rgba(150, 178, 255, .32);
  --tekst: #EAF0FF;
  --tekst-zacht: #9DABD0;
  --plan: #5B8CFF;
  --signaal: #FFC926;
  --live: #3DDC97;

  /* aliassen voor wettelijk.html */
  --papier: var(--bg);
  --inkt: var(--tekst);
  --inkt-zacht: var(--tekst-zacht);

  --f: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;
  --maat-s: .9375rem;
  --maat-m: 1.0625rem;
  --maat-l: 1.3125rem;
  --maat-xl: clamp(1.875rem, 3.6vw, 2.75rem);
  --maat-xxl: clamp(2.6rem, 6.2vw, 5rem);
  --rand: 16px;
  --r: 16px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f);
  font-size: var(--maat-m);
  line-height: 1.55;
  color: var(--tekst);
  background:
    radial-gradient(1100px 600px at 78% -8%, rgba(91, 140, 255, .28), transparent 60%),
    radial-gradient(800px 500px at -10% 30%, rgba(61, 220, 151, .08), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  overflow-x: hidden;
}
h1, h2, h3 { margin: 0; line-height: 1.06; letter-spacing: -0.025em; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--signaal); outline-offset: 3px; border-radius: 6px; }

.wrap {
  position: relative; width: 100%; max-width: 1320px; margin: 0 auto;
  padding-left: max(var(--rand), env(safe-area-inset-left, 0px));
  padding-right: max(var(--rand), env(safe-area-inset-right, 0px));
}
@media (min-width: 720px) { :root { --rand: 32px; } }

.skip { position: absolute; left: -999px; top: 8px; background: var(--signaal); color: var(--bg); padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; }

/* Reactief puntenraster */
.raster { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.topbalk, main, .voet { position: relative; z-index: 1; }

/* Topbalk */
.topbalk { padding: 22px 0; }
.topbalk__rij { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.woordmerk { font-weight: 800; font-size: 1.55rem; letter-spacing: -0.045em; text-decoration: none; }
.woordmerk span { color: var(--plan); }
.woordmerk--klein { font-size: 1.25rem; }
.status {
  display: flex; align-items: center; gap: 10px; font-size: var(--maat-s); color: var(--tekst-zacht);
  border: 1px solid var(--lijn); border-radius: 999px; padding: 6px 14px 6px 12px; background: var(--paneel);
  backdrop-filter: blur(8px);
}
.lamp { width: 8px; height: 8px; border-radius: 50%; background: var(--signaal); box-shadow: 0 0 12px var(--signaal); }

/* HERO */
.hero { padding: 32px 0 80px; }
.hero__rooster { display: grid; gap: 56px; align-items: center; }
@media (min-width: 1040px) {
  .hero { padding: 56px 0 112px; }
  .hero__rooster { grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: 48px; }
}
.hero h1 {
  font-size: var(--maat-xxl); font-weight: 800; max-width: 13ch; text-wrap: balance;
  background: linear-gradient(180deg, #FFFFFF 30%, #B9C8F5 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__lead { margin-top: 24px; font-size: var(--maat-l); line-height: 1.45; color: var(--tekst-zacht); max-width: 34ch; }

/* Interesse */
.interesse { margin-top: 36px; max-width: 540px; }
.interesse label { display: block; font-size: var(--maat-s); color: var(--tekst-zacht); margin-bottom: 10px; }
.interesse__rij {
  display: flex; flex-wrap: wrap; gap: 6px; padding: 6px;
  border: 1px solid var(--lijn-sterk); border-radius: 14px; background: var(--paneel); backdrop-filter: blur(10px);
}
.interesse input {
  flex: 1 1 200px; min-width: 0; font: inherit; color: var(--tekst);
  padding: 12px 14px; border: 0; border-radius: 10px; background: transparent;
}
.interesse input::placeholder { color: #6E7DA6; }
.interesse input:focus-visible { outline-offset: 0; }
.interesse button {
  flex: 0 0 auto; font: inherit; font-weight: 700; color: #1A1400; cursor: pointer;
  padding: 12px 18px; border: 0; border-radius: 10px; background: var(--signaal);
  box-shadow: 0 6px 24px rgba(255, 201, 38, .25);
  transition: transform .15s, box-shadow .15s;
}
.interesse button:hover { transform: translateY(-1px); box-shadow: 0 10px 30px rgba(255, 201, 38, .35); }
@media (max-width: 480px) { .interesse button { flex-basis: 100%; } }
.interesse__melding { margin-top: 10px; min-height: 1.5em; font-size: var(--maat-s); }
.interesse__melding.fout { color: #FF8A80; }
.interesse__melding.ok { color: var(--live); }

/* SCENE */
.scene {
  position: relative; display: grid; gap: 14px;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  grid-template-areas: "editor browser" "scores scores";
  transform-style: preserve-3d; transition: transform .25s ease-out;
}
@media (max-width: 640px) {
  .scene { grid-template-columns: minmax(0, 1fr); grid-template-areas: "browser" "editor" "scores"; }
}
.scene::before {
  content: ""; position: absolute; inset: 10% 5% 0; z-index: -1;
  background: radial-gradient(closest-side, rgba(91, 140, 255, .35), transparent);
  filter: blur(30px);
}
.editor, .browser {
  border: 1px solid var(--lijn-sterk); border-radius: var(--r); overflow: hidden;
  background: rgba(8, 15, 38, .82); backdrop-filter: blur(12px);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .55);
}
.editor { grid-area: editor; display: flex; flex-direction: column; min-height: 300px; }
.editor__balk {
  display: flex; justify-content: space-between; gap: 8px; padding: 10px 14px;
  font-family: var(--mono); font-size: .75rem; color: var(--tekst-zacht); border-bottom: 1px solid var(--lijn);
}
.editor__stap { color: var(--signaal); }
.editor__stap.klaar { color: var(--live); }
.editor__code {
  margin: 0; padding: 16px; flex: 1; font-family: var(--mono); font-size: clamp(.75rem, .9vw, .8125rem); line-height: 1.75;
  color: #C9D6FF; white-space: pre-wrap; word-break: break-word;
}
.editor__code .t { color: #7FA7FF; }
.editor__code .a { color: #FFC926; }
.editor__code .s { color: #3DDC97; }
.editor__code .c { color: #6E7DA6; }
.cursor { display: inline-block; width: 7px; height: 1.05em; vertical-align: text-bottom; background: var(--signaal); animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.browser { grid-area: browser; }
.browser__balk { display: flex; align-items: center; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--lijn); }
.browser__balk > i { width: 9px; height: 9px; border-radius: 50%; background: var(--lijn-sterk); }
.browser__url {
  margin-left: 8px; flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px;
  font-size: .75rem; color: var(--tekst-zacht); background: rgba(255, 255, 255, .05);
  border-radius: 8px; padding: 4px 10px; overflow: hidden; white-space: nowrap;
}
.slot { width: 8px; height: 8px; border: 1.5px solid var(--tekst-zacht); border-radius: 2px; flex: none; }
.live-label {
  margin-left: auto; font-style: normal; font-weight: 700; font-size: .6875rem; color: var(--live);
  opacity: 0; transition: opacity .4s;
}
.live-label.aan { opacity: 1; }

/* Minisite in de browser */
.mini { background: #FBF8F3; color: #2A2118; padding: 16px; display: grid; gap: 16px; min-height: 270px; }
@media (min-width: 1040px) { .mini { padding: 22px; gap: 20px; min-height: 330px; } .mini__kaarten i { height: 72px; } }
.mini__nav { display: flex; justify-content: space-between; align-items: center; }
.mini__logo { font-weight: 800; font-size: .8125rem; letter-spacing: -0.02em; }
.mini__links { display: flex; gap: 6px; }
.mini__links i { width: 26px; height: 5px; border-radius: 3px; background: #D8CDBE; }
.mini__hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 12px; align-items: center; }
.mini__titel { font-weight: 800; font-size: clamp(.95rem, 1.6vw, 1.2rem); line-height: 1.1; letter-spacing: -0.03em; }
.mini__lijn { height: 6px; width: 80%; border-radius: 3px; background: #E3D8C9; margin: 8px 0 12px; }
.mini__knop { display: inline-block; font-size: .6875rem; font-weight: 700; color: #FFF; background: #B4532A; padding: 5px 10px; border-radius: 999px; }
.mini__beeld {
  aspect-ratio: 4 / 3; border-radius: 10px;
  background:
    radial-gradient(circle at 30% 35%, #F2C77A 0 18%, transparent 19%),
    radial-gradient(circle at 62% 58%, #D9984A 0 22%, transparent 23%),
    linear-gradient(135deg, #E9B872, #A8642B);
}
.mini__kaarten { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mini__kaarten i { height: 54px; border-radius: 8px; background: #EFE6D9; }

/* Bouwstappen: zichtbaar in rust, verborgen enkel tijdens de animatie */
.scene.bouwt .b-1, .scene.bouwt .b-2, .scene.bouwt .b-3, .scene.bouwt .b-4, .scene.bouwt .b-5 {
  opacity: 0; transform: translateY(8px) scale(.98);
}
.b-1, .b-2, .b-3, .b-4, .b-5 { transition: opacity .45s ease, transform .5s cubic-bezier(.2, .9, .3, 1.2); }
.scene.bouwt .b-1.zichtbaar, .scene.bouwt .b-2.zichtbaar, .scene.bouwt .b-3.zichtbaar,
.scene.bouwt .b-4.zichtbaar, .scene.bouwt .b-5.zichtbaar { opacity: 1; transform: none; }

/* Scores */
.scores {
  grid-area: scores; list-style: none; margin: 0; padding: 14px;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px;
  border: 1px solid var(--lijn); border-radius: var(--r); background: var(--paneel); backdrop-filter: blur(10px);
}
.scores li { position: relative; display: grid; justify-items: center; gap: 6px; text-align: center; }
.scores svg { width: 56px; height: 56px; transform: rotate(-90deg); }
.scores circle { fill: none; stroke-width: 3.2; }
.scores .spoor { stroke: var(--lijn); }
.scores .boog {
  stroke: var(--live); stroke-linecap: round;
  stroke-dasharray: 106.8; stroke-dashoffset: 0;
  transition: stroke-dashoffset 1.4s cubic-bezier(.2, .8, .2, 1);
}
.scene.bouwt .scores .boog { stroke-dashoffset: 106.8; }
.scene.bouwt .scores.vol .boog { stroke-dashoffset: 0; }
.scores b {
  position: absolute; top: 0; width: 56px; height: 56px; display: grid; place-items: center;
  font-size: .9375rem; font-weight: 700; color: var(--live); font-variant-numeric: tabular-nums;
}
.scores span { font-size: .6875rem; color: var(--tekst-zacht); line-height: 1.2; }

/* AFTELLING */
.aftel { border-block: 1px solid var(--lijn); background: rgba(10, 20, 48, .7); backdrop-filter: blur(10px); padding: 28px 0; }
.aftel__rij { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; }
.aftel__label { font-size: var(--maat-l); color: var(--tekst-zacht); }
.aftel__label time { color: var(--tekst); font-weight: 700; }
.klok { display: flex; gap: 10px; }
.klok div {
  display: grid; justify-items: center; min-width: 70px; padding: 10px 8px;
  border: 1px solid var(--lijn-sterk); border-radius: 12px; background: var(--bg-2);
}
.klok b { font-size: clamp(1.6rem, 3.4vw, 2.25rem); font-weight: 800; line-height: 1; color: var(--signaal); font-variant-numeric: tabular-nums; }
.klok span { margin-top: 6px; font-size: .75rem; color: var(--tekst-zacht); }
@media (max-width: 420px) { .klok { gap: 6px; } .klok div { min-width: 0; flex: 1; } }

/* BLOKKEN */
.blok { padding: 88px 0; }
@media (min-width: 960px) { .blok { padding: 120px 0; } }
.blok__kop { font-size: var(--maat-xl); font-weight: 800; margin-bottom: 40px; }
.blok__duo { display: grid; gap: 0; }
@media (min-width: 960px) {
  .blok__duo { grid-template-columns: 300px minmax(0, 1fr); gap: 64px; }
  .blok__duo .blok__kop { margin-bottom: 0; }
}

/* BENTO */
.bento { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 820px) {
  .bento { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .tegel { grid-column: span 2; }
  .tegel--breed { grid-column: span 6; }
}
@media (min-width: 1100px) {
  .tegel--breed { grid-column: span 4; grid-row: span 2; justify-content: flex-start; }
  .tegel--breed .demo { margin-top: auto; }
  .tegel[data-pijler="1"] { grid-column: span 2; }
  .tegel[data-pijler="2"] { grid-column: span 2; }
  .tegel[data-pijler="3"] { grid-column: span 6; }
}
.tegel {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
  padding: 26px; border: 1px solid var(--lijn); border-radius: 20px;
  background: linear-gradient(180deg, rgba(25, 42, 94, .55), rgba(12, 22, 54, .55));
  backdrop-filter: blur(10px); overflow: hidden;
}
.tegel::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, -999px) var(--my, -999px), rgba(91, 140, 255, .14), transparent 60%);
}
.tegel h3 { font-size: var(--maat-l); font-weight: 700; margin-bottom: 8px; }
.tegel p { color: var(--tekst-zacht); max-width: 52ch; }
.tegel[data-pijler="3"] { flex-direction: row; flex-wrap: wrap; align-items: center; }
.tegel[data-pijler="3"] .tegel__tekst { flex: 1 1 320px; }

/* Demo: beheer → site */
.demo { position: relative; z-index: 1; display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .demo { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.demo__beheer, .demo__site { border-radius: 14px; padding: 16px; }
.demo__beheer { background: rgba(5, 10, 28, .7); border: 1px solid var(--lijn-sterk); display: grid; gap: 6px; align-content: start; }
.demo__site { background: #FBF8F3; color: #2A2118; }
.demo__kop { font-size: .75rem; font-weight: 700; color: var(--tekst-zacht); margin-bottom: 6px; }
.demo__site .demo__kop { color: #8A7660; }
.demo__beheer label { font-size: .8125rem; color: var(--tekst-zacht); margin-top: 4px; }
.demo__beheer input {
  font: inherit; font-size: .9375rem; color: var(--tekst); background: rgba(255, 255, 255, .06);
  border: 1px solid var(--lijn-sterk); border-radius: 8px; padding: 9px 11px; min-width: 0;
}
.demo__beheer input[readonly] { color: var(--tekst-zacht); }
.demo__beheer button {
  margin-top: 10px; justify-self: start; font: inherit; font-weight: 700; font-size: .9375rem; cursor: pointer;
  color: var(--bg); background: var(--plan); border: 0; border-radius: 8px; padding: 9px 16px;
}
.demo__beheer button:hover { background: #7AA2FF; }
.demo__nieuws { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.demo__nieuws li { display: grid; gap: 2px; padding: 10px 12px; border-radius: 10px; background: #F1E9DE; }
.demo__nieuws li.concept { outline: 2px dashed #C9B49A; outline-offset: -2px; background: #FFF; }
.demo__nieuws li.nieuw { animation: verschijn .6s cubic-bezier(.2, .9, .3, 1.2); }
.demo__nieuws time { font-size: .75rem; color: #B4532A; font-weight: 700; }
.demo__nieuws span { font-weight: 700; font-size: .9375rem; line-height: 1.3; overflow-wrap: anywhere; }
@keyframes verschijn { from { opacity: 0; transform: translateY(-8px) scale(.97); } to { opacity: 1; transform: none; } }

/* Snelheid */
.snel { display: grid; gap: 12px; }
.snel__rij { display: grid; grid-template-columns: 92px minmax(0, 1fr) 44px; align-items: center; gap: 10px; font-size: .8125rem; color: var(--tekst-zacht); }
.snel__rij b { color: var(--tekst); text-align: right; font-variant-numeric: tabular-nums; }
.snel__balk { height: 10px; border-radius: 6px; background: var(--lijn); position: relative; overflow: hidden; }
.snel__balk::after { content: ""; position: absolute; inset: 0 auto 0 0; border-radius: inherit; }
.snel__balk--wij::after { width: 18%; background: var(--live); box-shadow: 0 0 14px var(--live); }
.snel__balk--zwaar::after { width: 92%; background: #6E7DA6; }

/* Uptime */
.uptime__balkjes { display: grid; grid-template-columns: repeat(30, 1fr); gap: 3px; height: 34px; }
.uptime__balkjes i { border-radius: 2px; background: var(--live); opacity: .85; }
.uptime__balkjes i:nth-child(3n) { opacity: .65; }
.uptime p { margin-top: 12px; font-size: .8125rem; color: var(--tekst-zacht); display: flex; align-items: center; gap: 8px; }
.punt { width: 8px; height: 8px; border-radius: 50%; background: var(--live); box-shadow: 0 0 10px var(--live); }

/* Vinkjes */
.vinkjes { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.vinkjes li {
  display: flex; align-items: center; gap: 8px; font-size: .875rem; font-weight: 500;
  padding: 8px 14px 8px 10px; border: 1px solid var(--lijn-sterk); border-radius: 999px; background: rgba(61, 220, 151, .06);
}
.vinkjes li::before {
  content: ""; width: 14px; height: 8px; margin-top: -3px;
  border-left: 2px solid var(--live); border-bottom: 2px solid var(--live); transform: rotate(-45deg);
}

/* Voor wie */
.doelgroepen { display: grid; gap: 16px; }
@media (min-width: 760px) { .doelgroepen { grid-template-columns: 1fr 1fr; } }
.doelgroepen article { padding: 32px 28px; border-top: 2px solid var(--signaal); background: linear-gradient(180deg, rgba(255, 201, 38, .07), transparent 70%); border-radius: 0 0 20px 20px; }
.doelgroepen__label { font-size: var(--maat-xl); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 14px; }
.doelgroepen__tekst { font-size: var(--maat-l); line-height: 1.5; color: var(--tekst-zacht); max-width: 40ch; }

/* Werfdagboek */
.dagboek { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--lijn-sterk); }
.dagboek li { position: relative; padding: 0 0 40px 30px; }
.dagboek li:last-child { padding-bottom: 0; }
.dagboek li::before {
  content: ""; position: absolute; left: -6px; top: 7px; width: 11px; height: 11px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--plan);
}
.dagboek li:first-child::before { background: var(--signaal); border-color: var(--signaal); box-shadow: 0 0 14px var(--signaal); }
.dagboek time { display: block; font-size: var(--maat-s); color: var(--plan); font-weight: 500; margin-bottom: 4px; }
.dagboek h3 { font-size: var(--maat-l); font-weight: 700; margin-bottom: 8px; }
.dagboek p { color: var(--tekst-zacht); max-width: 60ch; }
.dagboek p + p { margin-top: 10px; }
.dagboek img { margin-top: 14px; max-width: 100%; border-radius: 12px; border: 1px solid var(--lijn-sterk); }

/* Vragen */
.vragen details { border-top: 1px solid var(--lijn-sterk); }
.vragen details:last-child { border-bottom: 1px solid var(--lijn-sterk); }
.vragen summary {
  list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative;
  font-weight: 700; font-size: var(--maat-l); line-height: 1.3;
}
.vragen summary::-webkit-details-marker { display: none; }
.vragen summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 12px; height: 12px; margin-top: -9px;
  border-right: 2px solid var(--signaal); border-bottom: 2px solid var(--signaal);
  transform: rotate(45deg); transition: transform .2s, margin-top .2s;
}
.vragen details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.vragen .antwoord { padding: 0 0 24px; color: var(--tekst-zacht); max-width: 62ch; }

/* Voet */
.voet { border-top: 1px solid var(--lijn); padding: 32px 0; font-size: var(--maat-s); color: var(--tekst-zacht); background: rgba(6, 12, 30, .6); }
.voet__rij { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; }
.voet__rij .woordmerk { color: var(--tekst); margin-right: auto; }
.voet a { text-decoration-thickness: 1px; text-underline-offset: 3px; }
.voet a:hover { color: var(--tekst); }

@media (prefers-reduced-motion: reduce) {
  .cursor { animation: none; }
  .scene { transition: none; }
  * { scroll-behavior: auto !important; }
}
