/* ─────────────────────────────────────────────────
   VibeCodeCheck Pro — Design tokens + base styles
   ───────────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700&family=Geist+Mono:wght@400;500&display=swap');

:root {
    /* Background & surface */
    --bg:               #ffffff;
    --bg-subtle:        #f8fafc;          /* sectie-break op landing */
    --bg-elevated:      #ffffff;          /* cards op subtle achtergrond */

    /* Tekst */
    --text:             #0a0a0a;          /* near-black voor body */
    --text-muted:       #525252;          /* neutral-600 */
    --text-subtle:      #737373;          /* neutral-500 */

    /* Borders */
    --border:           #e5e5e5;          /* neutral-200 */
    --border-strong:    #d4d4d4;          /* neutral-300 */

    /* Accent — dark blue (primary actions) */
    --accent-blue:        #1e3a8a;
    --accent-blue-hover:  #1e40af;
    --accent-blue-bg:     #eff6ff;         /* zeer licht voor highlights */

    /* Accent — dark green (success / scan-complete) */
    --accent-green:        #065f46;
    --accent-green-hover:  #047857;
    --accent-green-bg:     #ecfdf5;

    /* Severity-kleuren — onmisbaar voor scan-context */
    --sev-critical:     #dc2626;
    --sev-critical-bg:  #fee2e2;
    --sev-high:         #ea580c;
    --sev-high-bg:      #ffedd5;
    --sev-medium:       #d97706;
    --sev-medium-bg:    #fef3c7;
    --sev-low:          #2563eb;
    --sev-low-bg:       #dbeafe;
    --sev-info:         #525252;
    --sev-info-bg:      #f5f5f5;

    /* Score-badge kleuren (A → F) */
    --score-a:          #16a34a;
    --score-b:          #65a30d;
    --score-c:          #ca8a04;
    --score-d:          #ea580c;
    --score-e:          #dc2626;
    --score-f:          #991b1b;
    --score-x:          #737373;            /* unknown */

    /* Typografie */
    --font-sans:    'Geist', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono:    'Geist Mono', ui-monospace, 'SF Mono', SFMono-Regular, Menlo, monospace;

    --fs-xs:    0.75rem;     /* 12px */
    --fs-sm:    0.875rem;    /* 14px */
    --fs-base:  1rem;        /* 16px */
    --fs-lg:    1.125rem;    /* 18px */
    --fs-xl:    1.25rem;     /* 20px */
    --fs-2xl:   1.5rem;      /* 24px */
    --fs-3xl:   1.875rem;    /* 30px */
    --fs-4xl:   2.25rem;     /* 36px */
    --fs-5xl:   3rem;        /* 48px */
    --fs-6xl:   3.75rem;     /* 60px */

    --lh-tight:    1.2;
    --lh-snug:     1.35;
    --lh-normal:   1.55;
    --lh-relaxed:  1.7;

    /* Spacing scale */
    --space-1:   0.25rem;
    --space-2:   0.5rem;
    --space-3:   0.75rem;
    --space-4:   1rem;
    --space-5:   1.25rem;
    --space-6:   1.5rem;
    --space-8:   2rem;
    --space-10:  2.5rem;
    --space-12:  3rem;
    --space-16:  4rem;
    --space-20:  5rem;
    --space-24:  6rem;

    /* Radius + shadow */
    --radius-sm:    4px;
    --radius:       6px;
    --radius-lg:    10px;
    --radius-xl:    16px;

    --shadow-sm:    0 1px 2px rgba(0,0,0,0.04);
    --shadow:       0 1px 3px rgba(0,0,0,0.05), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-lg:    0 8px 24px rgba(15,23,42,0.08);

    /* Container widths */
    --w-narrow:     640px;
    --w-content:    880px;
    --w-wide:       1100px;
}

/* ─────────────────────────────────────────────────
   Reset — modern minimal
   ───────────────────────────────────────────────── */

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

html, body { height: 100%; }
body {
    font-family: var(--font-sans);
    font-size: var(--fs-base);
    line-height: var(--lh-normal);
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img, picture, video, canvas, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; padding: 0; }
a { color: inherit; text-decoration: none; }

/* ─────────────────────────────────────────────────
   Typografische utilities
   ───────────────────────────────────────────────── */

.t-display {
    font-size: var(--fs-5xl);
    line-height: var(--lh-tight);
    font-weight: 700;
    letter-spacing: -0.02em;
}
.t-h1 {
    font-size: var(--fs-4xl);
    line-height: var(--lh-tight);
    font-weight: 700;
    letter-spacing: -0.02em;
}
.t-h2 {
    font-size: var(--fs-2xl);
    line-height: var(--lh-snug);
    font-weight: 600;
    letter-spacing: -0.01em;
}
.t-h3 {
    font-size: var(--fs-xl);
    line-height: var(--lh-snug);
    font-weight: 600;
}
.t-lead {
    font-size: var(--fs-lg);
    line-height: var(--lh-relaxed);
    color: var(--text-muted);
}
.t-mono {
    font-family: var(--font-mono);
    font-size: var(--fs-sm);
}
.t-muted   { color: var(--text-muted); }
.t-subtle  { color: var(--text-subtle); }
.t-sm      { font-size: var(--fs-sm); }
.t-xs      { font-size: var(--fs-xs); }

/* ─────────────────────────────────────────────────
   Layout helpers
   ───────────────────────────────────────────────── */

.container        { max-width: var(--w-wide); margin: 0 auto; padding: 0 var(--space-6); }
.container-narrow { max-width: var(--w-narrow); margin: 0 auto; padding: 0 var(--space-6); }
.container-content{ max-width: var(--w-content); margin: 0 auto; padding: 0 var(--space-6); }

.section          { padding: var(--space-20) 0; }
.section-subtle   { background: var(--bg-subtle); padding: var(--space-20) 0; }

.stack > * + *    { margin-top: var(--space-4); }
.stack-lg > * + * { margin-top: var(--space-6); }
.stack-xl > * + * { margin-top: var(--space-10); }

.row              { display: flex; align-items: center; gap: var(--space-3); }
.row-between      { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }

/* ─────────────────────────────────────────────────
   Buttons
   ───────────────────────────────────────────────── */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-5);
    border-radius: var(--radius);
    font-weight: 500;
    font-size: var(--fs-base);
    line-height: 1;
    transition: background 120ms ease, color 120ms ease, border-color 120ms ease, transform 120ms ease;
    border: 1px solid transparent;
}
.btn:active { transform: translateY(1px); }

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

.btn-success {
    background: var(--accent-green);
    color: #fff;
}
.btn-success:hover { background: var(--accent-green-hover); }

.btn-ghost {
    background: transparent;
    color: var(--text);
    border-color: var(--border);
}
.btn-ghost:hover { background: var(--bg-subtle); border-color: var(--border-strong); }

.btn-sm {
    padding: var(--space-2) var(--space-3);
    font-size: var(--fs-sm);
}

/* ─────────────────────────────────────────────────
   Cards
   ───────────────────────────────────────────────── */

.card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
}
.card-tight { padding: var(--space-4); }

/* ─────────────────────────────────────────────────
   Badges
   ───────────────────────────────────────────────── */

.badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    font-size: var(--fs-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.5;
}
.badge.critical { background: var(--sev-critical-bg); color: var(--sev-critical); }
.badge.high     { background: var(--sev-high-bg);     color: var(--sev-high); }
.badge.medium   { background: var(--sev-medium-bg);   color: var(--sev-medium); }
.badge.low      { background: var(--sev-low-bg);      color: var(--sev-low); }
.badge.info     { background: var(--sev-info-bg);     color: var(--sev-info); }

/* ─────────────────────────────────────────────────
   Score-badge (groot, A-F)
   ───────────────────────────────────────────────── */

.score-badge {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.02em;
    line-height: 1;
}
.score-badge.a { background: var(--score-a); }
.score-badge.b { background: var(--score-b); }
.score-badge.c { background: var(--score-c); }
.score-badge.d { background: var(--score-d); }
.score-badge.e { background: var(--score-e); }
.score-badge.f { background: var(--score-f); }
.score-badge.x { background: var(--score-x); }

/* ─────────────────────────────────────────────────
   App header (logged-in)
   ───────────────────────────────────────────────── */

.app-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.80);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
}
.app-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-4) var(--space-6);
    max-width: var(--w-wide);
    margin: 0 auto;
}
.app-header .logo {
    font-weight: 600;
    font-size: var(--fs-lg);
    letter-spacing: -0.015em;
    color: var(--text);
}
.app-header .logo .accent { color: var(--accent-green); }
.app-header nav { display: flex; gap: var(--space-6); align-items: center; }
.app-header .nav-link {
    color: var(--text-muted);
    font-size: var(--fs-sm);
    transition: color 120ms ease;
}
.app-header .nav-link:hover { color: var(--text); }

/* Login icon — borderless, alleen subtiel hover-bg */
.app-header .login-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: var(--radius);
    color: var(--text-muted);
    transition: color 120ms ease, background 120ms ease;
}
.app-header .login-icon:hover {
    color: var(--text);
    background: var(--bg-subtle);
}

.user-chip {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius);
    color: var(--text-muted);
    font-size: var(--fs-sm);
}
.user-chip img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

/* ─────────────────────────────────────────────────
   Footer
   ───────────────────────────────────────────────── */

.app-footer {
    border-top: 1px solid var(--border);
    background: var(--bg);
    padding: var(--space-10) 0 var(--space-12);
    margin-top: var(--space-20);
    color: var(--text-subtle);
    font-size: var(--fs-sm);
}
.app-footer a { color: var(--text-muted); }
.app-footer a:hover { color: var(--text); }
.app-footer .footer-cols {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-10);
}
.app-footer .footer-cols strong {
    color: var(--text);
    display: block;
    margin-bottom: var(--space-3);
    font-size: var(--fs-sm);
}

/* ─────────────────────────────────────────────────
   Code blocks (in fix-prompts)
   ───────────────────────────────────────────────── */

code, pre {
    font-family: var(--font-mono);
    font-size: var(--fs-sm);
}
:not(pre) > code {
    background: var(--bg-subtle);
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    font-size: 0.85em;
}
pre {
    background: #0a0a0a;
    color: #e5e5e5;
    padding: var(--space-4);
    border-radius: var(--radius);
    overflow-x: auto;
    line-height: var(--lh-snug);
    white-space: pre-wrap;
    word-break: break-word;
}

/* ─────────────────────────────────────────────────
   Form elements
   ───────────────────────────────────────────────── */

input[type="text"], input[type="email"], input[type="password"], textarea, select {
    width: 100%;
    padding: var(--space-3);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg);
    transition: border-color 120ms ease, box-shadow 120ms ease;
}
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(30,58,138,0.12);
}

/* ─────────────────────────────────────────────────
   Marketing landing — bespoke elements
   ───────────────────────────────────────────────── */

/* Subtiele techno achtergrond — fijne grid-lines met fade-mask */
.hero {
    position: relative;
    padding: 7rem 0 5rem;
    overflow: hidden;
    isolation: isolate;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(15,23,42,0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(15,23,42,0.05) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 100% 80% at 50% 30%, black 25%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 100% 80% at 50% 30%, black 25%, transparent 80%);
    z-index: -1;
}
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    right: -10%;
    width: 40%;
    height: 50%;
    background: radial-gradient(circle at center, rgba(6,95,70,0.04) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 5rem;
    align-items: center;
}
@media (max-width: 960px) {
    .hero-grid { grid-template-columns: 1fr; gap: 3rem; }
}

.hero h1 {
    font-size: clamp(2.75rem, 5.5vw, 4.75rem);
    line-height: 1.02;
    letter-spacing: -0.035em;
    font-weight: 300;
    color: var(--text);
}
.hero h1 .accent-text {
    color: var(--accent-green);
    font-weight: 400;
}
.hero h1 em {
    font-style: normal;
    font-weight: 500;
    color: var(--text);
}

.hero .sub {
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-top: 1.75rem;
    max-width: 520px;
    font-weight: 400;
}

.hero-cta {
    display: flex;
    gap: 0.75rem;
    margin-top: 2.25rem;
    flex-wrap: wrap;
}

.hero-trust {
    display: flex;
    gap: 1.75rem;
    margin-top: 2.5rem;
    align-items: center;
    color: var(--text-subtle);
    font-size: 0.875rem;
}
.hero-trust .stat strong {
    display: block;
    color: var(--text);
    font-size: 1.2rem;
    font-weight: 600;
}

/* ─────────────────────────────────────────────────
   Product-preview (rapport-visualisatie in hero)
   ───────────────────────────────────────────────── */

.preview {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow:
        0 1px 2px rgba(15,23,42,0.04),
        0 12px 32px -8px rgba(15,23,42,0.12),
        0 40px 80px -20px rgba(15,23,42,0.10);
    overflow: hidden;
    transform: perspective(1200px) rotateY(-3deg) rotateX(2deg);
    transition: transform 400ms ease;
}
.preview:hover { transform: perspective(1200px) rotateY(-1deg) rotateX(1deg); }

.preview-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
    background: var(--bg-subtle);
}
.preview-bar .dot { width: 10px; height: 10px; border-radius: 50%; }
.preview-bar .dot:nth-child(1) { background: #fb7185; }
.preview-bar .dot:nth-child(2) { background: #fbbf24; }
.preview-bar .dot:nth-child(3) { background: #34d399; }
.preview-bar .url {
    margin-left: 0.5rem;
    color: var(--text-subtle);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.preview-body {
    padding: 1.5rem;
    background: #fff;
}

.preview-row {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}
.preview-row .repo {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-muted);
}
.preview-row .title { font-weight: 600; font-size: 1.05rem; margin-top: 0.15rem; }

.preview-score {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1rem;
    background: var(--bg-subtle);
    border-radius: 8px;
    margin-bottom: 1rem;
}
.preview-score .score-badge { width: 64px; height: 64px; font-size: 2rem; }
.preview-score .meta { font-size: 0.85rem; color: var(--text-muted); }
.preview-score .meta strong { color: var(--text); font-size: 1rem; display: block; }

.preview-findings { display: flex; flex-direction: column; gap: 0.5rem; }
.preview-finding {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.75rem;
    align-items: center;
    padding: 0.65rem 0.85rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.85rem;
}
.preview-finding .rule {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-subtle);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.preview-finding .file {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* ─────────────────────────────────────────────────
   Marketing: feature blocks
   ───────────────────────────────────────────────── */

.section-marketing {
    padding: 5.5rem 0;
}
.section-marketing.bg-dark {
    background: #0a0a0a;
    color: #f5f5f5;
}
.section-marketing.bg-dark .t-muted { color: #a3a3a3; }
.section-marketing.bg-dark .t-subtle { color: #737373; }
.section-marketing.bg-dark h1, .section-marketing.bg-dark h2, .section-marketing.bg-dark h3 { color: #fff; }
.section-marketing.bg-dark .card {
    background: rgba(255,255,255,0.03);
    border-color: rgba(255,255,255,0.08);
}
.section-marketing.bg-dark .card .t-muted { color: #d4d4d4; }

/* Editorial section heading — links uitgelijnd, light-weight */
.editorial-head {
    max-width: 760px;
    margin: 0 0 4.5rem;
}
.editorial-head .kicker {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-subtle);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}
.editorial-head h2 {
    font-size: clamp(2.25rem, 4.5vw, 3.75rem);
    letter-spacing: -0.03em;
    line-height: 1.05;
    font-weight: 300;
    color: var(--text);
}
.editorial-head h2 em {
    font-style: normal;
    font-weight: 500;
}
.editorial-head h2 .muted {
    color: var(--text-subtle);
    font-weight: 300;
}
.editorial-head .sub {
    margin-top: 1.25rem;
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 580px;
    line-height: 1.6;
}

/* Stacked editorial feature — alternerende layout */
.feature-row {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 5rem;
    padding: 4rem 0;
    border-top: 1px solid var(--border);
    align-items: start;
}
.feature-row:last-child { border-bottom: 1px solid var(--border); }
@media (max-width: 800px) {
    .feature-row { grid-template-columns: 1fr; gap: 2rem; padding: 2.5rem 0; }
}

.feature-row .left .num {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--accent-blue);
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
    display: block;
}
.feature-row .left h3 {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
    font-weight: 400;
    color: var(--text);
}
.feature-row .right {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.65;
}
.feature-row .right strong { color: var(--text); font-weight: 500; }
.feature-row .right .details {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    color: var(--text-subtle);
    font-size: 0.9rem;
    font-family: var(--font-mono);
}
.feature-row.dark { border-color: rgba(255,255,255,0.1); }
.section-marketing.bg-dark .feature-row { border-color: rgba(255,255,255,0.1); }
.section-marketing.bg-dark .feature-row .left h3 { color: #fff; }
.section-marketing.bg-dark .feature-row .right { color: #a3a3a3; }
.section-marketing.bg-dark .feature-row .right strong { color: #fff; }
.section-marketing.bg-dark .feature-row .right .details { border-color: rgba(255,255,255,0.1); color: #737373; }

/* Terminal-style block voor "wat we vinden" */
.terminal {
    background: #0a0a0a;
    border-radius: 12px;
    padding: 0;
    color: #e5e5e5;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    line-height: 1.6;
    overflow: hidden;
    box-shadow: 0 12px 32px -8px rgba(0,0,0,0.3);
}
.terminal-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.02);
}
.terminal-bar .dot { width: 10px; height: 10px; border-radius: 50%; opacity: 0.6; }
.terminal-bar .dot:nth-child(1) { background: #fb7185; }
.terminal-bar .dot:nth-child(2) { background: #fbbf24; }
.terminal-bar .dot:nth-child(3) { background: #34d399; }
.terminal-bar .title {
    margin-left: 0.5rem;
    color: #a3a3a3;
    font-size: 0.78rem;
}
.terminal-body { padding: 1.5rem; }
.terminal-line { display: block; }
.terminal-line .prompt { color: #34d399; margin-right: 0.5em; }
.terminal-line .ok { color: #34d399; }
.terminal-line .warn { color: #fbbf24; }
.terminal-line .crit { color: #f87171; }
.terminal-line .muted { color: #737373; }

.pricing-card {
    max-width: 480px;
    margin: 0 auto;
    padding: 3rem 2.5rem;
    border-radius: 16px;
    background: var(--bg);
    border: 1px solid var(--border);
    box-shadow: 0 20px 60px -20px rgba(15,23,42,0.15);
    position: relative;
    text-align: left;
}
.pricing-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 18px;
    padding: 2px;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-green));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    pointer-events: none;
    z-index: -1;
}
.pricing-card .price {
    font-size: 4.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1;
}
.pricing-card .price small {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-left: 0.4rem;
    letter-spacing: 0;
}
.pricing-list { margin: 2rem 0; }
.pricing-list li {
    list-style: none;
    padding: 0.5rem 0;
    padding-left: 1.75rem;
    position: relative;
    color: var(--text-muted);
}
.pricing-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.85rem;
    width: 16px;
    height: 8px;
    border-left: 2px solid var(--accent-green);
    border-bottom: 2px solid var(--accent-green);
    transform: rotate(-45deg);
}
.pricing-list li strong { color: var(--text); }

/* ─────────────────────────────────────────────────
   Page heading (dashboard, scan, etc.)
   ───────────────────────────────────────────────── */

.page-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}
.page-head .kicker {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-subtle);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.6rem;
}
.page-head h1 {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    line-height: 1.1;
    letter-spacing: -0.025em;
    font-weight: 300;
}
.page-head h1 em {
    font-style: normal;
    font-weight: 500;
}
.page-head .sub {
    margin-top: 0.5rem;
    color: var(--text-muted);
    font-size: 1rem;
}

/* ─────────────────────────────────────────────────
   Repo-list (dashboard)
   ───────────────────────────────────────────────── */

.repo-list-group {
    margin-top: 2.5rem;
}
.repo-list-group h2 {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.repo-list-group h2 .meta {
    color: var(--text-subtle);
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
}

.repo-list {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    background: var(--bg);
}
.repo-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 1rem;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
    transition: background 100ms ease;
}
.repo-row:hover { background: var(--bg-subtle); }
.repo-row:last-child { border-bottom: none; }
.repo-row .name {
    font-family: var(--font-mono);
    font-size: 0.92rem;
    color: var(--text);
}
.repo-row .name small {
    color: var(--text-subtle);
    font-weight: 400;
    margin-left: 0.3rem;
    font-size: 0.78rem;
}
.repo-row .last-scan {
    font-size: 0.82rem;
    color: var(--text-muted);
}
.repo-row .last-scan a {
    color: inherit;
    border-bottom: 1px dotted var(--border-strong);
}
.repo-row .scan-mini-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-right: 0.5rem;
}
.repo-row .scan-mini-badge .pill {
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    color: #fff;
    text-align: center;
    line-height: 20px;
    font-size: 0.7rem;
    font-weight: 700;
}
.repo-row .scan-mini-badge .pill.a { background: var(--score-a); }
.repo-row .scan-mini-badge .pill.b { background: var(--score-b); }
.repo-row .scan-mini-badge .pill.c { background: var(--score-c); }
.repo-row .scan-mini-badge .pill.d { background: var(--score-d); }
.repo-row .scan-mini-badge .pill.e { background: var(--score-e); }
.repo-row .scan-mini-badge .pill.f { background: var(--score-f); }

@media (max-width: 640px) {
    .repo-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    .repo-row form { width: 100%; }
    .repo-row .btn { width: 100%; }
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--bg-subtle);
    border: 1px dashed var(--border-strong);
    border-radius: 12px;
}
.empty-state h3 {
    font-size: 1.3rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    margin-bottom: 0.5rem;
}
.empty-state p {
    color: var(--text-muted);
    max-width: 420px;
    margin: 0 auto 1.5rem;
}

/* ─────────────────────────────────────────────────
   Scan-progress (queued / running / failed)
   ───────────────────────────────────────────────── */

.scan-status {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin: 1.5rem 0;
}
.scan-status .spinner {
    width: 22px;
    height: 22px;
    border: 3px solid var(--border);
    border-top-color: var(--accent-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
.scan-status.done .spinner { display: none; }
.scan-status.failed .spinner {
    display: block;
    border: 3px solid var(--sev-critical-bg);
    border-top-color: var(--sev-critical);
    animation: none;
}
.scan-status .label { font-size: 1.05rem; font-weight: 500; }
.scan-status .sub { color: var(--text-muted); font-size: 0.85rem; }
@keyframes spin { to { transform: rotate(360deg); } }

.scan-meta {
    font-size: 0.85rem;
    color: var(--text-subtle);
    margin-top: 1.5rem;
}
.scan-meta code {
    font-size: 0.78rem;
}

/* ─────────────────────────────────────────────────
   Scan-report (finished scan view)
   ───────────────────────────────────────────────── */

.report-head {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 2rem;
    align-items: center;
    padding: 2rem;
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 2rem;
}
.report-head .score-badge { width: 88px; height: 88px; font-size: 2.5rem; }
.report-head h1 {
    font-size: 1.6rem;
    line-height: 1.2;
    font-weight: 500;
    letter-spacing: -0.015em;
}
.report-head .sub { color: var(--text-muted); margin-top: 0.35rem; font-size: 0.95rem; }

.report-head .downloads {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    min-width: 130px;
    max-width: 150px;
}
.report-head .downloads .btn {
    justify-content: flex-start;
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    font-weight: 500;
}
.report-head .downloads .download-hint {
    font-size: 0.72rem;
    color: var(--text-subtle);
    margin-top: 0.25rem;
    line-height: 1.4;
}

@media (max-width: 720px) {
    .report-head {
        grid-template-columns: auto 1fr;
        gap: 1.25rem;
    }
    .report-head .downloads {
        grid-column: 1 / -1;
        flex-direction: row;
        min-width: 0;
    }
    .report-head .downloads .btn { flex: 1; justify-content: center; }
    .report-head .downloads .download-hint { display: none; }
}

.cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.6rem;
    margin-bottom: 2.5rem;
}
.cat-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.85rem 1rem;
}
.cat-card .label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-subtle);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.cat-card .count {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 0.2rem;
    letter-spacing: -0.01em;
}
.cat-card .breakdown {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
}

.section-title {
    font-size: 1.1rem;
    font-weight: 500;
    margin: 2rem 0 1rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--border);
}

.finding {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.1rem 1.2rem;
    margin-bottom: 0.6rem;
    background: var(--bg);
}
.finding-head {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}
.cat-badge {
    margin-left: auto;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text-muted);
}
.cat-badge.security    { color: #1e3a8a; border-color: #bfdbfe; background: #eff6ff; }
.cat-badge.secrets     { color: #991b1b; border-color: #fecaca; background: #fef2f2; }
.cat-badge.vibecode    { color: #065f46; border-color: #a7f3d0; background: #ecfdf5; }
.cat-badge.compliance  { color: #92400e; border-color: #fde68a; background: #fffbeb; }
.cat-badge.dependencies { color: #4338ca; border-color: #c7d2fe; background: #eef2ff; }
.cat-badge.quality      { color: #475569; border-color: #e2e8f0; background: #f8fafc; }
.finding .file {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text);
    margin-top: 0.3rem;
}
.finding .file a {
    color: inherit;
    border-bottom: 1px dotted var(--border-strong);
}
.finding .msg {
    margin-top: 0.5rem;
    color: var(--text-muted);
    line-height: 1.55;
}
.finding details { margin-top: 0.85rem; }
.finding summary {
    cursor: pointer;
    color: var(--accent-blue);
    font-size: 0.88rem;
    font-weight: 500;
    list-style: none;
    user-select: none;
}
.finding summary::-webkit-details-marker { display: none; }
.finding summary::after { content: ' ↓'; opacity: 0.6; }
.finding details[open] summary::after { content: ' ↑'; }
.finding pre {
    margin: 0.75rem 0 0.5rem;
    background: #0a0a0a;
    color: #e5e5e5;
    padding: 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    overflow-x: auto;
    line-height: 1.55;
    white-space: pre-wrap;
    word-break: break-word;
}
.finding .copy-btn {
    margin-top: 0.5rem;
    background: var(--text);
    color: #fff;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.82rem;
    font-weight: 500;
    border: none;
}
.finding .copy-btn:hover { background: #000; }
.finding .copy-btn.copied { background: var(--accent-green); }

.report-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
}
.report-removed-notice {
    padding: 1rem 1.25rem;
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
}
.report-removed-notice a {
    color: var(--accent-blue);
    border-bottom: 1px solid var(--accent-blue);
}

/* ─────────────────────────────────────────────────
   FAQ — native details/summary accordion
   ───────────────────────────────────────────────── */

.faq-list {
    border-top: 1px solid var(--border);
    max-width: 820px;
}
.faq-item {
    border-bottom: 1px solid var(--border);
    padding: 0;
}
.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 1.5rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    font-size: 1.15rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: var(--text);
    transition: color 120ms ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '+';
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--text-subtle);
    transition: transform 200ms ease, color 200ms ease;
    flex-shrink: 0;
}
.faq-item[open] summary::after {
    transform: rotate(45deg);
    color: var(--accent-green);
}
.faq-item summary:hover {
    color: var(--accent-blue);
}
.faq-item .answer {
    padding: 0 0 1.75rem 0;
    color: var(--text-muted);
    line-height: 1.65;
    max-width: 680px;
}
.faq-item .answer p { margin-bottom: 0.75rem; }
.faq-item .answer p:last-child { margin-bottom: 0; }
.faq-item .answer strong { color: var(--text); font-weight: 500; }
.faq-item .answer a { color: var(--accent-blue); border-bottom: 1px solid var(--accent-blue); }

/* ─────────────────────────────────────────────────
   Responsive
   ───────────────────────────────────────────────── */

/* Responsive 2-koloms grid helper — desktop side-by-side, mobile gestapeld */
.split-2col {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
}
.split-2col.equal { grid-template-columns: 1fr 1fr; }

@media (max-width: 720px) {
    .split-2col, .split-2col.equal {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Header nav: verberg menu-links op mobile, behoud CTA + login-icon */
    .app-header nav .nav-link { display: none; }
    .app-header .app-header-inner { padding: var(--space-3) var(--space-4); }
    .app-header nav { gap: var(--space-3); }
    .app-header .logo { font-size: var(--fs-base); }

    /* App-layout: user-chip tekst weg, alleen avatar zichtbaar */
    .user-chip span { display: none; }
    .user-chip { padding: 0; }
}

@media (max-width: 640px) {
    .faq-item summary { font-size: 1rem; padding: 1.25rem 0; }

    .t-display { font-size: var(--fs-4xl); }
    .t-h1      { font-size: var(--fs-3xl); }
    .section, .section-subtle, .section-marketing { padding: 3rem 0; }
    .container, .container-narrow, .container-content { padding: 0 var(--space-4); }
    .app-footer .footer-cols { grid-template-columns: 1fr 1fr; gap: var(--space-6); }
    .preview { transform: none; }
    .hero-trust { flex-wrap: wrap; gap: 1rem; }
}
