/* Membrero — the trouvee.be design system (trouvee-be/docs/design.md), reused on purpose.
   Base below is trouvee's stylesheet as of 2026-10-10; Membrero additions are at the end. */

/* self-hosted (no request to Google, so no visitor data leaves for a third party) */
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(/assets/fonts/schibsted-grotesk-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(/assets/fonts/schibsted-grotesk-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }


:root {
  --paper: #f2f4f1;
  --ink: #102326;
  --muted: #4f6366;
  --line: #d3dbd7;
  --control-line: #7a8b8b;  /* borders of transparent controls: >= 3:1 on paper (WCAG 1.4.11, review m8) */
  --raised: #ffffff;
  --marker: #f3e35a;
  --marker-ink: #102326;
  --panel: #102326;
  --panel-ink: #e9eeeb;
  --panel-muted: #a9bbbb;
  --panel-line: #2a4245;

  --font: "Schibsted Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-ui: cubic-bezier(.4, 0, .2, 1);
  --dur-ui: 160ms;

  --gutter: clamp(16px, 4vw, 40px);
  --max: 1200px;
  --measure: 66ch;
  --r-mock: 14px;
  --r-btn: 10px;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0e1c1e; --ink: #e9eeeb; --muted: #9fb0b1; --line: #24393b; --raised: #142729;
    --control-line: #5f7576;
    --marker: #e6d64a; --panel: #17302f; --panel-ink: #e9eeeb; --panel-muted: #a9bbbb; --panel-line: #2f4b4e;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0e1c1e; --ink: #e9eeeb; --muted: #9fb0b1; --line: #24393b; --raised: #142729;
  --control-line: #5f7576;
  --marker: #e6d64a; --panel: #17302f; --panel-ink: #e9eeeb; --panel-muted: #a9bbbb; --panel-line: #2f4b4e;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 18px/1.6 var(--font); -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 1px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--gutter); top: 12px; background: var(--raised); padding: 8px 14px; z-index: 50; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- type ---------- */
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -.035em; line-height: 1.02; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5vw, 4.25rem); }
h2 { font-size: clamp(1.9rem, 3.8vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); letter-spacing: -.02em; line-height: 1.15; font-weight: 700; }
p { margin: 0; }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--muted); max-width: 46ch; }
.prose { max-width: var(--measure); color: var(--muted); }
.prose p + p { margin-top: 1em; }
.small { font-size: .875rem; color: var(--muted); }
.label { font-size: .85rem; font-weight: 700; color: var(--muted); }

.mark {
  background: linear-gradient(transparent 12%, var(--marker) 12%, var(--marker) 88%, transparent 88%) no-repeat 0 0 / 100% 100%;
  color: var(--marker-ink); padding: 0 .15em; margin: 0 -.05em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color var(--dur-ui) var(--ease-ui); }
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; gap: 24px; height: 68px; }
.logo { display: inline-flex; align-items: center; min-height: 44px; flex: none; font-weight: 800; font-size: 1.45rem; letter-spacing: -.04em; text-decoration: none; }
.logo svg { height: 44px; width: auto; display: block; }
.site-footer .logo svg { height: 40px; }
/* light background: petrol check; dark background: the check turns marker-yellow */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logo .chk { stroke: var(--marker); } }
:root[data-theme="dark"] .logo .chk { stroke: var(--marker); }
.nav-main { margin-left: auto; }
.nav-links { display: flex; gap: 26px; list-style: none; padding: 0; margin: 0; }
.nav-links a { display: inline-block; padding: 12px 0; text-decoration: none; font-size: .95rem; font-weight: 500; }
.nav-links a:hover, .nav-links a[aria-current="page"] { text-decoration: underline; }
.theme-toggle { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--control-line); background: transparent; color: var(--ink); cursor: pointer; display: grid; place-items: center; }
.menu-toggle { display: none; }
@media (max-width: 860px) {
  .nav { gap: 12px; }
  .nav-main { margin-left: 0; }
  .nav .btn { display: none; }
  .theme-toggle { margin-left: auto; }
  .menu-toggle { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border: 1px solid var(--control-line); border-radius: var(--r-btn); background: transparent; color: var(--ink); }
  .nav-links { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 20px; }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 12px 0; font-size: 1.1rem; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 12px 22px;
  border-radius: var(--r-btn); font: 700 1rem/1.25 var(--font); text-wrap: balance; text-decoration: none; cursor: pointer;
  background: var(--ink); color: var(--paper); border: 1px solid var(--ink);
  transition: transform 120ms var(--ease-ui), background var(--dur-ui) var(--ease-ui);
}
.btn:active { transform: scale(.97); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--control-line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-sm { min-height: 40px; padding: 6px 16px; font-size: .9rem; }
.on-panel .btn { background: var(--panel-ink); color: var(--panel); border-color: var(--panel-ink); }

/* ---------- sections ---------- */
.section { padding: clamp(72px, 10vw, 140px) 0; }
.section-head { display: grid; gap: 18px; margin-bottom: clamp(36px, 5vw, 64px); max-width: 760px; }
.band { background: var(--panel); color: var(--panel-ink); }
.band .prose, .band .lede, .band .small, .band .label { color: var(--panel-muted); }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* ---------- hero ---------- */
.hero { padding: clamp(48px, 8vw, 104px) 0 clamp(64px, 9vw, 120px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { margin-bottom: 24px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-note { margin-top: 20px; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } }

/* search mock: the one orchestrated moment */
.finder { background: var(--raised); border: 1px solid var(--line); border-radius: var(--r-mock); padding: 18px; box-shadow: 0 30px 60px -40px rgba(16, 35, 38, .45); }
.finder-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.finder-tabs { display: flex; gap: 6px; }
.finder-tab { font: 600 .82rem/1 var(--font); padding: 8px 12px; border-radius: 999px; border: 1px solid var(--control-line); color: var(--muted); background: transparent; cursor: pointer; }
.finder-stop { font: 500 .78rem/1 var(--font); color: var(--muted); background: none; border: 0; padding: 8px 4px; text-decoration: underline; text-underline-offset: .18em; cursor: pointer; }
.finder-stop[hidden] { display: none; }
.finder-tab[aria-selected="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.query { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 999px; padding: 12px 16px; font-size: 1rem; min-height: 50px; }
.query svg { flex: none; color: var(--muted); }
.query-text::after { content: ""; display: inline-block; width: 2px; height: 1.1em; margin-left: 2px; vertical-align: -.2em; background: var(--ink); }
/* the caret blinks only while text is being typed, never on its own (WCAG 2.2.2, review m4) */
.js .finder.typing .query-text::after { animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.results { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 4px; }
.result { padding: 12px 10px; border-radius: 10px; transition: opacity 400ms var(--ease-out), transform 400ms var(--ease-out); }
.result .url { font-size: .78rem; color: var(--muted); }
.result .title { font-weight: 700; font-size: 1.02rem; line-height: 1.3; }
.result .desc { font-size: .88rem; color: var(--muted); line-height: 1.45; }
.result.dim { opacity: .45; }
.answer { margin-top: 14px; padding: 14px; border-radius: 10px; border: 1px dashed var(--line); font-size: .95rem; line-height: 1.55; }
.answer .who { font-size: .78rem; font-weight: 700; color: var(--muted); margin-bottom: 6px; display: flex; align-items: center; gap: 6px; }
.found {
  background: linear-gradient(transparent 12%, var(--marker) 12%, var(--marker) 88%, transparent 88%) no-repeat 0 0 / 100% 100%;
  color: var(--marker-ink); padding: 0 .15em; margin: 0 -.05em;
}
.js .finder.playing .found { background-size: 0% 100%; color: inherit; transition: background-size 600ms var(--ease-out), color 200ms; }
.js .finder.playing .found.on { background-size: 100% 100%; color: var(--marker-ink); }
.js .finder.playing .result.pending, .js .finder.playing .answer.pending { opacity: 0; transform: translateY(6px); }
/* both panes share one grid cell so the card never changes height */
.finder-stage { display: grid; }
.finder-pane { grid-area: 1 / 1; }
.finder-pane[hidden] { display: block; visibility: hidden; }

/* ---------- services rows ---------- */
.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.row a { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) 44px; gap: 24px; align-items: center; padding: 26px 12px; border-bottom: 1px solid var(--line); text-decoration: none; transition: background var(--dur-ui) var(--ease-ui); }
.row a:hover, .row a:focus-visible { background: var(--raised); }
.row h3 { font-size: clamp(1.3rem, 2.4vw, 1.9rem); font-weight: 800; letter-spacing: -.03em; }
.row p { color: var(--muted); font-size: 1rem; }
.arrow { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; transition: transform var(--dur-ui) var(--ease-ui); }
.row a:hover .arrow { transform: translateX(4px); border-color: var(--ink); }
@media (max-width: 720px) { .row a { grid-template-columns: 1fr 44px; gap: 8px 16px; } .row p { grid-column: 1; } .row .arrow { grid-row: 1 / span 2; grid-column: 2; } }

/* ---------- split feature ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.split + .split { margin-top: clamp(64px, 8vw, 112px); }
.split .stack { display: grid; gap: 18px; }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } }
.checks { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 12px; }
.checks li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: 1rem; }
.checks svg { margin-top: 3px; }

/* report mock */
.report { background: var(--raised); border: 1px solid var(--line); border-radius: var(--r-mock); padding: 22px; font-size: .95rem; }
.report-row { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.report-row:last-child { border-bottom: 0; }
.report .q { font-weight: 700; }
.report .a { color: var(--muted); grid-column: 1 / -1; font-size: .9rem; }
.pill { font-size: .78rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); white-space: nowrap; }
.pill.yes { background: var(--marker); color: var(--marker-ink); border-color: transparent; }
.engines { display: grid; gap: 10px; }
.engine { display: grid; grid-template-columns: 96px 1fr 52px auto; gap: 12px; align-items: center; font-size: .92rem; }
.bar { height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--ink); border-radius: 4px; }

/* ---------- approach (a real sequence, so it is numbered) ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--panel-line); border: 1px solid var(--panel-line); }
.steps li { background: var(--panel); padding: 28px; display: grid; gap: 12px; align-content: start; }
.steps .n { font-size: 3rem; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
@media (max-width: 860px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* ---------- pricing ---------- */
.situations { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.situation { text-align: left; font: inherit; color: inherit; background: var(--raised); border: 1px solid var(--line); border-radius: var(--r-mock); padding: 22px; cursor: pointer; display: grid; gap: 10px; align-content: start; transition: border-color var(--dur-ui) var(--ease-ui); }
.situation:hover, .situation[aria-pressed="true"] { border-color: var(--ink); }
.situation-title { font-size: clamp(1.25rem, 2vw, 1.5rem); font-weight: 700; letter-spacing: -.02em; line-height: 1.15; text-wrap: balance; }
.situation .go { font-weight: 700; font-size: .95rem; margin-top: 6px; text-decoration: underline; }
@media (max-width: 860px) { .situations { grid-template-columns: minmax(0, 1fr); } }

.tiers { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.tier { background: var(--raised); border: 1px solid var(--line); border-radius: 4px; padding: 28px; display: grid; gap: 16px; align-content: start; scroll-margin-top: 100px; transition: box-shadow 300ms var(--ease-out); }
.tier.highlight { box-shadow: 0 0 0 3px var(--marker), 0 0 0 4px var(--ink); }
.price { font-size: 2.2rem; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.price small { font-size: .9rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.tbd { display: inline-block; letter-spacing: 0; font-size: .8rem; font-weight: 700; padding: 3px 9px; border: 1px dashed var(--muted); border-radius: 4px; color: var(--muted); }
.group-title { display: grid; gap: 10px; margin: clamp(56px, 7vw, 96px) 0 28px; max-width: 760px; }

.terms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 40px; }
.terms div { display: grid; gap: 8px; border-top: 1px solid var(--panel-line); padding-top: 18px; }
@media (max-width: 860px) { .terms { grid-template-columns: minmax(0, 1fr); } }

/* ---------- faq ---------- */
.faq { border-top: 1px solid var(--line); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; font-weight: 700; font-size: 1.15rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 18px; font-size: 1.6rem; font-weight: 400; transition: transform var(--dur-ui) var(--ease-ui); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 0 24px; color: var(--muted); max-width: var(--measure); animation: open 260ms var(--ease-out); }
@keyframes open { from { opacity: 0; transform: translateY(-4px); } }

/* ---------- cta + footer ---------- */
.cta-band h2 { max-width: 16ch; }
.cta-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: end; }
@media (max-width: 860px) { .cta-grid { grid-template-columns: minmax(0, 1fr); } }
.site-footer { padding: 56px 0 40px; font-size: .95rem; }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.foot ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--ink); text-decoration: underline; }
.foot-base { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--muted); font-size: .85rem; }
@media (max-width: 860px) { .foot { grid-template-columns: 1fr 1fr; } }

.crumbs { font-size: .88rem; color: var(--muted); margin-bottom: 24px; }
.crumbs a { color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- photo hero (home) ---------- */
.hero-photo { position: relative; isolation: isolate; color: #f2f4f1; background: #102326; overflow: hidden; }
.hero-bg, .hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-bg img { object-fit: cover; object-position: 72% 45%; z-index: -2; }
.hero-photo::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(10,26,28,.94) 0%, rgba(10,26,28,.82) 38%, rgba(10,26,28,.35) 68%, rgba(10,26,28,.15) 100%); }
.hero-photo-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 48px; align-items: center; min-height: min(86svh, 820px); padding-top: clamp(56px, 8vw, 104px); padding-bottom: clamp(56px, 8vw, 104px); }
.hero-copy { display: grid; gap: 0; }
.hero-kicker { font-weight: 500; color: rgba(242,244,241,.78); margin-bottom: 18px; }
.hero-photo h1 { color: #fff; margin-bottom: 24px; max-width: 11ch; }
.hero-photo .lede { color: rgba(242,244,241,.86); }
.hero-photo .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-note { margin-top: 22px; font-size: .9rem; color: rgba(242,244,241,.72); }
.btn-light { background: #f2f4f1; color: #102326; border-color: #f2f4f1; }
.btn-glass { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.28); backdrop-filter: blur(8px); }
.btn-glass:hover { border-color: #fff; }

.stat-cards { display: grid; gap: 14px; justify-items: end; align-self: end; }
.stat { width: min(100%, 300px); padding: 16px 18px; border-radius: var(--r-mock); color: #fff;
  background: rgba(12,28,30,.58); border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 20px 40px -24px rgba(0,0,0,.6); }
.stat:nth-child(2) { margin-right: 44px; }
.stat-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: .82rem; font-weight: 500; color: rgba(242,244,241,.8); }
.stat-num { font-size: 2.1rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; margin-top: 6px; display: flex; align-items: center; gap: 10px; }
.delta { font-size: .8rem; font-weight: 700; letter-spacing: 0; padding: 2px 8px; border-radius: 999px; background: var(--marker); color: #102326; }
.stat-sub { font-size: .8rem; color: rgba(242,244,241,.66); }
.stat-caption { font-size: .78rem; font-weight: 500; color: #fff; margin-right: 4px; padding: 3px 10px; border-radius: 999px; background: rgba(12,28,30,.62); backdrop-filter: blur(8px); }
.spark { width: 72px; height: 22px; flex: none; }
.spark path { fill: none; stroke: #fff; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 200; stroke-dashoffset: 0; }
.spark.bars rect { fill: rgba(255,255,255,.45); }
.spark.bars rect:last-child { fill: var(--marker); }

/* entrance: the hero's one moment — cards rise in sequence, then their lines draw */
.js .stat { animation: stat-in 700ms var(--ease-out) both; animation-delay: calc(400ms + var(--i) * 140ms); }
.js .spark path { animation: draw 1100ms var(--ease-out) both; animation-delay: calc(800ms + var(--i, 0) * 140ms); }
.js .stat:nth-child(1) .spark path { --i: 0; } .js .stat:nth-child(2) .spark path { --i: 1; }
@keyframes stat-in { from { opacity: 0; transform: translateY(16px); } }
@keyframes draw { from { stroke-dashoffset: 200; } }

@media (max-width: 1060px) {
  .hero-photo-grid { grid-template-columns: 1fr; min-height: 0; gap: 40px; }
  .hero-photo::before { background: linear-gradient(180deg, rgba(10,26,28,.88) 0%, rgba(10,26,28,.78) 55%, rgba(10,26,28,.9) 100%); }
  .stat-cards { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); justify-items: stretch; }
  .stat { width: auto; }
  .stat:nth-child(2) { margin-right: 0; }
  .stat-caption { grid-column: 1 / -1; justify-self: start; }
}

/* ---------- inner-page hero: a coloured band so it reads as its own zone ---------- */
.page-hero {
  --paper: #102326; --ink: #f2f4f1; --muted: #b5c5c4; --line: #2c4649; --control-line: #6b8486; --raised: #17322f;
  background: var(--paper); color: var(--ink);
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .page-hero { --paper: #17302f; --raised: #1d3a3d; } }
:root[data-theme="dark"] .page-hero { --paper: #17302f; --raised: #1d3a3d; }
.page-hero .crumbs a { color: var(--muted); }
.page-hero h1 { max-width: 18ch; }

/* ---------- our work ---------- */
.work { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 20px; list-style: none; margin: 0; padding: 0; }
@media (max-width: 960px) { .work { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .work { grid-template-columns: 1fr; } }
.work a { display: grid; gap: 14px; text-decoration: none; }
.work-shot { aspect-ratio: 16 / 10; overflow: hidden; border-radius: 8px; border: 1px solid var(--line); background: var(--raised); }
.work-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 500ms var(--ease-out); }
.work a:hover .work-shot img, .work a:focus-visible .work-shot img { transform: scale(1.03); }
.work-meta { display: grid; gap: 4px; }
.work-name { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-weight: 700; font-size: 1.15rem; letter-spacing: -.01em; }
.work-name span { font-size: .82rem; font-weight: 500; color: var(--muted); white-space: nowrap; }
.work-desc { font-size: .95rem; color: var(--muted); line-height: 1.5; }
.work a:hover .work-name, .work a:focus-visible .work-name { text-decoration: underline; text-underline-offset: .2em; }

.page-hero + .section { padding-top: clamp(56px, 7vw, 104px) !important; }

/* inner-page hero with example stat cards (same cards as the home photo hero) */
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 48px; align-items: center; }
.page-hero .stat { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); box-shadow: none; }
.page-hero .stat-caption { background: rgba(255,255,255,.08); }
.spark.bars.low rect { fill: rgba(255,255,255,.45); }
.spark.bars.low rect:first-child { fill: var(--marker); }
.spark.bars.low rect:last-child { fill: rgba(255,255,255,.45); }
@media (max-width: 1060px) { .page-hero-grid { grid-template-columns: 1fr; gap: 40px; } }
@media (min-width: 1100px) { .tiers-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.price small { font-size: .85rem; }

/* focus must stay visible on dark zones (review M1) */
.hero-photo :focus-visible, .band :focus-visible, .page-hero :focus-visible { outline-color: var(--marker); }

/* mobile header keeps a compact CTA (review M13) */
@media (max-width: 860px) {
  .nav .btn { display: inline-flex; min-height: 40px; padding: 0 12px; font-size: .85rem; margin-left: auto; }
  .theme-toggle { margin-left: 0; }
  .logo svg { height: 36px; }
}
@media (max-width: 380px) { .nav .btn { display: none; } .theme-toggle { margin-left: auto; } }

/* example label first, so figures are never read as real results (review M8) */
.stat-cards { grid-auto-flow: row; }
.stat-caption { order: -1; }
/* on phones the inner-page example cards push the content too far down (review M13) */
@media (max-width: 700px) { .page-hero .stat-cards { display: none; } }

/* contact form */
.form { display: grid; gap: 16px; background: var(--raised); border: 1px solid var(--line); border-radius: var(--r-mock); padding: clamp(20px, 3vw, 32px); }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; }
.form .opt { font-weight: 400; color: var(--muted); }
.form input, .form textarea { font: inherit; font-weight: 400; color: var(--ink); background: var(--paper); border: 1px solid var(--control-line); border-radius: 8px; padding: 12px 14px; min-height: 48px; width: 100%; }
.form input:focus-visible, .form textarea:focus-visible { outline: 3px solid var(--ink); outline-offset: 1px; border-color: var(--ink); }
.form .btn { justify-self: start; }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { background: var(--marker); color: #102326; padding: 12px 14px; border-radius: 8px; font-weight: 600; font-size: .95rem; }
/* long-form text pages (privacy) */
.prose-page { max-width: 760px; }
.prose-page h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); margin: 40px 0 12px; }
.prose-page h2:first-child { margin-top: 0; }
.prose-page p { color: var(--muted); }
.prose-page p + p { margin-top: 1em; }

/* about / who you talk to */
.about { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; max-width: 980px; }
.about-photo { width: 220px; aspect-ratio: 1; border-radius: 50%; background: var(--panel); color: var(--panel-ink); display: grid; place-items: center; font-size: 3.4rem; font-weight: 800; letter-spacing: -.03em; box-shadow: 0 0 0 6px var(--paper), 0 0 0 9px var(--marker); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
@media (max-width: 700px) { .about { grid-template-columns: minmax(0, 1fr); } .about-photo { width: 140px; font-size: 2.2rem; } }

.about-photo picture { display: block; width: 100%; height: 100%; }

/* certification badges in the home hero */
.badges { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.badges li { display: inline-flex; align-items: center; gap: 10px; font-size: .9rem; font-weight: 600; color: #fff; }
.badge-logo { width: 34px; height: 34px; border-radius: 50%; background: #fff; display: grid; place-items: center; flex: none; box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.badge-logo img { width: 20px; height: auto; }
@media (max-width: 480px) { .badges li { font-size: .82rem; } .badge-logo { width: 30px; height: 30px; } }

/* language switcher (NL · FR · EN) */
.lang-switch { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; font-size: .82rem; font-weight: 700; }
.lang-switch a { display: inline-grid; place-items: center; min-width: 32px; min-height: 32px; padding: 0 6px; border-radius: 6px; text-decoration: none; color: var(--muted); }
.lang-switch a:hover { color: var(--ink); background: var(--raised); }
.lang-switch a[aria-current="true"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--marker); }
@media (max-width: 860px) { .lang-switch { order: 5; } .lang-switch a { min-width: 30px; } }
@media (max-width: 420px) { .lang-switch a:not([aria-current]) { min-width: 26px; padding: 0 3px; } }

/* phone header with three languages: logo · NL FR EN · scan · (theme) · menu */
.nav .btn { white-space: nowrap; }
@media (max-width: 860px) {
  .nav .lang-switch { order: 1; margin-left: auto; }
  .nav .btn { order: 2; margin-left: 0; }
  .nav .theme-toggle { order: 3; margin-left: 0; }
  .nav .menu-toggle { order: 4; }
}
/* narrow phones: the theme follows the phone's own setting, so its button gives way */
@media (max-width: 480px) { .nav .theme-toggle { display: none; } .nav { gap: 8px; } }

/* ---------- responsive audit 2026-10-05 (docs/responsive-audit-2026-10-05.md) ---------- */
/* phones: report mocks stack their pill under the question instead of pushing the page wider */
@media (max-width: 480px) {
  .report { padding: 16px; }
  .report-row { grid-template-columns: minmax(0, 1fr); }
  .report-row .pill { justify-self: start; }
  .engine { grid-template-columns: minmax(0, 1fr) auto auto; gap: 6px 10px; }
  .engine .bar { grid-column: 1 / -1; grid-row: 2; }
}
/* long Dutch/French compounds ("Privacyverklaring", "vindbaarheidsscan") must break, not overflow */
@media (max-width: 480px) {
  /* only long words hyphenate: "online" stays whole, "Privacyverklaring" may break */
  h1, h2, h3, .situation-title { overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; hyphenate-limit-chars: 10 4 4; }
}
.prose-page p, .prose-page li { overflow-wrap: break-word; }
/* readable line length once a split collapses to one column */
.checks, p.small, .steps p, .terms p { max-width: var(--measure); }
/* touch: every control is at least 44px tall */
@media (pointer: coarse) {
  .nav .btn, .btn-sm { min-height: 44px; }
  .lang-switch a { min-height: 44px; }
  .finder-tab { min-height: 44px; }
  .finder-stop { min-height: 44px; }
  .foot ul { gap: 0; margin-top: 4px; }
  .foot ul a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }
}
@media (pointer: coarse) and (min-width: 861px) { .nav-links a { min-width: 44px; text-align: center; } }
/* tablets have room for full-width language targets; phones keep 30px wide x 44px tall (WCAG 2.5.8 met) */
@media (pointer: coarse) and (min-width: 560px) { .lang-switch a { min-width: 44px; } }
.btn svg { flex: none; }
/* price pills stay pill-shaped next to a two-line label (they stretched to the row height) */
.report-row .pill { align-self: start; }
/* the four engine rows share their columns, so bar tracks end at the same x */
.engines { grid-template-columns: 96px minmax(0, 1fr) auto auto; column-gap: 12px; }
.engine { grid-column: 1 / -1; grid-template-columns: subgrid; }
.engines > p { grid-column: 1 / -1; }
@media (max-width: 480px) { .engines { grid-template-columns: minmax(0, 1fr) auto auto; column-gap: 10px; } }
/* stat cards side by side (tablets): label, value and note rows line up across cards */
@media (max-width: 1060px) {
  .stat-cards { column-gap: 14px; row-gap: 14px; }
  .stat { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 0; align-content: start; }
  .stat-top { align-items: flex-start; }
}
/* the founder ring (9px) stays inside the side gutter when the photo stacks */
.about-photo { margin-left: 9px; }
/* work cards: a long tag moves under the name instead of squeezing it */
.work-name { flex-wrap: wrap; row-gap: 2px; }
/* privacy text column lines up with the hero and footer on tablets */
.wrap.prose-page { max-width: calc(var(--max) + 2 * var(--gutter)); }
.wrap.prose-page > * { max-width: 760px; }
/* pricing grids never leave a lone card in a row */
@media (min-width: 640px) and (max-width: 1023px) {
  .tiers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tiers > .tier:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (min-width: 1024px) and (max-width: 1099px) { .tiers-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* anchor targets land below the sticky header (68px) */
[id]:not(.tier) { scroll-margin-top: 84px; }
/* narrow phones: header items fit inside the 16px gutter in every language */
@media (max-width: 420px) { .logo svg { height: 32px; } .nav { gap: 6px; } }
/* the rotated FAQ "+" turns inside its own square instead of poking 8px past the row */
.faq summary::after { width: 1em; line-height: 1; text-align: center; top: 22px; right: 9px; }
.finder-tabs { flex-wrap: wrap; }
.finder-tab { white-space: nowrap; }
.faq summary { padding-right: 48px; }

/* inner-page hero with a photo (scripts/build.py HERO_IMG): same treatment as the home hero */
.page-hero.has-photo { position: relative; isolation: isolate; overflow: hidden; background: #102326; }
.page-hero.has-photo > .hero-bg img { z-index: -2; }
.page-hero.has-photo::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(10,26,28,.95) 0%, rgba(10,26,28,.86) 40%, rgba(10,26,28,.45) 72%, rgba(10,26,28,.25) 100%); }
.page-hero.has-photo .stat { background: rgba(12,28,30,.58); border-color: rgba(255,255,255,.18); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); }
.page-hero.has-photo .crumbs, .page-hero.has-photo .crumbs a, .page-hero.has-photo .lede { color: rgba(242,244,241,.86); }
@media (max-width: 1060px) {
  .page-hero.has-photo::before { background: linear-gradient(180deg, rgba(10,26,28,.9) 0%, rgba(10,26,28,.82) 60%, rgba(10,26,28,.92) 100%); }
}

/* The hero photo is absolutely positioned; without its own z-index it painted ABOVE the (non-positioned)
   hero text and swallowed every click on the CTA buttons and breadcrumbs (found live 2026-10-08).
   Keep it behind the content and transparent to the pointer. Both heroes use isolation:isolate,
   so the negative z-index stays inside the hero. */
.hero-bg { z-index: -2; pointer-events: none; }

/* =====================================================================
   Membrero additions. Same tokens, same rules: marker yellow is the only
   saturated colour, and it marks what Membrero FOUND or KNOWS (a name, a
   paid invoice, a free place), never a headline.
   ===================================================================== */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.wordmark { font-weight: 800; font-size: 1.55rem; letter-spacing: -.045em; line-height: 1;
  background: linear-gradient(transparent 84%, var(--marker) 84%) no-repeat 0 0 / 100% 100%;
  padding: 0 .08em .14em; color: var(--ink); }
.site-footer .wordmark { font-size: 1.4rem; }
@media (max-width: 420px) { .wordmark { font-size: 1.3rem; } }

/* hero: the cards are moments from a school evening, not statistics */
.moment { width: min(100%, 330px); padding: 14px 16px; border-radius: var(--r-mock); color: #fff;
  background: rgba(12,28,30,.6); border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 20px 40px -24px rgba(0,0,0,.6); display: grid; grid-template-columns: 38px minmax(0,1fr); gap: 4px 12px; align-items: start; }
.moment:nth-child(3) { margin-right: 44px; }
.moment .who { grid-row: span 2; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; font-weight: 800; background: rgba(255,255,255,.14); color: #fff; }
.moment .who.y { background: var(--marker); color: #102326; }
.moment-top { display: flex; justify-content: space-between; gap: 10px; font-size: .78rem; color: rgba(242,244,241,.72); }
.moment-text { font-size: .95rem; font-weight: 600; line-height: 1.35; }
.moment-text b { font-weight: 800; }
.js .moment { animation: stat-in 700ms var(--ease-out) both; animation-delay: calc(400ms + var(--i) * 160ms); }
@media (max-width: 1060px) {
  .moment { width: auto; }
  .moment:nth-child(3) { margin-right: 0; }
}

/* photo strip: real people from real schools */
.photos { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 14px; margin: 0; padding: 0; list-style: none; }
.photos figure { margin: 0; display: grid; gap: 10px; }
.photos .ph { aspect-ratio: 4 / 3; overflow: hidden; border-radius: 8px; background: var(--raised); }
.photos .ph img { width: 100%; height: 100%; object-fit: cover; }
.photos li:first-child .ph { aspect-ratio: auto; height: 100%; min-height: 240px; }
.photos li:first-child figure { height: 100%; grid-template-rows: 1fr auto; }
.photos figcaption { font-size: .85rem; color: var(--muted); }
@media (max-width: 860px) { .photos { grid-template-columns: 1fr 1fr; } .photos li:first-child { grid-column: 1 / -1; } .photos li:first-child .ph { aspect-ratio: 16 / 9; min-height: 0; } }
@media (max-width: 480px) { .photos { grid-template-columns: 1fr; } }

/* the inbox mock: a parent's email, and the reply Membrero drafted */
.inbox { background: var(--raised); border: 1px solid var(--line); border-radius: var(--r-mock); padding: 18px; box-shadow: 0 30px 60px -40px rgba(16,35,38,.45); display: grid; gap: 14px; font-size: .95rem; }
.inbox-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: .8rem; color: var(--muted); font-weight: 600; }
.mail { display: grid; grid-template-columns: 38px minmax(0,1fr); gap: 2px 12px; }
.mail .who { grid-row: span 3; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; font-weight: 800; background: var(--paper); border: 1px solid var(--line); }
.mail .from { font-weight: 700; display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.mail .from span { font-weight: 500; color: var(--muted); font-size: .82rem; }
.mail .subj { font-weight: 600; }
.mail .body { color: var(--muted); line-height: 1.5; }
.knows { border: 1px dashed var(--line); border-radius: 10px; padding: 12px 14px; display: grid; gap: 6px; font-size: .88rem; }
.knows p:first-child { font-weight: 700; font-size: .78rem; color: var(--muted); }
.draft { border-radius: 10px; padding: 14px; background: var(--paper); line-height: 1.55; }
.draft .label { margin-bottom: 6px; font-size: .78rem; }
.inbox-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.inbox-actions .btn { min-height: 40px; padding: 6px 14px; font-size: .88rem; }
.inbox-actions .small { margin-left: auto; }
/* a found fact is highlighted when the section scrolls into view */
.js .inbox.playing .found { background-size: 0% 100%; color: inherit; transition: background-size 600ms var(--ease-out), color 200ms; }
.js .inbox.playing .found.on { background-size: 100% 100%; color: var(--marker-ink); }
@media (max-width: 480px) { .inbox { padding: 14px; } .inbox-actions .small { margin-left: 0; width: 100%; } }

/* "your words": the vocabulary a school already uses */
.words { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); margin: 0; padding: 0; list-style: none; }
.words li { background: var(--paper); padding: 20px 22px; display: grid; gap: 6px; }
.words .kind { font-weight: 800; font-size: 1.1rem; letter-spacing: -.02em; }
.words .terms-list { color: var(--muted); font-size: .95rem; }

/* founder letter */
.letter { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.letter-photo { margin: 0; display: grid; gap: 10px; }
.letter-photo .ph { border-radius: 8px; overflow: hidden; box-shadow: 10px 10px 0 var(--marker); }
.letter-photo img { width: 100%; height: auto; }
.letter-photo figcaption { font-size: .85rem; color: var(--muted); margin-top: 8px; }
.letter .prose p { font-size: 1.1rem; color: var(--ink); }
.letter .prose p + p { margin-top: 1em; }
.signature { margin-top: 24px; font-weight: 800; font-size: 1.4rem; letter-spacing: -.03em; }
.signature span { display: block; font-weight: 500; font-size: .9rem; letter-spacing: 0; color: var(--muted); }
@media (max-width: 860px) { .letter { grid-template-columns: minmax(0, 1fr); } .letter-photo { max-width: 360px; } }

/* a list with plain dots (privacy, honesty notes) */
.dots { margin: 12px 0; padding-left: 1.2em; color: var(--muted); display: grid; gap: 6px; }
.callout { margin-top: 40px; padding: 22px 24px; border-left: 4px solid var(--marker); background: var(--raised); border-radius: 0 var(--r-mock) var(--r-mock) 0; }
.callout h2 { margin-top: 0 !important; }

/* honest notes: what it cannot do yet */
.honest { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.honest div { border: 1px dashed var(--control-line); border-radius: var(--r-mock); padding: 20px 22px; display: grid; gap: 8px; }
@media (max-width: 720px) { .honest { grid-template-columns: minmax(0,1fr); } }

/* pricing tiers: every plan has everything, only the size changes */
.tier .who-for { color: var(--muted); font-size: .95rem; }
.price-note { margin-top: 24px; }

/* demo form on the dark band */
.band .form { background: var(--raised); color: var(--ink); }
.form select { font: inherit; color: var(--ink); background: var(--paper); border: 1px solid var(--control-line); border-radius: 8px; padding: 12px 14px; min-height: 48px; width: 100%; }
.form-status { min-height: 1.4em; font-weight: 600; font-size: .95rem; }
.form-status:empty { display: none; }
.demo-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
@media (max-width: 860px) { .demo-grid { grid-template-columns: minmax(0, 1fr); } }
.band .checks svg { color: var(--marker); }
/* "a week in your school": rows that are statements, not links */
.rows-static .row > div { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: 8px 24px; align-items: baseline; padding: 26px 12px; border-bottom: 1px solid var(--line); }
@media (max-width: 720px) { .rows-static .row > div { grid-template-columns: minmax(0, 1fr); } }
/* the demo form sits on the dark band but is a light card */
.on-panel .form .btn { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.band .form .small { color: var(--muted); }
.band .form a { color: var(--ink); }
.band a { color: inherit; }
/* five languages (trouvee has three): on phones the header CTA gives way —
   the hero's own button is right below it — so logo, EN FR NL ES IT and the
   menu fit inside a 360px screen with the 16px gutter */
@media (max-width: 560px) {
  .nav .btn { display: none; }
  .nav .lang-switch { margin-left: auto; }
  .lang-switch a:not([aria-current]), .lang-switch a { min-width: 28px; padding: 0 3px; }
}
/* six kinds of school: 3 × 2, never a hole in the grid */
@media (min-width: 720px) { .words { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- ported from the youbo.io landing page (docs/youbo-lessons-2026-10.md) ---------- */
/* Sven's face where the decision happens */
.face { flex: none; width: 40px; height: 40px; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 2px var(--marker); }
.face img, .face picture { display: block; width: 100%; height: 100%; object-fit: cover; }
.face-lg { width: 96px; height: 96px; box-shadow: 0 0 0 4px var(--panel), 0 0 0 6px var(--marker); }
.face-note { display: flex; align-items: center; gap: 12px; }
.demo-who { display: flex; align-items: center; gap: 18px; color: var(--panel-muted); }
.demo-who b { color: var(--panel-ink); font-size: 1.1rem; }

/* proof strip: the three real schools, on the second screen */
.proof { border-bottom: 1px solid var(--line); background: var(--raised); }
.proof-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 32px; padding-top: 18px; padding-bottom: 18px; }
.proof .label { margin-right: 4px; }
.proof a { text-decoration: none; font-weight: 800; font-size: 1.1rem; letter-spacing: -.02em; display: inline-flex; align-items: baseline; gap: 8px; min-height: 44px; align-items: center; }
.proof a span { font-weight: 500; font-size: .85rem; color: var(--muted); letter-spacing: 0; }
.proof a:hover { text-decoration: underline; text-underline-offset: .2em; }

/* one big sentence with true numbers */
.statement { font-weight: 800; font-size: clamp(1.7rem, 4vw, 3.1rem); letter-spacing: -.035em; line-height: 1.1; max-width: 22ch; margin-bottom: clamp(48px, 7vw, 96px); text-wrap: balance; }

/* Sven's letter on the dark band */
.band .letter .prose p { color: var(--panel-ink); }
.band .signature span, .band .letter-photo figcaption { color: var(--panel-muted); }
.band .letter-photo .ph { box-shadow: 10px 10px 0 var(--marker); }

/* sticky demo bar: appears after the hero, hides at the form */
.demo-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--line); transform: translateY(110%); transition: transform 300ms var(--ease-out); }
.demo-bar.show { transform: none; }
.demo-bar-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 10px; padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
.demo-bar-text { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: .95rem; }
.demo-bar .btn { min-height: 44px; padding: 8px 18px; white-space: nowrap; }
@media (max-width: 640px) { .demo-bar-text { display: none; } .demo-bar .btn { width: 100%; justify-content: center; } }
body.has-bar .site-footer { padding-bottom: 96px; }

/* blocks arrive as they scroll in (never hidden without JS or with reduced motion) */
.reveal-on [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out); }
.reveal-on [data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal-on [data-reveal] { opacity: 1; transform: none; } }

/* ---------- critique fixes 2026-10-10 (docs/critique-*.md) ---------- */
/* yellow marks found facts only: decorations go back to ink/panel colours */
.band .checks svg { color: var(--panel-ink); }
.face { box-shadow: 0 0 0 2px rgba(255,255,255,.6); }
.face-lg { box-shadow: 0 0 0 4px var(--panel-line); }
.demo-bar .face { box-shadow: 0 0 0 2px var(--line); }
.letter-photo .ph, .band .letter-photo .ph { box-shadow: none; border: 1px solid var(--panel-line); }
/* phones: one example card, so the hero is about one screen and the school strip shows sooner */
@media (max-width: 600px) {
  .moment:nth-of-type(n+2) { display: none; }
  .hero-photo-grid { gap: 28px; }
}
/* phones: the text of a split comes before its example screen */
@media (max-width: 860px) { .split > .report { order: 2; } }

/* =====================================================================
   Motion and interaction, 2026-10-10. Same rules as trouvee's motion.md:
   only transform / opacity / background-size animate; reduced motion and
   no-JS both show the final state; every sequence runs once, on view.
   ===================================================================== */
/* hero headline: words rise in, sharpening as they land */
.hv-word { display: inline-block; }
.motion .hv-word { opacity: 0; transform: translateY(.28em); filter: blur(3px); animation: word-in 700ms var(--ease-out) forwards; animation-delay: calc(120ms + var(--w) * 70ms); }
@keyframes word-in { to { opacity: 1; transform: none; filter: none; } }
/* hero cards arrive like notifications; the newest one pulses */
.motion .moment { animation: note-in 650ms var(--ease-out) both; animation-delay: calc(900ms + var(--i) * 650ms); }
@keyframes note-in { from { opacity: 0; transform: translateY(18px) scale(.97); } }
.moment:last-of-type .moment-top span:first-child::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--marker); margin-right: 7px; vertical-align: .08em; }
.motion .moment:last-of-type .moment-top span:first-child::before { animation: pulse 2s var(--ease-ui) 3s 4; }
@keyframes pulse { 50% { transform: scale(.6); opacity: .5; } }

/* inbox: email, what it knows, then the draft — one after another */
.motion .inbox.queued [data-step] { opacity: 0; transform: translateY(10px); }
.motion .inbox [data-step] { transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out); }
.motion .inbox .knows p { transition: opacity 400ms var(--ease-out); }
.motion .inbox.queued .knows p:not(:first-child) { opacity: 0; }
[data-draft].typing::after { content: ""; display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -.15em; background: var(--ink); animation: caret 1s steps(1) infinite; }
[data-draft][contenteditable="true"] { outline: 2px dashed var(--control-line); outline-offset: 4px; border-radius: 4px; }
.inbox-actions button.btn { cursor: pointer; }
.inbox-done { border-radius: 10px; padding: 14px 16px; background: var(--paper); border: 1px solid var(--line); display: grid; gap: 8px; }
.inbox-done ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: .92rem; }
.inbox-done li::before { content: "✓"; display: inline-grid; place-items: center; width: 20px; height: 20px; margin-right: 8px; border-radius: 50%; background: var(--marker); color: var(--marker-ink); font-size: .72rem; font-weight: 800; }
.motion .inbox-done li { animation: note-in 450ms var(--ease-out) both; }
.motion .inbox-done li:nth-child(2) { animation-delay: 200ms; } .motion .inbox-done li:nth-child(3) { animation-delay: 400ms; }
.linkish { justify-self: start; background: none; border: 0; padding: 10px 0; font: 600 .9rem/1 var(--font); color: var(--muted); text-decoration: underline; text-underline-offset: .2em; cursor: pointer; min-height: 44px; }
.btn.sending { transform: scale(.97); opacity: .8; }

/* search mock: the query types itself, results arrive, your school is marked */
.motion .finder.queued .result { opacity: 0; transform: translateY(8px); }
.motion .finder .result { transition: opacity 450ms var(--ease-out), transform 450ms var(--ease-out); }
.finder.typing .query-text::after { animation: caret 1s steps(1) infinite; }

/* groups: pick one, the button tells you how many people */
.groups { display: grid; }
.report-row.group { font: inherit; color: inherit; text-align: left; width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line); cursor: pointer; padding: 14px 10px; margin: 0 -10px; width: calc(100% + 20px); border-radius: 8px; transition: background var(--dur-ui) var(--ease-ui); }
.report-row.group:last-child { border-bottom: 0; }
.report-row.group:hover { background: var(--paper); }
.report-row.group[aria-pressed="true"] { background: var(--paper); box-shadow: inset 3px 0 0 var(--ink); }
.report-row.group[aria-pressed="true"] .pill { background: var(--marker); color: var(--marker-ink); border-color: transparent; }
.group-cta { margin-top: 12px; }
.group-cta .btn { pointer-events: none; }
.motion .group-cta .btn.bump { animation: bump 360ms var(--ease-out); }
@keyframes bump { 40% { transform: scale(1.05); } }

/* feature list */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px); }
.feature-col { display: grid; gap: 16px; align-content: start; border-top: 2px solid var(--ink); padding-top: 18px; }
.feature-col .checks li { font-size: .98rem; }
@media (max-width: 860px) { .features { grid-template-columns: minmax(0, 1fr); } }
/* staggered arrival inside revealed groups */
.reveal-on .features .checks li, .reveal-on .steps li, .reveal-on .rows-static .row { opacity: 0; transform: translateY(12px); transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out); transition-delay: calc(var(--k, 0) * 70ms); }
.reveal-on .is-in .checks li, .reveal-on .steps.is-in li, .reveal-on .rows-static.is-in .row { opacity: 1; transform: none; }

/* hover: things you can look at lift a little */
.photos .ph img { transition: transform 700ms var(--ease-out); }
.photos li:hover .ph img { transform: scale(1.04); }
.rows-static .row > div { transition: background var(--dur-ui) var(--ease-ui); }
.rows-static .row:hover > div { background: var(--raised); }
.rows-static .row h3 { transition: background-size 500ms var(--ease-out); background: linear-gradient(transparent 70%, var(--marker) 70%, var(--marker) 92%, transparent 92%) no-repeat 0 0 / 0% 100%; display: inline; }
.rows-static .row:hover h3 { background-size: 100% 100%; }
.tier { transition: transform 300ms var(--ease-out), box-shadow 300ms var(--ease-out); }
.tier:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -28px rgba(16,35,38,.45); }

@media (prefers-reduced-motion: reduce) {
  .motion .hv-word, .motion .moment { opacity: 1; transform: none; filter: none; animation: none; }
  .reveal-on .features .checks li, .reveal-on .steps li, .reveal-on .rows-static .row { opacity: 1; transform: none; }
}

/* the hidden attribute always wins over a component's display rule */
[hidden] { display: none !important; }
/* legal pages link to each other; the footer credits the site's designer */
.legal-links { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .95rem; color: var(--muted); }
.legal-links [aria-current] { color: var(--ink); font-weight: 700; }
.foot-credit { margin-top: 16px; font-size: .8rem; color: var(--muted); }
.foot-credit a { color: var(--muted); }
.prose-page ol.dots { padding-left: 1.4em; }
/* feature list with real logos and line icons */
.flist li { grid-template-columns: 30px 1fr; }
.ficon { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 26px; margin-top: 1px; color: var(--ink); }
.ficon svg { width: 22px; height: 22px; }
.ficon-pair { gap: 2px; width: 28px; }
.ficon-pair svg { width: 15px; height: 15px; }
.ficon-pair { flex-wrap: wrap; }
.ficon-check svg { width: 22px; height: 22px; }
:root[data-theme="dark"] .ficon-pair .ico-brand:first-child { fill: #4c8dff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ficon-pair .ico-brand:first-child { fill: #4c8dff; } }
/* Sven's face in the hero note, a little bigger */
.face-note .face { width: 56px; height: 56px; }
/* feature icons: a touch larger; Facebook + Instagram side by side */
.flist li { grid-template-columns: 52px 1fr; gap: 10px; }
.ficon { width: 52px; height: 28px; justify-content: flex-start; }
.ficon svg { width: 26px; height: 26px; }
.ficon-pair { flex-wrap: nowrap; gap: 6px; width: 52px; }
.ficon-pair svg { width: 23px; height: 23px; }
/* the logo image: light cut-out by default, dark cut-out in dark mode */
.logo-img { height: 34px; width: auto; display: block; }
.site-footer .logo-img { height: 30px; }
.logo-dark { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logo-light { display: none; } :root:not([data-theme="light"]) .logo-dark { display: block; } }
:root[data-theme="dark"] .logo-light { display: none; }
:root[data-theme="dark"] .logo-dark { display: block; }
@media (max-width: 420px) { .logo-img { height: 28px; } }
@media (max-width: 400px) { .logo-img { height: 24px; } .nav { gap: 6px; } }

/* ---------- photo carousel: swipe on phones, arrows on desktop, no autoplay ---------- */
.carousel { position: relative; }
.car-nav { display: flex; justify-content: flex-end; gap: 10px; margin: -8px 0 16px; }
.car-btn { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--control-line); background: transparent; color: var(--ink); display: grid; place-items: center; cursor: pointer; transition: border-color var(--dur-ui) var(--ease-ui), opacity var(--dur-ui) var(--ease-ui), transform 120ms var(--ease-ui); }
.car-btn:hover { border-color: var(--ink); }
.car-btn:active { transform: scale(.94); }
.car-btn:disabled { opacity: .35; cursor: default; }
.car-track { list-style: none; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 8px; display: grid; grid-auto-flow: column; grid-auto-columns: min(78vw, 420px); gap: 16px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.car-track::-webkit-scrollbar { display: none; }
.car-track:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }
.slide { scroll-snap-align: start; }
.slide figure { margin: 0; display: grid; gap: 10px; }
.slide .ph { aspect-ratio: 4 / 3; overflow: hidden; border-radius: 8px; background: var(--raised); }
.slide .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease-out); }
.slide:hover .ph img { transform: scale(1.04); }
.slide figcaption { font-size: .88rem; color: var(--muted); }
.slide:first-child { grid-column: span 1; }
@media (min-width: 1100px) { .car-track { grid-auto-columns: 440px; } }
/* four school cards: 2 x 2, or 4 in a row on wide screens */
@media (min-width: 1100px) { .work.work-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 601px) and (max-width: 1099px) { .work.work-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* theme toggle: moon in light mode, sun in dark mode, and a short turn on change */
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .i-moon { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .i-sun { display: block; }
}
.theme-toggle svg { transition: transform 400ms var(--ease-out); }
.theme-toggle:active svg { transform: rotate(-30deg) scale(.9); }
.theme-toggle:hover { border-color: var(--ink); }
body { transition: background-color 250ms var(--ease-ui), color 250ms var(--ease-ui); }
