/* VolkCell – visual system
   Brand match: volkcell.com neutral clinical palette, black/white surfaces, soft grey structure.
   Font: Syne (brand/UI) · Syne Mono (data/provenance)
*/

:root {
    --vc-black: #0e0e0e;
    --vc-ink: #23282f;
    --vc-graphite: #4a5464;
    --vc-muted: #728197;
    --vc-line: #dcdfe5;
    --vc-paper: #fafafa;
    --vc-paper-2: #f6f6f6;
    --vc-white: #FFFFFF;
    --vc-accent: #0e0e0e;
    --vc-accent-2: #4a5464;
    --vc-warn: #4a5464;
    --vc-shadow: 0 2px 8px rgba(35,40,47,0.04), 0 8px 32px rgba(35,40,47,0.06);
    --vc-shadow-hard: 0 18px 42px -32px rgba(35,40,47,0.26);
    --vc-radius: 20px;
}

html { background: var(--vc-paper); }

body.vc-shell {
    color: var(--vc-ink);
    background:
        radial-gradient(circle at 8% 0%, rgba(35,40,47,0.045), transparent 32rem),
        radial-gradient(circle at 92% 12%, rgba(193,200,209,0.28), transparent 28rem),
        linear-gradient(135deg, rgba(35,40,47,0.022) 0 1px, transparent 1px 24px),
        var(--vc-paper);
}

body.vc-shell::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0.48;
    background:
        radial-gradient(circle at 18% 24%, rgba(5,5,5,0.05) 0 1px, transparent 1.5px),
        radial-gradient(circle at 72% 16%, rgba(5,5,5,0.04) 0 1px, transparent 1.5px),
        radial-gradient(circle at 54% 76%, rgba(5,5,5,0.035) 0 1px, transparent 1.5px);
    background-size: 86px 86px, 122px 122px, 154px 154px;
    mix-blend-mode: multiply;
}

.vc-main { position: relative; }

/* ===== HTMX Loading States ===== */
.htmx-indicator { display: none; }
.htmx-request .htmx-indicator { display: inline-flex; }
.htmx-request .htmx-indicator-hide { display: none; }

/* ===== Selection ===== */
::selection { background-color: var(--vc-black); color: var(--vc-white); }

/* ===== Scrollbar ===== */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #c1c8d1; border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: #728197; }

/* ===== Syne Font ===== */
body, html, h1, h2, h3, h4, h5, h6, p, a, span, div {
    font-family: 'Syne', system-ui, -apple-system, sans-serif !important;
}

/* ===== Monospace elements ===== */
code, pre, .font-mono, kbd, samp {
    font-family: 'Syne Mono', ui-monospace, monospace !important;
}

/* ===== Range Input ===== */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    height: 2px;
    border-radius: 0;
    background: #d4d4d4;
    outline: none;
    transition: background 0.15s ease;
}
input[type="range"]:hover { background: #a3a3a3; }
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 0;
    background: #000;
    cursor: pointer;
    border: none;
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}
input[type="range"]::-webkit-slider-thumb:hover {
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.1);
    transform: scale(1.1);
}
input[type="range"]::-moz-range-thumb {
    width: 14px; height: 14px; border-radius: 0;
    background: #000; cursor: pointer;
    border: none;
}

/* ===== Tables ===== */
table th { white-space: nowrap; }

/* ===== Focus ===== */
input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible, button:focus-visible {
    outline: 2px solid var(--vc-black);
    outline-offset: 1px;
    box-shadow: none;
}

/* ===== Animations (matching volkcell.com fade style) ===== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.96); }
    to   { opacity: 1; transform: scale(1); }
}
@keyframes shimmer {
    0%   { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes vcReveal {
    from { opacity: 0; transform: translateY(22px) scale(0.985); filter: blur(6px); }
    to   { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}
@keyframes vcScanline {
    0% { transform: translateY(-18%); opacity: 0; }
    20%, 70% { opacity: 0.35; }
    100% { transform: translateY(118%); opacity: 0; }
}
@keyframes vcPulseDot {
    0%, 100% { transform: scale(1); opacity: 0.55; }
    50% { transform: scale(1.7); opacity: 1; }
}

.animate-fade-in-up {
    animation: fadeInUp 0.65s ease;
}
.animate-fade-in {
    animation: fadeIn 0.3s ease;
}
.animate-scale-in {
    animation: scaleIn 0.25s ease;
}

/* ===== Progress shimmer ===== */
.progress-shimmer {
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* ===== Card hover lift ===== */
.card-lift {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card-lift:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px -8px rgba(0, 0, 0, 0.08);
}

/* ===== Stat numbers stagger ===== */
.stat-number {
    animation: fadeInUp 0.5s ease backwards;
}
.stat-number:nth-child(2) { animation-delay: 0.08s; }
.stat-number:nth-child(3) { animation-delay: 0.16s; }

/* ===== Clean shadow (matching volkcell.com minimal look) ===== */
.shadow-premium {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04),
                0 4px 12px rgba(0, 0, 0, 0.03);
}
.shadow-premium-lg {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04),
                0 8px 32px rgba(0, 0, 0, 0.06);
}

/* ===== Image comparison slider ===== */
.compare-slider {
    cursor: ew-resize;
    -webkit-user-select: none;
    user-select: none;
}

/* ===== Auth Modal (legacy class, kept for any straggler usage) ===== */
.auth-modal {
    box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.15);
    border: 1px solid #e5e5e5;
}

/* PR M — rebuilt sign-in gate. Hard-edged hairline modal with editorial
   chrome instead of a stock card.

   - vc-auth-overlay: layered backdrop (warm paper gradient + dot grid +
     blur). Reads as the page behind the gate, not a black scrim.
   - vc-auth-modal: square hairline panel with a heavy bottom shadow and
     a 2px black top accent rule (vc-auth-rule).
   - vc-auth-foot: subtle bottom strip that mirrors the page footer tone. */
.vc-auth-overlay {
    background:
        radial-gradient(circle at 8% 12%, rgba(35,40,47,0.22), transparent 36rem),
        radial-gradient(circle at 92% 80%, rgba(255,255,255,0.55), transparent 28rem),
        rgba(20, 20, 22, 0.55);
    backdrop-filter: blur(14px) saturate(1.2);
    -webkit-backdrop-filter: blur(14px) saturate(1.2);
}
.vc-auth-modal {
    box-shadow:
        0 0 0 1px rgba(35,40,47,0.06),
        0 24px 60px -18px rgba(20,20,22,0.45),
        0 6px 20px rgba(20,20,22,0.18);
    border: 1px solid rgba(35,40,47,0.10);
}
.vc-auth-rule {
    height: 2px;
    background: var(--vc-black);
}
.vc-auth-title { font-family: 'Syne', system-ui, sans-serif; }
.vc-auth-title em {
    font-style: italic;
    background-image: linear-gradient(0deg, var(--vc-black) 0 2px, transparent 2px);
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 100% 100%;
    padding-bottom: 2px;
}
.vc-auth-kicker { font-family: 'Syne Mono', ui-monospace, monospace !important; }
.vc-auth-submit { letter-spacing: 0.18em; }

/* ===== Alpine.js ===== */
[x-cloak] { display: none !important; }
[x-show]  { will-change: opacity, transform; }

/* ===== Volkcell.com-style outline buttons ===== */
.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: 1px solid #000;
    background: transparent;
    color: #000;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: all 0.2s ease;
    cursor: pointer;
}
.btn-outline:hover {
    background: #000;
    color: #fff;
}
.btn-solid {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: 1px solid #000;
    background: #000;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: all 0.2s ease;
    cursor: pointer;
}
.btn-solid:hover {
    background: #262626;
    border-color: #262626;
}

/* ===== Section themes (matching volkcell.com) ===== */
.section-black {
    background: #000;
    color: #fafafa;
}
.section-white {
    background: #fafafa;
    color: #000;
}
.section-dark-bold {
    background: #1c1c1c;
    color: #fafafa;
}


/* ===== Premium VolkCell surface language ===== */
.vc-reveal { animation: vcReveal 0.75s cubic-bezier(.17,.84,.28,1) backwards; }
.vc-nav {
    border-bottom: 1px solid rgba(20, 20, 18, 0.10);
    /* Solid fallback for browsers where backdrop-filter is unavailable
       or GPU-accelerated compositing is disabled (e.g. some Chrome configs).
       When backdrop-filter IS supported we drop to 82% opacity so the
       frosted-glass effect shows through. */
    background: rgb(255, 253, 247) !important;
}
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
    .vc-nav {
        background: rgba(255, 253, 247, 0.92) !important;
        backdrop-filter: blur(18px) saturate(1.15);
        -webkit-backdrop-filter: blur(18px) saturate(1.15);
    }
}
.vc-logo {
    letter-spacing: -0.075em;
    text-transform: uppercase;
    position: relative;
}
.vc-logo::after { content: none; }
.vc-nav-link { position: relative; padding: 0.55rem 0; }
.vc-nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: 0.15rem;
    height: 2px;
    background: var(--vc-black);
    transition: right 0.22s ease;
}
.vc-nav-link:hover::after,
.vc-nav-link[aria-current="page"]::after { right: 0; }

/* PR K — Identity chip + keyboard kbd hint.
   Sits on the right of the top bar, gives the profile-affordance a
   sidebar avatar normally provides — without the sidebar overhead.
   The square initials block deliberately mirrors the black VolkCell
   logo lockup so the chip reads as part of the wordmark system. */
.vc-identity-chip {
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
}
.vc-identity-square {
    letter-spacing: 0.04em;
    font-family: 'Syne', system-ui, sans-serif;
    line-height: 1;
    /* Subtle press response — under 4px so it never feels like a
       toy button. */
    transition: transform 160ms ease;
}
.vc-identity-chip:active .vc-identity-square { transform: translateY(1px); }
.vc-identity-menu {
    box-shadow: 0 18px 42px -20px rgba(35,40,47,0.28),
                0 2px 6px rgba(35,40,47,0.05);
    /* Fine top hairline overlaps the nav's bottom border for a single
       seam, not a doubled-up line. */
    margin-top: -1px;
}
/* PR L — 404 numeral. Big Syne mark beside a hairline rule. */
.vc-404-numeral {
    font-family: 'Syne', system-ui, sans-serif;
    /* Faint extruded shadow gives the digit weight without making it
       a colour-heavy block — keeps the grayscale discipline. */
    text-shadow: 1px 1px 0 rgba(35,40,47,0.04);
}

.vc-identity-menu kbd.vc-kbd,
.vc-kbd {
    display: inline-block;
    padding: 0.05rem 0.4rem;
    background: var(--vc-white);
    border: 1px solid rgba(35,40,47,0.18);
    border-bottom-width: 2px;
    border-radius: 3px;
    font-family: 'Syne Mono', ui-monospace, monospace;
    font-size: 10px;
    color: var(--vc-ink);
    line-height: 1.4;
    vertical-align: baseline;
}

.vc-hero {
    background:
        linear-gradient(135deg, rgba(14,14,14,0.92), rgba(35,40,47,0.88)),
        radial-gradient(circle at 78% 20%, rgba(255,255,255,0.12), transparent 22rem),
        #0e0e0e !important;
    isolation: isolate;
}
.vc-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(rgba(255,255,255,0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px),
        radial-gradient(circle at center, transparent 0 35%, rgba(0,0,0,0.82) 100%);
    background-size: 52px 52px, 52px 52px, auto;
    opacity: 0.72;
}
.vc-hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -30%;
    height: 28%;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(180deg, transparent, rgba(255,255,255,0.11), transparent);
    animation: vcScanline 7s ease-in-out infinite;
}
.vc-hero > .relative { z-index: 3; }
.vc-hero-kicker { color: rgba(255,255,255,0.76) !important; text-shadow: none; }
.vc-hero-title { letter-spacing: -0.085em; text-wrap: balance; }
.vc-hero-title em { font-style: normal; color: #fff; text-decoration: none; }
.vc-metric-card,
.vc-panel,
.vc-workflow-card {
    position: relative;
    border: 1px solid var(--vc-line) !important;
    border-radius: var(--vc-radius);
    background: rgba(255,255,255,0.92) !important;
    box-shadow: var(--vc-shadow);
}
.vc-panel::before,
.vc-workflow-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(255,255,255,0.7), transparent 34%, rgba(5,5,5,0.025));
}
.vc-panel > *, .vc-workflow-card > * { position: relative; }
.vc-workflow-card {
    overflow: hidden;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.vc-workflow-card::after {
    content: "";
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    background: var(--vc-black);
    transform: scaleY(0.22);
    transform-origin: top;
    transition: transform 0.22s ease;
}
.vc-workflow-card:hover {
    transform: translateY(-4px);
    border-color: var(--vc-black) !important;
    box-shadow: var(--vc-shadow), var(--vc-shadow-hard);
}
.vc-workflow-card:hover::after { transform: scaleY(1); }
.vc-section-label { display: inline-flex; align-items: center; gap: 0.55rem; color: var(--vc-muted) !important; }
.vc-section-label::before {
    content: "";
    width: 0.5rem;
    height: 0.5rem;
    border: 1px solid var(--vc-muted);
    background: transparent;
    box-shadow: none;
}
.vc-btn-primary,
.vc-btn-secondary { position: relative; overflow: hidden; transform: translateZ(0); }
.vc-btn-primary::before,
.vc-btn-secondary::before {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-110%) skewX(-18deg);
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.38), transparent);
    transition: transform 0.55s ease;
}
.vc-btn-primary:hover::before,
.vc-btn-secondary:hover::before { transform: translateX(110%) skewX(-18deg); }
.vc-btn-primary { background: var(--vc-accent) !important; color: var(--vc-white) !important; border-color: var(--vc-accent) !important; border-radius: 999px; box-shadow: 0 14px 26px -20px rgba(0,0,0,0.75); }
.vc-btn-secondary { border-color: rgba(255,255,255,0.55) !important; border-radius: 999px; }
.vc-btn-primary > *, .vc-btn-secondary > * { position: relative; }
.vc-upload-card { box-shadow: 0 30px 90px -55px rgba(5,5,5,0.9), 0 0 0 1px rgba(5,5,5,0.04); }
.vc-dropzone {
    background:
        radial-gradient(circle at 28% 22%, rgba(35,40,47,0.045), transparent 11rem),
        linear-gradient(135deg, rgba(35,40,47,0.028) 0 1px, transparent 1px 20px),
        rgba(255,255,255,0.84) !important;
}
.vc-trust-strip { background: rgba(250,250,250,0.88) !important; backdrop-filter: blur(10px); }
.vc-trust-icon { background: var(--vc-accent) !important; color: var(--vc-white) !important; border-radius: 0 !important; }
.vc-footer { background: var(--vc-accent) !important; position: relative; overflow: hidden; }
.vc-footer::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 10%, rgba(255,255,255,0.08), transparent 24rem),
        linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: auto, 100% 42px;
    pointer-events: none;
}
.vc-footer > * { position: relative; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}


/* ===== Monochrome correction pass (#66) ===== */
.vc-lab-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.96fr);
    gap: clamp(2rem, 6vw, 6rem);
    align-items: center;
}
.vc-hero-copy { text-align: left; }
.vc-hero-rule { margin-left: 0 !important; }
.vc-hero-proof-grid { max-width: none !important; }
.vc-hero .vc-metric-card {
    background: rgba(14,14,14,0.68) !important;
    border-color: rgba(255,255,255,0.26) !important;
    box-shadow: none;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.vc-hero .vc-metric-card p:first-child { color: rgba(255,255,255,0.72) !important; }
.vc-hero .vc-metric-card p:last-child { color: #fff !important; }
.vc-instrument-panel {
    position: relative;
    min-height: 28rem;
    border: 1px solid rgba(255,255,255,0.28);
    border-radius: 28px;
    background:
        linear-gradient(135deg, rgba(255,255,255,0.18), rgba(255,255,255,0.06)),
        rgba(255,255,255,0.08);
    box-shadow: 0 38px 100px -48px rgba(0,0,0,0.9);
    overflow: hidden;
}
.vc-instrument-panel::before {
    content: "";
    position: absolute;
    inset: 1rem;
    border: 1px solid rgba(255,255,255,0.14);
    pointer-events: none;
}
.vc-instrument-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 36px 36px;
    mask-image: radial-gradient(circle at 55% 42%, black, transparent 72%);
    pointer-events: none;
}
.vc-specimen-window {
    position: absolute;
    inset: 3.5rem 3rem 8.5rem 3rem;
    border: 1px solid rgba(255,255,255,0.24);
    border-radius: 22px;
    background:
        radial-gradient(circle at 42% 42%, rgba(255,255,255,0.12) 0 0.28rem, transparent 0.32rem),
        radial-gradient(circle at 62% 58%, rgba(255,255,255,0.10) 0 0.22rem, transparent 0.28rem),
        radial-gradient(circle at 54% 46%, rgba(255,255,255,0.08) 0 0.18rem, transparent 0.25rem),
        rgba(255,255,255,0.045);
    background-size: 62px 62px, 84px 84px, 48px 48px, auto;
}
.vc-specimen-window > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.36;
    filter: saturate(0.78) contrast(1.18) brightness(0.92);
    mix-blend-mode: screen;
}
.vc-reticle {
    position: absolute;
    inset: 22%;
    border: 1px solid rgba(255,255,255,0.40);
}
.vc-reticle::before,
.vc-reticle::after {
    content: "";
    position: absolute;
    background: rgba(255,255,255,0.36);
}
.vc-reticle::before { left: 50%; top: -22%; bottom: -22%; width: 1px; }
.vc-reticle::after { top: 50%; left: -22%; right: -22%; height: 1px; }
.vc-instrument-readout {
    position: absolute;
    left: 3rem;
    right: 3rem;
    bottom: 3rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}
.vc-readout-cell {
    border-top: 1px solid rgba(255,255,255,0.24);
    padding-top: 0.85rem;
}
.vc-readout-label {
    color: rgba(255,255,255,0.42);
    font-size: 0.62rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}
.vc-readout-value {
    color: #fff;
    font-size: clamp(1.4rem, 3vw, 2.35rem);
    letter-spacing: -0.08em;
    line-height: 1;
}
.vc-page-band {
    margin-top: -1px;
    border-top: 1px solid rgba(5,5,5,0.08);
    border-bottom: 1px solid rgba(5,5,5,0.08);
    background:
        linear-gradient(90deg, rgba(5,5,5,0.03) 1px, transparent 1px),
        rgba(250,250,250,0.76);
    background-size: 42px 42px;
}
.vc-workflow-card {
    min-height: 12.5rem;
    padding: 1.6rem !important;
}
.vc-workflow-card h2,
.vc-workflow-card .font-semibold.text-surface-900 {
    letter-spacing: -0.045em;
}
.vc-panel { box-shadow: var(--vc-shadow); }
.vc-trust-strip { background: #FFFFFF !important; color: var(--vc-ink); }
.vc-trust-strip p { color: inherit; }
.vc-trust-strip .text-surface-900 { color: var(--vc-ink) !important; }
.vc-trust-strip .text-surface-500 { color: var(--vc-muted) !important; }
.vc-trust-icon { border: 1px solid rgba(35,40,47,0.18); background: rgba(35,40,47,0.06) !important; color: var(--vc-accent) !important; border-radius: 16px !important; }
.vc-upload-card { transform: none; }

@media (max-width: 900px) {
    .vc-lab-hero-grid { grid-template-columns: 1fr; }
    .vc-hero-copy { text-align: center; }
    .vc-hero-rule { margin-left: auto !important; }
    .vc-instrument-panel { min-height: 22rem; }
    .vc-specimen-window { inset: 2rem 2rem 7rem 2rem; }
    .vc-instrument-readout { left: 2rem; right: 2rem; bottom: 2rem; }
}

/* ============================================================
   PR J — Personalised welcome banner + quick-access deck.
   The first authenticated paint. Sits above the marketing hero
   so a returning user lands on their workspace, not a pitch.
   ============================================================ */

.vc-welcome {
    position: relative;
    isolation: isolate;
    border-bottom: 1px solid rgba(35,40,47,0.07);
    background:
        radial-gradient(circle at 6% 0%, rgba(35,40,47,0.06), transparent 38rem),
        radial-gradient(circle at 96% 18%, rgba(193,200,209,0.32), transparent 30rem),
        linear-gradient(180deg, #FFFFFF 0%, var(--vc-paper) 100%);
    overflow: hidden;
}

/* A near-invisible film grain texture for atmosphere — sub-1% perceptual
   noise. Avoids the flat-card-on-flat-page look without screaming SaaS
   gradient. Uses a fine SVG noise so no asset hop. */
.vc-welcome-grain {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.5;
    z-index: 0;
    background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240' viewBox='0 0 240 240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.95' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.08 0 0 0 0 0.08 0 0 0 0 0.09 0 0 0 0.045 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    mix-blend-mode: multiply;
}
.vc-welcome-inner { position: relative; z-index: 1; }

.vc-welcome-title { font-family: 'Syne', system-ui, sans-serif; }
.vc-welcome-name {
    /* A subtle handwritten-italic accent on the user's name, anchored by
       a 2px black underline that gives the greeting personality without
       relying on colour — keeps the brand grayscale honest. */
    font-style: italic;
    background-image: linear-gradient(0deg, var(--vc-black) 0 2px, transparent 2px);
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 100% 100%;
    padding-bottom: 2px;
}

.vc-welcome-readout {
    border: 1px solid rgba(35,40,47,0.12);
    background: rgba(255,255,255,0.78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.vc-readout-stat dt { font-family: 'Syne Mono', ui-monospace, monospace; }
.vc-readout-stat dd { font-family: 'Syne Mono', ui-monospace, monospace; letter-spacing: -0.02em; }

/* Quick-access workflow cards — black hairline border, white surface,
   pull a 1px micro-grid on hover so the card feels like it's "wired in"
   to the lab grid background. The arrow nudges right on hover; the
   border darkens to true black. */
.vc-quick-card {
    border-radius: 0;
    transform: translateZ(0);
    transition: border-color 180ms ease, box-shadow 220ms ease, transform 220ms ease;
    background-image: linear-gradient(0deg, rgba(35,40,47,0.02) 0 1px, transparent 1px 64px);
    background-size: 100% 64px;
}
.vc-quick-card:hover {
    border-color: var(--vc-black);
    box-shadow: var(--vc-shadow-hard);
    transform: translateY(-2px);
}
.vc-quick-card .vc-quick-arrow { transition: transform 220ms ease, color 220ms ease; }
.vc-quick-card:hover .vc-quick-arrow { transform: translate(2px, -2px); }
.vc-quick-title { font-family: 'Syne', system-ui, sans-serif; }

/* Recent activity feed — clean rows, no card chrome, a thin underline on
   the top so it reads as a section, not a duplicate card. */
.vc-activity-list { box-shadow: var(--vc-shadow); }
.vc-activity-row a { font-family: 'Syne', system-ui, sans-serif; }
.vc-activity-row:first-child a { border-top: 0; }

@media (max-width: 720px) {
    .vc-welcome-readout { grid-template-columns: repeat(3, 1fr); width: 100%; }
    .vc-welcome-header { align-items: flex-start; }
}

/* ===== Guided tour (Driver.js) — themed to the vc- editorial aesthetic =====
   Square hairline popover, Syne display title, black/paper palette, square
   buttons. Overrides Driver.js defaults so the tour doesn't look like a
   generic third-party widget. */
.vc-tour-popover.driver-popover {
    background: var(--vc-paper);
    color: var(--vc-ink);
    border: 1px solid var(--vc-black);
    border-radius: 0;
    box-shadow: 6px 6px 0 rgba(14, 14, 14, 0.12);
    max-width: 320px;
    padding: 18px 18px 14px;
}
.vc-tour-popover .driver-popover-title {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--vc-black);
    letter-spacing: -0.01em;
}
.vc-tour-popover .driver-popover-description {
    color: var(--vc-accent-2);
    font-size: 0.85rem;
    line-height: 1.5;
    margin-top: 6px;
}
.vc-tour-popover .driver-popover-progress-text {
    font-family: 'Syne Mono', monospace;
    font-size: 0.7rem;
    color: var(--vc-accent-2);
    letter-spacing: 0.04em;
}
.vc-tour-popover .driver-popover-navigation-btns button {
    background: var(--vc-black);
    color: #fff;
    border-radius: 0;
    border: 1px solid var(--vc-black);
    text-shadow: none;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 7px 12px;
}
.vc-tour-popover .driver-popover-navigation-btns button:hover {
    background: var(--vc-ink);
}
.vc-tour-popover .driver-popover-prev-btn {
    background: transparent !important;
    color: var(--vc-ink) !important;
}
.vc-tour-popover .driver-popover-close-btn { color: var(--vc-accent-2); }
.vc-tour-popover .driver-popover-arrow { border-color: var(--vc-black); }

/* ===== Guided-tour opt-in invite (first-run, dismissible) ===== */
.vc-tour-invite {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 9998;
    width: 320px;
    max-width: calc(100vw - 40px);
    background: var(--vc-paper);
    border: 1px solid var(--vc-black);
    box-shadow: 6px 6px 0 rgba(14, 14, 14, 0.12);
    padding: 16px 16px 14px;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}
.vc-tour-invite.is-visible { opacity: 1; transform: translateY(0); }
.vc-tour-invite-title {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--vc-black);
}
.vc-tour-invite-body {
    font-size: 0.8rem;
    line-height: 1.45;
    color: var(--vc-accent-2);
    margin-top: 4px;
}
.vc-tour-invite-actions { display: flex; gap: 8px; margin-top: 12px; }
.vc-tour-invite-yes {
    background: var(--vc-black);
    color: #fff;
    border: 1px solid var(--vc-black);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 8px 14px;
    cursor: pointer;
}
.vc-tour-invite-yes:hover { background: var(--vc-ink); }
.vc-tour-invite-no {
    background: transparent;
    color: var(--vc-accent-2);
    border: 1px solid var(--vc-line);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 8px 14px;
    cursor: pointer;
}
.vc-tour-invite-no:hover { color: var(--vc-black); border-color: var(--vc-black); }
@media (prefers-reduced-motion: reduce) {
    .vc-tour-invite { transition: none; }
}
