/* Leeswijzer landing page, in the design language of minuut.eu: Instrument Sans
   display type, Geist body, a Zodiak serif line in green, the green ↗ button,
   thin-bordered cards on a sage ground. Playful extras: the mascot in the
   headline, floating category pills, j/k to hop between sections. Motion: the
   transitions.dev scale. */

@font-face { font-family: "Instrument Sans"; src: url("/leeswijzer/fonts/instrument-sans-400.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("/leeswijzer/fonts/instrument-sans-500.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("/leeswijzer/fonts/instrument-sans-600.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Geist"; src: url("/leeswijzer/fonts/geist-400.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Geist"; src: url("/leeswijzer/fonts/geist-500.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Geist"; src: url("/leeswijzer/fonts/geist-600.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Zodiak"; src: url("/leeswijzer/fonts/zodiak-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  /* minuut.eu palette */
  --ink: #182b24;
  --ink-2: #343b36;
  --ink-soft: #58625c;
  --ink-faint: #667067;
  --intro: #737773;
  --green: #285640;
  --green-strong: #1e4432;
  --green-deep: #163b2b;
  --green-wash: #e6ece7;
  --green-border: #b9cbbf;
  --ground: #f3f5f4;
  --ground-2: #eef1ef;
  --line: #dce2dd;
  --paper: #fafaf9;
  --font-display: "Instrument Sans", system-ui, sans-serif;
  --font-sans: "Geist", system-ui, sans-serif;
  --font-serif: "Zodiak", Georgia, serif;
  --ease-site: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: clamp(24px, 4.45vw, 80px);
}

* { box-sizing: border-box; }
html { scroll-padding-top: 32px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 4px; }
.container { max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--ink-soft); }

/* ---- Header -------------------------------------------------------------------- */
.site-header { border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 104px; }
.wordmark { font: 600 34px/40px var(--font-display); letter-spacing: -0.06em; white-space: nowrap; }
.wordmark span { color: var(--green); }
.wordmark.small { font-size: 24px; }
.desktop-nav { display: flex; gap: 32px; }
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font: 500 15px/22px var(--font-display);
  transition: border-color 0.22s var(--ease-site);
}
.text-link:hover { border-color: var(--ink); }
.button > span:last-child, .text-link > span { display: inline-block; font-size: 21px; line-height: 1; transition: transform 0.3s var(--ease-site); }
.button:hover > span:last-child, .text-link:hover > span { transform: translate(2px, -2px); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 58px;
  padding: 17px 24px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: var(--green);
  color: #fff;
  font: 500 15px/22px var(--font-display);
  transition: background-color 0.22s var(--ease-site), transform 0.22s var(--ease-site);
  cursor: pointer;
}
.button:hover { background: var(--green-strong); }
.button:active { transform: translateY(1px); }
.button-ghost { min-height: 44px; padding: 10px 16px; background: #fff; color: var(--ink); border-color: var(--line); }
.button-ghost:hover { background: var(--ground); }
.button-light { background: #fff; color: var(--ink); }
.button-light:hover { background: var(--green-wash); }
.button.is-off { background: var(--ground-2); color: var(--ink-soft); cursor: default; }
.install-text { display: inline-flex; align-items: center; gap: 10px; }
.install-icon { display: inline-flex; width: 20px; height: 20px; }
.install-icon svg { width: 100%; height: 100%; }

/* ---- Hero ----------------------------------------------------------------------- */
.hero { padding-bottom: 72px; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
  align-items: center;
  column-gap: clamp(40px, 5vw, 88px);
  padding-top: 72px;
}
.hero-copy { min-width: 0; }
.kicker { margin: 0 0 22px; font: 500 15px/1.2 var(--font-display); color: var(--green); letter-spacing: 0.01em; }
.hero-video { min-width: 0; }
.hero-video video {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--ground);
  box-shadow: 0 1px 2px rgb(24 43 36 / 0.06), 0 24px 60px rgb(24 43 36 / 0.14);
}
/* The headline sizes to its own column (container units), not the window, and
   never breaks inside a line: zooming or a narrow column only scales it. */
.hero-title { container-type: inline-size; min-width: 0; }
h1 {
  margin: 0;
  font: 500 clamp(34px, 11.6cqi, 84px)/1.015 var(--font-display);
  letter-spacing: -0.055em;
}
h1 .line, .hero-promise { display: block; white-space: nowrap; }
.hero-promise {
  display: block;
  margin-top: -0.035em;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 0.98em;
  line-height: 1.06;
  letter-spacing: -0.05em;
  color: var(--green);
}
.hero-mascot { display: inline-block; margin-left: 0.14em; vertical-align: -0.06em; }
.hero-intro { max-width: 520px; margin-top: 26px; }
.hero-intro > p:first-child { margin: 0; font: 400 clamp(18px, 1.4vw, 22px)/1.55 var(--font-display); color: var(--intro); }
.hero-intro > p:first-child strong { color: var(--ink); font-weight: 600; }
.cta { margin-top: 30px; }
.hero-note { display: flex; align-items: center; gap: 7px; margin: 14px 0 0; font-size: 13px; line-height: 1.5; color: var(--ink-faint); }
.hero-note svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; }

/* Texts reveal (transitions.dev): staggered blurred rise. */
.r1, .r2, .r3, .r4 { animation: t-reveal 500ms ease-in-out both; }
.r2 { animation-delay: 80ms; }
.r3 { animation-delay: 160ms; }
.r4 { animation-delay: 240ms; }
@keyframes t-reveal { from { opacity: 0; transform: translateY(12px); filter: blur(3px); } }

/* ---- Trust bar ----------------------------------------------------------------------- */
.trustbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 24px 64px;
  min-height: 80px;
  padding: 25px var(--gutter);
  background: var(--ground);
  border-block: 1px solid var(--line);
}
.trustbar > span { display: inline-flex; align-items: center; gap: 12px; font-size: 14px; line-height: 22px; white-space: nowrap; }
.trustbar svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }

/* ---- Sections ---------------------------------------------------------------------------- */
h2 { margin: 0; font: 500 clamp(36px, 3.6vw, 52px)/1.08 var(--font-display); letter-spacing: -0.045em; }
h3 { margin: 0 0 8px; font: 500 24px/1.2 var(--font-display); letter-spacing: -0.03em; }
.section-intro { max-width: 680px; }
.section-intro p { margin: 18px 0 0; font-size: 18px; color: var(--ink-soft); }

.how { padding-top: 112px; }
.steps { display: grid; grid-template-columns: 1fr 1.35fr 1fr; gap: 32px; align-items: start; margin-top: 56px; }
.step-mid { margin-top: -40px; }
.frost {
  margin: 0 0 26px;
  padding: 22px;
  border-radius: 6px;
  background: linear-gradient(160deg, #eef1ef, #dfe5e1);
  overflow: hidden;
  transition: transform 0.4s var(--ease-site);
}
.frost img { border-radius: 8px; box-shadow: 0 12px 30px rgb(24 43 36 / 0.16); }
.step:hover .frost { transform: translateY(-4px) rotate(-0.4deg); }
.step-n { display: block; margin-bottom: 8px; font: 400 30px/1 var(--font-serif); color: var(--green); }
.step p { margin: 0; color: var(--ink-soft); }
kbd { padding: 0 6px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; background: #fff; font: 500 13px var(--font-sans); }

/* Cards, as on minuut.eu: thin border on a sage ground with line art. */
.features { padding-top: 112px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding-top: 40px; }
.card { padding: 32px; border: 1px solid var(--line); border-radius: 4px; background: var(--ground); }
.card p { margin: 0; color: var(--ink-soft); }
.card-wide { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; }
.art { display: block; width: 100%; max-width: 280px; margin: 8px auto 26px; overflow: visible; }
.art .paper { fill: #fff; stroke: #c9d2cc; }
.art .rule { stroke: #c9d2cc; stroke-width: 2; stroke-linecap: round; }
.art .wire { fill: none; stroke: #b9c4bd; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.art .under { stroke: var(--green); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 42; stroke-dashoffset: 42; animation: art-under 3s var(--ease-site) infinite; }
@keyframes art-under { 0%, 20% { stroke-dashoffset: 42; } 50%, 85% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 42; } }
.art .badge { fill: var(--ink); }
.art .badge.soft { fill: #c9d2cc; }
.art .tick { fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.art .key { fill: #fff; stroke: #c9d2cc; stroke-width: 1.5; animation: key-press 2.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.art .k2 { animation-delay: 1.2s; }
@keyframes key-press { 0%, 40%, 100% { transform: none; } 48% { transform: translateY(2px) scale(0.96); fill: var(--green-wash); } }
.art .keytxt { font: 600 20px var(--font-display); text-anchor: middle; fill: var(--ink); }
.pills { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.pill {
  padding: 7px 14px;
  border-radius: 999px;
  font: 500 15px var(--font-display);
  animation: float 5s ease-in-out infinite;
  transition: transform 0.3s var(--ease-site);
}
.pill:nth-child(2n) { animation-delay: -1.3s; }
.pill:nth-child(3n) { animation-delay: -2.6s; }
.pill:hover { transform: translateY(-3px) rotate(-2deg); }
@keyframes float { 50% { transform: translateY(-4px); } }
.c-kader { background: var(--mnt-cat-kader-bg); color: var(--mnt-cat-kader-ink); }
.c-toepassing { background: var(--mnt-cat-toepassing-bg); color: var(--mnt-cat-toepassing-ink); box-shadow: inset 0 0 0 1.5px var(--mnt-cat-toepassing-ink); }
.c-obiter { background: var(--mnt-cat-obiter-bg); color: var(--mnt-cat-obiter-ink); }
.c-stellingen { background: var(--mnt-cat-stellingen-bg); color: var(--mnt-cat-stellingen-ink); }
.c-feiten { background: #fff; color: var(--mnt-cat-feiten-ink); }
.c-proces { background: #fff; color: var(--mnt-cat-proces-ink); box-shadow: inset 0 0 0 1px var(--line); }
.c-beslissing { background: var(--mnt-cat-beslissing-bg); color: var(--mnt-cat-beslissing-ink); }

/* ---- Privacy -------------------------------------------------------------------------------- */
.privacy { padding-top: 96px; }
.privacy-card { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; padding: 48px; border: 1px solid var(--green-border); border-radius: 4px; background: var(--green-wash); }
.privacy-head p { margin: 16px 0 0; font-size: 18px; color: var(--ink-soft); }
.privacy-card ul { display: grid; gap: 20px; margin: 0; padding: 0; list-style: none; }
.privacy-card li { position: relative; padding-left: 30px; color: var(--ink-soft); }
.privacy-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2 7 10.6l4.6-5' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.privacy-card b { display: block; color: var(--ink); font-weight: 600; }

.privacy-links { display: flex; flex-wrap: wrap; gap: 8px 28px; }

/* ---- Open-source dialog (native <dialog>: focus trap, Escape and backdrop for free) ---------- */
html:has(dialog.oss[open]) { overflow: hidden; }
.oss {
  width: min(600px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 24px 64px rgb(24 43 36 / 0.18), 0 2px 8px rgb(24 43 36 / 0.06);
}
.oss[open] { animation: oss-in 400ms var(--ease-site) both; }
.oss::backdrop { background: rgb(22 59 43 / 0.4); backdrop-filter: blur(3px); }
.oss[open]::backdrop { animation: oss-fade 250ms ease-out both; }
@keyframes oss-in { from { opacity: 0; transform: translateY(12px) scale(0.97); } }
@keyframes oss-fade { from { opacity: 0; } }
.oss-inner { position: relative; padding: 44px 44px 40px; }
.oss-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: none;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background-color 0.22s var(--ease-site), color 0.22s var(--ease-site);
}
.oss-close:hover { background: var(--ground); color: var(--ink); }
.oss-close svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.oss-kicker { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; padding: 5px 12px; border-radius: 999px; background: var(--green-wash); color: var(--green); font: 500 14px/1.2 var(--font-display); }
.oss-kicker svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.oss h2 { font-size: clamp(30px, 4vw, 40px); padding-right: 32px; }
.oss h2 span { font-family: var(--font-serif); font-weight: 400; color: var(--green); }
.oss-lede { margin: 16px 0 0; font-size: 17px; color: var(--ink-soft); }
.oss-points { display: grid; gap: 14px; margin: 28px 0 0; padding: 24px 0 0; border-top: 1px solid var(--line); list-style: none; }
.oss-points li { position: relative; padding-left: 30px; color: var(--ink-soft); }
.oss-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2 7 10.6l4.6-5' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.oss-points b { color: var(--ink); font-weight: 600; }
.oss-actions { margin-top: 28px; }
@media (max-width: 960px) {
  .oss-inner { padding: 36px 24px 28px; }
  .oss-actions .button { width: 100%; }
}

/* ---- Install steps -------------------------------------------------------------------------- */
.install-steps { max-width: 820px; margin-top: 96px; padding-top: 40px; padding-bottom: 40px; border: 1px solid var(--line); border-radius: 4px; background: #fff; animation: t-reveal 500ms ease-in-out both; }
.install-steps ol { margin: 20px 0; padding-left: 22px; }
.install-steps li { margin: 10px 0; }
code { padding: 2px 7px; border-radius: 5px; background: var(--ground); font-size: 14px; }
.copy { margin-left: 8px; padding: 2px 10px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font: 500 13px var(--font-sans); cursor: pointer; }

/* ---- FAQ ----------------------------------------------------------------------------------- */
.faq { max-width: 920px; padding-top: 112px; }
.faq h2 { margin-bottom: 24px; }
details { border-top: 1px solid var(--line); }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { display: flex; justify-content: space-between; align-items: center; padding: 20px 0; font: 500 19px var(--font-display); letter-spacing: -0.02em; cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font: 400 26px/1 var(--font-display); color: var(--green); transition: transform 0.3s var(--ease-site); }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 0 0 22px; max-width: 720px; color: var(--ink-soft); animation: t-reveal 400ms ease-in-out both; }

/* ---- Minuut ----------------------------------------------------------------------------------- */
.minuut { padding-top: 112px; padding-bottom: 96px; }
.minuut-card {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  padding: 56px;
  border-radius: 9px;
  background: linear-gradient(rgb(22 59 43 / 0.82), rgb(22 59 43 / 0.9)), url("/leeswijzer/img/hero-glass.jpg") center / cover;
  color: #fff;
}
.minuut-card .eyebrow { margin: 0 0 12px; font: 500 14px var(--font-display); color: rgb(255 255 255 / 0.7); }
.minuut-card h2 { max-width: 760px; color: #fff; }
.minuut-card h2 span { font-family: var(--font-serif); font-weight: 400; color: #cfe0d5; }
.minuut-card p { max-width: 620px; margin: 18px 0 0; color: rgb(255 255 255 / 0.75); }

.foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; padding-top: 32px; padding-bottom: 40px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-faint); }
.kbd-hint { margin-left: auto; }

/* ---- Small screens ----------------------------------------------------------------------------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; row-gap: 40px; padding-top: 40px; }
  .steps { grid-template-columns: 1fr; }
  .step-mid { margin-top: 0; }
  .cards { grid-template-columns: 1fr; }
  .card-wide { grid-template-columns: 1fr; gap: 24px; }
  .privacy-card { grid-template-columns: 1fr; gap: 28px; padding: 32px 24px; }
  .minuut-card { flex-direction: column; align-items: flex-start; padding: 36px 24px; }
  .desktop-nav, .kbd-hint { display: none; }
  .nav-inner { min-height: 80px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .art .under { stroke-dashoffset: 0; }
}

/* ---- Privacy statement ---------------------------------------------------------------- */
.legal { max-width: 820px; padding-top: 72px; padding-bottom: 96px; }
.legal-title { font: 500 clamp(40px, 5vw, 60px)/1.05 var(--font-display); letter-spacing: -0.05em; }
.legal-meta { margin: 14px 0 40px; font-size: 14px; color: var(--ink-faint); }
.legal h2 { margin: 40px 0 12px; font-size: 26px; letter-spacing: -0.03em; }
.legal p, .legal li { color: var(--ink-soft); }
.legal li { margin: 8px 0; }
.legal b { color: var(--ink); }
.legal a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }

/* The headline mascot scales with the headline, not fixed pixels. */
.hero-mascot .mascot { width: 0.8em !important; height: 0.8em !important; }
