:root {
  color-scheme: light;
  --ink: #173c31;
  --ink-soft: #4a6659;
  --ink-mute: #7a8f85;
  --paper: #f8f3e8;
  --paper-deep: #efe6d2;
  --card: #fffdf7;
  --sage: #dfeadb;
  --sage-strong: #b9d0ad;
  --clay: #a34e28;
  --clay-soft: #f4e3d8;
  --amber: #d98d36;
  /* Huisstijlgroen RAL 6024 (verkeersgroen) als #257e2a: wit erop 5,1:1; als
     tekst op papier maar krap AA (4,6:1), daarom --leaf-deep (6,4:1) voor tekst. */
  --leaf: #257e2a;
  --leaf-bright: #257e2a;
  --leaf-deep: #1e6622;
  --leaf-soft: #ddefde;
  --white: #fffdf7;
  --line: rgba(23, 60, 49, 0.14);
  --line-soft: rgba(23, 60, 49, 0.08);
  --shadow-lg: 0 30px 70px rgba(23, 60, 49, 0.18);
  --shadow-md: 0 16px 40px rgba(23, 60, 49, 0.1);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --max: 1160px;
  --font-body:
    'Atkinson Hyperlegible', 'Avenir Next', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-display: 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, Charter, serif;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}
html.demo-full-open {
  overflow: hidden;
}
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
}
img {
  max-width: 100%;
  display: block;
}
p {
  margin: 0;
}
ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
button {
  font: inherit;
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--white);
  z-index: 100;
}
.skip-link:focus {
  top: 12px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(248, 243, 232, 0.9);
  border-bottom: 1px solid var(--line-soft);
  backdrop-filter: blur(14px);
}
.site-header-inner {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}
.brand img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}
.site-nav a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 0.95rem;
  text-decoration: none;
  white-space: nowrap;
}
.site-nav a:hover {
  background: rgba(23, 60, 49, 0.07);
  color: var(--ink);
}
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.lang-switch:hover {
  border-color: var(--ink);
}

/* ---------- Layout helpers ---------- */
.section {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 88px 0;
}
.section-tight {
  padding-top: 0;
}
.section-heading {
  max-width: 680px;
  margin-bottom: 40px;
}
.section-heading.center {
  margin-inline: auto;
  text-align: center;
}
.eyebrow {
  margin: 0 0 12px;
  color: var(--clay);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.76rem;
}
h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.02em;
}
h1 {
  font-size: clamp(2.2rem, 4.2vw, 3.3rem);
  max-width: 18ch;
}
h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
}
h3 {
  font-size: 1.3rem;
}
.lead {
  margin-top: 16px;
  font-size: clamp(1.02rem, 1.4vw, 1.15rem);
  color: var(--ink-soft);
  max-width: 560px;
}
.section-heading .lead {
  margin-top: 14px;
}
/* gecentreerde kop: de alinea zelf ook centreren (hij is smaller dan de kop) en regels
   gelijkmatig verdelen, zodat er geen los woord op de laatste regel blijft staan */
.section-heading.center .lead {
  margin-inline: auto;
}
h1,
h2,
.lead,
.plans-note {
  text-wrap: balance;
}

/* ---------- Buttons ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
}
.button:hover {
  transform: translateY(-1px);
}
.button-primary {
  background: var(--leaf);
  color: var(--white);
  box-shadow: 0 12px 28px rgba(37, 126, 42, 0.3);
}
.button-primary:hover {
  background: var(--leaf-deep);
}
.button-secondary {
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--ink);
}
.cta-card .button-secondary {
  background: var(--leaf-bright);
  border-color: var(--leaf-bright);
  color: var(--white);
}
.cta-card .button-secondary:hover {
  background: var(--leaf);
  border-color: var(--leaf);
}

/* ---------- Store badges ---------- */
.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.store-badge {
  position: relative;
  display: grid;
  grid-template-columns: 26px 1fr;
  align-items: center;
  gap: 10px;
  min-width: 180px;
  padding: 9px 14px 9px 12px;
  border-radius: 14px;
  background: linear-gradient(180deg, #288a2e, var(--leaf));
  color: var(--white);
  text-align: left;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 10px 24px rgba(37, 126, 42, 0.28);
  cursor: default;
}
.store-badge svg {
  width: 24px;
  height: 24px;
}
.store-badge small {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.75;
}
.store-badge strong {
  display: block;
  font-size: 1.02rem;
  line-height: 1.15;
}
.store-badge .soon {
  position: absolute;
  top: -10px;
  right: 12px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--amber);
  color: #1f1407;
  font-size: 0.66rem;
  font-weight: 800;
  font-style: normal;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.store-badge.light {
  background: linear-gradient(180deg, #288a2e, var(--leaf-bright));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 10px 24px rgba(0, 0, 0, 0.18);
}

/* ---------- Wachtlijst-formulier ---------- */
.signup {
  margin-top: 14px;
  max-width: 520px;
}
.signup-row {
  display: flex;
  gap: 8px;
}
.signup input[type='email'] {
  flex: 1;
  min-width: 0;
  min-height: 52px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
}
.signup input[type='email']::placeholder {
  color: var(--ink-mute);
}
.signup input[type='email']:focus-visible {
  outline: 3px solid rgba(37, 126, 42, 0.35);
  outline-offset: 1px;
  border-color: var(--leaf);
}
.signup input[aria-invalid='true'] {
  border-color: var(--clay);
}
.signup .button {
  flex: none;
}
.signup .button:disabled {
  opacity: 0.7;
  cursor: progress;
}
.signup-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.signup-note {
  margin-top: 8px;
  font-size: 0.84rem;
  color: var(--ink-soft);
}
.signup-note a {
  color: inherit;
  text-underline-offset: 3px;
}
.signup-status:not(:empty) {
  margin-top: 6px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--clay);
}
.signup-done {
  margin-top: 4px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: var(--leaf-soft);
  color: var(--leaf-deep);
  font-weight: 700;
}
.signup.is-done .signup-row,
.signup.is-done .signup-note {
  display: none;
}
.signup-dark {
  margin: 24px auto 0;
  text-align: left;
}
.signup-dark input[type='email'] {
  border-color: rgba(255, 253, 247, 0.3);
}
.signup-dark .signup-note {
  color: rgba(255, 253, 247, 0.75);
  text-align: center;
}
.signup-dark .signup-status:not(:empty) {
  color: #f2bd79;
  text-align: center;
}
.signup-dark .button-primary {
  background: var(--leaf-bright);
  box-shadow: none;
}

/* ---------- Intro + demo ---------- */
.stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 440px);
  grid-template-areas:
    'intro demo'
    'try demo';
  /* extra hoogte van de demo naar de laatste rij, zodat de intro niet meeschuift */
  grid-template-rows: auto 1fr;
  align-items: start;
  gap: clamp(2rem, 5vw, 5rem);
  padding-top: 48px;
  padding-bottom: 64px;
}
.intro {
  grid-area: intro;
}
.try {
  grid-area: try;
}
#demo {
  grid-area: demo;
  align-self: start;
}
.intro-note {
  margin-top: 16px;
  font-size: 0.92rem;
  color: var(--ink-soft);
  max-width: 520px;
}
.intro-note a {
  font-weight: 700;
  color: var(--ink);
  text-decoration-color: var(--sage-strong);
  text-underline-offset: 4px;
}
.intro .store-badges {
  margin-top: 26px;
}
.try {
  margin-top: 38px;
  padding-top: 28px;
  border-top: 1px solid var(--line-soft);
}
.try h2 {
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
}
.try .lead {
  margin-top: 8px;
  font-size: 1rem;
}
.feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  /* alle tegels even hoog, ook als een tekst een regel langer is */
  grid-auto-rows: 1fr;
  gap: 10px;
  margin-top: 20px;
}
.feature-list li {
  display: flex;
}
/* oneven aantal tegels: de laatste over de volle breedte, geen gat ernaast */
.feature-list li:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}
.feature-btn {
  display: grid;
  grid-template-columns: 38px 1fr;
  align-items: center;
  gap: 12px;
  width: 100%;
  height: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  background: var(--card);
  text-align: left;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}
.feature-btn:hover {
  transform: translateY(-1px);
  border-color: var(--sage-strong);
  box-shadow: var(--shadow-md);
}
.feature-btn.is-active {
  border-color: var(--leaf);
  background: var(--leaf-soft);
}
.feature-btn .ico {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--sage);
  color: var(--ink);
}
.feature-btn.is-active .ico {
  background: var(--leaf);
  color: var(--white);
}
.feature-btn .ico svg {
  width: 20px;
  height: 20px;
}
.feature-btn strong {
  display: block;
  font-size: 0.98rem;
  line-height: 1.2;
}
.feature-btn span.sub {
  display: block;
  margin-top: 2px;
  font-size: 0.84rem;
  color: var(--ink-soft);
  line-height: 1.35;
}

/* Demo-kader */
.demo {
  /* telefoon past ook op lage laptopschermen in beeld */
  --demo-w: min(100%, 380px, calc((100vh - 190px) * 0.44));
  display: grid;
  gap: 12px;
  justify-items: center;
}
@media (min-height: 1040px) {
  .demo {
    position: sticky;
    top: 80px;
  }
}
/* Kopbalk: op brede schermen alleen een omhulsel om de bediening; schermvullend een rij */
.demo-bar {
  display: contents;
}
.demo-bar .demo-close {
  display: none;
}

/* Chips met functies: alleen bij de kleine telefoon op smalle schermen */
.demo-chips {
  display: none;
  width: 100%;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 2px 6px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.demo-chips::-webkit-scrollbar {
  display: none;
}
.demo-chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 12px 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}
.demo-chip svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.demo-chip.is-active {
  background: var(--leaf);
  border-color: var(--leaf);
  color: var(--white);
}

/* Afspelen van flows: één balk met gesegmenteerde knop en twee ronde knoppen */
.demo-player {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  width: var(--demo-w);
  padding: 5px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: var(--card);
  box-shadow: 0 6px 18px rgba(23, 60, 49, 0.08);
}
/* Uitleg onder de bediening: wat afspelen, wisselen, pauze en opnieuw doen */
.demo-guide {
  width: var(--demo-w);
  margin: 2px 0 0;
  color: var(--ink-soft);
  font-size: 0.82rem;
  line-height: 1.4;
  text-align: center;
  text-wrap: balance;
}
.demo-guide strong {
  color: var(--ink);
}
.demo-guide-ico {
  display: inline-grid;
  place-items: center;
  width: 1.35em;
  height: 1.35em;
  margin: 0 1px;
  border: 1px solid var(--line-soft);
  border-radius: 50%;
  background: var(--card);
  color: var(--ink);
  vertical-align: -0.3em;
}
.demo-guide-ico svg {
  width: 0.85em;
  height: 0.85em;
}
.demo-flows {
  flex: 1;
  min-width: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: var(--paper-deep);
}
.demo-flow {
  min-width: 0;
  min-height: 34px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  font-size: 0.86rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  transition:
    background 160ms ease,
    color 160ms ease;
}
.demo-flow:hover {
  color: var(--ink);
}
.demo-flow.is-active {
  background: var(--leaf);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(37, 126, 42, 0.3);
}
.demo-ctrl {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--card);
  color: var(--ink);
  cursor: pointer;
}
.demo-ctrl svg {
  width: 18px;
  height: 18px;
}
.demo-ctrl:hover {
  border-color: var(--leaf);
  color: var(--leaf-deep);
}
.demo-pause {
  border-color: var(--leaf);
  background: var(--leaf);
  color: var(--white);
}
.demo-pause:hover {
  background: var(--leaf-deep);
  color: var(--white);
}
.demo-flow:focus-visible,
.demo-ctrl:focus-visible,
.demo-hint-more:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
}
/* Voortgang van de flow: dunne lijn net onder de afspeelbalk */
.demo-progress {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: -9px;
  height: 3px;
  border-radius: 999px;
  background: rgba(23, 60, 49, 0.12);
  overflow: hidden;
  pointer-events: none;
}
.demo-progress[hidden] {
  visibility: hidden;
  display: block;
}
.demo-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--leaf-bright);
}

.demo-frame {
  position: relative;
  width: var(--demo-w);
  padding: 8px;
  border-radius: 40px;
  background: #142b24;
  box-shadow: var(--shadow-lg);
}
.demo-stage {
  position: relative;
  width: 100%;
  /* 1080x2328-schermafbeelding plus 72 px statusbalk = 1080x2400 */
  aspect-ratio: 1080 / 2400;
  overflow: hidden;
  border-radius: 32px;
  background: var(--paper);
  touch-action: manipulation;
}
.demo-statusbar {
  position: absolute;
  inset: 0 0 auto;
  height: 3%;
  display: flex;
  align-items: center;
  padding: 0 7%;
  background: #f6f2ea;
  color: var(--ink);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.demo-statusbar-cam {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 9px;
  height: 9px;
  margin: -4.5px 0 0 -4.5px;
  border-radius: 50%;
  background: #142b24;
}
.demo-screen {
  position: absolute;
  inset: 3% 0 0;
}
.demo-layer,
.demo-hotspots {
  position: absolute;
  inset: 0;
}
.demo-hotspots {
  /* cqw in de gemeten hoekradius van een knop (--r) is de breedte van het scherm */
  container-type: size;
  transition: opacity 160ms ease;
}
.demo-hotspots.is-swapping {
  opacity: 0;
  transition: none;
}
.demo-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 260ms ease;
}
.demo-img.is-in {
  opacity: 1;
}
.demo-img.is-out {
  opacity: 0;
}

/* Hotspot: rode ring om de knop, pulserend; de tekst blijft vrij */
/* Het vlak is de knop zelf (gemeten, zie demo-rings.js) met diens hoekradius --r; de ring ligt
   overal --gap buiten de knop en volgt dezelfde vorm. demo.js rekent met RING_OUT = gap + bw. */
.demo-hot {
  --gap: 4px;
  --bw: 2.5px;
  --r: 999px;
  position: absolute;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  border-radius: var(--r);
}
.demo-hot::before,
.demo-hot::after {
  content: '';
  position: absolute;
  inset: calc(-1 * (var(--gap) + var(--bw)));
  border-radius: calc(var(--r) + var(--gap) + var(--bw));
  border: var(--bw) solid #d9402b;
  pointer-events: none;
}
.demo-hot::after {
  animation: ring 1.8s ease-out infinite;
}
.demo-hot.is-round {
  --r: 50%;
}
.demo-hot.is-round::before,
.demo-hot.is-round::after {
  border-radius: 50%;
}
.demo-hot.is-card {
  --r: 14px;
}
.demo-hot.is-card::after {
  animation-name: ring-card;
}
.demo-hot.is-quiet::before,
.demo-hot.is-quiet::after {
  display: none;
}
/* Terug-, sluit- en annuleerknoppen: dunne ring zonder puls, zodat de hoofdactie opvalt */
.demo-hot.is-back {
  --bw: 2px;
}
.demo-hot.is-back::before {
  opacity: 0.75;
}
.demo-hot.is-back::after {
  display: none;
}
.demo-hot.is-back.is-cued::before,
.demo-hot.is-back.is-next::before {
  opacity: 1;
}
/* Groot tikvlak (tik naast een paneel om het te sluiten): gestippelde ring binnen het vlak */
.demo-hot.is-area,
.demo-hot.is-area::before {
  border-radius: 18px;
}
.demo-hot.is-area::before {
  inset: 8px;
  border-style: dashed;
}
/* Aangewezen knop: dikkere ring naar buiten toe, de afstand tot de knop blijft gelijk */
.demo-hot.is-next,
.demo-hot.is-cued,
.demo-hot.is-back.is-next,
.demo-hot.is-back.is-cued {
  --bw: 3.5px;
}
.demo-hot.is-next::before,
.demo-hot.is-cued::before {
  box-shadow: 0 0 0 4px rgba(217, 64, 43, 0.25);
}
.demo-hot:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
}
@keyframes ring {
  0% {
    transform: scale(1);
    opacity: 0.9;
  }
  100% {
    transform: scale(1.25);
    opacity: 0;
  }
}
@keyframes ring-card {
  0% {
    transform: scale(1);
    opacity: 0.9;
  }
  100% {
    transform: scale(1.06, 1.12);
    opacity: 0;
  }
}
.demo-tap {
  position: absolute;
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  border-radius: 50%;
  background: rgba(217, 64, 43, 0.35);
  border: 2px solid rgba(217, 64, 43, 0.9);
  opacity: 0;
  pointer-events: none;
  transform: scale(0.4);
}
.demo-stage.is-tapping .demo-tap {
  animation: tap 700ms ease-out forwards;
}
@keyframes tap {
  0% {
    opacity: 0;
    transform: scale(0.4);
  }
  30% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(1.6);
  }
}

/* Ballon "Tik hier" bij de eerstvolgende omcirkelde knop zolang de demo stilstaat */
.demo-cue {
  /* --k: schaal met de schermbreedte (demo.js, updateCue), zodat de ballon op een kleine telefoon
     in verhouding even groot is en dezelfde plek vindt */
  --k: 1;
  --arrow-x: 50%;
  position: absolute;
  left: 0;
  top: 0;
  z-index: 3;
  padding: calc(5px * var(--k)) calc(11px * var(--k));
  border-radius: 999px;
  background: var(--amber);
  color: #1f1407;
  font-size: calc(12px * var(--k));
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(20, 43, 36, 0.28);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 200ms ease,
    visibility 0s linear 200ms;
}
.demo-cue::after {
  content: '';
  position: absolute;
  left: var(--arrow-x);
  top: 100%;
  margin-left: calc(-6px * var(--k));
  border: calc(6px * var(--k)) solid transparent;
  border-bottom-width: 0;
  border-top-color: var(--amber);
}
/* ballon onder de knop: pijl omhoog */
.demo-cue[data-side='bottom']::after {
  top: auto;
  bottom: 100%;
  border-top-width: 0;
  border-bottom-width: calc(6px * var(--k));
  border-top-color: transparent;
  border-bottom-color: var(--amber);
}
/* ballon links of rechts van de knop: pijl opzij */
.demo-cue[data-side='left']::after,
.demo-cue[data-side='right']::after {
  top: var(--arrow-y);
  margin: calc(-6px * var(--k)) 0 0;
  border-width: calc(6px * var(--k));
  border-color: transparent;
}
.demo-cue[data-side='left']::after {
  left: 100%;
  border-right-width: 0;
  border-left-color: var(--amber);
}
.demo-cue[data-side='right']::after {
  left: auto;
  right: 100%;
  border-left-width: 0;
  border-right-color: var(--amber);
}
.demo-cue.is-on {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
  animation: cue-bob 1.8s ease-in-out infinite;
}
.demo-cue[data-side='bottom'].is-on {
  animation-name: cue-bob-down;
}
.demo-cue[data-side='left'].is-on {
  animation-name: cue-bob-left;
}
.demo-cue[data-side='right'].is-on {
  animation-name: cue-bob-right;
}
@keyframes cue-bob {
  50% {
    translate: 0 -3px;
  }
}
@keyframes cue-bob-down {
  50% {
    translate: 0 3px;
  }
}
@keyframes cue-bob-left {
  50% {
    translate: -3px 0;
  }
}
@keyframes cue-bob-right {
  50% {
    translate: 3px 0;
  }
}

/* Aanwijzing op de kleine telefoon in de pagina: alleen op smalle schermen */
.demo-try {
  display: none;
}

.demo-hint {
  width: var(--demo-w);
  padding: 12px 14px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  background: var(--card);
  box-shadow: var(--shadow-md);
  font-size: 0.9rem;
  line-height: 1.45;
}
.demo-hint-title {
  display: block;
  margin-bottom: 4px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clay);
}
.demo-hint-text {
  color: var(--ink);
}
.demo-hint-note {
  margin-top: 8px;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--leaf-deep);
}
.demo-hint-note[hidden] {
  display: none;
}
.demo-hint-more {
  display: none;
}
.demo-open {
  display: none;
}

/* Brede schermen: uitleg als kaartje naast de telefoon, dus boven de vouw */
@media (min-width: 1000px) {
  .stage {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .demo {
    --demo-w: min(380px, calc((100vh - 190px) * 0.44));
    grid-template-columns: 200px var(--demo-w);
    grid-template-areas:
      'player player'
      'guide guide'
      'hint frame';
    column-gap: 18px;
    align-items: start;
  }
  .demo-player {
    grid-area: player;
    width: 100%;
  }
  .demo-frame {
    grid-area: frame;
  }
  .demo-guide {
    grid-area: guide;
    width: 100%;
  }
  .demo-hint {
    grid-area: hint;
    position: relative;
    width: 100%;
    margin-top: 28px;
  }
  /* pijltje naar de telefoon */
  .demo-hint::after {
    content: '';
    position: absolute;
    top: 26px;
    right: -7px;
    width: 12px;
    height: 12px;
    border-top: 1px solid var(--line-soft);
    border-right: 1px solid var(--line-soft);
    background: var(--card);
    transform: rotate(45deg);
  }
}
/* Pc: intro, tegels en telefoon samen boven de vouw (1280x720 tot 1536x864 en groter) */
@media (min-width: 1000px) {
  .stage {
    row-gap: 0;
    column-gap: clamp(2rem, 4vw, 4rem);
    padding-top: 28px;
  }
  .intro .eyebrow {
    margin-bottom: 8px;
  }
  .intro h1 {
    font-size: clamp(2.2rem, 3.1vw, 2.85rem);
    max-width: 17em;
  }
  .intro .lead {
    margin-top: 10px;
    font-size: 1.05rem;
    line-height: 1.5;
  }
  .intro .store-badges {
    margin-top: 16px;
    gap: 10px;
  }
  .intro .store-badge {
    min-width: 168px;
    padding-block: 6px;
  }
  .intro-note {
    margin-top: 10px;
    font-size: 0.88rem;
    line-height: 1.45;
  }
  .intro .signup {
    margin-top: 10px;
  }
  .intro .signup input[type='email'],
  .intro .signup .button {
    min-height: 46px;
  }
  .intro .signup-note {
    margin-top: 4px;
  }
  .try {
    margin-top: 20px;
    padding-top: 16px;
  }
  .try h2 {
    font-size: 1.45rem;
  }
  .try .lead {
    margin-top: 4px;
    font-size: 0.95rem;
    line-height: 1.45;
  }
  .feature-list {
    gap: 6px;
    margin-top: 12px;
  }
  .feature-btn {
    grid-template-columns: 34px 1fr;
    gap: 10px;
    padding: 7px 12px;
  }
  .feature-btn .ico {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }
  .feature-btn strong {
    font-size: 0.94rem;
  }
  .feature-btn span.sub {
    margin-top: 1px;
    font-size: 0.8rem;
    line-height: 1.3;
  }
}

/* Lage pc-schermen (1536x864, 1366x768, 1280x720): nog wat krapper, zodat de laatste tegel in
   beeld blijft */
@media (min-width: 1000px) and (max-height: 880px) {
  .stage {
    padding-top: 12px;
  }
  .intro h1 {
    font-size: 2.25rem;
  }
  .intro .store-badges {
    margin-top: 12px;
  }
  .intro-note {
    font-size: 0.84rem;
  }
  .try {
    margin-top: 10px;
    padding-top: 10px;
  }
  .feature-list {
    gap: 4px;
    margin-top: 8px;
  }
  .feature-btn {
    padding-block: 5px;
  }
}

/* Middenbreedte (860-999 px): uitleg boven de telefoon, met vaste minimale hoogte */
@media (min-width: 860px) and (max-width: 999px) {
  .demo {
    --demo-w: min(100%, 380px, calc((100vh - 360px) * 0.44));
  }
  .demo-player,
  .demo-guide,
  .demo-hint {
    width: min(100%, 380px);
  }
  .demo-hint {
    order: 1;
    min-height: 168px;
  }
  .demo-frame {
    order: 2;
  }
}

/* Schermvullend (smalle schermen): balk boven, telefoonscherm zo groot mogelijk, uitleg onder */
.demo.is-full {
  /* drie regels uitleg plus binnenmarge */
  --hint-h: calc(3.62rem + 18px + env(safe-area-inset-bottom));
  position: fixed;
  inset: 0;
  z-index: 50;
  top: 0;
  height: 100vh;
  height: 100dvh;
  align-self: stretch;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr) var(--hint-h);
  grid-template-areas:
    'bar'
    'frame'
    '.';
  gap: 0;
  background: #0f1f1a;
  color: var(--white);
}
.demo.is-full .demo-bar {
  grid-area: bar;
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: calc(6px + env(safe-area-inset-top)) calc(8px + env(safe-area-inset-right)) 6px
    calc(8px + env(safe-area-inset-left));
}
.demo.is-full .demo-guide,
.demo.is-full .demo-chips {
  display: none;
}
.demo.is-full .demo-player {
  display: flex;
  flex: 1;
  min-width: 0;
  width: auto;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.demo.is-full .demo-flows {
  background: rgba(255, 253, 247, 0.08);
}
.demo.is-full .demo-flow {
  min-height: 32px;
  padding: 0 8px;
  font-size: 0.82rem;
  color: rgba(255, 253, 247, 0.8);
}
.demo.is-full .demo-flow.is-active {
  background: var(--leaf-bright);
  color: var(--white);
}
/* heel smalle telefoons: flownamen op twee regels in plaats van afgekapt */
@media (max-width: 359px) {
  .demo.is-full .demo-flow {
    padding: 2px 6px;
    font-size: 0.74rem;
    line-height: 1.05;
    white-space: normal;
  }
}
.demo.is-full .demo-ctrl {
  width: 38px;
  height: 38px;
  border-color: rgba(255, 253, 247, 0.25);
  background: transparent;
  color: var(--white);
}
.demo.is-full .demo-pause {
  border-color: var(--leaf-bright);
  background: var(--leaf-bright);
}
.demo.is-full .demo-close {
  display: grid;
}
.demo.is-full .demo-progress {
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: rgba(255, 253, 247, 0.12);
}
.demo.is-full .demo-frame {
  grid-area: frame;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 4px 8px;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  display: grid;
  place-items: center;
  container-type: size;
}
.demo.is-full .demo-stage {
  /* terugval zonder container-eenheden */
  width: auto;
  height: calc(100dvh - 140px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  max-width: 100%;
  border-radius: 16px;
}
@supports (width: 1cqh) {
  .demo.is-full .demo-stage {
    width: min(100cqw, 100cqh * 1080 / 2400);
    height: auto;
  }
}
/* Uitleg: drie regels onderin; "Meer" schuift hem omhoog over het scherm uit */
.demo.is-full .demo-hint {
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  width: 100%;
  height: var(--hint-h);
  padding: 9px calc(14px + env(safe-area-inset-right)) calc(9px + env(safe-area-inset-bottom))
    calc(14px + env(safe-area-inset-left));
  border: 0;
  border-radius: 0;
  background: #142b24;
  color: var(--white);
  box-shadow: none;
  font-size: 0.86rem;
  line-height: 1.4;
}
.demo.is-full .demo-hint-body {
  max-height: 4.2em;
  overflow: hidden;
}
.demo.is-full .demo-hint-title {
  display: inline;
  margin: 0 0.45em 0 0;
  font-size: 0.74rem;
  color: #f2bd79;
}
.demo.is-full .demo-hint-text {
  display: inline;
  color: var(--white);
}
.demo.is-full .demo-hint-note {
  margin-top: 4px;
  font-size: 0.8rem;
  color: #9fd8a2;
}
.demo.is-full .demo-hint.is-clamped .demo-hint-more {
  display: block;
  position: absolute;
  right: calc(8px + env(safe-area-inset-right));
  bottom: calc(7px + env(safe-area-inset-bottom));
  padding: 2px 6px 2px 34px;
  border: 0;
  background: linear-gradient(90deg, rgba(20, 43, 36, 0), #142b24 30px);
  color: #f2bd79;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.demo.is-full .demo-hint.is-open {
  height: auto;
  max-height: 70%;
  overflow-y: auto;
  padding-top: 14px;
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -12px 30px rgba(0, 0, 0, 0.35);
}
.demo.is-full .demo-hint.is-open .demo-hint-body {
  max-height: none;
  padding-bottom: 1.6em;
}
.demo.is-full .demo-open,
.demo.is-full .demo-try {
  display: none;
}

/* ---------- Gratis en Premium: één overzicht ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.compare {
  max-width: 760px;
  margin: 0 auto;
  padding: 8px 8px 4px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow-md);
}
.compare table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}
.compare th,
.compare td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: middle;
}
.compare thead th {
  position: sticky;
  top: 68px;
  z-index: 1;
  padding: 14px 14px 12px;
  background: var(--card);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--ink);
}
.compare th.col,
.compare td.col {
  width: 120px;
  text-align: center;
}
.compare thead th.premium {
  color: var(--leaf-deep);
}
.compare thead th.premium::before {
  content: '';
  display: block;
  width: 26px;
  height: 4px;
  margin: 0 auto 8px;
  border-radius: 999px;
  background: var(--leaf);
}
.compare thead th.col:not(.premium)::before {
  content: '';
  display: block;
  width: 26px;
  height: 4px;
  margin: 0 auto 8px;
  border-radius: 999px;
  background: var(--line);
}
.compare tr.group th {
  padding: 26px 14px 10px;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0;
  color: var(--ink);
}
.compare tr.group th::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 1em;
  margin-right: 10px;
  vertical-align: -0.12em;
  border-radius: 999px;
  background: var(--leaf);
}
.compare tbody tr:not(.group) th,
.compare tbody tr:not(.group) td {
  border-top: 1px solid var(--line-soft);
}
.compare tbody th {
  font-weight: 400;
  font-size: 0.98rem;
  line-height: 1.35;
  color: var(--ink);
}
.compare tbody th small {
  display: block;
  margin-top: 2px;
  font-size: 0.84rem;
  color: var(--ink-soft);
}
.compare .mark {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  vertical-align: middle;
}
.compare .mark svg {
  width: 16px;
  height: 16px;
}
.compare .mark.yes {
  background: var(--leaf);
  color: var(--white);
}
.compare .mark.no {
  background: #eef0ec;
  color: #8d9b94;
}
.compare .amount {
  font-size: 0.9rem;
  color: var(--ink-soft);
  white-space: nowrap;
}
.compare .amount.unl {
  font-weight: 800;
  color: var(--leaf-deep);
}
.plans-note {
  max-width: 760px;
  margin: 18px auto 0;
  text-align: center;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

/* ---------- FAQ ---------- */
.faq {
  max-width: 760px;
  margin: 0 auto;
}
.faq details {
  border-top: 1px solid var(--line-soft);
}
.faq details:last-child {
  border-bottom: 1px solid var(--line-soft);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 4px;
  font-weight: 700;
  font-size: 1.05rem;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '+';
  flex: none;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--sage);
  font-weight: 600;
}
.faq details[open] summary::after {
  content: '–';
}
.faq details p {
  padding: 0 4px 22px;
  color: var(--ink-soft);
  max-width: 64ch;
}
.faq details a {
  color: var(--ink);
  text-underline-offset: 4px;
}

/* ---------- Download CTA ---------- */
.cta {
  padding-top: 0;
}
.cta-card {
  position: relative;
  overflow: hidden;
  padding: clamp(36px, 6vw, 64px);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 85% 15%, rgba(217, 141, 54, 0.28), transparent 38%),
    linear-gradient(135deg, #173c31, #22513f);
  color: var(--white);
  box-shadow: var(--shadow-lg);
  text-align: center;
}
.cta-card .eyebrow {
  color: #f2bd79;
}
.cta-card h2 {
  max-width: 26ch;
  margin-inline: auto;
}
.cta-card .lead {
  margin: 14px auto 0;
  color: rgba(255, 253, 247, 0.8);
}
.cta-card .store-badges {
  justify-content: center;
  margin-top: 28px;
}
.cta-card .button-secondary {
  margin-top: 22px;
}

/* ---------- Footer ---------- */
.site-footer {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 44px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  color: var(--ink-soft);
  font-size: 0.92rem;
}
.site-footer .copy {
  margin-right: auto;
}
.site-footer a {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--sage-strong);
}
.site-footer a:hover {
  color: var(--ink);
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .brand span {
    display: none;
  }
  .site-nav a {
    padding: 8px 9px;
    font-size: 0.9rem;
  }
}
@media (max-width: 1040px) {
  .feature-list {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 859px) {
  .stage {
    grid-template-columns: 1fr;
    grid-template-areas:
      'intro'
      'demo'
      'try';
    grid-template-rows: auto;
    padding-top: 36px;
  }
  .demo {
    position: static;
    --demo-w: min(100%, 300px);
  }
  .demo-chips {
    display: flex;
  }
  .try {
    margin-top: 8px;
  }
  .demo-frame {
    cursor: pointer;
  }
  /* bediening en uitleg alleen schermvullend; de kleine telefoon toont "Tik om te proberen" */
  .demo-bar,
  .demo-guide,
  .demo-hint,
  .demo-cue {
    display: none;
  }
  .demo-try {
    position: absolute;
    left: 50%;
    top: 56%;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px 10px 10px;
    border-radius: 999px;
    background: rgba(20, 43, 36, 0.9);
    color: var(--white);
    font-size: 0.92rem;
    font-weight: 800;
    white-space: nowrap;
    box-shadow: 0 10px 24px rgba(15, 31, 26, 0.3);
    transform: translateX(-50%);
    pointer-events: none;
  }
  .demo-try-icon {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--amber);
    color: #1f1407;
  }
  .demo-try-icon svg {
    width: 18px;
    height: 18px;
  }
  .demo.is-full .demo-cue {
    display: block;
  }
  .demo-open {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 22px;
    border: 0;
    border-radius: 999px;
    background: var(--leaf);
    color: var(--white);
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(37, 126, 42, 0.3);
  }
  .feature-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .compare {
    padding: 4px 2px 2px;
  }
  .compare th,
  .compare td {
    padding: 11px 8px;
  }
  .compare thead th {
    top: 60px;
    font-size: 0.86rem;
  }
  .compare th.col,
  .compare td.col {
    width: 74px;
  }
  .compare tbody th {
    font-size: 0.92rem;
  }
  .compare .amount {
    font-size: 0.8rem;
  }
  .site-header-inner {
    width: calc(100% - 24px);
    min-height: 60px;
  }
  .brand span {
    display: none;
  }
  .site-nav {
    display: none;
  }
  .section {
    width: calc(100% - 24px);
    padding: 60px 0;
  }
  .section-tight {
    padding-top: 0;
  }
  h1 {
    max-width: none;
  }
  .feature-list {
    grid-template-columns: 1fr;
  }
  .store-badges {
    flex-direction: column;
  }
  .store-badge {
    min-width: 0;
    width: 100%;
  }
  .site-footer .copy {
    width: 100%;
  }
  .signup-row {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .demo-hot::after {
    animation: none;
    opacity: 0;
  }
  .demo-cue {
    animation-name: none !important;
  }
}
/* Tekst bij de demo: zonder animaties speelt de demo niet vanzelf af */
.try-still,
.try-narrow {
  display: none;
}
/* smalle schermen: de bediening staat pas in de schermvullende demo, dus hier uitleggen */
@media (max-width: 859px) {
  .try-narrow {
    display: block;
    margin-top: 6px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .try-motion {
    display: none;
  }
  .try-still {
    display: inline;
  }
}
