/* =========================================================
   MaatInICT
   Quality engineering & identity expertise

   1. Tokens          7. Cards & lists      13. Product pages
   2. Base            8. Hero (home)        14. Legal / prose
   3. Layout          9. Page header        15. Forms & contact
   4. Header / nav   10. Logos & stats      16. Footer
   5. Buttons        11. Timeline           17. Cookie banner
   6. Sections       12. Certificates       18. Responsive
   ========================================================= */

/* 1. Tokens ------------------------------------------------ */
:root {
    /* Neutrals */
    --ink: #0f1c2e;
    --text: #2c3747;
    --muted: #5c6878;
    --line: #e2e6eb;
    --line-strong: #cfd5dd;
    --bg: #ffffff;
    --bg-alt: #f5f7f9;
    --navy: #13223b;
    --navy-2: #1b2d4b;
    --surface: #ffffff;          /* cards, inputs, banners */
    --glass: rgba(255, 255, 255, 0.47);   /* tiles over the dot logo */
    --glass-tint: 5%;
    --header-bg: rgba(255, 255, 255, 0.96);
    --bg-alt-soft: rgba(245, 247, 249, 0.72);   /* grey bands over the dot logo */
    --footer-bg: #0b1626;
    --btn-bg: var(--navy);
    --btn-hover: var(--blue-dark);
    --shadow-color: 15, 28, 46;
    --dot-opacity: 0.38;
    --orange-text: #c24e28;      /* orange that reads as small text */

    /* Brand (taken from the logo) */
    --blue: #2b7bb9;
    --blue-dark: #1d5f93;
    --blue-tint: #eaf2f9;
    --indigo: #323e92;
    --purple: #8e2c8c;
    --orange: #e45f35;
    --green: #3daf4e;

    /* Type */
    --font-sans: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-serif: 'IBM Plex Serif', Georgia, 'Times New Roman', serif;
    --font-mono: 'IBM Plex Mono', ui-monospace, Consolas, monospace;

    /* Shape */
    --radius: 6px;
    --radius-lg: 10px;
    --shadow: 0 1px 2px rgba(var(--shadow-color), 0.04), 0 4px 16px rgba(var(--shadow-color), 0.06);

    --container: 1160px;
    --gutter: 24px;
    --header-h: 72px;
}

/* Dark theme: follows the system unless the visitor picked one (data-theme) */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --ink: #e9eef5;
        --text: #c9d3df;
        --muted: #93a2b5;
        --line: #233247;
        --line-strong: #34475f;
        --bg: #0c1420;
        --bg-alt: #111c2b;
        --navy: #15253e;
        --navy-2: #1c3150;
        --surface: #142033;
        --glass: rgba(20, 32, 51, 0.45);
        --glass-tint: 16%;
        --header-bg: rgba(12, 20, 32, 0.94);
        --bg-alt-soft: rgba(17, 28, 43, 0.72);
        --footer-bg: #070d16;
        --blue-dark: #7db8e8;
        --blue-tint: #15304b;
        --btn-bg: #2b7bb9;
        --btn-hover: #3a8fd0;
        --shadow-color: 0, 0, 0;
        --dot-opacity: 0.6;
        --blue: #4f9ad6;
        --indigo: #8a96e6;
        --purple: #c574c3;
        --orange: #ee7d55;
        --green: #5cc46c;
        --orange-text: #ee7d55;
        color-scheme: dark;
    }
}

:root[data-theme="dark"] {
    --ink: #e9eef5;
    --text: #c9d3df;
    --muted: #93a2b5;
    --line: #233247;
    --line-strong: #34475f;
    --bg: #0c1420;
    --bg-alt: #111c2b;
    --navy: #15253e;
    --navy-2: #1c3150;
    --surface: #142033;
    --glass: rgba(20, 32, 51, 0.45);
    --glass-tint: 16%;
    --header-bg: rgba(12, 20, 32, 0.94);
    --bg-alt-soft: rgba(17, 28, 43, 0.72);
    --footer-bg: #070d16;
    --blue-dark: #7db8e8;
    --blue-tint: #15304b;
    --btn-bg: #2b7bb9;
    --btn-hover: #3a8fd0;
    --shadow-color: 0, 0, 0;
    --dot-opacity: 0.6;
    --blue: #4f9ad6;
    --indigo: #8a96e6;
    --purple: #c574c3;
    --orange: #ee7d55;
    --green: #5cc46c;
    --orange-text: #ee7d55;
    color-scheme: dark;
}

/* 2. Base -------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

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

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

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

h1, h2, h3, h4 {
    color: var(--ink);
    margin: 0 0 0.5em;
    line-height: 1.2;
}

h1, h2 {
    font-family: var(--font-serif);
    font-weight: 500;
    letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.1rem, 4.2vw, 3.1rem); }
h2 { font-size: clamp(1.65rem, 2.8vw, 2.25rem); }
h3 { font-size: 1.2rem; font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--blue-dark); text-underline-offset: 3px; }
a:hover { color: var(--ink); }

strong { color: var(--ink); font-weight: 600; }

ul, ol { margin: 0 0 1em; padding-left: 1.25em; }

code, pre { font-family: var(--font-mono); font-size: 0.9em; }

::selection { background: var(--blue-tint); color: var(--ink); }

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

.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden; clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* 3. Layout ------------------------------------------------ */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.container-narrow { max-width: 780px; }

.grid { display: grid; gap: 24px; }
.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)); }

.split {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 64px;
    align-items: center;
}

.split-top { align-items: start; }
.split-reverse > :first-child { order: 2; }

.stack > * + * { margin-top: 16px; }

.text-center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.mt-lg { margin-top: 40px; }
.mb-lg { margin-bottom: 40px; }

/* 4. Header / nav ------------------------------------------ */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--header-bg);
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.navbar.scrolled { border-bottom-color: var(--line); }

.nav-container {
    display: flex;
    align-items: center;
    gap: 32px;
    height: var(--header-h);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--ink);
    flex-shrink: 0;
}

.logo img { width: 34px; height: auto; }

.logo-text {
    font-weight: 600;
    font-size: 1.15rem;
    letter-spacing: -0.01em;
}

.nav-container > nav { margin-left: auto; }

.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    display: block;
    padding: 8px 12px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
    border-radius: var(--radius);
}

.nav-link:hover { color: var(--ink); background: var(--bg-alt); }

.nav-link.active { color: var(--ink); box-shadow: inset 0 -2px 0 var(--blue); border-radius: 0; }

.nav-link.nav-cta {
    margin-left: 8px;
    padding: 8px 16px;
    color: #fff;
    background: var(--btn-bg);
    border-radius: var(--radius);
    box-shadow: none;
}

.nav-link.nav-cta:hover,
.nav-link.nav-cta.active { background: var(--btn-hover); color: #fff; }

.language-switcher {
    display: flex;
    align-items: center;
    gap: 2px;
    font-size: 0.85rem;
    font-weight: 500;
}

.lang-link {
    padding: 4px 6px;
    color: var(--muted);
    text-decoration: none;
    border-radius: 4px;
}

.lang-link:hover { color: var(--ink); }
.lang-link.active { color: var(--ink); font-weight: 600; }

.lang-sep { color: var(--line-strong); }

.nav-toggle {
    display: none;
    width: 40px;
    height: 40px;
    margin-left: auto;
    padding: 0;
    background: none;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    cursor: pointer;
}

.hamburger,
.hamburger::before,
.hamburger::after {
    display: block;
    width: 18px;
    height: 2px;
    margin: 0 auto;
    background: var(--ink);
    position: relative;
    transition: transform 0.2s ease, background 0.2s ease;
}

.hamburger::before, .hamburger::after { content: ''; position: absolute; left: 0; }
.hamburger::before { top: -6px; }
.hamburger::after { top: 6px; }

.nav-toggle.active .hamburger { background: transparent; }
.nav-toggle.active .hamburger::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle.active .hamburger::after { transform: translateY(-6px) rotate(-45deg); }

/* 5. Buttons ----------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.2;
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-primary { background: var(--btn-bg); color: #fff; }
.btn-primary:hover { background: var(--btn-hover); color: #fff; }

.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: var(--ink); color: var(--ink); }

/* Always sits on a dark band, so its colours are fixed in both themes */
.btn-light { background: #fff; color: #13223b; }
.btn-light:hover { background: #dcebf7; color: #13223b; }

.btn-ghost-light { color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.btn-ghost-light:hover { border-color: #fff; color: #fff; }

.btn:disabled { opacity: 0.7; cursor: default; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    color: var(--blue-dark);
    text-decoration: none;
}

.link-arrow::after { content: '\2192'; transition: transform 0.15s ease; }
.link-arrow:hover::after { transform: translateX(3px); }

/* 6. Sections ---------------------------------------------- */
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.section-alt { background: var(--bg-alt); }
.section + .section:not(.section-alt):not(.section-dark) { border-top: 1px solid var(--line); }

.section-dark { background: var(--navy); color: rgba(255, 255, 255, 0.78); }
.section-dark h2, .section-dark h3, .section-dark strong { color: #fff; }
.section-dark a:not(.btn) { color: #9cc8ec; }

.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.text-center { margin-left: auto; margin-right: auto; }

.eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--blue-dark);
}

.section-dark .eyebrow { color: #9cc8ec; }

.lead { font-size: 1.15rem; color: var(--muted); }
.section-dark .lead { color: rgba(255, 255, 255, 0.72); }

/* Four-colour rule taken from the logo, used sparingly */
.brand-rule {
    display: flex;
    gap: 4px;
    width: 64px;
    height: 4px;
    margin-bottom: 24px;
}

.brand-rule span { flex: 1; border-radius: 1px; }
.brand-rule span:nth-child(1) { background: var(--blue); }
.brand-rule span:nth-child(2) { background: var(--purple); }
.brand-rule span:nth-child(3) { background: var(--orange); }
.brand-rule span:nth-child(4) { background: var(--green); }

/* 7. Cards & lists ----------------------------------------- */
.card {
    display: block;
    padding: 28px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    color: var(--text);
    text-decoration: none;
}

.section-alt .card { border-color: var(--line); }

a.card { transition: border-color 0.15s ease, box-shadow 0.15s ease; }
a.card:hover { border-color: var(--line-strong); box-shadow: var(--shadow); color: var(--text); }
a.card:hover .link-arrow::after { transform: translateX(3px); }

.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 0.98rem; }
.card .link-arrow { margin-top: 16px; }

.card-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 20px;
    display: grid;
    place-items: center;
    border-radius: var(--radius);
    background: var(--blue-tint);
    color: var(--blue-dark);
}

.card-icon svg { width: 22px; height: 22px; }

.card-feature { border-top: 3px solid var(--blue); }

.card-media {
    margin: -28px -28px 24px;
    border-bottom: 1px solid var(--line);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    overflow: hidden;
    background: var(--bg-alt);
}

.card-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }

.card-logo { height: 56px; width: auto; margin-bottom: 20px; }

.card-meta {
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 8px;
}

.check-list { list-style: none; padding: 0; margin: 0 0 1em; }

.check-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 10px;
}

.check-list li::before {
    content: '';
    position: absolute;
    left: 2px;
    top: 0.45em;
    width: 12px;
    height: 7px;
    border-left: 2px solid var(--blue);
    border-bottom: 2px solid var(--blue);
    transform: rotate(-45deg);
}

.plain-list { list-style: none; padding: 0; margin: 0; }
.plain-list li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.plain-list li:last-child { border-bottom: 0; }

.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }

.tag {
    display: inline-block;
    padding: 3px 10px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text);
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: 100px;
}

.section-alt .tag { background: var(--surface); }

.badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--blue-dark);
    background: var(--blue-tint);
    border-radius: 4px;
}

.badge-muted { color: var(--muted); background: var(--bg-alt); }

/* Numbered process */
.steps { counter-reset: step; }

.step {
    position: relative;
    padding-top: 20px;
    border-top: 2px solid var(--line);
}

.step::before {
    counter-increment: step;
    content: counter(step, decimal-leading-zero);
    display: block;
    margin-bottom: 12px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--blue-dark);
}

.step h3 { font-size: 1.1rem; }
.step p { color: var(--muted); font-size: 0.98rem; }

/* Quote */
.quote {
    margin: 0;
    padding-left: 24px;
    border-left: 3px solid var(--blue);
    font-family: var(--font-serif);
    font-size: 1.3rem;
    line-height: 1.5;
    color: var(--ink);
}

/* Code sample (real, readable code only) */
.code-sample {
    margin: 0;
    padding: 20px 24px;
    overflow-x: auto;
    font-size: 0.85rem;
    line-height: 1.6;
    color: #d6deea;
    background: var(--navy);
    border-radius: var(--radius-lg);
}

.code-sample .c { color: #8193ad; }
.code-sample .k { color: #9cc8ec; }
.code-sample .s { color: #f0b48f; }

/* 8. Hero (home) ------------------------------------------- */
.hero { padding: 72px 0 96px; }

.hero .split { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); }

.hero h1 { margin-bottom: 20px; max-width: 19ch; }

.hero .lead { max-width: 56ch; margin-bottom: 32px; }

.hero-photo {
    position: relative;
    margin: 0;
}

.hero-photo img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: 40% 20%;
    border-radius: var(--radius-lg);
}

.hero-photo figcaption {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 16px;
    padding: 12px 16px;
    background: var(--surface);
    border-radius: var(--radius);
    font-size: 0.9rem;
    line-height: 1.4;
    color: var(--muted);
    box-shadow: var(--shadow);
}

.hero-photo figcaption strong { display: block; color: var(--ink); }

.hero-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 28px;
    margin: 40px 0 0;
    padding: 24px 0 0;
    list-style: none;
    border-top: 1px solid var(--line);
    font-size: 0.95rem;
    color: var(--muted);
}

.hero-facts strong { display: block; font-size: 1.05rem; }

/* 9. Page header (sub pages) ------------------------------- */
.page-header {
    padding: 64px 0 56px;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--line);
}

.page-header h1 { max-width: 22ch; margin-bottom: 16px; }
.page-header .lead { max-width: 62ch; margin: 0; }

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
    font-size: 0.875rem;
    color: var(--muted);
}

.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--ink); text-decoration: underline; }
.breadcrumb span[aria-hidden] { color: var(--line-strong); }

/* 10. Logos & stats ---------------------------------------- */
.logo-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 24px 56px;
}

.logo-strip-label {
    width: 100%;
    margin-bottom: 4px;
    font-size: 0.85rem;
    color: var(--muted);
}

.logo-strip img {
    height: 40px;
    width: auto;
    filter: grayscale(1);
    opacity: 0.75;
    transition: filter 0.2s ease, opacity 0.2s ease;
}

.logo-strip a:hover img, .logo-strip img:hover { filter: none; opacity: 1; }

.facts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.facts li { padding-left: 20px; border-left: 2px solid var(--line); }

.facts .fact-value {
    display: block;
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 500;
    line-height: 1.1;
    color: var(--ink);
}

.facts .fact-label { font-size: 0.92rem; color: var(--muted); }

.section-dark .facts li { border-left-color: rgba(255, 255, 255, 0.2); }
.section-dark .facts .fact-value { color: #fff; }
.section-dark .facts .fact-label { color: rgba(255, 255, 255, 0.7); }

/* 11. Timeline --------------------------------------------- */
.timeline { position: relative; margin: 0; padding: 0; list-style: none; }

.timeline-item {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 32px;
    padding: 32px 0;
    border-top: 1px solid var(--line);
}

.timeline-item:first-child { border-top: 0; padding-top: 0; }

.timeline-date {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--muted);
    padding-top: 3px;
}

.timeline-body h3 { margin-bottom: 2px; }

.timeline-role { margin-bottom: 12px; font-weight: 500; color: var(--blue-dark); }

.timeline-body > p { color: var(--text); }

.timeline-projects {
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
    border-left: 2px solid var(--line);
}

.timeline-projects li { padding: 0 0 16px 20px; }
.timeline-projects li:last-child { padding-bottom: 0; }
.timeline-projects h4 { margin-bottom: 4px; }
.timeline-projects p { font-size: 0.95rem; color: var(--muted); margin-bottom: 0; }
.timeline-projects .tags { margin-top: 8px; }

/* 12. Certificates ----------------------------------------- */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.cert {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 16px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
}

.cert a { display: block; }

.cert img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    margin-bottom: 12px;
}

.cert figcaption { font-size: 0.9rem; line-height: 1.4; color: var(--ink); font-weight: 500; }
.cert figcaption span { display: block; margin-top: 2px; font-weight: 400; color: var(--muted); font-size: 0.85rem; }

/* 13. Product pages (apps, games, websites) ---------------- */
.product-hero {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 32px;
    align-items: center;
}

.product-icon {
    width: 112px;
    height: 112px;
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.store-badges { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.store-badges img { height: 44px; width: auto; }

.screenshots {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(200px, 1fr);
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 12px;
    scroll-snap-type: x mandatory;
}

.screenshots figure { margin: 0; scroll-snap-align: start; }

.screenshots img {
    width: 100%;
    border-radius: 18px;
    border: 1px solid var(--line);
}

.screenshots figcaption { margin-top: 8px; font-size: 0.875rem; color: var(--muted); text-align: center; }

.browser-frame {
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--surface);
}

.browser-frame::before {
    content: '';
    display: block;
    height: 28px;
    background: var(--bg-alt) radial-gradient(circle at 16px 50%, var(--line-strong) 4px, transparent 5px),
                radial-gradient(circle at 32px 50%, var(--line-strong) 4px, transparent 5px),
                radial-gradient(circle at 48px 50%, var(--line-strong) 4px, transparent 5px);
    background-color: var(--bg-alt);
    border-bottom: 1px solid var(--line);
}

.browser-frame img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }

.notice {
    padding: 20px 24px;
    background: var(--blue-tint);
    border-left: 3px solid var(--blue);
    border-radius: 0 var(--radius) var(--radius) 0;
}

/* 14. Legal / prose ---------------------------------------- */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.5rem; margin-top: 48px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 32px; }
.prose ul, .prose ol { margin-bottom: 1.25em; }
.prose li { margin-bottom: 6px; }
.prose table { width: 100%; border-collapse: collapse; margin: 16px 0 24px; font-size: 0.95rem; }
.prose th, .prose td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--ink); font-weight: 600; background: var(--bg-alt); }
.prose .updated { color: var(--muted); font-size: 0.9rem; }

/* 15. Forms & contact -------------------------------------- */
.form { display: grid; gap: 20px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.form-group { display: flex; flex-direction: column; gap: 6px; }

.form label { font-size: 0.92rem; font-weight: 500; color: var(--ink); }

.form input,
.form select,
.form textarea {
    width: 100%;
    padding: 12px 14px;
    font: inherit;
    font-size: 1rem;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form textarea { min-height: 160px; resize: vertical; }

.form input:focus,
.form select:focus,
.form textarea:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(43, 123, 185, 0.15);
}

.form-note { font-size: 0.85rem; color: var(--muted); }

.error-message { color: #c0392b; font-size: 0.85rem; }

.contact-details { list-style: none; margin: 0; padding: 0; }

.contact-details li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-details li:first-child { padding-top: 0; }

.contact-details .label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
}

.contact-details a { font-weight: 500; }

/* Honeypot field */
.hp-field { position: absolute; left: -9999px; }

/* 16. Footer ----------------------------------------------- */
.footer {
    padding: 72px 0 32px;
    background: var(--footer-bg);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.footer a { color: rgba(255, 255, 255, 0.82); text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer .logo { color: #fff; margin-bottom: 16px; }


.footer-about { max-width: 34ch; }

.footer h4 {
    margin-bottom: 14px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}

.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 8px; }

.footer-company { font-style: normal; line-height: 1.7; }

.social-links { display: flex; gap: 10px; margin-top: 16px; }

.social-link {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius);
}

.social-link:hover { border-color: #fff; }
.social-link svg { width: 18px; height: 18px; }

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    margin-top: 56px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.55);
}

.footer-bottom p { margin: 0; }

/* 17. Cookie banner ---------------------------------------- */
.cookie-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 200;
    max-width: 720px;
    margin: 0 auto;
    padding: 20px 24px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 32px rgba(var(--shadow-color), 0.16);
    transform: translateY(calc(100% + 32px));
    transition: transform 0.3s ease;
}

.cookie-banner.show { transform: translateY(0); }

.cookie-banner-content { display: flex; gap: 24px; align-items: center; }

.cookie-banner-text { flex: 1; font-size: 0.92rem; }
.cookie-banner-text h4 { margin-bottom: 4px; }
.cookie-banner-text p { margin: 0; color: var(--muted); }

.cookie-banner-actions { display: flex; gap: 8px; flex-shrink: 0; }
.cookie-banner-actions .btn { padding: 10px 16px; font-size: 0.92rem; }

/* 18. Responsive ------------------------------------------- */
@media (max-width: 1080px) {
    .nav-container { gap: 16px; }
    .nav-link { padding: 8px 9px; font-size: 0.92rem; }
    .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
    :root { --header-h: 64px; }

    .nav-toggle { display: block; order: 3; margin-left: 0; }
    .language-switcher { margin-left: auto; }
    .nav-container > nav { margin-left: 0; }

    .nav-menu {
        position: absolute;
        top: var(--header-h);
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        margin: 0;
        padding: 8px var(--gutter) 20px;
        background: var(--surface);
        border-bottom: 1px solid var(--line);
        box-shadow: 0 12px 24px rgba(var(--shadow-color), 0.08);
    }

    .nav-menu.active { display: flex; }
    .nav-link { padding: 12px 0; font-size: 1rem; border-bottom: 1px solid var(--line); border-radius: 0; }
    .nav-link:hover { background: none; }
    .nav-link.active { box-shadow: none; color: var(--blue-dark); }
    .nav-link.nav-cta { margin: 16px 0 0; text-align: center; padding: 12px; border-radius: var(--radius); }

    .split, .hero .split { grid-template-columns: 1fr; gap: 40px; }
    .split-reverse > :first-child { order: 0; }
    .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .hero-photo { max-width: 420px; }

    .timeline-item { grid-template-columns: 1fr; gap: 8px; }
}

@media (max-width: 640px) {
    :root { --gutter: 16px; }

    body { font-size: 1rem; }

    .section { padding: 64px 0; }
    .section-sm { padding: 48px 0; }
    .hero { padding: 40px 0 64px; }
    .page-header { padding: 40px 0; }

    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }

    .card { padding: 22px; }
    .card-media { margin: -22px -22px 20px; }

    .product-hero { grid-template-columns: 1fr; gap: 20px; }
    .product-icon { width: 88px; height: 88px; border-radius: 20px; }

    .logo-strip { gap: 20px 36px; }
    .logo-strip img { height: 32px; }

    .cookie-banner-content { flex-direction: column; align-items: stretch; gap: 16px; }
    .cookie-banner-actions .btn { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Skip link (keyboard users) */
.skip-link {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 300;
    padding: 10px 16px;
    background: var(--navy);
    color: #fff;
    border-radius: var(--radius);
}

.skip-link:focus { top: 12px; color: #fff; }

.form-status { margin: 0; font-size: 0.95rem; color: #1e7a3a; }
.form-status.is-error { color: #c0392b; }
.form-status:empty { display: none; }

.partner {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
    padding-left: 32px;
    border-left: 1px solid var(--line-strong);
    font-size: 0.85rem;
    color: var(--muted);
}

.logo-strip img.partner-logo {
    width: auto;
    height: 46px;
    filter: none;
    opacity: 1;
}

@media (max-width: 900px) {
    .partner { margin-left: 0; padding-left: 0; border-left: 0; }
}

/* Anchor targets clear the sticky header */
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

.prose .updated { margin-bottom: 24px; }

/* =========================================================
   19. Dot logo (js/dots.js) and logo colour accents
   ========================================================= */
/* Page-wide background canvas; the logo drifts across it */
.dot-logo-bg {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: var(--dot-opacity);
    animation: dot-logo-in 1.5s ease both;
}

@keyframes dot-logo-in { from { opacity: 0; } }

/* Content sits above the canvas; light grey bands let it show through */
.has-dot-logo main,
.has-dot-logo .footer { position: relative; z-index: 1; }
.has-dot-logo .section-alt { background: var(--bg-alt-soft); }
.has-dot-logo .page-header { background: var(--bg-alt-soft); }

@media (max-width: 640px) {
    .dot-logo-bg { opacity: calc(var(--dot-opacity) * 0.75); }
}

/* Logo colours: one per position, cycling blue, purple, orange, green */
.card-feature {
    border-top-width: 1px;
    border-top-color: var(--line);
    position: relative;
    overflow: hidden;
}

.card-feature::before,
.section-dark::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 4px;
    background: linear-gradient(90deg,
        var(--blue) 0 25%, var(--purple) 25% 50%,
        var(--orange) 50% 75%, var(--green) 75% 100%);
}

.section-dark { position: relative; }

.eyebrow::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 10px;
    border-radius: 1px;
    background: var(--accent, var(--blue));
    vertical-align: 1px;
}

main > section:nth-of-type(4n+1) { --accent: var(--blue); }
main > section:nth-of-type(4n+2) { --accent: var(--purple); }
main > section:nth-of-type(4n+3) { --accent: var(--orange); }
main > section:nth-of-type(4n+4) { --accent: var(--green); }

.steps .step:nth-child(4n+1) { --step: var(--blue); }
.steps .step:nth-child(4n+2) { --step: var(--purple); }
.steps .step:nth-child(4n+3) { --step: var(--orange); }
.steps .step:nth-child(4n+4) { --step: var(--green); }
.step { border-top-color: var(--step, var(--line)); }
.step::before { color: var(--step, var(--blue-dark)); font-weight: 500; }

/* =========================================================
   20. Theme toggle and dark-mode details
   ========================================================= */
.theme-toggle {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    margin-left: 4px;
    padding: 0;
    color: var(--muted);
    background: none;
    border: 1px solid transparent;
    border-radius: var(--radius);
    cursor: pointer;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.theme-toggle:hover { color: var(--ink); border-color: var(--line); }
.theme-toggle svg { width: 17px; height: 17px; }

/* Show the moon in light mode (switch to dark) and the sun in dark mode */
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
    :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
}

/* Transparent logos and certificates get a light plate in dark mode */
:root[data-theme="dark"] :is(.cert img, .collab img, .partner-logo-link img, img.partner-mark, img.card-logo) {
    background: #fff;
    border-radius: 6px;
    padding: 6px;
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) :is(.cert img, .collab img, .partner-logo-link img, img.partner-mark, img.card-logo) {
        background: #fff;
        border-radius: 6px;
        padding: 6px;
    }
}

/* Client logos on the home page */
.logo-strip img.client-logo {
    height: 30px;
    width: auto;
    filter: none;
    opacity: 1;
}

.logo-strip img.client-logo-politie { height: 42px; margin: -6px 0; }
.logo-strip img.client-logo-atos { height: 27px; }

/* Theme-specific images */
.theme-dark-only { display: none !important; }
:root[data-theme="dark"] .theme-dark-only { display: block !important; }
:root[data-theme="dark"] .theme-light-only { display: none !important; }

/* In dark mode the coloured client logos become a single light tone */
:root[data-theme="dark"] .logo-strip img.client-logo { filter: brightness(0) invert(1); opacity: 0.85; }

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .theme-dark-only { display: block !important; }
    :root:not([data-theme="light"]) .theme-light-only { display: none !important; }
    :root:not([data-theme="light"]) .logo-strip img.client-logo { filter: brightness(0) invert(1); opacity: 0.85; }
}

/* =========================================================
   21. Glass tiles
   Frosted over the dot logo (blurred enough to keep text calm);
   on hover the glass takes one of the logo colours.
   ========================================================= */
.card,
.cert {
    --tile: var(--blue);
    --tile-base: var(--surface);
    background: var(--tile-base);
    transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.has-dot-logo :is(.card, .cert) {
    --tile-base: var(--glass);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    backdrop-filter: blur(16px) saturate(140%);
}

:is(.grid, .cert-grid) > :nth-child(4n+2) { --tile: var(--purple); }
:is(.grid, .cert-grid) > :nth-child(4n+3) { --tile: var(--orange); }
:is(.grid, .cert-grid) > :nth-child(4n+4) { --tile: var(--green); }

:is(.card, .cert):hover,
a.card:hover {
    background: color-mix(in srgb, var(--tile) var(--glass-tint), var(--tile-base));
    border-color: color-mix(in srgb, var(--tile) 50%, var(--line));
    box-shadow: 0 12px 32px -14px color-mix(in srgb, var(--tile) 55%, transparent);
}

/* Heading and intro above a code sample inside a section */
.code-intro { max-width: 720px; margin: 56px 0 20px; }
.code-intro h3 { margin-bottom: 8px; }
.code-intro p { color: var(--muted); }

/* =========================================================
   22. Topic map (contact): the logo with a topic in each block.
   Pointing at a block lifts it, fades the rest and shows its
   description underneath.
   ========================================================= */
.topic-map { margin: 0; }
.topic-map svg { display: block; width: 100%; max-width: 520px; margin: 0 auto; overflow: visible; }

.topic-map rect,
.topic-map .topic {
    transform-box: fill-box;
    transform-origin: center;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.topic-map text {
    font-family: var(--font-sans);
    font-size: 17px;
    font-weight: 600;
    fill: #fff;
    text-anchor: middle;
    dominant-baseline: central;
    pointer-events: none;
}

.topic-map .topic { cursor: pointer; outline: none; }
.topic-map svg:is(.has-on, :has(.topic:hover, .topic:focus-visible)) :is(.topic, .topic-filler) { opacity: 0.18; }
.topic-map svg .topic:is(:hover, :focus-visible, .is-on) { opacity: 1; transform: scale(1.08); }
.topic-map .topic:focus-visible rect { stroke: var(--ink); stroke-width: 3; }

.topic-caption {
    min-height: 3.2em;
    max-width: 520px;
    margin: 20px auto 0;
    text-align: center;
    font-size: 0.98rem;
    color: var(--muted);
}

.topic-caption.is-on { color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
    .topic-map rect, .topic-map .topic { transition: none; }
    .topic-map svg .topic:is(:hover, :focus-visible, .is-on) { transform: none; }
}

/* =========================================================
   23. Animations switch (next to the theme toggle)
   ========================================================= */
.motion-toggle {
    display: grid;
    place-items: center;
    height: 32px;
    margin-left: 8px;
    padding: 0 4px;
    background: none;
    border: 0;
    cursor: pointer;
}

.motion-track {
    position: relative;
    display: block;
    width: 28px;
    height: 16px;
    border-radius: 8px;
    background: var(--line-strong);
    transition: background-color 0.2s ease;
}

.motion-knob {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease;
}

.motion-toggle[aria-checked="true"] .motion-track { background: var(--blue); }
.motion-toggle[aria-checked="true"] .motion-knob { transform: translateX(12px); }
.motion-toggle:hover .motion-track { box-shadow: 0 0 0 3px var(--blue-tint); }
.motion-toggle:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 10px; }

/* Animations switched off: no fades, lifts or smooth scrolling either */
:root[data-motion="off"] { scroll-behavior: auto; }
:root[data-motion="off"] *,
:root[data-motion="off"] *::before,
:root[data-motion="off"] *::after {
    animation: none !important;
    transition: none !important;
}
:root[data-motion="off"] .topic-map svg .topic:is(:hover, :focus-visible, .is-on) { transform: none; }

@media (max-width: 640px) {
    .nav-container { gap: 6px; }
    .motion-toggle { margin-left: 4px; padding: 0 2px; }
    .theme-toggle { margin-left: 0; }
    .nav-toggle { margin-left: 4px; }
}

/* Very narrow phones: the mark alone, so all controls fit */
@media (max-width: 360px) {
    .logo-text { display: none; }
}
