/* ============================================================
   ReboundIQ - Business Distress Diagnostic
   Dark theme matching reboundiq.com branding
   ============================================================ */

:root {
    --teal: #2DD4A0;
    --teal-light: #8FE7CB;
    --teal-dark: #1FA87E;
    --teal-glow: rgba(45, 212, 160, 0.08);
    --teal-glow-strong: rgba(45, 212, 160, 0.15);
    --red: #EF5350;
    --red-dark: #C62828;
    --amber: #F5B041;
    --bg-body: #061520;
    --bg-card: rgba(4, 15, 24, 0.78);
    --bg-card-solid: #0A1824;
    --bg-elevated: rgba(248, 250, 251, 0.04);
    --bg-input: rgba(248, 250, 251, 0.06);
    --text-primary: #F8FAFB;
    --text-secondary: rgba(248, 250, 251, 0.56);
    --text-muted: rgba(248, 250, 251, 0.36);
    --border: rgba(248, 250, 251, 0.08);
    --border-light: rgba(248, 250, 251, 0.05);
    --border-teal: rgba(45, 212, 160, 0.2);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.5);
    --shadow-glow: 0 0 30px rgba(45, 212, 160, 0.08);
    --radius: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    background: var(--bg-body);
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---- Navigation ---- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(6, 21, 32, 0.85);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(12px);
    transition: all 0.3s;
}

.navbar.scrolled {
    background: rgba(6, 21, 32, 0.95);
    box-shadow: 0 1px 20px rgba(0,0,0,0.3);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}

.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: cover;
}

.logo-text {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-primary);
}

.logo-text .iq { color: var(--teal); }

/* Legacy logo spans - kept for compatibility */
.logo-rebound { color: var(--text-primary); }
.logo-iq { color: var(--teal); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover { color: var(--teal); }

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-secondary);
    margin: 5px 0;
    transition: 0.3s;
}

/* ---- Buttons ---- */
.btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.25s;
    line-height: 1.4;
    font-family: inherit;
}

.btn-primary {
    background: var(--teal);
    color: var(--bg-body);
}

.btn-primary:hover {
    background: var(--teal-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(45, 212, 160, 0.3);
}

.btn-secondary {
    background: var(--bg-elevated);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: rgba(248, 250, 251, 0.08);
    border-color: var(--border-teal);
}

.btn-outline {
    background: transparent;
    color: var(--teal);
    border: 1px solid var(--border-teal);
}

.btn-outline:hover {
    background: rgba(45, 212, 160, 0.08);
    border-color: var(--teal);
}

.btn-nav {
    padding: 8px 20px;
    font-size: 13px;
    border: 1px solid var(--border-teal);
    color: rgba(230, 255, 245, 0.9);
    background: transparent;
    border-radius: 8px;
}

.btn-nav:hover {
    background: rgba(45, 212, 160, 0.1);
    border-color: var(--teal);
    color: var(--teal-light);
}

.btn-lg {
    padding: 14px 32px;
    font-size: 16px;
    border-radius: 8px;
}

/* ---- Hero ---- */
.hero {
    padding: 150px 0 90px;
    background:
        radial-gradient(circle at 0% 0%, rgba(45, 212, 160, 0.08), transparent 28%),
        radial-gradient(circle at 85% 10%, rgba(45, 212, 160, 0.04), transparent 35%),
        var(--bg-body);
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(248, 250, 251, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(248, 250, 251, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.4;
    pointer-events: none;
}

.hero-content {
    max-width: 720px;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(45, 212, 160, 0.06);
    border: 1px solid var(--border-teal);
    color: var(--teal);
    font-size: 13px;
    font-weight: 600;
    border-radius: 24px;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--teal);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--teal);
}

.hero h1 {
    font-size: 46px;
    font-weight: 800;
    line-height: 1.12;
    color: var(--text-primary);
    margin-bottom: 24px;
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 36px;
    max-width: 580px;
}

.hero-cta { margin-top: 8px; }

.hero-note {
    margin-top: 14px;
    font-size: 13px;
    color: var(--text-muted);
}

/* ---- Value Proposition ---- */
.value-prop {
    padding: 90px 0;
    background: var(--bg-body);
    border-top: 1px solid var(--border);
}

.value-prop h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 48px;
    max-width: 600px;
}

.value-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.value-card {
    padding: 32px 28px;
    background: linear-gradient(rgba(255,255,255,0.04), rgba(255,255,255,0.016));
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    transition: all 0.3s;
}

.value-card:hover {
    border-color: var(--border-teal);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

.value-icon {
    width: 48px;
    height: 48px;
    background: var(--teal-glow);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--teal);
    margin-bottom: 20px;
}

.value-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.value-card p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* ---- Diagnostic Section ---- */
.diagnostic-section {
    padding: 90px 0 100px;
    background:
        radial-gradient(circle at 50% 0%, rgba(45, 212, 160, 0.06), transparent 40%),
        var(--bg-body);
    border-top: 1px solid var(--border);
}

.diagnostic-header {
    text-align: center;
    margin-bottom: 40px;
}

.diagnostic-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.diagnostic-header > p {
    font-size: 16px;
    color: var(--text-secondary);
}

.data-notice {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding: 10px 18px;
    background: rgba(45, 212, 160, 0.06);
    border: 1px solid var(--border-teal);
    border-radius: 8px;
    font-size: 13px;
    color: var(--teal-light);
}

/* ---- Progress Bar ---- */
.progress-container {
    max-width: 680px;
    margin: 0 auto 32px;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.progress-step span {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    color: var(--text-muted);
    transition: all 0.3s;
}

.progress-step.active span {
    background: var(--teal);
    border-color: var(--teal);
    color: var(--bg-body);
    box-shadow: 0 0 12px rgba(45, 212, 160, 0.3);
}

.progress-step.completed span {
    background: rgba(45, 212, 160, 0.2);
    border-color: var(--teal);
    color: var(--teal);
}

.progress-step label {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
}

.progress-step.active label { color: var(--teal); }
.progress-step.completed label { color: var(--teal-light); }

.progress-bar {
    height: 3px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--teal-dark), var(--teal));
    border-radius: 2px;
    transition: width 0.4s ease;
    width: 0%;
    box-shadow: 0 0 8px rgba(45, 212, 160, 0.4);
}

/* ---- Questionnaire Steps ---- */
.questionnaire {
    max-width: 720px;
    margin: 0 auto;
}
.questionnaire.report-mode {
    max-width: 960px;
}

.step-card {
    display: none;
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

.step-card.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

.step-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--teal);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.step-card h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.step-description {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 28px;
}

/* ---- Forms ---- */
.form-group { margin-bottom: 20px; }

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.form-group .optional {
    font-weight: 400;
    color: var(--text-muted);
    font-size: 13px;
}

.form-group .detail-hint {
    margin: 8px 0 0;
    padding: 8px 12px;
    background: #F1F5F9;
    border-left: 3px solid #94A3B8;
    border-radius: 6px;
    font-size: 12.5px;
    line-height: 1.55;
    color: #475569;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    color: var(--text-primary);
    background: var(--bg-input);
    transition: border-color 0.2s;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%238FE7CB' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

.form-group select option {
    background: #0A1824;
    color: var(--text-primary);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(45, 212, 160, 0.1);
}

.form-group textarea { resize: vertical; }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 8px;
}

.checkbox-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: var(--teal);
}

/* ---- Pill UI (band selectors) ---- */
.pill-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
}

.pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
    user-select: none;
    white-space: nowrap;
}

.pill:hover {
    background: var(--teal-glow);
    border-color: var(--border-teal);
    color: var(--text-primary);
}

.pill.is-selected,
.pill[aria-pressed="true"] {
    background: var(--teal-glow-strong);
    border-color: var(--teal);
    color: var(--teal-light);
    box-shadow: 0 0 0 1px var(--teal) inset;
}

.pill:focus-visible {
    outline: 2px solid var(--teal);
    outline-offset: 2px;
}

.pill-group.pill-error {
    outline: 2px solid var(--red-dark);
    outline-offset: 6px;
    border-radius: 12px;
    transition: outline-color 0.2s;
}

@media (max-width: 640px) {
    .pill {
        font-size: 13px;
        padding: 8px 13px;
    }
}

.step-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

/* ---- Start Screen ---- */
.start-content { text-align: center; }
.start-content h3 { margin-bottom: 28px; }

.output-preview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 32px;
    text-align: left;
}

.preview-item {
    padding: 16px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.preview-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    color: white;
    margin-bottom: 8px;
}

.preview-badge.red { background: var(--red-dark); }
.preview-badge.amber { background: var(--amber); color: #1A1A2E; }
.preview-badge.blue { background: #2563EB; }
.preview-badge.dark { background: rgba(248, 250, 251, 0.12); }

.preview-item p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.start-time {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* ---- Loading ---- */
.loading-content {
    text-align: center;
    padding: 60px 20px;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid var(--border);
    border-top-color: var(--teal);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 24px;
}

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

.loading-content h3 { margin-bottom: 12px; }
.loading-content p { color: var(--text-secondary); font-size: 15px; }
.loading-note { margin-top: 8px; font-size: 13px !important; color: var(--text-muted) !important; }

.loading-progress {
    margin: 28px auto 8px;
    max-width: 360px;
    width: 100%;
}
.loading-progress-track {
    width: 100%;
    height: 6px;
    background: rgba(148, 163, 184, 0.18);
    border-radius: 999px;
    overflow: hidden;
}
.loading-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--teal, #2DD4A0) 0%, #3B82F6 100%);
    border-radius: 999px;
    transition: width 0.4s ease-out;
}
.loading-progress-label {
    margin-top: 10px;
    font-size: 12px !important;
    color: var(--text-muted) !important;
    text-align: center;
    letter-spacing: 0.02em;
}

/* ---- Results (Legacy - kept for fallback) ---- */
.results-content { line-height: 1.7; }

/* ---- Report Layout ---- */
/* Break the report out of the narrow questionnaire container */
#resultsScreen {
    max-width: 940px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}
#resultsScreen .results-footer {
    margin-top: 0;
}

/* ============================================================
   Feedback Panel (post-diagnostic star rating + comments)
   ============================================================ */
.fb-panel {
    max-width: 940px;
    margin: 32px auto 0;
    padding: 0 16px;
}
.fb-inner {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 14px;
    padding: 28px 32px;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}
.fb-heading {
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 600;
    color: #1E293B;
    letter-spacing: -0.01em;
}
.fb-sub {
    margin: 0 0 18px;
    font-size: 14px;
    color: #64748B;
    line-height: 1.5;
}
.fb-stars {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}
.fb-star {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    line-height: 0;
    color: #CBD5E1;
    transition: color 120ms ease, transform 120ms ease;
    border-radius: 4px;
}
.fb-star svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
    display: block;
}
.fb-star:hover,
.fb-star:focus-visible {
    color: #F59E0B;
    transform: scale(1.08);
    outline: none;
}
.fb-star:focus-visible {
    box-shadow: 0 0 0 2px rgba(13, 148, 136, 0.35);
}
.fb-star.is-active {
    color: #F59E0B;
}
.fb-stars-label {
    margin-left: 10px;
    font-size: 13px;
    color: #64748B;
    font-style: italic;
}
.fb-comment-wrap {
    margin-bottom: 16px;
}
.fb-comment-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #475569;
    margin-bottom: 6px;
}
.fb-comment-wrap textarea {
    width: 100%;
    min-height: 84px;
    padding: 10px 12px;
    border: 1px solid #CBD5E1;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    color: #1E293B;
    background: #FFFFFF;
    resize: vertical;
    transition: border-color 120ms ease, box-shadow 120ms ease;
    box-sizing: border-box;
}
.fb-comment-wrap textarea:focus {
    border-color: #0D9488;
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.12);
    outline: none;
}
.fb-actions {
    display: flex;
    justify-content: flex-end;
}
.fb-submit {
    min-width: 160px;
}
.fb-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}
.fb-submit.submitting {
    opacity: 0.7;
    cursor: wait;
    pointer-events: none;
}
.fb-error {
    margin: 10px 0 0;
    font-size: 13px;
    color: #B91C1C;
}
.fb-thanks {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: #ECFDF5;
    border: 1px solid #A7F3D0;
    border-radius: 10px;
    color: #065F46;
    font-size: 14px;
    font-weight: 500;
}
@media (max-width: 640px) {
    .fb-inner { padding: 22px 18px; }
    .fb-stars-label { margin-left: 0; flex-basis: 100%; }
    .fb-actions { justify-content: stretch; }
    .fb-submit { width: 100%; }
}
/* ============================================================
   Report Output - Light Theme
   ============================================================ */
.rpt-report {
    --rpt-bg: #FFFFFF;
    --rpt-bg-alt: #F8FAFC;
    --rpt-bg-card: #FFFFFF;
    --rpt-text: #1E293B;
    --rpt-text-secondary: #475569;
    --rpt-text-muted: #94A3B8;
    --rpt-border: #E2E8F0;
    --rpt-border-light: #F1F5F9;
    --rpt-teal: #0D9488;

    max-width: 940px;
    margin: 0 auto;
    background: var(--rpt-bg);
    color: var(--rpt-text);
    border-radius: 16px;
    padding: 0 0 40px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    overflow: hidden;
}

/* Branded Header Bar */
.rpt-brand-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 32px;
    background: #061520;
    color: white;
}
.rpt-brand-logo {
    width: 36px;
    height: 36px;
    border-radius: 8px;
}
.rpt-brand-text {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.rpt-brand-name {
    font-size: 16px;
    font-weight: 800;
    color: white;
}
.rpt-brand-iq {
    color: var(--teal);
}
.rpt-brand-tagline {
    font-size: 11px;
    color: rgba(255,255,255,0.5);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.rpt-brand-date {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
}

/* Cover */
.rpt-cover {
    text-align: center;
    padding: 44px 32px 36px;
    border-bottom: 1px solid var(--rpt-border);
}
.rpt-cover-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--rpt-text-muted);
    margin-bottom: 14px;
}
.rpt-cover-company {
    font-size: 30px;
    font-weight: 800;
    color: var(--rpt-text);
    margin-bottom: 14px;
    line-height: 1.2;
}
.rpt-cover-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    color: var(--rpt-text-secondary);
}
.rpt-sep {
    display: inline-block;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--rpt-text-muted);
    vertical-align: middle;
    margin: 0 6px;
    align-self: center;
}

/* Severity Banner */
.rpt-severity-banner {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 24px;
    border-radius: 12px;
    border: 1px solid;
    margin: 28px 32px;
}
.rpt-severity-indicator {
    flex-shrink: 0;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 2px;
    color: white;
    text-align: center;
    min-width: 100px;
}
.rpt-severity-headline {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
}
.rpt-severity-sub {
    font-size: 13px;
    color: var(--rpt-text-secondary);
    margin-top: 4px;
    font-style: italic;
}

/* Executive Summary */
.rpt-exec-summary {
    padding: 0 32px 28px;
    border-bottom: 1px solid var(--rpt-border);
    margin-bottom: 28px;
}

/* Shared section typography */
.rpt-section-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--rpt-text);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.rpt-section-subtitle {
    font-size: 12px;
    color: var(--rpt-text-muted);
    margin-bottom: 16px;
    font-style: italic;
}
.rpt-section-content p {
    font-size: 14px;
    color: var(--rpt-text-secondary);
    line-height: 1.8;
    margin-bottom: 14px;
}
.rpt-section-content p:last-child {
    margin-bottom: 0;
}

/* Key Insights Callout Panel */
.rpt-insights-panel {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    padding: 0 32px;
    margin-bottom: 28px;
}
.rpt-insight-card {
    border: 1px solid;
    border-radius: 10px;
    padding: 18px 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.rpt-insight-num {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    color: white;
    font-size: 13px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.rpt-insight-text {
    font-size: 13px;
    font-weight: 600;
    color: var(--rpt-text);
    line-height: 1.5;
}

/* Key Metrics Grid */
.rpt-metrics-section {
    padding: 0 32px;
    margin-bottom: 32px;
}
.rpt-metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 16px;
}
.rpt-metric-card {
    background: var(--rpt-bg-alt);
    border: 1px solid var(--rpt-border);
    border-radius: 10px;
    padding: 18px 16px;
    position: relative;
    text-align: center;
}
.rpt-metric-dot {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
}
.rpt-metric-value {
    font-size: 22px;
    font-weight: 800;
    color: var(--rpt-text);
    margin-bottom: 4px;
}
.rpt-metric-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--rpt-text-muted);
    margin-bottom: 4px;
}
.rpt-metric-bench {
    font-size: 10px;
    color: var(--rpt-text-muted);
}

/* Gauge bars */
.rpt-gauge {
    height: 4px;
    background: #E2E8F0;
    border-radius: 2px;
    overflow: hidden;
    margin-top: 8px;
}
.rpt-gauge-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.8s ease;
}

/* Industry Assessment */
.rpt-industry-section {
    background: #F0FDF4;
    border: 1px solid #BBF7D0;
    border-radius: 12px;
    padding: 24px 28px;
    margin: 0 32px 28px;
}
.rpt-industry-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}
.rpt-industry-icon {
    font-size: 28px;
}

/* Chart Cards (used inside split layouts) */
.rpt-chart-card {
    background: var(--rpt-bg-alt);
    border: 1px solid var(--rpt-border);
    border-radius: 10px;
    padding: 20px 16px;
    text-align: center;
}
.rpt-chart-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--rpt-text);
    margin-bottom: 4px;
}
.rpt-chart-subtitle {
    font-size: 11px;
    color: var(--rpt-text-muted);
    margin-bottom: 12px;
}
.rpt-chart-svg {
    width: 100%;
    max-height: 180px;
}
.rpt-chart-svg text {
    font-family: 'Plus Jakarta Sans', sans-serif;
}

/* Donut Chart */
.rpt-donut-wrap {
    display: flex;
    align-items: center;
    gap: 18px;
    justify-content: center;
    flex-wrap: wrap;
}
.rpt-donut {
    max-width: 150px;
    flex-shrink: 0;
}
.rpt-donut-legend {
    text-align: left;
    min-width: 110px;
}
.rpt-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 12px;
}
.rpt-legend-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    flex-shrink: 0;
}
.rpt-legend-label {
    color: var(--rpt-text-secondary);
    flex: 1;
}
.rpt-legend-val {
    color: var(--rpt-text);
    font-weight: 600;
    white-space: nowrap;
}

/* Diagnostic Findings (text + charts side by side) */
.rpt-findings-section {
    padding: 0 32px;
    margin-bottom: 28px;
}
.rpt-findings-with-charts {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 24px;
    padding: 0 32px;
}
.rpt-findings-text {
    min-width: 0;
}
.rpt-findings-charts {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Lender View (text + visuals side by side) */
.rpt-lender-section {
    padding: 0 32px;
    margin-bottom: 28px;
}
.rpt-lender-with-visuals {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 24px;
    padding: 0 32px;
}
.rpt-lender-text {
    min-width: 0;
}
.rpt-lender-visuals {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Stakeholder Risk Matrix */
.rpt-stakeholder-grid {
    margin-top: 12px;
}
.rpt-stakeholder-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--rpt-border-light);
}
.rpt-stakeholder-row:last-child {
    border-bottom: none;
}
.rpt-stakeholder-badge {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1px;
    padding: 3px 8px;
    border-radius: 4px;
    border: 1px solid;
    min-width: 56px;
    text-align: center;
}
.rpt-stakeholder-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--rpt-text);
}
.rpt-stakeholder-action {
    font-size: 11px;
    color: var(--rpt-text-secondary);
    margin-top: 2px;
}

/* Cash + Advisor Exposure Row */
.rpt-cash-advisor-row {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 0 32px;
    margin-bottom: 28px;
}

/* Cash Position Panel */
.rpt-cash-panel {
    background: var(--rpt-bg-alt);
    border: 1px solid var(--rpt-border);
    border-radius: 12px;
    padding: 24px 24px;
    break-inside: avoid;
    page-break-inside: avoid;
}
.rpt-cash-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 14px;
}
.rpt-cash-item {
    text-align: center;
}
.rpt-cash-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--rpt-text-muted);
    margin-bottom: 4px;
}
.rpt-cash-value {
    font-size: 20px;
    font-weight: 800;
    color: var(--rpt-text);
}
.rpt-cash-of {
    font-size: 12px;
    font-weight: 400;
    color: var(--rpt-text-muted);
}
.rpt-cash-bar {
    height: 6px;
    background: #E2E8F0;
    border-radius: 3px;
    margin-top: 8px;
    overflow: hidden;
}
.rpt-cash-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.8s ease;
}

/* Callout Section (Advisor Exposure) */
.rpt-callout-section {
    background: #FFF7ED;
    border: 1px solid #FED7AA;
    border-radius: 12px;
    padding: 24px 24px;
    break-inside: avoid;
    page-break-inside: avoid;
}
.rpt-callout-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}
.rpt-callout-icon {
    font-size: 24px;
    flex-shrink: 0;
}

/* Next Steps Section, transparent (no card background, just side gutter) */
.rpt-nextsteps-section {
    padding: 0 32px;
    margin-bottom: 28px;
}

/* Information Gaps Section, same transparent treatment as nextsteps */
.rpt-gaps-section {
    padding: 0 32px;
    margin-bottom: 28px;
}

/* Actions Section */
.rpt-actions-section {
    background: var(--rpt-bg-alt);
    border: 1px solid var(--rpt-border);
    border-radius: 12px;
    padding: 28px 32px;
    margin: 0 32px 28px;
}
.rpt-action-timeline {
    margin: 20px 0;
    padding-left: 6px;
}
.rpt-action-item {
    display: flex;
    gap: 16px;
    position: relative;
}
.rpt-action-line {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 20px;
    flex-shrink: 0;
}
.rpt-action-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    flex-shrink: 0;
    z-index: 1;
}
.rpt-action-connector {
    width: 2px;
    flex: 1;
    background: #E2E8F0;
    margin: 4px 0;
}
.rpt-action-content {
    flex: 1;
    padding-bottom: 18px;
}
.rpt-action-header {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.rpt-action-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--rpt-text);
}
.rpt-action-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 12px;
    white-space: nowrap;
}

/* Action Detail Cards */
.rpt-actions-detail {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
    border-top: 1px solid var(--rpt-border);
    padding-top: 20px;
}
.rpt-action-detail-card {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}
.rpt-action-num {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #F0FDF4;
    border: 1px solid #BBF7D0;
    color: #059669;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}
.rpt-action-text {
    font-size: 14px;
    color: var(--rpt-text-secondary);
    line-height: 1.7;
}

/* Build / Deliverables */
.rpt-build-section {
    background: var(--rpt-bg-alt);
    border: 1px solid var(--rpt-border);
    border-radius: 12px;
    padding: 28px 32px;
    margin: 0 32px 28px;
}
.rpt-deliverables-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin: 18px 0;
}
.rpt-deliverable-card {
    text-align: center;
    padding: 16px 10px;
    background: #EFF6FF;
    border: 1px solid #BFDBFE;
    border-radius: 10px;
}
.rpt-deliverable-icon {
    font-size: 26px;
    margin-bottom: 6px;
}
.rpt-deliverable-name {
    font-size: 11px;
    font-weight: 700;
    color: var(--rpt-text);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Window Section */
.rpt-window-section {
    background: var(--rpt-bg-alt);
    border: 1px solid var(--rpt-border);
    border-radius: 12px;
    padding: 28px 32px;
    margin: 0 32px 32px;
}
.rpt-window-bar-wrap {
    margin: 18px 0;
    position: relative;
}
.rpt-window-bar {
    height: 36px;
    background: #E2E8F0;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}
.rpt-window-fill {
    height: 100%;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: white;
    min-width: 80px;
    transition: width 1s ease;
}
.rpt-window-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
    font-size: 10px;
    color: var(--rpt-text-muted);
}
.rpt-window-section .rpt-section-content {
    margin-top: 14px;
}

/* Fallback section */
.rpt-section {
    display: flex;
    gap: 0;
    margin: 0 32px 28px;
    border: 1px solid var(--rpt-border);
    border-radius: 12px;
    overflow: hidden;
}
.rpt-section-accent {
    width: 4px;
    flex-shrink: 0;
}
.rpt-section-body {
    padding: 28px 28px;
    flex: 1;
    min-width: 0;
}

/* Report Footer */
.rpt-footer {
    margin: 0 32px;
    padding-top: 0;
}
.rpt-footer-line {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--rpt-border), transparent);
    margin-bottom: 20px;
}
.rpt-footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: var(--rpt-text-muted);
    margin-bottom: 14px;
}
.rpt-footer-logo {
    width: 24px;
    height: 24px;
    border-radius: 6px;
}
.rpt-footer-brand strong {
    color: var(--rpt-text-secondary);
}
.rpt-disclaimer {
    font-size: 11px;
    color: var(--rpt-text-muted);
    line-height: 1.6;
    padding: 14px 18px;
    background: var(--rpt-bg-alt);
    border: 1px solid var(--rpt-border);
    border-radius: 8px;
}

/* Responsive */
@media (max-width: 768px) {
    .rpt-report { border-radius: 0; }
    .rpt-metrics-grid { grid-template-columns: repeat(2, 1fr); }
    .rpt-cover-company { font-size: 22px; }
    .rpt-severity-banner { flex-direction: column; text-align: center; margin: 20px 16px; }
    .rpt-section-body { padding: 20px; }
    .rpt-cover-meta { flex-direction: column; gap: 4px; }
    .rpt-sep { display: none; }
    .rpt-insights-panel { grid-template-columns: 1fr; padding: 0 16px; }
    .rpt-findings-with-charts { grid-template-columns: 1fr; padding: 0 16px; }
    .rpt-lender-with-visuals { grid-template-columns: 1fr; padding: 0 16px; }
    .rpt-cash-advisor-row { grid-template-columns: 1fr; padding: 0 16px; }
    .rpt-deliverables-grid { grid-template-columns: repeat(2, 1fr); }
    .rpt-actions-section { margin: 0 16px 28px; padding: 20px; }
    .rpt-build-section { margin: 0 16px 28px; padding: 20px; }
    .rpt-window-section { margin: 0 16px 28px; padding: 20px; }
    .rpt-nextsteps-section { padding: 0 16px; }
    .rpt-gaps-section { padding: 0 16px; }
    .rpt-industry-section { margin: 0 16px 28px; }
    .rpt-exec-summary { padding: 0 16px 28px; }
    .rpt-metrics-section { padding: 0 16px; }
    .rpt-findings-section { padding: 0 16px; }
    .rpt-lender-section { padding: 0 16px; }
    .rpt-section { margin: 0 16px 28px; }
    .rpt-footer { margin: 0 16px; }
    .rpt-brand-bar { padding: 14px 16px; }
}
@media (max-width: 480px) {
    .rpt-metrics-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
    .rpt-metric-card { padding: 14px 10px; }
    .rpt-metric-value { font-size: 18px; }
    .rpt-deliverables-grid { grid-template-columns: 1fr 1fr; }
    .rpt-insight-card { flex-direction: column; align-items: center; text-align: center; }
}

/* Print styles */
@media print {
    .rpt-report {
        box-shadow: none;
        border-radius: 0;
    }
    .rpt-brand-bar {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

/* ---- Capability Section ---- */
.capability-section {
    padding: 90px 0;
    background: var(--bg-body);
    border-top: 1px solid var(--border);
}

.section-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 48px;
    max-width: 560px;
}

.capability-section h2,
.comparison-section h2,
.pricing-section h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.capability-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.cap-card {
    padding: 28px;
    background: linear-gradient(rgba(255,255,255,0.04), rgba(255,255,255,0.016));
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    transition: all 0.3s;
}

.cap-card:hover {
    border-color: var(--border-teal);
    box-shadow: var(--shadow-glow);
}

.cap-number {
    font-size: 13px;
    font-weight: 700;
    color: var(--teal);
    margin-bottom: 12px;
}

.cap-card h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
    line-height: 1.3;
}

.cap-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ---- Comparison Table ---- */
.comparison-section {
    padding: 90px 0;
    background: var(--bg-body);
    border-top: 1px solid var(--border);
}

.comparison-table-wrapper {
    overflow-x: auto;
    margin-top: 32px;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.comparison-table th,
.comparison-table td {
    padding: 14px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.comparison-table th {
    font-weight: 600;
    color: var(--text-muted);
    font-size: 13px;
    border-bottom: 1px solid rgba(248, 250, 251, 0.12);
}

.comparison-table th.highlight { color: var(--teal); }

.th-sub {
    font-weight: 400;
    font-size: 11px;
    color: var(--text-muted);
}

.comparison-table td:first-child {
    font-weight: 600;
    color: var(--text-primary);
    width: 180px;
}

.comparison-table td { color: var(--text-muted); }

.comparison-table td.highlight {
    color: var(--teal-light);
    font-weight: 500;
    background: rgba(45, 212, 160, 0.04);
}

/* ---- Founder ---- */
.founder-section {
    padding: 90px 0;
    background:
        radial-gradient(circle at 80% 50%, rgba(45, 212, 160, 0.05), transparent 40%),
        var(--bg-body);
    border-top: 1px solid var(--border);
}

.founder-grid {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 48px;
    align-items: start;
}

.founder-photo-placeholder {
    width: 240px;
    height: 240px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--border-teal);
    box-shadow: 0 0 40px rgba(45, 212, 160, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-elevated);
}

.founder-photo-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-placeholder-text {
    color: var(--text-muted);
    font-size: 14px;
}

.founder-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--teal);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.founder-bio h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.founder-title {
    font-size: 15px;
    color: var(--teal);
    font-weight: 500;
    margin-bottom: 20px;
}

.founder-bio p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 14px;
}

.founder-credentials {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 20px 0;
}

.credential-badge {
    display: inline-block;
    padding: 5px 12px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
}

/* ---- CIO Block ---- */
.cio-divider {
    width: 60px;
    height: 1px;
    background: var(--border);
    margin: 56px auto;
}

.cio-block {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 24px;
    align-items: start;
    max-width: 720px;
    margin: 0 auto;
}

.cio-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--teal);
    flex-shrink: 0;
}

.cio-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--teal);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.cio-name {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.cio-title {
    font-size: 14px;
    color: var(--teal);
    font-weight: 500;
    margin-bottom: 14px;
}

.cio-bio {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 14px;
}

.cio-credentials {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0;
}

.btn-outline-sm {
    font-size: 12px;
    padding: 6px 16px;
}

/* ---- Pricing ---- */
.pricing-section {
    padding: 90px 0;
    background: var(--bg-body);
    border-top: 1px solid var(--border);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.pricing-card {
    background: linear-gradient(rgba(255,255,255,0.04), rgba(255,255,255,0.016));
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 32px 28px;
    position: relative;
    display: flex;
    flex-direction: column;
}

/*
    .pricing-card.featured and .pricing-badge were removed when Phase 2 pricing
    was restructured. No "most popular" tier exists prior to launch, so the
    highlighted-card styling and badge are no longer needed. Left out of the
    stylesheet intentionally.
*/

.pricing-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pricing-amount {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.pricing-amount span {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-muted);
}

.pricing-desc {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.5;
}

.pricing-features {
    list-style: none;
    padding: 0;
}

.pricing-features li {
    padding: 8px 0;
    font-size: 14px;
    color: var(--text-secondary);
    border-top: 1px solid var(--border);
    padding-left: 24px;
    position: relative;
}

.pricing-features li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: var(--teal);
    font-weight: 700;
}

.pricing-value-line {
    font-size: 13px;
    color: var(--text-secondary);
    background: rgba(45, 212, 160, 0.08);
    border-left: 2px solid var(--teal);
    padding: 8px 12px;
    border-radius: 4px;
    margin: 0 0 18px 0;
    line-height: 1.45;
}
.pricing-value-line strong {
    color: var(--text-primary);
    font-weight: 700;
}

.pricing-features {
    flex: 1 1 auto;
    margin-bottom: 20px;
}

.pricing-cta {
    width: 100%;
    margin-top: auto;
}

/* ---- Commercial positioning panel (under the three pricing cards) ---- */
.pricing-value-panel {
    margin-top: 36px;
    padding: 28px 28px 24px;
    background: linear-gradient(rgba(255,255,255,0.03), rgba(255,255,255,0.01));
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
}
.pricing-value-title {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 6px;
}
.pricing-value-intro {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 22px;
    line-height: 1.5;
}
.pricing-value-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 22px;
}
.pricing-value-column {
    padding: 16px 18px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--border);
    border-radius: 10px;
    text-align: center;
}
.pricing-value-heading {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 10px;
}
.pricing-value-figure {
    font-size: 20px;
    font-weight: 800;
    color: var(--teal);
    margin-bottom: 4px;
    line-height: 1.2;
}
.pricing-value-caption {
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}
.pricing-value-footer {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-top: 4px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
}
@media (max-width: 720px) {
    .pricing-value-grid {
        grid-template-columns: 1fr;
    }
}

.pricing-note {
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 24px;
}

/*
    Phase 2 pricing feature-flag gate.
    Pricing cards, the Pricing nav link and the Pricing footer link are hidden
    until window.FEATURE_PHASE2_PRICING is set to true in index.html's head,
    which adds .phase2-launched to the <html> element.
*/
html:not(.phase2-launched) .pricing-section,
html:not(.phase2-launched) a[href="#pricing"] {
    display: none !important;
}

/* ---- EOI tier selection indicator ---- */
.eoi-tier-display {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: rgba(45, 212, 160, 0.08);
    border: 1px solid rgba(45, 212, 160, 0.35);
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 13px;
    color: var(--text-secondary);
}
.eoi-tier-label {
    font-weight: 600;
    color: var(--text-muted);
}
.eoi-tier-value {
    font-weight: 700;
    color: var(--text-primary);
    flex: 1 1 auto;
}
.eoi-tier-clear {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
}
.eoi-tier-clear:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.06);
}

/* ---- EOI ---- */
.eoi-section {
    padding: 90px 0;
    background:
        radial-gradient(circle at 50% 100%, rgba(45, 212, 160, 0.06), transparent 40%),
        var(--bg-body);
    border-top: 1px solid var(--border);
}

.eoi-card {
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
}

.eoi-card h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.eoi-card > p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.eoi-form { text-align: left; }
.eoi-form .form-group { margin-bottom: 14px; }

.eoi-success { padding: 40px; }
.eoi-success h3 { color: var(--teal); margin-bottom: 8px; }

/* ---- Data Handling ---- */
.data-section {
    padding: 60px 0;
    background: var(--bg-body);
    border-top: 1px solid var(--border);
}

.data-card {
    max-width: 900px;
    margin: 0 auto;
    background: linear-gradient(rgba(255,255,255,0.03), rgba(255,255,255,0.01));
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 40px;
}

.data-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 24px;
    text-align: center;
}

.data-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.data-item strong {
    display: block;
    font-size: 14px;
    color: var(--teal);
    margin-bottom: 6px;
}

.data-item p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ---- Footer ---- */
.footer {
    padding: 48px 0 24px;
    background: rgba(4, 12, 20, 0.6);
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 48px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border);
}

.footer-brand .logo-rebound { color: var(--text-primary); }
.footer-brand .logo-iq { color: var(--teal); }

.footer-brand p {
    margin-top: 8px;
    font-size: 13px;
    color: var(--text-muted);
}

.footer-brand-link {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: var(--border);
    text-underline-offset: 2px;
    transition: color 0.2s, text-decoration-color 0.2s;
}
.footer-brand-link:hover {
    color: var(--teal);
    text-decoration-color: var(--teal);
}

.founder-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-links a:hover { color: var(--teal); }

.footer-contact p, .footer-contact a {
    font-size: 14px;
    color: var(--text-muted);
    text-decoration: none;
}

.footer-contact a:hover { color: var(--teal); }

.footer-bottom { padding-top: 24px; }

.footer-bottom p {
    font-size: 12px;
    color: var(--text-muted);
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .hero h1 { font-size: 30px; }
    .hero { padding: 110px 0 60px; }
    .value-grid, .capability-grid, .pricing-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .output-preview { grid-template-columns: 1fr; }
    .data-grid { grid-template-columns: 1fr 1fr; }
    .founder-grid { grid-template-columns: 1fr; text-align: center; }
    .founder-photo-placeholder { width: 180px; height: 180px; margin: 0 auto; }
    .founder-credentials { justify-content: center; }
    .cio-block { grid-template-columns: 1fr; text-align: center; }
    .cio-icon { margin: 0 auto 8px; }
    .cio-credentials { justify-content: center; }
    .comparison-table { font-size: 13px; }
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .nav-links { display: none; }
    .mobile-menu-btn { display: block; }
    .step-card { padding: 28px 20px; }
    .results-actions { flex-direction: column; }
    .data-card { padding: 28px 20px; }
}

/* ---- Book a Call Button ---- */
.btn-book-call {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    background: #C2410C;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius);
    border: none;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s;
}

.btn-book-call:hover {
    background: #9A3412;
}

/* ---- PDF Email Gate Modal ---- */
.pdf-gate-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    animation: pdfGateFadeIn 0.2s ease;
}

@keyframes pdfGateFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.pdf-gate-modal {
    background: var(--bg-card-solid);
    border: 1px solid var(--border-teal);
    border-radius: var(--radius-xl);
    padding: 40px 36px 32px;
    max-width: 440px;
    width: 100%;
    position: relative;
    box-shadow: var(--shadow-lg), 0 0 40px rgba(45, 212, 160, 0.08);
    text-align: center;
}

.pdf-gate-close {
    position: absolute;
    top: 14px; right: 16px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
    transition: color 0.15s;
}

.pdf-gate-close:hover {
    color: var(--text-primary);
}

.pdf-gate-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px; height: 56px;
    border-radius: 50%;
    background: rgba(45, 212, 160, 0.1);
    color: var(--teal);
    margin-bottom: 16px;
}

.pdf-gate-modal h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.pdf-gate-modal > p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.5;
}

.pdf-gate-fields {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.pdf-gate-fields input {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 14px;
    transition: border-color 0.15s;
}

.pdf-gate-fields input:focus {
    outline: none;
    border-color: var(--teal);
}

.pdf-gate-fields input::placeholder {
    color: var(--text-muted);
}

.pdf-gate-submit {
    width: 100%;
}

.pdf-gate-submit.submitting {
    opacity: 0.7;
    pointer-events: none;
}

.pdf-gate-privacy {
    font-size: 11.5px;
    color: var(--text-muted);
    margin-top: 14px;
    line-height: 1.4;
}

@media (max-width: 600px) {
    .pdf-gate-modal {
        padding: 32px 24px 24px;
    }
}

/* ---- Print ---- */
@media print {
    body { background: white !important; color: #222 !important; }
    .navbar, .hero, .value-prop, .capability-section, .comparison-section,
    .founder-section, .pricing-section, .eoi-section, .data-section, .footer,
    .diagnostic-header, .progress-container, .results-actions, .step-nav,
    .pdf-gate-overlay, .fb-panel { display: none !important; }
    .diagnostic-section { padding: 0 !important; background: white !important; }
    .step-card { box-shadow: none !important; border: none !important; padding: 0 !important; background: white !important; }
    .rpt-report { max-width: 100%; }
    .rpt-cover { padding: 24px 0; }
    .rpt-cover-label { color: #333; }
    .rpt-cover-company { color: #111; }
    .rpt-cover-meta { color: #666; }
    .rpt-severity-banner { border-width: 2px; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
    .rpt-severity-indicator { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
    .rpt-metric-card { background: #f8f8f8; border-color: #ddd; }
    .rpt-metric-value { color: #111; }
    .rpt-metric-label { color: #555; }
    .rpt-metric-dot { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
    .rpt-section { background: white; border-color: #ddd; }
    .rpt-section-accent { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
    .rpt-section-title { color: #111; }
    .rpt-section-subtitle { color: #666; }
    .rpt-section-content p { color: #333; font-size: 12px; }
    .rpt-window-bar { background: #eee; }
    .rpt-window-fill { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
    .rpt-footer-text { color: #999; }
    .rpt-disclaimer { background: #f5f5f5; border-color: #ddd; color: #666; }
}
