:root {
    --accent: #0067C0;
    --accent-hover: #1975C5;
    --accent-pressed: #3183CA;
    --accent-soft: #EAF2FB;
    --selected: rgba(0, 103, 192, 0.1);
    --window: #F3F3F3;
    --toolbar: #F9F9F9;
    --card: #FFFFFF;
    --border: #E5E5E5;
    --control-border: #E0E0E0;
    --control-hover: #F5F5F5;
    --control-pressed: #EBEBEB;
    --canvas: #E9E9E9;
    --ink: #1A1A1A;
    --subtle: #5C5C5C;
    --badge: rgba(32, 32, 32, 0.9);
    --radius: 8px;
    --shadow: 0 2px 4px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.08);
    --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 72px;
}

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

a,
button,
summary,
[role="button"] {
    cursor: pointer;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
}

h1,
h2,
h3 {
    line-height: 1.2;
    margin: 0 0 0.5em;
    font-weight: 600;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.25rem);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    text-align: center;
    margin-bottom: 1.25em;
}

h3 {
    font-size: 1.05rem;
}

.container {
    width: min(1120px, 100% - 48px);
    margin-inline: auto;
}

.container.narrow {
    width: min(760px, 100% - 48px);
}

/* Navigatie */

.nav {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(249, 249, 249, 0.88);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    height: 60px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    font-weight: 600;
    font-size: 1.15rem;
}

.brand:hover {
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 4px;
    margin-left: auto;
}

.nav-links a {
    color: var(--ink);
    font-size: 0.95rem;
    padding: 6px 12px;
    border-radius: 6px;
}

.nav-links a:hover {
    background: rgba(0, 0, 0, 0.06);
    text-decoration: none;
}

/* Knoppen */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 6px;
    border: 1px solid transparent;
    font: inherit;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.2;
    transition: background-color 0.12s ease, border-color 0.12s ease;
}

.btn:hover {
    text-decoration: none;
}

.btn svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.btn-primary {
    background: var(--accent);
    color: #FFFFFF;
}

.btn-primary:hover {
    background: var(--accent-hover);
}

.btn-primary:active {
    background: var(--accent-pressed);
}

.btn-secondary {
    background: var(--card);
    color: var(--ink);
    border-color: var(--control-border);
}

.btn-secondary:hover {
    background: var(--control-hover);
}

.btn-secondary:active {
    background: var(--control-pressed);
}

.btn-small {
    padding: 7px 14px;
    font-size: 0.9rem;
}

.btn-large {
    width: 100%;
    padding: 14px 24px;
    font-size: 1.05rem;
}

/* Hero */

.hero {
    padding: 72px 0 0;
    text-align: center;
}

.hero-logo {
    display: block;
    margin: 0 auto 24px;
}

.lead {
    max-width: 640px;
    margin: 0 auto 32px;
    font-size: 1.15rem;
    color: var(--subtle);
}

.lead strong {
    color: var(--ink);
}

.actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.hint {
    margin: 20px 0 0;
    font-size: 0.85rem;
    color: var(--subtle);
}

.screenshot {
    margin: 48px auto 0;
    max-width: 1024px;
    background: var(--card);
    border: 1px solid var(--border);
    border-bottom: 0;
    border-radius: var(--radius) var(--radius) 0 0;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.screenshot img {
    display: block;
    width: 100%;
}

/* Secties */

.section {
    padding: 88px 0;
    background: var(--card);
    border-top: 1px solid var(--border);
}

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

.section p {
    color: var(--subtle);
    font-size: 1.05rem;
}

#wat-is-kniip p {
    text-align: center;
}

/* Features */

.features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

@media (max-width: 960px) {
    .features {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .features {
        grid-template-columns: 1fr;
    }
}

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
}

.features .card svg {
    width: 40px;
    height: 40px;
    padding: 8px;
    margin-bottom: 16px;
    border-radius: 8px;
    background: var(--accent-soft);
    fill: none;
    stroke: var(--accent);
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.features .card p {
    margin: 0;
    font-size: 0.95rem;
}

/* Download */

.download-card {
    padding: 32px;
    box-shadow: var(--shadow);
}

.download-head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.download-title {
    font-size: 1.35rem;
    font-weight: 600;
}

.download-meta {
    color: var(--subtle);
    font-size: 0.9rem;
}

.dot {
    margin: 0 6px;
}

.requirements {
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
    color: var(--subtle);
    font-size: 0.95rem;
}

.requirements li {
    position: relative;
    padding-left: 26px;
    margin-bottom: 6px;
}

.requirements li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 0.45em;
    width: 10px;
    height: 6px;
    border-left: 2px solid var(--accent);
    border-bottom: 2px solid var(--accent);
    transform: rotate(-45deg);
}

.section .download-links {
    margin: 20px 0 0;
    font-size: 0.95rem;
}

/* Footer */

.footer {
    padding: 28px 0;
    background: var(--toolbar);
    border-top: 1px solid var(--border);
    font-size: 0.9rem;
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

/* Selectiekader, zoals in RegionCaptureWindow van kniip */

body.selecting {
    user-select: none;
    -webkit-user-select: none;
}

.snip-rect {
    position: fixed;
    z-index: 1000;
    border: 2px solid var(--accent);
    background: var(--selected);
    pointer-events: none;
}

.snip-badge {
    position: fixed;
    z-index: 1001;
    padding: 2px 6px;
    border-radius: 4px;
    background: var(--badge);
    color: #FFFFFF;
    font-size: 12px;
    line-height: 1.4;
    white-space: nowrap;
    pointer-events: none;
    font-variant-numeric: tabular-nums;
}

.snip-rect.fade,
.snip-badge.fade {
    opacity: 0;
    transition: opacity 0.35s ease;
}

/* Responsive */

@media (max-width: 720px) {
    .nav-links {
        display: none;
    }

    .nav-inner .btn {
        margin-left: auto;
    }

    .hero {
        padding-top: 48px;
    }

    .section {
        padding: 64px 0;
    }

    .download-card {
        padding: 24px;
    }

    .hint {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}
