/* ================================================================
   THE FLEX TRANSITION ASSESSMENT — Design System
   Aesthetic: CRE Premium (JLL/CBRE) x Hospitality Flair (WeWork)
   ================================================================ */

:root {
    --bg-body: #F6F5F1;
    --bg-surface: #FFFFFF;
    --navy: #003A70;
    --navy-mid: #002D56;
    --navy-light: #E8EFF7;
    --oak: #A6894B;
    --oak-light: rgba(166, 137, 75, 0.08);
    --slate: #1A1A1A;
    --border: #E2DFD8;
    --text-primary: #1A1A1A;
    --text-secondary: #4A4A4A;
    --text-muted: #888880;
    --success: #1A6640;
    --shadow-soft: 0 4px 20px rgba(0, 58, 112, 0.04);
    --shadow-deep: 0 12px 40px rgba(0, 58, 112, 0.08);
    --font: 'Inter', -apple-system, sans-serif;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
}

/* --- Reset --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font);
    background: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* --- Progress Line --- */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--border);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.4s;
}

.progress-bar.visible {
    opacity: 1;
}

.progress-fill {
    height: 100%;
    background: var(--oak);
    width: 0%;
    transition: width 0.6s cubic-bezier(0.65, 0, 0.35, 1);
}

/* --- App Root --- */
.app {
    min-height: 100vh;
    position: relative;
}

/* --- Screens --- */
.screen {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    min-height: 100vh;
    display: flex;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
    z-index: 1;
}

.screen.active {
    opacity: 1;
    pointer-events: all;
    z-index: 10;
}

.screen.exiting {
    opacity: 0;
    z-index: 5;
    pointer-events: none;
}

.hidden {
    display: none !important;
}

/* ================================================================
   LANDING — Full-bleed hero with cinematic gradient
   ================================================================ */
#screen-landing {
    align-items: center;
    justify-content: flex-start;
    padding: 0;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    background: #000;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.55;
    filter: grayscale(15%);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, #001A33 25%, rgba(0, 26, 51, 0.2) 100%);
}

.landing {
    padding: 12vh 8%;
    color: #fff;
    max-width: 760px;
}

.landing-brand {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    color: var(--oak);
    margin-bottom: 2.5rem;
}

.landing-headline {
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    font-weight: 700;
    line-height: 1.08;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
}

.landing-sub {
    font-size: 1.05rem;
    opacity: 0.85;
    line-height: 1.75;
    margin-bottom: 3rem;
    max-width: 520px;
}

.landing-note {
    font-size: 0.8rem;
    opacity: 0.5;
    margin-top: 2rem;
}

.landing-attribution {
    margin-top: 1.5rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 500;
}

.landing-attribution a {
    color: var(--oak);
    text-decoration: none;
    transition: color 0.2s ease;
}

.landing-attribution a:hover {
    color: #fff;
    text-decoration: underline;
}

.btn-back {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: var(--font);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.5rem 0.75rem;
    margin-right: 0.5rem;
    transition: all 0.2s ease;
    border-radius: var(--radius-sm);
}

.btn-back:hover {
    color: var(--oak);
    background: rgba(166, 137, 75, 0.05);
}

.btn-back svg {
    transition: transform 0.2s ease;
}

.btn-back:hover svg {
    transform: translateX(-2px);
}

.btn-back.hidden {
    display: none;
}

/* ================================================================
   QUESTION SCREEN — Split layout
   Compact to fit above the fold on 100vh
   ================================================================ */
#screen-question {
    min-height: 100vh;
    max-height: 100vh;
    overflow: hidden;
}

.split-layout {
    display: flex;
    width: 100%;
    height: 100vh;
    /* Lock to viewport */
}

.split-left {
    flex: 1.2;
    padding: 2.5rem 4rem 2rem;
    background: var(--bg-body);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    /* Scroll only within left pane if needed */
}

.split-right {
    flex: 0.8;
    background: #000;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 1024px) {
    .split-layout {
        flex-direction: column;
        height: auto;
    }

    .split-right {
        height: 200px;
        order: -1;
        flex: none;
    }

    .split-left {
        padding: 2rem 1.5rem;
    }

    #screen-question {
        max-height: none;
    }
}

.visual-pane {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.visual-pane img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.6s ease;
}

.visual-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 58, 112, 0.15) 0%, rgba(0, 0, 0, 0.3) 100%);
}

/* --- Brand Bar (persistent reminder) --- */
.brand-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.brand-bar-name {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--oak);
}

.brand-bar-payoff {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-style: italic;
}

/* --- Progress Header (compact) --- */
.q-progress-header {
    margin-bottom: 1.5rem;
}

.q-step-track {
    display: flex;
    gap: 6px;
    margin-bottom: 0.6rem;
}

.q-step {
    flex: 1;
    height: 3px;
    background: var(--border);
    border-radius: 3px;
    transition: background 0.4s;
}

.q-step.active,
.q-step.completed {
    background: var(--navy);
}

.q-meta {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

.q-counter {
    color: var(--navy);
}

/* --- Question Content (compact) --- */
.question-phase {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--oak);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.question-text {
    font-size: clamp(1.4rem, 2.5vw, 1.9rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.question-context {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    max-width: 560px;
    line-height: 1.55;
}

.question-context:empty {
    display: none;
}

/* --- Option Cards (compact) --- */
.options-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.option-card {
    background: var(--bg-surface);
    padding: 0.85rem 1.15rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    transition: all 0.15s ease;
    animation: slideUp 0.25s ease-out both;
}

.option-card:nth-child(1) {
    animation-delay: 30ms;
}

.option-card:nth-child(2) {
    animation-delay: 60ms;
}

.option-card:nth-child(3) {
    animation-delay: 90ms;
}

.option-card:nth-child(4) {
    animation-delay: 120ms;
}

.option-card:nth-child(5) {
    animation-delay: 150ms;
}

.option-card:hover {
    border-color: var(--navy);
    box-shadow: var(--shadow-soft);
}

.option-card.selected {
    border-color: var(--navy);
    background: var(--navy-light);
}

.option-icon {
    width: 22px;
    height: 22px;
    min-width: 22px;
    color: var(--text-muted);
    transition: color 0.15s;
}

.option-icon svg {
    width: 100%;
    height: 100%;
}

.option-card:hover .option-icon {
    color: var(--navy);
}

.option-card.selected .option-icon {
    color: var(--navy);
}

.option-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
}

/* --- Insight (compact) --- */
.insight-box {
    background: var(--oak-light);
    padding: 1rem 1.15rem;
    border-radius: var(--radius-md);
    border-left: 3px solid var(--oak);
    display: flex;
    gap: 0.75rem;
    margin-top: 0.75rem;
    animation: slideUp 0.3s ease-out;
}

.insight-box.hidden {
    display: none;
}

.insight-icon {
    color: var(--oak);
    flex-shrink: 0;
    margin-top: 2px;
}

.insight-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.55;
}

/* --- Continue Row (compact) --- */
.continue-row {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

.continue-hint {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-style: italic;
}

.continue-hint.hidden {
    display: none;
}

/* --- Buttons --- */
.btn-primary,
.btn-continue {
    background: var(--navy);
    color: #fff;
    border: none;
    padding: 1rem 2rem;
    border-radius: var(--radius-sm);
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    transition: all 0.2s;
    font-family: var(--font);
}

.btn-primary:hover,
.btn-continue:hover {
    background: var(--navy-mid);
    transform: translateY(-1px);
}

/* CTA Button Glow Animation */
@keyframes ctaGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 42, 80, 0.4);
    }

    70% {
        box-shadow: 0 0 0 12px rgba(0, 42, 80, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 42, 80, 0);
    }
}

.landing-actions .btn-primary {
    animation: ctaGlow 2.5s infinite;
    position: relative;
    overflow: hidden;
}

/* Subtle Shimmer Overlay */
.landing-actions .btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg,
            transparent 0%,
            transparent 40%,
            rgba(255, 255, 255, 0.15) 50%,
            transparent 60%,
            transparent 100%);
    background-size: 200% 100%;
    animation: shimmer 5s infinite linear;
    pointer-events: none;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border);
    padding: 1rem 2rem;
    border-radius: var(--radius-sm);
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font);
}

.btn-secondary:hover {
    border-color: var(--navy);
    background: var(--navy-light);
}

/* ================================================================
   MILESTONE — Center card
   ================================================================ */
/* ================================================================
   MILESTONE — Full-bleed cinematic interlude
   ================================================================ */
#screen-milestone {
    align-items: center;
    justify-content: center;
    background: #0A1929;
    overflow: hidden;
}

.milestone-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.2;
    z-index: 0;
    filter: grayscale(40%);
}

.milestone-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(10, 25, 41, 0.6) 0%, rgba(10, 25, 41, 0.9) 100%);
}

.milestone-center {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    max-width: 560px;
    padding: 3rem 2rem;
}

.milestone-badge {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    color: var(--oak);
    margin-bottom: 2.5rem;
}

.milestone-progress-visual {
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 300px;
    margin: 0 auto 2.5rem;
}

.milestone-bar-track {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.milestone-bar-fill {
    width: 50%;
    height: 100%;
    background: var(--oak);
    border-radius: 4px;
    animation: barGrow 1s ease-out 0.3s both;
}

@keyframes barGrow {
    from {
        width: 0;
    }

    to {
        width: 50%;
    }
}

.milestone-pct {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--oak);
    letter-spacing: -0.02em;
}

.milestone-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.025em;
    line-height: 1.2;
    color: #fff;
}

.milestone-sub {
    font-size: 0.95rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 2rem;
}

.milestone-sub strong {
    color: rgba(255, 255, 255, 0.9);
}

.milestone-divider {
    width: 40px;
    height: 2px;
    background: var(--oak);
    margin: 0 auto 2rem;
    opacity: 0.6;
}

.btn-milestone {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 1rem 2rem;
    border-radius: var(--radius-sm);
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font);
    transition: all 0.2s;
    letter-spacing: 0.02em;
}

.btn-milestone:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--oak);
    color: var(--oak);
}

/* ================================================================
   GENERATING SCREEN — Visually exciting data viz animation
   ================================================================ */
#screen-generating {
    align-items: center;
    justify-content: center;
    background: var(--navy);
    min-height: 100vh;
}

.generating-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    padding: 3rem 2rem;
    color: #fff;
}

.generating-header {
    margin-bottom: 2rem;
}

/* Animated concentric rings */
.generating-spinner {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 2.5rem;
}

.spinner-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.spinner-ring:nth-child(1) {
    inset: 0;
    border-top-color: var(--oak);
    animation: spin 1.4s linear infinite;
}

.spinner-ring:nth-child(2) {
    inset: 12px;
    border-right-color: rgba(255, 255, 255, 0.5);
    animation: spin 2s linear infinite reverse;
}

.spinner-ring:nth-child(3) {
    inset: 24px;
    border-bottom-color: var(--oak);
    animation: spin 1s linear infinite;
}

/* Center dot */
.generating-spinner::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 12px;
    margin: -6px 0 0 -6px;
    background: var(--oak);
    border-radius: 50%;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.4);
        opacity: 1;
    }
}

.generating-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
    color: #fff;
}

.generating-sub {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 3rem;
    line-height: 1.6;
}

.generating-steps {
    display: flex;
    flex-direction: column;
    gap: 0;
    text-align: left;
    max-width: 420px;
    margin: 0 auto;
}

.gen-step {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.25);
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    position: relative;
    border-left: 2px solid rgba(255, 255, 255, 0.08);
    transition: all 0.4s ease;
}

.gen-step::before {
    content: '';
    position: absolute;
    left: -5px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.4s ease;
}

.gen-step.active {
    color: rgba(255, 255, 255, 0.95);
    border-left-color: var(--oak);
}

.gen-step.active::before {
    background: var(--oak);
    box-shadow: 0 0 12px rgba(166, 137, 75, 0.6);
}

.gen-step.done {
    color: rgba(255, 255, 255, 0.45);
    border-left-color: rgba(255, 255, 255, 0.2);
}

.gen-step.done::before {
    background: rgba(255, 255, 255, 0.3);
    box-shadow: none;
}

/* ================================================================
   REPORT — Executive Deliverable
   ================================================================ */
#screen-report {
    justify-content: flex-start;
    padding: 0;
}

.report-wrapper {
    width: 100%;
}

/* Top toolbar */
.report-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 4%;
    border-bottom: 1px solid var(--border);
    background: var(--bg-surface);
    position: sticky;
    top: 0;
    z-index: 50;
}

.report-topbar-brand {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--oak);
}

.report-topbar-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-topbar {
    background: transparent;
    border: 1px solid var(--border);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-secondary);
    font-family: var(--font);
    transition: all 0.15s;
}

.btn-topbar:hover {
    border-color: var(--navy);
    color: var(--navy);
    background: var(--navy-light);
}

/* Hero Section */
.report-hero {
    background: var(--navy);
    color: #fff;
    padding: 4rem 4% 3.5rem;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 3rem;
    flex-wrap: wrap;
    position: relative;
    overflow: hidden;
}

.report-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.15;
    z-index: 0;
    filter: grayscale(30%);
}

.report-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(135deg, rgba(0, 42, 80, 0.85) 0%, rgba(0, 58, 112, 0.65) 100%);
}

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

.report-hero-signals {
    position: relative;
    z-index: 2;
}

.report-hero-title {
    font-size: clamp(2.2rem, 4.5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.03em;
    margin-bottom: 0.75rem;
}

.report-hero-sub {
    font-size: 1rem;
    opacity: 0.65;
    margin-bottom: 0.5rem;
}

.report-hero-date {
    font-size: 0.8rem;
    opacity: 0.4;
}

/* Profile Signal Cards */
.report-hero-signals {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.signal-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.8rem 1.25rem;
    border-radius: var(--radius-md);
    min-width: 130px;
    backdrop-filter: blur(4px);
}

.signal-label {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    opacity: 0.5;
    margin-bottom: 0.3rem;
}

.signal-value {
    font-size: 0.88rem;
    font-weight: 700;
}

.signal-low .signal-value {
    color: #7CCA93;
}

.signal-mid .signal-value {
    color: var(--oak);
}

.signal-high .signal-value {
    color: #F27A5E;
}

.signal-neutral .signal-value {
    color: rgba(255, 255, 255, 0.85);
}

/* Executive Summary */
.report-summary-section {
    padding: 2.5rem 4%;
    border-bottom: 1px solid var(--border);
    max-width: 900px;
}

.report-summary-label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--oak);
    margin-bottom: 1rem;
}

.report-summary-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

/* Tabs */
.report-tabs-wrapper {
    padding: 0 4%;
    border-bottom: 1px solid var(--border);
    background: var(--bg-surface);
    position: sticky;
    top: 46px;
    z-index: 49;
}

.report-tabs {
    display: flex;
    gap: 0;
    max-width: 900px;
}

.report-tab {
    padding: 1rem 1.5rem;
    border: none;
    background: none;
    cursor: pointer;
    font-family: var(--font);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
    white-space: nowrap;
}

.report-tab:hover {
    color: var(--text-primary);
}

.report-tab.active {
    color: var(--navy);
    border-bottom-color: var(--navy);
}

.tab-icon {
    font-size: 1rem;
}

.tab-count {
    font-size: 0.65rem;
    font-weight: 700;
    background: var(--border);
    color: var(--text-muted);
    padding: 0.15rem 0.45rem;
    border-radius: 10px;
    line-height: 1;
}

.report-tab.active .tab-count {
    background: var(--navy-light);
    color: var(--navy);
}

/* Tab Panels */
.tab-panel {
    display: none;
    max-width: 900px;
}

.tab-panel.active {
    display: block;
}

/* Panel Banner Image */
.panel-banner {
    position: relative;
    height: 160px;
    overflow: hidden;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    margin: 2rem 4% 0;
    max-width: 900px;
}

.panel-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.panel-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.05) 100%);
}

.panel-banner-content {
    position: absolute;
    bottom: 1.25rem;
    left: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: #fff;
    z-index: 2;
}

.panel-banner-icon {
    font-size: 1.4rem;
}

.panel-banner-title {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.panel-body {
    padding: 1.5rem 4%;
    max-width: 900px;
}

.panel-header {
    margin-bottom: 2rem;
}

.panel-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.panel-intro {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Numbered Question Cards */
.question-cards {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.question-card {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border);
    animation: cardSlideIn 0.35s ease-out both;
}

.question-card:last-child {
    border-bottom: none;
}

.question-num {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--border);
    min-width: 40px;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
}

.question-body {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.65;
    padding-top: 0.15rem;
}

@keyframes cardSlideIn {
    from {
        opacity: 0;
        transform: translateX(-8px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Metrics Dashboard */
.report-metrics-section {
    padding: 3rem 4%;
    border-top: 1px solid var(--border);
    background: var(--bg-body);
}

.report-metrics-header {
    max-width: 900px;
    margin-bottom: 2rem;
}

.report-metrics-header h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.report-metrics-header p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.metrics-dashboard {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1px;
    background: var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    max-width: 900px;
}

.metric-tile {
    background: var(--bg-surface);
    padding: 1.5rem;
    text-align: center;
}

.metric-number {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 0.25rem;
    letter-spacing: -0.02em;
}

.metric-name {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.metric-detail {
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* Next Steps CTA */
.report-next {
    padding: 3rem 4%;
    background: var(--navy-light);
    border-top: 1px solid var(--border);
}

.report-next-content {
    max-width: 900px;
}

.report-next-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.report-next-content p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 600px;
}

.cta-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* Footer */
.report-footer {
    padding: 2rem 4%;
    border-top: 1px solid var(--border);
}

.report-footer p {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.report-disclaimer {
    margin-top: 0.2rem;
}

/* --- Animations --- */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .split-layout {
        flex-direction: column;
        height: auto;
    }

    .split-right {
        height: 180px;
        order: -1;
        flex: none;
    }

    .split-left {
        padding: 2rem 1.5rem;
    }

    #screen-question {
        max-height: none;
        overflow-y: auto;
    }
}

@media (max-width: 640px) {
    .landing {
        padding: 15vh 6% 5%;
    }

    .landing-headline {
        font-size: 2.2rem;
    }

    /* Buttons */
    .btn-primary,
    .btn-secondary,
    .btn-continue,
    .btn-milestone {
        width: 100%;
        justify-content: center;
    }

    /* Questions */
    .question-text {
        font-size: 1.6rem;
    }

    .options-grid {
        gap: 6px;
    }

    .option-card {
        padding: 0.75rem 1rem;
    }

    /* Report Layout */
    .report-hero {
        padding: 3rem 6% 2.5rem;
        flex-direction: column;
        align-items: flex-start;
    }

    .report-hero-signals {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .signal-card {
        min-width: 0;
    }

    /* Scrollable Tabs */
    .report-tabs-wrapper {
        top: 0;
        /* Align with sticky topbar or handle accordingly */
        padding: 0;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .report-tabs {
        padding: 0 4%;
        width: max-content;
        min-width: 100%;
    }

    .report-tab {
        padding: 0.85rem 1rem;
        font-size: 0.78rem;
    }

    /* Metrics Dashboard */
    .metrics-dashboard {
        grid-template-columns: 1fr 1fr;
        gap: 1px;
    }

    .metric-tile {
        padding: 1.25rem 0.75rem;
    }

    .metric-number {
        font-size: 1.3rem;
    }

    /* CTA Section */
    .cta-actions {
        flex-direction: column;
        gap: 0.75rem;
    }

    /* Interlude */
    .milestone-center {
        padding: 2rem 1.5rem;
    }

    .milestone-title {
        font-size: 1.5rem;
    }
}

/* --- Print --- */
@media print {

    /* --- Base Reset & Setup --- */
    body,
    html,
    .app,
    .report-wrapper {
        background: #fff !important;
        color: #1a1a1a !important;
        height: auto !important;
        overflow: visible !important;
        position: static !important;
        font-size: 11pt !important;
        /* Standard print size */
    }

    /* Force background colors and images */
    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    /* --- Hide UI Elements --- */
    .hero-bg,
    .split-right,
    .btn-primary,
    .btn-secondary,
    .progress-bar,
    #screen-landing,
    #screen-question,
    #screen-generating,
    #screen-milestone,
    .email-modal-overlay,
    .report-topbar,
    .report-tabs-wrapper,
    .cta-actions,
    .report-next,
    .report-footer p:not(:first-child) {
        display: none !important;
    }

    /* --- Report Container --- */
    #screen-report {
        display: block !important;
        position: static !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    .report-wrapper {
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* --- Hero Section --- */
    .report-hero {
        background: #002A50 !important;
        /* Premium Navy */
        color: #fff !important;
        padding: 40pt !important;
        min-height: auto !important;
        border-bottom: 4pt solid #A6894B !important;
        /* Oak Accent */
        page-break-after: avoid;
    }

    .report-hero-title {
        font-size: 28pt !important;
        margin-bottom: 10pt !important;
    }

    .report-hero-sub {
        font-size: 14pt !important;
        opacity: 0.9 !important;
    }

    .report-hero-signals {
        margin-top: 20pt !important;
        display: grid !important;
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 10pt !important;
    }

    .signal-card {
        background: rgba(255, 255, 255, 0.1) !important;
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
        padding: 8pt !important;
        min-width: 0 !important;
    }

    .signal-value {
        font-size: 10pt !important;
    }

    /* --- Summary Section --- */
    .report-summary-section {
        padding: 30pt 40pt !important;
        background: #f9f9f7 !important;
        border-bottom: 1px solid #e2dfd8 !important;
    }

    /* --- Stakeholder Sections (Tab Panels) --- */
    .tab-panel {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        page-break-before: always;
        /* Each stakeholder gets a fresh page start */
        margin: 0 !important;
    }

    .panel-banner {
        height: 120pt !important;
        margin: 0 !important;
        border-radius: 0 !important;
        position: relative !important;
    }

    .panel-banner img {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .panel-banner-content {
        bottom: 20pt !important;
        left: 30pt !important;
    }

    .panel-body {
        padding: 30pt 40pt !important;
    }

    /* --- Question Cards --- */
    .question-cards {
        gap: 0 !important;
    }

    .question-card {
        display: flex !important;
        gap: 20pt !important;
        padding: 15pt 0 !important;
        border-bottom: 1px solid #e2dfd8 !important;
        page-break-inside: avoid;
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
    }

    .question-num {
        color: #A6894B !important;
        /* Professional Gold/Oak */
        font-size: 18pt !important;
        font-weight: 700 !important;
        opacity: 1 !important;
    }

    .question-body {
        font-size: 12pt !important;
        color: #1a1a1a !important;
        line-height: 1.5 !important;
    }

    /* --- Metrics Dashboard --- */
    .report-metrics-section {
        page-break-before: always;
        padding: 40pt !important;
        background: #fff !important;
    }

    .metrics-dashboard {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        /* More space for paper */
        gap: 10pt !important;
        background: none !important;
    }

    .metric-tile {
        border: 1px solid #e2dfd8 !important;
        padding: 15pt !important;
        page-break-inside: avoid;
    }

    .metric-number {
        font-size: 20pt !important;
    }

    /* --- Footer --- */
    .report-footer {
        padding: 20pt 40pt !important;
        border-top: 1px solid #e2dfd8 !important;
        text-align: center !important;
    }
}

/* ================================================================
   EMAIL CAPTURE MODAL
   ================================================================ */
.email-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.email-modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.email-modal {
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 440px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    transform: translateY(20px) scale(0.97);
    transition: transform 0.3s ease;
}

.email-modal-overlay.active .email-modal {
    transform: translateY(0) scale(1);
}

.email-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--text-muted);
    line-height: 1;
    z-index: 2;
}

.email-modal-close:hover {
    color: var(--text-primary);
}

.email-modal-header {
    background: var(--navy);
    color: #fff;
    padding: 2rem 2rem 1.75rem;
    text-align: center;
}

.email-modal-badge {
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    color: var(--oak);
    margin-bottom: 0.75rem;
}

.email-modal-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    letter-spacing: -0.01em;
}

.email-modal-sub {
    font-size: 0.85rem;
    opacity: 0.6;
}

.email-form {
    padding: 2rem;
}

.email-field {
    margin-bottom: 1.25rem;
}

.email-field label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
}

.email-field .optional {
    color: var(--text-muted);
    font-weight: 400;
}

.email-field input {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 0.9rem;
    color: var(--text-primary);
    background: var(--bg-body);
    transition: border-color 0.15s, box-shadow 0.15s;
}

.email-field input:focus {
    outline: none;
    border-color: var(--navy);
    box-shadow: 0 0 0 3px rgba(0, 58, 112, 0.08);
}

.email-field input::placeholder {
    color: var(--text-muted);
}

.email-submit {
    width: 100%;
    justify-content: center;
}

.email-privacy {
    text-align: center;
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 1rem;
}

.email-success {
    padding: 3rem 2rem;
    text-align: center;
}

.email-success-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #1A6640;
    color: #fff;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    animation: scaleIn 0.3s ease-out;
}

.email-success h4 {
    font-size: 1.2rem;
    margin-bottom: 0.4rem;
    color: var(--text-primary);
}

.email-success p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.email-share-link {
    margin-top: 1.5rem;
    text-align: left;
}

.email-share-link label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}

.share-link-row {
    display: flex;
    gap: 0.5rem;
}

.share-link-row input {
    flex: 1;
    padding: 0.6rem 0.8rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 0.78rem;
    color: var(--text-primary);
    background: var(--bg-body);
}

.btn-copy {
    padding: 0.6rem 1rem;
    border: 1px solid var(--navy);
    background: var(--navy);
    color: #fff;
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s;
}

.btn-copy:hover {
    opacity: 0.85;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }

    to {
        transform: scale(1);
    }
}