/* freelance-totaal.nl — gedeelde stijl */

/* Lettertypes zelf gehost (SIL Open Font License), geen externe verbindingen */
@font-face {
    font-family: "Bricolage Grotesque";
    src: url("/assets/fonts/bricolage-grotesque-latin-wght.woff2") format("woff2");
    font-weight: 200 800;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Instrument Sans";
    src: url("/assets/fonts/instrument-sans-latin-wght.woff2") format("woff2");
    font-weight: 400 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg: #0a1024;
    --surface: #111a36;
    --line: #243157;
    --text: #e7ebf7;
    --muted: #9ba7c7;
    --indigo: #818cf8;
    --cyan: #22d3ee;
    --gradient: linear-gradient(90deg, var(--indigo), var(--cyan));
    --font-display: "Bricolage Grotesque", system-ui, sans-serif;
    --font-body: "Instrument Sans", system-ui, sans-serif;
    --wrap: 1120px;
    --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; }

a:focus-visible, button:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 3px;
    border-radius: 4px;
}

.wrap {
    width: 100%;
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.skip {
    position: absolute;
    left: -9999px;
}
.skip:focus { left: var(--gutter); top: 12px; background: var(--surface); padding: 8px 12px; z-index: 10; }

/* Header */
.site-header {
    border-bottom: 1px solid var(--line);
}
.site-header .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 68px;
}
.wordmark {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: -0.01em;
    text-decoration: none;
}
.wordmark span { color: var(--muted); font-weight: 500; }
.site-nav ul {
    display: flex;
    gap: clamp(14px, 3vw, 32px);
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.95rem;
}
.site-nav a { color: var(--muted); text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); }

/* Typografie */
h1, h2, h3 {
    font-family: var(--font-display);
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin: 0;
}
h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; }
.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.lead { font-size: clamp(1.1rem, 1.8vw, 1.3rem); color: var(--muted); max-width: 34em; }
.prose { max-width: 38em; }
.prose p { margin: 0 0 1em; }
.muted { color: var(--muted); }

/* Knoppen */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn {
    display: inline-block;
    padding: 12px 22px;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
}
.btn-primary { background: var(--text); color: var(--bg); }
.btn-primary:hover { background: #fff; }
.btn-ghost { border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--muted); }

/* Secties */
.section { padding: clamp(56px, 9vw, 112px) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section h2 { margin-bottom: 20px; }

/* Hero */
.hero {
    position: relative;
    overflow: hidden;
    padding: clamp(56px, 9vw, 120px) 0 clamp(56px, 8vw, 96px);
    background: radial-gradient(60% 70% at 90% 0%, rgba(129, 140, 248, 0.22), transparent 70%);
}
.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: clamp(32px, 5vw, 64px);
    align-items: center;
}
.hero h1 { margin-bottom: 24px; }
.hero-page { padding-bottom: clamp(40px, 6vw, 72px); }
.hero-page h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); max-width: 16em; }

/* Convergentie-visual: veel platforms, één overzicht */
.funnel { width: 100%; height: auto; }
.funnel .source { fill: var(--muted); font: 500 15px var(--font-body); }
.funnel .path { fill: none; stroke: url(#stroke); stroke-width: 1.4; opacity: 0.75; }
.funnel .node { fill: var(--surface); stroke: url(#stroke); stroke-width: 2; }
.funnel .node-label { fill: var(--text); font: 700 20px var(--font-display); }
.funnel .node-sub { fill: var(--muted); font: 500 13px var(--font-body); }
@media (prefers-reduced-motion: no-preference) {
    .funnel .path {
        stroke-dasharray: 420;
        stroke-dashoffset: 420;
        animation: draw 1.4s cubic-bezier(.4, 0, .2, 1) forwards;
        animation-delay: calc(var(--i) * 70ms);
    }
    .funnel .node, .funnel .node-label, .funnel .node-sub {
        opacity: 0;
        animation: appear .5s ease-out 1.3s forwards;
    }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes appear { to { opacity: 1; } }

/* Twee kolommen tekst + kenmerken */
.split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(32px, 6vw, 80px);
    align-items: start;
}
.facts { list-style: none; margin: 0; padding: 0; }
.facts li {
    display: grid;
    grid-template-columns: 7.5em 1fr;
    gap: 16px;
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
}
.facts li:first-child { border-top: 1px solid var(--line); }
.facts strong {
    font-family: var(--font-display);
    font-size: 1.5rem;
    line-height: 1.2;
}
.facts span { color: var(--muted); }

/* Producten — lijst, zodat er later producten bij kunnen */
.products { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 20px; }
.product {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: clamp(24px, 4vw, 56px);
    padding: clamp(24px, 4vw, 48px);
    border: 1px solid var(--line);
    border-radius: 20px;
    background:
        linear-gradient(var(--surface), var(--surface)) padding-box,
        linear-gradient(120deg, rgba(129, 140, 248, .55), rgba(34, 211, 238, .25) 40%, var(--line) 70%) border-box;
    border-color: transparent;
}
.product h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 12px; }
.product .tagline { color: var(--muted); margin: 0 0 8px; }
.product ul { margin: 0; padding-left: 1.1em; color: var(--muted); }
.product li { margin-bottom: 8px; }
.product li::marker { color: var(--cyan); }
.product .actions { margin-top: 24px; }

/* Stappen (echte volgorde) */
.steps { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); counter-reset: step; }
.steps li { counter-increment: step; padding-top: 20px; border-top: 2px solid var(--line); position: relative; }
.steps li::before {
    content: counter(step);
    position: absolute;
    top: -2px;
    left: 0;
    width: 48px;
    height: 2px;
    background: var(--gradient);
    font-size: 0;
}
.steps h3 { margin-bottom: 8px; }
.steps h3::before { content: counter(step) ". "; color: var(--cyan); }
.steps p { margin: 0; color: var(--muted); }

/* Vergelijkingstabel */
.table-scroll { overflow-x: auto; margin-top: 32px; }
.compare { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 0.975rem; }
.compare th, .compare td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { font-family: var(--font-display); font-size: 1.05rem; color: var(--muted); font-weight: 600; }
.compare thead th.us { color: var(--text); }
.compare td.us { color: var(--text); background: rgba(129, 140, 248, .07); }
.compare tbody th { font-weight: 600; width: 28%; }
.compare td { color: var(--muted); }

/* FAQ */
.faq { margin-top: 24px; max-width: 46em; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
    cursor: pointer;
    list-style: none;
    padding: 20px 32px 20px 0;
    font-weight: 600;
    position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: "+";
    position: absolute;
    right: 4px;
    top: 16px;
    font-size: 1.4rem;
    color: var(--cyan);
    transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 20px; color: var(--muted); }

/* Sectoren / disciplines */
.tags { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 16px 0 0; padding: 0; }
.tags li { border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 0.95rem; color: var(--muted); }

/* Afsluitende oproep */
.closing { text-align: left; }
.closing h2 { max-width: 18em; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 48px; color: var(--muted); font-size: 0.95rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 32px; }
.site-footer p { margin: 0; }
.site-footer ul { display: flex; flex-wrap: wrap; gap: 8px 24px; list-style: none; margin: 0; padding: 0; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--text); }

/* Mobiel */
@media (max-width: 860px) {
    .hero-grid, .split, .product { grid-template-columns: 1fr; }
    .steps { grid-template-columns: 1fr; }
    .funnel { max-width: 460px; }
}
@media (max-width: 520px) {
    .site-header .wrap { flex-direction: column; align-items: flex-start; justify-content: center; gap: 6px; padding-top: 14px; padding-bottom: 14px; }
    .facts li { grid-template-columns: 1fr; gap: 4px; }
}
