/* ==========================================================================
   Manifest Manawa Flow — Próg intencji (sklep)
   ========================================================================== */

.manifest-page {
    overflow-x: hidden;
}

.mf-gate,
.mf-chapter,
.mf-seal {
    padding-left: var(--layout-gutter, 5%);
    padding-right: var(--layout-gutter, 5%);
}

/* --- Gate / Hero --- */
.mf-gate {
    padding-top: calc(var(--nav-offset, 84px) + 56px);
    padding-bottom: 64px;
    background:
        radial-gradient(ellipse 80% 60% at 50% -10%, rgba(106, 13, 173, 0.08) 0%, transparent 55%),
        radial-gradient(ellipse 50% 40% at 90% 80%, rgba(0, 71, 171, 0.05) 0%, transparent 50%),
        linear-gradient(180deg, #fff 0%, var(--bg-light) 100%);
    text-align: center;
    border-bottom: 1px solid var(--border-soft);
}

.mf-gate-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.mf-eyebrow {
    display: inline-block;
    font-family: var(--font-head);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--color-accent-1);
    margin-bottom: 20px;
}

.mf-eyebrow--light {
    color: var(--color-gold);
}

.mf-gate-title {
    font-family: var(--font-head);
    font-size: clamp(1.85rem, 4vw, 2.85rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-dark);
    margin: 0 0 28px;
}

.mf-gate-title em {
    font-style: normal;
    background: linear-gradient(120deg, var(--color-accent-1) 0%, var(--color-accent-2) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.mf-gate-lead {
    font-size: 1.12rem;
    line-height: 1.75;
    color: var(--color-dark);
    margin: 0 0 22px;
}

.mf-gate-emphasis {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--color-muted);
    margin: 0;
}

.mf-gate-emphasis strong {
    color: var(--color-dark);
    font-weight: 700;
}

.mf-gate-line {
    width: 64px;
    height: 3px;
    margin: 36px auto 0;
    background: linear-gradient(90deg, var(--color-accent-1), var(--color-gold));
}

/* --- Chapters --- */
.mf-chapter {
    padding-top: 88px;
    padding-bottom: 88px;
}

.mf-chapter--light { background: var(--bg-light); }
.mf-chapter--white { background: #fff; }

.mf-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(28px, 4vw, 48px);
    align-items: center;
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.mf-split.is-visible,
.mf-exchange.is-visible,
.mf-seal-inner.is-visible {
    opacity: 1;
    transform: none;
}

.mf-split > .mf-copy,
.mf-split > .mf-photo {
    min-width: 0;
    width: 100%;
}

.mf-split--reverse .mf-copy { order: 2; }
.mf-split--reverse .mf-photo { order: 1; }

.mf-chapter-meta {
    display: flex;
    align-items: baseline;
    gap: 14px;
    margin-bottom: 14px;
}

.mf-num {
    font-family: var(--font-head);
    font-size: clamp(2.4rem, 4vw, 3.2rem);
    font-weight: 700;
    line-height: 1;
    background: linear-gradient(135deg, var(--color-accent-1), var(--color-accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -1px;
}

.mf-chapter-label {
    font-family: var(--font-head);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--color-muted);
}

.mf-chapter-title {
    font-family: var(--font-head);
    font-size: clamp(1.45rem, 2.4vw, 1.85rem);
    font-weight: 700;
    line-height: 1.3;
    color: var(--color-dark);
    margin: 0 0 22px;
}

.mf-copy p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--color-dark);
    margin: 0 0 16px;
}

.mf-copy p:last-child { margin-bottom: 0; }

.mf-copy strong {
    color: var(--color-accent-1);
    font-weight: 700;
}

.mf-photo {
    margin: 0;
    position: relative;
    width: 100%;
    /* miejsce na złotą ramkę poza kwadratem — bez rozjeżdżania 50/50 */
    padding: 0 12px 12px 0;
    box-sizing: border-box;
}

.mf-split--reverse .mf-photo {
    padding: 0 0 12px 12px;
}

.mf-photo::before {
    content: '';
    position: absolute;
    top: 12px;
    right: 0;
    bottom: 0;
    left: 12px;
    border: 1px solid rgba(253, 197, 0, 0.5);
    z-index: 0;
    pointer-events: none;
}

.mf-split--reverse .mf-photo::before {
    top: 12px;
    right: 12px;
    bottom: 0;
    left: 0;
}

.mf-photo img {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center;
    box-shadow: 0 20px 48px -14px rgba(15, 18, 25, 0.2);
}

/* --- Exchange cards --- */
.mf-exchange {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 48px;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease 0.1s, transform 0.7s ease 0.1s;
}

.mf-exchange-card {
    padding: 28px 28px 26px;
    border: 1px solid var(--border-light);
    position: relative;
}

.mf-exchange-card--you {
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.mf-exchange-card--you::before {
    content: '';
    position: absolute;
    left: 0;
    top: 18px;
    bottom: 18px;
    width: 3px;
    background: linear-gradient(180deg, var(--color-accent-1), var(--color-accent-2));
}

.mf-exchange-card--me {
    background: linear-gradient(145deg, var(--color-dark) 0%, #1a2744 55%, var(--color-accent-2) 140%);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 20px 48px -12px rgba(15, 18, 25, 0.35);
}

.mf-exchange-tag {
    display: inline-block;
    font-family: var(--font-head);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.mf-exchange-card--you .mf-exchange-tag { color: var(--color-accent-1); }
.mf-exchange-card--me .mf-exchange-tag { color: var(--color-gold); }

.mf-exchange-card p {
    font-size: 1rem;
    line-height: 1.7;
    margin: 0;
}

.mf-exchange-card--you p { color: var(--color-dark); }
.mf-exchange-card--me p { color: rgba(255, 255, 255, 0.92); }

.mf-exchange-card em {
    font-style: italic;
    font-weight: 500;
}

.mf-exchange-footer {
    max-width: 960px;
    margin: 36px auto 0;
    text-align: center;
    font-family: var(--font-head);
    font-size: clamp(1.08rem, 2vw, 1.28rem);
    font-weight: 600;
    line-height: 1.65;
    color: var(--color-dark);
    padding: 22px 28px;
    background: linear-gradient(135deg, rgba(106, 13, 173, 0.06) 0%, rgba(0, 71, 171, 0.05) 100%);
    border-left: 3px solid var(--color-accent-1);
}
.mf-exchange-footer strong {
    color: var(--color-accent-1);
    font-weight: 700;
}

/* --- Seal / guarantees --- */
.mf-seal {
    padding-top: 96px;
    padding-bottom: 110px;
    background:
        radial-gradient(ellipse 70% 50% at 50% 0%, rgba(106, 13, 173, 0.35) 0%, transparent 60%),
        linear-gradient(160deg, #0F1219 0%, #152038 50%, #0a1628 100%);
    color: #fff;
}

.mf-seal-inner {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.75s ease, transform 0.75s ease;
}

.mf-seal-title {
    font-family: var(--font-head);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    margin: 0 0 40px;
    color: #fff;
}

.mf-guarantees {
    list-style: none;
    margin: 0 0 44px;
    padding: 0;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.mf-guarantees li {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    padding: 22px 24px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.mf-g-icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(253, 197, 0, 0.12);
    color: var(--color-gold);
    font-size: 1rem;
}

.mf-guarantees strong {
    display: block;
    font-family: var(--font-head);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: #fff;
}

.mf-guarantees p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.72);
}

.mf-closing {
    margin: 0 0 36px;
    padding: 0;
    border: none;
}

.mf-closing p {
    font-size: 1.08rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.82);
    margin: 0 0 16px;
}

.mf-closing-strong {
    font-family: var(--font-head);
    font-size: 1.2rem !important;
    font-weight: 600;
    color: var(--color-gold) !important;
}

.mf-seal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
}

.mf-seal .btn-prism {
    gap: 8px;
}

.mf-btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    font-family: var(--font-head);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    text-decoration: none;
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    transition: border-color 0.25s, background 0.25s;
}

.mf-btn-ghost:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

/* --- Responsive --- */
@media (max-width: 960px) {
    .mf-split,
    .mf-split--reverse {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .mf-split--reverse .mf-copy,
    .mf-split--reverse .mf-photo {
        order: unset;
    }
    .mf-photo,
    .mf-split--reverse .mf-photo {
        max-width: min(100%, 480px);
        margin: 0 auto;
        padding: 0 10px 10px 0;
    }
    .mf-photo::before,
    .mf-split--reverse .mf-photo::before {
        top: 10px;
        right: 0;
        bottom: 0;
        left: 10px;
    }
    .mf-exchange {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .mf-gate {
        padding-top: calc(var(--nav-offset, 84px) + 36px);
        padding-bottom: 48px;
    }
    .mf-chapter {
        padding-top: 56px;
        padding-bottom: 56px;
    }
    .mf-seal {
        padding-top: 64px;
        padding-bottom: 80px;
    }
    .mf-gate-lead { font-size: 1.02rem; }
    .mf-copy p { font-size: 1rem; }
    .mf-guarantees li { padding: 18px; gap: 14px; }
}

@media (prefers-reduced-motion: reduce) {
    .mf-split,
    .mf-exchange,
    .mf-seal-inner {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
