/*
 * De homepage. Alle kleuren, stralen en curves komen uit theme.css, en dat
 * bestand maakt `npm run site:theme` uit lib/theme.tsx en lib/motion.ts: wat
 * hier van de app te zien is, ziet er dus precies zo uit als in de app.
 *
 * Donker zoals darkTheme, het coach-blok op papier zoals lightTheme, Archivo
 * voor koppen en cijfers, San Francisco voor lopende tekst. Water alleen op de
 * donkere kaarten (HeroCard), net als in de app.
 *
 * Beweging volgt de app: binnenkomen met `rise` (8 pt omhoog, MOTION.duration
 * .slow, EASE.out), na elkaar met MOTION.stagger, en nergens iets dat
 * doorschiet of stuitert. Bij "Verminder beweging" blijft alleen een fade over.
 */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url(/fonts/archivo-latin.woff2) format('woff2');
}

:root {
  /* De rollen die deze pagina gebruikt, uit darkTheme */
  --bg: var(--dark-bg);
  --surface: var(--dark-surface);
  --surface-soft: var(--dark-surface-soft);
  --panel: var(--dark-panel);
  --ink: var(--dark-label);
  --ink-2: var(--dark-label-secondary);
  --ink-3: var(--dark-label-tertiary);
  --ink-4: var(--dark-label-quaternary);
  --fill: var(--dark-fill);
  --fill-2: var(--dark-fill-secondary);
  --sep: var(--dark-separator);
  --accent: var(--dark-accent);
  --accent-text: var(--dark-accent-text);
  --accent-soft: var(--dark-accent-soft);
  --on-accent: var(--dark-on-accent);
  --coral-text: var(--dark-coral-text);
  --coral-soft: var(--dark-coral-soft);
  --gold: var(--dark-gold);
  --gold-text: var(--dark-gold-text);
  --gold-soft: var(--dark-gold-soft);
  --on-gold: var(--dark-on-gold);
  --on-panel: var(--dark-on-panel);
  --on-panel-2: var(--dark-on-panel-secondary);
  --on-panel-3: var(--dark-on-panel-tertiary);
  --on-panel-fill: var(--dark-on-panel-fill);
  /* WATER.light in components/otto/OttoWater.tsx = darkTheme.panelAccent */
  --water-light: var(--dark-panel-accent);

  --display: 'Archivo', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  /* `rise` uit lib/motion.ts */
  --rise: 8px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin: 0; }
.wrap { max-width: 1200px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.num { font-family: var(--display); font-weight: 600; font-variant-numeric: tabular-nums; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- Binnenkomen: `rise` uit de app. Alleen met JavaScript verborgen, anders staat alles er gewoon ---- */
.js .reveal {
  opacity: 0;
  transform: translateY(var(--rise));
  transition: opacity var(--duration-slow) var(--ease-out), transform var(--duration-slow) var(--ease-out);
  transition-delay: calc(min(var(--i, 0), var(--stagger-max)) * var(--stagger-step) + var(--d, 0ms));
}
.js .reveal.in { opacity: 1; transform: none; }
/* Grote blokken komen iets langer en verder: dezelfde curve, de mijlpaalduur */
.js .reveal.big { --rise: 24px; transition-duration: var(--duration-milestone); }

/* ---- Merk: de drie balken van het app-icoon (components/BrandMark.tsx) ---- */
.mark { --h: 22px; display: inline-flex; align-items: flex-end; gap: calc(var(--h) * 35 / 580); height: var(--h); }
.mark span { width: calc(var(--h) * 135 / 580); border-radius: var(--radius-pill); background: var(--brand-mark-outer); }
.mark span:nth-child(1) { height: calc(100% * 405 / 580); margin-bottom: calc(var(--h) * 35 / 580); }
.mark span:nth-child(2) { height: 100%; background: var(--brand-mark-center); }
.mark span:nth-child(3) { height: calc(100% * 465 / 580); margin-bottom: calc(var(--h) * 35 / 580); }
.brand { display: inline-flex; align-items: flex-end; gap: 10px; }
.wordmark { font-family: var(--display); font-weight: 800; font-size: 20px; line-height: 1; letter-spacing: 0.06em; }
/* Het merk tekent zich bij het laden balk voor balk op, van onder naar boven */
.mark.grow span { transform-origin: bottom; animation: grow var(--duration-milestone) var(--ease-out) both; }
.mark.grow span:nth-child(2) { animation-delay: var(--stagger-step); }
.mark.grow span:nth-child(3) { animation-delay: calc(var(--stagger-step) * 2); }
@keyframes grow { from { transform: scaleY(0.2); opacity: 0; } }

/* ---- Knoppen: indrukken naar MOTION.pressScale, zoals PressableScale ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: var(--radius-pill);
  font-weight: 600; font-size: 17px;
  transition: transform var(--duration-fast) var(--ease-out), opacity var(--duration-base) var(--ease-out), background-color var(--duration-base) var(--ease-out);
}
.btn:active { transform: scale(var(--press-scale)); }
.btn:hover { opacity: 0.88; }
.btn:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-ghost { background: var(--fill); color: var(--ink); }
.btn-ghost:hover { background: var(--fill-2); opacity: 1; }
.btn svg { width: 18px; height: 18px; transition: transform var(--duration-base) var(--ease-out); }
.btn:hover svg { transform: translateX(3px); }

/* ---- Kop boven een sectie: kicker() uit lib/theme.tsx, geen kapitalen ---- */
.kicker { font-size: 13px; font-weight: 600; color: var(--ink-3); }

h1, h2 { font-family: var(--display); font-weight: 700; letter-spacing: -0.025em; }
h2 { font-size: clamp(34px, 4.4vw, 56px); line-height: 1.04; }
.lede { font-size: clamp(17px, 1.5vw, 19px); line-height: 1.55; color: var(--ink-2); }

/* ---- Navigatie ---- */
header {
  position: sticky; top: 0; z-index: 10;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color var(--duration-slow) var(--ease-out), border-color var(--duration-slow) var(--ease-out);
}
header.scrolled {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(16px); backdrop-filter: saturate(1.4) blur(16px);
  border-bottom-color: var(--sep);
}
nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; padding-bottom: 12px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a:not(.btn) { font-size: 15px; color: var(--ink-2); padding: 12px 0; transition: color var(--duration-base) var(--ease-out); }
.nav-links a:not(.btn):hover { color: var(--ink); }
.nav-links .btn { min-height: 40px; padding: 0 18px; font-size: 15px; }
@media (max-width: 720px) { .nav-links a:not(.btn) { display: none; } }

/* ---- Hero ---- */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(48px, 6vw, 96px); padding-top: clamp(40px, 7vw, 96px); padding-bottom: clamp(64px, 8vw, 112px); }
.hero-copy { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero h1 { font-size: clamp(44px, 6vw, 80px); line-height: 1; letter-spacing: -0.035em; }
.hero h1 .line { display: block; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lede { max-width: 520px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 8px; }
.fine { font-size: 14px; color: var(--ink-3); }

/* ---- Telefoon: de set-rijen van app/active-workout.tsx ---- */
.phone-col { flex: 0 1 360px; min-width: 0; display: flex; justify-content: center; margin: 0 auto; }
.phone {
  position: relative; width: 340px; max-width: 100%; border-radius: 54px; padding: 11px;
  background: #050605; border: 1px solid var(--sep);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.55);
}
.screen { position: relative; overflow: hidden; border-radius: 44px; background: var(--bg); padding: 26px 14px 16px; display: flex; flex-direction: column; gap: 12px; min-height: 640px; }
.status { display: flex; justify-content: space-between; padding: 0 14px 6px; font-size: 13px; font-weight: 600; }
.status i { width: 22px; height: 11px; border-radius: 3px; border: 1px solid var(--ink-3); position: relative; }
.status i::after { content: ''; position: absolute; inset: 1px; right: 6px; border-radius: 1px; background: var(--ink); }
.screen-top { display: flex; justify-content: space-between; align-items: flex-end; padding: 0 6px; }
.screen-top small { display: block; font-size: 13px; font-weight: 600; color: var(--ink-3); margin-bottom: 2px; }
.screen-top strong { font-family: var(--display); font-weight: 600; font-size: 22px; letter-spacing: -0.3px; }
.screen-top .num { color: var(--accent-text); font-size: 15px; }
.card { background: var(--surface); border-radius: var(--radius); padding: 16px 12px 12px 14px; display: flex; flex-direction: column; }
.card h4 { font-family: var(--display); font-weight: 600; font-size: 17px; letter-spacing: -0.2px; }
.otto-line { display: flex; gap: 8px; align-items: center; margin: 8px 0 2px; font-size: 13px; line-height: 1.4; color: var(--ink-2); }
.otto-line img { width: 28px; height: 28px; flex: none; }
.otto-line b { color: var(--coral-text); font-weight: 600; }
/* setHeader: 10 pt, vet, ruim gespatieerd */
.set-head, .set { display: grid; grid-template-columns: 22px 1fr 54px 46px 44px; gap: 8px; align-items: center; }
.set-head { margin: 12px 0 6px; font-size: 10px; font-weight: 700; letter-spacing: 1px; color: var(--ink-2); }
.set-head span:nth-child(n+3) { text-align: center; }
/* setRow: 44 hoog, de strook steekt links 8 uit en valt rechts samen met het vinkje */
.set { position: relative; min-height: 44px; margin: 0 0 4px -8px; padding-left: 8px; }
.strip { position: absolute; inset: 0; border-radius: var(--radius-small); overflow: hidden; pointer-events: none; }
.strip::before, .strip::after { content: ''; position: absolute; inset: 0; transform-origin: right; transform: scaleX(0); opacity: 0; }
.strip::before { background: var(--accent-soft); }
.strip::after { background: var(--gold-soft); }
.set.done .strip::before { transform: scaleX(1); opacity: 1; transition: transform 260ms cubic-bezier(0.33, 1, 0.68, 1); }
.set.pr .strip::before { opacity: 0; }
.set.pr .strip::after { transform: scaleX(1); opacity: 1; transition: transform 260ms cubic-bezier(0.33, 1, 0.68, 1); }
/* De lichtstreep over een vers record (SHINE_W = 90, 700 ms na 220 ms) */
.shine { position: absolute; top: 0; bottom: 0; left: 0; width: 90px; opacity: 0; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--gold) 45%, transparent), transparent); }
.set.pr .shine { animation: shine 700ms cubic-bezier(0.45, 0, 0.55, 1) 220ms both; }
@keyframes shine { from { opacity: 1; transform: translateX(-90px); } 99% { opacity: 1; } to { opacity: 0; transform: translateX(300px); } }
.set > *:not(.strip) { position: relative; }
.set .i { text-align: center; font-weight: 700; color: var(--ink-2); font-size: 15px; }
.set .i svg { width: 15px; height: 15px; color: var(--gold-text); display: none; }
.set.pr .i b { display: none; }
.set.pr .i svg { display: inline-block; animation: stamp var(--duration-slow) var(--ease-out) both; }
/* De trofee stempelt erin — zonder door te veren */
@keyframes stamp { from { opacity: 0; transform: scale(0.4); } }
.set .prev { font-size: 13px; white-space: nowrap; overflow: hidden; color: var(--ink-2); transition: color var(--duration-base) var(--ease-out); }
.set.done .prev { color: var(--ink-3); }
/* FieldBox: gewoon vak, clay zolang het Otto's voorstel is, weg als de set af is */
.field { height: 44px; border-radius: var(--radius-small); display: flex; align-items: center; justify-content: center; font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; position: relative; }
.field::before { content: ''; position: absolute; inset: 0; border-radius: inherit; background: var(--fill); transition: opacity var(--duration-base) linear, background-color var(--duration-base) linear; }
.field.sug::before { background: var(--coral-soft); }
.field.sug { color: var(--coral-text); }
.field span { position: relative; }
.set.done .field::before { opacity: 0; }
.set.done .field { color: var(--ink); transition: color var(--duration-base) linear; }
/* SetCheck */
.check { position: relative; width: 44px; height: 44px; border-radius: var(--radius-small); background: var(--fill); display: flex; align-items: center; justify-content: center; }
.check::before { content: ''; position: absolute; inset: 0; border-radius: inherit; background: var(--accent); opacity: 0; transition: opacity var(--duration-base) var(--ease-out); }
.check .glow { position: absolute; inset: -7px; border-radius: var(--radius); background: var(--accent); opacity: 0; pointer-events: none; }
.check svg { position: relative; width: 17px; height: 17px; color: var(--ink-3); transition: color var(--duration-base) var(--ease-out); }
.set.next .check { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--accent) 70%, transparent); }
.set.done .check::before { opacity: 1; }
.set.done .check svg { color: var(--on-accent); }
.set.done .check .glow { animation: glow 520ms cubic-bezier(0.5, 1, 0.89, 1); }
.set.pr .check::before { background: var(--gold); }
.set.pr .check svg { color: var(--on-gold); }
.set.pr .check .glow { background: var(--gold); animation: glow-pr 720ms cubic-bezier(0.5, 1, 0.89, 1); }
@keyframes glow { 0% { opacity: 0; transform: scale(0.7); } 15% { opacity: 0.4; } 100% { opacity: 0; transform: scale(2); } }
@keyframes glow-pr { 0% { opacity: 0; transform: scale(0.7); } 15% { opacity: 0.4; } 100% { opacity: 0; transform: scale(2.6); } }
/* Rusttimer: de balk die na een set van onder binnenschuift */
.rest {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 0 16px 22px; background: var(--panel);
  transform: translateY(100%); opacity: 0;
  transition: transform var(--duration-slow) var(--ease-sheet), opacity var(--duration-base) var(--ease-out);
}
.rest.on { transform: none; opacity: 1; }
.rest .track { height: 3px; margin: 0 -16px; background: var(--on-panel-fill); }
.rest .fill { height: 3px; width: 100%; background: var(--water-light); transform-origin: left; transform: scaleX(1); }
.rest.on .fill { transform: scaleX(0); transition: transform 9s linear; }
.rest p { font-size: 12px; font-weight: 600; color: var(--water-light); text-align: center; margin-top: 12px; }
.rest .clock { display: block; text-align: center; font-size: 40px; line-height: 46px; letter-spacing: -0.5px; color: var(--on-panel); }
.rest .btns { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-top: 10px; }
.rest .btns span { height: 44px; border-radius: var(--radius-pill); background: var(--on-panel-fill); display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; color: var(--on-panel); }
.rest .btns span:last-child { background: var(--water-light); color: var(--on-accent); }
/* Confetti voor het record (components/Confetti.tsx), binnen het scherm */
.confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; border-radius: 44px; }
.confetti i {
  position: absolute; left: var(--x); top: var(--y); width: var(--w); height: var(--h); border-radius: var(--r); background: var(--c);
  animation: piece 2400ms linear both;
}
@keyframes piece {
  0% { transform: translate(0, 0) rotate(0) rotateX(0); opacity: 1; animation-timing-function: cubic-bezier(0.2, 0.7, 0.4, 1); }
  35% { transform: translate(calc(var(--dx) * 0.8), var(--up)) rotate(calc(var(--spin) * 0.4)) rotateX(220deg); opacity: 1; animation-timing-function: cubic-bezier(0.5, 0, 0.8, 0.6); }
  100% { transform: translate(var(--dx), 520px) rotate(var(--spin)) rotateX(900deg); opacity: 0.9; }
}

/* ---- Strook ---- */
.strip-band { border-top: 1px solid var(--sep); border-bottom: 1px solid var(--sep); overflow: hidden; }
.marquee { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee div { display: flex; gap: 48px; padding: 22px 24px; font-size: 15px; color: var(--ink-2); }
.marquee span { display: inline-flex; align-items: center; gap: 12px; white-space: nowrap; }
.marquee span::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---- Secties ---- */
.section { padding-top: clamp(72px, 10vw, 136px); padding-bottom: clamp(72px, 10vw, 136px); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 48px; }
.section-head h2 { max-width: 640px; }
.section-head p { max-width: 380px; font-size: 17px; line-height: 1.55; color: var(--ink-2); }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.step { background: var(--surface); border-radius: var(--radius-hero); padding: 30px; display: flex; flex-direction: column; gap: 14px; min-height: 260px; }
.step .num { color: var(--accent-text); font-size: 15px; }
.step h3 { font-family: var(--display); font-weight: 600; font-size: 24px; letter-spacing: -0.3px; }
.step p { font-size: 16px; line-height: 1.6; color: var(--ink-2); }

/* ---- Coach: op papier, zoals de app in licht (lightTheme) ---- */
.paper { background: var(--light-bg); color: var(--light-label); }
.paper .kicker { color: var(--light-label-tertiary); }
.coach { display: flex; flex-wrap: wrap; gap: clamp(48px, 6vw, 96px); align-items: center; }
.coach-copy { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.coach-copy .lede { color: var(--light-label-secondary); max-width: 500px; }
.ticks { display: flex; flex-direction: column; gap: 12px; padding: 4px 0 0; margin: 0; list-style: none; }
.ticks li { display: flex; gap: 12px; align-items: center; font-size: 16px; }
.ticks svg { width: 20px; height: 20px; flex: none; color: var(--light-accent-text); }
.chat { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 14px; min-height: 420px; }
.msg { display: flex; gap: 12px; align-items: flex-start; max-width: 470px; }
.msg img { width: 40px; height: 40px; flex: none; margin-top: 2px; }
.msg .bubble { position: relative; background: var(--light-surface); border-radius: var(--radius); padding: 16px 20px; box-shadow: 0 1px 2px rgba(31, 36, 32, 0.06), 0 8px 24px rgba(31, 36, 32, 0.06); min-width: 84px; }
.msg small { display: block; font-size: 13px; font-weight: 600; color: var(--light-accent-text); margin-bottom: 6px; }
.msg p { font-size: 16px; line-height: 1.5; }
.msg + .msg { margin-left: clamp(0px, 4vw, 52px); }
/* OttoTyping: drie stippen, een golf van 300 ms per stip en 130 ms ertussen */
.typing { display: none; gap: 5px; padding: 6px 0; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--light-label); opacity: 0.32; animation: dot 690ms infinite; }
.typing i:nth-child(2) { animation-delay: 130ms; }
.typing i:nth-child(3) { animation-delay: 260ms; }
@keyframes dot { 0% { opacity: 0.32; transform: none; animation-timing-function: cubic-bezier(0.5, 1, 0.89, 1); } 21.7% { opacity: 0.9; transform: translateY(-3px); animation-timing-function: cubic-bezier(0.11, 0, 0.5, 0); } 43.5%, 100% { opacity: 0.32; transform: none; } }
.msg.typing-now .typing { display: flex; }
.msg.typing-now .said { display: none; }
.said { animation: none; }
.msg.said-now .said { animation: fade var(--duration-base) var(--ease-out); }
@keyframes fade { from { opacity: 0; } }
.me { align-self: flex-end; background: var(--light-label); color: var(--light-surface); border-radius: var(--radius); padding: 14px 20px; font-size: 16px; line-height: 1.5; max-width: 340px; }

/* ---- Voortgang ---- */
.progress { display: flex; flex-wrap: wrap; gap: clamp(48px, 6vw, 96px); align-items: center; }
.progress-visual { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.progress-copy { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
/* WeekHero op een HeroCard met water */
.hero-card { position: relative; overflow: hidden; isolation: isolate; border-radius: var(--radius-hero); padding: 22px; background: var(--panel); color: var(--on-panel); }
.hero-card .kicker { color: var(--on-panel-3); }
.week-title { font-family: var(--display); font-weight: 600; font-size: 28px; line-height: 32px; letter-spacing: -0.5px; margin-top: 6px; }
.bars { display: flex; gap: 6px; margin-top: 12px; }
.bars i { width: 28px; height: 6px; border-radius: var(--radius-pill); background: var(--on-panel-fill); position: relative; overflow: hidden; }
.bars i::after { content: ''; position: absolute; inset: 0; background: var(--water-light); transform-origin: left; transform: scaleX(0); transition: transform var(--duration-slow) var(--ease-out); transition-delay: calc(var(--n) * var(--stagger-step) + 200ms); }
.in .bars i.on::after { transform: scaleX(1); }
.facts { display: flex; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--on-panel-fill); }
.facts div { flex: 1; }
.facts b { display: block; font-family: var(--display); font-weight: 600; font-size: 20px; font-variant-numeric: tabular-nums; }
.facts span { font-size: 12px; color: var(--on-panel-3); }
/* TrendChart / DotLineChart: één lijn van 1,5 pt met stippen, het laatste punt groter */
.chart-card { background: var(--surface); border-radius: var(--radius-hero); padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.chart-top { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 8px; }
.chart-top small { display: block; font-size: 13px; font-weight: 600; color: var(--ink-3); margin-bottom: 4px; }
.chart-top .big { font-size: 34px; letter-spacing: -0.5px; }
.chart-top .delta { color: var(--accent-text); font-size: 15px; }
.chart { position: relative; height: 160px; }
.chart svg { display: block; width: 100%; height: 100%; overflow: visible; }
.chart polyline { fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.chart circle { fill: var(--accent); stroke: var(--surface); stroke-width: 2; }
.chart circle.pr { fill: var(--gold); }
.chart .pr-label { position: absolute; transform: translate(-50%, -150%); font-family: var(--display); font-weight: 700; font-size: 12px; color: var(--gold-text); }
.chart.draw polyline { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1200ms var(--ease-in-out); }
.chart.draw circle, .chart.draw .pr-label { opacity: 0; transition: opacity var(--duration-base) var(--ease-out); transition-delay: var(--at); }
.chart.drawn polyline { stroke-dashoffset: 0; }
.chart.drawn circle, .chart.drawn .pr-label { opacity: 1; }
.weeks { display: flex; justify-content: space-around; font-size: 12px; color: var(--ink-3); }

/* ---- Functies ---- */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding-bottom: clamp(72px, 10vw, 136px); }
@media (max-width: 1040px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }
.feature { background: var(--surface); border-radius: var(--radius-hero); padding: 28px; display: flex; flex-direction: column; gap: 12px; transition: background-color var(--duration-base) var(--ease-out); }
.feature:hover { background: var(--surface-soft); }
/* Icoontegel: neutraal vlak, accent alleen in het icoon */
.feature .tile { width: 44px; height: 44px; border-radius: var(--radius-tile); background: var(--fill); display: flex; align-items: center; justify-content: center; }
.feature svg { width: 22px; height: 22px; color: var(--accent); }
.feature.gold svg { color: var(--gold); }
.feature h3 { font-size: 18px; font-weight: 600; }
.feature p { font-size: 15px; line-height: 1.55; color: var(--ink-2); }

/* ---- Maker ---- */
.maker { border-top: 1px solid var(--sep); }
.maker .wrap { max-width: 860px; display: flex; flex-direction: column; gap: 26px; padding-top: clamp(72px, 10vw, 120px); padding-bottom: clamp(72px, 10vw, 120px); }
.maker blockquote { margin: 0; font-family: var(--display); font-weight: 500; font-size: clamp(24px, 2.8vw, 34px); line-height: 1.3; letter-spacing: -0.02em; }
.who { display: flex; align-items: center; gap: 14px; }
.who .avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--surface-soft); display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 700; font-size: 18px; }
.who b { display: block; font-weight: 600; font-size: 16px; }
.who span { font-size: 14px; color: var(--ink-3); }

/* ---- Lancering: het bedankje, en een open deur voor bugs en ideeën ---- */
.launch { display: flex; flex-wrap: wrap; gap: 16px; padding-bottom: clamp(72px, 10vw, 120px); }
.letter { flex: 2 1 520px; min-width: 0; background: var(--surface); border-radius: var(--radius-hero); padding: clamp(28px, 5vw, 56px); display: flex; flex-direction: column; gap: 16px; }
.letter h2 { margin-bottom: 4px; }
.letter p:not(.kicker) { font-size: 18px; line-height: 1.65; color: var(--ink-2); max-width: 620px; }
.letter .sign { font-family: var(--display); font-weight: 600; font-size: 20px; color: var(--ink); margin-top: 4px; }
.ideas { flex: 1 1 300px; min-width: 0; border: 1px solid var(--sep); border-radius: var(--radius-hero); padding: clamp(28px, 4vw, 40px); display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.ideas h3 { font-family: var(--display); font-weight: 600; font-size: 24px; letter-spacing: -0.3px; }
.ideas p { font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.ideas .btn { margin-top: auto; }

/* ---- Slot: de donkere waterkaart (HeroCard met OttoWater calm) ---- */
.cta-wrap { padding-bottom: clamp(48px, 6vw, 80px); }
.cta {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: 36px; padding: clamp(48px, 8vw, 104px) clamp(24px, 6vw, 80px);
  background: var(--panel);
  display: flex; flex-direction: column; align-items: flex-start; gap: 28px;
}
.cta h2 { font-size: clamp(38px, 5.4vw, 72px); line-height: 1; letter-spacing: -0.035em; max-width: 860px; }
.cta p { font-size: 19px; line-height: 1.5; color: var(--on-panel-2); max-width: 520px; }

/* OttoWater: een verloop van panel naar bg, met twee lagen van dezelfde
   caustics-tegel die tegen elkaar in schuiven (42 en 58 s per ronde, ×3 bij
   calm, op half licht). Een laag schuift precies één tegel per ronde. */
.water, .water::before, .water::after { position: absolute; inset: 0; }
.water { z-index: -1; pointer-events: none; background: linear-gradient(var(--dark-panel), var(--dark-bg)); }
.water::before, .water::after {
  content: ''; background: var(--water-light);
  -webkit-mask: url(/caustics.png) repeat; mask: url(/caustics.png) repeat;
  animation: drift linear infinite;
}
/* De app-tegel is 128 pt, vergroot 2,8× (ver) en 1,8× (dichtbij) */
.water::before { --t: 358px; -webkit-mask-size: var(--t); mask-size: var(--t); opacity: calc(0.18 * 0.5); animation-duration: 174s; animation-direction: reverse; }
.water::after { --t: 230px; -webkit-mask-size: var(--t); mask-size: var(--t); opacity: calc(0.34 * 0.5); animation-duration: 126s; }
@keyframes drift {
  from { -webkit-mask-position: 0 0; mask-position: 0 0; }
  to { -webkit-mask-position: var(--t) var(--t); mask-position: var(--t) var(--t); }
}

/* ---- Voet ---- */
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding-top: 28px; padding-bottom: 44px; font-size: 14px; color: var(--ink-3); }
footer .links { display: flex; flex-wrap: wrap; gap: 24px; }
footer .links a { color: var(--ink-2); padding: 12px 0; transition: color var(--duration-base) var(--ease-out); }
footer .links a:hover { color: var(--ink); }
footer .mark { --h: 16px; }
footer .wordmark { font-size: 15px; }

@media (max-width: 560px) {
  .phone { width: 100%; }
}

/* ---- Verminder beweging: alleen een korte fade, niets dat schuift ---- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal, .js .reveal.big { transform: none; transition: opacity var(--duration-base) var(--ease-out); transition-delay: 0ms; }
  .mark.grow span, .marquee, .water::before, .water::after, .typing i, .set .shine, .set .glow, .set.pr .i svg { animation: none !important; }
  .strip::before, .strip::after, .bars i::after, .rest, .rest .fill { transition: none !important; }
  .marquee { width: auto; }
  .marquee div[aria-hidden] { display: none; }
  .marquee div { flex-wrap: wrap; row-gap: 12px; }
  .confetti { display: none; }
}
