html,
body {
    font-family: 'Roboto', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    scroll-behavior: smooth;
}

/* ──────────────────────────────────────────────────────────
   Layout: offset for fixed AppBar
────────────────────────────────────────────────────────── */
.ct-main-content {
    padding-top: 64px;
}

.ct-nav-logo {
    height: 108px;
    width: auto;
    display: block;
}

.ct-nav-brand-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.1;
    text-decoration: none;
}

/* ──────────────────────────────────────────────────────────
   Brand
────────────────────────────────────────────────────────── */
.ct-brand {
    font-weight: 700;
    letter-spacing: -0.5px;
    color: #4A7FC1;
}

.ct-brand-by {
    color: #7AA3C8;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.2px;
    align-self: flex-end;
    padding-bottom: 2px;
}

/* ──────────────────────────────────────────────────────────
   Image placeholders (remove when real art is in place)
────────────────────────────────────────────────────────── */
.ct-img-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px dashed #C5D8EC;
    border-radius: 16px;
    background-color: #F2F6FB;
    color: #7AA3C8;
    padding: 24px;
}

.ct-hero-image {
    width: 100%;
    min-height: 200px;
    max-width: 320px;
}

.ct-placeholder-icon {
    font-size: 64px !important;
    opacity: 0.5;
}

/* ──────────────────────────────────────────────────────────
   Sections
────────────────────────────────────────────────────────── */
.ct-section {
    padding: 80px 0;
}

.ct-section-alt {
    background-color: #F2F4F7;
    padding: 80px 0;
}

.ct-section-cta {
    background: linear-gradient(135deg, #5585B5 0%, #5BA8CC 100%);
    padding: 80px 0;
}

.ct-section-label {
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.ct-section-title {
    font-weight: 700;
    margin-bottom: 16px;
}

/* ──────────────────────────────────────────────────────────
   Hero
────────────────────────────────────────────────────────── */
.ct-hero {
    background: linear-gradient(160deg, #EBF1F8 0%, #F8FAFD 60%, #EDF3F9 100%);
    padding: 100px 0 80px;
}

.ct-hero-headline {
    font-weight: 800;
    line-height: 1.15;
    color: #3A6BA8;
}

.ct-hero-sub {
    color: #546E7A;
    line-height: 1.7;
}

/* ──────────────────────────────────────────────────────────
   Pillar cards
────────────────────────────────────────────────────────── */
.ct-pillar-card {
    height: 100%;
    border-radius: 12px !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ct-pillar-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(74, 127, 193, 0.10) !important;
}

/* ──────────────────────────────────────────────────────────
   How it works steps
────────────────────────────────────────────────────────── */
.ct-step {
    padding: 24px;
    border-left: 3px solid #7AA3C8;
    height: 100%;
}

/* ──────────────────────────────────────────────────────────
   Comparison table
────────────────────────────────────────────────────────── */
.ct-compare-us {
    font-weight: 700;
    color: #4A7FC1;
}

/* ──────────────────────────────────────────────────────────
   Pricing cards
────────────────────────────────────────────────────────── */
.ct-pricing-card {
    height: 100%;
    border-radius: 12px !important;
}

.ct-pricing-featured {
    border: 2px solid #7AA3C8 !important;
}

/* ──────────────────────────────────────────────────────────
   CTA section (white text on blue bg)
────────────────────────────────────────────────────────── */
.ct-section-cta .mud-typography,
.ct-section-cta .mud-text-secondary {
    color: rgba(255, 255, 255, 0.85) !important;
}

.ct-cta-headline {
    font-weight: 700;
    color: #FFFFFF !important;
}

.ct-section-cta .mud-button-outlined {
    border-color: rgba(255, 255, 255, 0.6) !important;
    color: #FFFFFF !important;
}

/* ──────────────────────────────────────────────────────────
   Footer
────────────────────────────────────────────────────────── */
.ct-footer {
    background-color: #2E3654;
    padding: 56px 0 32px;
}

.ct-footer .mud-typography,
.ct-footer .mud-text-secondary,
.ct-footer .ct-brand {
    color: rgba(255, 255, 255, 0.85) !important;
}

.ct-footer .mud-link {
    color: rgba(255, 255, 255, 0.55) !important;
    text-decoration: none;
}

.ct-footer .mud-link:hover {
    color: #FFFFFF !important;
}

/* ──────────────────────────────────────────────────────────
   Utility
────────────────────────────────────────────────────────── */
.gap-4 {
    gap: 16px;
}


.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;
}

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

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

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

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

/* ──────────────────────────────────────────────────────────
   Custom mobile nav (replaces MudDrawer to avoid JS interop)
────────────────────────────────────────────────────────── */
.ct-mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1099;
}

.ct-mobile-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 260px;
    background: #FFFFFF;
    z-index: 1100;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.18);
    padding-top: 72px;
    overflow-y: auto;
}

/* ──────────────────────────────────────────────────────────
   Blazor reconnect – non-intrusive toast (bottom-right)
   Overrides the default full-screen overlay behaviour.
────────────────────────────────────────────────────────── */
#components-reconnect-modal {
    display: none;
    position: fixed !important;
    bottom: 16px !important;
    right: 16px !important;
    top: auto !important;
    left: auto !important;
    width: auto !important;
    height: auto !important;
    background: rgba(30, 30, 30, 0.88) !important;
    color: #fff !important;
    padding: 10px 16px !important;
    border-radius: 8px !important;
    font-size: 0.82rem !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35) !important;
    z-index: 9999 !important;
    pointer-events: none;
    animation: ct-fade-in 0.2s ease;
}

#components-reconnect-modal.components-reconnect-show {
    display: block;
}

#components-reconnect-modal.components-reconnect-failed,
#components-reconnect-modal.components-reconnect-rejected {
    display: block;
    pointer-events: auto;
    /* allow clicking the Reload link */
    background: rgba(180, 40, 40, 0.92) !important;
}

#components-reconnect-modal .reconnect-caption {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .reconnect-show,
#components-reconnect-modal.components-reconnect-failed .reconnect-failed,
#components-reconnect-modal.components-reconnect-rejected .reconnect-rejected {
    display: inline;
}

#components-reconnect-modal a {
    color: #fff;
    text-decoration: underline;
}

@keyframes ct-fade-in {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}