/* Figtree Regular (Variable) */
@font-face {
    font-family: 'Figtree';
    src: url('/fonts/Figtree-VariableFont.woff2') format('woff2'), url('/fonts/Figtree-VariableFont.ttf') format('truetype');
    font-weight: 100 900; /* variable weight range */
    font-style: normal;
    font-display: swap;
}

/* Figtree Italic (Variable) */
@font-face {
    font-family: 'Figtree';
    src: url('/fonts/Figtree-Italic-VariableFont.woff2') format('woff2'), url('//fonts/Figtree-Italic-VariableFont.ttf') format('truetype');
    font-weight: 100 900;
    font-style: italic;
    font-display: swap;
}
/* Nunito Sans Regular (Variable) */
@font-face {
    font-family: 'NunitoSans';
    src: url('/fonts/NunitoSans-VariableFont.woff2') format('woff2'), url('/fonts/NunitoSans-VariableFont.ttf') format('truetype');
    font-weight: 100 900; /* variable weight range */
    font-style: normal;
    font-display: swap;
}

/* Nunito Sans Italic (Variable) */
@font-face {
    font-family: 'NunitoSans';
    src: url('/fonts/NunitoSans-Italic-VariableFont.woff2') format('woff2'), url('//fonts/NunitoSans-Italic-VariableFont.ttf') format('truetype');
    font-weight: 100 900;
    font-style: italic;
    font-display: swap;
}

.bottom-drawer {
    /*width: 40vw;*/ /* or max-width */
    /*max-width: 50%;*/ /* limit to 600px */
    /*height: 40vh; /* or max-height */
    /* max-height: 50%;  half the screen */
    overflow: hidden; /* clip the outer drawer */
}

.drawer-body {
    height: 100%;
    overflow-y: auto; /* let content scroll */
    padding: 1rem;
}

.clickable-text {
    cursor: pointer;
}

.liquid-glass-appbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--mud-zindex-appbar, 1100);
    /* Semi-transparent surface tint */
    background: rgba(var(--mud-palette-surface-rgb), 0.15);
    /* The magic: blur the backdrop */
    backdrop-filter: blur(12px) saturate(150%);
    -webkit-backdrop-filter: blur(12px) saturate(150%);
    /* Subtle border */
    border-bottom: 1px solid rgba(var(--mud-palette-lines-default-rgb), 0.4);
    box-shadow: none !important;
}

    /* Subtle sheen highlight */
    .liquid-glass-appbar::after {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 35%;
        background: linear-gradient( to bottom, color-mix(in srgb, var(--mud-palette-white) 25%, transparent), transparent );
        pointer-events: none;
    }


html, body {
    font-family: NunitoSans,'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 400; /* Normal */
}

a, .btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5M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em/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}
:root {
    color-scheme: light dark;
    --bg: #0b0c10;
    --fg: #e5e7eb;
    --muted: #9ca3af;
    --primary: #60a5fa;
    --card-bg: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
    --shadow: 0 10px 40px rgba(0,0,0,.25);
}

@media (prefers-color-scheme: light) {
    :root {
        --bg: #f8fafc;
        --fg: #0b0c10;
        --muted: #6b7280;
        --primary: #2563eb;
        --card-bg: linear-gradient(180deg, rgba(0,0,0,.04), rgba(0,0,0,.02));
        --shadow: 0 10px 30px rgba(0,0,0,.08);
    }
}

html, body, #app {
    height: 100%;
}

body {
    font-family: "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
}

/* Splash container */
#splash {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    background: var(--bg);
    color: var(--fg);
    z-index: 1200;
    transition: opacity .35s ease, visibility .35s ease;
}

    #splash.done {
        opacity: 0;
        visibility: hidden;
    }

/* Card */
.splash-card {
    width: min(560px, 92vw);
    padding: 2.25rem 2rem 2rem;
    border-radius: 1.25rem;
    background: var(--card-bg);
    backdrop-filter: saturate(1.2) blur(8px);
    box-shadow: var(--shadow);
    text-align: center;
}

/* Brand + app name */
.brandmark {
    display: block;
    margin: 0 auto .6rem;
    height: 38px; /* adjust to taste */
    max-width: 80%;
}

.appname {
    margin: 0 0 1.1rem;
    font-weight: 600;
    font-size: clamp(1.1rem, 1rem + 1vw, 1.5rem);
    line-height: 1.2;
}

/* Spinner */
.spinner {
    width: 42px;
    height: 42px;
    margin: .25rem auto 0;
    border-radius: 50%;
    border: 3px solid var(--muted);
    border-top-color: var(--primary);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .spinner {
        animation: none;
    }

    #splash {
        transition: none;
    }
}

/* Reveal app when ready */
#app {
    opacity: 0;
    transition: opacity .2s ease;
}

    #app.ready {
        opacity: 1;
    }

/* A11y helper */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* Viewport hero */
.na-hero {
    min-height: 100dvh; /* handles mobile browser UI */
    display: grid;
    grid-template-rows: 1fr auto;
    place-items: center;
    padding: clamp(24px, 4vw, 48px);
    background: radial-gradient(1200px 600px at 10% 0%, rgba(99,102,241,.20), transparent 60%), radial-gradient(1200px 600px at 90% 100%, rgba(34,197,94,.20), transparent 60%), linear-gradient(180deg, #0b0c10, #0e1116);
    color: #e5e7eb;
}

/* Light mode tweak */
@media (prefers-color-scheme: light) {
    .na-hero {
        background: radial-gradient(1200px 600px at 10% 0%, rgba(99,102,241,.20), transparent 60%), radial-gradient(1200px 600px at 90% 100%, rgba(34,197,94,.20), transparent 60%), linear-gradient(180deg, #f8fafc, #eef2f7);
        color: #0b0c10;
    }
}

/* Content wrapper */
.na-wrap {
    text-align: center;
    max-width: min(920px, 92vw);
    font-family: "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial;
}

.na-brand {
    display: block;
    margin: 0 auto clamp(12px, 2vw, 20px);
    height: 38px;
    max-width: 90%;
}

.na-title {
    margin: 0;
    font-weight: 700;
    font-size: clamp(1.75rem, 1.2rem + 2.2vw, 3rem);
    line-height: 1.08;
    letter-spacing: -.015em;
}

.na-tagline {
    margin: clamp(10px, 1.2vw, 16px) auto clamp(18px, 2vw, 26px);
    max-width: 62ch;
    font-size: clamp(1rem, .92rem + .4vw, 1.125rem);
    opacity: .85;
}

/* CTA row */
.na-cta {
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

/* Von Restorff-style standout button: distinct hue + glow + subtle motion */
.btn-standout {
    position: relative;
    isolation: isolate;
    appearance: none;
    border: 0;
    border-radius: 999px;
    padding: 14px 22px;
    font-weight: 700;
    font-size: clamp(1rem, .96rem + .2vw, 1.125rem);
    color: white;
    background: linear-gradient(135deg, #7c3aed 0%, #2563eb 40%, #22c55e 100%);
    box-shadow: 0 10px 24px rgba(37,99,235,.35), inset 0 -1px 0 rgba(255,255,255,.12);
    transform: translateZ(0);
    transition: transform .15s ease, box-shadow .2s ease, filter .2s ease;
    cursor: pointer;
}

    /* Moving “spotlight” for dimensionality */
    .btn-standout .btn-spotlight {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: inherit;
        background: radial-gradient(200px 120px at var(--x, 30%) var(--y, 30%), rgba(255,255,255,.30), transparent 35%);
        mix-blend-mode: screen;
        pointer-events: none;
        transition: opacity .2s ease;
        opacity: .8;
    }

    /* Hover/active */
    .btn-standout:hover {
        transform: translateY(-1px);
        box-shadow: 0 14px 36px rgba(37,99,235,.45), inset 0 -1px 0 rgba(255,255,255,.18);
        filter: saturate(1.05);
    }

    .btn-standout:active {
        transform: translateY(0);
    }

    /* Keyboard focus */
    .btn-standout:focus-visible {
        outline: none;
        box-shadow: 0 0 0 4px rgba(37,99,235,.25), 0 12px 28px rgba(37,99,235,.35);
    }

/* Secondary link button */
.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid currentColor;
    color: inherit;
    text-decoration: none;
    opacity: .9;
    transition: background-color .2s ease, opacity .2s ease;
}

    .btn-ghost:hover {
        background-color: rgba(255,255,255,.08);
        opacity: 1;
    }

@media (prefers-color-scheme: light) {
    .btn-ghost:hover {
        background-color: rgba(0,0,0,.06);
    }
}

/* Footer */
.na-foot {
    align-self: end;
    opacity: .7;
    font-size: .9rem;
    text-align: center;
}

/* Optional: pointer-tracked spotlight */
.btn-standout:hover + .btn-ghost, .btn-ghost:hover { /* keeps spacing stable */
}