/* MJ Solutions & Support. Mobile first: basisregels voor de telefoon, groter via min-width. */

@font-face {
  font-family: "Instrument Sans";
  src: url("/assets/fonts/instrument-sans-latin-ext.woff2") format("woff2");
  font-weight: 400 600;
  font-stretch: 75% 100%;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("/assets/fonts/instrument-sans-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-stretch: 75% 100%;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ground: #E7EAF0;
  --card: #FFFFFF;
  --ink: #1B2D5B;
  --text: #10172A;
  --muted: #566176;
  --signal: #FF5B1F;
  --track: #7A8498;
  --font: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.2, .75, .1, 1);
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --gutter-end: max(16px, env(safe-area-inset-right, 0px));
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { background: var(--ground); color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* Swipe-site */
.app { height: 100vh; height: 100dvh; display: flex; flex-direction: column; overflow: hidden; }

.top { display: flex; flex-direction: column; gap: 8px; padding-top: max(12px, env(safe-area-inset-top, 0px)); padding-bottom: 8px; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.top-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 44px; }
.brand { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.top-end { display: flex; align-items: center; gap: 12px; }
.where { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.lang { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; border-radius: 999px; font-size: 14px; font-weight: 600; letter-spacing: 0.02em; text-decoration: none; color: var(--ink); }
.lang:hover { background: var(--card); }

.steps { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; margin: 0; padding: 0; list-style: none; }
.steps button { appearance: none; border: 0; background: none; padding: 0; display: block; width: 100%; height: 24px; cursor: pointer; position: relative; }
.steps button::before { content: ""; position: absolute; inset: 10px 0; border-radius: 2px; background: var(--track); transition: background .4s var(--ease); }
.steps button[aria-current="true"]::before { background: var(--ink); }

.track { flex: 1; min-height: 0; display: flex; gap: 12px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; padding-top: 4px; padding-bottom: max(40px, env(safe-area-inset-bottom, 0px)); padding-left: var(--gutter); padding-right: var(--gutter-end); scroll-padding-inline: var(--gutter); }
.track::-webkit-scrollbar { display: none; }
.track:focus-visible { outline-offset: -2px; }
.track > .card, .slot { flex: 0 0 calc(100% - 28px); scroll-snap-align: start; }
.track > :last-child { margin-right: var(--gutter-end); }
.card { background: var(--card); border-radius: 26px; padding: 20px; display: flex; flex-direction: column; gap: 16px; overflow-x: hidden; overflow-y: auto; overscroll-behavior-y: contain; position: relative; }
.slot { position: relative; display: flex; flex-direction: column; min-height: 0; }
.slot > .card { flex: 1 1 auto; min-height: 0; }

.art { flex: 1; min-height: 120px; display: flex; align-items: center; justify-content: center; }
.art svg { width: 100%; height: 100%; max-height: 360px; overflow: visible; }
.copy { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.kicker { font-size: 14px; color: var(--muted); }
.big { margin: 0; font-size: clamp(28px, min(9.6vw, 7.5dvh), 72px); line-height: 1.02; font-weight: 500; font-stretch: 82%; letter-spacing: -0.035em; overflow-wrap: break-word; hyphens: auto; }
.small { margin: 0; font-size: 16px; line-height: 1.5; color: var(--muted); max-width: 34ch; }
.hint { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.hint svg { width: 18px; height: 18px; }
.hint .desk { display: none; }

/* Tekst verschijnt regel voor regel; zonder JavaScript staat alles gewoon in beeld. */
.line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.line > span { display: block; transition: transform .8s var(--ease); }
.js .line > span { transform: translateY(108%); }
.js .is-active .line > span { transform: none; }
.line:nth-child(1) > span { transition-delay: 180ms; }
.line:nth-child(2) > span { transition-delay: 270ms; }
.line:nth-child(3) > span { transition-delay: 360ms; }
.line:nth-child(4) > span { transition-delay: 450ms; }
.fade { transition: opacity .6s ease; transition-delay: 120ms; }
.big ~ .fade { transition-delay: 520ms; }
.big ~ .fade ~ .fade { transition-delay: 620ms; }
.big ~ .fade ~ .fade ~ .fade { transition-delay: 720ms; }
.js .fade { opacity: 0; }
.js .is-active .fade { opacity: 1; }
.is-active .hint svg { animation: nudge 1.6s var(--ease) infinite 1.2s; }
@keyframes nudge { 0%, 100% { transform: none; } 40% { transform: translateX(6px); } }

.s2 { --delay: 140ms; }
.s3 { --delay: 280ms; }
.s4 { --delay: 420ms; }

/* Intro: vierkant en bol */
.duo .sq, .duo .ball { mix-blend-mode: multiply; transform-box: fill-box; transform-origin: center; transition: transform 1.1s var(--ease); }
.js .duo .sq { transform: rotate(-18deg); }
.js .duo .ball { transform: translateX(60px); }
.js .is-active .duo .sq, .js .is-active .duo .ball { transform: none; }

/* Websites: browservenster bouwt zich op */
.web .frame { transition: stroke-dashoffset 1.4s var(--ease); }
.js .web .frame { stroke-dasharray: 1100; stroke-dashoffset: 1100; }
.js .is-active .web .frame { stroke-dashoffset: 0; }
.web .bar { transform-box: fill-box; transform-origin: left center; transition: transform .9s var(--ease); transition-delay: calc(var(--delay, 0ms) + 250ms); }
.js .web .bar { transform: scaleX(0); }
.js .is-active .web .bar { transform: none; }

/* Apps: telefoon kantelt rechtop, tegels verschijnen */
.phone .body { transform-box: fill-box; transform-origin: center; transition: transform 1.1s var(--ease); }
.js .phone .body { transform: rotate(-14deg) translateY(30px); }
.js .is-active .phone .body { transform: none; }
.phone .tile { transform-box: fill-box; transform-origin: center; transition: transform .6s cubic-bezier(.3, 1.5, .5, 1); transition-delay: calc(var(--delay, 0ms) + 500ms); }
.js .phone .tile { transform: scale(0); }
.js .is-active .phone .tile { transform: none; }

/* Onderhoud en hosting: draaiende ring */
.ring .arc { transform-box: view-box; transform-origin: 160px 160px; }
.is-active .ring .arc { animation: spin 4.5s linear infinite; }
.ring .core { transform-box: fill-box; transform-origin: center; transition: transform 1s var(--ease) .2s; }
.js .ring .core { transform: scale(.4); }
.js .is-active .ring .core { transform: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Support: spraakballonnen met typende puntjes */
.talk .bub { transform-box: fill-box; transform-origin: bottom left; transition: transform .7s cubic-bezier(.3, 1.4, .5, 1); transition-delay: calc(var(--delay, 0ms) * 2 + 150ms); }
.js .talk .bub { transform: scale(0); }
.js .is-active .talk .bub { transform: none; }
.talk .dot { opacity: .35; }
.is-active .talk .dot { animation: blink 1.2s ease-in-out infinite; animation-delay: calc(var(--delay, 0ms) + 900ms); }
@keyframes blink { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }

/* Contact: groeiende bol */
.sun circle { transform-box: fill-box; transform-origin: center; transition: transform 1.2s var(--ease); }
.js .sun circle { transform: scale(.55); }
.js .is-active .sun circle { transform: none; }

.mail { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.addr { font-size: clamp(20px, 6vw, 30px); font-weight: 500; letter-spacing: -0.02em; text-underline-offset: 5px; text-decoration-thickness: 1.5px; overflow-wrap: anywhere; padding: 6px 0; }
.copybtn { appearance: none; border: 0; min-height: 44px; padding: 0 16px; border-radius: 999px; background: var(--ink); color: #FFFFFF; font: inherit; font-size: 15px; font-weight: 500; cursor: pointer; }
.copybtn:focus-visible { outline-color: var(--signal); }
/* Bedrijfsgegevens: klein knopje onder de laatste kaart, opent een tooltip. */
.biz-toggle { position: absolute; top: 100%; left: 0; appearance: none; border: 0; background: none; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; margin-top: 2px; padding: 0 4px; font: inherit; font-size: 12px; color: var(--muted); cursor: pointer; }
.biz-toggle svg { width: 14px; height: 14px; }
.biz-toggle:hover { color: var(--ink); }
.biz { max-width: min(280px, calc(100vw - 32px)); padding: 14px 16px; border: 0; border-radius: 14px; background: var(--text); color: #FFFFFF; font-size: 13px; line-height: 1.7; box-shadow: 0 12px 32px rgba(16, 23, 42, .22); }
.biz a { color: #FFFFFF; display: inline-block; padding: 4px 0; }
.biz a:focus-visible { outline-color: #FFFFFF; }
@supports (position-area: block-start) {
  .biz { inset: auto; margin: 0 0 6px; position-area: block-start span-inline-end; position-try-fallbacks: flip-block, flip-inline, flip-block flip-inline; }
}
@supports selector(:popover-open) and (not (position-area: block-start)) {
  .biz { position: fixed; inset: auto max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); max-width: none; margin: 0; }
}

/* Gewone tekstpagina's (privacy, 404) */
.page { min-height: 100%; display: flex; flex-direction: column; gap: 24px; padding-top: max(24px, env(safe-area-inset-top, 0px)); padding-bottom: max(40px, env(safe-area-inset-bottom, 0px)); padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.page-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 44px; }
.page-head a { min-height: 44px; display: inline-flex; align-items: center; }
.sheet { background: var(--card); border-radius: 26px; padding: 28px 22px; max-width: 70ch; }
.sheet h1 { margin: 0 0 16px; font-size: clamp(30px, 8vw, 48px); line-height: 1.05; font-weight: 500; font-stretch: 82%; letter-spacing: -0.03em; }
.sheet h2 { margin: 28px 0 8px; font-size: 19px; font-weight: 600; }
.sheet p, .sheet li { max-width: 65ch; color: var(--text); }
.draft { display: inline-block; margin: 0 0 16px; padding: 6px 12px; border-radius: 999px; background: var(--ground); color: var(--ink); font-size: 14px; font-weight: 500; }

@media (hover: hover) and (pointer: fine) {
  .hint .touch { display: none; }
  .hint .desk { display: inline; }
}

@media (min-width: 860px) {
  .top { padding-top: max(24px, env(safe-area-inset-top, 0px)); padding-bottom: 16px; padding-left: max(40px, env(safe-area-inset-left, 0px)); padding-right: max(40px, env(safe-area-inset-right, 0px)); }
  .steps { max-width: 420px; }
  .track { --gutter: max(40px, env(safe-area-inset-left, 0px)); --gutter-end: max(40px, env(safe-area-inset-right, 0px)); gap: 20px; padding-top: 8px; padding-bottom: 40px; }
  .track > .card, .slot { flex-basis: min(68vw, 920px); }
  .card { flex-direction: row-reverse; align-items: stretch; padding: 40px; gap: 32px; border-radius: 32px; }
  .art { flex: 1 1 50%; }
  .copy { flex: 1 1 50%; justify-content: flex-end; }
  .big { font-size: clamp(36px, min(5vw, 8dvh), 76px); }
  .page { padding-left: max(40px, env(safe-area-inset-left, 0px)); padding-right: max(40px, env(safe-area-inset-right, 0px)); }
  .sheet { padding: 48px; }
}

/* Lage schermen (telefoon gekanteld, sterk ingezoomd): beeld kleiner, tekst blijft bereikbaar. */
@media (max-height: 520px) {
  .top { gap: 4px; padding-top: max(6px, env(safe-area-inset-top, 0px)); padding-bottom: 4px; }
  .art { flex: 0 0 72px; min-height: 0; }
  .card { gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .line > span, .js .fade, .js .duo .sq, .js .duo .ball, .js .web .bar, .js .phone .body, .js .phone .tile, .js .ring .core, .js .talk .bub, .js .sun circle { transform: none; opacity: 1; }
  .js .web .frame { stroke-dashoffset: 0; }
}
