/* ============================================================
   ContentDrive — Public Frontend Design System
   Aesthetic: Clean, professional, performance-driven.
   Light mode. Blue (trust/tech) + Teal (growth/performance).
   Fonts: Satoshi (display) + General Sans (body)
   ============================================================ */

@import url('https://api.fontshare.com/v2/css?f[]=satoshi@700,900&f[]=general-sans@400,500,600&display=swap');

:root {
    /* Core palette */
    --cd-bg: #ffffff;
    --cd-surface: #f8fafc;
    --cd-surface-2: #f1f5f9;
    --cd-border: #e2e8f0;
    --cd-border-hover: #cbd5e1;

    /* Text */
    --cd-text: #0f172a;
    --cd-text-muted: #64748b;
    --cd-text-dim: #94a3b8;

    /* Brand colors — ContentDrive logo palette */
    --cd-primary: #0e2b4e;
    --cd-primary-light: #1e4a7e;
    --cd-primary-bg: rgba(14, 43, 78, 0.06);
    --cd-teal: #22a598;
    --cd-teal-light: #2bc4b0;
    --cd-teal-bg: rgba(34, 165, 152, 0.08);
    --cd-green: #16a34a;
    --cd-green-bg: rgba(22, 163, 74, 0.06);
    --cd-amber: #d97706;
    --cd-amber-bg: rgba(217, 119, 6, 0.06);
    --cd-rose: #e11d48;
    --cd-rose-bg: rgba(225, 29, 72, 0.06);

    /* Gradients */
    --cd-gradient-hero: linear-gradient(135deg, #f8fafc 0%, rgba(34, 165, 152, 0.12) 50%, rgba(14, 43, 78, 0.08) 100%);
    --cd-gradient-soft: linear-gradient(135deg, #ffffff 0%, rgba(34, 165, 152, 0.06) 60%, rgba(14, 43, 78, 0.05) 100%);
    --cd-gradient-accent: linear-gradient(135deg, #0e2b4e, #22a598);
    --cd-gradient-accent-soft: linear-gradient(135deg, rgba(14, 43, 78, 0.1), rgba(34, 165, 152, 0.12));
    --cd-gradient-surface: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);

    /* Typography */
    --font-display: 'Satoshi', sans-serif;
    --font-body: 'General Sans', sans-serif;

    /* Spacing */
    --section-py: clamp(4rem, 8vw, 7rem);
}

/* ---- Reset & Base ---- */

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

body.cd-public {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--cd-text);
    background: var(--cd-bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.cd-public a { color: var(--cd-primary); text-decoration: none; transition: color 0.2s; }
.cd-public a:hover { color: var(--cd-primary-light); }

.cd-public > * { position: relative; z-index: 1; }

/* ---- Navigation ---- */

.cd-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 0.875rem 0;
    backdrop-filter: blur(20px) saturate(1.2);
    background: rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid var(--cd-border);
    transition: background 0.3s;
}

.cd-nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.cd-nav-brand {
    display: inline-flex;
    align-items: center;
    line-height: 0;
}

.cd-nav-brand .cd-logo {
    height: 36px;
    width: auto;
    display: block;
}

.cd-nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.cd-nav-links > li > a {
    color: var(--cd-text-muted);
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s;
    text-decoration: none;
}

.cd-nav-links > li > a:hover { color: var(--cd-text); }
.cd-nav-links a.cd-btn-primary { color: #fff !important; }
.cd-nav-links a.cd-btn-primary:hover { color: #fff !important; }

.cd-lang-switch a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 28px;
    padding: 0 0.5rem;
    border: 1px solid var(--cd-border);
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.75rem !important;
    color: var(--cd-text) !important;
    letter-spacing: 0.05em;
}
.cd-lang-switch a:hover {
    background: var(--cd-surface);
    border-color: var(--cd-border-hover);
}

.cd-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.5rem;
    background: var(--cd-primary);
    color: #fff !important;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.875rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.cd-btn-primary:hover {
    background: var(--cd-primary-light);
    box-shadow: 0 4px 20px rgba(14, 43, 78, 0.25);
    transform: translateY(-1px);
    color: #fff !important;
}

.cd-btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.5rem;
    background: transparent;
    color: var(--cd-text) !important;
    font-weight: 500;
    font-size: 0.875rem;
    border: 1px solid var(--cd-border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.cd-btn-ghost:hover {
    border-color: var(--cd-border-hover);
    background: var(--cd-surface);
    color: var(--cd-text) !important;
}

/* ---- Hero ---- */

.cd-hero {
    padding: calc(var(--section-py) + 5rem) 0 var(--section-py);
    background: var(--cd-gradient-hero);
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Subtle grid pattern */
.cd-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(14, 43, 78, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(14, 43, 78, 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 60% 60% at 50% 40%, black 20%, transparent 70%);
}

/* Soft glow */
.cd-hero::after {
    content: '';
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(14, 43, 78, 0.08), rgba(34, 165, 152, 0.05), transparent 70%);
    filter: blur(60px);
    pointer-events: none;
}

.cd-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: var(--cd-primary-bg);
    border: 1px solid rgba(14, 43, 78, 0.12);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--cd-primary);
    margin-bottom: 2rem;
    animation: fade-in-up 0.6s ease-out both;
}

.cd-hero h1 {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: var(--cd-text);
    margin: 0 0 1.5rem;
    animation: fade-in-up 0.6s ease-out 0.1s both;
}

.cd-hero h1 .gradient-text {
    background: var(--cd-gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cd-hero-sub {
    font-size: 1.15rem;
    color: var(--cd-text-muted);
    max-width: 560px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
    animation: fade-in-up 0.6s ease-out 0.2s both;
}

.cd-hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    animation: fade-in-up 0.6s ease-out 0.3s both;
}

.cd-hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid var(--cd-border);
    animation: fade-in-up 0.6s ease-out 0.5s both;
}

.cd-hero-stat { text-align: center; }

.cd-hero-stat-value {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 2rem;
    color: var(--cd-text);
    letter-spacing: -0.02em;
}

.cd-hero-stat-label {
    font-size: 0.8rem;
    color: var(--cd-text-muted);
    margin-top: 0.25rem;
}

/* ---- Step badge (how it works) ---- */

.cd-step-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--cd-gradient-accent);
    color: #fff;
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
    box-shadow: 0 8px 20px rgba(14, 43, 78, 0.22);
}

/* ---- Hero trust row ---- */

.cd-hero-trust {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.25rem;
    margin-top: 2rem;
    animation: fade-in-up 0.6s ease-out 0.4s both;
}

.cd-hero-trust span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: var(--cd-text-muted);
    font-weight: 500;
}

.cd-hero-trust i {
    color: var(--cd-teal);
    font-size: 0.9rem;
}

/* ---- Results grid (benefit stats) ---- */

.cd-results-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.cd-result-card {
    background: var(--cd-bg);
    border: 1px solid var(--cd-border);
    border-radius: 16px;
    padding: 1.75rem;
    transition: all 0.3s;
}

.cd-result-card:hover {
    border-color: var(--cd-border-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(14, 43, 78, 0.08);
}

.cd-result-value {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 2.25rem;
    line-height: 1;
    background: var(--cd-gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.cd-result-card p {
    font-size: 0.85rem;
    color: var(--cd-text-muted);
    margin: 0;
    line-height: 1.6;
}

@media (max-width: 992px) { .cd-results-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .cd-results-grid { grid-template-columns: 1fr; } }

/* ---- Animations ---- */

@keyframes fade-in-up {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Scroll-triggered fade in */
.fade-in-view {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.fade-in-view.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-view.delay-1 { transition-delay: 0.1s; }
.fade-in-view.delay-2 { transition-delay: 0.2s; }
.fade-in-view.delay-3 { transition-delay: 0.3s; }
.fade-in-view.delay-4 { transition-delay: 0.4s; }

/* ---- Sections ---- */

.cd-section {
    padding: var(--section-py) 0;
    position: relative;
}

.cd-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.cd-section-alt {
    background: var(--cd-gradient-soft);
    position: relative;
    overflow: hidden;
}
.cd-section-alt::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(14, 43, 78, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(14, 43, 78, 0.035) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 20%, transparent 75%);
    pointer-events: none;
}
.cd-section-alt > .container { position: relative; z-index: 1; }

/* Vivid section: gelijk aan hero gradient — voor modules block */
.cd-section-vivid {
    background: var(--cd-gradient-hero);
    position: relative;
    overflow: hidden;
}
.cd-section-vivid::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(14, 43, 78, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(14, 43, 78, 0.05) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, black 20%, transparent 75%);
    pointer-events: none;
}
.cd-section-vivid::after {
    content: '';
    position: absolute;
    top: 5%;
    left: 50%;
    transform: translateX(-50%);
    width: 700px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(34, 165, 152, 0.1), rgba(14, 43, 78, 0.05), transparent 70%);
    filter: blur(60px);
    pointer-events: none;
}
.cd-section-vivid > .container { position: relative; z-index: 1; }

.cd-section-white { background: var(--cd-bg); }

.cd-section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 3.5rem;
}

.cd-section-header h2 {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    letter-spacing: -0.02em;
    color: var(--cd-text);
    margin: 0 0 1rem;
}

.cd-section-header p {
    color: var(--cd-text-muted);
    font-size: 1.05rem;
    margin: 0;
}

.cd-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--cd-primary);
    margin-bottom: 0.75rem;
}

/* ---- Feature cards (grid) ---- */

.cd-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.cd-feature-card {
    background: var(--cd-bg);
    border: 1px solid var(--cd-border);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s;
}

.cd-feature-card:hover {
    border-color: var(--cd-border-hover);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.cd-feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    font-size: 1.35rem;
    margin-bottom: 1.25rem;
    color: #fff;
    box-shadow: 0 6px 18px rgba(14, 43, 78, 0.18);
}

.cd-feature-icon.primary { background: linear-gradient(135deg, #0e2b4e 0%, #1e4a7e 100%); }
.cd-feature-icon.teal    { background: linear-gradient(135deg, #22a598 0%, #2bc4b0 100%); box-shadow: 0 6px 18px rgba(34, 165, 152, 0.28); }
.cd-feature-icon.green   { background: linear-gradient(135deg, #16a34a 0%, #4ade80 100%); box-shadow: 0 6px 18px rgba(22, 163, 74, 0.25); }
.cd-feature-icon.amber   { background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%); box-shadow: 0 6px 18px rgba(217, 119, 6, 0.28); }
.cd-feature-icon.rose    { background: linear-gradient(135deg, #e11d48 0%, #fb7185 100%); box-shadow: 0 6px 18px rgba(225, 29, 72, 0.25); }
.cd-feature-icon.accent  { background: var(--cd-gradient-accent); box-shadow: 0 6px 18px rgba(14, 43, 78, 0.22); }

.cd-feature-card h3 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    color: var(--cd-text);
    margin: 0 0 0.5rem;
}

.cd-feature-card p {
    font-size: 0.9rem;
    color: #334155;
    margin: 0;
    line-height: 1.65;
}

/* ---- Module detail cards (features page) ---- */

.cd-module {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    padding: 3rem 0;
    border-bottom: 1px solid var(--cd-border);
}

.cd-module:last-child { border-bottom: none; }
.cd-module.reverse { direction: rtl; }
.cd-module.reverse > * { direction: ltr; }

.cd-module h3 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--cd-text);
    margin: 0 0 0.75rem;
}

.cd-module p {
    color: var(--cd-text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
    margin: 0 0 1.25rem;
}

.cd-module-bullets {
    background: var(--cd-gradient-accent-soft);
    border: 1px solid rgba(34, 165, 152, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
}

.cd-module-bullet {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    font-size: 0.85rem;
    color: var(--cd-text-muted);
}

.cd-module-bullet .check {
    color: var(--cd-teal);
    font-weight: 700;
}

/* ---- Comparison table ---- */

.cd-comparison {
    border: 1px solid var(--cd-border);
    border-radius: 16px;
    overflow: hidden;
    background: var(--cd-bg);
    max-width: 700px;
    margin: 0 auto;
}

.cd-comparison table {
    width: 100%;
    border-collapse: collapse;
}

.cd-comparison th,
.cd-comparison td {
    padding: 0.875rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid var(--cd-border);
    font-size: 0.9rem;
}

.cd-comparison th {
    color: var(--cd-text-muted);
    font-weight: 500;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: var(--cd-surface);
}

.cd-comparison td:last-child { text-align: right; color: var(--cd-text-muted); }

.cd-comparison tr.highlight td {
    background: var(--cd-primary-bg);
    color: var(--cd-text);
    font-weight: 600;
}

.cd-comparison tr.highlight td:last-child { color: var(--cd-teal); font-size: 1.1rem; font-weight: 700; }

.cd-comparison tr:last-child td { border-bottom: none; }
.cd-comparison tr.strikethrough td:last-child { text-decoration: line-through; color: var(--cd-text-dim); }

/* ---- Pricing ---- */

.cd-pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.cd-pricing-card {
    background: var(--cd-bg);
    border: 1px solid var(--cd-border);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s;
    position: relative;
}

.cd-pricing-card:hover {
    border-color: var(--cd-border-hover);
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.cd-pricing-card.featured {
    border-color: var(--cd-primary);
    box-shadow: 0 4px 24px rgba(14, 43, 78, 0.12);
}

.cd-pricing-card.featured::before {
    content: 'Populairst';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.25rem 1rem;
    background: var(--cd-gradient-accent);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: 100px;
}

.cd-pricing-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--cd-text);
    margin-bottom: 0.5rem;
}

.cd-pricing-price {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 2.5rem;
    color: var(--cd-text);
    letter-spacing: -0.03em;
    line-height: 1;
}

.cd-pricing-price span { font-size: 0.9rem; font-weight: 500; color: var(--cd-text-muted); }

.cd-pricing-desc {
    font-size: 0.85rem;
    color: var(--cd-text-muted);
    margin: 0.5rem 0 1.5rem;
}

.cd-pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
}

.cd-pricing-features li {
    font-size: 0.85rem;
    color: var(--cd-text-muted);
    padding: 0.4rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cd-pricing-features li::before {
    content: '\2713';
    color: var(--cd-teal);
    font-weight: 700;
    font-size: 0.75rem;
}

/* ---- Enterprise note below pricing grid ---- */

.cd-enterprise-note {
    margin-top: 3rem;
    padding: 1.5rem 2rem;
    background: var(--cd-gradient-accent-soft);
    border: 1px solid rgba(34, 165, 152, 0.2);
    border-radius: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.cd-enterprise-note strong {
    display: block;
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--cd-text);
    font-size: 0.95rem;
    margin-bottom: 0.15rem;
}

.cd-enterprise-note span {
    color: var(--cd-text-muted);
    font-size: 0.85rem;
}

@media (max-width: 640px) {
    .cd-enterprise-note { flex-direction: column; text-align: center; }
}

/* ---- How it works (steps) ---- */

.cd-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.cd-step {
    text-align: center;
    padding: 1.5rem;
    background: var(--cd-bg);
    border: 1px solid var(--cd-border);
    border-radius: 16px;
    transition: all 0.3s;
}

.cd-step:hover {
    border-color: var(--cd-border-hover);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.cd-step-num {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 2.5rem;
    color: var(--cd-surface-2);
    line-height: 1;
}

.cd-step h4 {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--cd-text);
    margin: 0.5rem 0 0.25rem;
    font-size: 1rem;
}

.cd-step p {
    font-size: 0.8rem;
    color: var(--cd-text-muted);
    margin: 0;
    line-height: 1.5;
}

/* ---- FAQ ---- */

.cd-faq { max-width: 700px; margin: 0 auto; }

.cd-faq-item {
    border-bottom: 1px solid var(--cd-border);
}

.cd-faq-item summary {
    padding: 1.25rem 0;
    font-weight: 600;
    color: var(--cd-text);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cd-faq-item summary::after {
    content: '+';
    font-size: 1.25rem;
    color: var(--cd-text-muted);
    transition: transform 0.2s;
}

.cd-faq-item[open] summary::after {
    transform: rotate(45deg);
}

.cd-faq-item p {
    color: var(--cd-text-muted);
    font-size: 0.9rem;
    margin: 0 0 1.25rem;
    line-height: 1.7;
}

/* ---- CTA section ---- */

.cd-cta {
    text-align: center;
    padding: var(--section-py) 0;
    position: relative;
    background: var(--cd-gradient-hero);
    overflow: hidden;
}

.cd-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 40%, rgba(34, 165, 152, 0.12), transparent 60%);
    pointer-events: none;
}

.cd-cta > .container { position: relative; z-index: 1; }

.cd-cta h2 {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--cd-text);
    letter-spacing: -0.02em;
    margin: 0 0 1rem;
}

/* ---- Replaces bar ---- */

.cd-replaces {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2.5rem;
    opacity: 0.35;
}

.cd-replaces span {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--cd-text);
}

/* ---- Auth (login/register) ---- */

.cd-auth-section {
    min-height: 100vh;
    padding: 8rem 1.5rem 4rem;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    background: var(--cd-gradient-hero);
    position: relative;
    overflow: hidden;
}

.cd-auth-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(14, 43, 78, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(14, 43, 78, 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 20%, transparent 70%);
    pointer-events: none;
}

.cd-auth-section::after {
    content: '';
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(34, 165, 152, 0.12), rgba(14, 43, 78, 0.05), transparent 70%);
    filter: blur(60px);
    pointer-events: none;
}

.cd-auth-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 440px;
    background: #fff;
    border: 1px solid var(--cd-border);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 12px 40px rgba(14, 43, 78, 0.08);
}

.cd-auth-logo {
    text-align: center;
    margin-bottom: 1.5rem;
}

.cd-auth-logo img {
    max-height: 44px;
    width: auto;
}

.cd-auth-card h1 {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 1.75rem;
    letter-spacing: -0.02em;
    color: var(--cd-text);
    text-align: center;
    margin: 0 0 0.5rem;
}

.cd-auth-sub {
    text-align: center;
    color: var(--cd-text-muted);
    font-size: 0.95rem;
    margin: 0 0 2rem;
}

.cd-auth-form { display: flex; flex-direction: column; gap: 1rem; }

.cd-field { display: block; }
.cd-field span {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--cd-text);
    margin-bottom: 0.4rem;
}

.cd-field input,
.cd-field select,
.cd-field textarea {
    width: 100%;
    padding: 0.7rem 0.95rem;
    border: 1px solid var(--cd-border);
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--cd-text);
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.cd-field input:focus,
.cd-field select:focus,
.cd-field textarea:focus {
    outline: none;
    border-color: var(--cd-teal);
    box-shadow: 0 0 0 3px rgba(34, 165, 152, 0.15);
}

.cd-btn-block {
    width: 100%;
    justify-content: center;
    padding: 0.85rem 1.5rem !important;
    font-size: 0.95rem !important;
    margin-top: 0.5rem;
}

.cd-auth-link {
    text-align: center;
    margin-top: 0.5rem;
}

.cd-auth-link a {
    color: var(--cd-text-muted);
    font-size: 0.85rem;
    text-decoration: none;
}

.cd-auth-link a:hover { color: var(--cd-primary); }

.cd-auth-footer {
    text-align: center;
    margin-top: 1.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--cd-border);
    color: var(--cd-text-muted);
    font-size: 0.9rem;
}

.cd-auth-footer a {
    color: var(--cd-primary);
    font-weight: 600;
    text-decoration: none;
}

.cd-auth-footer a:hover { color: var(--cd-teal); }

.cd-alert {
    padding: 0.85rem 1rem;
    border-radius: 10px;
    font-size: 0.88rem;
    margin-bottom: 1.25rem;
    border: 1px solid transparent;
}

.cd-alert-error {
    background: rgba(225, 29, 72, 0.08);
    border-color: rgba(225, 29, 72, 0.2);
    color: #be123c;
}

.cd-alert-success {
    background: rgba(34, 165, 152, 0.08);
    border-color: rgba(34, 165, 152, 0.2);
    color: #0f766e;
}

/* Wider auth card for register */
.cd-auth-card-wide { max-width: 820px; padding: 2.75rem; }

.cd-form-section { margin-bottom: 1.75rem; }

.cd-form-section-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--cd-primary);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--cd-border);
}

.cd-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

@media (max-width: 540px) {
    .cd-field-row { grid-template-columns: 1fr; }
    .cd-auth-card { padding: 1.75rem; }
    .cd-auth-card-wide { padding: 1.75rem; }
}

/* Plan picker */
.cd-plan-picker {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 0.75rem;
}

.cd-plan-option {
    position: relative;
    padding: 1rem 0.75rem;
    border: 2px solid var(--cd-border);
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: #fff;
}

.cd-plan-option:hover { border-color: var(--cd-border-hover); }

.cd-plan-option.is-selected {
    border-color: var(--cd-teal);
    background: var(--cd-teal-bg);
    box-shadow: 0 0 0 3px rgba(34, 165, 152, 0.12);
}

.cd-plan-option input { position: absolute; opacity: 0; pointer-events: none; }

.cd-plan-option-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--cd-text);
    margin-bottom: 0.4rem;
}

.cd-plan-option-price {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--cd-text);
    letter-spacing: -0.02em;
}

.cd-plan-option-sub {
    font-size: 0.7rem;
    color: var(--cd-text-muted);
    margin-top: 0.15rem;
}

.cd-plan-option-meta {
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: var(--cd-text-muted);
    padding-top: 0.5rem;
    border-top: 1px solid var(--cd-border);
}

.cd-plan-option.is-selected .cd-plan-option-meta { border-color: rgba(34, 165, 152, 0.25); }

/* Honeypot — onzichtbaar voor mensen, zichtbaar voor bots */
.cd-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Turnstile widget */
.cf-turnstile { margin: 0.5rem 0; display: flex; justify-content: center; }

/* Success state */
.cd-auth-success { text-align: center; }
.cd-auth-success-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background: var(--cd-gradient-accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 8px 24px rgba(34, 165, 152, 0.3);
}

/* ---- Footer ---- */

.cd-footer {
    border-top: 1px solid var(--cd-border);
    padding: 3rem 0;
    color: var(--cd-text-muted);
    font-size: 0.85rem;
}

.cd-footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cd-footer a { color: var(--cd-text-muted); }
.cd-footer a:hover { color: var(--cd-text); }
.cd-footer-links { display: flex; gap: 2rem; }

/* ---- Mega menu ---- */
.cd-nav-dropdown { position: relative; }
.cd-mega-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border: 1px solid var(--cd-border);
    border-radius: 16px;
    box-shadow: 0 16px 48px rgba(0,0,0,0.12);
    padding: 1.25rem;
    min-width: 520px;
    z-index: 1000;
}
.cd-mega-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 8px;
}
.cd-nav-dropdown:hover .cd-mega-menu { display: block; }
.cd-mega-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2px;
}
.cd-mega-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 0.75rem;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--cd-text) !important;
    text-decoration: none !important;
    transition: background 0.15s, color 0.15s;
}
.cd-mega-item:hover {
    background: var(--cd-gradient-soft);
    color: var(--cd-primary) !important;
}
.cd-mega-item i {
    color: var(--cd-teal);
    font-size: 1rem;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}
.cd-mega-item:hover i { color: var(--cd-primary); }
.cd-mega-footer {
    border-top: 1px solid #eee;
    margin-top: 0.5rem;
    padding-top: 0.6rem;
    text-align: center;
}
.cd-mega-footer a {
    font-size: 0.8rem;
    color: var(--cd-teal) !important;
    text-decoration: none !important;
    font-weight: 600;
}
.cd-mega-footer a:hover { text-decoration: underline !important; }

/* ---- Responsive ---- */

.cd-features-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 768px) {
    .cd-features-grid { grid-template-columns: 1fr; }
    .cd-features-grid.cols-2 { grid-template-columns: 1fr; }
    .cd-pricing-grid { grid-template-columns: 1fr; }
    .cd-hero-stats { flex-direction: column; gap: 1.5rem; }
    .cd-hero-actions { flex-direction: column; }
    .cd-nav-links { display: none; }
    .cd-mega-menu { display: none !important; }
    .cd-footer .container { flex-direction: column; gap: 1rem; text-align: center; }
    .cd-footer-links { justify-content: center; }
    .cd-module { grid-template-columns: 1fr; }
    .cd-module.reverse { direction: ltr; }
    .cd-steps { grid-template-columns: repeat(2, 1fr); }
}

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