/* "Zo werkt het" op de pagina AI (js/demos.js), in het ontwerp Nacht. Na nacht.css en pagina-nacht.css.
   De werkbon, de review en de post zijn rechte vlakken met een dunne lijn, zonder schaduw.
   Hier staan de enige echte knoppen van de site (naast de cookie-strook): recht, met 1 px rand. */
.werkbank, .werkt { --display: "Ronzino", sans-serif; --inkt-zacht: var(--grijs); --zacht: cubic-bezier(.2, .7, .2, 1); }
.ai__prijs { color: var(--inkt); }
.ai__lijst > li h3 { font-size: clamp(22px, 2vw, 30px); letter-spacing: -.025em; grid-column: 1 / span 5; }
.ai__lijst > li p { grid-column: 7 / span 6; }
.tag { font-family: "Fragment Mono", monospace; font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--grijs); }
.werkbank { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 48px; align-items: start; margin-top: 0; }
.svg-bron { position: absolute; width: 0; height: 0; overflow: hidden; }
.keuzes { display: grid; }
.keuze { position: relative; display: grid; gap: 10px; justify-items: start; width: 100%; margin: 0; padding: 24px 6px 26px 0; border: 0; border-top: 1px solid var(--lijn); background: none; color: var(--inkt); font: inherit; text-align: left; cursor: pointer; }
.keuze:last-child { border-bottom: 1px solid var(--lijn); }
.keuze .tag { margin: 0; }
.keuze__naam { display: flex; align-items: center; gap: 12px; font-family: var(--display); font-size: 30px; line-height: 1.05; letter-spacing: -0.015em; color: var(--inkt-zacht); transition: color .3s var(--zacht); }
.keuze__naam::before { content: ""; flex: none; width: 0; height: 1px; background: currentColor; transition: width .5s var(--zacht); }
.keuze:hover .keuze__naam, .keuze[aria-selected="true"] .keuze__naam { color: var(--inkt); }
.keuze[aria-selected="true"] .keuze__naam::before { width: 32px; }
.keuze__zin { max-width: 30em; font-size: 15.5px; line-height: 1.45; color: var(--inkt-zacht); }
.keuze:focus-visible { outline-offset: -2px; }

.podium { --vak: var(--vlak); --vak-uit: #191a1f; }
.demo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; border: 1px solid var(--lijn); }
.demo[hidden] { display: none; }
.vak { display: flex; flex-direction: column; gap: 18px; min-width: 0; padding: 26px 26px 28px; background: var(--vak); }
.vak--uit { background: var(--vak-uit); border-left: 1px solid var(--lijn); }
.vak__kop { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 24px; font-size: 14px; color: var(--inkt-zacht); }
.vak__kop strong { color: var(--inkt); font-weight: 500; }
.stand { display: inline-flex; align-items: center; justify-content: flex-end; gap: 8px; min-width: 0; text-align: right; }
.stand::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--lijn); transition: background-color .3s; }
[data-stand="bezig"] .stand::before { background: var(--inkt); animation: knipper 1s steps(1) infinite; }
[data-stand="klaar"] .stand::before, [data-stand="goed"] .stand::before { background: var(--blauw); }
[data-stand="klaar"] .stand, [data-stand="goed"] .stand { color: var(--inkt); }

/* knoppen in de voorbeelden: dezelfde onderstreepte woorden als op de rest van de site */
.knop { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; margin: 0; padding: 0 0 3px; border: 0; border-bottom: 1px solid currentColor; border-radius: 0; background: none; color: var(--inkt); font-family: var(--display); font-size: 22px; line-height: 1.1; letter-spacing: -0.01em; white-space: nowrap; cursor: pointer; transition: border-bottom-width .2s var(--zacht), opacity .3s; }
.knop:hover { border-bottom-width: 2px; padding-bottom: 2px; }
.knop__rol > span + span { display: none; }
.knop[disabled] { opacity: .35; cursor: default; }
.knop[disabled]:hover { border-bottom-width: 1px; padding-bottom: 3px; }
.knop__ico { flex: none; width: 12px; height: 12px; fill: currentColor; }
.knop--donker { color: var(--inkt); }
.typt::after { content: ""; display: inline-block; width: 2px; height: 1.05em; margin-left: 2px; vertical-align: -.16em; background: currentColor; animation: knipper 1s steps(1) infinite; }
@keyframes knipper { 50% { opacity: 0; } }

.memo { display: grid; gap: 16px; padding: 16px; border: 1px solid var(--lijn); background: var(--vak-uit); }
.memo__rij { display: flex; align-items: center; gap: 16px; }
.golf { flex: 1 1 auto; display: flex; align-items: center; gap: 3px; height: 46px; min-width: 0; }
.golf i { flex: 1 1 0; min-width: 1px; height: var(--h); border-radius: 1px; background: color-mix(in srgb, var(--inkt) 24%, transparent); transition: background-color .15s; }
.golf i.af { background: var(--inkt); }
.memo__onder { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--inkt-zacht); font-variant-numeric: tabular-nums; }
.uitgeschreven { min-height: 9.5em; font-size: 18px; line-height: 1.5; text-wrap: pretty; }
.uitgeschreven:empty::before { content: attr(data-leeg); color: var(--inkt-zacht); }

.papier { position: relative; display: grid; gap: 14px; padding: 22px 22px 20px; background: var(--vlak); color: var(--inkt); border: 1px solid var(--lijn); }
.papier__kop { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--inkt); }
.papier__titel { font-family: var(--display); font-size: 34px; line-height: .95; letter-spacing: -0.02em; }
.papier__klein { font-size: 13.5px; color: var(--grijs); }
.bon { display: grid; margin: 0; }
.bon > div { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--lijn); }
.bon dt { font-size: 13.5px; color: var(--grijs); padding-top: 2px; }
.bon dd { min-height: 1.5em; margin: 0; font-size: 16px; font-weight: 500; line-height: 1.5; white-space: pre-line; }
.bon dd:empty::before, .antwoord__tekst:empty::before { content: ""; display: block; width: var(--w, 62%); height: 11px; margin-top: 7px; border-radius: 1px; background: rgba(230, 227, 220, .12); }
.bon dd.twee:empty::before { box-shadow: 0 22px 0 rgba(230, 227, 220, .12); margin-bottom: 22px; }
.papier__voet { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; padding-top: 4px; }
.papier__voet p { flex: 1 1 160px; font-size: 14px; line-height: 1.4; color: var(--grijs); }
.papier__voet--los p { color: var(--inkt-zacht); }

.review { display: grid; gap: 12px; padding: 18px 18px 20px; border: 1px solid var(--lijn); background: var(--vak-uit); }
.review__kop { display: flex; align-items: center; gap: 12px; }
.review__wie { display: grid; gap: 2px; }
.review__wie b { font-weight: 500; font-size: 16px; }
.review__wie span { font-size: 13.5px; color: var(--inkt-zacht); }
.avatar { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: #2a2c33; color: var(--inkt); font-family: var(--display); font-size: 20px; }
.sterren { display: flex; align-items: center; gap: 3px; }
.sterren svg { width: 17px; height: 17px; }
.review p { font-size: 16.5px; line-height: 1.5; }
.reactie { display: none; margin-top: 4px; padding: 12px 14px; border-left: 1px solid var(--inkt); font-size: 14.5px; line-height: 1.45; color: var(--inkt-zacht); }
.reactie b { display: block; margin-bottom: 2px; color: var(--inkt); font-weight: 500; }
[data-stand="goed"] .reactie { display: block; }
.toon { display: grid; gap: 10px; }
.toon > span { font-size: 14px; color: var(--inkt-zacht); }
.toon__knoppen { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--lijn); }
.toon__knop { min-height: 48px; margin: 0; border: 0; background: none; color: var(--inkt-zacht); font-family: var(--display); font-size: 20px; cursor: pointer; transition: background-color .3s var(--zacht), color .3s; }
.toon__knop + .toon__knop { border-left: 1px solid var(--lijn); }
.toon__knop:hover { color: var(--inkt); }
.toon__knop[aria-pressed="true"] { background: var(--inkt); color: var(--papier); }
.toon__knop:focus-visible { outline-offset: -4px; }
.antwoord__tekst { min-height: 13.5em; font-size: 16px; line-height: 1.55; white-space: pre-line; }
.antwoord__tekst:empty { --w: 88%; }
.antwoord__tekst:empty::before { box-shadow: 0 25px 0 rgba(230, 227, 220, .12), 0 50px 0 rgba(230, 227, 220, .12), 0 75px 0 rgba(230, 227, 220, .12); }

.foto { position: relative; aspect-ratio: 4 / 5; max-height: 380px; overflow: hidden; background: var(--vak-uit); }
.foto svg { display: block; width: 100%; height: 100%; }
.fotokeus { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.fotokeus__knop { display: flex; align-items: center; gap: 12px; min-height: 56px; margin: 0; padding: 6px 12px 6px 6px; border: 1px solid var(--lijn); background: none; color: var(--inkt-zacht); font-family: var(--display); font-size: 20px; text-align: left; cursor: pointer; transition: border-color .3s, color .3s; }
.fotokeus__knop svg { flex: none; width: 36px; height: 44px; }
.fotokeus__knop:hover { color: var(--inkt); }
.fotokeus__knop[aria-pressed="true"] { border-color: var(--inkt); color: var(--inkt); }
.posttel { align-self: center; width: min(280px, 100%); border: 1px solid var(--lijn); }
.post { overflow: hidden; background: var(--vlak); color: var(--inkt); }
.post__kop { display: flex; align-items: center; gap: 9px; padding: 22px 14px 10px; }
.post__avatar { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #2a2c33; color: var(--inkt); font-family: var(--display); font-size: 16px; }
.post__wie { display: grid; line-height: 1.2; }
.post__wie b { font-size: 13.5px; font-weight: 500; }
.post__wie span { font-size: 12px; color: var(--grijs); }
.post__foto { position: relative; aspect-ratio: 1; background: #191a1f; overflow: hidden; }
.post__foto svg { display: block; width: 100%; height: 100%; opacity: 0; transform: scale(1.06); transition: opacity .6s var(--zacht), transform 1.1s var(--zacht); }
.post__foto.staat svg { opacity: 1; transform: none; }
.post__acties { display: flex; gap: 12px; padding: 10px 14px 0; }
.post__acties i { width: 20px; height: 20px; border: 1.6px solid var(--inkt); border-radius: 50%; }
.post__acties i:nth-child(3) { border-radius: 3px; }
.post__tekst { min-height: 8.6em; padding: 10px 14px 0; font-size: 13.5px; line-height: 1.45; }
.post__tekst:empty::before { content: ""; display: block; height: 9px; width: 92%; margin-top: 5px; border-radius: 1px; background: rgba(230, 227, 220, .12); box-shadow: 0 19px 0 rgba(230, 227, 220, .12), 0 38px 0 rgba(230, 227, 220, .12); }
.post__tags { display: flex; flex-wrap: wrap; gap: 4px 6px; min-height: 3.4em; padding: 8px 14px 22px; font-size: 13px; font-weight: 500; color: var(--blauw); }
.post__tags span { opacity: 0; transform: translateY(6px); transition: opacity .4s var(--zacht), transform .5s var(--zacht); }
.post__tags span.staat { opacity: 1; transform: none; }

/* knoppen: recht, 1 px rand, geen pil */
.knop { padding: 0 16px; border: 1px solid currentColor; font-size: 18px; }
.knop:hover, .knop[disabled]:hover { border-width: 1px; padding: 0 16px; }
.knop:hover { background: var(--inkt); color: var(--papier); }
.knop[disabled]:hover { background: none; color: inherit; }
.keuze__naam { font-size: 26px; letter-spacing: -.03em; }
.toon__knop, .fotokeus__knop { font-size: 18px; }

@media (max-width: 1100px) {
  .werkbank { grid-template-columns: 1fr; }
  .keuzes { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 20px; }
  .keuze, .keuze:last-child { border-bottom: 1px solid var(--lijn); }
}
@media (max-width: 760px) {
  .ai__lijst > li h3, .ai__lijst > li p { grid-column: 1; }
  .werkbank { margin-top: 0; gap: 28px; }
  .keuzes { grid-template-columns: 1fr; }
  .keuze, .keuze:last-child { gap: 8px; padding: 16px 0; border-bottom: 0; }
  .keuze:last-child { border-bottom: 1px solid var(--lijn); }
  .keuze__naam { font-size: 23px; }
  .keuze__zin { display: none; }
  .demo { grid-template-columns: 1fr; }
  .vak--uit { border-left: 0; border-top: 1px solid var(--lijn); }
  .vak { padding: 20px 16px 22px; }
  .memo { padding: 14px; }
  .memo__rij { gap: 12px; }
}
/* smalste telefoons: de geluidsgolf past binnen het vak */
.memo, .memo > *, .vak > * { min-width: 0; }
@media (max-width: 360px) { .golf { gap: 1px; overflow: hidden; } .memo__rij { gap: 10px; } }
