html,
body {
    background-color: #FAF9F6;
    font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

:root {
    /* OCEAN Model Colors — shared across discovery and insights */
    --nexus-openness: #f0ad4e;
    --nexus-conscientiousness: #d9534f;
    --nexus-extraversion: #d63384;
    --nexus-agreeableness: #5cb85c;
    --nexus-neuroticism: #0dcaf0;
}

/* Headings use Playfair Display */
h1,
h2,
h3,
h4,
.display-4 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
}

/* Fluid Typography */
h1,
.h1 {
    font-size: clamp(2rem, 5vw + 1rem, 3.5rem);
}

h2,
.h2 {
    font-size: clamp(1.75rem, 4vw + 1rem, 2.8rem);
}

h3,
.h3 {
    font-size: clamp(1.5rem, 3vw + 1rem, 2.25rem);
}

h4,
.h4 {
    font-size: clamp(1.25rem, 2vw + 1rem, 1.75rem);
}

p,
.text-body {
    font-size: clamp(1rem, 1vw + 0.5rem, 1.125rem);
    line-height: 1.6;
}

/* Minimum 44px touch targets for mobile */
.btn,
.nav-link,
.dropdown-item,
.form-control {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

/* Footer */
.footer {
    background-color: #0f172a;
    border-top: 3px solid #6366f1;
}

.footer-heading {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #a5b4fc;
    margin-bottom: 0.75rem;
}

.footer-link {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    display: block;
    padding: 0.35rem 0;
    font-size: 0.9rem;
    transition: color 0.15s ease;
}

.footer-link:hover {
    color: #ffffff;
}

.footer-legal {
    color: rgba(255, 255, 255, 0.45);
    text-decoration: none;
    margin: 0 0.15rem;
    font-size: 0.8rem;
    transition: color 0.15s ease;
}

.footer-legal:hover {
    color: rgba(255, 255, 255, 0.85);
}

.footer-social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.06);
    transition: background 0.2s ease, color 0.2s ease;
    text-decoration: none;
    font-size: 1rem;
}

.footer-social-icon:hover {
    background: rgba(99, 102, 241, 0.3);
    color: #ffffff;
}

.footer-cta-card {
    background: linear-gradient(135deg, #6366f1 0%, #4338ca 100%);
    border-radius: 1.25rem;
    padding: 2rem;
    box-shadow: 0 8px 32px -4px rgba(99, 102, 241, 0.35);
}

.footer-tagline {
    max-width: 300px;
}

.footer-cta-body {
    opacity: 0.85;
}

.footer-legal-sep {
    color: rgba(255, 255, 255, 0.3);
    margin: 0 0.25rem;
}

/* Landing page bottom CTA text */
.bottom-cta-text {
    max-width: 480px;
}

/* Prevent iOS Safari auto-zoom on inputs (triggered when font-size < 16px) */
input[type="text"],
input[type="email"],
input[type="password"],
textarea {
    font-size: 16px;
}

/* Navbar */
.text-indigo {
    color: #6366f1;
}

/* Navbar scaling on desktop */
@media (min-width: 992px) {
    .navbar-nav .nav-link {
        font-size: 1rem;
        padding: 0.5rem 0.75rem;
    }

    .navbar-brand {
        font-size: 1.25rem;
    }
}

/* ─── Report Navbar ─────────────────────────────────── */
.report-navbar {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 60%, #3730a3 100%);
    border-bottom: 2px solid rgba(99, 102, 241, 0.5);
    flex-shrink: 0;
}

.report-navbar-watermark {
    position: absolute;
    right: 3%;
    top: 50%;
    transform: translateY(-50%) rotate(18deg);
    font-size: 5.5rem;
    color: rgba(255, 255, 255, 0.03);
    pointer-events: none;
    line-height: 1;
    z-index: 0;
}

.report-navbar-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    position: relative;
    z-index: 1;
}

.report-navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    text-decoration: none;
    color: #fff;
    flex-shrink: 0;
    margin-right: 0.5rem;
}

.report-navbar-brand i {
    font-size: 1.25rem;
    color: #a5b4fc;
}

.report-navbar-brand-text {
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: -0.01em;
}

.report-navbar-brand:hover {
    color: #c7d2fe;
    text-decoration: none;
}

.report-navbar-tabs {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex: 1;
    justify-content: center;
}

.report-navbar-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.45rem 0.6rem;
    border-radius: 0.55rem;
    text-decoration: none;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    background: transparent;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    white-space: nowrap;
    min-height: auto;
}

.report-navbar-tab i {
    font-size: 0.85rem;
    line-height: 1;
}

.report-navbar-tab span {
    display: none;
}

.report-navbar-tab:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    text-decoration: none;
}

.report-navbar-tab.active {
    color: #fff;
    background: rgba(99, 102, 241, 0.45);
    border-color: rgba(165, 180, 252, 0.25);
    font-weight: 700;
    box-shadow: 0 2px 10px -3px rgba(99, 102, 241, 0.4);
}

.report-navbar-end {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
    margin-left: auto;
}

.report-navbar-user {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    background: rgba(99, 102, 241, 0.2);
    color: #a5b4fc;
    white-space: nowrap;
}

.report-navbar-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 0.45rem;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: all 0.15s ease;
    font-size: 0.9rem;
    min-height: auto;
}

.report-navbar-icon-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.report-navbar-tagline-strip {
    background: rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 1;
}

.report-navbar-tagline {
    text-align: center;
    font-size: 0.68rem;
    font-style: italic;
    color: rgba(199, 210, 254, 0.75);
    padding: 0.35rem 0;
    letter-spacing: 0.03em;
}

@media (min-width: 576px) {
    .report-navbar-tab span {
        display: inline;
    }

    .report-navbar-tab {
        padding: 0.5rem 0.85rem;
        font-size: 0.72rem;
    }
}

@media (min-width: 992px) {
    .report-navbar-row {
        padding: 0.6rem 0;
    }

    .report-navbar-brand-text {
        font-size: 1.2rem;
    }

    .report-navbar-tab {
        padding: 0.55rem 1.1rem;
        font-size: 0.76rem;
        border-radius: 0.6rem;
        gap: 0.4rem;
    }

    .report-navbar-tab i {
        font-size: 0.9rem;
    }

    .report-navbar-watermark {
        font-size: 7rem;
        right: 5%;
    }

    .report-navbar-tagline {
        font-size: 0.68rem;
    }
}