/* Surface CSS for funnel/ended.html — "launch has ended" bridge page.
   Body class: body.funnel-ended
   Scope: single template, no shared consumers.
   Authored 2026-06-11 — theme system migration + two-act emotional reveal. */


/* --- Reset (bare *, per G39 — never body-class-scoped) --- */

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


/* --- Layout --- */

body.funnel-ended {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body.funnel-ended .ended-stage {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: var(--space-xl) var(--space-md);
}

body.funnel-ended .ended-container {
    text-align: center;
    max-width: 520px;
}


/* --- CC brand mark --- */

body.funnel-ended .ended-mark {
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-on-light);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: var(--space-3xl);
}


/* --- Title --- */

body.funnel-ended .ended-title {
    font-size: 40px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-lg);
}


/* --- Act 1 — immediate (the bad news) --- */

body.funnel-ended .ended-act1-text {
    font-size: 17px;
    color: var(--text-muted);
    line-height: 1.7;
}


/* --- Act 2 — delayed reveal (the bridge) --- */

body.funnel-ended .ended-act2 {
    margin-top: var(--space-2xl);
}

body.funnel-ended .ended-act2-text {
    font-size: 17px;
    color: var(--text-body);
    line-height: 1.7;
    margin-bottom: var(--space-lg);
}

body.funnel-ended .ended-good-news {
    color: var(--accent-on-light);
    font-weight: 600;
}


/* --- CTA button --- */

body.funnel-ended .ended-button,
body.funnel-ended .ended-button:visited {
    display: inline-block;
    padding: 14px 32px;
    background: var(--accent);
    color: var(--text-on-accent);
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 0.01em;
    filter: none;
    transition: transform var(--transition-slow), box-shadow var(--transition-slow);
}

body.funnel-ended .ended-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-elevated);
    color: var(--text-on-accent);
    text-decoration: none;
}

body.funnel-ended .ended-button:active {
    transform: translateY(0);
}


/* --- Animations: two-act reveal --- */

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

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

body.funnel-ended .ended-act1 {
    animation: endedFadeIn 0.5s ease both;
}

body.funnel-ended .ended-act2 {
    animation: endedFadeUp 0.6s ease-out 1.2s both;
}

@media (prefers-reduced-motion: reduce) {
    body.funnel-ended .ended-act1,
    body.funnel-ended .ended-act2 {
        animation: none;
        opacity: 1;
        transform: none;
    }
}


/* --- Toggle (fixed corner, per G35) --- */

.cc-toggle-fixed-corner {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 100;
}


/* --- Responsive --- */

@media (max-width: 640px) {
    body.funnel-ended .ended-title {
        font-size: 30px;
    }

    body.funnel-ended .ended-act1-text,
    body.funnel-ended .ended-act2-text {
        font-size: 15px;
    }

    body.funnel-ended .ended-button,
    body.funnel-ended .ended-button:visited {
        padding: 12px 28px;
        font-size: 15px;
    }

    body.funnel-ended .ended-container {
        padding: 0 var(--space-sm);
    }
}
