/* @studio/website-kit — design-systeem. Consumeert tokens uit tokens.css (var(--..))
   met veilige fallbacks. Glasmorfisme + gradient-mesh + motion. Self-hosted fonts. */

/* --- self-hosted fonts (geen externe CDN) --- */
@font-face { font-family: 'Inter'; src: url('/assets/fonts/sans.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Fraunces'; src: url('/assets/fonts/serif.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0; background: var(--bg, #0b0f14); color: var(--text, #e5e7eb);
  font-family: var(--font-sans, system-ui, sans-serif); line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden; max-width: 100%;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(1120px, 92vw); margin-inline: auto; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 1rem; top: 1rem; background: var(--brand); color: #fff; padding: .5rem 1rem; border-radius: 8px; z-index: 100; }

/* --- glasmorfisme --- */
.glass {
  background: var(--card, var(--surface, #ffffff));
  border: 1px solid var(--border, color-mix(in srgb, currentColor 12%, transparent));
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-radius: 18px;
  /* Echte diepte (werkt op licht én donker) i.p.v. alleen glas-blur. */
  box-shadow: 0 1px 3px rgba(15,23,42,.05), 0 14px 34px -12px rgba(15,23,42,.14);
}

/* --- knoppen --- */
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .7rem 1.3rem; border-radius: 12px; font-weight: 600; border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(135deg, var(--brand), var(--accent, var(--brand))); color: #fff; box-shadow: 0 8px 30px color-mix(in srgb, var(--brand) 35%, transparent); }
.btn-ghost { background: transparent; border-color: var(--border, rgba(255,255,255,0.15)); color: var(--text); }
.btn-ghost:hover { background: color-mix(in srgb, var(--text) 6%, transparent); }
.btn-lg { padding: .9rem 1.7rem; font-size: 1.05rem; }

/* --- header --- */
.site-header { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); background: color-mix(in srgb, var(--bg, #0b0f14) 72%, transparent); border-bottom: 1px solid var(--border, color-mix(in srgb, currentColor 12%, transparent)); }
.header-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; padding: .9rem 0; }
.brand { justify-self: start; display: inline-flex; }
.brand-logo { height: 28px; width: auto; }
.site-nav { justify-self: center; display: flex; align-items: center; gap: 1.6rem; }
.header-right { justify-self: end; display: flex; align-items: center; gap: 1rem; }
.nav-link { color: var(--muted, #94a3b8); font-weight: 500; }
.nav-link:hover { color: var(--text); }
.menu-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: .5rem; }
.menu-toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; }

/* --- hero --- */
.hero { position: relative; padding: clamp(4rem, 10vw, 8rem) 0 5rem; text-align: center; overflow: hidden; }
.hero-mesh { position: absolute; inset: -20% -20% auto; height: 700px; background:
  radial-gradient(closest-side, color-mix(in srgb, var(--brand) 26%, transparent), transparent 70%) 20% 20%/60% 60% no-repeat,
  radial-gradient(closest-side, color-mix(in srgb, var(--brand2, var(--brand)) 20%, transparent), transparent 70%) 80% 10%/55% 55% no-repeat,
  radial-gradient(closest-side, color-mix(in srgb, var(--accent, var(--brand)) 22%, transparent), transparent 70%) 60% 60%/60% 60% no-repeat;
  filter: blur(30px); z-index: 0; }
.hero-inner { position: relative; z-index: 1; }
.eyebrow { display: inline-block; padding: .3rem .9rem; border-radius: 999px; border: 1px solid var(--border); color: var(--brand); font-size: .85rem; font-weight: 600; margin-bottom: 1.2rem; }
.hero-title { font-family: var(--font-sans, system-ui, sans-serif); font-weight: 800; font-size: clamp(1.9rem, 6vw, 4.2rem); line-height: 1.08; margin: 0 0 1rem; letter-spacing: -.02em; text-wrap: balance; overflow-wrap: break-word; }
.hero-sub { font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--muted, #94a3b8); max-width: 620px; margin: 0 auto 2rem; }
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-note { margin-top: 1.4rem; color: var(--muted); font-size: .9rem; }

/* --- secties --- */
section { padding: clamp(3rem, 7vw, 6rem) 0; }
.section-title { font-family: var(--font-sans, system-ui, sans-serif); font-weight: 800; font-size: clamp(1.8rem, 4vw, 2.8rem); text-align: center; margin: 0 0 2.5rem; letter-spacing: -.02em; }

/* social proof */
.social-proof { padding: 2.5rem 0; }
.proof-title { text-align: center; color: var(--muted); font-size: .9rem; margin-bottom: 1.4rem; }
.proof-logos { display: flex; gap: 2.5rem; justify-content: center; align-items: center; flex-wrap: wrap; opacity: .7; }
.proof-logo { height: 28px; filter: grayscale(1) brightness(1.6); }

/* problem/solution */
.ps-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.ps-col { padding: 2rem; border-radius: 18px; border: 1px solid var(--border); }
.ps-problem { background: color-mix(in srgb, var(--text) 4%, transparent); }
.ps-solution { background: color-mix(in srgb, var(--success, #16a34a) 8%, transparent); }
.ps-heading { margin-top: 0; }
.ps-list { list-style: none; padding: 0; margin: 0; }
.ps-list li { padding: .5rem 0 .5rem 1.6rem; position: relative; }
.ps-list li::before { content: ''; position: absolute; left: 0; top: .95rem; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }

/* how */
.how-grid, .feature-grid { display: grid; gap: 1.2rem; }
.how-grid { grid-template-columns: repeat(3, 1fr); }
.how-card, .feature-card { padding: 1.8rem; }
.how-step { display: inline-flex; width: 38px; height: 38px; align-items: center; justify-content: center; border-radius: 10px; background: linear-gradient(135deg, var(--brand), var(--accent)); color: #fff; font-weight: 700; margin-bottom: 1rem; }
.how-title, .feature-title { margin: .3rem 0 .5rem; font-size: 1.2rem; }
.how-body, .feature-body { color: var(--muted); margin: 0; }

/* features */
.feature-grid { grid-template-columns: repeat(3, 1fr); }
.feature-icon { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 12px; color: var(--brand); background: color-mix(in srgb, var(--brand) 12%, transparent); margin-bottom: .4rem; }
.feature-icon .icon { width: 24px; height: 24px; }

/* pricing */
.billing-toggle { display: flex; align-items: center; justify-content: center; gap: .9rem; margin-bottom: 2.2rem; }
.bt-hint { color: var(--success, #22c55e); font-style: normal; font-size: .8rem; }
.switch { position: relative; display: inline-block; width: 48px; height: 26px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; inset: 0; background: var(--border); border-radius: 999px; transition: .2s; }
.slider::before { content: ''; position: absolute; height: 20px; width: 20px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; }
.switch input:checked + .slider { background: var(--brand); }
.switch input:checked + .slider::before { transform: translateX(22px); }
.switch input:focus-visible + .slider { outline: 2px solid var(--brand); outline-offset: 2px; }
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 400px)); justify-content: center; gap: 1.4rem; max-width: 860px; margin-inline: auto; }
.price-card { padding: 2rem; position: relative; display: flex; flex-direction: column; }
.price-card.is-featured { border-color: var(--brand); box-shadow: 0 12px 40px color-mix(in srgb, var(--brand) 25%, transparent); }
.price-badge { position: absolute; top: -12px; right: 20px; background: var(--brand); color: #fff; font-size: .75rem; font-weight: 700; padding: .25rem .7rem; border-radius: 999px; }
.price-name { margin: 0 0 .6rem; }
.price-figure { margin-bottom: 1.2rem; min-height: 2.6rem; }
.price-amt { font-size: 2.2rem; font-weight: 800; font-family: var(--font-sans, system-ui, sans-serif); font-weight: 800; }
.price-per { color: var(--muted); }
.price-feats { list-style: none; padding: 0; margin: 0 0 1.5rem; flex: 1; }
.price-feats li { padding: .4rem 0 .4rem 1.6rem; position: relative; }
.price-feats li::before { content: '✓'; position: absolute; left: 0; color: var(--success, #22c55e); font-weight: 700; }
/* maand/jaar-toggle (gezet door app.js) */
[data-pricing].show-yearly [data-price-monthly] { display: none; }
[data-pricing]:not(.show-yearly) [data-price-yearly] { display: none; }

/* testimonials */
.quote-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 1.2rem; }
.quote-card { padding: 1.8rem; }
.quote-text { font-size: 1.15rem; margin: 0 0 1rem; }
.quote-by { display: flex; flex-direction: column; color: var(--muted); }
.quote-by strong { color: var(--text); }

/* faq */
.faq-narrow { max-width: 760px; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q { margin: 0; }
.faq-btn { width: 100%; text-align: left; background: none; border: 0; color: var(--text); font-size: 1.1rem; font-weight: 600; padding: 1.2rem 0; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq-chev { width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s; }
.faq-btn[aria-expanded="true"] .faq-chev { transform: rotate(-135deg); }
.faq-a { padding: 0 0 1.2rem; color: var(--muted); }
.faq-a p { margin: 0; }

/* cta band */
.cta-inner { text-align: center; padding: clamp(2.5rem, 6vw, 4rem); }
.cta-title { font-family: var(--font-sans, system-ui, sans-serif); font-weight: 800; font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0 0 .8rem; }
.cta-body { color: var(--muted); margin: 0 0 1.8rem; }

/* footer */
.site-footer { border-top: 1px solid var(--border); padding: 3.5rem 0 2rem; margin-top: 2rem; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; margin-bottom: 2.5rem; }
.foot-tag { color: var(--muted); margin: .8rem 0 0; }
.foot-title { font-size: .95rem; margin: 0 0 .8rem; }
.foot-col ul { list-style: none; padding: 0; margin: 0; }
.foot-col li { padding: .3rem 0; }
.foot-col a { color: var(--muted); }
.foot-col a:hover { color: var(--text); }
.foot-bottom { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; padding-top: 1.5rem; border-top: 1px solid var(--border); color: var(--muted); font-size: .85rem; }
.foot-company { display: flex; flex-wrap: wrap; gap: .8rem; }
.foot-legal { display: flex; gap: 1rem; }

/* --- scroll-reveal --- */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
[data-reveal].revealed { opacity: 1; transform: none; }

/* --- responsive --- */
@media (max-width: 860px) {
  /* Mobiel: merk links, acties rechts (hamburger + toggle); nav wordt uitklap-paneel.
     Terug naar flex (space-between) zodat header-right gegarandeerd op één rij rechts staat. */
  .header-inner { display: flex; justify-content: space-between; grid-template-columns: none; }
  .menu-toggle { display: flex; }
  .header-right { gap: .5rem; }
  .site-nav { position: fixed; inset: 64px 0 auto; z-index: 40; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg, #ffffff); border-bottom: 1px solid var(--border); padding: 1rem 6vw 1.5rem; transform: translateY(-130%); transition: transform .25s ease; box-shadow: 0 20px 40px -20px rgba(15,23,42,.25); }
  .site-nav.open { transform: translateY(0); }
  .site-nav .nav-link { padding: .9rem 0; border-bottom: 1px solid var(--border); }
  .nav-cta { padding: .55rem 1rem; } /* compacte CTA naast de hamburger */
}
@media (max-width: 820px) {
  .how-grid, .feature-grid { grid-template-columns: 1fr; }
  .ps-grid, .foot-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .nav-cta { display: none; } /* echt smal: alleen toggle + hamburger; CTA staat in de hero */
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .btn:hover { transform: none; }
}

/* ---- Thema-toggle (licht/donker) ---- */
.theme-toggle{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;padding:0;border-radius:10px;border:1px solid var(--border, color-mix(in srgb, currentColor 12%, transparent));background:transparent;color:var(--text);cursor:pointer;transition:background .15s ease,border-color .15s ease}
.theme-toggle:hover{background:color-mix(in srgb, var(--text) 6%, transparent)}
.theme-toggle:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
.theme-toggle .icon-sun{display:none}
.theme-toggle .icon-moon{display:inline}
:root[data-theme="dark"] .theme-toggle .icon-sun{display:inline}
:root[data-theme="dark"] .theme-toggle .icon-moon{display:none}
@media (prefers-color-scheme: dark){
  :root:not([data-theme]) .theme-toggle .icon-sun{display:inline}
  :root:not([data-theme]) .theme-toggle .icon-moon{display:none}
}
