/* Standalone AI Efficiency Advisor app shell (aiea.consuit.ch) */

.aiea-app {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(1200px 600px at 10% -10%, rgba(29, 79, 145, 0.12), transparent 60%),
        linear-gradient(180deg, #f5f8fc 0%, #eef3f8 45%, #f7fafc 100%);
    color: #0f2a44;
}

.aiea-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 1.25rem;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid #d7e2ee;
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(8px);
}

.aiea-topbar__brand {
    font-weight: 700;
    font-size: 1.05rem;
    color: #0f2a44;
    text-decoration: none;
}

.aiea-topbar__website {
    font-size: 0.9rem;
    color: #1d4f91;
    text-decoration: none;
}

.aiea-main {
    padding: 1rem 0 3rem;
}

.aiea-container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ---- Live app mode: Advisor UI is the root (no marketing intermediate) ---- */
html.aiea-scroll-ok,
html.aiea-scroll-ok body.aiea-app--live {
    height: 100%;
    max-height: 100dvh;
}

body.aiea-app--live {
    /* Document itself does not scroll; the Advisor panel body scrolls */
    overflow: hidden;
    background: #0a192f;
    /* Never use position:fixed body lock in live app — it breaks mobile swipe scroll */
    position: static !important;
    top: auto !important;
    width: 100% !important;
}

body.aiea-app--live .aiea-topbar {
    display: none;
}

body.aiea-app--live .aiea-main,
body.aiea-app--live .aiea-main[hidden] {
    display: none !important;
}

body.aiea-app--live .advisor-fab {
    position: fixed;
    inset: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    width: 100%;
    height: 100%;
    height: 100dvh;
    max-height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    touch-action: pan-y;
}

/* Launcher chip not needed — app is already open */
body.aiea-app--live .advisor-fab__btn {
    display: none !important;
}

body.aiea-app--live .advisor-fab.is-open .advisor-fab__panel,
body.aiea-app--live .advisor-fab__panel,
body.aiea-app--live .advisor-fab__panel[hidden] {
    display: flex !important;
    flex-direction: column !important;
    position: absolute !important;
    inset: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    border-radius: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
    visibility: visible !important;
    overflow: hidden !important;
    touch-action: pan-y;
}

/* CRITICAL: main content must scroll on mobile (product intro + all tier cards) */
body.aiea-app--live .advisor-fab__panel-body,
body.aiea-app--live #advisorFabChat,
body.aiea-app--live #advisorFabWizard {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior-y: contain;
    touch-action: pan-y;
}

/* Tier start: hide footer chrome until a report tier is chosen */
body.aiea-app--live .advisor-fab--tiers .advisor-fab__footer,
body.aiea-app--live .advisor-fab--tiers .advisor-fab__progress {
    display: none !important;
}
.advisor-marketing-cta {
    margin: 0 0 2.5rem;
    padding: 1.5rem 1.25rem;
    border: 1px solid #d7e2ee;
    border-radius: 12px;
    background: linear-gradient(135deg, #f7fafc, #eef4fb);
}

.advisor-marketing-cta__account,
.advisor-marketing-cta__prices,
.advisor-marketing-cta__note {
    color: #3a4f66;
    line-height: 1.45;
}

.advisor-marketing-cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1rem 0 0.75rem;
}

@media (max-width: 900px) {
    .advisor-pricing__grid,
    .advisor-tier-start__cards {
        grid-template-columns: 1fr !important;
    }
    .aiea-topbar {
        flex-wrap: wrap;
    }
}

@media (max-width: 420px) {
    .advisor-plan-card__cta,
    .advisor-plan-card__details {
        width: 100%;
    }
    .advisor-marketing-cta__actions .btn {
        width: 100%;
        text-align: center;
    }
}

html, body.aiea-app {
    overflow-x: hidden;
}
