/* Trouvee — see docs/design.md and docs/motion.md before changing tokens. */

/* 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%); }
}
