/* Storyteller — V1.5 First User Experience */

.welcome-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    width: 100%;
    max-width: 320px;
}

.layout-welcome .btn-begin {
    width: 100%;
    max-width: 320px;
    margin: 0;
}

.btn-welcome-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: var(--st-touch, 44px);
    padding: 10px 20px;
    border: none;
    border-radius: var(--st-radius-pill, 999px);
    background: transparent;
    color: #777;
    font: inherit;
    font-size: 16px;
    letter-spacing: -0.01em;
    cursor: pointer;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.btn-welcome-secondary:hover {
    color: #111;
    background: #f6f6f6;
}

.welcome-demo-note {
    margin: 8px 0 0;
    font-size: 14px;
    color: #999;
    letter-spacing: -0.01em;
    animation: st-fade-soft 0.25s ease both;
}

.welcome-demo-note[hidden] {
    display: none;
}

.st-tip,
.fx-empty-detail {
    font-size: 14px;
    line-height: 1.5;
    color: #999;
    letter-spacing: -0.01em;
}

.fx-empty {
    margin: 0;
}

.fx-empty-title {
    margin: 0 0 8px;
    font-size: var(--st-size-lead, 18px);
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 1.4;
    color: #333;
}

.fx-empty-detail {
    margin: 0;
}

.fx-success {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin: 0;
    animation: st-fade-in 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.fx-success-line {
    display: block;
    margin: 0;
    font-size: 17px;
    letter-spacing: -0.02em;
    color: #222;
}

.project-home-primary--large {
    max-width: 320px;
    min-height: 52px;
    font-size: 17px;
    padding: 16px 32px;
}

.project-resume-actions:has(.project-home-primary--large) {
    margin-top: 8px;
}

.projects-step-progress {
    margin: 0 0 18px;
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #aaa;
}

.projects-step-title {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 400;
    letter-spacing: -0.03em;
    color: #111;
}

.projects-step-hint {
    margin: 0 0 20px;
    font-size: 14px;
    line-height: 1.5;
    color: #999;
}

.projects-step-begin .projects-form-actions {
    margin-top: 8px;
}

.projects-begin-button {
    width: 100%;
}

.project-timeline-empty {
    list-style: none;
    margin: 0;
    padding: 28px 0 8px;
}

.layout-welcome .hero {
    margin-bottom: 48px;
}

.layout-welcome .copy {
    margin-bottom: 56px;
    max-width: 28em;
    text-align: center;
}

.layout-welcome .copy p {
    font-size: 18px;
}

.story-first-tip {
    margin-top: 28px;
    text-align: center;
}

@media (max-width: 768px) {
    .layout-welcome .hero-headline {
        font-size: clamp(36px, 10vw, 52px);
    }
}

/* V2.5 — Soft save / login (after value, never before) */

.fx-account-prompt {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.fx-account-prompt[hidden] {
    display: none;
}

.fx-account-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(250, 249, 247, 0.72);
    backdrop-filter: blur(6px);
}

.fx-account-card {
    position: relative;
    z-index: 1;
    width: min(360px, 100%);
    padding: 36px 28px 28px;
    text-align: center;
    background: #faf9f7;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 20px;
    box-shadow: 0 18px 48px rgba(40, 30, 20, 0.08);
    animation: st-fade-soft 0.35s ease both;
}

.fx-account-title {
    margin: 0 0 12px;
    font-size: 22px;
    font-weight: 400;
    letter-spacing: -0.03em;
    line-height: 1.35;
    color: #1a1a1a;
}

.fx-account-detail {
    margin: 0 0 28px;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: -0.01em;
    color: #666;
}

.fx-account-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.fx-account-btn {
    min-height: 48px;
    padding: 12px 18px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 999px;
    background: #fff;
    color: #222;
    font: inherit;
    font-size: 16px;
    letter-spacing: -0.01em;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.fx-account-btn:hover {
    background: #f3f1ec;
    border-color: rgba(0, 0, 0, 0.14);
}

.fx-account-btn.is-primary {
    background: #1a1a1a;
    border-color: #1a1a1a;
    color: #faf9f7;
}

.fx-account-btn.is-primary:hover {
    background: #333;
    border-color: #333;
}

.fx-account-later {
    margin-top: 18px;
    border: none;
    background: transparent;
    color: #888;
    font: inherit;
    font-size: 15px;
    cursor: pointer;
}

.fx-account-later:hover {
    color: #222;
}

.fx-account-later[hidden] {
    display: none;
}

body.fx-account-open {
    overflow: hidden;
}

.projects-menu-panel.is-visitor .projects-menu-home,
.projects-menu-panel.is-visitor .projects-new-button {
    display: none;
}

.projects-menu-panel.is-visitor .projects-tools-heading {
    display: none;
}
