/* Site Figures — v6.0
   Merkkleuren komen uit het logo: #0075FF primair, #213052 inkt,
   #0B5ABD diep, #6C8AAF gedempt. Eén licht thema, Inter overal. */

:root {
    --brand: #0075ff;
    --brand-deep: #0b5abd;
    --brand-wash: #eef5ff;
    --ink: #213052;
    --ink-soft: #6c7a94;
    --slate: #6c8aaf;
    --page: #f4f7fc;
    --surface: #ffffff;
    --line: #e2e8f2;
    --line-soft: #edf1f7;
    --good: #12a06a;
    --bad: #d4573f;
    --radius: 14px;
    --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

[data-theme="dark"] {
    --brand: #3f95ff;
    --brand-deep: #6cb0ff;
    --brand-wash: #151d2e;
    --ink: #e8edf6;
    --ink-soft: #94a1b8;
    --page: #0e131d;
    --surface: #161d2b;
    --line: #27303f;
    --line-soft: #212a38;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--page);
    color: var(--ink);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { letter-spacing: -.02em; }

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.hidden { display: none !important; }
.muted { color: var(--ink-soft); font-size: .9rem; }

/* ------------------------------------------------------------------ topbar */

.topbar { background: var(--surface); border-bottom: 1px solid var(--line); }
.topbar-inner {
    display: flex; align-items: center; justify-content: space-between;
    max-width: 1160px; margin: 0 auto; padding: 14px 28px;
}
.brand img { display: block; width: auto; height: 40px; }
[data-theme="dark"] .brand img { filter: brightness(1.6) saturate(1.1); }

.icon-button {
    display: grid; place-items: center; width: 34px; height: 34px;
    background: transparent; border: 1px solid var(--line); border-radius: 9px;
    color: var(--ink-soft); cursor: pointer;
}
.icon-button:hover { border-color: var(--brand); color: var(--brand); }
.icon-button svg { width: 18px; height: 18px; }
.topnav { display: flex; align-items: center; gap: 16px; }
.topnav a { color: var(--ink-soft); text-decoration: none; font-size: .92rem; font-weight: 500; }
.topnav a:hover { color: var(--brand); }

/* -------------------------------------------------------------------- hero */

.hero {
    padding: 68px 28px 60px;
    background: linear-gradient(180deg, var(--surface) 0%, var(--brand-wash) 100%);
    border-bottom: 1px solid var(--line);
}
.hero-inner { max-width: 720px; margin: 0 auto; text-align: center; }

.eyebrow {
    display: inline-block; margin: 0 0 18px; padding: 5px 14px;
    background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
    color: var(--brand-deep); font-size: .78rem; font-weight: 600;
}

.hero h1 { margin: 0 0 14px; font-size: clamp(2.1rem, 5.5vw, 3.2rem); font-weight: 700; line-height: 1.1; }
.hero-sub { margin: 0 auto 32px; max-width: 34em; color: var(--ink-soft); font-size: 1.05rem; }

.search {
    display: flex; gap: 8px;
    max-width: 620px; margin: 0 auto; padding: 7px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(33, 48, 82, .07);
}
.search input {
    flex: 1; min-width: 0; padding: 13px 14px;
    border: 0; outline: none; background: transparent;
    color: var(--ink); font-family: var(--font); font-size: 1rem;
}
.search input::placeholder { color: var(--ink-soft); }
.search button {
    padding: 13px 26px;
    background: var(--brand); color: #fff;
    border: 0; border-radius: 9px;
    font-family: var(--font); font-size: .96rem; font-weight: 600; cursor: pointer;
    transition: background .15s;
}
.search button:hover { background: var(--brand-deep); }
.search button:disabled { opacity: .55; cursor: default; }

.examples {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px;
    margin: 18px 0 0; font-size: .85rem; color: var(--ink-soft);
}
.chip {
    padding: 6px 14px;
    background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
    color: var(--ink-soft); font-family: var(--font); font-size: .84rem; cursor: pointer;
}
.chip:hover { border-color: var(--brand); color: var(--brand); }

/* -------------------------------------------------------------------- page */

.page { max-width: 1160px; margin: 0 auto; padding: 36px 28px 60px; }

.loading {
    display: flex; align-items: center; gap: 12px;
    padding: 16px 20px; margin-bottom: 20px;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    font-size: .93rem;
}
.spinner {
    width: 16px; height: 16px; border-radius: 50%;
    border: 2px solid var(--line); border-top-color: var(--brand);
    animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.alert { padding: 14px 18px; margin-bottom: 20px; border-radius: var(--radius); font-size: .93rem; }
.alert-error { background: #fdeeeb; border: 1px solid #f2c6bb; color: #9c3b25; }
[data-theme="dark"] .alert-error { background: #2e1a16; border-color: #5c3025; color: #f0a692; }
[data-theme="dark"] .alert-good { background: #12281f; border-color: #24503a; color: #7fd9b3; }
.alert-good { background: #e8f7f0; border: 1px solid #b6e2cd; color: #0a6144; }

/* ----------------------------------------------------------------- landing */

.landing-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.landing-item {
    padding: 24px 26px;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.landing-item h3 { margin: 0 0 8px; font-size: 1rem; font-weight: 600; }
.landing-item p { margin: 0; color: var(--ink-soft); font-size: .91rem; }

/* -------------------------------------------------------------------- head */

.result-head {
    display: flex; align-items: flex-end; justify-content: space-between;
    flex-wrap: wrap; gap: 12px; margin-bottom: 20px;
}
.result-head h2 { margin: 0; font-size: 1.7rem; font-weight: 700; }
.result-meta { margin: 2px 0 0; color: var(--ink-soft); font-size: .85rem; }

.enriching {
    display: flex; align-items: center; gap: 8px;
    padding: 6px 14px;
    background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
    font-size: .8rem; color: var(--ink-soft);
}
.enriching .dot {
    width: 6px; height: 6px; border-radius: 50%; background: var(--brand);
    animation: blink 1.1s ease-in-out infinite;
}
@keyframes blink { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }

/* ------------------------------------------------------------------- cards */

.cards { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 320px); gap: 18px; }
.cards-left { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }

.card {
    padding: 22px 24px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.metric-card { display: flex; flex-direction: column; }
.card-earnings { border-color: var(--brand); border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); }

.label {
    display: flex; align-items: center; gap: 8px;
    margin: 0 0 14px; font-size: .82rem; font-weight: 600; color: var(--ink-soft);
}

.metric {
    margin: 0; font-size: clamp(1.9rem, 4vw, 2.4rem); font-weight: 700;
    line-height: 1.05; font-variant-numeric: tabular-nums;
}
.metric-lg { font-size: clamp(2rem, 4.4vw, 2.7rem); color: var(--brand-deep); }
.unit { margin: 7px 0 0; font-size: .82rem; color: var(--ink-soft); }

.trend { margin-left: auto; font-size: .8rem; font-weight: 600; }
.trend-up { color: var(--good); }
.trend-down { color: var(--bad); }
.trend-flat, .trend-none { color: var(--ink-soft); font-weight: 500; }

/* Range rail: de band waarin de schatting werkelijk ligt. */
.rail { position: relative; height: 5px; margin: 20px 0 0; border-radius: 3px; background: var(--line-soft); }
.rail-span { position: absolute; top: 0; height: 100%; border-radius: 3px; background: var(--brand); opacity: .3; }
.rail-dot {
    position: absolute; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px;
    border-radius: 50%; background: var(--brand); border: 2px solid var(--surface);
}
.rail-caption { margin: 10px 0 0; font-size: .78rem; color: var(--ink-soft); }

/* Laadindicator op de plek van een getal dat nog niet definitief is. */
.value-loading {
    display: inline-block; width: 26px; height: 26px; vertical-align: -3px;
    border-radius: 50%;
    border: 3px solid var(--line-soft); border-top-color: var(--brand);
    animation: spin .75s linear infinite;
}

.steps { display: flex; gap: 3px; margin-top: 20px; }
.steps span { flex: 1; height: 6px; border-radius: 2px; background: var(--line-soft); }
.steps span.on { background: var(--brand); }

.info {
    width: 16px; height: 16px; flex: 0 0 auto; padding: 0;
    background: transparent; border: 1px solid var(--line); border-radius: 50%;
    color: var(--ink-soft); font-family: var(--font); font-size: .62rem; font-weight: 700;
    line-height: 1; cursor: pointer;
}
.info:hover { border-color: var(--brand); color: var(--brand); }

/* ---------------------------------------------------------------- earnings */

.rpm { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.rpm-title { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: .82rem; font-weight: 600; color: var(--ink-soft); }
.rpm-buttons { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 16px; }
.rpm-preset {
    padding: 9px 2px;
    background: var(--surface); border: 1px solid var(--line); border-radius: 8px;
    color: var(--ink); font-family: var(--font); font-size: .88rem; font-weight: 600; cursor: pointer;
}
.rpm-preset:hover { border-color: var(--brand); }
.rpm-preset.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }

#rpm-slider { width: 100%; accent-color: var(--brand); cursor: pointer; }
.rpm-selected { margin: 10px 0 0; font-size: .82rem; color: var(--ink-soft); }
.rpm-note { margin: 18px 0 0; color: var(--ink-soft); font-size: .85rem; }

/* ------------------------------------------------------- landen en signalen */

.block { margin-top: 18px; }
.block-title { display: flex; align-items: center; gap: 8px; margin: 0 0 20px; font-size: 1.02rem; font-weight: 600; }
.block-text { margin: 0 0 10px; color: var(--ink-soft); font-size: .92rem; }
.block-text a { color: var(--brand); }

.audience-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 30px; align-items: center; }
.map-wrap svg { width: 100%; height: auto; display: block; }
.worldmap .wm-base { fill: var(--line); stroke: var(--surface); stroke-width: .6; }
.worldmap .wm-c { fill: var(--line); stroke: var(--surface); stroke-width: .6; transition: fill .25s; }
.worldmap .wm-c.on { fill: var(--brand); }

.audience { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.donut { flex: 0 0 128px; }
.donut svg { width: 128px; height: 128px; display: block; }
.legend { flex: 1; min-width: 150px; list-style: none; margin: 0; padding: 0; }
.legend li { display: flex; align-items: center; gap: 9px; padding: 5px 0; font-size: .88rem; }
.swatch { width: 10px; height: 10px; border-radius: 3px; flex: 0 0 auto; }
.legend-name { flex: 1; }
.legend-share { color: var(--ink-soft); font-variant-numeric: tabular-nums; }

.signals-section { margin-top: 30px; }
.section-title { margin: 0 0 16px; font-size: 1.02rem; font-weight: 600; }
.signal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.signal {
    padding: 18px 20px;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.signal-label { display: block; margin-bottom: 5px; font-size: .78rem; font-weight: 500; color: var(--ink-soft); }
.signal-value { font-size: 1rem; font-weight: 600; word-break: break-word; }

/* Skelet terwijl de tweede fase nog loopt, zodat het vorige resultaat niet
   blijft staan alsof het bij dit domein hoort. */
.signal-skeleton { display: flex; flex-direction: column; gap: 9px; }
.skeleton-line {
    display: block; height: 11px; border-radius: 4px;
    background: linear-gradient(90deg, var(--line-soft) 25%, var(--line) 50%, var(--line-soft) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.3s linear infinite;
}
.skeleton-line.short { width: 55%; height: 9px; }
@keyframes shimmer { to { background-position: -200% 0; } }

.sources { margin-top: 18px; }

/* ------------------------------------------------------------------- prose */

.prose { max-width: 720px; }
.prose-title { margin: 0 0 16px; font-size: clamp(1.9rem, 5vw, 2.5rem); font-weight: 700; line-height: 1.15; }
.lede { margin: 0 0 36px; font-size: 1.05rem; color: var(--ink-soft); }
.prose h2 { margin: 38px 0 12px; font-size: 1.18rem; font-weight: 600; }
.prose p { margin: 0 0 16px; }
.prose .eyebrow { margin-bottom: 16px; }
.plain-list { margin: 0 0 16px; padding: 0; list-style: none; }
.plain-list li { padding: 13px 0; border-bottom: 1px solid var(--line); }
.plain-list li:first-child { border-top: 1px solid var(--line); }
.back { margin-top: 40px; }
.back a { color: var(--brand); font-weight: 600; }

/* ------------------------------------------------------------------ footer */

.footer { background: var(--surface); border-top: 1px solid var(--line); }
.footer-inner {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 12px;
    max-width: 1160px; margin: 0 auto; padding: 22px 28px;
    font-size: .85rem; color: var(--ink-soft);
}
.footer a { color: var(--ink-soft); text-decoration: none; }
.footer a:hover { color: var(--brand); }

.tooltip {
    position: absolute; z-index: 40; max-width: 280px;
    padding: 11px 14px;
    background: var(--ink); color: #fff;
    border-radius: 9px; font-size: .82rem; line-height: 1.5;
}

:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* ------------------------------------------------------------------ mobiel */

@media (max-width: 960px) {
    .cards { grid-template-columns: 1fr; }
    .landing-grid { grid-template-columns: 1fr; }
    .audience-layout { grid-template-columns: 1fr; gap: 22px; }
}

@media (max-width: 620px) {
    .hero { padding: 46px 20px 44px; }
    .page { padding: 26px 18px 44px; }
    .cards-left { grid-template-columns: 1fr; }
    .search { flex-wrap: wrap; }
    .search input, .search button { width: 100%; }
    .signal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .signal { padding: 14px 16px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ------------------------------------------------------------------ SEO-pagina's */

.hero-compact { padding: 44px 28px 40px; }
.hero-compact h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
.hero-tag { margin: -6px 0 18px; color: var(--ink-soft); font-size: .95rem; }

.crumbs { margin: 0 0 14px; font-size: .85rem; color: var(--ink-soft); }
.crumbs a { color: var(--brand); text-decoration: none; }
.crumbs span { margin: 0 4px; }

.link-list {
    list-style: none; margin: 0; padding: 0;
    display: flex; flex-wrap: wrap; gap: 8px;
}
.link-list a {
    display: inline-block; padding: 7px 14px;
    background: var(--page); border: 1px solid var(--line); border-radius: 999px;
    color: var(--ink); text-decoration: none; font-size: .88rem;
}
.link-list a:hover { border-color: var(--brand); color: var(--brand); }

.faq details {
    border-bottom: 1px solid var(--line);
    padding: 4px 0;
}
.faq details:last-of-type { border-bottom: 0; }
.faq summary {
    padding: 13px 0; cursor: pointer;
    font-weight: 600; font-size: .96rem; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; float: right; color: var(--ink-soft); font-weight: 400; }
.faq details[open] summary::after { content: '−'; }
.faq details p { margin: 0 0 14px; color: var(--ink-soft); font-size: .92rem; }

/* Server-gerenderde landenverdeling, voordat JavaScript de donut tekent. */
.slice-seo {
    display: flex; justify-content: space-between; gap: 12px;
    padding: 5px 0; font-size: .88rem;
}
.slice-seo span { color: var(--ink-soft); font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------ cookiemelding */

.consent {
    position: fixed; z-index: 60; left: 16px; right: 16px; bottom: 16px;
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 14px;
    max-width: 720px; margin: 0 auto;
    padding: 16px 20px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 10px 34px rgba(33, 48, 82, .16);
}

.consent-text { margin: 0; flex: 1; min-width: 220px; font-size: .88rem; color: var(--ink-soft); }
.consent-text a { color: var(--brand); }

.consent-actions { display: flex; gap: 8px; }

.consent button {
    padding: 9px 18px;
    border-radius: 8px; cursor: pointer;
    font-family: var(--font); font-size: .88rem; font-weight: 600;
}
.consent-decline { background: transparent; border: 1px solid var(--line); color: var(--ink-soft); }
.consent-decline:hover { border-color: var(--ink-soft); color: var(--ink); }
.consent-accept { background: var(--brand); border: 1px solid var(--brand); color: #fff; }
.consent-accept:hover { background: var(--brand-deep); border-color: var(--brand-deep); }

@media (max-width: 520px) {
    .consent { flex-direction: column; align-items: stretch; }
    .consent-actions button { flex: 1; }
}

/* ----------------------------------------------------------- advertenties */

.adslot {
    position: relative;
    display: flex; flex-direction: column; justify-content: center;
    margin: 18px 0;
    padding: 26px 20px 20px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}

/* Het label is verplicht volgens de AdSense-voorwaarden zodra een advertentie
   op inhoud kan lijken, en het is hier ook gewoon eerlijker. */
.adslot-label {
    position: absolute; top: 8px; left: 20px;
    font-size: .66rem; letter-spacing: .1em; text-transform: uppercase;
    color: var(--ink-soft); opacity: .65;
}

.adslot .adsbygoogle { width: 100%; }

.adslot-top { margin-top: 0; }

/* Zijkolom alleen op breedbeeld: op een smal scherm zou hij de cijfers
   wegdrukken, en die zijn waar de bezoeker voor komt. */
.adslot-side { display: none; }

@media (min-width: 1280px) {
    .adslot-side {
        display: flex;
        position: sticky; top: 20px;
        margin: 0;
    }
}

@media (max-width: 620px) {
    .adslot { padding: 24px 12px 16px; }
    .adslot-label { left: 12px; }
}

/* ---------------------------------------------------------------- linkprofiel */

.link-profile { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.link-profile .signal { padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); }
.link-note { grid-column: 1 / -1; margin: 4px 0 0; color: var(--ink-soft); font-size: .85rem; }
