:root {
    /* Brand Colors (Aligned with DS) */
    --brand-50: #F9F5FF;
    --brand-100: #F4EBFF;
    --brand-700: #6941C6;
    --brand-800: #53389E;
    --brand-900: #42307D;
    --brand-950: #0D081F;

    --bg-dark: var(--brand-950);
    --bg-light: var(--brand-100);
    /* Deep, calm background */
    --text-primary: #FFFFFF;
    --text-secondary: rgba(255, 255, 255, 0.6);
    --text-light-primary: #111827;
    --text-light-secondary: #4B5563;
    --accent-purple: #7F56D9;

    --font-primary: 'Inter', system-ui, -apple-system, sans-serif;

    /* Design System Typography Tokens */
    --font-weight-heading-bold: 700;
    --font-weight-heading-semibold: 600;
    --font-weight-body-regular: 400;

    --line-height-heading: 1.1;
    --line-height-body: 1.4;

    --letter-spacing-heading: -0.05em;
    --letter-spacing-default: 0;

    --spacing-panel: 120px;
    --transition-slow: all 0.8s cubic-bezier(0.2, 0, 0.2, 1);
    --radius-xl: 24px;
}

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

/* Accessibility Helpers */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

button,
input,
select,
textarea {
    font-family: inherit;
}

body.v2-body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-primary);
    line-height: var(--line-height-body);
    letter-spacing: var(--letter-spacing-default);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.gs-v2-body {
    --bg-dark: var(--brand-700);
}

/* --- Navigation --- */
.v2-nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 24px 0;
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.v2-nav.scrolled {
    background: rgba(11, 14, 20, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

.nav-left {
    display: flex;
    justify-content: flex-start;
}

.nav-center {
    display: flex;
    justify-content: center;
}

.nav-right {
    display: flex;
    justify-content: flex-end;
}

.logo-link {
    display: flex;
    align-items: center;
}

.logo-link .logo {
    height: 32px;
    width: auto;
}

.nav-actions {
    display: flex;
    gap: 16px;
    align-items: center;
}

/* Auth status (Login / User menu) - ported from /home */
.nav-login-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.2s;
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
}

.nav-login-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    color: #ffffff !important;
}

.user-avatar-icon {
    width: 20px;
    height: 20px;
}

/* --- Panel Layout --- */
.panel {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-panel) 40px;
    position: relative;
    overflow: hidden;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    transition: background-color 0.5s ease, color 0.5s ease;
}

.panel-light {
    background-color: var(--bg-light);
    color: var(--brand-950);
}

.panel-light .text-secondary,
.panel-light .support,
.panel-light .microcopy {
    color: rgba(13, 8, 31, 0.7);
}

.panel-light .title {
    color: var(--brand-950);
}

.panel-light .title.accent {
    color: var(--brand-700);
}

.panel-light .step-num {
    color: rgba(105, 65, 198, 0.1);
}

.panel-light .card {
    background: white;
    border: 1px solid rgba(105, 65, 198, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.panel-light .visual-image-container {
    background: white;
    border: 1px solid rgba(105, 65, 198, 0.1);
}

.panel-light .benefit-line {
    color: var(--brand-900);
}

.panel-light .benefit-line::before {
    background: var(--brand-700);
}

.panel-light .beats span {
    border: 1px solid rgba(105, 65, 198, 0.2);
    background: rgba(105, 65, 198, 0.05);
    color: var(--brand-800);
}

.panel-light .testimonial {
    color: var(--brand-900);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: var(--font-weight-heading-semibold);
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: var(--letter-spacing-heading);
}

.panel-light cite {
    color: #374151;
    /* Gray 800 equivalent */
    font-style: normal;
    font-size: 1.1rem;
    font-weight: 500;
    opacity: 0.8;
}

.content {
    max-width: 1000px;
    width: 100%;
}

/* --- Global Reveal States --- */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: var(--transition-slow);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- 1. Hero Panel --- */
.hero-panel {
    text-align: center;
    padding: 184px 40px;
    /* Equal spacing above and below content; top offset for fixed header */
    background-color: #140E26;
    background-image: url('/lauralai/hero-bg-v2.png');
    background-size: cover;
    background-position: center top;
    will-change: background-position;
    background-attachment: scroll;
    background-repeat: no-repeat;
}

.hero-eyebrow {
    color: #B692F6;
    font-family: var(--font-primary);
    font-size: 1rem;
    /* 16px */
    font-style: normal;
    font-weight: 600;
    line-height: 1.5;
    /* 24px */
    text-transform: uppercase;
    margin-bottom: 0;
    display: block;
    letter-spacing: 0.05em;
    /* Nice touch for uppercase */
}

.hero-eyebrow-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 32px;
}

.hero-cta-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 24px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    width: fit-content;
    text-align: center;
    white-space: nowrap;
}

.cta-header-label {
    margin: 0;
    max-width: none;
    font-size: 1.1rem;
    padding-bottom: 2px;
}

.lauralai-avatar-tiny {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    display: inline-block;
    vertical-align: middle;
    margin-bottom: 4px;
}

.cta-header-group {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 18px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1002;
    position: relative;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-close {
    display: none;
}

@media (max-width: 1024px) {
    .v2-nav {
        top: 35px;
        padding: 12px 0;
    }

    .v2-nav.scrolled {
        padding: 12px 0;
    }

    .nav-container {
        padding: 0 20px;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        height: 60px;
        grid-template-columns: unset;
    }

    .nav-center {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    /* Hamburger Animation to X */
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
        transform: scaleX(0);
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Mobile menu close button */
    .mobile-menu-close {
        display: block;
        position: absolute;
        top: 20px;
        right: 20px;
        width: 32px;
        height: 32px;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 8px;
        cursor: pointer;
        transition: all 0.2s ease;
        z-index: 10;
    }

    .mobile-menu-close:hover {
        background: rgba(255, 255, 255, 0.15);
        border-color: rgba(255, 255, 255, 0.3);
    }

    .mobile-menu-close:active {
        transform: scale(0.95);
    }

    .mobile-menu-close::before,
    .mobile-menu-close::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 16px;
        height: 2px;
        background: #fff;
        border-radius: 1px;
    }

    .mobile-menu-close::before {
        transform: translate(-50%, -50%) rotate(45deg);
    }

    .mobile-menu-close::after {
        transform: translate(-50%, -50%) rotate(-45deg);
    }

    /* Backdrop overlay */
    .nav-actions::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
        z-index: -1;
    }

    .nav-actions.active::before {
        opacity: 1;
        background: rgba(0, 0, 0, 0.6);
        pointer-events: auto;
    }

    .nav-actions {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 400px;
        height: auto;
        min-height: 200px;
        max-height: 90vh;
        background: linear-gradient(135deg, #1a1333 0%, #0d081f 100%);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        gap: 24px;
        padding: 80px 32px 48px;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1001;
        box-shadow: -20px 0 60px rgba(0, 0, 0, 0.8);
        border-left: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 0 0 0 16px;
        overflow-y: auto;
    }

    .nav-actions.active {
        right: 0;
    }

    .nav-actions .nav-tooltip-wrapper {
        width: 100%;
    }

    .nav-actions .btn-primary {
        width: 100%;
        padding: 18px 24px !important;
        font-size: 1.1rem !important;
        text-align: center;
        border-radius: 12px;
        transition: all 0.2s ease;
    }

    .nav-actions .btn-primary:active {
        transform: scale(0.98);
    }

    .nav-actions #auth-status-container {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .nav-actions #auth-status-container .btn-ghost {
        width: 100%;
        padding: 16px 24px;
        text-align: center;
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 12px;
        transition: all 0.2s ease;
    }

    .nav-actions #auth-status-container .btn-ghost:hover {
        background: rgba(255, 255, 255, 0.1);
        border-color: rgba(255, 255, 255, 0.3);
    }

    .nav-tooltip {
        display: none !important;
    }

    .coming-soon-tag {
        display: block;
        margin: 8px 0 0 0;
        font-size: 0.85rem;
        opacity: 0.7;
    }

    .hero-panel {
        padding-top: 140px;
    }
}

.hero-panel .content {
    max-width: 1400px;
    /* Allow wider headline */
}

.hero-title {
    font-size: clamp(2.75rem, 6.5vw, 5.5rem);
    font-weight: var(--font-weight-heading-bold);
    line-height: var(--line-height-heading);
    letter-spacing: var(--letter-spacing-heading);
    margin-bottom: 64px;
    max-width: 1300px;
    /* Increased from 1100px */
    margin-left: auto;
    margin-right: auto;
    text-wrap: balance;
    /* Helps prevent orphans */
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #FFFFFF;
    max-width: 752px;
    margin: 0 auto 88px;
    line-height: 1.6;
    font-weight: 400;
}

.hero-title .line {
    display: block;
}

.hero-title .accent {
    background: linear-gradient(to bottom, #FFFFFF 0%, var(--accent-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.cta-reveal {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.microcopy {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* --- 2. Split Panel --- */
.split-panel .content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.stack-panel .content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 64px;
}

.stack-panel .text-side {
    max-width: 800px;
}

.title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: var(--font-weight-heading-semibold);
    letter-spacing: var(--letter-spacing-heading);
    line-height: var(--line-height-heading);
}

.title.accent {
    color: var(--accent-purple);
    margin-bottom: 24px;
}

.support {
    font-size: 1.25rem;
    color: var(--text-secondary);
}

.visual-placeholder,
.visual-image-container {
    aspect-ratio: 4/5;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 24px;
}

.panel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-xl);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.panel-image.contain {
    object-fit: contain;
    background: white;
}

.stack-panel .visual-side {
    width: 100%;
    max-width: 1000px;
    margin-bottom: 64px;
    /* Added 64px buffer below the illustration */
}

/* --- 3. Insight Panel --- */
.central-panel {
    text-align: center;
}

#insight {
    min-height: auto;
    padding-top: var(--spacing-panel);
    padding-bottom: var(--spacing-panel);
}

.insight-line {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: var(--font-weight-heading-semibold);
    letter-spacing: var(--letter-spacing-heading);
}

.insight-line.accent,
.insight-line .accent {
    background: linear-gradient(to bottom, var(--accent-purple) 30%, rgba(127, 86, 217, 0.4) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    margin-bottom: 40px;
}

.beats {
    display: flex;
    justify-content: center;
    gap: 40px;
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 40px;
}

.beats span {
    opacity: 0.4;
    transition: var(--transition-slow);
    transition-delay: 0.5s;
}

/* --- 4. Funnel Transition --- */
.funnel-container {
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 2;
    padding: 32px 40px 16px;
}

.funnel-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: var(--radius-xl);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    transition: var(--transition-slow);
}

.visible.funnel-container .funnel-image {
    transform: translateY(0);
    opacity: 1;
}

.visible .beats span {
    opacity: 1;
}

/* --- 4. Intro Panel --- */
.intro-panel {
    background: radial-gradient(circle at center, rgba(127, 86, 217, 0.05) 0%, transparent 70%);
    text-align: center;
}

#intro {
    min-height: auto;
    padding-top: 16px;
    padding-bottom: 128px;
}

.intro-name {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 800;
    letter-spacing: -0.05em;
    margin-bottom: 16px;
}

.intro-tagline {
    font-size: 1.5rem;
    color: var(--accent-purple);
    margin-bottom: 24px;
}

.intro-support {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* --- 5. The Process --- */
.process-header-panel {
    text-align: center;
    padding-bottom: 128px;
    min-height: auto;
    padding-top: 128px;
}

.section-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    margin-bottom: 32px;
    line-height: var(--line-height-heading);
}

.eyebrow {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--accent-purple);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 24px;
    display: block;
}

.process-step {
    min-height: auto;
    padding: 64px 40px;
}

#step-1 {
    padding-top: 128px;
}

.process-step .text-side {
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    padding-left: 100px;
}

.step-num {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 5rem;
    font-weight: 800;
    line-height: 1;
    color: rgba(255, 255, 255, 0.05);
    margin-bottom: 0;
}

.process-step.reverse .text-side {
    padding-left: 0;
    padding-right: 100px;
}

.process-step.reverse .step-num {
    left: auto;
    right: 0;
}

.badge-free {
    font-size: 0.7rem;
    background: var(--accent-purple);
    color: white;
    padding: 2px 10px;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    display: table;
    margin-top: 8px;
    margin-bottom: 12px;
}

.pill-color-primary {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    border-radius: 9999px;
    border: 1px solid #E9D8FD;
    /* ring-utility-brand-200 */
    background-color: var(--brand-50);
    color: var(--brand-700);
    padding: 4px 12px;
    /* py-1 px-3 */
    font-size: 0.875rem;
    /* text-sm */
    font-weight: 500;
    /* font-medium */
}

/* --- Podfest Badge --- */
.podfest-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(182, 146, 246, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #FFD700;
    display: none;
    /* Mobile only via class or media query */
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 8px;
    z-index: 2000;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.podfest-pill {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 100px;
    padding: 6px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    color: #FFD700;
    font-size: 0.75rem;
    font-weight: 700;
}

.podfest-pill:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.podfest-banner:hover {
    background: rgba(182, 146, 246, 0.25);
}


.coming-soon-tag {
    font-size: 0.75rem;
    opacity: 0.7;
    margin-left: 4px;
    font-weight: 400;
    /* Show only in mobile menu */
}

.panel-light .podfest-badge {
    background: rgba(105, 65, 198, 0.05);
    border-color: rgba(105, 65, 198, 0.15);
}

.panel-light .podfest-badge:hover {
    background: rgba(105, 65, 198, 0.08);
    border-color: rgba(105, 65, 198, 0.3);
}

.process-step .visual-image-container {
    aspect-ratio: 16/10;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.process-step .panel-image {
    width: 90%;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

#step-5 {
    padding-bottom: 128px;
}

/* --- 6. Benefits Panel --- */
.benefits-panel {
    background: var(--bg-dark);
}

.rhythmic-reveals {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.benefit-line {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 500;
    letter-spacing: -0.02em;
}

/* --- Animated Social Proof (V3) --- */
.proof-panel {
    height: 288px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: visible !important;
    z-index: 100;
    padding: 64px 40px;
    /* Reduced padding from 80px to 64px (16px less on top and bottom) */
}

.animated-quote-container {
    padding: 0 40px;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: visible !important;
    perspective: 1200px;
}

.testimonial-animated {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: var(--font-weight-heading-semibold);
    line-height: 1.1;
    margin-bottom: 16px;
    letter-spacing: var(--letter-spacing-heading);
    color: var(--brand-900);
    min-height: 1.2em;
}

.author-animated {
    font-size: 1.2rem;
    color: var(--text-light-secondary);
    font-style: normal;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.author-animated.visible {
    opacity: 1;
}

.letter {
    display: inline-block;
    position: relative;
    white-space: pre;
    opacity: 0;
    transform: translateY(5px);
    padding: 0;
    margin: 0;
}

.word {
    display: inline-block;
    white-space: nowrap;
    vertical-align: top;
}

.letter.typed {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.1s ease, transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.letter.exploding {
    position: absolute;
    pointer-events: none;
    z-index: 9999;
    /* Float over everything */
    transition: transform 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 1.5s ease-out;
    transform-style: preserve-3d;
}

.explosion-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* Hide the old carousel nav if still present in CSS but not HTML */
.carousel-track,
.carousel-nav,
.carousel-dots {
    display: none !important;
}

/* Re-enable display for animated version */
.animated-quote-container {
    display: flex !important;
}

/* --- 8. Final Panel --- */
.final-panel {
    text-align: center;
    min-height: 50vh;
    padding-top: calc(var(--spacing-panel) / 2);
    padding-bottom: calc(var(--spacing-panel) / 2);
}

.final-title {
    padding-top: 32px;
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: var(--font-weight-heading-bold);
    line-height: var(--line-height-heading);
    letter-spacing: var(--letter-spacing-heading);
    margin-bottom: 48px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.final-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 48px;
}

/* --- Input Component (Repo Port) --- */
.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    /* max-width removal to allow flex grow in group */
    background: white;
    border: 1px solid #D1D5DB;
    /* gray-300 */
    border-radius: 8px;
    /* rounded-lg */
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
    /* shadow-xs */
    padding: 10px 14px;
    /* md size */
    transition: all 0.2s ease;
}

.input-wrapper:focus-within {
    border-color: var(--brand-300, #D6BBFB);
    box-shadow: 0 0 0 4px var(--brand-100);
    /* ring-4 ring-brand-100 */
}

.input-icon {
    width: 20px;
    height: 20px;
    color: var(--brand-700);
    margin-right: 10px;
    /* gap */
    flex-shrink: 0;
}

.input-field {
    border: none;
    outline: none;
    width: 100%;
    font-size: 1rem;
    /* text-md */
    color: #111827;
    /* gray-900 */
    background: transparent;
    line-height: 1.5;
}

.input-field::placeholder {
    color: #667085;
    /* gray-500 */
}

/* New Horizontal Group & Wrapper */
.cta-block-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    max-width: 600px;
    gap: 0;
}

.cta-header-label {
    font-size: 1.125rem;
    color: var(--text-primary);
    margin-bottom: 12px;
    font-weight: 500;
    text-align: left;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
    display: block;
    width: 100%;
}

.cta-input-group {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-bottom: 8px;
}

/* Specific microcopy alignment inside cta-block-wrapper */
.cta-block-wrapper .microcopy {
    margin-top: 4px;
    max-width: 480px;
    /* Constrain to match input width */
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    text-align: center;
}

.cta-input-group .input-wrapper {
    flex: 1;
    height: 56px;
    /* Explicit height match */
    padding: 0 16px;
}

.cta-input-group .btn-primary {
    height: 56px;
    /* Match input */
    padding: 0 32px;
    white-space: nowrap;
    font-size: 1.125rem;
    /* text-lg */
}

/* --- Buttons (Aligned with DS Standards) --- */
.btn-primary,
.btn-secondary,
.btn-ghost,
.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    line-height: 1;
    font-family: inherit;
}

.btn-primary {
    background: var(--brand-800);
    color: white;
    padding: 12px 24px;
    /* Default md size */
}

.btn-primary:hover {
    background: var(--brand-900);
    opacity: 0.95;
}

.btn-ghost {
    background: transparent;
    color: var(--text-primary);
    padding: 8px 16px;
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.05);
}

.btn-lg {
    padding: 18px 32px;
    font-size: 1.125rem;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.875rem;
}

.btn-link {
    background: none;
    border: none;
    padding: 0;
    font-size: 1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-purple);
    font-weight: 600;
    text-decoration: none;
}

.btn-link:hover {
    text-decoration: underline;
    opacity: 0.8;
}

/* Nav tooltip (Episode Studio button on home-v2) */
.nav-tooltip-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.nav-tooltip {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translate(-50%, -8px);
    background: #1e293b;
    color: #f1f5f9;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.4;
    white-space: nowrap;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.15), 0 4px 6px -2px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(148, 163, 184, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1000;
    pointer-events: none;
}

.nav-tooltip-wrapper:hover .nav-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.nav-tooltip::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid #1e293b;
}

.beta-cta-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 32px;
}

.beta-label-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 500;
}

.btn svg {
    flex-shrink: 0;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 1024px) {
    .split-panel .content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .nav-container {
        padding: 0 24px;
    }

    .beats {
        flex-direction: column;
        gap: 20px;
    }
}

/* --- Modal Styles (Ported from V1) --- */
.modal {
    display: none;
    position: fixed;
    z-index: 99999;
    /* Max priority */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.82);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    overflow-y: auto;
    /* Allow modal itself to scroll if content is really tall */
    padding: 40px 20px;
    /* Better gutter for mobile and breathing room */
    cursor: default;
}

.modal.active {
    display: block;
    /* Using block + auto margin for better scroll reliability */
}

.modal-content {
    background: white;
    border-radius: 24px;
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
    /* Center horizontally */
    max-height: calc(100vh - 80px);
    /* slightly more room */
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    color: #1a1a1a;
    animation: modalReveal 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: auto;
    /* Ensure events are captured */
}

/* Ensure centering on desktop when content fits */
@media (min-height: 700px) {
    .modal {
        display: none;
        align-items: center;
        justify-content: center;
        padding: 20px;
    }

    .modal.active {
        display: flex;
    }

    .modal-content {
        margin: 0;
    }
}

@keyframes modalReveal {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }

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

.modal-header {
    padding: 32px 32px 24px;
    border-bottom: 1px solid #f0f0f0;
    background: white;
    text-align: center;
    position: relative;
    flex-shrink: 0;
}

.modal-header h2 {
    color: #1a1a1a;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.modal-header p {
    color: #666;
    font-size: 14px;
    line-height: 1.4;
}

.modal-body {
    padding: 32px;
    overflow-y: auto;
    flex-grow: 1;
    min-height: 0;
    /* Critical for flex scrolling */
    position: relative;
    z-index: 1;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    will-change: scroll-position;
    pointer-events: auto;
}

/* Custom scrollbar to ensure visibility and interaction surface */
.modal-body::-webkit-scrollbar {
    width: 6px;
}

.modal-body::-webkit-scrollbar-track {
    background: transparent;
}

.modal-body::-webkit-scrollbar-thumb {
    background: #e2e2e7;
    border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: #d2d2d7;
}

.modal-footer {
    padding: 24px 32px;
    border-top: 1px solid #f0f0f0;
    background: white;
    flex-shrink: 0;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #f5f5f7;
    border: none;
    font-size: 20px;
    color: #86868b;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 20;
}

.modal-close:hover {
    background: #e8e8ed;
    color: #1d1d1f;
}

.form-section {
    margin-bottom: 32px;
}

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

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

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1a1a1a;
    font-size: 14px;
}

.form-group input:not([type="radio"]):not([type="checkbox"]) {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d2d2d7;
    border-radius: 12px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-group input[type="radio"],
.form-group input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-purple);
}

.form-section-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-purple);
    margin-bottom: 16px;
    font-weight: 700;
    opacity: 0.8;
}

.radio-group,
.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.radio-group.vertical,
.checkbox-group.vertical {
    flex-direction: column;
    align-items: flex-start;
}

.radio-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.radio-option,
.checkbox-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: #f5f5f7;
    border: 1px solid transparent;
    /* reserved for focus */
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    color: #1d1d1f;
    transition: all 0.2s;
}

.radio-option:hover,
.checkbox-option:hover {
    background: #e8e8ed;
}

/* Accessible focus state for custom radio/checkbox controls */
.radio-option:focus-within,
.checkbox-option:focus-within {
    border-color: var(--accent-purple);
    box-shadow: 0 0 0 3px rgba(127, 86, 217, 0.2);
    background: white;
}

.btn-block {
    width: 100%;
}

.modal-note {
    font-size: 12px;
    color: #86868b;
    margin-top: 12px;
}

/* --- 13. Global Footer --- */
.v2-footer {
    padding: 80px 40px;
    background-color: var(--bg-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 32px;
}

.footer-logo {
    height: 32px;
    width: auto;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.footer-logo:hover {
    opacity: 1;
}

.footer-links {
    display: flex;
    gap: 32px;
}

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

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.copyright {
    color: rgba(255, 255, 255, 0.3);
    font-size: 12px;
}

@media (max-width: 1024px) {
    .v2-footer {
        padding: 60px 24px;
    }

    .footer-top {
        flex-direction: column;
        align-items: flex-start;
    }

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

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}

/* --- Cookie banner (GDPR) --- */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #1c1133;
    color: #ffffff;
    font-family: var(--font-primary);
    padding: 20px clamp(16px, 4vw, 40px);
    box-shadow: 0 -3px 12px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-size: 15px;
    line-height: 1.4;
    transform: translateY(100%);
    transition: transform 0.5s ease-out;
    z-index: 9999;
}

#cookie-banner.show {
    transform: translateY(0);
}

#cookie-banner p {
    margin: 0;
    flex: 1 1 320px;
}

#cookie-banner a {
    color: #b19dff;
    text-decoration: underline;
}

#cookie-banner .cookie-btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

#cookie-banner button {
    background: #b19dff;
    color: #1c1133;
    border: none;
    border-radius: 32px;
    padding: 0.55rem 1.5rem;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-primary);
    transition: background-color 0.25s ease;
}

#cookie-banner button:hover {
    background: #a38dff;
}

/* --- Headline Toggle Dot --- */
.headline-toggle-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 16px;
    height: 16px;
    background-color: #2A243F;
    /* Slightly lighter than hero background #140E26 */
    cursor: pointer;
    z-index: 9999;
    transition: background-color 0.2s ease;
}

.headline-toggle-dot:hover {
    background-color: #3b3355;
}

/* ===========================================
   SEARCH TRIGGER (Hero Input Replacement)
   =========================================== */

.search-trigger {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease-out;
    width: 100%;
    max-width: 480px;
}

.search-trigger:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.search-trigger .input-icon {
    color: var(--brand-700);
    flex-shrink: 0;
}

.search-trigger .trigger-placeholder {
    color: #9ca3af;
    font-size: 16px;
    flex: 1;
    text-align: left;
}

/* ===========================================
   PAUSE UNDERLYING ANIMATIONS WHEN SEARCH ACTIVE
   =========================================== */

/* Pause ALL animations on the page except inside the search overlay */
body.search-active * {
    animation-play-state: paused !important;
}

body.search-active .search-overlay,
body.search-active .search-overlay * {
    animation-play-state: running !important;
}

/* Freeze transitions (reveal, parallax, etc.) on underlying page */
body.search-active .story-container .reveal,
body.search-active .story-container .visual-side,
body.search-active .story-container .beats span,
body.search-active .story-container .funnel-image,
body.search-active .v2-nav {
    transition: none !important;
}

/* Explicit pause for story-container (backup) */
body.search-active .story-container>*:not(.search-overlay):not(.modal),
body.search-active .story-container>*:not(.search-overlay):not(.modal) * {
    animation-play-state: paused !important;
}

/* ===========================================
   SEARCH OVERLAY
   =========================================== */

.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 12vh;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-out, visibility 0.3s ease-out;
}

.search-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.search-overlay.hidden {
    display: none;
}

/* Backdrop - with centered radial glow */
.search-overlay-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse 60% 50% at 50% 40%, rgba(139, 107, 232, 0.15) 0%, transparent 70%),
        rgba(15, 10, 25, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* ===========================================
   SEARCH PANEL (Glass Container)
   =========================================== */

.search-panel {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 580px;
    /* Radial gradient - lighter in center for focus */
    background:
        radial-gradient(ellipse 80% 60% at 50% 30%, rgba(60, 50, 90, 0.95) 0%, rgba(25, 20, 40, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    /* Atmospheric glow - lavender outer glow for floating effect */
    box-shadow:
        0 0 60px rgba(139, 107, 232, 0.2),
        0 24px 64px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    overflow: hidden;
    animation: panelEnter 0.4s ease-out;
}

/* Fix border-radius with border-image */
.search-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.12));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

@keyframes panelEnter {
    from {
        opacity: 0;
        transform: scale(0.96) translateY(-20px);
    }

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

/* --- Utility Classes --- */
.mobile-only {
    display: none !important;
}

.desktop-only {
    display: block !important;
}

@media (max-width: 1024px) {
    .mobile-only {
        display: block !important;
    }

    .desktop-only {
        display: none !important;
    }
}

/* ===========================================
   SEARCH PHASE
   =========================================== */

.search-phase {
    display: flex;
    flex-direction: column;
}

.search-phase.hidden {
    display: none;
}

.search-panel.hidden {
    display: none;
}

/* Search Input */
.search-input-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.search-icon {
    color: rgba(255, 255, 255, 0.4);
    flex-shrink: 0;
}

.search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-size: 18px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.search-close-btn {
    background: transparent;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.4);
    border-radius: 8px;
    transition: all 0.15s;
}

.search-close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
}

/* Search Results */
.search-results {
    max-height: 360px;
    overflow-y: auto;
}

.search-results::-webkit-scrollbar {
    width: 6px;
}

.search-results::-webkit-scrollbar-track {
    background: transparent;
}

.search-results::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

/* Result Item */
.search-result {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 24px;
    cursor: pointer;
    transition: background 0.15s ease-out;
    border-left: 3px solid transparent;
}

.search-result:hover,
.search-result.focused {
    background: rgba(139, 107, 232, 0.12);
    border-left-color: #8B6BE8;
}

.search-result:active {
    background: rgba(139, 107, 232, 0.2);
}

.result-artwork {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    object-fit: cover;
    flex-shrink: 0;
}

.result-info {
    flex: 1;
    min-width: 0;
}

.result-title {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.result-meta {
    display: block;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

/* Empty / Loading States */
.search-empty,
.search-loading,
.search-placeholder {
    padding: 48px 24px;
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 15px;
}

.search-placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.search-loading::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-left: 8px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-top-color: #8B6BE8;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Show More Button */
.search-show-more {
    display: block;
    width: 100%;
    padding: 14px 24px;
    background: transparent;
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    color: rgba(139, 107, 232, 0.85);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s ease-out, color 0.15s ease-out;
}

.search-show-more:hover {
    background: rgba(139, 107, 232, 0.1);
    color: rgba(139, 107, 232, 1);
}

.search-show-more:active {
    background: rgba(139, 107, 232, 0.18);
}

/* Search Footer */
.search-footer {
    padding: 16px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
}

.search-hint {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
}

.search-rss-link {
    font-size: 13px;
    color: #8B6BE8;
    text-decoration: none;
    margin-left: 4px;
    transition: color 0.15s;
}

.search-rss-link:hover {
    color: #a78bfa;
    text-decoration: underline;
}

/* Escape Hint */
.search-escape-hint {
    position: relative;
    margin-top: 24px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.3);
}

.search-escape-hint kbd {
    display: inline-block;
    padding: 2px 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    font-family: inherit;
    font-size: 12px;
}

/* ===========================================
   HANDOFF PHASE (Identity Confirmation)
   =========================================== */

.handoff-phase {
    padding: 32px;
}

.handoff-phase.hidden {
    display: none;
}

/* Lauralai Section */
.handoff-lauralai {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 28px;
    animation: fadeIn 0.4s ease-out;
}

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

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

.lauralai-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 3px solid rgba(139, 107, 232, 0.4);
    box-shadow: 0 0 24px rgba(139, 107, 232, 0.3);
    margin-bottom: 8px;
    object-fit: cover;
}

.lauralai-name {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 12px;
}

.lauralai-bubble {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 12px 20px;
    max-width: 400px;
    text-align: center;
}

.lauralai-bubble span {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
}

/* Identity Card */
.identity-card {
    display: flex;
    gap: 20px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    margin-bottom: 28px;
    animation: fadeIn 0.4s ease-out 0.1s both;
}

.identity-artwork {
    width: 100px;
    height: 100px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    object-fit: cover;
    flex-shrink: 0;
}

.identity-info {
    flex: 1;
    min-width: 0;
}

.identity-title {
    font-size: 20px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    margin: 0 0 4px 0;
    line-height: 1.3;
}

.identity-host {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0 12px 0;
}

.identity-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.meta-pill {
    font-size: 12px;
    /* Indigo-100 for legibility */
    color: #c7d2fe;
    background: rgba(255, 255, 255, 0.06);
    padding: 5px 12px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.identity-description {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Handoff Actions */
.handoff-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    animation: fadeIn 0.4s ease-out 0.2s both;
}

.handoff-actions .btn-primary {
    width: 100%;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    background: linear-gradient(to right, #9333ea, #c084fc);
    border: none;
    border-radius: 12px;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease-out;
    box-shadow: 0 4px 20px rgba(139, 107, 232, 0.3);
}

.handoff-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(139, 107, 232, 0.4);
}

.handoff-actions .btn-ghost {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.15s;
}

.handoff-actions .btn-ghost:hover {
    color: rgba(255, 255, 255, 0.8);
}

/* Dev Mode Toggle */
.dev-mode-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    cursor: pointer;
    opacity: 0.4;
    transition: opacity 0.2s ease;
}

.dev-mode-toggle:hover {
    opacity: 0.7;
}

.dev-mode-toggle input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #8B6BE8;
    cursor: pointer;
}

.dev-mode-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.dev-mode-toggle input[type="checkbox"]:checked+.dev-mode-label {
    color: #8B6BE8;
}

/* ===========================================
   MOBILE RESPONSIVE - Search Overlay
   =========================================== */

@media (max-width: 640px) {
    .search-trigger {
        width: 100%;
        max-width: 100%;
    }

    .search-overlay {
        padding: 8px;
        padding-top: 8vh;
    }

    .search-panel {
        border-radius: 20px;
        max-width: 100%;
    }

    .search-input-wrapper {
        padding: 16px 20px;
    }

    .search-input {
        font-size: 16px;
        /* Prevent iOS zoom */
    }

    .search-result {
        padding: 14px 20px;
    }

    .result-artwork {
        width: 48px;
        height: 48px;
    }

    .handoff-phase {
        padding: 24px;
    }

    .identity-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .identity-artwork {
        width: 80px;
        height: 80px;
    }

    .identity-meta {
        justify-content: center;
    }

    .lauralai-avatar {
        width: 64px;
        height: 64px;
    }

    .search-escape-hint {
        display: none;
        /* Hide on mobile - no keyboard */
    }
}


/* ===========================================
   ONBOARDING PANEL (Split Layout)
   =========================================== */

.onboarding-panel {
    position: relative;
    width: 100%;
    max-width: 1040px;
    display: flex;
    /* Radial gradient - lighter in center for focus */
    background:
        radial-gradient(ellipse 70% 50% at 60% 40%, rgba(60, 50, 90, 0.9) 0%, rgba(25, 20, 40, 0.95) 100%);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    /* Atmospheric glow */
    box-shadow:
        0 0 60px rgba(139, 107, 232, 0.2),
        0 24px 64px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    overflow: hidden;
    animation: panelEnter 0.4s ease-out;
}

/* Glass edge shimmer */
.onboarding-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.12));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 0;
}

.onboarding-panel.hidden {
    display: none;
}

/* Left: Podcast Context */
.panel-context {
    width: 200px;
    flex-shrink: 0;
    padding: 24px;
    background: rgba(0, 0, 0, 0.2);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.context-artwork {
    width: 140px;
    height: 140px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    object-fit: cover;
    margin-bottom: 16px;
    /* Subtle outer glow for image pop */
    box-shadow:
        0 0 20px rgba(139, 107, 232, 0.2),
        0 8px 24px rgba(0, 0, 0, 0.3);
}

.context-info {
    width: 100%;
}

.context-title {
    font-size: 17px;
    font-weight: 600;
    /* Near white for maximum pop - Indigo-50 equivalent */
    color: #eef2ff;
    margin: 0 0 4px 0;
    line-height: 1.3;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.context-host {
    font-size: 13px;
    /* Indigo-100 equivalent for better legibility */
    color: #e0e7ff;
    margin: 0 0 12px 0;
}

.context-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.context-pill {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 8px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Right: Conversation */
.panel-conversation {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 420px;
    max-height: 75vh;
}

.conversation-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Back button */
.back-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.9);
}

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

/* Progress dots */
.progress-dots {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    padding-right: 4px;
}

.progress-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
}

.progress-dot.completed {
    background: #8B6BE8;
}

.progress-dot.current {
    background: #8B6BE8;
    box-shadow: 0 0 0 3px rgba(139, 107, 232, 0.25);
}

.progress-dots.hidden {
    display: none;
}

.lauralai-avatar-sm {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(139, 107, 232, 0.4);
    object-fit: cover;
}

.lauralai-name-sm {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.conversation-content {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

/* ===========================================
   MESSAGE BUBBLE
   =========================================== */

.message-bubble {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 16px 20px;
    margin-bottom: 20px;
    max-width: 100%;
}

.message-bubble p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    margin: 0;
}

.message-bubble .email-highlight {
    display: inline-block;
    background: rgba(139, 107, 232, 0.2);
    color: #c084fc;
    padding: 2px 8px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 14px;
}

/* ===========================================
   PILL BUTTONS (Conversation Options)
   =========================================== */

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

.pill-group.horizontal {
    flex-direction: row;
    flex-wrap: wrap;
}

.pill-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease-out;
    text-align: center;
}

.pill-btn:hover {
    background: rgba(139, 107, 232, 0.15);
    border-color: rgba(139, 107, 232, 0.4);
    transform: translateY(-1px);
}

.pill-btn:active {
    transform: translateY(0);
}

.pill-btn.primary {
    background: linear-gradient(to right, #9333ea, #c084fc);
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 16px rgba(139, 107, 232, 0.3);
}

.pill-btn.primary:hover {
    box-shadow: 0 6px 24px rgba(139, 107, 232, 0.4);
    transform: translateY(-2px);
}

.pill-btn.secondary {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
}

.pill-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.9);
}

.pill-btn.ghost {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    padding: 10px 16px;
}

.pill-btn.ghost:hover {
    color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.25);
}

.pill-btn.admin {
    background: rgba(255, 193, 7, 0.1);
    border-color: rgba(255, 193, 7, 0.3);
    color: #ffc107;
    font-size: 13px;
}

.pill-btn.admin:hover {
    background: rgba(255, 193, 7, 0.2);
}

.pill-btn .pill-icon {
    font-size: 18px;
}

.pill-btn.selected {
    background: rgba(139, 107, 232, 0.25);
    border-color: #8B6BE8;
}

.pill-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* Verification option buttons with subtext */
.pill-btn.verification-option {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 4px;
}

.verification-option .option-label {
    font-weight: 500;
}

.verification-option .option-subtext {
    font-size: 12px;
    font-weight: 400;
    opacity: 0.7;
    line-height: 1.3;
}

/* ===========================================
   CODE INPUT (6-digit verification)
   =========================================== */

.code-input-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 24px 0;
}

.code-input {
    width: 48px;
    height: 56px;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    font-size: 24px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    text-align: center;
    outline: none;
    transition: all 0.2s ease-out;
}

.code-input:focus {
    border-color: #8B6BE8;
    background: rgba(139, 107, 232, 0.1);
    box-shadow: 0 0 0 3px rgba(139, 107, 232, 0.2);
}

.code-input.error {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
    animation: shake 0.4s ease-out;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-6px);
    }

    75% {
        transform: translateX(6px);
    }
}

.code-error-message {
    color: #f87171;
    font-size: 14px;
    text-align: center;
    margin-top: 12px;
}

.code-resend {
    text-align: center;
    margin-top: 16px;
}

.code-resend a {
    color: #8B6BE8;
    font-size: 14px;
    text-decoration: none;
}

.code-resend a:hover {
    text-decoration: underline;
}

/* ===========================================
   TEXT INPUT (Alternate email, website)
   =========================================== */

.text-input-group {
    margin: 16px 0;
}

.text-input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.95);
    outline: none;
    transition: all 0.2s ease-out;
}

.text-input:focus {
    border-color: #8B6BE8;
    background: rgba(139, 107, 232, 0.1);
}

.text-input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.text-input.error {
    border-color: #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
    animation: shake 0.3s ease-out;
}

/* ===========================================
   USER CONFIRMATION FORM
   =========================================== */

.user-confirm-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 360px;
}

.user-confirm-form .text-input {
    width: 100%;
}

.user-confirm-form select.text-input {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='%23999'%3E%3Cpath d='M5 8l5 5 5-5H5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

.user-confirm-form .pill-btn {
    margin-top: 8px;
    width: 100%;
}

.user-confirm-form.manual-entry {
    gap: 10px;
}

.message-subtext {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 4px;
}

/* ===========================================
   INTENT SELECTION (Goal Pills)
   =========================================== */

.intent-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.intent-pill {
    padding: 14px 16px;
    text-align: left;
    flex-direction: row;
    align-items: flex-start;
    min-height: 70px;
}

.intent-pill .pill-icon {
    font-size: 20px;
    margin-right: 10px;
    flex-shrink: 0;
    margin-top: 2px;
}

.intent-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: left;
}

.intent-label {
    font-weight: 600;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.95);
}

.intent-desc {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.4;
}

/* Priority selection grid (fewer items) */
.priority-grid {
    grid-template-columns: repeat(2, 1fr);
}

.priority-grid .intent-pill {
    transition: all 0.2s ease-out;
}

.priority-grid .intent-pill:hover {
    background: rgba(139, 107, 232, 0.25);
    border-color: #8B6BE8;
    transform: translateY(-2px);
}

/* ===========================================
   EPISODE LIST (Scrollable Selection)
   =========================================== */

.episode-list-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.episode-search {
    margin-bottom: 12px;
}

.episode-list {
    flex: 1;
    overflow-y: auto;
    max-height: 280px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    margin-bottom: 16px;
}

.episode-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.15s ease-out;
}

.episode-item:last-child {
    border-bottom: none;
}

.episode-item:hover {
    background: rgba(139, 107, 232, 0.1);
}

.episode-item.selected {
    background: rgba(139, 107, 232, 0.2);
    border-left: 3px solid #8B6BE8;
}

.episode-radio {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease-out;
}

.episode-item.selected .episode-radio {
    border-color: #8B6BE8;
    background: #8B6BE8;
}

.episode-item.selected .episode-radio::after {
    content: '';
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
}

.episode-info {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.episode-title-text {
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: rgba(255, 255, 255, 0.9);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.episode-date {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 2px;
}

/* ===========================================
   GENERATING STATE (Muse at Work)
   =========================================== */

.generating-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
}

.generating-avatar {
    position: relative;
    width: 100px;
    height: 100px;
    margin-bottom: 24px;
}

.generating-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.generating-ring {
    position: absolute;
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
    border: 3px solid transparent;
    border-top-color: #8B6BE8;
    border-radius: 50%;
    animation: spin 1.2s linear infinite;
}

.generating-caption {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 24px;
    min-height: 24px;
    transition: opacity 0.3s ease-out;
}

.generating-progress {
    display: flex;
    gap: 8px;
}

.progress-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transition: background 0.3s ease-out;
}

.progress-dot.filled {
    background: #8B6BE8;
}

/* ===========================================
   AUDIENCE CONFIRMATION
   =========================================== */

.audience-confirmation {
    padding: 16px 0;
}

.confirmation-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-confirm {
    padding: 12px 24px;
    background: linear-gradient(135deg, #9333ea, #c084fc);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease-out;
}

.btn-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(139, 107, 232, 0.4);
}

.btn-adjust {
    padding: 12px 24px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease-out;
}

.btn-adjust:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.9);
}

.confirmation-adjust {
    margin-top: 16px;
}

.confirmation-adjust.hidden {
    display: none;
}

.adjust-prompt {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0 12px 0;
}

.confirmation-adjust textarea {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    color: white;
    font-size: 15px;
    line-height: 1.5;
    resize: none;
    margin-bottom: 12px;
    box-sizing: border-box;
}

.confirmation-adjust textarea::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.confirmation-adjust textarea:focus {
    outline: none;
    border-color: rgba(139, 107, 232, 0.5);
    background: rgba(255, 255, 255, 0.08);
}

.confirmation-adjust .btn-primary,
.confirmation-adjust .pill-btn.primary {
    width: 100%;
}

/* ===========================================
   SUBTLE LOADING (ONBOARDING-009)
   =========================================== */

.subtle-loading {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 12px 24px;
    border-radius: 24px;
    z-index: 100;
}

.subtle-loading-content {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
}

.subtle-loading-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(139, 107, 232, 0.3);
    border-top-color: rgba(139, 107, 232, 1);
    border-radius: 50%;
    animation: subtleSpin 0.8s linear infinite;
}

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

/* ===========================================
   PRESENTATION STATE (Lauralai Explains Persona)
   =========================================== */

.presentation-container {
    flex: 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 24px 20px;
    overflow-y: auto;
    max-height: 100%;
}

.presentation-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 40px;
    max-width: 540px;
    width: 100%;
    animation: presentationFadeIn 0.6s ease-out;
}

/* Wider card variant - no avatar header means more room for text */
.presentation-card-wide {
    max-width: 620px;
    padding: 32px 40px;
}

@keyframes presentationFadeIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

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

.presentation-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.presentation-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid rgba(139, 107, 232, 0.4);
    object-fit: cover;
}

.presentation-name {
    font-size: 16px;
    font-weight: 600;
    color: rgba(139, 107, 232, 1);
}

.presentation-message {
    font-size: 17px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
}

.presentation-message p {
    margin: 0 0 16px 0;
}

.presentation-message p:last-of-type {
    margin-bottom: 0;
}

.presentation-message strong {
    color: rgba(255, 255, 255, 1);
}

.presentation-ready {
    margin-top: 24px !important;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.presentation-cta {
    width: 100%;
    margin-top: 32px;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    background: linear-gradient(135deg, #9333ea, #c084fc);
    border: none;
    border-radius: 12px;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease-out;
}

.presentation-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(139, 107, 232, 0.4);
}

/* Pulse animation for CTA */
.presentation-cta-pulse {
    animation: presentationFadeIn 0.6s ease-out, ctaPulse 2s ease-in-out 1s infinite;
}

@keyframes ctaPulse {

    0%,
    100% {
        box-shadow: 0 4px 16px rgba(139, 107, 232, 0.3);
    }

    50% {
        box-shadow: 0 4px 32px rgba(139, 107, 232, 0.6), 0 0 0 8px rgba(139, 107, 232, 0.1);
    }
}

/* Persona image select in-flow (skip/fail path - stay in new flow) */
.persona-select-inflow {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 24px 20px;
    overflow-y: auto;
}

.persona-select-inflow .message-bubble {
    margin-bottom: 20px;
}

.persona-carousel-embed {
    flex: 1;
    min-height: 420px;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.persona-iframe-inflow {
    width: 100%;
    height: 500px;
    border: none;
    display: block;
}

/* Mobile */
@media (max-width: 640px) {
    .presentation-container {
        padding: 16px;
    }

    .presentation-card,
    .presentation-card-wide {
        padding: 24px 20px;
        max-width: 100%;
    }

    .presentation-message {
        font-size: 15px;
    }

    .persona-carousel-embed {
        min-height: 360px;
    }

    .persona-iframe-inflow {
        height: 440px;
    }
}

/* ===========================================
   REVEAL PANEL (Full-Width Persona) - DEPRECATED
   =========================================== */

.reveal-panel {
    position: relative;
    width: 100%;
    max-width: 600px;
    /* Radial gradient - lighter in center */
    background:
        radial-gradient(ellipse 80% 60% at 50% 30%, rgba(60, 50, 90, 0.9) 0%, rgba(25, 20, 40, 0.95) 100%);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    /* Atmospheric glow */
    box-shadow:
        0 0 60px rgba(139, 107, 232, 0.2),
        0 24px 64px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    padding: 40px;
    overflow: hidden;
    animation: panelEnter 0.5s ease-out;
}

/* Glass edge shimmer for reveal panel */
.reveal-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.12));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.reveal-panel.hidden {
    display: none;
}

/* Affirmation before reveal */
.affirmation-reveal {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.affirmation-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.affirmation-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid rgba(139, 107, 232, 0.4);
    object-fit: cover;
    /* Subtle glow to match identity badge */
    box-shadow: 0 0 16px rgba(139, 107, 232, 0.25);
}

.affirmation-name {
    font-size: 18px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
}

.affirmation-content {
    font-size: 16px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 32px;
    text-align: left;
    max-width: 480px;
}

.affirmation-content p {
    margin: 0;
}

#meetListenerBtn {
    padding: 16px 32px;
    font-size: 16px;
}

.persona-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 32px;
}

.persona-image-container {
    position: relative;
    margin-bottom: 16px;
}

.persona-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid rgba(139, 107, 232, 0.4);
    box-shadow: 0 0 32px rgba(139, 107, 232, 0.3);
    object-fit: cover;
    animation: imageReveal 0.6s ease-out;
}

@keyframes imageReveal {
    from {
        opacity: 0;
        filter: blur(10px);
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        filter: blur(0);
        transform: scale(1);
    }
}

.persona-name {
    font-size: 24px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    margin: 0 0 4px 0;
    animation: fadeSlideUp 0.4s ease-out 0.3s both;
}

.persona-location {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    animation: fadeSlideUp 0.4s ease-out 0.4s both;
}

@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

.persona-section {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
}

.persona-section:nth-child(1) {
    animation: fadeSlideUp 0.4s ease-out 0.5s both;
}

.persona-section:nth-child(2) {
    animation: fadeSlideUp 0.4s ease-out 0.7s both;
}

.persona-section:nth-child(3) {
    animation: fadeSlideUp 0.4s ease-out 0.9s both;
}

.section-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #8B6BE8;
    margin-bottom: 10px;
}

.section-text {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    margin: 0;
}

.reveal-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
    animation: fadeSlideUp 0.4s ease-out 1.1s both;
}

.reveal-actions .btn-primary {
    width: 100%;
    max-width: 280px;
}

/* ===========================================
   PERSONA REVEAL - REDESIGN (Hero Banner)
   =========================================== */

.reveal-container {
    padding: 32px;
}

.reveal-container.expanded {
    padding-bottom: 100px;
}

/* ─────────────────────────────────────────────
   LAURALAI INTRODUCTION
   ───────────────────────────────────────────── */

.reveal-intro {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.reveal-lauralai-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    flex-shrink: 0;
    border: 2px solid rgba(139, 107, 232, 0.3);
    object-fit: cover;
}

.reveal-intro-text {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.6;
    margin: 0;
    font-style: italic;
}

/* ─────────────────────────────────────────────
   DIVIDER
   ───────────────────────────────────────────── */

.reveal-divider {
    height: 1px;
    background: linear-gradient(to right,
            transparent,
            rgba(139, 107, 232, 0.4) 20%,
            rgba(139, 107, 232, 0.4) 80%,
            transparent);
    margin: 24px 0;
    transform-origin: left;
}

/* ─────────────────────────────────────────────
   HERO BANNER (Full-width contextual image)
   ───────────────────────────────────────────── */

.reveal-hero {
    position: relative;
    width: 100%;
    height: 280px;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 24px;
}

.reveal-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.reveal-hero-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.85) 0%,
            rgba(0, 0, 0, 0.5) 50%,
            rgba(0, 0, 0, 0) 100%);
    pointer-events: none;
}

.reveal-hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 24px;
    z-index: 2;
}

.reveal-hero-name {
    font-size: 26px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    margin: 0 0 4px 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.reveal-hero-meta {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

/* Compact header for expanded state */
.reveal-container.expanded .reveal-hero {
    height: 80px;
    display: flex;
    align-items: center;
    padding: 0 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.reveal-container.expanded .reveal-hero-image {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    margin-right: 16px;
}

.reveal-container.expanded .reveal-hero-gradient {
    display: none;
}

.reveal-container.expanded .reveal-hero-content {
    position: static;
    padding: 0;
    flex: 1;
}

.reveal-container.expanded .reveal-hero-name {
    font-size: 18px;
    text-shadow: none;
}

.reveal-container.expanded .reveal-hero-meta {
    font-size: 13px;
    text-shadow: none;
    color: rgba(255, 255, 255, 0.6);
}

/* ─────────────────────────────────────────────
   PULL QUOTE
   ───────────────────────────────────────────── */

.reveal-pull-quote {
    background: rgba(255, 255, 255, 0.03);
    border-left: 3px solid rgba(139, 107, 232, 0.5);
    padding: 16px 20px;
    margin: 0 0 24px 0;
    border-radius: 0 12px 12px 0;
    font-size: 17px;
    font-style: italic;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
}

/* ─────────────────────────────────────────────
   READ MORE TOGGLE
   ───────────────────────────────────────────── */

.reveal-read-more {
    display: block;
    width: 100%;
    padding: 12px;
    background: transparent;
    border: 1px dashed rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease-out;
    margin-bottom: 24px;
}

.reveal-read-more:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(139, 107, 232, 0.4);
    color: rgba(255, 255, 255, 0.9);
}

.reveal-read-more .arrow {
    display: inline-block;
    transition: transform 0.2s;
}

.reveal-container.expanded .reveal-read-more .arrow {
    transform: rotate(180deg);
}

/* ─────────────────────────────────────────────
   EXPANDED SECTIONS
   ───────────────────────────────────────────── */

.reveal-sections {
    margin-bottom: 24px;
}

.reveal-sections.hidden {
    display: none;
}

.reveal-section {
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.reveal-section:last-child {
    border-bottom: none;
}

.reveal-section-title {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(139, 107, 232, 0.8);
    margin: 0 0 12px 0;
}

.reveal-section-quote {
    font-size: 14px;
    font-style: italic;
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0 12px 0;
    padding-left: 12px;
    border-left: 2px solid rgba(139, 107, 232, 0.3);
}

.reveal-section-text {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.7;
    margin: 0;
}

/* ─────────────────────────────────────────────
   CTAs
   ───────────────────────────────────────────── */

.reveal-ctas {
    text-align: center;
}

.reveal-cta-primary {
    width: 100%;
    max-width: 280px;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    background: linear-gradient(to right, #9333ea, #c084fc);
    border: none;
    border-radius: 12px;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease-out;
}

.reveal-cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(139, 107, 232, 0.4);
}

.reveal-cta-tertiary {
    width: 100%;
    max-width: 280px;
    padding: 14px 28px;
    margin-top: 12px;
    font-size: 15px;
    font-weight: 500;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.2s ease-out;
}

.reveal-cta-tertiary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(139, 107, 232, 0.4);
    color: rgba(255, 255, 255, 0.9);
}

.reveal-cta-secondary {
    display: block;
    margin-top: 12px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
}

.reveal-cta-secondary:hover {
    color: rgba(255, 255, 255, 0.8);
}

/* ─────────────────────────────────────────────
   REVEAL ANIMATIONS
   ───────────────────────────────────────────── */

.anim-fade-in {
    opacity: 0;
    animation: revealFadeIn 0.5s ease-out forwards;
}

@keyframes revealFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.anim-slide-up {
    opacity: 0;
    transform: translateY(16px);
    animation: revealSlideUp 0.5s ease-out forwards;
}

@keyframes revealSlideUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

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

.anim-scale-in {
    opacity: 0;
    transform: scale(0.8);
    animation: revealScaleIn 0.4s ease-out forwards;
}

@keyframes revealScaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.anim-reveal-image {
    opacity: 0;
    animation: revealImageBlur 0.8s ease-out forwards;
}

@keyframes revealImageBlur {
    0% {
        opacity: 0;
        filter: blur(10px);
        transform: scale(0.95);
    }

    100% {
        opacity: 1;
        filter: blur(0);
        transform: scale(1);
    }
}

.anim-draw-line {
    transform: scaleX(0);
    animation: revealDrawLine 0.4s ease-out forwards;
}

@keyframes revealDrawLine {
    from {
        transform: scaleX(0);
    }

    to {
        transform: scaleX(1);
    }
}

.anim-expand {
    animation: revealExpand 0.4s ease-out;
}

@keyframes revealExpand {
    from {
        opacity: 0;
        max-height: 0;
    }

    to {
        opacity: 1;
        max-height: 2000px;
    }
}

/* Pulse animation for CTA */
.anim-pulse {
    animation: revealPulse 0.6s ease-out;
}

@keyframes revealPulse {

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

    50% {
        transform: scale(1.02);
    }
}

/* ===========================================
   MOBILE RESPONSIVE (Onboarding Panels)
   =========================================== */

@media (max-width: 1024px) {
    .onboarding-panel {
        flex-direction: column;
        max-width: 100%;
        margin: 8px;
    }

    .panel-context {
        width: 100%;
        flex-direction: row;
        gap: 16px;
        padding: 16px;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .context-artwork {
        width: 64px;
        height: 64px;
        margin-bottom: 0;
    }

    .context-info {
        text-align: left;
    }

    .context-title {
        font-size: 14px;
    }

    .context-meta {
        flex-direction: row;
        gap: 6px;
    }

    .panel-conversation {
        min-height: 350px;
    }

    .conversation-content {
        padding: 16px;
    }

    .intent-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .intent-pill {
        min-height: 60px;
    }
}

@media (max-width: 540px) {
    .intent-grid {
        grid-template-columns: 1fr;
        max-height: 280px;
        overflow-y: auto;
    }

    .code-input {
        width: 42px;
        height: 50px;
        font-size: 20px;
    }

    .episode-list {
        max-height: 220px;
    }

    .reveal-panel {
        padding: 24px;
        margin: 8px;
        border-radius: 20px;
        max-height: 90vh;
    }

    .persona-image {
        width: 100px;
        height: 100px;
    }

    .persona-name {
        font-size: 20px;
    }

    /* Reveal redesign mobile */
    .reveal-container {
        padding: 24px 20px;
    }

    .reveal-intro {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .reveal-lauralai-avatar {
        margin-bottom: 8px;
    }

    .reveal-intro-text {
        font-size: 14px;
    }

    .reveal-hero {
        height: 220px;
        border-radius: 12px;
    }

    .reveal-hero-name {
        font-size: 22px;
    }

    .reveal-hero-meta {
        font-size: 12px;
    }

    .reveal-pull-quote {
        font-size: 15px;
        padding: 14px 16px;
    }

    .reveal-section-text {
        font-size: 13px;
    }

    .reveal-cta-primary {
        padding: 14px 24px;
        font-size: 15px;
    }
}

/* ===========================================
   HERO VIDEO BUTTON & MODAL
   =========================================== */
.hero-video-btn {
    display: inline-flex;
    padding: 6px 12px;
    justify-content: center;
    align-items: center;
    gap: 6px;
    border-radius: 20px;
    background: rgba(182, 146, 246, 0.1);
    color: #E9D5FF;
    font-weight: 500;
    font-size: 0.85rem;
    border: 1px solid rgba(182, 146, 246, 0.2);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
    white-space: nowrap;
}

.hero-video-btn:hover {
    transform: translateY(-1px);
    background: rgba(182, 146, 246, 0.15);
}

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

.video-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.video-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.video-modal-content {
    width: 100%;
    max-width: 900px;
    position: relative;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    aspect-ratio: 16/9;
}

.video-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 8px;
    line-height: 1;
    z-index: 10000;
}