/* Aankondiging: de openbare pagina /nieuw en het verhaal "Wat is nieuw" (web/templates/_announce.html, app/announce.py).
   Alleen de V2-tokens uit style.css, dus licht en donker volgen vanzelf. De enige beweging: de cijfers van de aftelklok en de kaartwissel,
   allebei uit bij prefers-reduced-motion. */

/* ---------- Tekeningen (gedeeld) ---------- */
.wn-art-svg { display: block; width: 100%; height: auto; }
.wn-art-svg .a-tick line, .wn-art-svg line.a-tick { stroke: var(--tx2); stroke-width: 2; stroke-linecap: round; opacity: .55; }
.wn-art-svg .a-zone { fill: var(--actint); }
.wn-art-svg .a-zone-edge { stroke: var(--ac); stroke-width: 2; }
.wn-art-svg .a-bar, .wn-art-svg .a-dot-ac { fill: var(--ac); }
.wn-art-svg .a-price { stroke: var(--tx); stroke-width: 2.5; stroke-linecap: round; }
.wn-art-svg .a-price-dot { fill: var(--tx); }
.wn-art-svg .a-ring { fill: none; stroke: var(--tx2); stroke-width: 2; opacity: .5; }
.wn-art-svg .a-ring-in { opacity: .3; }
.wn-art-svg .a-dot { fill: var(--tx2); opacity: .35; }
.wn-art-svg .a-label { fill: var(--tx2); font: 500 15px var(--mono); }
.wn-art-svg .a-chip { fill: none; stroke: var(--tx2); stroke-width: 1.5; opacity: .5; }
.wn-art-svg .a-chip-ac { fill: var(--actint); stroke: var(--ac); stroke-width: 2; }
.wn-art-svg .a-check { fill: none; stroke: var(--aci); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.wn-art-svg .a-node { fill: var(--tx2); opacity: .6; }
.wn-art-svg .a-node-skip { fill: var(--bg); stroke: var(--tx2); stroke-width: 2; stroke-dasharray: 3 3; }
.wn-art-svg .a-line { fill: var(--tx2); opacity: .25; }
.wn-art-svg .a-frame { fill: none; stroke: var(--border-strong); stroke-width: 2; }

/* ---------- /nieuw ---------- */
.nw-body { margin: 0; background: var(--bg); color: var(--tx); font-family: var(--sans); -webkit-text-size-adjust: 100%; }
.nw {
  box-sizing: border-box; max-width: 560px; margin: 0 auto; min-height: 100vh; min-height: 100dvh;
  padding: max(20px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(32px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  display: flex; flex-direction: column;
}
.nw-brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; align-self: flex-start; color: var(--tx); text-decoration: none; font-weight: 600; font-size: 17px; }
.nw-brand:focus-visible, .nw-cta:focus-visible { outline: 2px solid var(--ac); outline-offset: 3px; border-radius: 8px; }
.nw-eyebrow { margin: 40px 0 12px; font: 500 13px/1.4 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--tx2); }
.nw-h1 { margin: 0; font-weight: 600; letter-spacing: -.03em; line-height: 1.02; text-wrap: balance; }
.nw-peil { display: block; font-size: clamp(56px, 17vw, 104px); letter-spacing: -.05em; line-height: .95; }
.nw-sub { display: block; margin-top: 10px; font-size: clamp(26px, 7.4vw, 38px); }
.nw-lead { margin: 16px 0 0; font-size: 17px; line-height: 1.5; color: var(--tx2); max-width: 34ch; text-wrap: pretty; }

/* De aftelklok: vier vensters met rollende cijfers, als een tellerwerk. Tabulaire mono, zodat niets verspringt. */
.nw-clock {
  margin: 32px 0 0; display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--s1); border: 1px solid var(--bd); border-radius: 18px; overflow: hidden;
}
.nw-unit { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px 2px 14px; min-width: 0; }
.nw-unit + .nw-unit { border-left: 1px solid var(--bd); }
.nw-digits {
  display: inline-flex; font: 600 clamp(34px, 11vw, 56px)/1 var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -.02em; color: var(--tx);
}
.nw-unit:last-child .nw-digits { color: var(--aci); }
.nw-dg { display: inline-block; height: 1em; overflow: hidden; }
.nw-strip { display: flex; flex-direction: column; transition: transform .5s cubic-bezier(.2, .8, .2, 1); will-change: transform; }
.nw-strip > span { height: 1em; line-height: 1; text-align: center; }
.nw-label { font: 500 12px/1 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--tx2); }

.nw-promises { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 0; }
.nw-promises li {
  display: flex; align-items: baseline; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--bd); font-size: 17px; line-height: 1.4;
}
.nw-promises li::before { content: ""; flex: none; width: 10px; height: 2px; background: var(--ac); transform: translateY(-4px); }

.nw-cta {
  display: flex; align-items: center; justify-content: center; min-height: 52px; margin-top: 28px; padding: 0 24px; border-radius: 14px;
  background: var(--ac); color: var(--onac); font-weight: 600; font-size: 17px; text-decoration: none;
}
.nw-cta:active { filter: brightness(.94); }
.nw-list { list-style: none; margin: 32px 0 0; padding: 0; }
.nw-item { display: grid; grid-template-columns: 88px 1fr; gap: 16px; align-items: center; padding: 18px 0; border-top: 1px solid var(--bd); }
.nw-item-art { background: var(--s1); border: 1px solid var(--bd); border-radius: 14px; padding: 8px; }
.nw-item h2 { margin: 0 0 4px; font-family: var(--sans); text-transform: none; color: var(--tx); font-size: 18px; font-weight: 600; letter-spacing: -.01em; line-height: 1.25; }
.nw-item p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--tx2); }
.nw-foot { margin: auto 0 0; padding-top: 40px; font-size: 12px; line-height: 1.5; color: var(--tx2); }

/* ---------- Verhaal "Wat is nieuw" ---------- */
html.wn-lock, html.wn-lock body { overflow: hidden; }
.wn-story { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: stretch; justify-content: center; background: var(--bg); }
.wn-story[hidden] { display: none; }
.wn-panel {
  box-sizing: border-box; width: 100%; max-width: 480px; display: flex; flex-direction: column;
  padding: max(12px, env(safe-area-inset-top)) 0 max(16px, env(safe-area-inset-bottom));
}
.wn-top { display: flex; align-items: center; justify-content: space-between; padding: 0 16px; }
.wn-eyebrow { margin: 0; font: 500 13px/1 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--tx2); }
.wn-skip {
  min-height: 44px; min-width: 44px; padding: 0 12px; margin-right: -12px; border: 0; background: none; color: var(--tx2);
  font: 500 15px var(--sans); cursor: pointer; border-radius: 10px;
}
.wn-track {
  flex: 1; display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain;
  scroll-behavior: smooth; outline: none;
}
.wn-track::-webkit-scrollbar { display: none; }
.wn-card {
  flex: 0 0 100%; box-sizing: border-box; scroll-snap-align: center; scroll-snap-stop: always;
  display: flex; flex-direction: column; justify-content: center; padding: 16px 24px;
}
.wn-art { background: var(--s1); border: 1px solid var(--bd); border-radius: 20px; padding: 20px 16px; margin-bottom: 28px; }
.wn-title { margin: 0 0 10px; font-family: var(--sans); text-transform: none; color: var(--tx); font-size: clamp(26px, 7.5vw, 32px); font-weight: 600; letter-spacing: -.025em; line-height: 1.1; text-wrap: balance; }
.wn-text { margin: 0; font-size: 17px; line-height: 1.5; color: var(--tx2); text-wrap: pretty; }
.wn-dots { display: flex; justify-content: center; padding: 4px 0; }
.wn-dot { width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: none; padding: 0; cursor: pointer; border-radius: 50%; }
.wn-dot i { width: 8px; height: 8px; border-radius: 4px; background: var(--tx2); opacity: .45; transition: width .25s ease, opacity .25s ease, background-color .25s ease; }
.wn-dot[aria-current="step"] i { width: 22px; opacity: 1; background: var(--ac); }
.wn-next {
  margin: 8px 16px 0; min-height: 52px; border: 0; border-radius: 14px; background: var(--ac); color: var(--onac);
  font: 600 17px var(--sans); cursor: pointer;
}
/* De globale button:hover en :focus-visible van style.css kleuren een knop met --accent (in licht donkerteal onder donkere tekst). */
.wn-next:hover, .wn-next:focus-visible { background: var(--ac); border-color: var(--ac); color: var(--onac); box-shadow: none; }
.wn-skip:hover, .wn-skip:focus-visible, .wn-dot:hover, .wn-dot:focus-visible { background: none; box-shadow: none; }
.wn-skip:hover { color: var(--tx); }
.wn-next:active { filter: brightness(.94); }
.wn-skip:focus-visible, .wn-dot:focus-visible, .wn-next:focus-visible { outline: 2px solid var(--ac); outline-offset: 2px; }

@media (min-width: 640px) {
  .wn-story { align-items: center; background: rgba(0, 0, 0, .55); }
  .wn-panel { height: min(760px, calc(100vh - 48px)); background: var(--bg); border: 1px solid var(--bd); border-radius: 24px; box-shadow: var(--shadow-md); }
}

@media (prefers-reduced-motion: reduce) {
  .nw-strip, .wn-dot i { transition: none; }
  .wn-track { scroll-behavior: auto; }
}
