/* Kwantro website — rustig paars, veel lucht, subtiele animaties. */
:root {
  --brand-50: #f5f3ff; --brand-100: #ede9fe; --brand-200: #ddd6fe; --brand-300: #c4b5fd; --brand-400: #a78bfa;
  --brand-500: #8b5cf6; --brand-600: #7c3aed; --brand-700: #6d28d9; --brand-800: #5b21b6; --brand-900: #4c1d95; --brand-950: #2e1065;
  --amber: #fbbf24;
  --bg: #eef0f4; --surface: #fbfbfd; --surface-2: #f5f6f9; --border: #d6dae2;
  --text: #171b24; --muted: #4f5869; --subtle: #687284;
  --ok: #15803d; --warn: #b45309; --bad: #b91c1c;
  --radius: 18px; --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(23, 27, 36, .04), 0 8px 24px rgba(23, 27, 36, .06);
  --shadow-lg: 0 20px 60px rgba(46, 16, 101, .18);
  --ease: cubic-bezier(.2, .7, .2, 1);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171b24; --surface: #1f2531; --surface-2: #252c3a; --border: #2b3241;
    --text: #eef0f4; --muted: #a3abba; --subtle: #8f98a8;
    --shadow: 0 1px 2px rgba(0, 0, 0, .2), 0 8px 24px rgba(0, 0, 0, .25);
  }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Inter, -apple-system, 'Segoe UI', Roboto, sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
a { color: var(--brand-700); text-decoration: none; }
@media (prefers-color-scheme: dark) { a { color: var(--brand-300); } }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
.container { width: min(1180px, 100% - 40px); margin-inline: auto; }
.muted { color: var(--muted); } .small { font-size: .9rem; }
.skip { position: absolute; left: -9999px; } .skip:focus { left: 12px; top: 12px; z-index: 100; background: var(--surface); padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--brand-400); outline-offset: 2px; border-radius: 6px; }

/* Knoppen */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 44px; padding: 0 18px; border-radius: 12px; font-weight: 600; border: 1px solid transparent; cursor: pointer; font: inherit; font-weight: 600; transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s; text-decoration: none !important; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--brand-700); color: #fff !important; box-shadow: 0 8px 20px rgba(109, 40, 217, .28); }
.btn-primary:hover { background: var(--brand-800); box-shadow: 0 12px 28px rgba(109, 40, 217, .35); }
.btn-secondary { background: var(--surface); color: var(--text) !important; border-color: var(--border); }
.btn-ghost { background: transparent; color: var(--text) !important; }
.btn-light { background: #fff; color: var(--brand-800) !important; }
.btn-lg { min-height: 52px; padding: 0 24px; font-size: 1.05rem; }
.btn[disabled] { opacity: .55; pointer-events: none; }

/* Kop */
.site-header { position: sticky; top: 0; z-index: 50; transition: background .3s, box-shadow .3s, backdrop-filter .3s; }
.site-header.scrolled { background: color-mix(in srgb, var(--surface) 85%, transparent); backdrop-filter: saturate(160%) blur(12px); box-shadow: 0 1px 0 var(--border); }
.nav { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.3rem; color: var(--text) !important; letter-spacing: -.02em; }
.logo-mark { transition: transform .4s var(--ease); } .logo:hover .logo-mark { transform: rotate(-8deg) scale(1.05); }
.nav-links { display: flex; gap: 6px; list-style: none; margin: 0 0 0 12px; padding: 0; }
.nav-links a { color: var(--muted); padding: 8px 12px; border-radius: 10px; font-weight: 500; }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--text); background: var(--surface-2); text-decoration: none; }
.nav-cta { margin-left: auto; display: flex; gap: 8px; }
.menu-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); cursor: pointer; padding: 12px 11px; flex-direction: column; justify-content: space-between; }
.menu-toggle span { display: block; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s var(--ease), opacity .3s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.mobile-menu { display: grid; gap: 4px; padding: 8px 20px 20px; background: var(--surface); border-bottom: 1px solid var(--border); }
.mobile-menu a:not(.btn) { padding: 12px; border-radius: 10px; color: var(--text); font-weight: 500; }
@media (max-width: 860px) { .nav-links, .nav-cta { display: none; } .menu-toggle { display: flex; } }
@media (min-width: 861px) { .mobile-menu { display: none !important; } }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 72px 0 96px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--brand-100); color: var(--brand-800); font-weight: 600; font-size: .85rem; margin-bottom: 18px; }
@media (prefers-color-scheme: dark) { .eyebrow { background: var(--brand-950); color: var(--brand-200); } }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 4px rgba(251, 191, 36, .25); animation: pulse 2s infinite; }
.hero h1 .accent { background: linear-gradient(110deg, var(--brand-600), var(--brand-400) 45%, var(--amber)); -webkit-background-clip: text; background-clip: text; color: transparent; background-size: 200% auto; animation: shine 6s linear infinite; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 40ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 18px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 18px; color: var(--muted); font-size: .92rem; }
.hero-proof span::before { content: '✓'; color: var(--ok); font-weight: 800; margin-right: 6px; }
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .5; z-index: -1; animation: float 14s var(--ease) infinite alternate; }
.blob.b1 { width: 520px; height: 520px; background: var(--brand-300); top: -160px; right: -120px; }
.blob.b2 { width: 360px; height: 360px; background: #fde68a; bottom: -120px; left: -80px; animation-delay: -6s; }
@media (prefers-color-scheme: dark) { .blob { opacity: .22; } }

/* App-illustratie in de hero */
.mock-wrap { position: relative; }
.mock { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 24px; box-shadow: var(--shadow-lg); padding: 18px; transform: perspective(1400px) rotateY(-8deg) rotateX(4deg); transition: transform .8s var(--ease); }
.mock:hover { transform: perspective(1400px) rotateY(0) rotateX(0); }
.mock-top { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.mock-top i { width: 10px; height: 10px; border-radius: 50%; background: var(--border); display: inline-block; }
.mock-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.mock-kpi { background: var(--surface-2); border-radius: 14px; padding: 10px 12px; }
.mock-kpi b { display: block; font-size: 1.35rem; }
.mock-kpi small { color: var(--muted); }
.mock-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); margin-top: 8px; opacity: 0; transform: translateY(8px); animation: rowIn .6s var(--ease) forwards; }
.mock-row:nth-child(2) { animation-delay: .25s; } .mock-row:nth-child(3) { animation-delay: .5s; } .mock-row:nth-child(4) { animation-delay: .75s; }
.mock-row .name { flex: 1; font-weight: 500; }
.mock-row .bar { width: 90px; height: 8px; border-radius: 99px; background: var(--border); overflow: hidden; }
.mock-row .bar span { display: block; height: 100%; border-radius: 99px; width: 0; animation: grow 1.4s var(--ease) forwards; animation-delay: 1s; }
.pill { font-size: .75rem; font-weight: 700; padding: 3px 8px; border-radius: 99px; }
.pill.ok { background: #dcfce7; color: #166534; } .pill.low { background: #fef3c7; color: #92400e; } .pill.out { background: #fee2e2; color: #991b1b; }
.mock-float { position: absolute; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 12px 14px; box-shadow: var(--shadow); font-size: .9rem; animation: bob 5s ease-in-out infinite; }
.mock-float.f1 { left: -28px; bottom: -26px; } .mock-float.f2 { right: -18px; top: -20px; animation-delay: -2.5s; }
.mock-float b { color: var(--brand-700); }
@media (max-width: 960px) { .mock { transform: none; } .mock-float.f1 { left: 8px; } .mock-float.f2 { right: 8px; } }

/* Secties */
section { padding: 88px 0; }
.section-head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.band { background: var(--surface); border-block: 1px solid var(--border); }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--brand-200); }
.icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-100); color: var(--brand-700); margin-bottom: 14px; }
@media (prefers-color-scheme: dark) { .icon { background: var(--brand-950); color: var(--brand-300); } }
.icon svg { width: 22px; height: 22px; }
.card p { color: var(--muted); margin: 0; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat b { display: block; font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; color: var(--brand-700); }
@media (prefers-color-scheme: dark) { .stat b { color: var(--brand-300); } }
.stat span { color: var(--muted); }
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding-top: 56px; }
.step::before { counter-increment: s; content: counter(s); position: absolute; top: 0; left: 0; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-700); color: #fff; font-weight: 800; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.check-list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.check-list li { padding-left: 30px; position: relative; }
.check-list li::before { content: ''; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 6px; background: var(--brand-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236D28D9' stroke-width='3'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/14px no-repeat; }
.ai-panel { background: linear-gradient(140deg, var(--brand-800), var(--brand-950)); color: #fff; border-radius: 28px; padding: 28px; box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.ai-panel::after { content: ''; position: absolute; inset: auto -60px -80px auto; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(251, 191, 36, .35), transparent 70%); }
.ai-msg { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .15); border-radius: 16px; padding: 12px 14px; margin-top: 10px; font-size: .95rem; }
.ai-msg.q { background: rgba(255, 255, 255, .95); color: var(--brand-950); margin-left: 15%; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 12px; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.tag { white-space: nowrap; padding: 10px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-weight: 500; }
.cta-band { background: linear-gradient(120deg, var(--brand-700), var(--brand-900)); color: #fff; border-radius: 28px; padding: 56px; text-align: center; position: relative; overflow: hidden; }
.cta-band h2 { color: #fff; } .cta-band p { color: var(--brand-100); }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 24px; }

/* FAQ */
.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0 20px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 600; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: '+'; font-size: 1.4rem; line-height: 1; color: var(--brand-600); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 18px; margin: 0; animation: fadeIn .4s var(--ease); }

/* Prijzen */
.billing-toggle { display: inline-flex; padding: 4px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; gap: 4px; margin: 0 auto 32px; position: relative; }
.billing-toggle button { border: 0; background: transparent; padding: 10px 18px; border-radius: 10px; font: inherit; font-weight: 600; color: var(--muted); cursor: pointer; transition: background .25s, color .25s; }
.billing-toggle button[aria-pressed="true"] { background: var(--brand-700); color: #fff; }
.billing-toggle .save { font-size: .75rem; background: var(--amber); color: #422006; padding: 2px 6px; border-radius: 6px; margin-left: 6px; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
@media (max-width: 960px) { .plans { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; } }
.plan { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 28px; box-shadow: var(--shadow); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.plan.highlight { border: 2px solid var(--brand-600); box-shadow: 0 24px 60px rgba(109, 40, 217, .22); }
.plan .badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--brand-700); color: #fff; font-size: .8rem; font-weight: 700; padding: 5px 12px; border-radius: 99px; }
.price { font-size: 2.6rem; font-weight: 800; margin: 14px 0 0; letter-spacing: -.03em; transition: opacity .25s; }
.price small { font-size: .95rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.price-note { color: var(--muted); font-size: .9rem; min-height: 2.6em; }
.features { list-style: none; padding: 0; margin: 12px 0 24px; display: grid; gap: 9px; flex: 1; }
.features li { padding-left: 26px; position: relative; color: var(--muted); }
.features li::before { content: '✓'; position: absolute; left: 0; color: var(--brand-600); font-weight: 800; }
.calc { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.calc input[type=range] { flex: 1; min-width: 200px; accent-color: var(--brand-600); }

/* Formulieren */
.form { display: grid; gap: 16px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: end; }
@media (max-width: 640px) { .form .row { grid-template-columns: 1fr; } }
label { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; }
label .hint { font-weight: 400; color: var(--muted); font-size: .85rem; }
input, select, textarea { font: inherit; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--text); min-height: 46px; transition: border-color .2s, box-shadow .2s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand-500); box-shadow: 0 0 0 4px rgba(139, 92, 246, .18); }
textarea { min-height: 140px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.check input { min-height: 0; width: 20px; height: 20px; margin-top: 3px; accent-color: var(--brand-700); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { border-radius: 14px; padding: 14px 16px; border: 1px solid; }
.notice.ok { background: #f0fdf4; border-color: #bbf7d0; color: #14532d; }
.notice.err { background: #fef2f2; border-color: #fecaca; color: #7f1d1d; }
.notice.info { background: var(--brand-50); border-color: var(--brand-200); color: var(--brand-900); }
.order-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: start; }
@media (max-width: 900px) { .order-grid { grid-template-columns: 1fr; } }
.summary { position: sticky; top: 92px; }
.summary dl { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; margin: 0; }
.summary dt { color: var(--muted); } .summary dd { margin: 0; text-align: right; font-weight: 600; }
.summary .total { border-top: 1px solid var(--border); padding-top: 10px; font-size: 1.2rem; }
.loc-list { display: grid; gap: 8px; }
.loc-item { display: flex; gap: 8px; }
.loc-item input { flex: 1; }
.icon-btn { width: 46px; min-height: 46px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; font-size: 1.2rem; color: var(--muted); }
.steps-mini { display: flex; gap: 8px; margin-bottom: 24px; flex-wrap: wrap; }
.steps-mini span { padding: 6px 12px; border-radius: 99px; background: var(--surface); border: 1px solid var(--border); font-size: .85rem; font-weight: 600; color: var(--muted); }
.steps-mini span.on { background: var(--brand-700); border-color: var(--brand-700); color: #fff; }
.prose { max-width: 760px; }
.prose h2 { font-size: 1.4rem; margin-top: 1.8em; }
.page-hero { padding: 64px 0 24px; }
.status-dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; margin-right: 8px; background: var(--subtle); }
.status-dot.ok { background: #22c55e; box-shadow: 0 0 0 6px rgba(34, 197, 94, .18); animation: pulse 2s infinite; }
.status-dot.bad { background: #ef4444; }
.spinner { width: 22px; height: 22px; border: 3px solid var(--brand-200); border-top-color: var(--brand-700); border-radius: 50%; animation: spin .8s linear infinite; display: inline-block; vertical-align: middle; }

/* Voet */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); padding: 56px 0 28px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 28px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
.site-footer h4 { font-size: .9rem; text-transform: uppercase; letter-spacing: .06em; color: var(--subtle); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--muted); } .site-footer a:hover { color: var(--text); }
.copyright { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; border-top: 1px solid var(--border); margin-top: 36px; padding-top: 20px; color: var(--subtle); font-size: .88rem; }

/* Animaties bij het scrollen */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
@keyframes shine { to { background-position: 200% center; } }
@keyframes float { from { transform: translate(0, 0) scale(1); } to { transform: translate(-40px, 30px) scale(1.08); } }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(251, 191, 36, .45); } 50% { box-shadow: 0 0 0 8px rgba(251, 191, 36, 0); } }
@keyframes rowIn { to { opacity: 1; transform: none; } }
@keyframes grow { to { width: var(--w, 60%); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .mock { transform: none; }
}
