/* Hallmark · pre-emit critique: P4 H5 E4 S5 R4 V4 · homepage (index.html + en/index.html)
 * Hallmark · genre: modern-minimal · macrostructure: Product Tour, our order (split head over the app on a brand stage →
 * dark statement → time-stamped pinned tour → outcomes ledger → in/out flow → pilot planning chart → founders call)
 * theme: custom (site tokens) · nav: N5 floating pill (shared) · footer: Ft5 (shared)
 * 2026-10-22 · studied: yes · DNA-source: spott.io (public reference), then pulled back toward our own system after the first
 * pass read as a copy. Kept from Spott: a product frame you can switch between screens (here through the app's own sidebar,
 * not a tab pill) and a pinned tour that swaps the screen as the copy scrolls. Everything else is ours: the split head,
 * the lavender/mint stage, the dark act, the site-visit timestamps, the ledger, the planning chart, the founders call.
 * Layers on top of home.css. Tokens live in /tokens.css (the flow line and the app's surfaces are under "homepage product tour").
 */

/* ============ Hero: split head (headline left, intro right), then the app on a tinted stage ============ */
.sp-hero { padding-top: calc(var(--nav-height) + var(--space-3xl)); }
.sh-head { display: grid; gap: var(--space-lg); align-items: end; }
.sh-head .display { font-weight: 650; }
/* the job-site slogan: second half in violet, as on the booth wall and the shirt; the Dutch line is longer, so one size down */
.sh-slogan > span:last-child { color: var(--color-accent); }
html[lang="nl"] .sh-slogan { font-size: var(--text-display-s); }
.sh-side .lede { max-width: 30rem; }
.sh-side .hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-xs) var(--space-lg); margin-top: var(--space-lg); }
.sh-proof { display: flex; flex-wrap: wrap; gap: var(--space-sm) var(--space-xl); margin-top: var(--space-xl); padding-top: var(--space-md); border-top: var(--rule-hair) solid var(--color-rule); }
.sh-proof dt { font-size: var(--text-md); font-weight: 600; letter-spacing: var(--track-head); }
.sh-proof dd { margin: 0; max-width: 14rem; color: var(--color-ink-2); font-size: var(--text-xs); }
@media (min-width: 60rem) { .sh-head { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: var(--space-2xl); } }

.sh-stage {
  position: relative; isolation: isolate; margin-top: var(--space-2xl);
  padding: var(--space-2xl) var(--space-md) 0;
  border-radius: var(--radius-frame);
  background: linear-gradient(135deg, var(--color-stage-a), var(--color-stage-b));
  overflow: hidden;
}
.sh-stage::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: url("../img/plan-lines.svg") center / cover no-repeat;
  opacity: 0.5;
}
@media (min-width: 52rem) { .sh-stage { padding: var(--space-3xl) var(--space-2xl) 0; } }

/* ---------- The app, as it ships (recreated in HTML from the app's own screens: SidebarNav, ProjectHeader,
 * Overzicht, Punchlists, Variations, ProjectTimeline). The sidebar is the real navigation, and it plays itself:
 * the active item fills like a progress bar and moves on, until the visitor clicks. ---------- */
.ap-hint {
  display: inline-flex; align-items: center; gap: var(--space-xs); margin-bottom: var(--space-md);
  padding: var(--space-2xs) var(--space-sm) var(--space-2xs) var(--space-2xs);
  border-radius: var(--radius-pill); background: var(--color-card); box-shadow: 0 8px 24px -14px var(--color-shadow-2);
  font-size: var(--text-xs); color: var(--color-ink); max-width: 100%;
}
.ap-hint i { flex: none; }
.ap-hint i { display: grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--ui-violet); color: var(--color-card); }
.ap-hint svg { width: 0.85rem; height: 0.85rem; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.motion .ap-hint i { animation: ap-nudge 1.6s var(--ease-in-out) infinite; }
@keyframes ap-nudge { 50% { transform: translate(-2px, -2px); } }
.ap-hint b { font-weight: 600; }
.ap-hint { transition: opacity var(--dur-long) var(--ease-out); }
.ap-hint.is-gone { opacity: 0; }

.ap {
  display: grid; grid-template-columns: minmax(0, 1fr);
  background: var(--app-shell); color: var(--ui-text);
  border: var(--rule-hair) solid var(--ui-line-soft); border-bottom: 0;
  border-radius: var(--radius-card) var(--radius-card) 0 0;
  box-shadow: 0 50px 90px -50px var(--color-shadow-2);
  font-size: 0.8125rem; line-height: 1.4; letter-spacing: 0; text-align: left;
  overflow: hidden;
}
.ap svg.i { width: 1rem; height: 1rem; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Sidebar (phones: a strip of the four views) */
.ap-side { display: flex; gap: var(--space-2xs); padding: var(--space-xs); overflow-x: auto; scrollbar-width: none; border-bottom: var(--rule-hair) solid var(--ui-line-row); background: var(--app-shell); }
.ap-only-wide { display: none; }
.ap-tab {
  position: relative; display: flex; align-items: center; gap: var(--space-sm); flex: none; min-height: 40px;
  padding: 0 var(--space-sm); border: 0; border-radius: 0.75rem; overflow: hidden;
  background: none; color: var(--ui-text); font: inherit; font-weight: 500; text-align: left; white-space: nowrap; cursor: pointer;
  transition: background-color var(--dur-short) var(--ease-out);
}
.ap-ico { display: grid; place-items: center; width: 1.75rem; height: 1.75rem; flex: none; border-radius: 0.5rem; }
.ap-ico svg.i { width: 0.95rem; height: 0.95rem; }
.ap-ico-home { background: var(--app-violet-tint); color: var(--ui-violet); }
.ap-ico-punch { background: var(--color-tag-taak); color: var(--color-tag-taak-ink); }
.ap-ico-mw { background: var(--ui-mw-tint); color: var(--ui-mw-ink); }
.ap-ico-act, .ap-ico-ctx { background: var(--ui-fill-soft); color: var(--ui-text-2); }
.ap-meta { margin-left: auto; padding-left: var(--space-sm); color: var(--ui-text-3); font-size: 0.75rem; font-weight: 400; }
.ap-tab[aria-selected="true"] { background: var(--app-sel); }
@media (hover: hover) and (pointer: fine) {
  .ap-tab:hover { background: var(--app-sel); }
  .ap-tab:not([aria-selected="true"]):hover .ap-ico { transform: scale(1.08); }
}
.ap-ico { transition: transform var(--dur-short) var(--ease-out); }
.ap-tab:focus-visible { outline-offset: -2px; }
/* the autoplay progress: a violet line filling along the bottom of the active item */
.ap-tab::after {
  content: ""; position: absolute; left: var(--space-sm); right: var(--space-sm); bottom: 3px; height: 2px; border-radius: var(--radius-pill);
  background: var(--ui-violet); transform: scaleX(0); transform-origin: left; opacity: 0;
}
.motion .ap.is-auto .ap-tab[aria-selected="true"]::after { opacity: 1; animation: ap-fill var(--ap-dwell, 6s) linear forwards; }
.motion .ap.is-auto.is-held .ap-tab[aria-selected="true"]::after { animation-play-state: paused; }
@keyframes ap-fill { to { transform: scaleX(1); } }

@media (min-width: 52rem) {
  .ap { grid-template-columns: 13.5rem minmax(0, 1fr); }
  .ap-side { flex-direction: column; gap: var(--space-3xs); overflow: visible; padding: var(--space-md) var(--space-sm); border-bottom: 0; border-right: var(--rule-hair) solid var(--ui-line-row); }
  .ap-only-wide { display: flex; }
  .ap-tab { padding: 0 var(--space-xs); }
}
.ap-logo { padding: var(--space-2xs) var(--space-xs) var(--space-md); }
.ap-logo svg { width: 6.5rem; height: auto; }
.ap-row { align-items: center; gap: var(--space-sm); min-height: 36px; padding: 0 var(--space-xs); color: var(--ui-text); font-weight: 500; }
.ap-row .ap-ico { background: var(--ui-ink); color: var(--color-card); border-radius: 50%; }
.ap-back { align-items: center; gap: var(--space-xs); min-height: 32px; padding: 0 var(--space-xs); color: var(--ui-text-2); }
.ap-proj { align-items: center; gap: var(--space-sm); margin: var(--space-xs) 0 var(--space-sm); padding: var(--space-xs); }
.ap-av { display: grid; place-items: center; width: 2rem; height: 2rem; flex: none; border-radius: 0.6rem; background: var(--color-card); box-shadow: inset 0 0 0 var(--rule-hair) var(--ui-line); color: var(--ui-ink); font-size: 0.6875rem; font-weight: 700; }
.ap-proj b { display: block; color: var(--ui-ink); font-weight: 600; }
.ap-proj span { color: var(--ui-text-3); font-size: 0.75rem; }

/* Main column */
.ap-main { min-width: 0; height: 36rem; overflow: hidden; padding: var(--space-lg) var(--space-md); background: var(--app-shell);
  -webkit-mask-image: linear-gradient(#000 calc(100% - 3rem), transparent); mask-image: linear-gradient(#000 calc(100% - 3rem), transparent); }
@media (min-width: 52rem) { .ap-main { padding: var(--space-lg) var(--space-xl); } }
.ap-view[hidden] { display: none; }
.ap-view { animation: pf-in var(--dur-long) var(--ease-out); }
@keyframes pf-in { from { opacity: 0; transform: translateY(8px); } }

.ap-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-xs) var(--space-md); align-items: start; }
.ap-head > :not(.ap-go) { grid-column: 1; }
.ap-crumb { color: var(--ui-text-3); font-size: 0.75rem; }
.ap-crumb b { color: var(--ui-ink); font-weight: 500; }
.ap-title { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-xs); margin-top: var(--space-2xs); color: var(--ui-ink); font-size: 1.375rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.ap-chip { display: inline-flex; align-items: center; padding: 0.1rem 0.55rem; border-radius: var(--radius-pill); background: var(--app-violet-tint); color: var(--ui-violet); font-size: 0.6875rem; font-weight: 600; letter-spacing: 0; }
.ap-sub { grid-column: 1; margin-top: var(--space-2xs); color: var(--ui-text-2); font-size: 0.75rem; }
.ap-go { grid-column: 2; grid-row: 1 / span 3; align-self: center; display: inline-flex; align-items: center; gap: var(--space-xs); padding: 0.55rem 0.6rem 0.55rem 0.9rem; border-radius: var(--radius-pill); background: var(--ui-violet); color: var(--color-card); font-weight: 500; white-space: nowrap; box-shadow: 0 10px 24px -10px var(--ui-violet-glow); }
.ap-go em { display: grid; place-items: center; width: 1.25rem; height: 1.25rem; border-radius: 50%; background: var(--ui-on-violet-fill); font-style: normal; font-size: 0.6875rem; }
@media (max-width: 40rem) { .ap-go { display: none; } }

/* Overzicht: the header sits on the lavender → mint wash */
.ap-hero { margin: calc(-1 * var(--space-lg)) calc(-1 * var(--space-md)) 0; padding: var(--space-lg) var(--space-md) var(--space-lg); border-radius: 0 0 var(--radius-card) var(--radius-card); background: linear-gradient(120deg, var(--app-wash-a), var(--app-wash-b)); }
@media (min-width: 52rem) { .ap-hero { margin-inline: calc(-1 * var(--space-xl)) ; padding-inline: var(--space-xl); } }
.ap-urgent { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 var(--space-lg); margin-top: var(--space-md); padding: var(--space-xs) var(--space-md); border-radius: var(--radius-card); background: var(--color-card); box-shadow: var(--ui-shadow-card); }
.ap-urgent > p { padding-top: var(--space-sm); color: var(--ui-amber-ink); font-weight: 600; }
.ap-urgent ul > li { display: flex; align-items: center; gap: var(--space-sm); padding-block: var(--space-sm); border-bottom: var(--rule-hair) solid var(--ui-line-row); }
.ap-urgent ul > li:last-child { border-bottom: 0; }
.ap-urgent span:nth-child(2) { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ui-ink); }
.ap-urgent em { margin-left: auto; color: var(--ui-violet); font-style: normal; font-weight: 500; white-space: nowrap; }
@media (min-width: 40rem) { .ap-urgent { grid-template-columns: auto minmax(0, 1fr); } }
.ap-due { flex: none; padding: 0.1rem 0.5rem; border-radius: 0.4rem; font-size: 0.6875rem; font-weight: 600; white-space: nowrap; }
.ap-due-late { background: var(--ui-amber-tint); color: var(--ui-amber-ink); }
.ap-due-soon { background: var(--ui-party-tint); color: var(--ui-party-ink); }

.ap-pair { display: grid; gap: var(--space-md); margin-top: var(--space-lg); }
@media (min-width: 60rem) { .ap-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ap-box { padding: var(--space-2xs); border-radius: 1.25rem; background: var(--app-panel); }
.ap-box-head { display: flex; align-items: center; gap: var(--space-sm); padding: var(--space-xs) var(--space-xs) var(--space-sm); color: var(--ui-ink); font-size: 0.9375rem; font-weight: 600; }
/* links inside the screens jump to the matching view, like the app does */
.ap-link {
  display: inline-flex; align-items: center; gap: var(--space-3xs); margin-left: auto; min-height: 30px; padding: 0 var(--space-sm);
  border: 0; border-radius: var(--radius-pill); background: var(--color-card); box-shadow: var(--ui-shadow-card);
  color: var(--ui-ink); font: inherit; font-size: 0.75rem; font-weight: 500; cursor: pointer;
  transition: transform var(--dur-short) var(--ease-out), box-shadow var(--dur-short) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) { .ap-link:hover { transform: translateY(-1px); box-shadow: 0 0 0 2px var(--ui-violet-line), var(--ui-shadow-card); } }
.ap-link:active { transform: scale(0.97); }
.ap-card { padding: var(--space-md); border-radius: 1rem; background: var(--color-card); box-shadow: var(--ui-shadow-card); }
.ap-big { color: var(--ui-ink); font-size: 1.75rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.ap-big + p { margin-top: var(--space-2xs); color: var(--ui-text-2); font-size: 0.75rem; }
.ap-bar { display: flex; gap: 3px; margin-top: var(--space-md); }
.ap-bar i { height: 5px; border-radius: var(--radius-pill); background: var(--app-bar-1); }
.ap-bar i:nth-child(2) { background: var(--app-bar-2); }
.ap-bar i:nth-child(3) { background: var(--ui-amber); }
.ap-bar i:nth-child(4) { background: var(--ui-ok); }
.ap-legend { display: flex; flex-wrap: wrap; gap: var(--space-2xs) var(--space-sm); margin-top: var(--space-xs); color: var(--ui-text-2); font-size: 0.6875rem; }
.ap-legend .warn { color: var(--ui-amber-ink); font-weight: 600; }
.ap-legend .ok { color: var(--ui-ok); font-weight: 600; }
.ap-lines { margin-top: var(--space-sm); }
.ap-lines li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 var(--space-md); align-items: center; padding-block: var(--space-xs); border-top: var(--rule-hair) solid var(--ui-line-row); }
.ap-lines b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ui-ink); font-weight: 600; }
.ap-lines small { grid-column: 1; color: var(--ui-text-3); font-size: 0.6875rem; }
.ap-lines small.warn { color: var(--ui-amber-ink); }
.ap-lines span { grid-row: 1 / span 2; grid-column: 2; color: var(--ui-ink); font-weight: 600; white-space: nowrap; }
.ap-lines span.mute { color: var(--ui-text-3); font-weight: 500; }
.ap-lines span.done { color: var(--ui-ok); font-size: 0.6875rem; font-weight: 500; }
.ap-tags { display: flex; flex-wrap: wrap; gap: var(--space-2xs); margin-top: var(--space-sm); }
.ap-tag { padding: 0.15rem 0.55rem; border-radius: var(--radius-pill); background: var(--ui-fill-soft); color: var(--ui-text-2); font-size: 0.6875rem; font-weight: 500; white-space: nowrap; }
.ap-tag.ok { background: var(--ui-ok-tint); color: var(--ui-ok); }

/* Section header inside a project (Punchlists, Meerwerken) */
.ap-sec { display: flex; align-items: center; gap: var(--space-sm); margin-top: var(--space-lg); }
.ap-sec b { display: block; color: var(--ui-ink); font-size: 0.9375rem; font-weight: 600; }
.ap-sec span { color: var(--ui-text-3); font-size: 0.75rem; }
.ap-plus { margin-left: auto; display: inline-flex; align-items: center; gap: var(--space-2xs); padding: 0.4rem 0.75rem; border-radius: var(--radius-pill); background: var(--color-card); box-shadow: var(--ui-shadow-card); color: var(--ui-ink); font-weight: 500; white-space: nowrap; }

/* Meerwerken: three totals + the board */
.ap-totals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-sm); margin-top: var(--space-md); }
.ap-total { padding: var(--space-sm) var(--space-md); border-radius: 1rem; background: var(--color-card); box-shadow: var(--ui-shadow-card); }
.ap-total p { color: var(--ui-text-3); font-size: 0.625rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.ap-total b { display: block; margin-top: var(--space-3xs); color: var(--ui-ink); font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em; white-space: nowrap; }
.ap-total b.warn { color: var(--ui-amber-ink); }
.ap-total b.ok { color: var(--ui-ok); }
.ap-total span { color: var(--ui-text-2); font-size: 0.6875rem; }
.ap-board {
  display: grid; grid-template-columns: repeat(4, minmax(10.5rem, 1fr)); gap: var(--space-md); margin-top: var(--space-lg);
  overflow-x: auto; scrollbar-width: none; padding-right: var(--space-2xl);
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 3rem), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 3rem), transparent);
}
.ap-col-h { display: flex; align-items: center; gap: var(--space-xs); padding-bottom: var(--space-xs); border-bottom: var(--rule-hair) solid var(--ui-line); color: var(--ui-ink); font-weight: 600; white-space: nowrap; }
.ap-col-h i { padding: 0 0.4rem; border-radius: 0.4rem; background: var(--ui-fill-soft); color: var(--ui-text-2); font-size: 0.6875rem; font-style: normal; }
.ap-col-h em { margin-left: auto; font-style: normal; }
.ap-col-h .ok { color: var(--ui-ok); }
.ap-mw { margin-top: var(--space-sm); padding: var(--space-sm); border-radius: 0.875rem; background: var(--color-card); box-shadow: var(--ui-shadow-card); }
.ap-mw b { display: block; color: var(--ui-ink); font-weight: 600; line-height: 1.3; }
.ap-mw .amt { margin-top: var(--space-2xs); color: var(--ui-ink); font-size: 1rem; font-weight: 700; }
.ap-mw .mute { margin-top: var(--space-2xs); color: var(--ui-text-2); font-size: 0.75rem; }
.ap-mw ul { margin-top: var(--space-xs); color: var(--ui-text-2); font-size: 0.6875rem; }
.ap-mw li { display: flex; gap: var(--space-2xs); align-items: baseline; }
.ap-mw li + li { margin-top: var(--space-3xs); }
.ap-mw li svg.i { width: 0.75rem; height: 0.75rem; transform: translateY(0.1em); }
.ap-mw li.ok { color: var(--ui-ok); font-weight: 500; }
.ap-mw li.warn { color: var(--ui-amber-ink); }
.ap-act { display: block; margin-top: var(--space-sm); padding: 0.45rem; border-radius: 0.6rem; background: var(--app-violet-soft); box-shadow: inset 0 0 0 var(--rule-hair) var(--ui-violet-line); color: var(--ui-ink); font-weight: 600; text-align: center; }

/* Punchlists: party list + one party's to-dos */
.ap-split { display: grid; gap: var(--space-md); margin-top: var(--space-md); }
@media (min-width: 60rem) { .ap-split { grid-template-columns: 15rem minmax(0, 1fr); } }
.ap-parties { padding: var(--space-xs); border-radius: 1.25rem; background: var(--app-panel); }
.ap-filters { display: flex; flex-wrap: wrap; gap: var(--space-2xs); }
.ap-f { padding: 0.2rem 0.6rem; border-radius: var(--radius-pill); background: var(--color-card); box-shadow: inset 0 0 0 var(--rule-hair) var(--ui-line); color: var(--ui-ink); font-size: 0.75rem; font-weight: 500; white-space: nowrap; }
.ap-f.is-on { box-shadow: inset 0 0 0 1.5px var(--ui-ink); }
.ap-f i { color: var(--ui-text-3); font-style: normal; }
.ap-party { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; margin-top: var(--space-2xs); padding: var(--space-xs) var(--space-sm); border-radius: 0.75rem; }
.ap-party.is-on { background: var(--color-card); box-shadow: var(--ui-shadow-card); }
.ap-party b { color: var(--ui-ink); font-weight: 600; }
.ap-party small { grid-column: 1; color: var(--ui-text-3); font-size: 0.6875rem; }
.ap-party span { grid-row: 1 / span 2; grid-column: 2; display: grid; place-items: center; min-width: 1.4rem; height: 1.4rem; border-radius: 50%; background: var(--ui-fill-soft); color: var(--ui-ink); font-size: 0.6875rem; font-weight: 700; }
.ap-party.is-on span { background: var(--ui-ink); color: var(--color-card); }
.ap-todos { padding: var(--space-md); border-radius: 1.25rem; background: var(--color-card); box-shadow: var(--ui-shadow-card); }
.ap-todos h4 { margin: 0; color: var(--ui-ink); font-size: 1.125rem; font-weight: 700; letter-spacing: -0.02em; }
.ap-todos h4 + p { margin-top: var(--space-2xs); color: var(--ui-text-2); font-size: 0.75rem; }
.ap-todos .ap-filters { margin-top: var(--space-sm); }
.ap-todo { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--space-2xs) var(--space-sm); margin-top: var(--space-xs); padding: var(--space-xs) var(--space-sm); border-radius: 0.75rem; box-shadow: inset 0 0 0 var(--rule-hair) var(--ui-line-row); }
.ap-todo .box { grid-row: 1 / span 2; width: 1rem; height: 1rem; border: 1.5px solid var(--ui-line); border-radius: 0.25rem; }
.ap-todo b { color: var(--ui-ink); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ap-todo small { grid-column: 2; display: flex; gap: var(--space-sm); color: var(--ui-text-3); font-size: 0.6875rem; }
.ap-todo .st { grid-row: 1 / span 2; grid-column: 3; padding: 0.1rem 0.5rem; border-radius: var(--radius-pill); box-shadow: inset 0 0 0 var(--rule-hair) var(--ui-line); color: var(--ui-ink); font-size: 0.6875rem; font-weight: 600; }
.ap-todo .st.done { box-shadow: none; background: var(--ui-ok-tint); color: var(--ui-ok); }

/* Activiteit: four counts + the feed */
.ap-week { margin-top: var(--space-md); padding: var(--space-xs); border-radius: 1.25rem; background: var(--app-panel); }
.ap-week > p { padding: var(--space-2xs) var(--space-xs) var(--space-xs); color: var(--ui-ink); font-weight: 600; }
.ap-counts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-xs); }
@media (min-width: 60rem) { .ap-counts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ap-count { padding: var(--space-sm); border-radius: 0.875rem; background: var(--color-card); }
.ap-count p { display: flex; align-items: center; gap: var(--space-xs); color: var(--ui-text-2); font-weight: 500; }
.ap-count p .ap-ico { width: 1.4rem; height: 1.4rem; }
.ap-count b { display: block; margin-top: var(--space-xs); color: var(--ui-ink); font-size: 1.375rem; font-weight: 700; letter-spacing: -0.02em; }
.ap-count span { color: var(--ui-text-3); font-size: 0.6875rem; }
.ap-count span.ok { color: var(--ui-ok); font-weight: 500; }
.ap-day { margin-top: var(--space-md); color: var(--ui-text-2); font-weight: 500; }
.ap-feed { margin-top: var(--space-xs); border-radius: 1rem; background: var(--color-card); box-shadow: var(--ui-shadow-card); }
.ap-feed li { display: grid; grid-template-columns: 2.75rem auto minmax(0, 1fr); gap: var(--space-2xs) var(--space-sm); padding: var(--space-sm) var(--space-md); border-bottom: var(--rule-hair) solid var(--ui-line-row); }
.ap-feed li:last-child { border-bottom: 0; }
.ap-feed time { padding-top: 0.35rem; color: var(--ui-text-3); font-size: 0.75rem; }
.ap-feed .ap-ico { border-radius: 50%; background: var(--ui-fill-soft); color: var(--ui-text-2); }
.ap-feed small { display: block; color: var(--ui-text-2); font-size: 0.6875rem; font-weight: 500; }
.ap-feed b { color: var(--ui-ink); font-weight: 600; }
.ap-feed p { grid-column: 3; color: var(--ui-text-2); font-size: 0.75rem; }
.ap-feed .ap-tag { margin-right: var(--space-2xs); }

.sh-foot { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--space-xs) var(--space-lg); margin-top: var(--space-sm); color: var(--color-ink-2); }
.sp-hero .hs-tools { margin-top: var(--space-3xl); }

/* ============ The dark act: one statement, the second half underlined once it's in view ============ */
.sp-dark { background: var(--color-night); color: var(--color-night-ink); padding-block: var(--space-4xl); }
.sd-text { max-width: 20ch; font-size: var(--text-display-s); font-weight: 650; line-height: 1.06; letter-spacing: var(--track-display); text-wrap: balance; overflow-wrap: anywhere; }
.sd-text span { color: var(--color-night-ink-2); }
.sd-mark { position: relative; }
.sd-mark::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -0.04em; height: 0.08em; border-radius: var(--radius-pill);
  background: var(--color-accent-night); transform-origin: left;
}
.js.motion .sd-mark::after { transform: scaleX(0); transition: transform 1.1s var(--ease-out) 0.3s; }
.js.motion .sp-dark.is-in .sd-mark::after { transform: none; }
.sd-sub { display: grid; gap: var(--space-lg); margin-top: var(--space-2xl); color: var(--color-night-ink-2); }
.sd-sub p { max-width: 24rem; }
.sd-sub b { display: block; color: var(--color-night-ink); font-size: var(--text-md); font-weight: 600; letter-spacing: var(--track-head); }
@media (min-width: 52rem) { .sd-sub { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ============ The tour: copy scrolls left, keyed to the clock; the screen stays pinned right ============ */
.tour { padding-block: var(--space-4xl) var(--space-3xl); }
.tour-head .h2 { max-width: 16ch; }
.tour-head .lede { margin-top: var(--space-md); }
.tour-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-2xl); margin-top: var(--space-2xl); }
.tour-step { display: grid; gap: var(--space-lg); }
.tour-time { display: flex; align-items: baseline; gap: var(--space-sm); }
.tour-time time { color: var(--color-ink); font-size: var(--text-xl); font-weight: 650; letter-spacing: var(--track-display); font-variant-numeric: tabular-nums; }
.tour-time span { color: var(--color-ink-2); font-size: var(--text-xs); }
.tour-copy h3 { margin-top: var(--space-xs); font-size: var(--text-lg); font-weight: 600; line-height: 1.15; letter-spacing: var(--track-head); text-wrap: balance; }
.tour-copy > p { margin-top: var(--space-sm); color: var(--color-ink-2); max-width: 28rem; }
.ticks { display: grid; gap: var(--space-xs); margin-top: var(--space-lg); }
.ticks li { display: flex; gap: var(--space-xs); align-items: baseline; font-size: var(--text-xs); }
.ticks svg { flex: none; width: 0.9rem; height: 0.9rem; color: var(--color-accent); transform: translateY(0.15em); }
.tour-pin { display: none; }

.tv { position: relative; padding: var(--space-lg); border-radius: var(--radius-stage); background: linear-gradient(160deg, var(--color-stage-a), var(--color-paper-2) 60%); overflow: hidden; }
.tv .card { padding: var(--space-lg); box-shadow: 0 30px 60px -36px var(--color-shadow-2); }
.tv .card + .card { margin-top: var(--space-sm); }
.tv-head { display: flex; justify-content: space-between; gap: var(--space-md); color: var(--color-ink-2); }
.tv-title { margin-top: var(--space-2xs); font-weight: 600; letter-spacing: var(--track-head); }
.tv-line { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--space-sm); align-items: baseline; padding-block: var(--space-xs); border-bottom: var(--rule-hair) solid var(--color-rule-2); font-size: var(--text-xs); }
.tv-line .tag { margin: 0; }
.tv-line .mono { color: var(--color-ink-2); }
.tv-line b { font-weight: 600; }
.tv-note { margin-top: var(--space-xs); color: var(--color-ink-2); }
.tv-hit { margin-top: var(--space-md); padding: var(--space-md); border-radius: var(--radius-input); background: var(--color-tag-meerwerk); color: var(--color-tag-meerwerk-ink); font-size: var(--text-xs); }
.tv-hit p + p { margin-top: var(--space-2xs); }
.tv-hit .mono { color: inherit; }
.tv-mail { margin-top: var(--space-sm); }
.tv-mail dt { color: var(--color-ink-2); font-size: var(--text-xs); }
.tv-mail dd { margin: 0 0 var(--space-xs); font-size: var(--text-xs); font-weight: 500; }
.tv-body { margin-top: var(--space-sm); padding-top: var(--space-sm); border-top: var(--rule-hair) solid var(--color-rule-2); font-size: var(--text-xs); color: var(--color-ink-2); }
.tv-body p + p { margin-top: var(--space-xs); }
.tv-log { margin-top: var(--space-xs); }
.tv-log li { display: grid; grid-template-columns: 3.5rem minmax(0, 1fr); gap: var(--space-sm); padding-block: var(--space-xs); border-bottom: var(--rule-hair) solid var(--color-rule-2); font-size: var(--text-xs); }
.tv-log .tag { margin: 0 var(--space-xs) 0 0; }
.tv-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-sm); margin-bottom: var(--space-sm); }
.tv-stats div { padding: var(--space-md); border-radius: var(--radius-input); background: var(--color-card); }
.tv-stats b { display: block; font-size: var(--text-md); font-weight: 600; letter-spacing: var(--track-head); white-space: nowrap; }
.tv-stats span { color: var(--color-ink-2); font-size: var(--text-xs); }

@media (min-width: 64rem) {
  .js .tour-grid { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr); column-gap: var(--space-3xl); row-gap: 0; }
  .js .tour-step { grid-column: 1; min-height: 80vh; align-content: center; }
  .js .tour-step .tour-vis { display: none; }
  .js .tour-pin { display: block; grid-column: 2; grid-row: 1 / span 4; align-self: start; position: sticky; top: calc(50vh - 17rem); }
  .js .tour-stack { display: grid; }
  .js .tour-stack .tour-vis { grid-area: 1 / 1; opacity: 0; transform: translateY(12px); transition: opacity var(--dur-long) var(--ease-out), transform var(--dur-long) var(--ease-out); }
  .js .tour-stack .tour-vis.is-on { opacity: 1; transform: none; }
  .js .tour-pin .tv { min-height: 32rem; height: 100%; display: flex; flex-direction: column; justify-content: center; padding: var(--space-2xl); }
  .js .tour-clock { display: flex; gap: var(--space-2xs); margin-top: var(--space-md); }
  .js .tour-clock li { flex: 1; padding-top: var(--space-xs); border-top: 2px solid var(--color-rule); color: var(--color-ink-2); font-family: var(--font-mono); font-size: var(--text-xs); transition: border-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out); }
  .js .tour-clock li.is-on { border-color: var(--color-accent); color: var(--color-ink); }
}

/* ============ In → Punchlister → out ============ */
.sp-flow { padding-block: var(--space-4xl) var(--space-3xl); }
.sp-flow .lede { margin-top: var(--space-md); }
.fl { position: relative; isolation: isolate; display: grid; gap: var(--space-lg); margin-top: var(--space-2xl); }
.fl-col h3 { margin-bottom: var(--space-sm); color: var(--color-ink-2); font-size: var(--text-xs); font-weight: 500; }
.fl-col ul { display: grid; gap: var(--space-xs); }
.ev {
  display: flex; align-items: center; gap: var(--space-xs); min-width: 0;
  padding: var(--space-sm) var(--space-md); border-radius: var(--radius-input);
  background: var(--color-card); box-shadow: inset 0 0 0 var(--rule-hair) var(--color-rule);
  font-size: var(--text-xs);
}
.ev svg { width: 1rem; height: 1rem; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; color: var(--color-ink-2); }
.ev b { font-weight: 600; white-space: nowrap; }
.ev span { margin-left: auto; padding-left: var(--space-sm); color: var(--color-ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fl-out .ev svg { color: var(--color-accent); }
.fl-core { display: grid; place-items: center; align-content: center; gap: var(--space-sm); padding: var(--space-xl); border-radius: var(--radius-stage); background: var(--color-logo-navy); color: var(--color-stack-ctx-ink); text-align: center; }
.fl-core svg { width: 3.5rem; height: auto; }
.fl-core .logo .pl-st6 { fill: var(--color-stack-ctx-ink); }
.fl-core p { max-width: 14rem; color: var(--color-stack-ctx-ink-2); font-size: var(--text-xs); }
.fl-core b { display: block; color: var(--color-stack-ctx-ink); font-size: var(--text-base); }
@media (min-width: 60rem) {
  .fl { grid-template-columns: minmax(0, 1fr) 15rem minmax(0, 1fr); align-items: center; gap: var(--space-2xl); }
  .fl::before { content: ""; position: absolute; left: 8%; right: 8%; top: 55%; z-index: -1; border-top: 1.5px dashed var(--color-flow-line); }
}
