/*
 * Direct Partnership Platform - shared partner portal styling.
 *
 * Single source of truth for the partner portal's look & feel (navbar,
 * cards, buttons, forms, tables, auth pages). Every page under
 * httpdocs/partnerprogramma/ should link this file instead of redefining its own
 * <style> block, so a visual change only has to happen once.
 *
 * Brand colors match includes/website/css/main.css (--primary-color /
 * --secondary-color) so the portal feels like part of HelloLease, not a
 * bolted-on tool.
 */

:root {
    --dpp-primary: #1b1464;
    --dpp-primary-light: #2e2585;
    --dpp-accent: #ff7a00;
    --dpp-bg: #f4f5f9;
    --dpp-text-dark: #1e293b;
    --dpp-text-light: #64748b;
    --dpp-border: #e9eaf0;
}

* { font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; }

body {
    background-color: var(--dpp-bg);
    color: var(--dpp-text-dark);
    /* Sticky footer: even on short pages with little content, the footer
       stays pinned to the bottom of the viewport instead of floating
       right below the content. */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Default link color - matches the navbar background instead of
   Bootstrap's default blue, so plain <a> tags feel on-brand. More specific
   rules below (nav links, buttons, badges, etc.) already override this via
   higher-specificity class selectors, regardless of source order. */
a { color: var(--dpp-primary); }
a:hover { color: var(--dpp-primary-light); }

/* ---------- Navbar ---------- */
.dpp-navbar {
    background: var(--dpp-primary);
    padding: 0.75rem 1.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    box-shadow: 0 2px 8px rgba(27, 20, 100, 0.15);
    border-bottom: 3px solid var(--dpp-accent);
}
.dpp-navbar .dpp-brand { display: flex; align-items: center; gap: 0.85rem; }
.dpp-logo-link { display: flex; align-items: center; line-height: 0; }
.dpp-logo-img { height: 1.9rem; display: block; }
.dpp-brand-divider { width: 1px; height: 1.9rem; background: rgba(255,255,255,0.18); flex-shrink: 0; }
.dpp-brand-avatar {
    width: 2.1rem; height: 2.1rem; border-radius: 0.55rem;
    background: rgba(255,255,255,0.12); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.95rem; flex-shrink: 0;
}
.dpp-brand-text { line-height: 1.25; }
.dpp-brand-text .dpp-brand-name { color: #fff; font-weight: 700; font-size: 0.95rem; display: block; }
.dpp-brand-text .dpp-brand-tag {
    color: var(--dpp-accent); font-size: 0.68rem; font-weight: 700;
    letter-spacing: 0.06em; text-transform: uppercase;
}
.dpp-nav-links { display: flex; align-items: center; gap: 0.2rem; }
.dpp-nav-links a {
    color: rgba(255,255,255,0.7); text-decoration: none; font-size: 0.87rem; font-weight: 500;
    padding: 0.5rem 1rem; border-radius: 0.4rem; transition: all 0.15s ease;
}
.dpp-nav-links a:hover { color: #fff; background: rgba(255,255,255,0.08); }
.dpp-nav-links a.active { color: #fff; background: rgba(255,255,255,0.14); }
.dpp-nav-links a.dpp-logout {
    margin-left: 0.9rem; padding-left: 1rem; position: relative;
    display: inline-flex; align-items: center; gap: 0.4rem;
}
.dpp-nav-links a.dpp-logout::before {
    content: ''; position: absolute; left: -0.45rem; top: 50%; transform: translateY(-50%);
    width: 1px; height: 1.4rem; background: rgba(255,255,255,0.18);
}
.dpp-nav-links a.dpp-logout svg { flex-shrink: 0; }

/* ---------- Layout ---------- */
.dpp-container { max-width: 1180px; margin: 0 auto; padding: 1.75rem 1.5rem 3rem; width: 100%; flex: 1 0 auto; }

.dpp-page-header {
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap;
    gap: 1rem; margin-bottom: 1.5rem;
}
.dpp-page-header .dpp-eyebrow {
    color: var(--dpp-text-light); font-size: 0.72rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.15rem;
}
.dpp-page-header h1 { font-size: 1.5rem; font-weight: 700; margin: 0; color: var(--dpp-primary); }
.dpp-current-rate { font-size: 0.83rem; color: var(--dpp-text-light); margin-top: 0.4rem; }
.dpp-current-rate-value { font-weight: 500; color: var(--dpp-text-dark); }
.dpp-current-rate-value.dpp-current-rate-none { font-weight: 500; color: var(--dpp-text-light); }

/* ---------- Cards ---------- */
.dpp-card { background: #fff; border-radius: 0.75rem; box-shadow: 0 1px 3px rgba(0,0,0,0.05); margin-bottom: 1.75rem; overflow: hidden; }
.dpp-card-header { padding: 1rem 1.25rem; font-weight: 600; color: var(--dpp-primary); border-bottom: 1px solid var(--dpp-border); }
.dpp-card-body { padding: 1.25rem; }

/* Programme terms acceptance page - a large, clearly bounded box for the
   actual legal text, scrollable if it's long, with the checkbox below it. */
.dpp-terms-box {
    background: #fafafd; border: 1px solid var(--dpp-border); border-radius: 0.6rem;
    padding: 1.25rem 1.5rem; max-height: 420px; overflow-y: auto;
    font-size: 0.92rem; line-height: 1.6; color: var(--dpp-text-dark);
}

/* Persistent top banner (billing details missing) - shown on every portal
   page via partner_header.php until resolved. */
.dpp-top-banner {
    background: #fff7ed; border-bottom: 1px solid #fdba74; color: #9a3412;
    padding: 0.7rem 1.5rem; font-size: 0.88rem; display: flex;
    align-items: center; justify-content: center; gap: 0.75rem; text-align: center; flex-wrap: wrap;
}
.dpp-top-banner a { color: #9a3412; font-weight: 600; text-decoration: underline; white-space: nowrap; }

/* Bootstrap .card override, for pages still using the plain Bootstrap card markup */
.card { border: none; border-radius: 0.75rem; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
.card-header { font-weight: 600; color: var(--dpp-primary); background: #fff; border-bottom: 1px solid var(--dpp-border); }

/* ---------- Buttons ---------- */
.btn { font-weight: 500; border-radius: 0.5rem; font-size: 0.88rem; padding: 0.5rem 1.1rem; }
.btn-sm { font-size: 0.8rem; padding: 0.35rem 0.8rem; }
.btn-primary {
    background-color: var(--dpp-primary); border-color: var(--dpp-primary);
}
.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
    background-color: var(--dpp-primary-light) !important; border-color: var(--dpp-primary-light) !important;
}
.btn-primary:disabled, .btn-primary.disabled {
    /* Bootstrap's own disabled-button rule (.btn:disabled) paints its
       background/border from the --bs-btn-disabled-bg/-border-color
       variables (defaulting to the SAME blue as the enabled state, just
       dimmed via opacity) rather than from the plain background-color
       property set above - overriding only that plain property left the
       variable-driven disabled paint job untouched, so the button still
       looked like a normal (Bootstrap) blue button. Override both the
       variables AND the plain properties so it's gray regardless of which
       one Bootstrap's own rule ends up reading from. */
    --bs-btn-disabled-bg: var(--dpp-border) !important;
    --bs-btn-disabled-border-color: var(--dpp-border) !important;
    --bs-btn-disabled-color: var(--dpp-text-light) !important;
    --bs-btn-disabled-opacity: 1 !important;
    background-color: var(--dpp-border) !important; border-color: var(--dpp-border) !important;
    color: var(--dpp-text-light) !important; opacity: 1 !important; cursor: not-allowed;
}
.btn-outline-secondary { color: var(--dpp-text-light); border-color: var(--dpp-border); }
.btn-outline-secondary:hover { background-color: var(--dpp-primary); border-color: var(--dpp-primary); color: #fff; }
.btn-outline-primary { color: var(--dpp-primary); border-color: var(--dpp-primary); }
.btn-outline-primary:hover, .btn-outline-primary:focus, .btn-outline-primary:active {
    background-color: var(--dpp-primary) !important; border-color: var(--dpp-primary) !important; color: #fff !important;
}
.btn-outline-danger:hover { background-color: #dc2626; border-color: #dc2626; }

/* ---------- Forms ---------- */
.form-label {
    font-size: 0.83rem; font-weight: 600; color: var(--dpp-text-dark); margin-bottom: 0.35rem;
}
.form-control, .form-select {
    border: 1px solid var(--dpp-border); border-radius: 0.5rem; padding: 0.55rem 0.85rem;
    font-size: 0.88rem; color: var(--dpp-text-dark);
}
.form-control::placeholder { font-size: 0.88rem; color: #9ca3af; }
.form-control:focus, .form-select:focus {
    border-color: var(--dpp-primary-light); box-shadow: 0 0 0 0.2rem rgba(27, 20, 100, 0.1);
}
.form-text { font-size: 0.78rem; }
.dpp-month-select {
    max-width: 260px; min-width: 200px; border: 1px solid var(--dpp-border); box-shadow: none;
    font-weight: 500; color: var(--dpp-text-dark); background-color: #fff;
}

/* ---------- Alerts ---------- */
.alert { border: none; border-radius: 0.6rem; font-size: 0.9rem; }
.alert-danger { background: rgba(220, 38, 38, 0.08); color: #b91c1c; }
.alert-success { background: rgba(22, 163, 74, 0.08); color: #15803d; }
/* Matches .dpp-top-banner (the "factuurgegevens ontbreken" bar) exactly,
   so any warning alert feels consistent with that banner instead of using
   a different orange tint. */
.alert-warning { background: #fff7ed; color: #9a3412; border: 1px solid #fdba74; }

/* ---------- Info / policy tiles ---------- */
.dpp-policy-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.9rem; margin-bottom: 1.75rem; }
.dpp-policy-tile {
    background: #fff; border-radius: 0.75rem; padding: 1rem 1.1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05); display: flex; gap: 0.75rem; align-items: flex-start;
}
.dpp-policy-icon {
    width: 2.2rem; height: 2.2rem; border-radius: 0.6rem; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center; font-size: 1.05rem;
    background: rgba(27, 20, 100, 0.07); color: var(--dpp-primary);
}
.dpp-policy-tile.dpp-policy-accent .dpp-policy-icon { background: rgba(255, 122, 0, 0.1); color: var(--dpp-accent); }
.dpp-policy-title { font-weight: 600; font-size: 0.85rem; color: var(--dpp-text-dark); margin-bottom: 0.15rem; }
.dpp-policy-text { font-size: 0.79rem; color: var(--dpp-text-light); line-height: 1.45; margin: 0; }

/* ---------- KPI cards ---------- */
.dpp-kpi-card {
    background: #fff; border-radius: 0.75rem; padding: 1.35rem 1.25rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05); height: 100%;
}
.dpp-kpi-label { color: var(--dpp-text-light); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; font-weight: 600; }
.dpp-kpi-value { font-size: 1.75rem; font-weight: 700; color: var(--dpp-primary); margin: 0.2rem 0 0.4rem; }
.dpp-delta { font-size: 0.76rem; font-weight: 600; }
.dpp-delta-up { color: #16a34a; }
.dpp-delta-down { color: #dc2626; }
.dpp-delta-neutral { color: var(--dpp-text-light); font-weight: 500; }

/* ---------- Tables ---------- */
.dpp-badge-pill {
    display: inline-block; font-size: 0.72rem; font-weight: 600; padding: 0.28rem 0.6rem;
    border-radius: 999px; line-height: 1;
}
.dpp-badge-yes { background: rgba(22, 163, 74, 0.12); color: #16803c; }
.dpp-badge-no { background: rgba(148, 163, 184, 0.18); color: #64748b; }
.dpp-badge-pending { background: rgba(100, 116, 139, 0.14); color: #475569; }

/* ---------- Feed page ---------- */
.dpp-feed-url-row { margin-bottom: 1.1rem; }
.dpp-feed-url-label { font-size: 0.78rem; font-weight: 600; color: var(--dpp-text-light); margin-bottom: 0.25rem; }
.dpp-card-body code {
    font-size: 0.82rem; color: var(--dpp-primary); background: rgba(27, 20, 100, 0.06);
    padding: 0.1rem 0.35rem; border-radius: 0.3rem;
}
/* Same specificity as ".dpp-card-body code" above (class+element), but
   declared AFTER it, so source order makes this win - this is a <code>
   element (see feed.php, both the active feed URL and the pending
   proposal URL), so the generic rule above would otherwise override this
   padding/background. */
code.dpp-feed-url-value, span.dpp-feed-url-value {
    display: block; background: #fafafd; border: 1px solid var(--dpp-border); border-radius: 0.5rem;
    padding: 0.9rem 1.1rem; font-size: 0.83rem; line-height: 1.5; color: var(--dpp-text-dark); word-break: break-all;
}
.dpp-table code {
    font-size: 0.78rem; color: var(--dpp-primary); background: rgba(27, 20, 100, 0.06);
    padding: 0.1rem 0.35rem; border-radius: 0.3rem;
}
.dpp-proposal-panel {
    background: #fafafd; border: 1px solid var(--dpp-border); border-radius: 0.6rem;
    padding: 0.85rem 1rem; margin-bottom: 1.1rem;
}
.dpp-proposal-pending { background: #fafafd; border-color: var(--dpp-border); }
.dpp-table { margin: 0; }
.dpp-table thead th {
    font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.04em; font-weight: 700;
    color: var(--dpp-text-light); border-top: none; border-bottom: 1px solid var(--dpp-border);
    background: #fafafd; padding: 0.7rem 1rem; white-space: nowrap;
}
.dpp-table td { padding: 0.7rem 1rem; border-bottom: 1px solid var(--dpp-border); vertical-align: middle; font-size: 0.86rem; }
.dpp-table tbody tr:last-child td { border-bottom: none; }
.dpp-table tbody tr:hover { background: #fafafd; }
.dpp-vehicle-title { font-weight: 500; color: var(--dpp-text-dark); display: block; }
.dpp-click-id { font-size: 0.72rem; color: #b3b6c4; font-family: ui-monospace, monospace; }
.dpp-status-text { font-size: 0.8rem; color: var(--dpp-text-light); }
.dpp-status-text.dpp-status-ok { color: #16803c; font-weight: 500; }
.dpp-status-info-icon { display: inline-flex; align-items: center; margin-left: 0.25rem; color: var(--dpp-text-light); cursor: help; vertical-align: middle; }

/* Expandable "laatste 100 kliks" rows - click anywhere on the row to reveal
   price/lease-duration/km-per-year detail, without needing a separate page. */
.dpp-click-row { cursor: pointer; }
.dpp-click-chevron {
    display: inline-block; font-style: normal; font-size: 1.1rem; color: #b3b6c4;
    transition: transform 0.15s ease;
}
.dpp-click-row[aria-expanded="true"] .dpp-click-chevron { transform: rotate(90deg); color: var(--dpp-primary); }
.dpp-click-detail-row td { padding: 0 !important; border-bottom: none !important; }
.dpp-click-detail-row:has(.show) td { border-bottom: 1px solid var(--dpp-border) !important; }
.dpp-click-detail-body {
    display: flex; flex-wrap: wrap; gap: 1.5rem;
    padding: 0.85rem 1.5rem 0.95rem; background: #fafafd;
    border-top: 1px dashed var(--dpp-border);
}
.dpp-click-detail-body > div { display: flex; flex-direction: column; gap: 0.15rem; }
.dpp-click-detail-label { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.03em; color: var(--dpp-text-light); }
.dpp-click-detail-body span:not(.dpp-click-detail-label) { font-size: 0.86rem; font-weight: 500; color: var(--dpp-text-dark); }
.dpp-click-detail-link-wrap { justify-content: center; }
.dpp-click-detail-link {
    display: inline-flex; align-items: center; gap: 0.35rem;
    font-size: 0.8rem; font-weight: 600; color: var(--dpp-primary);
    text-decoration: none; border: 1px solid var(--dpp-border); border-radius: 0.4rem;
    padding: 0.35rem 0.7rem; background: #fff; transition: border-color 0.15s ease, background 0.15s ease;
}
.dpp-click-detail-link:hover { border-color: var(--dpp-primary); background: rgba(27, 20, 100, 0.04); }

/* ---------- Auth pages (login, forgot-password, set-password) ---------- */
.dpp-auth-body {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(160deg, var(--dpp-primary) 0%, var(--dpp-primary) 45%, var(--dpp-bg) 45%);
    padding: 1.5rem;
}
.dpp-auth-card {
    width: 100%; max-width: 400px; padding: 2.25rem 2rem; background: #fff;
    border-radius: 0.9rem; box-shadow: 0 1.5rem 3rem rgba(27, 20, 100, 0.18);
}
.dpp-auth-back {
    position: fixed; top: 1.5rem; left: 1.5rem; z-index: 10;
    display: inline-flex; align-items: center; gap: 0.4rem;
    color: rgba(255,255,255,0.85); text-decoration: none; font-size: 0.85rem; font-weight: 500;
    transition: color 0.15s ease;
}
.dpp-auth-back:hover { color: #fff; }
.dpp-auth-logo {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.5rem;
    margin-bottom: 1.5rem;
}
.dpp-auth-logo-chip {
    background: var(--dpp-primary); border-radius: 0.6rem; padding: 0.6rem 1.1rem;
    display: flex; align-items: center; justify-content: center;
}
.dpp-auth-logo-chip img { height: 1.7rem; display: block; }
.dpp-auth-logo .dpp-auth-logo-tag {
    font-size: 0.7rem; color: var(--dpp-text-light); font-weight: 700;
    letter-spacing: 0.06em; text-transform: uppercase;
}
.dpp-auth-title { text-align: center; font-size: 1.15rem; font-weight: 700; color: var(--dpp-text-dark); margin-bottom: 1.5rem; }
.dpp-auth-card label { font-size: 0.85rem; font-weight: 500; color: var(--dpp-text-dark); }
.dpp-auth-footer { text-align: center; margin-top: 1.25rem; font-size: 0.85rem; }
.dpp-auth-footer a { color: var(--dpp-primary); text-decoration: none; font-weight: 500; }
.dpp-auth-footer a:hover { text-decoration: underline; }
.dpp-auth-footer-secondary { margin-top: 0.75rem; color: var(--dpp-text-light); font-size: 0.8rem; }

/* Wider variant of .dpp-auth-card for longer forms (e.g. the partner
   signup form) that don't fit comfortably in the narrow 400px login card. */
.dpp-auth-card-wide { max-width: 640px; }
.dpp-auth-card-intro { color: var(--dpp-text-light); font-size: 0.9rem; text-align: center; margin-bottom: 1.5rem; }

/* Honeypot field for the partner signup form: pulled off-screen (not
   display:none, so simple bots that only check computed visibility of the
   input itself still "see" and fill it) and excluded from the tab order /
   accessibility tree, so a real visitor never notices or interacts with it. */
.dpp-hp-field {
    position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden;
}

.dpp-checkbox-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.dpp-checkbox-pill {
    display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.55rem 1rem;
    border: 1px solid var(--dpp-border); border-radius: 2rem; cursor: pointer;
    font-size: 0.85rem; color: var(--dpp-text-dark); transition: border-color 0.15s ease, background 0.15s ease;
}
.dpp-checkbox-pill:hover { border-color: var(--dpp-primary); }
.dpp-checkbox-pill input { margin: 0; }
.dpp-checkbox-pill input:checked ~ span { color: var(--dpp-primary); font-weight: 600; }

/* ---------- Invoice template ---------- */
.dpp-invoice-toolbar {
    max-width: 860px; margin: 0 auto 1rem; padding: 0 1.5rem;
    display: flex; justify-content: flex-end; gap: 0.5rem;
}
.dpp-invoice-sheet {
    max-width: 860px; margin: 0 auto 3rem; background: #fff; border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08); padding: 3rem 3.25rem;
}
.dpp-invoice-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 2.5rem; }
.dpp-invoice-logo {
    background: var(--dpp-primary); border-radius: 0.6rem; padding: 0.7rem 1.15rem;
    display: inline-flex; align-items: center; justify-content: center;
    /* Ensure the blue background still prints/exports to PDF, not just screen. */
    -webkit-print-color-adjust: exact; print-color-adjust: exact;
}
.dpp-invoice-logo img { height: 1.85rem; display: block; }
.dpp-invoice-meta { text-align: right; }
.dpp-invoice-meta h1 { font-size: 1.4rem; font-weight: 700; color: var(--dpp-primary); margin: 0 0 0.35rem; }
.dpp-invoice-meta div { font-size: 0.85rem; color: var(--dpp-text-light); }
.dpp-invoice-parties { display: flex; justify-content: space-between; gap: 2rem; margin-bottom: 2.25rem; }
.dpp-invoice-party h6 {
    font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 700;
    color: var(--dpp-text-light); margin-bottom: 0.5rem;
}
.dpp-invoice-party p { font-size: 0.88rem; color: var(--dpp-text-dark); line-height: 1.55; margin: 0; }
.dpp-invoice-table { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; }
.dpp-invoice-table thead th {
    font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.04em; font-weight: 700;
    color: var(--dpp-text-light); border-bottom: 2px solid var(--dpp-border); padding: 0.6rem 0.25rem; text-align: left;
}
.dpp-invoice-table td { padding: 0.65rem 0.25rem; border-bottom: 1px solid var(--dpp-border); font-size: 0.88rem; }
.dpp-invoice-table .text-end { text-align: right; }
.dpp-invoice-totals { margin-left: auto; width: 280px; }
.dpp-invoice-totals div { display: flex; justify-content: space-between; padding: 0.35rem 0.25rem; font-size: 0.88rem; }
.dpp-invoice-totals .dpp-invoice-total-final {
    font-weight: 700; font-size: 1.05rem; color: var(--dpp-primary); border-top: 2px solid var(--dpp-border); margin-top: 0.25rem; padding-top: 0.6rem;
}
.dpp-invoice-payment-note { margin-top: 1.5rem; font-size: 0.83rem; color: var(--dpp-text-dark); }
.dpp-invoice-footer { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--dpp-border); font-size: 0.76rem; color: var(--dpp-text-light); }

@media print {
    .dpp-invoice-toolbar, .dpp-navbar { display: none !important; }
    body { background: #fff !important; }
    .dpp-invoice-sheet { box-shadow: none; padding: 0; max-width: 100%; }
}

/* ---------- Landing / presentation page (partnerprogramma/index.php) ---------- */
.dpp-landing-body { background: #fff; }

.dpp-landing-nav {
    position: absolute; top: 0; left: 0; right: 0; z-index: 10;
    display: flex; justify-content: space-between; align-items: center;
    padding: 1.5rem 2rem; max-width: 1180px; margin: 0 auto;
}
.dpp-landing-nav img { height: 2.75rem; display: block; }
.dpp-landing-nav .btn { border-radius: 999px; padding: 0.5rem 1.35rem; font-size: 0.87rem; }
.dpp-landing-brand { display: inline-flex; align-items: center; gap: 0.65rem; text-decoration: none; }
.dpp-landing-brand-tag {
    font-size: 1.4rem; font-weight: 700; color: #fff; letter-spacing: -0.01em;
    padding-left: 0.65rem; border-left: 2px solid rgba(255,255,255,0.25);
}

.dpp-landing-hero {
    position: relative; overflow: hidden;
    background: #120e46;
    padding: 12.5rem 2rem 9.5rem; text-align: center; color: #fff;
}
/* Moving gradient technique: the pseudo-elements are sized much larger than the
   hero itself and we pan `background-position` across them. This keeps the
   colourful blobs reliably on-screen while still producing a smooth, visible drift. */
.dpp-landing-hero::before,
.dpp-landing-hero::after { content: ''; position: absolute; inset: 0; z-index: 0; }
.dpp-landing-hero::before {
    background-image:
        radial-gradient(circle at 30% 30%, rgba(255, 122, 0, 0.5) 0%, transparent 18%),
        radial-gradient(circle at 75% 70%, var(--dpp-primary-light) 0%, transparent 40%),
        radial-gradient(circle at 20% 80%, rgba(46, 37, 133, 0.9) 0%, transparent 45%),
        radial-gradient(circle at 85% 20%, rgba(27, 20, 100, 0.9) 0%, transparent 45%);
    background-size: 220% 220%;
    background-repeat: no-repeat;
    background-position: 0% 0%;
    animation: dppHeroPanA 9s ease-in-out infinite;
}
.dpp-landing-hero::after {
    z-index: 1;
    background-image:
        radial-gradient(circle at 65% 25%, rgba(255, 122, 0, 0.3) 0%, transparent 16%),
        radial-gradient(circle at 25% 75%, var(--dpp-primary-light) 0%, transparent 42%);
    background-size: 200% 200%;
    background-repeat: no-repeat;
    background-position: 100% 100%;
    animation: dppHeroPanB 12s ease-in-out infinite;
}
.dpp-landing-hero-dots {
    content: ''; position: absolute; inset: 0; z-index: 2;
    background-image: radial-gradient(rgba(255, 122, 0, 0.35) 1.5px, transparent 1.5px);
    background-size: 28px 28px; opacity: 0.18; pointer-events: none;
}
.dpp-landing-hero-inner { position: relative; z-index: 3; max-width: 950px; margin: 0 auto; }

@keyframes dppHeroPanA {
    0%   { background-position: 0% 0%; }
    50%  { background-position: 100% 100%; }
    100% { background-position: 0% 0%; }
}
@keyframes dppHeroPanB {
    0%   { background-position: 100% 100%; }
    50%  { background-position: 0% 20%; }
    100% { background-position: 100% 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .dpp-landing-hero::before,
    .dpp-landing-hero::after { animation: none; }
}
.dpp-landing-hero h1 { font-size: 2.6rem; font-weight: 700; line-height: 1.2; margin-bottom: 1.2rem; }
.dpp-landing-hero h1 span { color: var(--dpp-accent); }
.dpp-landing-hero p.lead { font-size: 1.1rem; color: rgba(255,255,255,0.78); margin-bottom: 2.4rem; line-height: 1.6; }
.dpp-landing-hero-actions { display: flex; gap: 0.85rem; justify-content: center; flex-wrap: wrap; }
.dpp-landing-hero-actions .btn, .dpp-landing-cta-actions .btn { border-radius: 999px; padding: 0.75rem 1.75rem; font-weight: 600; font-size: 0.95rem; }
.dpp-landing-hero-actions .btn-accent, .dpp-landing-cta-actions .btn-accent {
    background: var(--dpp-accent); border-color: var(--dpp-accent); color: #fff;
    position: relative; overflow: hidden; z-index: 0;
    animation: dppBtnPulse 2.6s ease-in-out infinite;
}
.dpp-landing-hero-actions .btn-accent:hover, .dpp-landing-cta-actions .btn-accent:hover { background: #e66d00; border-color: #e66d00; color: #fff; }
.dpp-landing-hero-actions .btn-outline-light:hover, .dpp-landing-cta-actions .btn-outline-light:hover { color: var(--dpp-primary); }
/* Subtle "wow" treatment on the primary accent CTAs: a soft pulsing glow
   plus a light sweeping shine, both looping continuously and gently (never
   distracting), so the button draws the eye without shouting for attention. */
.dpp-landing-hero-actions .btn-accent::before, .dpp-landing-cta-actions .btn-accent::before {
    content: ''; position: absolute; top: 0; left: -75%; width: 45%; height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.55), transparent);
    transform: skewX(-20deg); animation: dppBtnShine 3.4s ease-in-out infinite;
}
@keyframes dppBtnPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 122, 0, 0.5); }
    50% { box-shadow: 0 0 0 11px rgba(255, 122, 0, 0); }
}
@keyframes dppBtnShine {
    0% { left: -75%; }
    40% { left: 130%; }
    100% { left: 130%; }
}
@media (prefers-reduced-motion: reduce) {
    .dpp-landing-hero-actions .btn-accent, .dpp-landing-cta-actions .btn-accent,
    .dpp-landing-hero-actions .btn-accent::before, .dpp-landing-cta-actions .btn-accent::before { animation: none; }
}

/* Trust badges under the hero CTAs - quick, scannable reassurance signals. */
.dpp-landing-hero-trust {
    display: flex; gap: 1.75rem; justify-content: center; flex-wrap: wrap;
    margin-top: 2.25rem; font-size: 0.9rem; color: rgba(255,255,255,0.65);
}
.dpp-landing-hero-trust span { display: inline-flex; align-items: center; gap: 0.4rem; }
.dpp-landing-hero-trust svg { color: var(--dpp-accent); flex-shrink: 0; }

.dpp-landing-logos {
    background: linear-gradient(180deg, #f7f8fc 0%, #fff 100%);
    border-bottom: 1px solid var(--dpp-border); padding: 1.75rem 2rem; text-align: center;
}
.dpp-landing-logos-label {
    font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
    color: var(--dpp-accent); margin-bottom: 1.1rem;
}
/* Single row that never wraps - scrolls horizontally on narrow viewports
   instead of breaking into multiple lines. Kept deliberately simple (no
   carousel/JS): each logo sits in its own soft "chip", shown in full color,
   with a subtle lift on hover, instead of plain images separated by
   divider lines. */
.dpp-landing-logos-row {
    display: flex; align-items: center; justify-content: center; flex-wrap: nowrap;
    gap: 1rem; max-width: 100%; margin: 0 auto; overflow-x: auto;
    padding: 0.25rem 0.5rem;
    scrollbar-width: none; -ms-overflow-style: none; /* hide scrollbar, keep swipe-to-scroll */
}
.dpp-landing-logos-row::-webkit-scrollbar { display: none; }
.dpp-landing-logos-row img {
    height: 6rem; width: auto; max-width: 210px; object-fit: contain; flex: 0 0 auto;
    padding: 1.1rem 1.9rem; margin: 0;
    background: #fff; border: 1px solid var(--dpp-border); border-radius: 0.85rem;
    transition: transform 0.2s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.dpp-landing-logos-row img:hover {
    transform: translateY(-3px);
    box-shadow: 0 0.6rem 1.4rem rgba(27, 20, 100, 0.1);
    border-color: rgba(27, 20, 100, 0.14);
}

.dpp-landing-section { max-width: 1100px; margin: 0 auto; padding: 5rem 2rem; }
.dpp-landing-section.dpp-landing-section-tight { padding-top: 0; }
.dpp-landing-eyebrow {
    color: var(--dpp-accent); font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.08em; text-align: center; margin-bottom: 0.6rem;
}
.dpp-landing-title { font-size: 1.85rem; font-weight: 700; color: var(--dpp-primary); text-align: center; margin-bottom: 0.75rem; }
.dpp-landing-subtitle {
    color: var(--dpp-text-light); text-align: center; max-width: 620px; margin: 0 auto 3rem;
    font-size: 1rem; line-height: 1.6;
}

.dpp-landing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.dpp-landing-card {
    background: #fff; border: 1px solid var(--dpp-border); border-radius: 1rem; padding: 1.75rem;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.dpp-landing-card:hover { transform: translateY(-3px); box-shadow: 0 0.75rem 1.75rem rgba(27, 20, 100, 0.08); }
.dpp-landing-card-icon {
    width: 2.75rem; height: 2.75rem; border-radius: 0.7rem; background: rgba(255, 122, 0, 0.12);
    color: var(--dpp-accent); display: flex; align-items: center; justify-content: center; margin-bottom: 1rem;
}
.dpp-landing-card h3 { font-size: 1.02rem; font-weight: 700; color: var(--dpp-text-dark); margin-bottom: 0.5rem; }
.dpp-landing-card p { font-size: 0.88rem; color: var(--dpp-text-light); line-height: 1.55; margin: 0; }
.dpp-landing-card p code {
    font-size: 0.82rem; color: var(--dpp-primary); background: rgba(27, 20, 100, 0.06);
    padding: 0.1rem 0.35rem; border-radius: 0.3rem;
}

.dpp-landing-steps-wrap { background: var(--dpp-bg); }
.dpp-landing-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; counter-reset: dpp-step; }
.dpp-landing-step {
    text-align: center; position: relative; background: #fff; border: 1px solid var(--dpp-border);
    border-radius: 1.1rem; padding: 2.25rem 1.5rem 1.75rem; box-shadow: 0 8px 24px rgba(27, 20, 100, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.dpp-landing-step:hover { transform: translateY(-4px); box-shadow: 0 14px 32px rgba(27, 20, 100, 0.1); }
/* Connecting arrow between step cards on desktop - visually ties the flow together.
   Centered on the tile's own vertical midpoint (not the number circle), so it stays
   aligned even if card heights vary slightly. */
.dpp-landing-step:not(:last-child)::after {
    content: '';
    position: absolute; top: 50%; left: calc(100% + 0.15rem); width: 1.45rem; height: 1.45rem;
    transform: translateY(-50%);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c7cbe0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: center; z-index: 1;
}
.dpp-landing-step-num {
    width: 3.25rem; height: 3.25rem; border-radius: 50%;
    background: linear-gradient(135deg, var(--dpp-primary) 0%, var(--dpp-primary-light) 100%);
    color: #fff; display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 1.2rem; margin: 0 auto 1.1rem;
    box-shadow: 0 0 0 6px rgba(27, 20, 100, 0.08), 0 6px 16px rgba(27, 20, 100, 0.18);
}
.dpp-landing-step h3 { font-size: 1.02rem; font-weight: 700; color: var(--dpp-text-dark); margin-bottom: 0.5rem; }
.dpp-landing-step p { font-size: 0.86rem; color: var(--dpp-text-light); line-height: 1.55; margin: 0; }
.dpp-landing-cta {
    background: linear-gradient(135deg, var(--dpp-primary) 0%, #120e46 100%);
    color: #fff; padding: 4.5rem 2rem; text-align: center;
}
.dpp-landing-cta h2 { font-size: 1.7rem; font-weight: 700; margin-bottom: 0.75rem; }
.dpp-landing-cta p { color: rgba(255,255,255,0.75); max-width: 560px; margin: 0 auto 2rem; line-height: 1.6; }
.dpp-landing-cta-actions { display: flex; gap: 0.85rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2.25rem; }
.dpp-landing-contact-row {
    display: flex; gap: 2rem; justify-content: center; flex-wrap: wrap;
    font-size: 0.9rem; border-top: 1px solid rgba(255,255,255,0.15); padding-top: 1.75rem;
}
.dpp-landing-contact-row a { color: #fff; text-decoration: none; font-weight: 500; }
.dpp-landing-contact-row a:hover { color: var(--dpp-accent); }
.dpp-landing-contact-row .dpp-landing-contact-label { color: rgba(255,255,255,0.5); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; display: block; margin-bottom: 0.15rem; }

.dpp-landing-footer {
    text-align: center; padding: 1.75rem 1.5rem; font-size: 0.78rem; color: var(--dpp-text-light);
    background: #fff; border-top: 1px solid var(--dpp-border);
}
.dpp-landing-footer a { color: var(--dpp-text-light); text-decoration: underline; }

/* ---------- FAQ accordion ---------- */
.dpp-faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 0.85rem; }
.dpp-faq-item {
    background: #fff; border: 1px solid var(--dpp-border); border-radius: 0.85rem; overflow: hidden;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.dpp-faq-item:has(.show) { border-color: var(--dpp-primary-light); box-shadow: 0 0.5rem 1.5rem rgba(27, 20, 100, 0.08); }
.dpp-faq-question {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: 1.1rem 1.4rem; cursor: pointer; font-weight: 600; color: var(--dpp-text-dark); font-size: 0.97rem;
}
.dpp-faq-chevron { flex-shrink: 0; color: var(--dpp-accent); transition: transform 0.2s ease; }
.dpp-faq-question[aria-expanded="true"] .dpp-faq-chevron { transform: rotate(180deg); }
.dpp-faq-answer { padding: 0 1.4rem 1.25rem; color: var(--dpp-text-light); font-size: 0.9rem; line-height: 1.6; }

/* ---------- Scroll-reveal ---------- */
.dpp-landing-card, .dpp-landing-step, .dpp-faq-item {
    opacity: 0; transform: translateY(18px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.dpp-landing-card.dpp-reveal-visible, .dpp-landing-step.dpp-reveal-visible, .dpp-faq-item.dpp-reveal-visible {
    opacity: 1; transform: none;
}
/* Feature grid is 4 columns wide (2 rows of 4): stagger left-to-right and
   RESTART the delay on every row (nth-child(4n+...) instead of a plain
   incrementing count), since each row scrolls into view - and therefore
   starts its own reveal - independently. Using a single incrementing
   sequence here (as below for the steps/FAQ list) caused two visible bugs
   once this grid became 2 rows: row 2 inherited row 1's tail-end delays
   (0.2s-0.3s) instead of starting fresh at 0s, and the 8th card had no
   matching rule at all so it popped in immediately instead of last. */
.dpp-landing-grid > *:nth-child(4n+2) { transition-delay: 0.05s; }
.dpp-landing-grid > *:nth-child(4n+3) { transition-delay: 0.1s; }
.dpp-landing-grid > *:nth-child(4n+4) { transition-delay: 0.15s; }

/* Steps / FAQ list: single row/column, so a plain incrementing cascade is fine. */
.dpp-landing-steps > *:nth-child(2), .dpp-faq-list > *:nth-child(2) { transition-delay: 0.05s; }
.dpp-landing-steps > *:nth-child(3), .dpp-faq-list > *:nth-child(3) { transition-delay: 0.1s; }
.dpp-faq-list > *:nth-child(4) { transition-delay: 0.15s; }
.dpp-faq-list > *:nth-child(5) { transition-delay: 0.2s; }
.dpp-faq-list > *:nth-child(6) { transition-delay: 0.25s; }
.dpp-faq-list > *:nth-child(7) { transition-delay: 0.3s; }
@media (prefers-reduced-motion: reduce) {
    .dpp-landing-card, .dpp-landing-step, .dpp-faq-item { opacity: 1; transform: none; transition: none; }
}

@media (max-width: 900px) {
    .dpp-landing-grid, .dpp-landing-steps { grid-template-columns: 1fr; }
    .dpp-landing-step:not(:last-child)::after { display: none; }
    /* Fade the left/right edges to hint the row scrolls, since the
       scrollbar itself is hidden for a cleaner look. */
    .dpp-landing-logos-row {
        justify-content: flex-start;
        mask-image: linear-gradient(to right, transparent 0, #000 20px, #000 calc(100% - 20px), transparent 100%);
        -webkit-mask-image: linear-gradient(to right, transparent 0, #000 20px, #000 calc(100% - 20px), transparent 100%);
    }
    .dpp-landing-logos-row img { height: 3.8rem; max-width: 150px; padding: 0.9rem 1.4rem; }
    .dpp-landing-hero h1 { font-size: 1.95rem; }
    .dpp-landing-hero p.lead { font-size: 1rem; }
    .dpp-landing-hero { padding-top: 9rem; padding-bottom: 6.5rem; }
}

@media (max-width: 650px) {
    /* "Partnerprogramma" next to the logo doesn't fit alongside the login
       button on narrow phone screens - hide it and keep just the logo. */
    .dpp-landing-brand-tag { display: none; }
}
