/* ==================== TRUENORTH XP BRAND COLORS ==================== */
:root {
    /* Primary Colors */
    --tn-primary: #1D3557;           /* Primary Navy - buttons, headers, logo */
    --tn-primary-hover: #2E4A68;     /* Lighter Navy - hover states */
    --tn-primary-rgb: 29, 53, 87;    /* For rgba() usage */
    
    /* Accent Colors */
    --tn-accent: #B45309;            /* Copper Accent - insights, highlights */
    --tn-accent-hover: #92400E;      /* Darker copper for hover */
    
    /* Semantic Colors */
    --tn-positive: #0D9488;          /* Deep Teal - positive data, success */
    --tn-caution: #C2410C;           /* Burnt Orange - warnings, caution */
    --tn-info: #3B82F6;              /* Steel Blue - info states */
    
    /* Text Colors */
    --tn-text-primary: #0F172A;      /* Charcoal - primary text */
    --tn-text-secondary: #64748B;    /* Slate - secondary text */
    
    /* Backgrounds */
    --tn-bg-light: #F8FAFC;          /* Light Gray - backgrounds */
    --tn-bg-white: #FFFFFF;
    
    /* Borders */
    --tn-border: #E2E8F0;            /* Light border */
}

/* ==================== TYPOGRAPHY ==================== */
h1, h2, h3 {
    font-family: 'Newsreader', Georgia, serif;
}

.metric-value,
.data-number {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
}

/* ==================== BASE STYLES ==================== */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: var(--tn-bg-light);
}

main {
    flex: 1;
}

.min-vh-75 {
    min-height: 75vh;
}

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

.navbar .nav-link {
    font-weight: 500;
    color: #4b5563;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    margin: 0 0.25rem;
    position: relative;
}

.navbar .nav-link:hover {
    color: var(--tn-primary);
    background-color: rgba(var(--tn-primary-rgb), 0.08);
}

.navbar .nav-link:focus {
    color: var(--tn-primary);
}

.navbar .nav-item:not(:last-child) .nav-link::after {
    content: '';
    position: absolute;
    right: -0.35rem;
    top: 50%;
    transform: translateY(-50%);
    height: 16px;
    width: 1px;
    background-color: #e5e7eb;
}

.navbar .nav-item:not(:last-child) .nav-link:hover::after {
    opacity: 0;
}

.navbar .btn-primary {
    padding: 0.5rem 1.25rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(var(--tn-primary-rgb), 0.3);
    transition: all 0.2s ease;
}

.navbar .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(var(--tn-primary-rgb), 0.4);
}

.navbar .dropdown-menu {
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    border-radius: 12px;
    padding: 0.5rem;
}

.navbar .dropdown-item {
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-weight: 500;
    transition: all 0.15s ease;
}

.navbar .dropdown-item:hover {
    background-color: rgba(var(--tn-primary-rgb), 0.08);
    color: var(--tn-primary);
}

.dropdown-menu-features {
    min-width: 220px;
    padding: 0.75rem 0.5rem;
}

.dropdown-menu-features .dropdown-header {
    font-size: 0.65rem;
    letter-spacing: 0.05em;
    padding-top: 0.5rem;
    padding-bottom: 0.25rem;
}

.dropdown-menu-features .dropdown-item {
    font-size: 0.925rem;
}

.dropdown-menu-features .dropdown-divider {
    margin: 0.5rem 0;
}

.card {
    border-radius: 12px;
}

.btn {
    border-radius: 8px;
    font-weight: 500;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
}

.btn-primary {
    background-color: var(--tn-primary);
    border-color: var(--tn-primary);
}

.btn-primary:hover {
    background-color: var(--tn-primary-hover);
    border-color: var(--tn-primary-hover);
}

.bg-primary {
    --bs-bg-opacity: 1;
    background-color: rgba(var(--tn-primary-rgb), var(--bs-bg-opacity)) !important;
}

.text-primary {
    color: var(--tn-primary) !important;
}

.form-control:focus,
.form-range:focus {
    border-color: var(--tn-primary);
    box-shadow: 0 0 0 0.25rem rgba(var(--tn-primary-rgb), 0.25);
}

.form-range::-webkit-slider-thumb {
    background: var(--tn-primary);
}

.form-range::-moz-range-thumb {
    background: var(--tn-primary);
}

.feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.alert {
    border-radius: 8px;
    border: none;
}

.badge {
    font-weight: 500;
    padding: 0.5em 0.75em;
}

.list-group-item {
    border-left: none;
    border-right: none;
}

.list-group-item:first-child {
    border-top: none;
}

.ai-response {
    line-height: 1.8;
}

.ai-response strong {
    color: var(--tn-accent);
}

.covenant-blur {
    filter: blur(4px);
    user-select: none;
}

.shadow-sm {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08) !important;
}

.shadow-lg {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1) !important;
}

textarea.form-control {
    resize: vertical;
    min-height: 150px;
}

.border-4 {
    border-width: 4px !important;
}

.blurred-premium {
    filter: blur(3px) grayscale(0.4);
    opacity: 0.65;
    user-select: none;
    pointer-events: none;
    transition: all 0.3s ease;
}

.hover-bg-light:hover {
    background-color: rgba(var(--tn-primary-rgb), 0.05);
}

/* ==================== HOW IT WORKS SCREENSHOTS ==================== */
.hiw-screenshot {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 100%;
    height: auto;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hiw-screenshot:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

@media (max-width: 991.98px) {
    .hiw-screenshot {
        margin-top: 2rem;
    }
}

/* Screenshot Lightbox */
.screenshot-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    cursor: pointer;
    padding: 2rem;
    box-sizing: border-box;
}

.screenshot-lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.screenshot-lightbox img {
    max-width: 95%;
    max-height: 95%;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.screenshot-lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: background 0.2s ease;
}

.screenshot-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ==================== SHARED HERO SECTIONS ==================== */
/* Use .xp-hero for consistent hero treatment across all pages */
.xp-hero {
    background: linear-gradient(135deg, #1D3557 0%, #2a4a73 100%);
    border-radius: 1.25rem;
    padding: 2.5rem 3rem;
    color: white;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(29, 53, 87, 0.3);
}

.xp-hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-image: url('/static/images/pulse-hero-pattern.png');
    background-size: cover;
    background-position: center;
    opacity: 0.25;
    pointer-events: none;
    z-index: 1;
}

.xp-hero::after {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 50%;
    height: 180%;
    background: radial-gradient(ellipse at center, rgba(180, 83, 9, 0.15) 0%, transparent 60%);
    pointer-events: none;
    z-index: 1;
}

.xp-hero-content {
    position: relative;
    z-index: 2;
}

.xp-hero-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(180, 83, 9, 0.3) 0%, rgba(180, 83, 9, 0.15) 100%);
    border: 1px solid rgba(180, 83, 9, 0.3);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    flex-shrink: 0;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}

.xp-hero-title {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin: 0 0 0.5rem 0;
    letter-spacing: -0.02em;
}

.xp-hero-subtitle {
    font-size: 1.05rem;
    opacity: 0.9;
    margin: 0;
    line-height: 1.6;
    max-width: 480px;
}

@media (max-width: 991px) {
    .xp-hero {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .xp-hero {
        padding: 1.5rem;
        border-radius: 1rem;
    }
    .xp-hero-title {
        font-size: 1.5rem;
    }
    .xp-hero-icon {
        width: 48px;
        height: 48px;
        font-size: 1.4rem;
    }
}

.hero-select {
    background-color: rgba(255, 255, 255, 0.95);
    color: #1D3557;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.hero-select option {
    background-color: white;
    color: #1D3557;
}

.btn-notes-active {
    position: relative;
    background-color: #17a2b8 !important;
    border-color: #17a2b8 !important;
    color: white !important;
}

.btn-notes-active::after {
    content: '';
    position: absolute;
    top: -3px;
    right: -3px;
    width: 8px;
    height: 8px;
    background-color: #B45309;
    border-radius: 50%;
    border: 2px solid white;
}

