/* HoopLab, website v1.0
   Productpagina: één idee per scherm, witte en lichtgrijze vlakken afgewisseld met zwarte podia.
   Systeemlettertype van het toestel, grote strakke koppen, korte zinnen. Eén accent: court-oranje. */

:root {
  --bg: #ffffff;
  --alt: #f5f5f7;
  --stage: #000000;
  --stage-2: #161617;
  --ink: #1d1d1f;
  --ink-2: #424245;
  --muted: #6e6e73;
  --rule: #d2d2d7;
  --rule-soft: #e8e8ed;
  --on-stage: #f5f5f7;
  --on-stage-muted: #a1a1a6;
  --accent: #c2410c;          /* links en accent op licht (5,2:1 op wit) */
  --accent-bright: #ff7a2f;   /* accent op zwart */
  --accent-wash: #fdeee4;
  --ok: #1f7a3a;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --page: 980px;
  --wide: 1180px;
  --measure: 40rem;
  --gutter: 22px;
  --nav-h: 48px;
  --radius: 22px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 60px); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.47 var(--font); letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
::selection { background: #ffd8bf; color: var(--ink); }
.stage ::selection { background: #7a3a12; color: #fff; }
img, svg, video { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.stage :focus-visible { outline-color: var(--accent-bright); }
p { margin: 0 0 1em; }
strong, b { font-weight: 600; }
sup.ref { font-size: .62em; line-height: 0; margin-left: 1px; }
sup.ref a { font-weight: 500; }

/* ---------- Globale navigatie ---------- */
.gnav {
  position: sticky; top: 0; z-index: 50; height: var(--nav-h);
  background: rgba(250, 250, 252, .8);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, .08);
}
.gnav .in { max-width: var(--page); height: 100%; margin: 0 auto; padding: 0 var(--gutter); display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 600; font-size: 17px; letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; }
.brand img { width: 22px; height: 22px; }
.gnav nav { display: flex; gap: 26px; margin-left: auto; align-items: center; }
.gnav nav a { color: var(--ink-2); font-size: 13px; letter-spacing: -0.01em; }
.gnav nav a:hover { color: var(--ink); text-decoration: none; }
.gnav nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.gnav .lang {
  font-size: 12px; font-weight: 600; color: var(--ink); border: 1px solid var(--rule);
  border-radius: 980px; padding: 3px 10px;
}
.gnav .lang:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- Secties ---------- */
.band { padding: 120px var(--gutter); }
.band.tight { padding-top: 88px; padding-bottom: 88px; }
.band.alt { background: var(--alt); }
.stage { background: var(--stage); color: var(--on-stage); }
.stage a { color: var(--accent-bright); }
.wrap { max-width: var(--page); margin: 0 auto; }
.wrap.wide { max-width: var(--wide); }
.center { text-align: center; }
.center .lede { margin-left: auto; margin-right: auto; }

.display {
  font-size: clamp(36px, 7.2vw, 88px); line-height: 1.04; font-weight: 700; hyphens: manual;
  letter-spacing: -0.035em; margin: 0 0 20px; text-wrap: balance;
}
.headline {
  font-size: clamp(34px, 5vw, 56px); line-height: 1.07; font-weight: 700;
  letter-spacing: -0.03em; margin: 0 0 18px; text-wrap: balance;
}
.title { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.15; font-weight: 700; letter-spacing: -0.025em; margin: 0 0 12px; text-wrap: balance; }
.lede { font-size: clamp(19px, 2vw, 24px); line-height: 1.35; font-weight: 500; letter-spacing: -0.02em; color: var(--muted); max-width: 38rem; margin: 0 0 28px; text-wrap: pretty; }
.stage .lede { color: var(--on-stage-muted); }
.lede strong { color: var(--ink); font-weight: 600; }
.stage .lede strong { color: var(--on-stage); }
.body { max-width: var(--measure); color: var(--ink-2); }
.stage .body { color: var(--on-stage-muted); }
.muted { color: var(--muted); }
.stage .muted { color: var(--on-stage-muted); }
.small { font-size: 14px; line-height: 1.43; letter-spacing: -0.016em; }

/* Linkjes met pijl, zoals een productpagina */
.links { display: flex; flex-wrap: wrap; gap: 14px 34px; align-items: center; }
.center .links { justify-content: center; }
.more { display: inline-flex; align-items: center; gap: 4px; font-size: 19px; font-weight: 500; letter-spacing: -0.02em; }
.more svg { width: 9px; height: 14px; transition: transform .3s var(--ease); }
.more:hover svg { transform: translateX(3px); }
.pill {
  display: inline-flex; align-items: center; gap: 8px; background: var(--accent); color: #fff;
  font-size: 17px; font-weight: 500; padding: 11px 22px; border-radius: 980px;
}
.pill:hover { text-decoration: none; background: #a8380a; }
.stage .pill { background: var(--accent-bright); color: #1a0a00; }
.stage .pill:hover { background: #ff9152; }

/* Status: gewoon zeggen hoe ver het bewezen is */
.status { color: var(--muted); margin: 0 0 56px; }
.stage .status { color: var(--on-stage-muted); }
.phead .status { margin: 0 0 22px; }
.src { font-size: 14px; color: var(--muted); white-space: nowrap; }
.src.open { color: var(--accent); font-weight: 600; }

/* ---------- Toestelkader (getekend, geen productfoto) ---------- */
.device {
  position: relative; width: 300px; aspect-ratio: 640 / 1391; flex: none;
  border-radius: 50px; padding: 11px; background: #1c1c1e;
  box-shadow: inset 0 0 0 1.5px #3a3a3c, inset 0 0 0 4px #0b0b0c, 0 30px 60px -20px rgba(0, 0, 0, .45), 0 12px 24px -12px rgba(0, 0, 0, .3);
}
.device img { width: 100%; height: 100%; object-fit: cover; border-radius: 40px; background: #f2f2f7; }
.device::after { /* camera-eiland */
  content: ""; position: absolute; top: 21px; left: 50%; width: 30%; height: 22px; transform: translateX(-50%);
  background: #000; border-radius: 20px;
}

/* ---------- Live toestel: echte app-schermen over hun volle lengte, zelf te scrollen ---------- */
.device.live { overflow: hidden; } /* aspect-ratio mag niet meegroeien met de inhoud */
.device.live .screen {
  container-type: inline-size; position: relative; width: 100%; height: 100%; border-radius: 40px; overflow: hidden; background: #f2f2f7;
  -webkit-mask-image: -webkit-radial-gradient(white, black); /* afgeronde hoeken ook tijdens scrollen in Safari */
}
.device.live .scroll {
  height: 100%; overflow-y: auto; overscroll-behavior: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  outline: none;
}
.device.live .scroll::-webkit-scrollbar { display: none; }
.device.live .page { position: relative; container-type: inline-size; padding-bottom: 19%; }
.device.live .page img { width: 100%; height: auto; border-radius: 0; object-fit: initial; background: none; }
.device.live .clip {
  position: absolute; left: 3.98cqw; width: 92.04cqw; top: 37.65cqw; height: 69cqw; object-fit: cover;
  border-radius: 6.4cqw 6.4cqw 0 0; background: #f5f5f5;
}
.device.live .sbar, .device.app .sbar {
  position: absolute; inset: 0 0 auto; height: 13.5%; max-height: 54px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 8.5% 1.2cqw 11.5%; font: 600 4.3cqw/1 var(--font); letter-spacing: -0.01em; color: #000; pointer-events: none;
  background: linear-gradient(#f2f2f7 62%, rgba(242, 242, 247, 0));
}
.device.live .sbar svg, .device.app .sbar svg { height: 3.4cqw; width: auto; }
.device.live .tabbar {
  position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: auto; border-radius: 0; object-fit: initial; pointer-events: none;
  -webkit-mask-image: linear-gradient(transparent, #000 22%); mask-image: linear-gradient(transparent, #000 22%);
}
.device.live .scroll:focus-visible { box-shadow: inset 0 0 0 3px var(--accent); }
.shot .device.live .screen { border-radius: 37px; }
.hint { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.hint svg { width: 12px; height: 16px; }
.stage .hint { color: var(--on-stage-muted); }

/* ---------- Belastingsregels ---------- */
.rules { margin-top: 56px; border-top: 1px solid #2c2c2e; }
.rules .row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px; padding: 24px 0; border-bottom: 1px solid #2c2c2e; }
.rules .if { font-size: 21px; font-weight: 700; letter-spacing: -0.022em; color: var(--on-stage); }
.rules .if span { display: block; font-size: 14px; font-weight: 400; color: var(--on-stage-muted); margin-top: 3px; letter-spacing: -0.01em; }
.rules .then { color: var(--on-stage-muted); padding-top: 3px; }
.rules .then b { color: var(--on-stage); }
.aside { max-width: var(--measure); margin: 40px 0 0; color: var(--on-stage-muted); font-size: 15px; }
.band:not(.stage) .aside { color: var(--muted); }

/* ---------- Hero ---------- */
.hero { padding: 96px var(--gutter) 0; overflow: hidden; }
.hero .display { max-width: 15ch; margin-left: auto; margin-right: auto; }
.hero .lede { max-width: 34rem; }
.hero .links { margin-bottom: 18px; }
.duo { display: flex; justify-content: center; align-items: flex-start; gap: 0; height: auto; padding: 8px 0 96px; position: relative; }
.duo .device { width: 330px; }
.duo .device:first-child { transform: translate(28px, 40px) rotate(-4deg); z-index: 1; }
.duo .device:last-child { transform: translate(-28px, 0) rotate(3deg); z-index: 2; }
.duo .tag { position: absolute; bottom: 70px; font-size: 14px; font-weight: 600; color: var(--on-stage-muted); }
.hero.light .duo .tag { color: var(--muted); }

/* ---------- Film ---------- */
.film { margin: 56px auto 0; max-width: var(--wide); }
.film video { width: 100%; height: auto; border-radius: var(--radius); background: #111; }
.film figcaption { margin-top: 16px; font-size: 14px; color: var(--on-stage-muted); text-align: center; }

/* ---------- Drie uitspraken ---------- */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; margin-top: 64px; }
.trio h3 { font-size: 24px; line-height: 1.17; font-weight: 700; letter-spacing: -0.025em; margin: 0 0 10px; }
.trio p { color: var(--ink-2); margin: 0; }
.closing { font-size: clamp(21px, 2.2vw, 28px); line-height: 1.3; font-weight: 600; letter-spacing: -0.022em; max-width: 44rem; margin: 72px 0 0; text-wrap: balance; }

/* ---------- Galerij speler / coach ---------- */
.seg { display: inline-flex; background: #e8e8ed; border-radius: 980px; padding: 3px; margin: 8px 0 0; }
.seg button {
  font: 500 15px/1 var(--font); letter-spacing: -0.01em; border: 0; background: transparent; color: var(--ink);
  padding: 10px 22px; border-radius: 980px; cursor: pointer; transition: background .25s var(--ease), box-shadow .25s var(--ease);
}
.seg button[aria-selected="true"] { background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .12); font-weight: 600; }
.gallery {
  display: flex; gap: 40px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 56px max(var(--gutter), calc((100vw - var(--wide)) / 2)) 28px;
  margin: 0 calc(-1 * var(--gutter)); scrollbar-width: none;
}
.gallery::-webkit-scrollbar { display: none; }
.gallery[hidden] { display: none; }
.shot { scroll-snap-align: center; flex: none; width: 280px; }
.shot .device { width: 280px; border-radius: 46px; padding: 10px; }
.shot .device img { border-radius: 37px; }
.shot .device::after { top: 19px; height: 20px; }
.shot h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; margin: 26px 0 4px; }
.shot p { font-size: 15px; line-height: 1.4; color: var(--muted); margin: 0; }
.gallery-foot { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.arrows { display: flex; gap: 12px; }
.arrows button {
  width: 40px; height: 40px; border-radius: 50%; border: 0; background: #e8e8ed; color: var(--ink); cursor: pointer;
  display: grid; place-items: center; transition: background .2s;
}
.arrows button:hover { background: #d2d2d7; }
.arrows button svg { width: 9px; height: 15px; }

/* ---------- Testbatterij (zwart podium) ---------- */
.battery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 64px; background: #2c2c2e; border-radius: var(--radius); overflow: hidden; }
.battery section { background: var(--stage-2); padding: 30px 30px 32px; }
.battery h3 { font-size: 14px; font-weight: 600; color: var(--accent-bright); margin: 0 0 14px; letter-spacing: 0; }
.battery ul { list-style: none; margin: 0; padding: 0; }
.battery li { padding: 10px 0; border-top: 1px solid #2c2c2e; }
.battery li:first-child { border-top: 0; padding-top: 0; }
.battery li b { display: block; color: var(--on-stage); font-size: 19px; letter-spacing: -0.02em; }
.battery li span { display: block; color: var(--on-stage-muted); font-size: 14px; line-height: 1.4; margin-top: 2px; }

/* ---------- Uitgangspunten ---------- */
.principles { list-style: none; margin: 56px 0 0; padding: 0; border-top: 1px solid var(--rule); }
.principles li { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px; padding: 28px 0; border-bottom: 1px solid var(--rule); }
.principles b { font-size: 24px; line-height: 1.2; letter-spacing: -0.025em; font-weight: 700; }
.principles span { color: var(--ink-2); padding-top: 4px; }
.principles.numbered { counter-reset: s; }
.principles.numbered b::before { counter-increment: s; content: counter(s) ". "; color: var(--accent); }

/* ---------- Stand van de metingen ---------- */
.ledger { margin-top: 56px; border-top: 1px solid var(--rule); }
.ledger .row { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) auto; gap: 24px; align-items: center; padding: 24px 0; border-bottom: 1px solid var(--rule); }
.ledger .what { font-size: 21px; font-weight: 700; letter-spacing: -0.022em; }
.ledger .what span { display: block; font-size: 14px; font-weight: 400; color: var(--muted); letter-spacing: -0.01em; margin-top: 2px; }
.ledger .res { font-size: 17px; color: var(--ink-2); }
.ledger .res b { font-size: 28px; letter-spacing: -0.03em; color: var(--ink); font-variant-numeric: tabular-nums; margin-right: 6px; }

/* ---------- Volgende pagina ---------- */
.next { display: block; text-align: center; padding: 96px var(--gutter); background: var(--alt); color: var(--ink); }
.next:hover { text-decoration: none; }
.next small { display: block; font-size: 14px; color: var(--muted); margin-bottom: 10px; }
.next strong { font-size: clamp(28px, 4vw, 44px); letter-spacing: -0.03em; font-weight: 700; display: inline-flex; align-items: center; gap: 12px; }
.next strong svg { width: 14px; height: 24px; color: var(--accent); transition: transform .3s var(--ease); }
.next:hover strong svg { transform: translateX(6px); }

/* ---------- Lokale navigatie (Meetmethode, Validatie) ---------- */
.lnav {
  position: sticky; top: var(--nav-h); z-index: 40; height: 52px;
  background: rgba(255, 255, 255, .78); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, .08);
}
.lnav .in { max-width: var(--page); height: 100%; margin: 0 auto; padding: 0 var(--gutter); display: flex; align-items: center; gap: 24px; }
.lnav .name { font-size: 21px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); flex: none; }
.lnav nav { margin-left: auto; display: flex; gap: 22px; overflow-x: auto; scrollbar-width: none; white-space: nowrap; }
.lnav nav::-webkit-scrollbar { display: none; }
.lnav nav a { font-size: 13px; color: var(--ink-2); }
.lnav nav a:hover { color: var(--accent); text-decoration: none; }

/* ---------- Artikelsecties ---------- */
.chapter { padding: 112px var(--gutter); }
.chapter.alt { background: var(--alt); }
.chapter .wrap > .headline { max-width: 18ch; }
.formula {
  margin: 48px 0; padding: 40px; border-radius: var(--radius); background: var(--alt); text-align: center;
}
.chapter.alt .formula { background: #fff; }
.formula .f { font-size: clamp(36px, 5vw, 60px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
.formula .f var { font-style: italic; font-weight: 500; }
.formula p { margin: 14px auto 0; color: var(--muted); max-width: 34rem; font-size: 15px; }
.formula p b { color: var(--ink); }

.panel { background: #fff; border-radius: var(--radius); padding: 32px; margin: 48px 0; }
.chapter:not(.alt) .panel { background: var(--alt); }
.panel figcaption { font-size: 14px; color: var(--muted); margin-top: 18px; max-width: 46rem; line-height: 1.45; }
.panel figcaption b { color: var(--ink); }
.panel.narrow { max-width: 560px; }

.cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 48px; }
.cols.two { grid-template-columns: repeat(2, 1fr); }
.cols h3 { font-size: 21px; line-height: 1.2; font-weight: 700; letter-spacing: -0.022em; margin: 0 0 8px; }
.cols p { color: var(--ink-2); margin: 0; font-size: 16px; }

.list { margin: 28px 0 0; padding: 0; list-style: none; max-width: var(--measure); }
.list li { position: relative; padding: 14px 0 14px 30px; border-top: 1px solid var(--rule); color: var(--ink-2); }
.list li:last-child { border-bottom: 1px solid var(--rule); }
.list li::before { content: ""; position: absolute; left: 4px; top: 24px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.list.no li::before { background: transparent; border: 1.5px solid #8e8e93; }
.list b { color: var(--ink); }

/* Tabellen */
.table { margin: 40px 0 0; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 16px; font-variant-numeric: tabular-nums; }
caption { caption-side: bottom; text-align: left; font-size: 14px; color: var(--muted); padding-top: 16px; line-height: 1.45; }
th { text-align: left; font-size: 13px; font-weight: 600; color: var(--muted); padding: 0 16px 12px 0; border-bottom: 1px solid var(--rule); letter-spacing: -0.005em; }
td { padding: 16px 16px 16px 0; border-bottom: 1px solid var(--rule-soft); vertical-align: top; color: var(--ink-2); }
td:first-child { color: var(--ink); font-weight: 600; }
td.num, th.num { text-align: right; }

/* Grafieken (SVG) */
.chart { width: 100%; height: auto; }
.chart text { font: 400 13px/1 var(--font); fill: var(--muted); letter-spacing: 0; }
.chart .lbl-ink { fill: var(--ink); font-weight: 600; }
.chart .lbl-acc { fill: var(--accent); font-weight: 600; }

/* Bronnen */
.refs { margin: 40px 0 0; padding-left: 1.6em; color: var(--ink-2); font-size: 15px; line-height: 1.5; max-width: 52rem; }
.refs li { padding: 8px 0 8px 6px; }
.refs li::marker { color: var(--muted); font-variant-numeric: tabular-nums; }

/* Paginakop voor Meetmethode en Validatie */
.phead { padding: 104px var(--gutter) 96px; text-align: center; }
.phead .display { max-width: 14ch; margin-left: auto; margin-right: auto; }
.phead .lede { margin: 0 auto 26px; }

/* ---------- Voet ---------- */
.foot { background: var(--alt); color: var(--muted); font-size: 12px; line-height: 1.5; padding: 22px var(--gutter) 34px; letter-spacing: -0.01em; }
.foot .in { max-width: var(--page); margin: 0 auto; }
.foot .note { padding-bottom: 16px; border-bottom: 1px solid var(--rule); margin: 0 0 16px; }
.foot .row { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: space-between; }
.foot nav { display: flex; gap: 18px; flex-wrap: wrap; }
.foot a { color: var(--ink-2); }

/* ---------- Beweging: één moment, inhoud is standaard zichtbaar ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .duo .device { transition: transform 1.4s var(--ease), opacity 1s var(--ease); }
  .js .duo:not(.in) .device:first-child { transform: translate(90px, 120px) rotate(0deg); opacity: 0; }
  .js .duo:not(.in) .device:last-child { transform: translate(-90px, 120px) rotate(0deg); opacity: 0; }
}

/* ---------- Kleiner scherm ---------- */
@media (max-width: 1068px) {
  .battery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 734px) {
  :root { --gutter: 16px; --radius: 18px; }
  body { font-size: 16px; }
  .gnav .in { gap: 16px; }
  .gnav nav { gap: 16px; }
  .gnav nav a { font-size: 12px; }
  .band { padding: 80px var(--gutter); }
  .band.tight { padding: 64px var(--gutter); }
  .hero { padding-top: 64px; }
  .duo { padding-bottom: 64px; }
  .duo .device { width: 220px; border-radius: 36px; padding: 8px; }
  .duo .device img, .duo .device.live .screen { border-radius: 29px; }
  .duo .device::after { top: 15px; height: 15px; }
  .duo .device:first-child { transform: translate(18px, 30px) rotate(-4deg); }
  .duo .device:last-child { transform: translate(-18px, 0) rotate(3deg); }
  .trio, .cols, .cols.two { grid-template-columns: 1fr; gap: 32px; }
  .battery { grid-template-columns: 1fr; }
  .principles li { grid-template-columns: 1fr; gap: 8px; }
  .ledger .row { grid-template-columns: 1fr; gap: 8px; }
  .shot, .shot .device { width: 230px; }
  .shot .device.live .screen { border-radius: 30px; }
  .rules .row { grid-template-columns: 1fr; gap: 6px; }
  .gallery { gap: 24px; padding-top: 40px; }
  .chapter { padding: 80px var(--gutter); }
  .phead { padding: 72px var(--gutter) 64px; }
  .panel { padding: 20px; margin: 36px calc(-1 * var(--gutter) + 8px); }
  .panel .chart.wide-chart { min-width: 600px; }
  .panel:has(.wide-chart) { overflow-x: auto; }
  .formula { padding: 28px 18px; }
  .lnav .name { font-size: 17px; }
  .lnav nav { gap: 16px; }
  td, th { padding-right: 12px; }
  table.stack thead { display: none; }
  table.stack tr { display: block; padding: 14px 0; border-bottom: 1px solid var(--rule-soft); }
  table.stack td { display: block; border: 0; padding: 2px 0; }
  table.stack td[data-label]::before { content: attr(data-label); display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin-top: 8px; }
  table.stack td:first-child::before { display: none; }
}
@media (max-width: 420px) {
  .duo { padding-bottom: 48px; }
  .duo .device { width: 180px; border-radius: 30px; padding: 7px; }
  .duo .device img, .duo .device.live .screen { border-radius: 24px; }
  .duo .device::after { top: 13px; height: 12px; }
  .duo .device:first-child { transform: translate(14px, 26px) rotate(-4deg); }
  .duo .device:last-child { transform: translate(-14px, 0) rotate(3deg); }
}
@media (max-width: 400px) {
  .brand span { display: none; }
  .gnav nav { gap: 12px; }
  .gnav nav a { font-size: 11.5px; }
}
@media (max-width: 340px) {
  .duo .device { width: 148px; border-radius: 26px; padding: 6px; }
  .duo .device img, .duo .device.live .screen { border-radius: 21px; }
  .duo .device::after { top: 11px; height: 10px; }
  .duo .device:first-child { transform: translate(10px, 20px) rotate(-4deg); }
  .duo .device:last-child { transform: translate(-10px, 0) rotate(3deg); }
}

/* ---------- Werkende demo: één iPhone met echte schermen, tikzones en navigatie ---------- */
.demo { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 72px; align-items: center; margin-top: 8px; }
.demo-copy .seg { margin: 4px 0 32px; }
.demo-now { min-height: 132px; padding: 22px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.demo-now small { display: block; font-size: 13px; font-weight: 600; color: var(--accent); margin-bottom: 6px; }
.demo-now h3 { font-size: 28px; line-height: 1.15; font-weight: 700; letter-spacing: -0.025em; margin: 0 0 8px; }
.demo-now p { color: var(--ink-2); margin: 0; max-width: 30rem; }
.demo-try { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 10px; }
.demo-try button {
  display: inline-flex; align-items: center; gap: 10px; font: 500 17px/1.3 var(--font); letter-spacing: -0.02em; text-align: left;
  color: var(--accent); background: none; border: 0; padding: 4px 0; cursor: pointer;
}
.demo-try button svg { width: 9px; height: 14px; flex: none; transition: transform .3s var(--ease); }
.demo-try button:hover svg { transform: translateX(3px); }
.demo-try button:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.demo-phone { display: grid; justify-items: center; gap: 18px; }
.demo-phone .device { width: 340px; }
.device.app .screen { container-type: inline-size; position: relative; width: 100%; height: 100%; border-radius: 40px; overflow: hidden; background: #f2f2f7; -webkit-mask-image: -webkit-radial-gradient(white, black); }
.device.app { overflow: hidden; }
.view { position: absolute; inset: 0; background: #f2f2f7; transition: transform .5s cubic-bezier(.32, .72, 0, 1), opacity .3s ease, filter .5s ease; }
.view.enter-right { transform: translateX(100%); }
.view.leave-left { transform: translateX(-28%); filter: brightness(.92); }
.view.fade { opacity: 0; }
.view .scroll { height: 100%; overflow-y: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.view .scroll::-webkit-scrollbar { display: none; }
.view .page { position: relative; container-type: inline-size; padding-bottom: 21cqw; }
.view .page > img { display: block; width: 100%; height: auto; }
.view .clip { position: absolute; left: 3.98cqw; width: 92.04cqw; top: 37.65cqw; height: 69cqw; object-fit: cover; border-radius: 6.4cqw 6.4cqw 0 0; background: #f5f5f5; }
.view .tabbar { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: auto; pointer-events: none;
  -webkit-mask-image: linear-gradient(transparent, #000 22%); mask-image: linear-gradient(transparent, #000 22%); }
.hot { position: absolute; border: 0; padding: 0; margin: 0; background: transparent; border-radius: 3.2cqw; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.hot:hover { background: rgba(232, 89, 12, .07); box-shadow: inset 0 0 0 2px rgba(232, 89, 12, .5); }
.hot:focus-visible { outline: none; box-shadow: inset 0 0 0 3px var(--accent); }
.hot.back { border-radius: 50%; }
.tabhits { position: absolute; left: 4%; right: 4%; bottom: 0; height: 18cqw; display: flex; }
.tabhits button { flex: 1; border: 0; background: transparent; cursor: pointer; border-radius: 6cqw; -webkit-tap-highlight-color: transparent; }
.tabhits button:focus-visible { outline: none; box-shadow: inset 0 0 0 3px var(--accent); }
@media (prefers-reduced-motion: no-preference) {
  .hot.hint { animation: hotpulse 1.5s ease-out 2; }
  @keyframes hotpulse { 0% { box-shadow: inset 0 0 0 0 rgba(232, 89, 12, 0); } 35% { box-shadow: inset 0 0 0 3px rgba(232, 89, 12, .85); background: rgba(232, 89, 12, .08); } 100% { box-shadow: inset 0 0 0 3px rgba(232, 89, 12, 0); } }
}
@media (prefers-reduced-motion: reduce) { .view { transition: none; } }
.device.still .scroll { overflow: hidden; }
@media (max-width: 1068px) {
  .demo { grid-template-columns: 1fr; gap: 40px; }
  .demo-phone { order: -1; }
  .demo-now { min-height: 0; }
}
@media (max-width: 420px) {
  .demo-phone .device { width: min(300px, 84vw); border-radius: 42px; padding: 9px; }
  .device.app .screen { border-radius: 34px; }
}

/* ---------- Publieke pagina en toegangspagina (interne delen) ---------- */
.public-hero { padding-bottom: 120px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.gate-body { background: var(--stage); color: var(--on-stage); min-height: 100vh; margin: 0; }
.gate { min-height: 100vh; display: grid; place-items: center; padding: 32px var(--gutter); }
.gate-card { width: min(420px, 100%); display: grid; gap: 14px; justify-items: center; text-align: center; }
.gate-card img { width: 48px; height: 48px; margin-bottom: 6px; }
.gate-card h1 { font-size: clamp(28px, 6vw, 40px); line-height: 1.1; font-weight: 700; letter-spacing: -0.03em; margin: 0; }
.gate-card p { color: var(--on-stage-muted); margin: 0 0 8px; }
.gate-card input {
  width: 100%; font: 400 17px/1.3 var(--font); padding: 14px 16px; border-radius: 12px; border: 1px solid #3a3a3c;
  background: #1c1c1e; color: var(--on-stage); outline: none; text-align: center; letter-spacing: 0;
}
.gate-card input::placeholder { color: #8e8e93; }
.gate-card input:focus { border-color: var(--accent-bright); box-shadow: 0 0 0 3px rgba(255, 122, 47, .25); }
.gate-card .pill { width: 100%; justify-content: center; border: 0; cursor: pointer; font: 600 17px/1 var(--font); padding: 15px 22px; background: var(--accent-bright); color: #1a0a00; }
.gate-card .pill:hover { background: #ff9152; }
.gate-card .pill:disabled { opacity: .6; cursor: progress; }
.gate-msg { min-height: 1.4em; font-size: 15px; margin: 0; color: var(--on-stage-muted); }
.gate-msg.bad { color: #ff6b6b; }
.gate-back { font-size: 15px; color: var(--accent-bright); }
