:root {
    --invara-primary: #EB1D27;
    --invara-primary-dark: #9F0F1D;
    --invara-text: #1e293b;
    --invara-text-muted: #64748b;
    --invara-bg: #ffffff;
    --invara-bg-subtle: #f8fafc;
    --invara-border: #e2e8f0;
    --bs-primary: #EB1D27;
    --bs-primary-rgb: 235, 29, 39;
    --bs-link-color: #EB1D27;
    --bs-link-hover-color: #9F0F1D;
}

html, body {
    font-family: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: var(--invara-text);
    background-color: var(--invara-bg);
    line-height: 1.6;
}

a {
    color: var(--invara-primary);
}

a:hover {
    color: var(--invara-primary-dark);
}

h1:focus {
    outline: none;
}

.marketing-site {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.marketing-main {
    flex: 1;
}

.section {
    padding: 3.5rem 0;
}

.section--subtle {
    background-color: var(--invara-bg-subtle);
}

.section__inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.section__inner--wide {
    max-width: 1100px;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-left: 0.75rem;
    border-left: 4px solid var(--invara-primary);
}

.lead {
    font-size: 1.125rem;
    color: var(--invara-text-muted);
}

.text-muted {
    color: var(--invara-text-muted) !important;
}

.btn-invara {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.25rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #fff;
    background-color: var(--invara-primary);
    border: none;
    border-radius: 0.375rem;
    text-decoration: none;
    transition: background-color 0.15s ease;
}

.btn-invara:hover {
    background-color: var(--invara-primary-dark);
    color: #fff;
}

.btn-invara-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--invara-primary);
    background-color: transparent;
    border: 1px solid var(--invara-border);
    border-radius: 0.375rem;
    text-decoration: none;
    transition: border-color 0.15s ease, color 0.15s ease;
}

.btn-invara-outline:hover {
    border-color: var(--invara-primary);
    color: var(--invara-primary-dark);
}

.feature-list {
    margin: 0;
    padding-left: 1.25rem;
}

.feature-list li {
    margin-bottom: 0.5rem;
}

.placeholder-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    background-color: #e2e8f0;
    border: 1px dashed #cbd5e1;
    border-radius: 0.5rem;
    color: var(--invara-text-muted);
    font-size: 0.875rem;
}

.placeholder-image--hero {
    aspect-ratio: 16 / 9;
    min-height: 200px;
}

.placeholder-image--card {
    aspect-ratio: 4 / 3;
    min-height: 160px;
}

.marketing-image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
    border: 1px solid var(--invara-border);
}

.marketing-image--hero {
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.marketing-image--platform {
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.hero {
    padding: 3rem 0 2rem;
}

.hero__grid {
    display: grid;
    gap: 2rem;
    align-items: center;
}

@media (min-width: 768px) {
    .hero__grid {
        grid-template-columns: 1fr 1fr;
    }

    .hero {
        padding: 4rem 0 3rem;
    }
}

.hero__title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.hero__subtitle {
    font-size: 1.125rem;
    color: var(--invara-text-muted);
    margin-bottom: 1.5rem;
}

.trust-line {
    font-size: 0.875rem;
    color: var(--invara-text-muted);
    text-align: center;
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--invara-border);
    border-bottom: 1px solid var(--invara-border);
    background-color: var(--invara-bg-subtle);
}

.contact-card {
    background: var(--invara-bg);
    border: 1px solid var(--invara-border);
    border-radius: 0.5rem;
    padding: 1.5rem;
}

.contact-card + .contact-card {
    margin-top: 1rem;
}

@media (min-width: 576px) {
    .contact-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .contact-card + .contact-card {
        margin-top: 0;
    }
}

.status-banner {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 0.5rem;
    padding: 1rem 1.25rem;
    font-size: 0.9375rem;
}

.legal-doc {
    max-width: 720px;
}

.legal-doc h2 {
    font-size: 1.375rem;
    font-weight: 600;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--invara-border);
}

.legal-doc h2:first-of-type {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.legal-doc h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.legal-doc p,
.legal-doc li {
    margin-bottom: 0.75rem;
}

.legal-toc {
    background: var(--invara-bg-subtle);
    border: 1px solid var(--invara-border);
    border-radius: 0.5rem;
    padding: 1.25rem 1.5rem;
    margin-bottom: 2rem;
}

.legal-toc ul {
    margin: 0;
    padding-left: 1.25rem;
}

.legal-toc li {
    margin-bottom: 0.35rem;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--invara-bg);
    border-bottom: 1px solid var(--invara-border);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.site-header__inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.site-header__logo img {
    height: 36px;
    width: auto;
}

.site-header__nav {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.site-header__nav a {
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: none;
    color: var(--invara-text);
}

.site-header__nav a:hover,
.site-header__nav a.active {
    color: var(--invara-primary);
}

.site-header__nav a.btn-invara,
.site-header__nav a.btn-invara:hover {
    color: #fff;
}

.site-footer {
    background-color: var(--invara-text);
    color: #e2e8f0;
    padding: 2.5rem 0;
    margin-top: auto;
}

.site-footer a {
    color: #fca5a5;
}

.site-footer a:hover {
    color: #fff;
}

.site-footer__inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.site-footer__grid {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 576px) {
    .site-footer__grid {
        grid-template-columns: 1fr 1fr;
    }
}

.site-footer__logo img {
    height: 32px;
    width: auto;
    opacity: 0.95;
}

.site-footer__bottom {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 0.8125rem;
    color: #94a3b8;
}

.blazor-error-boundary {
    background: #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred."
}

#blazor-error-ui {
    background: #ffffe0;
    bottom: 0;
    box-shadow: 0 -1px 4px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}
