:root {
    --bg-dark: #0a0f18;
    --bg-panel: #0f1623;
    --bg-card: #131a26;
    --bg-card-hover: #1a2233;
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
    --text-soft: #cbd5e1;
    --accent-blue: #3b82f6;
    --accent-blue-hover: #2563eb;
    --accent-green: #10b981;
    --accent-red: #ef4444;
    --border-color: #2e3b4e;
    --border-soft: rgba(148, 163, 184, 0.18);
    --font-sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    background:
        radial-gradient(circle at top left, rgba(59, 130, 246, 0.16), transparent 32rem),
        radial-gradient(circle at top right, rgba(16, 185, 129, 0.10), transparent 30rem),
        var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
}

.site-shell {
    min-height: 100vh;
}

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 2rem;
}

.site-header {
    padding: 1.75rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.logo {
    display: inline-flex;
    align-items: center;
    width: 200px;
    text-decoration: none;
}

.logo img {
    display: block;
    width: 100%;
    height: auto;
}

.nav-link {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: #fff;
}

.hero {
    padding: 5.5rem 0 4.5rem;
    text-align: center;
    max-width: 920px;
    margin: 0 auto;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.35rem;
    padding: 0.38rem 0.8rem;
    border: 1px solid rgba(59, 130, 246, 0.35);
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.08);
    color: #bfdbfe;
    font-family: var(--font-mono);
    font-size: 0.78rem;
}

.eyebrow-dot {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 999px;
    background: var(--accent-green);
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0.08);
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 4.45rem);
    line-height: 1.05;
    margin: 0 0 1.35rem;
    color: #fff;
    letter-spacing: 0;
}

.hero h2 {
    max-width: 760px;
    margin: 0 auto 2rem;
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    line-height: 1.55;
    font-weight: 400;
    color: var(--text-muted);
}

.hero-note {
    max-width: 820px;
    margin: 0 auto 2.5rem;
    font-size: 1.08rem;
    color: var(--text-soft);
    border-left: 2px solid var(--accent-blue);
    text-align: left;
    background: rgba(59, 130, 246, 0.06);
    padding: 1.35rem 1.5rem;
    border-radius: 0 8px 8px 0;
}

.hero-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2.25rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3.25rem;
    background-color: var(--accent-blue);
    color: #fff;
    padding: 0.95rem 1.35rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-family: var(--font-mono);
    font-size: 0.86rem;
    transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
    border: 1px solid transparent;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--accent-blue-hover);
    box-shadow: 0 4px 18px rgba(59, 130, 246, 0.42);
    transform: translateY(-1px);
}

.btn:disabled {
    cursor: not-allowed;
    opacity: 0.68;
    transform: none;
    box-shadow: none;
}

.btn-secondary {
    background: rgba(15, 22, 35, 0.85);
    border-color: var(--border-color);
    color: var(--text-main);
}

.btn-secondary:hover {
    background: rgba(26, 34, 51, 0.95);
    border-color: #475569;
    box-shadow: none;
}

.service-strip {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.7rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.76rem;
}

.service-strip span {
    padding: 0.42rem 0.65rem;
    border: 1px solid var(--border-soft);
    border-radius: 999px;
    background: rgba(19, 26, 38, 0.72);
}

.section {
    padding: 4.75rem 0;
}

.section-tight {
    padding: 3.75rem 0;
}

.section-title {
    max-width: 760px;
    margin: 0 auto 3rem;
    text-align: center;
}

.section-title-compact {
    margin-bottom: 1.75rem;
}

.section-title .label {
    display: block;
    margin-bottom: 0.75rem;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent-blue);
}

.section-title h2,
.panel h2 {
    color: #fff;
    letter-spacing: 0;
}

.section-title h2 {
    margin: 0;
    font-size: clamp(1.8rem, 3vw, 2.55rem);
    line-height: 1.15;
}

.section-title p {
    margin: 1rem 0 0;
    color: var(--text-muted);
    font-size: 1.05rem;
}

.comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.card {
    background: linear-gradient(180deg, rgba(19, 26, 38, 0.96), rgba(15, 22, 35, 0.96));
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2.35rem;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.card:hover {
    transform: translateY(-4px);
    border-color: #475569;
    background: var(--bg-card-hover);
}

.card-header {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.4rem;
    display: inline-block;
    padding: 0.25rem 0.7rem;
    border-radius: 5px;
}

.card-before .card-header {
    background: rgba(239, 68, 68, 0.1);
    color: #fca5a5;
}

.card-after .card-header {
    background: rgba(16, 185, 129, 0.1);
    color: #86efac;
}

.card h3 {
    font-size: 1.45rem;
    margin: 0 0 1.2rem;
    color: #fff;
    letter-spacing: 0;
}

.comparison ul,
.feature-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.comparison li,
.feature-list li {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    color: var(--text-main);
}

.comparison li:last-child,
.feature-list li:last-child {
    margin-bottom: 0;
}

.icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 3px;
}

.card-before .icon {
    color: var(--accent-red);
}

.card-after .icon,
.audit-item .icon {
    color: var(--accent-green);
}

.feature-list .icon {
    color: var(--accent-blue);
}

.target-grid,
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.target-grid {
    gap: 1.25rem;
}

.target-card {
    background: rgba(19, 26, 38, 0.74);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.65rem;
}

.target-card h3,
.step h3 {
    color: #fff;
}

.target-card h3 {
    margin: 0 0 0.75rem;
    font-size: 1.05rem;
}

.target-card p,
.step p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.target-card p,
.step p,
.panel p {
    margin: 0;
}

.steps {
    gap: 2rem;
}

.step {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 8px;
}

.step-number {
    font-family: var(--font-mono);
    font-size: 3rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.15);
    margin-bottom: 1rem;
    line-height: 1;
}

.step h3 {
    font-size: 1.22rem;
    margin: 0 0 0.9rem;
}

.split {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 2rem;
    align-items: start;
}

.panel {
    background: linear-gradient(180deg, rgba(19, 26, 38, 0.96), rgba(15, 22, 35, 0.98));
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2.25rem;
}

.panel h2 {
    font-size: 1.85rem;
    line-height: 1.2;
    margin: 0 0 1rem;
}

.panel p {
    color: var(--text-muted);
    margin-bottom: 1.15rem;
}

.panel p:last-child {
    margin-bottom: 0;
}

.audit-list {
    display: grid;
    gap: 0.85rem;
    margin-top: 1.35rem;
}

.audit-item {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 0.95rem;
    background: rgba(10, 15, 24, 0.55);
    border: 1px solid var(--border-soft);
    border-radius: 8px;
    color: var(--text-soft);
}

.pricing-section {
    border-top: 1px solid var(--border-soft);
}

.pricing-summary {
    max-width: 820px;
    margin: -1rem auto 2rem;
    padding: 1rem 1.25rem;
    border-left: 2px solid var(--accent-green);
    border-radius: 0 8px 8px 0;
    background: rgba(16, 185, 129, 0.07);
    color: var(--text-soft);
    font-size: 1.02rem;
    font-weight: 700;
}

.pricing-intro {
    max-width: 880px;
    margin: 0 auto 2rem;
    padding: 2rem;
    background: rgba(10, 15, 24, 0.48);
    border: 1px solid var(--border-soft);
    border-radius: 8px;
}

.pricing-intro h3,
.pricing-card h3,
.pricing-cta h3 {
    color: #fff;
    letter-spacing: 0;
}

.pricing-intro h3 {
    margin: 0 0 0.85rem;
    font-size: 1.35rem;
}

.pricing-intro p {
    margin: 0 0 1rem;
    color: var(--text-muted);
}

.pricing-intro p:last-child {
    margin-bottom: 0;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.pricing-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 1.55rem;
    background: linear-gradient(180deg, rgba(19, 26, 38, 0.96), rgba(15, 22, 35, 0.96));
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.pricing-card.highlighted {
    border-color: rgba(16, 185, 129, 0.64);
    box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.12), 0 18px 45px rgba(16, 185, 129, 0.08);
}

.pricing-card h3 {
    margin: 0 0 0.75rem;
    font-size: 1.1rem;
    line-height: 1.25;
}

.pricing-card p {
    margin: 0 0 1rem;
    color: var(--text-muted);
    font-size: 0.94rem;
}

.pricing-card .price {
    margin-bottom: 1.1rem;
    color: #fff;
    font-family: var(--font-mono);
    font-size: 1rem;
    font-weight: 700;
}

.pricing-card .note {
    margin-top: auto;
    margin-bottom: 0;
    padding-top: 1rem;
    border-top: 1px solid var(--border-soft);
    color: var(--text-soft);
    font-size: 0.9rem;
}

.pricing-cta {
    max-width: 820px;
    margin: 2rem auto 0;
    padding: 2rem;
    text-align: center;
    background: rgba(59, 130, 246, 0.07);
    border: 1px solid rgba(59, 130, 246, 0.24);
    border-radius: 8px;
}

.pricing-cta h3 {
    margin: 0 0 0.75rem;
    font-size: 1.35rem;
}

.pricing-cta p {
    max-width: 680px;
    margin: 0 auto 1.35rem;
    color: var(--text-muted);
}

.contact-section {
    padding: 5.5rem 0 6rem;
    border-top: 1px solid var(--border-color);
    background: linear-gradient(180deg, rgba(19, 26, 38, 0), rgba(19, 26, 38, 0.96));
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 2rem;
    align-items: start;
}

.contact-copy h2 {
    color: #fff;
    font-size: clamp(1.9rem, 3vw, 2.6rem);
    line-height: 1.15;
    letter-spacing: 0;
    margin: 0 0 1rem;
}

.contact-copy p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin: 0 0 1.2rem;
}

.contact-note {
    margin-top: 1.5rem;
    padding: 1.1rem;
    border-left: 2px solid var(--accent-green);
    border-radius: 0 8px 8px 0;
    background: rgba(16, 185, 129, 0.07);
    color: var(--text-soft);
    font-size: 0.95rem;
}

.contact-form {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.form-group.full {
    grid-column: 1 / -1;
}

label {
    color: var(--text-soft);
    font-size: 0.85rem;
    font-weight: 600;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: #0b111c;
    color: var(--text-main);
    padding: 0.9rem 0.95rem;
    font: inherit;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

textarea {
    min-height: 140px;
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    border-color: rgba(59, 130, 246, 0.72);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
}

.form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.25rem;
}

.form-hint {
    color: var(--text-muted);
    font-size: 0.82rem;
}

.form-error {
    margin-top: 1rem;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(239, 68, 68, 0.42);
    border-radius: 8px;
    background: rgba(239, 68, 68, 0.10);
    color: #fecaca;
    font-size: 0.92rem;
}

.validation-message,
.validation-errors {
    color: #fca5a5;
    font-size: 0.82rem;
}

.validation-errors {
    margin: 1rem 0 0;
    padding-left: 1.1rem;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: 1.25rem;
    background: rgba(5, 9, 16, 0.72);
    backdrop-filter: blur(8px);
}

.thank-you-modal {
    width: min(100%, 440px);
    border: 1px solid rgba(16, 185, 129, 0.34);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(19, 26, 38, 0.98), rgba(15, 22, 35, 0.98));
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
    padding: 2rem;
    color: var(--text-main);
}

.thank-you-modal h2 {
    margin: 0 0 0.75rem;
    color: #fff;
    font-size: 1.45rem;
}

.thank-you-modal p {
    margin: 0 0 1.5rem;
    color: var(--text-soft);
}

.footer {
    padding: 2rem 0;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    border-top: 1px solid rgba(46, 59, 78, 0.7);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}

.footer-link {
    color: var(--text-muted);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.footer-link:hover {
    color: #fff;
    border-bottom-color: var(--accent-blue);
}

h1:focus {
    outline: none;
}

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

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

.blazor-error-boundary {
    background: #b32121;
    padding: 1rem;
    color: white;
}

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

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder {
    text-align: start;
}

@media (max-width: 900px) {
    .comparison,
    .target-grid,
    .steps,
    .split,
    .pricing-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding-top: 3.75rem;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 1.15rem;
    }

    .site-header {
        padding: 1.25rem 0;
    }

    .logo {
        width: 128px;
    }

    .nav-link {
        display: none;
    }

    .hero-note,
    .card,
    .step,
    .panel,
    .pricing-intro,
    .pricing-card,
    .pricing-cta,
    .contact-form {
        padding: 1.35rem;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}

/* ===== Account / Identity scaffold pages ===== */

.account-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 3rem 1.5rem 4rem;
    gap: 2rem;
}

.account-shell__logo {
    display: inline-flex;
    width: 200px;
}

.account-shell__logo img {
    width: 100%;
    height: auto;
}

.account-shell__card {
    width: 100%;
    max-width: 480px;
    padding: 2rem 2rem 2.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.account-shell__card h1,
.account-shell__card h2 {
    color: #fff;
    margin: 0 0 0.4rem;
}

.account-shell__card h1 {
    font-size: 1.65rem;
}

.account-shell__card h2 {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 1.4rem;
}

.account-shell__card hr {
    border: none;
    border-top: 1px solid var(--border-soft);
    margin: 1rem 0 1.25rem;
}

.account-shell__card p {
    color: var(--text-soft);
    font-size: 0.95rem;
    margin: 0 0 1rem;
}

.account-shell__card a {
    color: #93c5fd;
    text-decoration: none;
}

.account-shell__card a:hover {
    text-decoration: underline;
}

/* Bootstrap class polyfills used by the Identity scaffold */
.account-shell .row {
    display: block;
}

.account-shell [class*="col-"] {
    width: 100%;
    max-width: 100%;
}

.account-shell .form-floating {
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.account-shell .form-floating > label,
.account-shell .form-label,
.account-shell .col-form-label {
    color: var(--text-soft);
    font-size: 0.85rem;
    font-weight: 600;
    margin: 0;
}

.account-shell .form-floating > input,
.account-shell .form-control {
    margin: 0;
}

.account-shell .form-check {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0.45rem 0;
}

.account-shell .form-check-input {
    width: auto;
    margin: 0;
    accent-color: var(--accent-blue);
}

.account-shell .form-check-label {
    color: var(--text-soft);
    font-size: 0.9rem;
    font-weight: 500;
}

.account-shell fieldset {
    border: none;
    margin: 0 0 1rem;
    padding: 0;
}

.account-shell fieldset legend {
    color: var(--text-soft);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0;
    margin-bottom: 0.4rem;
}

.account-shell .btn-lg {
    min-height: 3.25rem;
}

.account-shell .btn-primary,
.account-shell button[type="submit"] {
    background-color: var(--accent-blue);
    color: #fff;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.86rem;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 0.95rem 1.35rem;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.account-shell .btn-primary:hover,
.account-shell button[type="submit"]:hover {
    background-color: var(--accent-blue-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 18px rgba(59, 130, 246, 0.42);
}

.account-shell .w-100 {
    width: 100%;
}

.account-shell .text-danger {
    color: #fca5a5;
}

.account-shell .alert {
    margin: 0 0 1rem;
    padding: 0.85rem 1rem;
    border-radius: 8px;
    font-size: 0.92rem;
    border: 1px solid transparent;
}

.account-shell .alert-success {
    background: rgba(16, 185, 129, 0.10);
    border-color: rgba(16, 185, 129, 0.42);
    color: #a7f3d0;
}

.account-shell .alert-danger {
    background: rgba(239, 68, 68, 0.10);
    border-color: rgba(239, 68, 68, 0.42);
    color: #fecaca;
}

/* ===== Audit wizard ===== */

.audit-header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.culture-switcher {
    display: inline-flex;
    background: rgba(15, 22, 35, 0.7);
    border: 1px solid var(--border-soft);
    border-radius: 999px;
    padding: 0.18rem;
    gap: 0.18rem;
}

.culture-switcher__form {
    margin: 0;
}

.culture-switcher__button {
    background: transparent;
    color: var(--text-muted);
    border: none;
    padding: 0.32rem 0.78rem;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    border-radius: 999px;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.culture-switcher__button:hover:not(:disabled) {
    color: #fff;
}

.culture-switcher__button.is-active {
    background: var(--accent-blue);
    color: #fff;
    cursor: default;
}

.nav-link--button {
    background: transparent;
    border: 1px solid var(--border-soft);
    color: var(--text-muted);
    padding: 0.38rem 0.85rem;
    border-radius: 999px;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    cursor: pointer;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.nav-link--button:hover {
    color: #fff;
    border-color: var(--accent-blue);
}

.audit-loading {
    text-align: center;
    color: var(--text-muted);
    padding: 4rem 0;
}

.audit-stepper {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0 auto 2.25rem;
    max-width: 900px;
    padding: 0.5rem;
    background: rgba(15, 22, 35, 0.6);
    border: 1px solid var(--border-soft);
    border-radius: 12px;
}

.audit-stepper__item {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.6rem 0.85rem;
    background: transparent;
    color: var(--text-muted);
    border: 1px solid transparent;
    border-radius: 8px;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    cursor: pointer;
    text-align: left;
    transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.audit-stepper__item:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.02);
}

.audit-stepper__index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.76rem;
    font-weight: 700;
}

.audit-stepper__item.is-done .audit-stepper__index {
    background: var(--accent-green);
    color: #022c22;
}

.audit-stepper__item.is-active {
    background: rgba(59, 130, 246, 0.10);
    border-color: rgba(59, 130, 246, 0.45);
    color: #fff;
}

.audit-stepper__item.is-active .audit-stepper__index {
    background: var(--accent-blue);
    color: #fff;
}

.audit-stepper__label {
    font-weight: 600;
}

.audit-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.8rem 1.8rem 2rem;
    margin-top: 1.4rem;
}

.audit-card h3 {
    color: #fff;
    margin: 0 0 0.9rem;
    font-size: 1.05rem;
}

.audit-card + .audit-card {
    margin-top: 1rem;
}

.audit-row {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
    padding: 1rem 1.1rem 2.2rem;
    border: 1px solid var(--border-soft);
    border-radius: 10px;
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.015);
}

.audit-row .form-group.full {
    grid-column: 1 / -1;
}

.audit-row__remove {
    position: absolute;
    right: 0.75rem;
    bottom: 0.6rem;
    min-height: 2.1rem;
    padding: 0.4rem 0.85rem;
    font-size: 0.78rem;
}

.audit-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    max-width: 900px;
    margin: 2rem auto 0;
    padding: 1.1rem 1.4rem;
    background: rgba(15, 22, 35, 0.55);
    border: 1px solid var(--border-soft);
    border-radius: 12px;
}

.audit-save-status {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-muted);
    flex: 1 1 auto;
    text-align: center;
}

.audit-save-status.is-ok {
    color: var(--accent-green);
}

.audit-save-status.is-error {
    color: #fca5a5;
}

.audit-summary {
    display: grid;
    grid-template-columns: minmax(180px, max-content) 1fr;
    gap: 0.55rem 1.25rem;
    margin: 0 0 1.5rem;
}

.audit-summary dt {
    color: var(--text-muted);
    font-size: 0.82rem;
}

.audit-summary dd {
    margin: 0;
    color: var(--text-main);
    white-space: pre-wrap;
}

.target-card .form-group {
    margin-top: 0.55rem;
}

@media (max-width: 720px) {
    .audit-row {
        grid-template-columns: 1fr;
    }
    .audit-stepper {
        flex-direction: column;
    }
    .audit-actions {
        flex-direction: column;
        align-items: stretch;
    }
}

/* ===== Admin views ===== */

.audit-card--narrow {
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.admin-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0 0 1.5rem;
    padding: 0.4rem;
    background: rgba(15, 22, 35, 0.6);
    border: 1px solid var(--border-soft);
    border-radius: 10px;
}

.admin-tabs__item {
    color: var(--text-muted);
    text-decoration: none;
    padding: 0.5rem 0.85rem;
    border-radius: 6px;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.admin-tabs__item:hover {
    background: rgba(255, 255, 255, 0.03);
    color: #fff;
}

.admin-tabs__item.is-active {
    background: rgba(59, 130, 246, 0.14);
    color: #fff;
}

.admin-table-wrap {
    overflow-x: auto;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 0.95rem 1.1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-soft);
    vertical-align: middle;
}

.admin-table th {
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: rgba(255, 255, 255, 0.02);
}

.admin-table tbody tr:last-child td {
    border-bottom: none;
}

.admin-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.015);
}

.admin-table__sub {
    color: var(--text-muted);
    font-size: 0.78rem;
    margin-top: 0.15rem;
}

.admin-table__edit {
    min-height: 2.2rem;
    padding: 0.45rem 1rem;
    font-size: 0.78rem;
}

.status {
    display: inline-block;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    border: 1px solid var(--border-soft);
    color: var(--text-soft);
}

.status--draft           { color: var(--text-muted); border-color: var(--border-soft); }
.status--clientsubmitted { color: #bfdbfe; border-color: rgba(59, 130, 246, 0.45); background: rgba(59, 130, 246, 0.10); }
.status--admininprogress { color: #fde68a; border-color: rgba(217, 119, 6, 0.45); background: rgba(217, 119, 6, 0.10); }
.status--completed       { color: #bbf7d0; border-color: rgba(16, 185, 129, 0.45); background: rgba(16, 185, 129, 0.10); }

.risk-group {
    margin: 0 0 1.2rem;
    padding: 1.1rem 1.3rem 1.3rem;
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    background: rgba(15, 22, 35, 0.55);
}

.risk-group h3 {
    margin: 0 0 0.9rem;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.risk-count {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
}

.risk-group--critical    { border-color: rgba(239, 68, 68, 0.45); }
.risk-group--critical h3 { color: #fecaca; }
.risk-group--important   { border-color: rgba(217, 119, 6, 0.45); }
.risk-group--important h3{ color: #fde68a; }
.risk-group--opportunity { border-color: rgba(16, 185, 129, 0.45); }
.risk-group--opportunity h3 { color: #bbf7d0; }

.opportunity-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.opportunity-row .form-group.full {
    grid-column: 1 / -1;
}

.opportunity-score {
    grid-column: 1 / -1;
    font-family: var(--font-mono);
    font-size: 0.84rem;
    color: var(--text-soft);
    padding: 0.5rem 0;
}

.opportunity-score strong {
    color: #fff;
    font-size: 1rem;
}

@media (max-width: 720px) {
    .opportunity-row {
        grid-template-columns: 1fr;
    }
}

/* ===== Auth-aware site header nav (AuthMenu) ===== */

.site-header__nav {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav-link--accent {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.4rem 0.85rem;
    border: 1px solid rgba(59, 130, 246, 0.4);
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.10);
    color: #bfdbfe;
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.nav-link--accent:hover {
    background: rgba(59, 130, 246, 0.18);
    color: #fff;
    border-color: var(--accent-blue);
    transform: translateY(-1px);
}

.auth-menu__email {
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.02em;
}

.auth-menu__logout-form {
    margin: 0;
    display: inline-flex;
}

@media (max-width: 720px) {
    .site-header__nav {
        gap: 0.55rem;
    }
    .auth-menu__email {
        display: none;
    }
}


/* ===== Audit wizard v2 — progress bar, breadcrumb, key question ===== */

/* The wizard runs inside the AuditLayout container — drop the big marketing
   hero so the form is visible immediately, and tighten the per-step section
   padding (default .section is 4.75rem which made the form fall below fold). */
.audit-wizard {
    padding-top: 1.5rem;
}

.audit-wizard .section {
    padding: 0 0 1.25rem;
}

.audit-wizard .section-title {
    margin: 0 0 1rem;
    max-width: none;
    text-align: left;
}

/* The .section-title .label repeats the current step name, which already
   appears in the breadcrumb and progress meta — hide it. */
.audit-wizard .section-title .label {
    display: none;
}

.audit-wizard .section-title h2 {
    font-size: 1.45rem;
    line-height: 1.2;
}

.audit-wizard .section-title p {
    font-size: 0.95rem;
    margin-top: 0.4rem;
}

.audit-subhead {
    margin: 1.5rem 0 0.6rem;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0;
}

/* Compact one-line-per-vendor layout (Wizard step 7) */
.audit-vendors {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin-bottom: 1rem;
}

.audit-vendors__head,
.audit-vendors__row {
    display: grid;
    grid-template-columns: 170px 1.4fr 110px 2fr 2.2rem;
    gap: 0.55rem;
    align-items: center;
}

.audit-vendors__head {
    padding: 0 0.4rem 0.25rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.audit-vendors__row > input,
.audit-vendors__row > select {
    margin: 0;
    padding: 0.5rem 0.7rem;
    font-size: 0.9rem;
}

.audit-vendors__row > input[type="number"] {
    text-align: right;
}

.audit-vendors__remove {
    width: 2.2rem;
    height: 2.2rem;
    padding: 0;
    background: transparent;
    border: 1px solid var(--border-soft);
    border-radius: 6px;
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

.audit-vendors__remove:hover {
    color: #fca5a5;
    border-color: rgba(239, 68, 68, 0.5);
    background: rgba(239, 68, 68, 0.08);
}

@media (max-width: 720px) {
    .audit-vendors__head {
        display: none;
    }
    .audit-vendors__row {
        grid-template-columns: 1fr 2.2rem;
        gap: 0.4rem;
        padding: 0.5rem;
        border: 1px solid var(--border-soft);
        border-radius: 8px;
    }
    .audit-vendors__row > input,
    .audit-vendors__row > select {
        grid-column: 1;
    }
    .audit-vendors__remove {
        grid-column: 2;
        grid-row: 1 / span 4;
        align-self: start;
    }
}

.audit-progress {
    max-width: 900px;
    margin: 0 auto 1rem;
    padding: 0;
}

.audit-progress__bar {
    height: 0.65rem;
    background: rgba(15, 22, 35, 0.65);
    border: 1px solid var(--border-soft);
    border-radius: 999px;
    overflow: hidden;
    position: relative;
}

.audit-progress__fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-green));
    border-radius: 999px;
    transition: width 0.35s ease;
}

.audit-progress__meta {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    margin-top: 0.55rem;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-muted);
}

.audit-progress__msg {
    color: var(--text-soft);
    font-weight: 600;
    letter-spacing: 0;
    text-align: right;
}

.audit-breadcrumb {
    max-width: 900px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: stretch;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.audit-breadcrumb__chip {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.6rem 0.9rem;
    background: rgba(15, 22, 35, 0.6);
    border: 1px solid var(--border-soft);
    border-radius: 10px;
    color: var(--text-soft);
    font-family: var(--font-sans);
    text-align: left;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.audit-breadcrumb__chip:hover {
    background: rgba(255, 255, 255, 0.03);
    color: #fff;
    border-color: var(--accent-blue);
}

.audit-breadcrumb__chip--current {
    background: rgba(59, 130, 246, 0.10);
    border-color: rgba(59, 130, 246, 0.45);
    color: #fff;
    cursor: default;
    flex: 1 1 0;
}

.audit-breadcrumb__chip--current:hover {
    background: rgba(59, 130, 246, 0.10);
    color: #fff;
    border-color: rgba(59, 130, 246, 0.45);
}

.audit-breadcrumb__role {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
}

.audit-breadcrumb__name {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.2;
}

.audit-breadcrumb__toggle {
    flex: 0 0 auto;
    align-self: center;
    background: transparent;
    border: 1px solid var(--border-soft);
    border-radius: 999px;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    padding: 0.4rem 0.85rem;
    cursor: pointer;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.audit-breadcrumb__toggle:hover {
    color: #fff;
    border-color: var(--accent-blue);
}

.audit-key-question {
    max-width: 900px;
    margin: 0 auto 1.4rem;
    padding: 1.4rem 1.6rem;
    background: rgba(59, 130, 246, 0.06);
    border-left: 3px solid var(--accent-blue);
    border-radius: 0 10px 10px 0;
    color: #e2e8f0;
    font-size: 1.1rem;
    line-height: 1.5;
    font-style: italic;
}

@media (max-width: 720px) {
    .audit-breadcrumb {
        flex-direction: column;
    }
    .audit-breadcrumb__chip,
    .audit-breadcrumb__toggle {
        flex: 1 1 auto;
        text-align: center;
        align-items: center;
    }
    .audit-progress__meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    .audit-progress__msg {
        text-align: left;
    }
}

/* ===== Printable audit report (/admin/audits/{id}/report) ===== */

/* The report page overrides the dark theme with a light, paper-like layout
   that prints cleanly. The dark app shell behind it is hidden visually. */
body:has(.audit-report) {
    background: #f3f4f6;
}

.audit-report {
    max-width: 920px;
    margin: 2rem auto;
    padding: 3rem 3.25rem;
    background: #ffffff;
    color: #0f172a;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-family: var(--font-sans);
    line-height: 1.55;
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.08);
}

.audit-report h1,
.audit-report h2,
.audit-report h3 {
    color: #0f172a;
    letter-spacing: 0;
}

.audit-report__header {
    border-bottom: 2px solid #0f172a;
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
}

.audit-report__brand {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #475569;
    margin-bottom: 0.6rem;
}

.audit-report__header h1 {
    font-size: 2rem;
    line-height: 1.2;
    margin: 0 0 1.25rem;
}

.audit-report__meta {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 0.35rem 1.25rem;
    margin: 0 0 1.5rem;
    font-size: 0.92rem;
}

.audit-report__meta dt {
    color: #475569;
    font-weight: 600;
}

.audit-report__meta dd {
    margin: 0;
    color: #0f172a;
}

.audit-report__actions {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.audit-report__actions .btn,
.audit-report__actions .btn-secondary {
    min-height: 2.6rem;
    padding: 0.5rem 1rem;
    font-size: 0.82rem;
}

.audit-report__section {
    margin: 2rem 0;
    page-break-inside: avoid;
}

.audit-report__section h2 {
    font-size: 1.35rem;
    margin: 0 0 0.85rem;
    border-bottom: 1px solid #cbd5e1;
    padding-bottom: 0.4rem;
}

.audit-report__section h3 {
    font-size: 1.05rem;
    margin: 1.4rem 0 0.55rem;
}

.audit-report__list,
.audit-report__qa {
    display: grid;
    grid-template-columns: minmax(220px, max-content) 1fr;
    gap: 0.45rem 1.5rem;
    margin: 0;
}

.audit-report__list dt,
.audit-report__qa dt {
    color: #475569;
    font-weight: 600;
}

.audit-report__list dd,
.audit-report__qa dd {
    margin: 0;
    color: #0f172a;
    white-space: pre-wrap;
}

.audit-report__bullets {
    margin: 0;
    padding-left: 1.2rem;
}

.audit-report__bullets li {
    margin-bottom: 0.4rem;
}

.audit-report__table {
    width: 100%;
    border-collapse: collapse;
    margin: 0.5rem 0;
    font-size: 0.92rem;
}

.audit-report__table th,
.audit-report__table td {
    text-align: left;
    padding: 0.55rem 0.7rem;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: top;
}

.audit-report__table th {
    background: #f1f5f9;
    color: #475569;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.05em;
}

.audit-report__num {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.audit-report__sub {
    color: #64748b;
    font-size: 0.82rem;
    margin-top: 0.2rem;
}

.audit-report__quote {
    margin: 0 0 1rem;
    padding: 0.85rem 1.1rem;
    background: #f1f5f9;
    border-left: 3px solid #3b82f6;
    border-radius: 0 4px 4px 0;
    font-style: italic;
    color: #0f172a;
}

.audit-report__empty {
    color: #64748b;
    font-style: italic;
    margin: 0.5rem 0;
}

.audit-report__hint {
    color: #475569;
    font-size: 0.88rem;
    margin: 0 0 0.6rem;
}

.audit-report__risk--critical    { color: #b91c1c; }
.audit-report__risk--important   { color: #b45309; }
.audit-report__risk--opportunity { color: #047857; }

.audit-report__footer {
    margin-top: 2.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
    color: #64748b;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.05em;
}

@media print {
    /* Make the report fill the page, hide everything else, ensure dark
       theme remnants don't leak ink-wasting backgrounds. */
    body, html {
        background: #ffffff !important;
    }
    .audit-report {
        max-width: none;
        margin: 0;
        padding: 0;
        border: none;
        box-shadow: none;
    }
    .audit-report__actions,
    #blazor-error-ui {
        display: none !important;
    }
    .audit-report__section {
        page-break-inside: avoid;
    }
    .audit-report__section h2 {
        page-break-after: avoid;
    }
    a {
        color: inherit;
        text-decoration: none;
    }
}

/* ===== References index and case study pages ===== */

.references-index .hero {
    max-width: 880px;
    padding: 2.5rem 0 2rem;
}

.references-index .hero h1 {
    margin-bottom: 0.9rem;
    font-size: clamp(2rem, 4.25vw, 3.65rem);
}

.references-index .hero h2 {
    max-width: 720px;
    margin-bottom: 0;
    font-size: clamp(1rem, 1.7vw, 1.18rem);
    line-height: 1.45;
}

.reference-list {
    padding: 2.25rem 0 4.75rem;
}

.reference-list .section-title-compact {
    margin-bottom: 1.75rem;
}

.reference-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
    gap: 1.25rem;
}

.reference-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-height: 250px;
    padding: 2rem;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(19, 26, 38, 0.96), rgba(15, 22, 35, 0.96));
    color: inherit;
    text-decoration: none;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.reference-card:hover {
    transform: translateY(-3px);
    border-color: rgba(59, 130, 246, 0.5);
    background: var(--bg-card-hover);
}

.reference-card .label {
    margin-bottom: 0.8rem;
    color: var(--accent-blue);
    font-family: var(--font-mono);
    font-size: 0.74rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.reference-card h3 {
    margin: 0 0 0.85rem;
    color: #fff;
    font-size: 1.45rem;
    line-height: 1.22;
    letter-spacing: 0;
}

.reference-card p {
    margin: 0 0 1.45rem;
    color: var(--text-soft);
    font-size: 0.98rem;
    line-height: 1.55;
}

.reference-card__link {
    margin-top: auto;
    color: #bfdbfe;
    font-family: var(--font-mono);
    font-size: 0.8rem;
}

.case-detail > .section:first-of-type {
    padding-top: 2.75rem;
}

.case-detail > .section:first-of-type .section-title-compact {
    margin-bottom: 1.25rem;
}

.case-detail > .section:first-of-type .section-title h1 {
    margin: 0;
    color: #fff;
    letter-spacing: 0;
    line-height: 1.15;
    font-size: clamp(1.7rem, 2.7vw, 2.25rem);
}

.case-summary {
    max-width: 820px;
    margin: 0 auto 2.5rem;
    color: var(--text-soft);
    font-size: 1.05rem;
    text-align: center;
    line-height: 1.6;
}

.case-scale {
    text-align: center;
    margin: 1.5rem 0 1.25rem;
    color: var(--text-soft);
    font-size: 0.95rem;
}

.case-scale strong {
    color: #fff;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-right: 0.5rem;
}

/* Big number cards — "11h", "<20 €", etc. */
.metric-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin: 0 0 3rem;
}

.metric-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1.6rem 1.1rem;
    text-align: center;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.metric-card:hover {
    transform: translateY(-2px);
    border-color: rgba(59, 130, 246, 0.45);
}

.metric-value {
    color: #fff;
    font-family: var(--font-mono);
    font-size: 2.1rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 0.55rem;
    letter-spacing: -0.02em;
}

.metric-label {
    color: var(--text-muted);
    font-size: 0.82rem;
    line-height: 1.3;
}

/* Tech stack pills */
.tech-strip {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.55rem;
    margin: 1.5rem 0 0.5rem;
}

.tech-strip span {
    padding: 0.42rem 0.8rem;
    border: 1px solid rgba(59, 130, 246, 0.32);
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.06);
    color: #bfdbfe;
    font-family: var(--font-mono);
    font-size: 0.74rem;
    letter-spacing: 0.02em;
}

.architecture-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin: 0 0 1.75rem;
}

.architecture-card {
    padding: 1.45rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: rgba(19, 26, 38, 0.75);
    text-align: center;
}

.architecture-value {
    margin-bottom: 0.4rem;
    color: var(--accent-blue);
    font-family: var(--font-mono);
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.1;
}

.architecture-label {
    color: var(--text-soft);
    font-size: 0.86rem;
    line-height: 1.35;
}

.pillar-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.pillar-card {
    padding: 1.8rem 1.55rem;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(19, 26, 38, 0.96), rgba(15, 22, 35, 0.96));
}

.pillar-card__number {
    margin-bottom: 1rem;
    color: var(--accent-blue);
    font-family: var(--font-mono);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.pillar-card h3 {
    margin: 0 0 0.85rem;
    color: #fff;
    font-size: 1.15rem;
    line-height: 1.3;
    letter-spacing: 0;
}

.pillar-card p {
    margin: 0;
    color: var(--text-soft);
    font-size: 0.9rem;
    line-height: 1.58;
}

/* 5-step pipeline — horizontal flow with arrow connectors */
.pipeline {
    list-style: none;
    margin: 1rem 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1.25rem;
}

.pipeline-step {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1.5rem 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.pipeline-step__num {
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    background: var(--accent-blue);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.96rem;
    box-shadow: 0 0 0 6px rgba(59, 130, 246, 0.10);
}

.pipeline-step h4 {
    margin: 0;
    color: #fff;
    font-size: 1rem;
    line-height: 1.25;
    letter-spacing: 0;
}

.pipeline-step p {
    margin: 0;
    color: var(--text-soft);
    font-size: 0.86rem;
    line-height: 1.5;
}

/* Arrow connecting each step to the next (skipped on the last) */
.pipeline-step::after {
    content: "→";
    position: absolute;
    right: -1.05rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    color: var(--accent-blue);
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
    pointer-events: none;
}

.pipeline-step:last-child::after {
    display: none;
}

/* The wrap-up callout under the pipeline */
.bottom-line-wrap {
    padding-top: 1rem;
}

.bottom-line {
    max-width: 880px;
    margin: 0 auto;
    padding: 2.25rem 2.25rem 2rem;
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.10), rgba(16, 185, 129, 0.06));
    border: 1px solid rgba(59, 130, 246, 0.32);
    border-radius: 14px;
}

.bottom-line h3 {
    margin: 0 0 1rem;
    color: #fff;
    font-size: 1.5rem;
    letter-spacing: 0;
}

.bottom-line p {
    margin: 0 0 1rem;
    color: var(--text-soft);
    font-size: 1.02rem;
    line-height: 1.6;
}

.bottom-line__cta {
    color: #fff !important;
    font-weight: 600;
}

.bottom-line .hero-actions {
    margin: 1.5rem 0 0;
    justify-content: flex-start;
}

@media (max-width: 960px) {
    .architecture-grid,
    .metric-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .pillar-grid {
        grid-template-columns: 1fr;
    }
    .pipeline {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .pipeline-step::after {
        display: none;
    }
}

@media (max-width: 540px) {
    .reference-grid,
    .architecture-grid,
    .metric-grid,
    .pipeline {
        grid-template-columns: 1fr;
    }
    .bottom-line {
        padding: 1.6rem 1.4rem;
    }
}

/* ===== Legal pages (/tietosuoja, /privacy) ===== */

.legal-page .hero {
    padding: 4rem 0 2rem;
    text-align: left;
    max-width: 820px;
}

.legal-page .hero h1 {
    font-size: clamp(2rem, 4vw, 3rem);
}

.legal-page .hero-note {
    text-align: left;
    background: rgba(59, 130, 246, 0.06);
    border-left: 2px solid var(--accent-blue);
    padding: 0.85rem 1.1rem;
    color: var(--text-soft);
    max-width: max-content;
    margin-left: 0;
    margin-right: auto;
    font-size: 0.92rem;
}

.legal-body {
    max-width: 820px;
    margin: 0 auto;
    padding: 1rem 0 4rem;
    color: var(--text-soft);
    line-height: 1.7;
}

.legal-body h2 {
    color: #fff;
    font-size: 1.25rem;
    margin: 2.4rem 0 0.85rem;
    letter-spacing: 0;
}

.legal-body h2:first-of-type {
    margin-top: 0;
}

.legal-body p {
    margin: 0 0 1rem;
}

.legal-body a {
    color: #93c5fd;
    text-decoration: none;
    border-bottom: 1px solid rgba(147, 197, 253, 0.35);
    transition: color 0.15s ease, border-color 0.15s ease;
}

.legal-body a:hover {
    color: #fff;
    border-bottom-color: var(--accent-blue);
}

.legal-imprint {
    margin: 0 0 1.5rem;
    padding: 1.1rem 1.3rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-style: normal;
    color: var(--text-main);
    line-height: 1.7;
    font-size: 0.95rem;
}

.legal-imprint strong {
    color: #fff;
}

.legal-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem;
}

.legal-list li {
    padding: 0.55rem 0 0.55rem 1.25rem;
    border-left: 2px solid var(--border-color);
    margin-bottom: 0.6rem;
    color: var(--text-soft);
}

.legal-list li strong {
    color: #fff;
    margin-right: 0.35rem;
}

/* ===== Behind Snaips (founder section on home) ===== */

.behind-snaips {
    display: grid;
    grid-template-columns: 1fr minmax(220px, 280px);
    gap: 2.5rem;
    align-items: start;
    max-width: 920px;
    margin: 0 auto;
}

.behind-snaips__body {
    grid-column: 1;
    grid-row: 1;
}

.behind-snaips__portrait {
    margin: 0;
    grid-column: 2;
    grid-row: 1;
}

.behind-snaips__portrait img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.behind-snaips__body p {
    margin: 0 0 1.1rem;
    color: var(--text-soft);
    font-size: 1.02rem;
    line-height: 1.65;
}

.behind-snaips__body p:last-child {
    margin-bottom: 0;
}

@media (max-width: 720px) {
    .behind-snaips {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
    .behind-snaips__portrait {
        max-width: 220px;
        margin: 0 auto;
        grid-column: 1;
        grid-row: auto;
    }
    .behind-snaips__body {
        text-align: left;
        grid-column: 1;
        grid-row: auto;
    }
}
