/* Vendenius public website: design tokens, base styles, shared components and page shell. */
:root {
    --surface-000: #ffffff;
    --surface-100: #f5f7fa;
    --surface-200: #ebeff5;
    --surface-inverse: #172b4d;
    --line-100: #dfe3ea;
    --line-200: #7889a2;
    --ink: #172b4d;
    --ink-muted: #475a78;
    --ink-subtle: #5f6f88;
    --ink-inverse: #ffffff;
    --brand: var(--first-color, #37577d);
    --brand-hover: #2b4565;
    --brand-tint: #e3eaf3;
    --on-brand: #ffffff;
    --mist: var(--first-color-light, #9db6d3);
    --accent: #c8215f;
    --accent-text: #b81e57;
    --accent-tint: #fce8f0;
    --on-accent: #ffffff;
    --success: #1a7348;
    --success-tint: #e5f3ec;
    --warning: #9a5300;
    --warning-tint: #fff3e0;
    --danger: #b42318;
    --danger-tint: #fdecea;
    --focus: #2f6fdb;
    --shadow-1: 0 1px 2px rgba(23, 43, 77, 0.06), 0 1px 1px rgba(23, 43, 77, 0.04);
    --shadow-2: 0 4px 20px rgba(23, 43, 77, 0.08);
    --shadow-3: 0 8px 24px rgba(23, 43, 77, 0.16);
    --font-sans: "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
    --font-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
    --text-display: 700 56px/60px var(--font-sans);
    --text-h1: 700 36px/44px var(--font-sans);
    --text-h2: 650 28px/36px var(--font-sans);
    --text-h3: 600 20px/28px var(--font-sans);
    --text-lead: 400 18px/28px var(--font-sans);
    --text-body: 400 15px/22px var(--font-sans);
    --text-body-sm: 400 13px/20px var(--font-sans);
    --text-label: 600 13px/16px var(--font-sans);
    --text-eyebrow: 700 12px/16px var(--font-sans);
    --text-figure: 600 15px/22px var(--font-sans);
    --text-mono: 500 13px/20px var(--font-mono);
    --content-max: 1200px;
}

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

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

body.vx-body {
    margin: 0;
    background: var(--surface-100);
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 22px;
    -webkit-font-smoothing: antialiased;
    min-width: 0;
}

.vx-body img {
    max-width: 100%;
}

.vx-body a {
    color: var(--brand);
}

.vx-body a:hover {
    color: var(--brand-hover);
}

.vx-body :focus-visible {
    outline: 2px solid var(--focus);
    outline-offset: 2px;
}

.vx-container {
    max-width: var(--content-max);
    margin: 0 auto;
}

.vx-sec {
    padding: 96px 32px;
}

.vx-sec--white {
    background: var(--surface-000);
}

.vx-sec--bordered {
    border-top: 1px solid var(--line-100);
}

.vx-sec--bordered-both {
    border-top: 1px solid var(--line-100);
    border-bottom: 1px solid var(--line-100);
}

.vx-display {
    margin: 0;
    font: var(--text-display);
    font-size: 72px;
    line-height: 72px;
    letter-spacing: -0.035em;
}

.vx-h1 {
    margin: 0;
    font: var(--text-h1);
    letter-spacing: -0.02em;
    text-wrap: balance;
}

.vx-h2 {
    margin: 0;
    font: var(--text-h2);
    letter-spacing: -0.015em;
}

.vx-h3 {
    margin: 0;
    font: var(--text-h3);
}

.vx-lead {
    margin: 0;
    font: var(--text-lead);
    color: var(--ink-muted);
    text-wrap: pretty;
}

.vx-body-text {
    margin: 0;
    font: var(--text-body);
    color: var(--ink-muted);
}

.vx-small {
    margin: 0;
    font: var(--text-body-sm);
    color: var(--ink-subtle);
}

.vx-eyebrow {
    font: var(--text-eyebrow);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--brand);
}

.vx-kicker {
    font: var(--text-mono);
    color: var(--ink-subtle);
}

.vx-mono {
    font-family: var(--font-mono);
}

.vx-num {
    font-variant-numeric: tabular-nums;
}

.vx-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* ---------- Button ---------- */
.vd-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 40px;
    padding: 0 16px;
    border: 1px solid transparent;
    border-radius: 6px;
    font: 600 14px/1 var(--font-sans);
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.15s ease-out, border-color 0.15s ease-out, color 0.15s ease-out, filter 0.15s ease-out;
}

.vd-btn--lg {
    height: 48px;
    padding: 0 24px;
    font-size: 15px;
}

.vd-btn--block {
    width: 100%;
}

.vx-body .vd-btn--primary,
.vx-body .vd-btn--primary:hover {
    color: var(--on-brand);
}

.vd-btn--primary {
    background: var(--brand);
}

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

.vx-body .vd-btn--accent,
.vx-body .vd-btn--accent:hover {
    color: var(--on-accent);
}

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

.vd-btn--accent:hover {
    filter: brightness(0.94);
}

.vx-body .vd-btn--secondary,
.vx-body .vd-btn--secondary:hover {
    color: var(--ink);
}

.vd-btn--secondary {
    border-color: var(--line-200);
    background: var(--surface-000);
}

.vd-btn--secondary:hover {
    background: var(--surface-200);
}

.vx-body .vd-btn--ghost,
.vx-body .vd-btn--ghost:hover {
    color: var(--brand);
}

.vd-btn--ghost {
    background: transparent;
}

.vd-btn--ghost:hover {
    background: var(--brand-tint);
}

/* ---------- Badge ---------- */
.vd-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    background: var(--surface-200);
    color: var(--ink-muted);
    font: 600 12px/1 var(--font-sans);
    white-space: nowrap;
}

.vd-badge--brand {
    background: var(--brand-tint);
    color: var(--brand);
}

.vd-badge--success {
    background: var(--success-tint);
    color: var(--success);
}

.vd-badge--warning {
    background: var(--warning-tint);
    color: var(--warning);
}

.vd-badge--danger {
    background: var(--danger-tint);
    color: var(--danger);
}

.vd-badge--accent {
    background: var(--accent-tint);
    color: var(--accent-text);
}

/* ---------- Segmented control (static, decorative) ---------- */
.vd-seg {
    display: inline-flex;
    gap: 2px;
    padding: 3px;
    border: 1px solid var(--line-100);
    border-radius: 999px;
    background: var(--surface-200);
}

.vd-seg__opt {
    display: inline-flex;
    align-items: center;
    height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    color: var(--ink-muted);
    font: 600 12px/1 var(--font-sans);
}

.vd-seg__opt.is-on {
    background: var(--brand);
    color: var(--on-brand);
    box-shadow: var(--shadow-1);
}

/* ---------- Stat tile ---------- */
.vd-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.vd-stat__label {
    font: var(--text-label);
    color: var(--ink-muted);
}

.vd-stat__value {
    font: 600 32px/40px var(--font-sans);
    letter-spacing: -0.01em;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
}

.vd-stat__foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    line-height: 20px;
    color: var(--ink-subtle);
}

.vd-stat__delta {
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: var(--success);
}

/* ---------- Field ---------- */
.vd-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.vd-field__label {
    font: var(--text-label);
    color: var(--ink);
}

.vd-field__input {
    width: 100%;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--line-200);
    border-radius: 6px;
    background: var(--surface-000);
    color: var(--ink);
    font: 400 15px/22px var(--font-sans);
    transition: border-color 0.15s ease-out, box-shadow 0.15s ease-out;
}

.vd-field__input::placeholder {
    color: var(--ink-subtle);
}

.vd-field__input:focus,
.vd-field__input:focus-visible {
    border-color: var(--focus);
    box-shadow: 0 0 0 1px var(--focus);
    outline: none;
}

/* ---------- Check list ---------- */
.vx-checks {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.vx-checks li {
    display: flex;
    gap: 12px;
    font: var(--text-body);
}

.vx-checks svg {
    flex: none;
    width: 20px;
    height: 20px;
}

/* ---------- Header ---------- */
.vx-header {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid var(--line-100);
    background: rgba(245, 247, 250, 0.92);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.vx-header__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 32px;
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 14px 32px;
}

.vx-header__logo {
    display: flex;
    align-items: center;
}

.vx-header__logo img {
    display: block;
    width: auto;
    height: 32px;
}

.vx-navlinks {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    gap: 20px;
}

.vx-body .vx-link {
    padding: 12px 4px;
    color: var(--ink);
    font: var(--text-label);
    font-size: 14px;
    text-decoration: none;
}

.vx-body .vx-link:hover,
.vx-body .vx-link[aria-current="page"] {
    color: var(--brand);
}

.vx-header__actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

/* ---------- Footer ---------- */
.vx-footer {
    background: var(--surface-inverse);
    color: var(--ink-inverse);
}

.vx-footer__inner {
    display: flex;
    flex-direction: column;
    gap: 56px;
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 72px 32px 40px;
}

.vx-footer__top {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.vx-footer__brand {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.vx-footer__mark {
    display: flex;
    align-items: center;
    gap: 12px;
}

.vx-footer__mark img {
    width: auto;
    height: 40px;
}

.vx-footer__tagline {
    color: var(--ink-inverse);
    font-size: 56px;
    line-height: 60px;
}

.vx-footer__ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.vx-footer__cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 32px;
}

.vx-footer__col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.vx-footer__col-title {
    font: var(--text-eyebrow);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--mist);
}

.vx-body .vx-flink {
    color: var(--ink-inverse);
    font: var(--text-body-sm);
    text-decoration: none;
    opacity: 0.82;
}

.vx-body .vx-flink:hover {
    color: var(--ink-inverse);
    text-decoration: underline;
    opacity: 1;
}

.vx-body .vx-flink[aria-current="true"] {
    font-weight: 600;
    opacity: 1;
}

.vx-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 16px;
    color: var(--ink-inverse);
    font: var(--text-body-sm);
    opacity: 0.7;
}

/* ---------- Cookie banner ---------- */
.vx-cookie {
    position: fixed;
    right: 16px;
    bottom: 16px;
    left: 16px;
    z-index: 40;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
    max-width: 720px;
    margin: 0 auto;
    padding: 16px 20px;
    border: 1px solid var(--line-100);
    border-radius: 16px;
    background: var(--surface-000);
    box-shadow: var(--shadow-3);
}

.vx-cookie[hidden] {
    display: none;
}

.vx-cookie p {
    flex: 1 1 320px;
    margin: 0;
    color: var(--ink-muted);
    font: var(--text-body-sm);
}

/* ---------- Simple pages (legal, 404, pricing) ---------- */
.vx-page {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.vx-center {
    text-align: center;
}

.vx-page-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
}

.vx-legal {
    max-width: 900px;
    margin: 0 auto;
    padding: 48px 56px;
    border: 1px solid var(--line-100);
    border-radius: 16px;
    background: var(--surface-000);
    color: var(--ink-muted);
    font: var(--text-body);
    line-height: 1.75;
}

.vx-legal h1 {
    margin: 0 0 24px;
    color: var(--ink);
    font: var(--text-h1);
    letter-spacing: -0.02em;
    text-align: center;
}

.vx-legal h2 {
    margin: 32px 0 12px;
    color: var(--ink);
    font: var(--text-h3);
}

.vx-legal h3 {
    margin: 24px 0 8px;
    color: var(--ink);
    font: 600 17px/24px var(--font-sans);
}

.vx-legal ul {
    margin: 12px 0;
    padding-left: 20px;
}

.vx-legal li {
    margin-bottom: 8px;
}

.vx-legal table.cookies-table {
    width: 100%;
    margin-top: 16px;
    border-collapse: collapse;
}

.vx-legal table.cookies-table th,
.vx-legal table.cookies-table td {
    padding: 10px 12px;
    border: 1px solid var(--line-100);
    text-align: left;
}

.vx-legal table.cookies-table th {
    background: var(--surface-200);
    color: var(--ink);
    font-weight: 600;
}

.vx-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.vx-error__code {
    color: var(--brand);
    font: 700 120px/1 var(--font-mono);
    letter-spacing: -0.04em;
}

.vx-error__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 8px;
}

/* ---------- Mobile menu ---------- */
.vx-menu {
    display: none;
}

.vx-menu__toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line-100);
    border-radius: 10px;
    background: var(--surface-000);
    color: var(--ink);
    cursor: pointer;
    list-style: none;
}

.vx-menu__toggle::-webkit-details-marker {
    display: none;
}

.vx-menu__panel {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 72px);
    overflow-y: auto;
    padding: 8px 16px 20px;
    border-bottom: 1px solid var(--line-100);
    background: var(--surface-000);
    box-shadow: var(--shadow-3);
}

.vx-body .vx-menu__link {
    padding: 14px 0;
    border-bottom: 1px solid var(--line-100);
    color: var(--ink);
    font: var(--text-body);
    font-weight: 600;
    text-decoration: none;
}

.vx-menu__actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 16px;
}

@media (max-width: 900px) {
    .vx-navlinks {
        display: none;
    }

    .vx-menu {
        display: block;
    }
}

@media (max-width: 720px) {
    .vx-display {
        font-size: 44px;
        line-height: 46px;
    }

    .vx-h1 {
        font-size: 30px;
        line-height: 36px;
    }

    .vx-sec {
        padding: 64px 16px;
    }

    .vx-hide-sm {
        display: none !important;
    }

    .vx-header__inner {
        gap: 12px;
        padding: 12px 16px;
    }

    .vx-header__actions .vd-btn {
        padding-right: 14px;
        padding-left: 14px;
    }

    /* Sit above the chat bubble, which is pinned to the bottom-right corner. */
    .vx-cookie {
        right: 12px;
        bottom: 92px;
        left: 12px;
        padding: 14px 16px;
    }

    .vx-cookie .vd-btn {
        flex: 1 1 100%;
    }

    .vx-footer__inner {
        padding: 56px 16px 32px;
    }

    .vx-footer__tagline {
        font-size: 40px;
        line-height: 44px;
    }

    .vx-legal {
        padding: 32px 20px;
    }
}

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

    .vx-body *,
    .vx-body *::before,
    .vx-body *::after {
        transition: none !important;
    }
}
