/*
 * Website en mail: de bouwer in het klein (js/website-en-facturen-zzp-wow.js).
 *
 * De bouwerschil en de mailbox volgen de --landing-*-tokens, dus licht en
 * donker gaan vanzelf mee. De voorbeeldsite zelf volgt het gekozen
 * kleurthema, net als een echte site: die blijft licht als de bezoeker van
 * deze pagina donker heeft staan.
 *
 * De thema-waarden komen uit BUILTIN_PRESETS in packages/shared/src/schemas/
 * site.ts. De letters zijn systeemletters die dicht bij het origineel liggen
 * (Instrument Serif, Fraunces, Space Grotesk, DM Serif Display, Lora): echte
 * webfonts laden voor een voorbeeld kost te veel kilobytes.
 */

/* ---------- thema-tokens: voor de site en voor de staaltjes in het paneel ---------- */
.wm-stage,
.wm-journey {
  --wm-serif-classic: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --wm-serif-soft: Georgia, "Times New Roman", serif;
  --wm-serif-display: Didot, "Bodoni 72", "Bodoni MT", "Playfair Display", Georgia, serif;
  --wm-sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --wm-ui-accent: #7c3aed;
  --wm-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}
[data-theme="dark"] .wm-stage,
[data-theme="dark"] .wm-journey {
  --wm-ui-accent: #a78bfa;
}

[data-theme-id="editorial"] .wm-site,
.wm-journey[data-theme-id="editorial"],
.wm-theme[data-wm-theme="editorial"] {
  --t-paper: #f5f3ec; --t-surface: #ffffff; --t-ink: #1f1f1f; --t-muted: #7a7466;
  --t-brand: #0e2a4d; --t-accent: #d9b772; --t-on-brand: #ffffff;
  --t-head: var(--wm-serif-classic); --t-head-w: 400; --t-head-ls: -0.01em;
  --t-r: 8px; --t-line: rgba(31, 31, 31, 0.14);
}
[data-theme-id="studio"] .wm-site,
.wm-journey[data-theme-id="studio"],
.wm-theme[data-wm-theme="studio"] {
  --t-paper: #f6efe4; --t-surface: #fcf8f0; --t-ink: #2a221c; --t-muted: #7d6f5e;
  --t-brand: #bf5b3c; --t-accent: #c87b56; --t-on-brand: #ffffff;
  --t-head: var(--wm-serif-soft); --t-head-w: 700; --t-head-ls: -0.025em;
  --t-r: 12px; --t-line: rgba(42, 34, 28, 0.1);
}
[data-theme-id="tech"] .wm-site,
.wm-journey[data-theme-id="tech"],
.wm-theme[data-wm-theme="tech"] {
  --t-paper: #f5f7fa; --t-surface: #ffffff; --t-ink: #0a0e1a; --t-muted: #5a6478;
  --t-brand: #0066ff; --t-accent: #1199cc; --t-on-brand: #ffffff;
  --t-head: var(--wm-sans); --t-head-w: 700; --t-head-ls: -0.045em;
  --t-r: 6px; --t-line: rgba(10, 14, 26, 0.1);
}
[data-theme-id="atelier"] .wm-site,
.wm-journey[data-theme-id="atelier"],
.wm-theme[data-wm-theme="atelier"] {
  --t-paper: #efe9dc; --t-surface: #f7f3e8; --t-ink: #1a1a14; --t-muted: #6f6a5c;
  --t-brand: #1e3a2b; --t-accent: #7c8e6e; --t-on-brand: #f7f3e8;
  --t-head: var(--wm-serif-display); --t-head-w: 400; --t-head-ls: -0.01em;
  --t-r: 4px; --t-line: rgba(26, 26, 20, 0.16);
}
[data-theme-id="bold"] .wm-site,
.wm-journey[data-theme-id="bold"],
.wm-theme[data-wm-theme="bold"] {
  --t-paper: #fbfbfb; --t-surface: #ffffff; --t-ink: #0a0a0a; --t-muted: #5e5e5e;
  --t-brand: #0a0a0a; --t-accent: #ff5b1f; --t-on-brand: #ffffff;
  --t-head: var(--wm-sans); --t-head-w: 800; --t-head-ls: -0.055em;
  --t-r: 2px; --t-line: #0a0a0a;
}
[data-theme-id="calm"] .wm-site,
.wm-journey[data-theme-id="calm"],
.wm-theme[data-wm-theme="calm"] {
  --t-paper: #f4f1ea; --t-surface: #fbfaf6; --t-ink: #2d352a; --t-muted: #7f7e72;
  --t-brand: #5e7a5e; --t-accent: #9eb39b; --t-on-brand: #ffffff;
  --t-head: var(--wm-serif-soft); --t-head-w: 400; --t-head-ls: -0.015em;
  --t-r: 16px; --t-line: rgba(45, 53, 42, 0.1);
}

/* ---------- podium ---------- */
/* Het podium staat als tweede rij in het hero-raster. Dat raster krimpt in
   de flex-hero tot zijn inhoud, dus hier expliciet de volle breedte, en
   minder lucht tussen de knoppen en het podium dan de standaard 48 + 64px. */
.page-website-en-facturen-zzp .landing-hero-inner {
  width: 100%;
  row-gap: 44px;
}
.page-website-en-facturen-zzp .landing-hero-actions {
  margin-bottom: 0;
}

.wm-stage {
  order: 2; /* de mobiele hero zet .landing-hero-content op order 1 */
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: end;
  text-align: left;
  color: var(--landing-text);
}

.wm-builder,
.wm-mail {
  background: var(--landing-bg-section);
  border: 1px solid var(--landing-border-hover);
  border-radius: 16px;
  box-shadow: 0 40px 80px -24px rgba(15, 23, 42, 0.28), 0 0 0 1px rgba(15, 23, 42, 0.02);
}
[data-theme="dark"] .wm-builder,
[data-theme="dark"] .wm-mail {
  background: #0d1426;
  box-shadow: 0 40px 80px -24px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.wm-builder {
  position: relative;
  grid-column: 1;
  grid-row: 1;
  overflow: hidden;
}

/* bovenbalk van de bouwer, naar het echte scherm */
.wm-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 52px;
  padding: 0 14px 0 16px;
  border-bottom: 1px solid var(--landing-border);
  font-size: 13px;
}
.wm-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--landing-text-muted);
  font-size: 13px;
}
.wm-sitename {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  min-width: 0;
}
.wm-sitename strong {
  font-size: 13px;
  font-weight: 600;
  color: var(--landing-text);
}
.wm-siteurl {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: ui-monospace, "SF Mono", "Geist Mono", Menlo, monospace;
  font-size: 11px;
  color: var(--landing-text-muted);
}
.wm-siteurl svg { color: #10b981; }
.wm-pages {
  display: flex;
  gap: 4px;
  margin: 0 auto;
}
.wm-page {
  padding: 6px 10px;
  border-radius: 8px;
  color: var(--landing-text-muted);
  font-size: 12.5px;
}
.wm-page.is-on {
  color: var(--wm-ui-accent);
  background: color-mix(in srgb, var(--wm-ui-accent) 10%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--wm-ui-accent) 28%, transparent);
}
.wm-publish {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 8px;
  background: var(--landing-text);
  color: var(--landing-bg-section);
  font-size: 12.5px;
  font-weight: 600;
}

.wm-body {
  display: grid;
  grid-template-columns: 218px minmax(0, 1fr);
  min-height: 0;
}

/* ---------- paneel met thema's ---------- */
.wm-panel {
  padding: 16px 14px 16px;
  border-right: 1px solid var(--landing-border);
}
.wm-panel-title {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--landing-text);
}
.wm-panel-hint {
  margin: 0 0 12px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--landing-text-muted);
}
.wm-themes {
  display: grid;
  gap: 6px;
}
.wm-theme {
  position: relative;
  display: grid;
  grid-template-columns: 34px 1fr;
  grid-template-rows: auto auto;
  column-gap: 10px;
  align-items: center;
  width: 100%;
  min-height: 44px;
  padding: 6px 8px;
  border: 1px solid var(--landing-border);
  border-radius: 10px;
  background: transparent;
  color: var(--landing-text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}
.wm-theme:hover {
  border-color: var(--landing-border-hover);
  background: var(--landing-bg-subtle-hover);
}
.wm-theme:focus-visible {
  outline: 2px solid var(--wm-ui-accent);
  outline-offset: 2px;
}
.wm-theme[aria-checked="true"] {
  border-color: var(--wm-ui-accent);
  background: color-mix(in srgb, var(--wm-ui-accent) 7%, transparent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--wm-ui-accent) 14%, transparent);
}
.wm-swatch {
  grid-row: 1 / span 2;
  position: relative;
  width: 34px;
  height: 30px;
  border-radius: 7px;
  background: var(--t-paper);
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.12);
  overflow: hidden;
}
.wm-sw-aa {
  position: absolute;
  left: 5px;
  top: 3px;
  font-family: var(--t-head);
  font-weight: var(--t-head-w);
  font-size: 14px;
  line-height: 1;
  letter-spacing: var(--t-head-ls);
  color: var(--t-ink);
}
.wm-swatch i {
  position: absolute;
  bottom: 4px;
  height: 6px;
  border-radius: 3px;
}
.wm-swatch i:first-of-type { left: 5px; width: 14px; background: var(--t-brand); }
.wm-swatch i:last-of-type { left: 21px; width: 7px; background: var(--t-accent); }
.wm-theme-name {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
}
.wm-theme-desc {
  font-size: 11.5px;
  line-height: 1.3;
  color: var(--landing-text-muted);
}

/* ---------- canvas ---------- */
.wm-canvas {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 18px 18px 14px;
  background-color: var(--landing-bg-section-alt);
  background-image: radial-gradient(var(--landing-border-hover) 1px, transparent 1px);
  background-size: 14px 14px;
}

/* ---------- de voorbeeldsite ---------- */
.wm-site {
  container-type: inline-size;
  position: relative;
  width: 100%;
  height: 476px;
  overflow: hidden;
  border-radius: 10px;
  background: var(--t-paper);
  color: var(--t-ink);
  font-family: var(--wm-sans);
  font-size: 13px;
  line-height: 1.45;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08), 0 12px 32px -12px rgba(15, 23, 42, 0.25);
  transition: background-color 0.5s ease, color 0.5s ease, width 0s, border-radius 0.3s ease;
}
.wm-site *,
.wm-site *::before {
  transition:
    background-color 0.5s ease,
    color 0.5s ease,
    border-color 0.5s ease,
    border-radius 0.5s ease,
    box-shadow 0.5s ease,
    letter-spacing 0.5s ease;
}

/* menubalk */
.wm-snav {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0;
  padding: 0 4.4cqi;
  height: 52px;
  border-bottom: 1px solid var(--t-line);
  background: var(--t-paper);
}
.wm-site[data-nav="floating"] .wm-snav {
  margin: 12px 3.4cqi 0;
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--t-line);
  border-radius: calc(var(--t-r) + 4px);
  background: var(--t-surface);
  box-shadow: 0 6px 18px -10px rgba(0, 0, 0, 0.25);
}
.wm-sbrand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--t-head);
  font-weight: var(--t-head-w);
  font-size: 15px;
  letter-spacing: var(--t-head-ls);
  white-space: nowrap;
}
.wm-site[data-theme-weight="light"] .wm-sbrand { font-weight: 600; }
.wm-smark {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: min(var(--t-r), 11px);
  background: var(--t-brand);
  color: var(--t-on-brand);
  font-family: var(--t-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
}
.wm-slinks {
  display: flex;
  gap: 18px;
  margin-left: auto;
  font-size: 12px;
  color: var(--t-muted);
  white-space: nowrap;
}
.wm-slinks .is-on {
  color: var(--t-ink);
  box-shadow: inset 0 -2px 0 var(--t-accent);
}
[data-theme-id="editorial"] .wm-slinks,
[data-theme-id="atelier"] .wm-slinks {
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.wm-sburger {
  display: none;
  margin-left: auto;
  width: 18px;
  flex-direction: column;
  gap: 4px;
}
.wm-sburger i {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--t-ink);
}

/* opening */
.wm-shero {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: 1.14fr 0.86fr;
  gap: 4cqi;
  align-items: center;
  padding: 4.6cqi 4.4cqi 3.4cqi;
}
.wm-scopy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}
.wm-seyebrow {
  padding: 3px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--t-accent) 22%, transparent);
  color: var(--t-ink);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.wm-stitle {
  font-family: var(--t-head);
  font-weight: var(--t-head-w);
  font-size: clamp(26px, 6.1cqi, 42px);
  line-height: 1.02;
  letter-spacing: var(--t-head-ls);
  color: var(--t-ink);
  text-wrap: balance;
}
.wm-ssub {
  max-width: 34ch;
  font-size: 13px;
  line-height: 1.55;
  color: var(--t-muted);
}
.wm-sbtns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
.wm-sbtn {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 12px;
  border-radius: var(--t-r);
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}
.wm-sbtn-1 {
  background: var(--t-brand);
  color: var(--t-on-brand);
}
.wm-sbtn-2 {
  box-shadow: inset 0 0 0 1px var(--t-line);
  color: var(--t-ink);
}
.wm-site[data-btn="pill"] .wm-sbtn { border-radius: 999px; }
.wm-site[data-btn="ghost"] .wm-sbtn-1 {
  background: transparent;
  color: var(--t-brand);
  box-shadow: inset 0 0 0 1.5px var(--t-brand);
}
.wm-site[data-btn="ghost"] .wm-sbtn-2 { box-shadow: none; text-decoration: underline; text-underline-offset: 3px; }
.wm-site[data-btn="block"] .wm-sbtn {
  border-radius: 0;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 11px;
}
.wm-site[data-btn="block"] .wm-sbtn-1 {
  background: var(--t-accent);
  color: #0a0a0a;
  box-shadow: 3px 3px 0 var(--t-ink);
}
.wm-site[data-btn="block"] .wm-sbtn-2 { box-shadow: inset 0 0 0 2px var(--t-ink); }

.wm-sphoto {
  position: relative;
  aspect-ratio: 11 / 9;
  border-radius: var(--t-r);
  overflow: hidden;
  background: color-mix(in srgb, var(--t-accent) 30%, var(--t-paper));
}
.wm-sphoto img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* framed: foto in een lijst van papier, iets gedraaid in de schaduw */
.wm-site[data-hero="framed"] .wm-shero { grid-template-columns: 1fr 1fr; }
.wm-site[data-hero="framed"] .wm-sphoto {
  padding: 8px;
  background: var(--t-surface);
  border-radius: calc(var(--t-r) + 6px);
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.35), 0 0 0 1px var(--t-line);
}
.wm-site[data-hero="framed"] .wm-sphoto img { border-radius: var(--t-r); }

/* panel: de hele opening in een vlak van de merkkleur */
.wm-site[data-hero="panel"] .wm-shero {
  margin: 3.4cqi 3.4cqi 2.6cqi;
  padding: 4.2cqi;
  border-radius: calc(var(--t-r) + 6px);
  background: var(--t-brand);
  grid-template-columns: 1.1fr 0.9fr;
}
.wm-site[data-hero="panel"] .wm-stitle,
.wm-site[data-hero="panel"] .wm-seyebrow { color: #ffffff; }
.wm-site[data-hero="panel"] .wm-ssub { color: rgba(255, 255, 255, 0.82); }
.wm-site[data-hero="panel"] .wm-seyebrow { background: rgba(255, 255, 255, 0.16); }
.wm-site[data-hero="panel"] .wm-sbtn-1 { background: #ffffff; color: var(--t-brand); }
.wm-site[data-hero="panel"] .wm-sbtn-2 { color: #ffffff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4); }
.wm-site[data-hero="panel"] .wm-stitle { font-size: clamp(24px, 5.6cqi, 40px); }
.wm-site[data-hero="panel"] .wm-sphoto { aspect-ratio: 1 / 1; }

/* clean: gecentreerd, foto als brede strook eronder */
.wm-site[data-hero="clean"] .wm-shero {
  grid-template-columns: 1fr;
  gap: 3cqi;
  padding-top: 4.4cqi;
  justify-items: center;
}
.wm-site[data-hero="clean"] .wm-scopy {
  align-items: center;
  text-align: center;
}
.wm-site[data-hero="clean"] .wm-stitle { font-size: clamp(24px, 5.4cqi, 40px); }
.wm-site[data-hero="clean"] .wm-ssub { max-width: 44ch; }
.wm-site[data-hero="clean"] .wm-sphoto {
  width: 100%;
  aspect-ratio: auto;
  height: 132px;
}
.wm-site[data-hero="clean"] .wm-sphoto img { object-position: center 40%; }
.wm-site[data-hero="clean"] .wm-sservices { display: none; }

/* diensten */
.wm-sservices {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 0 4.4cqi 4.4cqi;
}
.wm-scard {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px;
  border-radius: var(--t-r);
  background: var(--t-surface);
}
.wm-scard b {
  font-family: var(--t-head);
  font-weight: var(--t-head-w);
  font-size: 15px;
  letter-spacing: var(--t-head-ls);
}
[data-theme-id="editorial"] .wm-scard b,
[data-theme-id="atelier"] .wm-scard b,
[data-theme-id="calm"] .wm-scard b { font-size: 16px; }
.wm-scard small {
  font-size: 11.5px;
  color: var(--t-muted);
}
.wm-site[data-cards="bordered"] .wm-scard { box-shadow: inset 0 0 0 1px var(--t-line); }
.wm-site[data-cards="shadowed"] .wm-scard { box-shadow: 0 10px 24px -14px rgba(0, 0, 0, 0.3); }
.wm-site[data-cards="elevated"] .wm-scard { box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 0 0 1px var(--t-line); }
.wm-site[data-cards="flat"] .wm-scard { background: color-mix(in srgb, var(--t-accent) 14%, var(--t-paper)); }
[data-theme-id="bold"] .wm-site .wm-scard { box-shadow: inset 0 0 0 2px var(--t-ink); }

/* lichtstreep die over de site trekt bij een themawissel */
.wm-sweep {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(100deg, transparent 35%, rgba(255, 255, 255, 0.55) 50%, transparent 65%);
  transform: translateX(-110%);
  opacity: 0;
}
.wm-site.is-sweeping .wm-sweep {
  animation: wm-sweep 0.9s var(--wm-ease);
}
@keyframes wm-sweep {
  0% { transform: translateX(-110%); opacity: 1; }
  100% { transform: translateX(110%); opacity: 1; }
}
.wm-site.is-swapping .wm-stitle,
.wm-site.is-swapping .wm-sbrand,
.wm-site.is-swapping .wm-scard b {
  animation: wm-type 0.55s var(--wm-ease);
}
@keyframes wm-type {
  0% { opacity: 0.15; filter: blur(3px); }
  100% { opacity: 1; filter: blur(0); }
}

/* ---------- smalle site: mobiele weergave en echte telefoon ---------- */
@container (max-width: 520px) {
  .wm-snav { padding: 0 16px; height: 46px; }
  .wm-site[data-nav="floating"] .wm-snav { margin: 10px 10px 0; padding: 0 12px; height: 40px; }
  .wm-slinks { display: none; }
  .wm-sburger { display: flex; }
  .wm-shero,
  .wm-site[data-hero="framed"] .wm-shero,
  .wm-site[data-hero="panel"] .wm-shero {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 20px 16px 14px;
  }
  .wm-site[data-hero="panel"] .wm-shero { margin: 10px 10px 0; padding: 18px 16px; }
  .wm-site[data-hero="clean"] .wm-shero { padding: 22px 16px 14px; }
  .wm-scopy { gap: 10px; }
  .wm-stitle,
  .wm-site[data-hero="panel"] .wm-stitle,
  .wm-site[data-hero="clean"] .wm-stitle { font-size: 30px; }
  .wm-ssub { font-size: 12.5px; }
  .wm-sphoto,
  .wm-site[data-hero="panel"] .wm-sphoto {
    width: 100%;
    aspect-ratio: auto;
    height: 128px;
  }
  .wm-site[data-hero="clean"] .wm-sphoto { height: 120px; }
  .wm-sservices { display: none; }
}

/* ---------- apparaatknoppen onder het canvas ---------- */
.wm-devices {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 12px;
  padding: 4px;
  border-radius: 12px;
  background: var(--landing-bg-section);
  border: 1px solid var(--landing-border);
  box-shadow: 0 4px 14px -8px rgba(15, 23, 42, 0.25);
}
.wm-device {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--landing-text-muted);
  font: inherit;
  font-size: 12.5px;
  cursor: pointer;
}
.wm-device:hover { color: var(--landing-text); }
.wm-device.is-on {
  background: var(--landing-bg-subtle-hover);
  color: var(--landing-text);
  font-weight: 600;
}
.wm-device:focus-visible { outline: 2px solid var(--wm-ui-accent); outline-offset: 1px; }
.wm-saved {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px 0 8px;
  margin-left: 4px;
  border-left: 1px solid var(--landing-border);
  font-size: 12px;
  color: var(--landing-text-muted);
}
.wm-saved i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
}

/* mobiele weergave in de bouwer: een telefoon op het canvas */
.wm-canvas[data-device="mobile"] .wm-site {
  width: 268px;
  border-radius: 26px;
  box-shadow: 0 0 0 6px #0f172a, 0 24px 50px -16px rgba(15, 23, 42, 0.45);
}
[data-theme="dark"] .wm-canvas[data-device="mobile"] .wm-site {
  box-shadow: 0 0 0 6px #273248, 0 24px 50px -16px rgba(0, 0, 0, 0.6);
}
.wm-site.is-device-swap { animation: wm-device 0.45s var(--wm-ease); }
@keyframes wm-device {
  0% { opacity: 0; transform: scale(0.97); }
  100% { opacity: 1; transform: scale(1); }
}

/* ---------- cursor ---------- */
.wm-cursor {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 5;
  pointer-events: none;
  opacity: 0;
  transform: translate(var(--cx, 120px), var(--cy, 160px));
  transition: transform 0.75s var(--wm-ease), opacity 0.3s ease;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.25));
}
.wm-stage.is-playing .wm-cursor { opacity: 1; }
.wm-cursor svg { display: block; transition: transform 0.15s ease; }
.wm-cursor.is-click svg { transform: scale(0.82); }
.wm-cursor::after {
  content: "";
  position: absolute;
  left: -9px;
  top: -9px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--wm-ui-accent);
  opacity: 0;
  transform: scale(0.4);
}
.wm-cursor.is-click::after { animation: wm-ripple 0.5s ease-out; }
@keyframes wm-ripple {
  0% { opacity: 0.9; transform: scale(0.4); }
  100% { opacity: 0; transform: scale(1.6); }
}

/* ---------- mailbox op hetzelfde domein ---------- */
.wm-mail {
  position: relative;
  z-index: 2;
  grid-column: 2;
  grid-row: 1;
  margin: 0 0 -36px -44px;
  overflow: hidden;
}
.wm-mail-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 8px;
  padding: 14px 16px 12px;
  border-bottom: 1px solid var(--landing-border);
}
.wm-mail-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 700;
  width: 100%;
}
.wm-mail-addr {
  font-family: ui-monospace, "SF Mono", "Geist Mono", Menlo, monospace;
  font-size: 11.5px;
  color: var(--wm-ui-accent);
}
.wm-mail-own {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, #10b981 45%, transparent);
  color: #059669;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
[data-theme="dark"] .wm-mail-own { color: #34d399; }
.wm-mail-list {
  margin: 0;
  padding: 4px 0 6px;
  list-style: none;
  overflow: hidden;
}
.wm-mrow {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--landing-border);
}
.wm-mrow:last-child { border-bottom: 0; }
.wm-mav {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--av, #475569);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}
.wm-mav-lead { background: var(--wm-lead, #0e2a4d); transition: background-color 0.5s ease; }
.wm-mtext {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.wm-mfrom {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
}
.wm-mfrom em {
  font-style: normal;
  font-weight: 400;
  font-size: 11px;
  color: var(--landing-text-faint);
}
.wm-msub {
  font-size: 12px;
  color: var(--landing-text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wm-mtag {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 4px;
  margin-top: 4px;
  padding: 2px 7px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--wm-ui-accent) 10%, transparent);
  color: var(--wm-ui-accent);
  font-size: 10.5px;
  font-weight: 600;
}
.wm-mtag-inv {
  background: color-mix(in srgb, #10b981 12%, transparent);
  color: #047857;
  font-family: inherit;
}
[data-theme="dark"] .wm-mtag-inv { color: #34d399; }

/* de nieuwe aanvraag schuift erin; zonder JS staat hij er gewoon */
.wm-mrow-new {
  position: relative;
  background: color-mix(in srgb, var(--wm-ui-accent) 5%, transparent);
}
.wm-mrow-new::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 21px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--wm-ui-accent);
}
.wm-stage.is-js .wm-mrow-new {
  display: grid;
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  opacity: 0;
  overflow: hidden;
  border-bottom-width: 0;
  transition:
    max-height 0.55s var(--wm-ease),
    padding 0.55s var(--wm-ease),
    opacity 0.4s ease 0.15s;
}
.wm-stage.is-js .wm-mrow-new.is-in {
  max-height: 120px;
  padding-top: 10px;
  padding-bottom: 10px;
  opacity: 1;
  border-bottom-width: 1px;
}
.wm-mrow-new.is-in .wm-mav { animation: wm-pop 0.5s var(--wm-ease) 0.2s both; }
@keyframes wm-pop {
  0% { transform: scale(0.4); }
  70% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

/* ---------- bediening ---------- */
.wm-controls {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
}
.wm-play {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid var(--landing-border-hover);
  border-radius: 999px;
  background: var(--landing-bg-section);
  color: var(--landing-text);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.wm-play:hover { border-color: var(--wm-ui-accent); }
.wm-play:focus-visible { outline: 2px solid var(--wm-ui-accent); outline-offset: 2px; }
.wm-play .wm-ic-play { display: none; }
.wm-play[aria-pressed="true"] .wm-ic-play { display: block; }
.wm-play[aria-pressed="true"] .wm-ic-pause { display: none; }
.wm-stage:not(.is-js) .wm-play { display: none; }
.wm-note {
  font-size: 13px;
  color: var(--landing-text-muted);
}
.wm-status {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- smallere schermen ---------- */
@media (max-width: 1180px) {
  .wm-stage { grid-template-columns: minmax(0, 1fr) 270px; }
  .wm-body { grid-template-columns: 196px minmax(0, 1fr); }
  .wm-pages .wm-page:nth-child(n + 4) { display: none; }
}

@media (max-width: 980px) {
  .wm-stage {
    grid-template-columns: minmax(0, 1fr);
  }
  .wm-mail {
    grid-column: 1;
    grid-row: 2;
    width: min(100%, 420px);
    margin: -28px 16px 0 auto;
  }
  .wm-controls { grid-row: 3; }
  .wm-pages { display: none; }
  .wm-publish { margin-left: auto; }
}

@media (max-width: 760px) {
  .wm-body { grid-template-columns: minmax(0, 1fr); }
  .wm-panel {
    border-right: 0;
    border-bottom: 1px solid var(--landing-border);
    padding: 12px 0 12px 14px;
  }
  .wm-panel-hint { display: none; }
  .wm-panel-title { margin-bottom: 8px; }
  .wm-themes {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 14px 6px 4px;
    margin-left: -4px;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
  }
  .wm-themes::-webkit-scrollbar { display: none; }
  .wm-theme {
    flex: 0 0 auto;
    width: auto;
    grid-template-columns: 30px auto;
    grid-template-rows: auto;
    padding: 6px 12px 6px 6px;
    scroll-snap-align: start;
  }
  .wm-swatch { grid-row: 1; width: 30px; height: 30px; }
  .wm-theme-desc { display: none; }
  .wm-canvas { padding: 14px 12px 12px; }
  .wm-devices { display: none; }
  .wm-site { height: 440px; }
}

@media (max-width: 640px) {
  .wm-builder, .wm-mail { border-radius: 14px; }
  .wm-bar { gap: 10px; padding: 0 10px 0 12px; height: 48px; }
  .wm-back { display: none; }
  .wm-mail { width: auto; margin: -24px 10px 0 28px; }
  .wm-controls { flex-direction: column; align-items: flex-start; gap: 10px; }
  .wm-note { font-size: 12.5px; }
}

/* =================================================================
 * Wat je klant ziet: site, factuurmail en klantportaal op één domein
 * ================================================================= */
.wm-journey {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 72px;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
}
.wm-jsteps {
  display: grid;
  gap: 10px;
}
.wm-jstep {
  position: relative;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 14px;
  width: 100%;
  padding: 18px 20px 20px;
  border: 1px solid var(--landing-border);
  border-radius: 16px;
  background: transparent;
  color: var(--landing-text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.wm-jstep:hover { border-color: var(--landing-border-hover); }
.wm-jstep:focus-visible { outline: 2px solid var(--wm-ui-accent); outline-offset: 2px; }
.wm-jstep[aria-selected="true"] {
  background: var(--landing-bg-card);
  border-color: var(--landing-border-hover);
  box-shadow: var(--landing-shadow-card-hover);
}
.wm-jnum {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--landing-border-hover);
  color: var(--landing-text-muted);
  font-family: ui-monospace, "SF Mono", "Geist Mono", Menlo, monospace;
  font-size: 13px;
  font-weight: 600;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.wm-jstep[aria-selected="true"] .wm-jnum {
  background: var(--wm-ui-accent);
  border-color: var(--wm-ui-accent);
  color: #fff;
}
.wm-jtext {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.wm-jtitle {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
}
.wm-jdesc {
  font-size: 15px;
  line-height: 1.55;
  color: var(--landing-text-muted);
}
.wm-jprog {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 0;
  height: 3px;
  border-radius: 3px;
  overflow: hidden;
  opacity: 0;
}
.wm-jprog i {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--wm-ui-accent);
  transform: scaleX(0);
  transform-origin: left;
}
.wm-journey.is-playing .wm-jstep[aria-selected="true"] .wm-jprog { opacity: 1; }
.wm-journey.is-playing .wm-jstep[aria-selected="true"] .wm-jprog i {
  animation: wm-prog var(--wm-dwell, 4200ms) linear forwards;
}
@keyframes wm-prog {
  to { transform: scaleX(1); }
}
.wm-jfoot {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 14px;
  margin-top: 20px;
}
.wm-journey:not(.is-js) .wm-play { display: none; }

/* telefoon van de klant */
.wm-phone {
  justify-self: center;
  width: 300px;
  padding: 10px;
  border-radius: 46px;
  background: #0f172a;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 50px 90px -30px rgba(15, 23, 42, 0.45),
    0 0 0 1px rgba(15, 23, 42, 0.2);
}
[data-theme="dark"] .wm-phone {
  background: #1e2638;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1) inset, 0 50px 90px -30px rgba(0, 0, 0, 0.8);
}
.wm-phone-screen {
  position: relative;
  height: 600px;
  border-radius: 36px;
  overflow: hidden;
  background: #ffffff;
  color: #0f172a;
}
.wm-phone-notch {
  position: absolute;
  z-index: 3;
  top: 10px;
  left: 50%;
  width: 92px;
  height: 26px;
  margin-left: -46px;
  border-radius: 999px;
  background: #0f172a;
}
.wm-jscreen {
  position: absolute;
  inset: 0;
  padding-top: 46px;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px) scale(0.985);
  transition: opacity 0.45s ease, transform 0.55s var(--wm-ease), visibility 0s linear 0.55s;
}
.wm-jscreen.is-on {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.45s ease, transform 0.55s var(--wm-ease), visibility 0s;
}
.wm-journey:not(.is-js) .wm-jscreen { position: relative; }
.wm-journey:not(.is-js) .wm-jscreen:not(.is-on) { display: none; }

.wm-url {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin: 0 14px 8px;
  height: 30px;
  border-radius: 10px;
  background: #f1f5f9;
  color: #475569;
  font-size: 12px;
}
.wm-url svg { color: #10b981; }
/* het domein licht op zodra het scherm verschijnt: overal hetzelfde adres */
.wm-dom {
  padding: 1px 3px;
  border-radius: 4px;
  background-image: linear-gradient(color-mix(in srgb, var(--wm-ui-accent) 22%, transparent), color-mix(in srgb, var(--wm-ui-accent) 22%, transparent));
  background-repeat: no-repeat;
  background-size: 0% 100%;
  color: #0f172a;
  font-weight: 600;
}
.wm-jscreen.is-on .wm-dom {
  background-size: 100% 100%;
  transition: background-size 0.7s var(--wm-ease) 0.45s;
}

/* site in de telefoon: dezelfde .wm-site, kleiner en zonder kader */
.wm-site.wm-site-phone {
  flex: 1 1 auto;
  height: auto;
  border-radius: 0;
  box-shadow: none;
}
.wm-site.wm-site-phone .wm-shero { align-content: start; }
.wm-site.wm-site-phone .wm-sphoto,
.wm-site.wm-site-phone[data-hero="panel"] .wm-sphoto { height: 210px; }
.wm-site.wm-site-phone[data-hero="clean"] .wm-sphoto { height: 190px; }

/* factuurmail */
.wm-jmail { padding-left: 18px; padding-right: 18px; }
.wm-jmail-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
  font-size: 12px;
  color: #2563eb;
}
.wm-jmail-top span:last-child { color: #94a3b8; }
.wm-jmail-from {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 10px;
  align-items: center;
}
.wm-jmark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: min(var(--t-r), 17px);
  background: var(--t-brand);
  color: var(--t-on-brand);
  font-family: var(--t-head);
  font-weight: 700;
  font-size: 16px;
  transition: background-color 0.5s ease, border-radius 0.5s ease;
}
.wm-jmail-who {
  display: flex;
  flex-direction: column;
  min-width: 0;
  font-size: 13px;
  line-height: 1.3;
}
.wm-jmail-who .wm-dom { align-self: flex-start; font-size: 11.5px; font-weight: 500; color: #334155; }
.wm-jmail-time { font-size: 11px; color: #94a3b8; }
.wm-jmail-subj {
  margin: 16px 0 10px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
}
.wm-jmail-body {
  font-size: 13px;
  line-height: 1.55;
  color: #334155;
}
.wm-jmail-body p { margin: 0 0 10px; }
.wm-jmail-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 14px 0 16px;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
}
.wm-jmail-card-row {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
}
.wm-jmail-card-row b { font-family: ui-monospace, "SF Mono", "Geist Mono", Menlo, monospace; }
.wm-jpay {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 38px;
  border-radius: min(var(--t-r), 10px);
  background: var(--t-brand);
  color: var(--t-on-brand);
  font-size: 13px;
  font-weight: 700;
  transition: background-color 0.5s ease, transform 0.15s ease;
}
.wm-jpay.is-tap { transform: scale(0.96); }

/* klantportaal */
.wm-jportal { background: #f8fafc; }
.wm-jportal .wm-url { background: #e8edf3; }
.wm-jportal-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px 14px;
  font-size: 14px;
}
.wm-jportal-head .wm-jmark { width: 30px; height: 30px; font-size: 14px; }
.wm-jportal-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 14px;
  padding: 16px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
}
.wm-jportal-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #475569;
}
.wm-jdue {
  padding: 2px 8px;
  border-radius: 999px;
  background: #fef3c7;
  color: #92400e;
  font-size: 10.5px;
  font-weight: 600;
}
.wm-jamount {
  margin-top: 4px;
  font-family: ui-monospace, "SF Mono", "Geist Mono", Menlo, monospace;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.wm-jportal-line { font-size: 12px; color: #64748b; margin-bottom: 8px; }
.wm-jpay-big { height: 44px; font-size: 14px; }
.wm-jideal {
  padding: 1px 5px;
  border-radius: 4px;
  background: #ffffff;
  color: #cc0066;
  font-size: 10px;
  font-weight: 800;
  font-style: italic;
}
.wm-jpaid {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  border-radius: min(var(--t-r), 10px);
  background: #dcfce7;
  color: #166534;
  font-size: 14px;
  font-weight: 700;
  opacity: 0;
  transform: scale(0.94);
  transition: opacity 0.35s ease, transform 0.45s var(--wm-ease);
}
.wm-jportal.is-paid .wm-jpaid { opacity: 1; transform: none; }
.wm-jportal.is-paid .wm-jdue { background: #dcfce7; color: #166534; }
.wm-jportal-rows {
  display: flex;
  flex-direction: column;
  margin: 14px 14px 0;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
}
.wm-jportal-rows > span {
  display: flex;
  justify-content: space-between;
  padding: 12px 14px;
  font-size: 12.5px;
}
.wm-jportal-rows > span + span { border-top: 1px solid #e2e8f0; }
.wm-jportal-rows em {
  font-style: normal;
  font-size: 11px;
  font-weight: 600;
  color: #166534;
}

@media (max-width: 900px) {
  .wm-journey {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
  .wm-phone { grid-row: 1; }
}
@media (max-width: 640px) {
  .wm-phone { width: 280px; }
  .wm-phone-screen { height: 560px; }
  .wm-jstep { padding: 14px 16px 16px; gap: 12px; }
  .wm-jtitle { font-size: 16px; }
  .wm-jdesc { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .wm-jscreen,
  .wm-jscreen.is-on,
  .wm-jpaid,
  .wm-jscreen.is-on .wm-dom { transition: none !important; }
  .wm-jscreen { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  /* Geen aankomst-animatie: de nieuwe mail staat er vanaf de eerste verf. */
  .wm-stage.is-js .wm-mrow-new {
    max-height: none;
    padding-top: 10px;
    padding-bottom: 10px;
    opacity: 1;
    border-bottom-width: 1px;
  }
  .wm-site,
  .wm-site *,
  .wm-cursor,
  .wm-stage.is-js .wm-mrow-new { transition: none !important; }
  .wm-site.is-sweeping .wm-sweep,
  .wm-site.is-swapping .wm-stitle,
  .wm-site.is-swapping .wm-sbrand,
  .wm-site.is-swapping .wm-scard b,
  .wm-site.is-device-swap,
  .wm-mrow-new.is-in .wm-mav { animation: none !important; }
  .wm-cursor { display: none; }
}
