/* ReviewScene — slate + teal (Bootstrap-friendly) */
:root {
    --slate-950: #0f172a;
    --slate-900: #1e293b;
    --slate-600: #475569;
    --slate-500: #64748b;
    --slate-200: #e2e8f0;
    --slate-100: #f1f5f9;
    --slate-50: #f8fafc;
    --teal-600: #0d9488;
    --teal-500: #14b8a6;
    --teal-400: #2dd4bf;
    --safe: #059669;
    --caution: #d97706;
    --risk: #dc2626;
    --radius: 14px;
    --shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
    --font-sans: "DM Sans", system-ui, sans-serif;
    --font-display: "Fraunces", Georgia, serif;
}

* {
    font-family: monospace !important;
}

body {
    font-family: var(--font-sans);
    color: var(--slate-900);
    background: linear-gradient(180deg, var(--slate-50) 0%, #fff 40%, var(--slate-100) 100%);
    position: relative;
    min-height: 100vh;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image: radial-gradient(rgba(15, 23, 42, 0.55) 0.55px, transparent 0.55px);
    background-size: 24px 24px;
    opacity: 0.045;
}

h1, h2, .display-5 {
    font-family: var(--font-display);
    color: var(--slate-950);
}

.navbar-brand.logo {
    font-family: var(--font-display);
}

.hero-atmosphere {
    position: relative;
    background:
        radial-gradient(circle at 20% 20%, rgba(20, 184, 166, 0.12), transparent 45%),
        radial-gradient(circle at 80% 0%, rgba(15, 23, 42, 0.06), transparent 40%),
        linear-gradient(180deg, rgba(248, 250, 252, 0.9) 0%, transparent 100%);
}
.hero-atmosphere::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(15, 23, 42, 0.08) 1px, transparent 1px);
    background-size: 22px 22px;
    opacity: 0.35;
    pointer-events: none;
    mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
}
.hero-atmosphere > .container {
    position: relative;
    z-index: 1;
}

.skip-link {
    position: absolute;
    left: -999px;
    top: 0;
    background: var(--teal-600);
    color: #fff;
    padding: 0.5rem 1rem;
    z-index: 2000;
}
.skip-link:focus {
    left: 1rem;
    top: 1rem;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1020;
    overflow: hidden;
    background: rgba(248, 250, 252, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.site-header::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image:
        linear-gradient(rgba(15, 23, 42, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 42, 0.055) 1px, transparent 1px);
    background-size: 28px 28px;
    opacity: 0.28;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.75) 0%, transparent 96%);
}

.site-header::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: min(920px, 100%);
    height: 120px;
    transform: translateX(-50%);
    pointer-events: none;
    z-index: 0;
    background: radial-gradient(ellipse at 50% 100%, rgba(20, 184, 166, 0.16) 0%, transparent 70%);
    opacity: 0.9;
}

.site-header .navbar {
    position: relative;
    z-index: 1;
}

.site-header .header-nav-actions {
    position: relative;
    z-index: 2;
}

@media (max-width: 767.98px) {
    .site-header {
        overflow: visible;
    }

    .site-header .navbar-collapse.show,
    .site-header .navbar-collapse.collapsing {
        flex-basis: 100%;
        margin-top: 0.75rem;
        padding: 0.5rem;
        background: linear-gradient(165deg, rgba(255, 255, 255, 0.97) 0%, rgba(248, 250, 252, 0.98) 100%);
        border: 1px solid rgba(148, 163, 184, 0.38);
        border-radius: 0.75rem;
        box-shadow:
            0 14px 36px rgba(15, 23, 42, 0.1),
            0 0 0 1px rgba(20, 184, 166, 0.08),
            inset 0 1px 0 rgba(255, 255, 255, 0.85);
    }

    .site-header .navbar-collapse .navbar-nav {
        gap: 0.15rem;
        padding: 0.15rem 0;
    }

    .site-header .navbar-collapse .nav-item:not(:first-child) {
        border-top: 1px solid rgba(148, 163, 184, 0.22);
    }

    .site-header .navbar-collapse .nav-link {
        padding: 0.7rem 0.85rem;
        border-radius: 0.5rem;
        font-weight: 600;
    }

    .site-header .navbar-collapse .nav-link:hover,
    .site-header .navbar-collapse .nav-link:focus {
        background: rgba(20, 184, 166, 0.08);
    }
}


.logo {
    font-weight: 700;
    font-size: 2rem;
    text-decoration: none;
}
.logo-review {
    color: var(--slate-500);
}
.logo-scene {
    color: var(--teal-600);
}

.navbar-light .nav-link {
    font-weight: 500;
    color: var(--slate-600);
}
.navbar-light .nav-link:hover {
    color: var(--teal-600);
}

.navbar-light .nav-link.nav-social-link,
.footer-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    border-radius: 10%;
    text-decoration: none;
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.navbar-light .nav-link.nav-social-link {
    color: var(--slate-500);
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(148, 163, 184, 0.35);
}

.navbar-light .nav-link.nav-social-link:hover,
.navbar-light .nav-link.nav-social-link:focus {
    color: var(--teal-600);
    background: rgba(20, 184, 166, 0.12);
    border-color: rgba(13, 148, 136, 0.45);
}

.navbar-light .nav-link.nav-social-link .bi,
.footer-social-link .bi {
    font-size: 1.05rem;
    line-height: 1;
}

@media (min-width: 768px) {
    .navbar-nav .nav-item:last-child {
        margin-left: 0.15rem;
    }
}



.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--teal-600);
}
.hero-copy .hero-slogan {
    color: var(--safe);
}
.hero-copy .hero-slogan.band-safe { color: var(--safe); }
.hero-copy .hero-slogan.band-caution { color: var(--caution); }
.hero-copy .hero-slogan.band-risk { color: var(--risk); }



.btn-teal {
    background-color: var(--teal-600);
    border-color: var(--teal-600);
    color: #fff;
    font-weight: 600;
}
.btn-teal:hover {
    background-color: var(--teal-500);
    border-color: var(--teal-500);
    color: #fff;
}
.btn-teal:disabled {
    opacity: 0.85;
}

.btn-outline-teal {
    border-color: var(--teal-600);
    color: var(--teal-600);
}
.btn-outline-teal:hover {
    background: rgba(20, 184, 166, 0.1);
    color: var(--teal-600);
    border-color: var(--teal-600);
}

.text-teal {
    color: var(--teal-600) !important;
}

.btn-link-teal {
    color: var(--teal-600);
    font-weight: 600;
    text-decoration: none;
}
.btn-link-teal:hover {
    color: var(--teal-500);
}

.score-loading-overlay {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.88);
    border-radius: calc(var(--radius) + 4px);
    border: 1px dashed var(--slate-200);
}

.score-card {
    background: #fff;
    border-radius: calc(var(--radius) + 4px);
    padding: 1.75rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--slate-200);
    animation: rise 0.5s ease both;
}

.score-card.is-loading {
    opacity: 0.65;
    pointer-events: none;
}

@keyframes rise {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.score-band-display {
    font-family: var(--font-display);
    font-size: 1.65rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin: 0.15rem 0 0.65rem;
    transition: color 0.2s ease;
}
.score-band-display.score-band-safe { color: var(--safe); }
.score-band-display.score-band-caution { color: var(--caution); }
.score-band-display.score-band-risk { color: var(--risk); }

.score-band-display.score-band-preview {
    color: var(--slate-400);
}

.score-card.score-demo,
.score-card.score-preview {
    border-style: dashed;
    border-color: var(--slate-200);
    background: linear-gradient(180deg, #fff 0%, rgba(248, 250, 252, 0.92) 100%);
}

.score-card.score-demo .score-preview-host,
.score-card.score-demo .score-preview-caption,
.score-card.score-preview .score-preview-host,
.score-card.score-preview .score-preview-caption {
    color: var(--slate-500);
}

.score-card.score-demo.is-loading,
.score-card.score-preview.is-loading {
    opacity: 0.65;
    pointer-events: none;
}

.demo-slide {
    transition: opacity 0.35s ease;
}

.demo-slide.is-fading {
    opacity: 0.35;
}

.score-bar-block-tight {
    margin-bottom: 0.25rem;
}

.score-scale-legend {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.25rem 0.45rem;
    line-height: 1.25;
    margin-top: 0.15rem;
    margin-bottom: 0.65rem;
    font-size: 0.72rem;
}

.score-scale-item {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.score-scale-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    flex-shrink: 0;
}

.score-scale-risk { background: var(--risk); }
.score-scale-caution { background: var(--caution); }
.score-scale-safe { background: var(--safe); }

.score-scale-sep {
    opacity: 0.45;
}


.demo-factors-title {
    color: var(--slate-600);
    font-size: 0.75rem;
    letter-spacing: 0.02em;
}

.demo-factors-list {
    font-size: 0.78rem;
    color: var(--slate-500);
}

.demo-factor-item {
    margin-bottom: 0.25rem;
}

.demo-factor-item .bi {
    font-size: 0.85rem;
}

.demo-footer {
    border-top: 1px dashed var(--slate-200);
    padding-top: 0.75rem;
}




.score-placeholder .score-label {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.8rem;
    color: var(--slate-500);
}

.score-bar-caption {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--slate-600);
    margin: 0;
    font-variant-numeric: tabular-nums;
}

.score-progress {
    height: 1.15rem;
    background-color: var(--slate-200);
    overflow: hidden;
}

.score-progress-fill {
    transition: width 0.15s linear, background-color 0.2s ease;
}

.score-progress-empty {
    background-color: var(--slate-200);
    opacity: 0.7;
}

.score-host {
    font-weight: 600;
    word-break: break-all;
}

.score-host-link {
    color: var(--teal-600);
    text-decoration: none;
    word-break: break-all;
}
.score-host-link:hover {
    color: var(--teal-500);
    text-decoration: underline;
}

.score-summary {
    color: var(--slate-600);
}

.why-score-list {
    font-size: 0.875rem;
    color: var(--slate-600);
}
.why-score-item {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
}
.why-score-item .bi {
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.empty-illustration {
    color: var(--teal-600);
    margin-bottom: 0.75rem;
}
.empty-svg {
    width: 120px;
    height: 80px;
}

.placeholder-tips {
    padding-left: 1.1rem;
}


.section-sub {
    /*max-width: 42rem;*/
    line-height: 1.45;
    margin-top: 0.15rem;
}

.section-muted {
    background: rgba(241, 245, 249, 0.65);
}

.narrow-max {
    max-width: 720px;
}

.stat-card,
.check-card,
.stage-card {
    border: 1px solid var(--slate-200);
    border-radius: var(--radius);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card[data-bs-toggle="tooltip"] {
    cursor: help;
}

.stat-card:hover,
.check-card:hover,
.stage-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.stat-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--slate-500);
    font-weight: 600;
}

.stat-value {
    font-weight: 600;
    word-break: break-word;
    font-size: 0.95rem;
}

.copy-stat {
    cursor: pointer;
    border-bottom: 1px dashed var(--teal-400);
}
.copy-stat:hover {
    color: var(--teal-600);
}

.stage-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 10%;
    background: var(--teal-600);
    color: #fff;
    font-weight: 700;
    font-size: 0.82rem;
}

.faq-accordion .accordion-item {
    margin: 4px;
}
.faq-accordion .accordion-button {
    font-weight: 600;
    font-size: 0.95rem;
}
.faq-accordion .accordion-button:not(.collapsed) {
    background-color: rgba(20, 184, 166, 0.12);
    color: var(--slate-950);
}
.faq-accordion .accordion-button:focus {
    box-shadow: 0 0 0 0.2rem rgba(20, 184, 166, 0.25);
}

.site-footer {
    background-color: var(--slate-950);
    color: var(--slate-200);
    margin-top: 2rem;
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.07) 1px, transparent 1px);
    background-size: 28px 28px;
    opacity: 0.35;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9) 0%, transparent 92%);
}

.site-footer::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    width: min(920px, 100%);
    height: 220px;
    transform: translateX(-50%);
    pointer-events: none;
    background: radial-gradient(ellipse at 50% 0%, rgba(20, 184, 166, 0.22) 0%, transparent 68%);
    opacity: 0.75;
}

.header-accent,
.footer-accent {
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--teal-500), var(--teal-400), transparent);
    opacity: 0.85;
}

.header-accent {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    pointer-events: none;
}

.footer-accent {
    position: relative;
    z-index: 1;
}

.footer-main {
    padding-top: 2.5rem !important;
    padding-bottom: 2rem !important;
    position: relative;
    z-index: 1;
}

.footer-brand {
    font-family: var(--font-display);
    font-size: 1.35rem;
}

.footer-brand-block .footer-brand.logo-wrap .logo-title {
    display: block;
    font-weight: 700;
    font-size: 1.35rem;
    line-height: 1.15;
}

.footer-brand-block .footer-brand.logo-wrap .logo-slogan {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--teal-400);
    letter-spacing: 0.02em;
    margin-top: 0.15rem;
}

.footer-tagline {
    color: var(--slate-200);
    font-size: 0.95rem;
    line-height: 1.5;
    max-width: 22rem;
}

.footer-note {
    color: var(--slate-500);
}

.footer-made-removed {
    color: var(--slate-500) !important;
    font-style: italic;
}

.footer-heading {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--teal-400);
    font-weight: 700;
    margin-bottom: 0.85rem;
}

.footer-nav-col .footer-heading {
    min-height: 1.1rem;
}

.footer-brand-block .footer-copy {
    margin-top: 1rem;
}

.footer-social {
    margin-top: 0.75rem;
}

.footer-social-link {
    color: var(--slate-200);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(148, 163, 184, 0.25);
}

.footer-social-link:hover,
.footer-social-link:focus {
    color: var(--teal-400);
    background: rgba(20, 184, 166, 0.12);
    border-color: rgba(45, 212, 191, 0.45);
}

@media (min-width: 992px) {
    .footer-nav-row {
        --bs-gutter-x: 2rem;
    }
}


.footer-link-list li {
    margin-bottom: 0.4rem;
}

.footer-link-list a {
    color: var(--slate-200);
    text-decoration: none;
    font-size: 0.92rem;
}
.footer-link-list a:hover {
    color: var(--teal-400);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.footer-legal-pill {
    border: 1px solid rgba(45, 212, 191, 0.45);
    color: var(--teal-400);
    background: rgba(15, 23, 42, 0.5);
    border-radius: 10%;
    font-weight: 600;
    padding: 0.35rem 0.85rem;
}
.footer-legal-pill:hover {
    background: rgba(20, 184, 166, 0.15);
    border-color: var(--teal-400);
    color: #fff;
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
}

.footer-copy {
    color: var(--slate-500);
    font-size: 0.875rem;
}

.legal-modal-body {
    font-size: 0.95rem;
    color: var(--slate-600);
}
.legal-modal-body ul {
    padding-left: 1.25rem;
}

.toast-reviewscene {
    --bs-toast-bg: var(--slate-950);
    --bs-toast-color: #fff;
}

.about-body {
    font-size: 1rem;
    line-height: 1.65;
    max-width: none;
}


.redirect-timer-label {
    color: var(--slate-500);
}

.redirect-cancel {
    color: var(--slate-500);
    font-size: 0.8125rem;
    text-decoration: none;
}
.redirect-cancel:hover {
    color: var(--teal-600);
    text-decoration: underline;
}

.redirect-progress {
    height: 5px;
    background-color: var(--slate-200);
}

.redirect-progress-fill {
    background-color: #94a3b8;
}


.logo-wrap {
    line-height: 1.15;
}
.logo-title {
    display: block;
    font-family: var(--font-display);
    font-weight: 700;
}
.logo-slogan {
    display: block;
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 700;
    color: var(--teal-600);
    letter-spacing: 0.02em;
    margin-top: 0.15rem;
}

.site-header a.navbar-brand.logo .logo-scene,
.site-header a.navbar-brand.logo .logo-slogan {
    color: var(--teal-600);
}

.site-header a.navbar-brand.logo:hover .logo-scene,
.site-header a.navbar-brand.logo:focus .logo-scene,
.site-header a.navbar-brand.logo:hover .logo-slogan,
.site-header a.navbar-brand.logo:focus .logo-slogan {
    color: var(--teal-600);
}

.site-header a.navbar-brand.logo .logo-review {
    color: var(--slate-500);
}

.site-header a.navbar-brand.logo:hover .logo-review,
.site-header a.navbar-brand.logo:focus .logo-review {
    color: var(--slate-500);
}
.footer-brand .logo-review {
    color: var(--slate-300);
}
.footer-brand .logo-scene {
    color: var(--teal-400);
}

.footer-brand .logo-slogan {
    color: var(--teal-400);
}


.site-counter-card {
    background: #fff;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius);
    padding: 0.75rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}
.site-counter-value {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--slate-950);
    line-height: 1.1;
}
.site-counter-label {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--slate-500);
    font-weight: 600;
}

.icon-card-icon {
    font-size: 2.4rem;
    line-height: 1;
    color: var(--teal-600);
    flex-shrink: 0;
    margin-top: 0.1rem;
}
.icon-card-body {
    min-height: 100%;
}

.stage-heading .stage-badge {
    margin-bottom: 0;
}

.stage-badge {
    width: 1.75rem;
    height: 1.75rem;
    font-size: 0.82rem;
}

.hero-checks-panel {
    background: #fff;
    border: 1px solid var(--slate-200);
    border-radius: calc(var(--radius) + 4px);
    padding: 1.25rem;
    box-shadow: var(--shadow);
}

.hero-checks-panel.is-loading {
    opacity: 0.65;
    pointer-events: none;
}

.letter-spacing-sm {
    letter-spacing: 0.08em;
    color: var(--slate-600);
    font-weight: 700;
}

.icon-card-icon-compact {
    font-size: 1.5rem;
}

.hero-checks-panel .check-card {
    border-color: var(--slate-200);
}

.hero-checks-panel .card-body {
    padding: 0.85rem;
}
