/* ============================================================
   CORVAIR RESEARCH MICROSITE — DARK THEME STYLESHEET
   Covers: Landing, Assess, and Results page types
   ============================================================ */

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

:root {
    --bg-primary: #0a1929;
    --bg-secondary: #061a30;
    --bg-card: #0f2744;
    --bg-card-hover: #132f52;
    --text-primary: #fff;
    --text-secondary: rgba(255,255,255,0.7);
    --text-muted: rgba(255,255,255,0.5);
    --border-subtle: rgba(255,255,255,0.08);
    --radius: 12px;
    --radius-lg: 20px;

    /* Study-specific vars (updated by JS) */
    --study-color: #009688;
    --study-color-light: rgba(0, 150, 136, 0.15);
    --study-color-glow: rgba(0, 150, 136, 0.3);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* NAV */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    background-color: rgba(10, 25, 41, 0.85);
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    z-index: 150;
    transition: background-color 0.3s ease;
}

nav.scrolled {
    background-color: rgba(10, 25, 41, 0.95);
}

nav .logo {
    height: 32px;
    width: auto;
}

nav .study-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--study-color);
    text-transform: uppercase;
}

nav .study-badge svg {
    width: 8px;
    height: 8px;
    fill: var(--study-color);
}

nav .cta-btn {
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 600;
    border: none;
    background-color: var(--study-color);
    color: #fff;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.3s ease;
}

nav .cta-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

@media (max-width: 768px) {
    nav {
        padding: 0 20px;
    }

    nav .study-badge {
        display: none;
    }

    nav .cta-btn {
        padding: 8px 12px;
        font-size: 12px;
    }
}

/* PAGES */
.page {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.page.active {
    display: block;
    opacity: 1;
}

main {
    margin-top: 64px;
}

section {
    padding: 80px 40px;
}

@media (max-width: 768px) {
    section {
        padding: 60px 20px;
    }
}

@media (max-width: 480px) {
    section {
        padding: 40px 16px;
    }
}

/* HERO */
.hero {
    min-height: calc(100vh - 64px);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: 20px;
    padding-bottom: 40px;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.hero-video.loaded {
    opacity: 0.25;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, var(--study-color-light) 0%, transparent 70%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    text-align: center;
}

.hero-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    padding: 8px 12px;
    background-color: var(--study-color-light);
    border: 1px solid var(--study-color);
    border-radius: 24px;
    font-size: 12px;
    font-weight: 600;
    color: var(--study-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-label svg {
    width: 16px;
    height: 16px;
}

.hero h1 {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.hero p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.5;
}

.hero-cta {
    display: inline-block;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    background-color: var(--study-color);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 48px;
}

.hero-cta:hover {
    transform: translateY(-3px);
    filter: brightness(1.15);
}

.hero-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
    font-size: 13px;
    color: var(--text-secondary);
}

.hero-meta-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hero-meta-item strong {
    color: var(--text-primary);
    font-weight: 600;
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    text-align: center;
    animation: bounce 2s infinite;
}

.hero-scroll svg {
    width: 20px;
    height: 20px;
    color: var(--text-muted);
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 36px;
    }

    .hero p {
        font-size: 16px;
    }

    .hero-meta {
        gap: 16px;
    }

    .hero-video {
        display: none;
    }
}

/* SECTION HEADERS */
.section-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--study-color);
    margin-bottom: 16px;
}

.section h2 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.2;
}

.section > p {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 48px;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .section h2 {
        font-size: 32px;
    }

    .section > p {
        font-size: 15px;
    }
}

/* LEARN CARDS */
.card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

@media (max-width: 768px) {
    .card-grid {
        grid-template-columns: 1fr;
    }
}

.card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    padding: 32px;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
}

.card.fade-up {
    opacity: 1;
    transform: translateY(0);
}

.card:hover {
    transform: translateY(-3px);
    background-color: var(--bg-card-hover);
    border-color: var(--study-color);
}

.card-icon {
    width: 32px;
    height: 32px;
    margin-bottom: 16px;
    color: var(--study-color);
}

.card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

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

/* TIMELINE */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 600px;
}

.timeline-item {
    display: flex;
    gap: 24px;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
}

.timeline-item.fade-up {
    opacity: 1;
    transform: translateY(0);
}

.timeline-circle {
    min-width: 48px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--study-color);
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
}

.timeline-item:not(:last-child)::after {
    content: '';
    position: absolute;
    width: 2px;
    top: 48px;
    bottom: -40px;
    left: 24px;
    background-color: var(--border-subtle);
}


.timeline-content h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

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

/* PRIVACY CARD */
.privacy-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

@media (max-width: 768px) {
    .privacy-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

.privacy-half {
    opacity: 0;
    transform: translateY(30px);
}

.privacy-half.fade-up {
    opacity: 1;
    transform: translateY(0);
}

.privacy-icon {
    width: 32px;
    height: 32px;
    margin-bottom: 16px;
    color: var(--study-color);
}

.privacy-half h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
}

.trust-item {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.trust-item svg {
    width: 20px;
    height: 20px;
    min-width: 20px;
    color: var(--study-color);
    flex-shrink: 0;
}

.privacy-half a {
    display: inline-block;
    margin-top: 16px;
    color: var(--study-color);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.privacy-half a:hover {
    gap: 4px;
}

.email-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.email-form input {
    padding: 12px 16px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
}

.email-form input:focus {
    outline: none;
    border-color: var(--study-color);
    background-color: var(--bg-card-hover);
}

.email-form button {
    padding: 12px 16px;
    background-color: var(--study-color);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.email-form button:hover {
    filter: brightness(1.1);
}

.email-micro {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 8px;
}

/* BOTTOM CTA */
.bottom-cta {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    text-align: center;
    padding: 60px 40px;
    opacity: 0;
    transform: translateY(30px);
}

.bottom-cta.fade-up {
    opacity: 1;
    transform: translateY(0);
}

.bottom-cta button {
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    background-color: var(--study-color);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 16px;
}

.bottom-cta button:hover {
    transform: translateY(-3px);
    filter: brightness(1.15);
}

.bottom-cta p {
    font-size: 14px;
    color: var(--text-secondary);
}

/* FOOTER */
footer {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-subtle);
    padding: 40px;
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
}

footer a {
    color: var(--text-secondary);
    text-decoration: none;
    margin: 0 16px;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--text-primary);
}

.footer-links {
    margin-bottom: 16px;
}

/* PAGE 2: ASSESS */
.assess-placeholder {
    max-width: 640px;
    margin: 0 auto;
    padding: 40px 0;
}

.assess-placeholder-note {
    text-align: center;
    padding: 16px 20px;
    background: var(--study-color-light);
    border: 1px dashed var(--study-color);
    border-radius: var(--radius);
    font-size: 13px;
    color: var(--study-color);
    margin-bottom: 32px;
}

.assess-progress {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
}

.assess-progress-bar {
    flex: 1;
    height: 4px;
    background: var(--border-subtle);
    border-radius: 2px;
    overflow: hidden;
}

.assess-progress-fill {
    height: 100%;
    background: var(--study-color);
    border-radius: 2px;
    width: 65%;
}

.assess-progress-text {
    font-size: 13px;
    color: var(--text-muted);
    white-space: nowrap;
}

.assess-question-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 36px;
    margin-bottom: 20px;
}

.assess-question-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.assess-question-text {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 28px;
}

.assess-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.assess-option {
    padding: 14px 18px;
    background: var(--bg-primary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    font-size: 15px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.assess-option:hover {
    border-color: var(--study-color);
    color: var(--text-primary);
    background: var(--study-color-light);
}

.assess-option.selected {
    border-color: var(--study-color);
    background: var(--study-color-light);
    color: var(--text-primary);
}

.assess-nav-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 24px;
}

.assess-nav-btn {
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.assess-nav-btn.back {
    background: transparent;
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
}

.assess-nav-btn.next {
    background: var(--study-color);
    border: none;
    color: #fff;
}

.assess-nav-btn.next:hover { filter: brightness(1.15); }
.assess-nav-btn.back:hover { border-color: var(--text-muted); color: var(--text-primary); }

.assess-nav-btn.skip {
    background: transparent;
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    font-size: 13px;
    padding: 10px 20px;
}
.assess-nav-btn.skip:hover { color: var(--text-secondary); border-color: var(--text-muted); }

/* WIZARD STEPS */
.wizard-step {
    display: none;
    animation: fadeIn 0.4s ease;
}
.wizard-step.active { display: block; }

.wizard-phase-bar {
    display: flex;
    gap: 4px;
    margin-bottom: 28px;
}
.wizard-phase {
    flex: 1;
    height: 3px;
    border-radius: 2px;
    background: var(--border-subtle);
    transition: background 0.4s ease;
}
.wizard-phase.done { background: var(--study-color); }
.wizard-phase.current { background: var(--study-color); opacity: 0.6; }

.wizard-phase-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}
.wizard-phase-label span.active-phase { color: var(--study-color); }

.wizard-context-card {
    background: var(--study-color-light);
    border: 1px solid var(--study-color);
    border-radius: var(--radius);
    padding: 20px 24px;
    margin-bottom: 28px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}
.wizard-context-card strong { color: var(--text-primary); }
.wizard-context-card svg {
    width: 20px; height: 20px;
    color: var(--study-color);
    vertical-align: -4px;
    margin-right: 6px;
}

.wizard-returning-banner {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-left: 3px solid var(--study-color);
    border-radius: var(--radius);
    padding: 16px 20px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}
.wizard-returning-banner svg {
    width: 20px; height: 20px; min-width: 20px;
    color: var(--study-color);
}

/* FORM FIELDS */
.field-group {
    margin-bottom: 20px;
}
.field-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.field-label .optional-tag {
    font-size: 10px;
    font-weight: 500;
    color: var(--text-muted);
    background: var(--border-subtle);
    padding: 1px 6px;
    border-radius: 4px;
}
.field-select {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    appearance: none;
    cursor: pointer;
    transition: border-color 0.2s;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='rgba(255,255,255,0.5)' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}
.field-select:focus {
    outline: none;
    border-color: var(--study-color);
}
.field-select option {
    background: var(--bg-card);
    color: var(--text-primary);
}

.field-textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    resize: vertical;
    min-height: 80px;
    transition: border-color 0.2s;
}
.field-textarea:focus {
    outline: none;
    border-color: var(--study-color);
}
.field-textarea::placeholder { color: var(--text-muted); }

/* FEEDBACK STARS / RATING */
.feedback-rating {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}
.feedback-star {
    width: 36px; height: 36px;
    border-radius: 8px;
    border: 1px solid var(--border-subtle);
    background: var(--bg-primary);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
    font-weight: 600;
}
.feedback-star:hover, .feedback-star.selected {
    border-color: var(--study-color);
    background: var(--study-color-light);
    color: var(--study-color);
}

/* PAGE 3 SPECIFIC */
.thank-you {
    text-align: center;
    padding-top: 24px;
    padding-bottom: 8px;
}

.thank-you-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--study-color-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.thank-you-circle svg {
    width: 28px;
    height: 28px;
    color: var(--study-color);
}

.thank-you h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.thank-you p {
    font-size: 14px;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.5;
}

/* TAB BAR */
.tab-bar {
    display: flex;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-subtle);
    position: sticky;
    top: 60px;
    z-index: 90;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    max-width: 600px;
    margin: 0 auto;
    padding: 0;
}
.tab-bar::-webkit-scrollbar { display: none; }

.tab-item {
    flex: 1;
    min-width: 80px;
    padding: 14px 12px 12px;
    text-align: center;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    user-select: none;
}

.tab-item.active {
    color: var(--study-color);
    border-bottom-color: var(--study-color);
    font-weight: 600;
}

.tab-item:hover:not(.active) {
    color: var(--text-secondary);
}

.tab-icon {
    display: block;
    width: 20px;
    height: 20px;
    margin: 0 auto 4px;
}

@media (min-width: 768px) {
    .tab-item {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }
    .tab-icon {
        display: inline-block;
        margin: 0;
    }
}

/* TAB PANELS */
.tab-panel {
    display: none;
    padding-top: 32px;
    padding-bottom: 32px;
    max-width: 600px;
    margin: 0 auto;
    animation: fadeIn 0.4s ease;
}
.tab-panel.active { display: block; }

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

/* TAB 1: ARCHETYPE */
.archetype-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-top: 3px solid var(--study-color);
    border-radius: var(--radius);
    padding: 32px;
    margin-bottom: 24px;
}

.archetype-label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.archetype-name {
    font-size: 28px;
    font-weight: 700;
    color: var(--study-color);
    margin-bottom: 6px;
    line-height: 1.2;
}

.archetype-tagline {
    font-size: 16px;
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.archetype-narrative {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
}

.archetype-narrative p { margin-bottom: 16px; }
.archetype-narrative p:last-child { margin-bottom: 0; }

.archetype-meta {
    display: inline-block;
    padding: 6px 14px;
    background: var(--study-color-light);
    border: 1px solid var(--study-color);
    border-radius: 100px;
    font-size: 12px;
    color: var(--study-color);
    font-weight: 500;
    margin-top: 20px;
}

@media (min-width: 768px) {
    .archetype-card {
        display: grid;
        grid-template-columns: 1fr 1.5fr;
        gap: 24px;
        align-items: start;
    }
    .archetype-name { font-size: 32px; }
}

/* TAB 2: SCORES */
.score-gauge {
    text-align: center;
    margin-bottom: 36px;
}

.gauge-svg {
    width: 160px;
    height: 100px;
    margin: 0 auto 12px;
}

.gauge-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.gauge-label {
    font-size: 16px;
    font-weight: 600;
    color: var(--study-color);
    margin-top: 4px;
}

.gauge-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 8px;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
}

.dimension-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 12px;
}

.dimension-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.dimension-name {
    font-size: 15px;
    font-weight: 600;
}

.dimension-score {
    font-size: 18px;
    font-weight: 700;
    color: var(--study-color);
}

.dimension-bar {
    height: 8px;
    background: var(--border-subtle);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.dimension-bar-fill {
    height: 100%;
    background: var(--study-color);
    border-radius: 4px;
    width: 0;
    transition: width 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.dimension-desc {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.4;
}

.dimension-label-pill {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 8px;
}

.dimension-label-pill.high { background: var(--study-color); color: #fff; }
.dimension-label-pill.moderate { background: var(--study-color-light); color: var(--study-color); }
.dimension-label-pill.low { background: var(--border-subtle); color: var(--text-muted); }

/* TOOLTIP SYSTEM */
.term {
    position: relative;
    display: inline;
    border-bottom: 1px dotted var(--text-muted);
    cursor: help;
    transition: border-color 0.2s ease;
}
.term:hover {
    border-bottom-color: var(--study-color);
}
.term .tip {
    display: none;
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    width: 260px;
    padding: 14px 16px;
    background: #1a2d44;
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    z-index: 300;
    pointer-events: none;
    animation: tipIn 0.15s ease;
}
.term:hover .tip {
    display: block;
    pointer-events: auto;
}
.tip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #1a2d44;
}
@keyframes tipIn {
    from { opacity: 0; transform: translateX(-50%) translateY(4px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.tip-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}
.tip-body {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 8px;
}
.tip-link {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    color: var(--study-color);
    text-decoration: none;
    transition: opacity 0.2s;
}
.tip-link:hover {
    opacity: 0.8;
    text-decoration: underline;
}
/* Keep tip on screen */
.term:first-child .tip,
.tip.tip-left {
    left: 0;
    transform: translateX(0);
}
.tip.tip-left::after {
    left: 24px;
    transform: translateX(0);
}

/* DETAIL LINKS (non-tooltip) */
.detail-link {
    color: var(--study-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: opacity 0.2s;
}
.detail-link:hover {
    text-decoration: underline;
    opacity: 0.85;
}
.detail-link svg {
    width: 12px;
    height: 12px;
    vertical-align: -1px;
    margin-left: 3px;
}

/* TAB 3: BENCHMARKS */
.peer-group-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 24px;
    text-align: center;
}

.peer-group-card .label { font-size: 12px; color: var(--text-muted); margin-bottom: 4px; }
.peer-group-card .value { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.peer-group-card .count { font-size: 12px; color: var(--text-muted); }

.percentile-display {
    text-align: center;
    margin-bottom: 32px;
}

.percentile-number {
    font-size: 56px;
    font-weight: 700;
    color: var(--study-color);
    line-height: 1;
}

.percentile-suffix {
    font-size: 20px;
    font-weight: 600;
    color: var(--study-color);
}

.percentile-label {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 4px;
}

.percentile-bar {
    height: 6px;
    background: var(--border-subtle);
    border-radius: 3px;
    position: relative;
    margin: 16px 0;
}

.percentile-marker {
    position: absolute;
    top: -5px;
    width: 16px;
    height: 16px;
    background: var(--study-color);
    border-radius: 50%;
    border: 2px solid var(--bg-primary);
    transform: translateX(-50%);
    transition: left 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.percentile-interp {
    font-size: 13px;
    color: var(--text-secondary);
    text-align: center;
    margin-top: 12px;
}

.benchmark-row {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    padding: 16px 20px;
    margin-bottom: 12px;
}

.benchmark-row-name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
}

.benchmark-bars {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.benchmark-bar-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.benchmark-bar-label {
    font-size: 11px;
    font-weight: 600;
    width: 40px;
    flex-shrink: 0;
}

.benchmark-bar-track {
    flex: 1;
    height: 8px;
    background: var(--border-subtle);
    border-radius: 4px;
    overflow: hidden;
}

.benchmark-bar-fill {
    height: 100%;
    border-radius: 4px;
    width: 0;
    transition: width 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.benchmark-bar-fill.you { background: var(--study-color); }
.benchmark-bar-fill.peers { background: var(--text-muted); }

.benchmark-bar-value {
    font-size: 12px;
    font-weight: 600;
    width: 28px;
    flex-shrink: 0;
    text-align: right;
}

.benchmark-diff {
    font-size: 11px;
    font-weight: 600;
    margin-top: 6px;
    text-align: right;
}

.benchmark-diff.above { color: var(--study-color); }
.benchmark-diff.below { color: #E85D75; }

.insight-callout {
    background: var(--study-color-light);
    border: 1px solid var(--study-color);
    border-radius: var(--radius);
    padding: 20px;
    margin-top: 24px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.insight-callout strong { color: var(--text-primary); }

/* TAB 4: ACTIONS */
.actions-intro {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
}

.action-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 12px;
    position: relative;
}

.action-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
    gap: 12px;
}

.action-priority {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 600;
    flex-shrink: 0;
}

.action-priority.high {
    background: var(--study-color);
    color: #fff;
}

.action-priority.medium {
    background: transparent;
    border: 1px solid var(--study-color);
    color: var(--study-color);
}

.action-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.action-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 10px;
}

.action-timeframe {
    display: inline-block;
    padding: 3px 10px;
    background: var(--border-subtle);
    border-radius: 100px;
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
}

.actions-bottom-prompt {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    margin-top: 24px;
}

.actions-bottom-prompt p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.actions-bottom-prompt .save-btn {
    padding: 10px 24px;
    background: var(--study-color);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.actions-bottom-prompt .save-btn:hover {
    filter: brightness(1.15);
}

/* PAGE 3 SECTION CONSTRAINT */
#page-3 section {
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

#page-3 .thank-you {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ACCOUNT CTA CARD */
.account-card {
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-card-hover) 100%);
    border: 1px solid var(--border-subtle);
    border-top: 3px solid var(--study-color);
    border-radius: var(--radius);
    padding: 40px;
    margin-bottom: 60px;
    opacity: 0;
    transform: translateY(30px);
}

.account-card.fade-up {
    opacity: 1;
    transform: translateY(0);
}

.account-card h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
}

.account-card > p {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.6;
}

.account-buttons {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
}

@media (max-width: 480px) {
    .account-buttons {
        flex-direction: column;
    }
}

.account-btn {
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
}

.account-btn.google {
    background: #ffffff;
    color: #3c4043;
    border: 1px solid #dadce0;
}
.account-btn.google:hover {
    background: #f7f8f8;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.account-btn.linkedin {
    background: #0A66C2;
    color: #fff;
    border: none;
}
.account-btn.linkedin:hover {
    background: #004182;
}

.account-btn.email-auth {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
}
.account-btn.email-auth:hover {
    border-color: var(--study-color);
    color: var(--study-color);
}

.account-login-text {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}
.account-login-text a {
    color: var(--study-color);
    text-decoration: none;
}
.account-login-text a:hover { text-decoration: underline; }

.feature-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.feature-tag {
    padding: 6px 12px;
    background-color: var(--study-color-light);
    border: 1px solid var(--study-color);
    border-radius: 12px;
    font-size: 12px;
    color: var(--study-color);
    font-weight: 500;
}

.account-micro {
    font-size: 12px;
    color: var(--text-muted);
}

/* OTHER STUDIES */
.studies-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

@media (max-width: 768px) {
    .studies-grid {
        grid-template-columns: 1fr;
    }
}

.study-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-left: 4px solid #ccc;
    border-radius: var(--radius);
    padding: 24px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.3s ease;
}

.study-card.fade-up {
    opacity: 1;
    transform: translateY(0);
}

.study-card:hover {
    transform: translateY(-3px);
    background-color: var(--bg-card-hover);
    border-color: var(--study-color);
}

.study-card.active-study {
    display: none;
}

.study-name {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.study-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.4;
}

.study-meta {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.study-card a, .study-card .coming-soon {
    display: inline-block;
    padding: 8px 12px;
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.study-card a {
    background-color: var(--study-color);
    color: #fff;
    border: none;
    cursor: pointer;
}

.study-card a:hover {
    filter: brightness(1.15);
}

.study-card .coming-soon {
    background-color: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border-subtle);
    cursor: not-allowed;
}

/* ADVANCED FEATURES */
.features-section {
    opacity: 0;
    transform: translateY(30px);
}

.features-section.fade-up {
    opacity: 1;
    transform: translateY(0);
}

.features-section h2 {
    margin-bottom: 12px;
}

.features-section > p {
    margin-bottom: 24px;
}

.features-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.feature-tag.advanced {
    padding: 8px 14px;
    background-color: transparent;
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.features-section button {
    padding: 12px 24px;
    background-color: transparent;
    color: var(--study-color);
    border: 1px solid var(--study-color);
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.features-section button:hover {
    background-color: var(--study-color);
    color: #fff;
}

/* FADE-UP ANIMATION */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-up {
    animation: fadeUp 0.6s ease forwards !important;
}
