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

/* ──────────────────────────────────────────────────────────
   Markdown article body
────────────────────────────────────────────────────────── */
.ct-markdown-body {
    font-size: 1.05rem;
    line-height: 1.85;
    color: #2E3654;
    max-width: 72ch;
}

/* Headings — distinct size + weight hierarchy */
.ct-markdown-body h1 {
    font-size: 2rem;
    font-weight: 800;
    color: #2E3654;
    margin-top: 3rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.ct-markdown-body h2 {
    font-size: 1.45rem;
    font-weight: 700;
    color: #3A6BA8;
    margin-top: 3rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid #C5D8EC;
    line-height: 1.25;
}

.ct-markdown-body h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #3A6BA8;
    margin-top: 2rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.ct-markdown-body h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #546E7A;
    margin-top: 1.5rem;
    margin-bottom: 0.4rem;
}

.ct-markdown-body p {
    margin-bottom: 1.2rem;
}

.ct-markdown-body a {
    color: #4A7FC1;
    text-decoration: underline;
    text-decoration-color: #C5D8EC;
    text-underline-offset: 2px;
}

.ct-markdown-body a:hover {
    color: #3A6BA8;
    text-decoration-color: #4A7FC1;
}

.ct-markdown-body strong {
    font-weight: 700;
    color: #1A2340;
}

.ct-markdown-body em {
    font-style: italic;
}

.ct-markdown-body hr {
    border: none;
    border-top: 2px solid #EBF1F8;
    margin: 3rem 0;
}

.ct-markdown-body ul,
.ct-markdown-body ol {
    padding-left: 1.6rem;
    margin-bottom: 1.2rem;
}

.ct-markdown-body li {
    margin-bottom: 0.4rem;
}

.ct-markdown-body li > p {
    margin-bottom: 0.4rem;
}

.ct-markdown-body blockquote {
    border-left: 4px solid #4A7FC1;
    margin: 2rem 0;
    padding: 0.75rem 1.25rem;
    background: #F2F6FB;
    color: #3A5070;
    font-style: italic;
    border-radius: 0 6px 6px 0;
}

.ct-markdown-body blockquote p {
    margin-bottom: 0;
}

/* Code blocks — Prism tomorrow theme sits on top of this background */
.ct-markdown-body pre[class*="language-"],
.ct-markdown-body pre {
    background: #1E2A3A !important;
    border-radius: 8px !important;
    padding: 1.25rem 1.5rem !important;
    overflow-x: auto;
    margin: 1.5rem 0 2rem !important;
    font-size: 0.875rem !important;
    line-height: 1.65 !important;
    box-shadow: 0 4px 16px rgba(30,42,58,0.18);
}

.ct-markdown-body code[class*="language-"],
.ct-markdown-body pre[class*="language-"] {
    font-family: 'Consolas', 'Monaco', 'Fira Code', monospace !important;
    text-shadow: none !important;
}

/* Inline code */
.ct-markdown-body :not(pre) > code {
    font-family: 'Consolas', 'Monaco', monospace;
    background: #EBF1F8;
    color: #3A6BA8;
    padding: 0.15em 0.45em;
    border-radius: 4px;
    font-size: 0.875em;
    border: 1px solid #C5D8EC;
}

/* Tables */
.ct-markdown-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0 2rem;
    font-size: 0.95rem;
}

.ct-markdown-body thead tr {
    background: #3A6BA8;
    color: #FFFFFF;
}

.ct-markdown-body th {
    padding: 0.65rem 1rem;
    text-align: left;
    font-weight: 600;
}

.ct-markdown-body td {
    padding: 0.6rem 1rem;
    border-bottom: 1px solid #E0EAF4;
    vertical-align: top;
}

.ct-markdown-body tbody tr:nth-child(even) {
    background: #F8FAFD;
}

.ct-markdown-body tbody tr:hover {
    background: #EBF1F8;
}


.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+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 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);
    }
}

/* ──────────────────────────────────────────────────────────
   Privacy Policy Lists
────────────────────────────────────────────────────────── */
.privacy-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.privacy-list li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 12px;
    line-height: 1.6;
}

.privacy-list li::before {
    content: "●";
    position: absolute;
    left: 0;
    color: var(--mud-palette-text-secondary, #666);
    font-size: 8px;
    top: 8px;
}