/* Furia MU - downloads page (W2): "Install in 3 steps" sequence + lead client as the set-piece.
   Loaded by view.header.php after furia-pages.css for controller "downloads" (class .page-downloads, .is-open).
   Markup: application/views/wealth/downloads/view.downloads.php (ol.fp-steps > li.fp-step, ul.fp-clients > li.fp-client[--lead]).
   Static: no animation here (the list entrance .fp-stagger comes from furia-pages.css). Numerals are sequential, so they are allowed. */

/* 1. The sequence ------------------------------------------------------------------------------------- */
.furia-shell.body-page .fp-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 clamp(20px, 3vw, 44px);
    margin: clamp(28px, 4vw, 48px) 0 clamp(36px, 5vw, 60px);
    padding: 0;
    list-style: none;
    counter-reset: none;
}
.furia-shell.body-page .fp-step {
    position: relative;
    min-width: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}
/* numeral + a hairline that runs on to the next step */
.furia-shell.body-page .fp-step__n {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0 0 16px;
    font-family: var(--fp-display);
    font-size: clamp(2.5rem, 2rem + 1.6vw, 3.5rem);
    font-weight: 500;
    line-height: 1;
    color: var(--fp-gold);
}
.furia-shell.body-page .fp-step__n::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--fp-gold-line), transparent);
}
.furia-shell.body-page .fp-step__title { margin: 0 0 8px; font-size: 1.1875rem; font-weight: 600; line-height: 1.3; color: var(--fp-text); }
.furia-shell.body-page .fp-step__text { margin: 0 0 6px; max-width: 34ch; font-size: .9375rem; line-height: 1.6; color: var(--fp-muted); }
.furia-shell.body-page .dmn-content .fp-step__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    font-size: .9375rem;
    font-weight: 600;
    color: var(--fp-cyan);
    text-decoration: none;
}
.furia-shell.body-page .dmn-content .fp-step__link::after {
    content: "";
    width: 16px;
    height: 16px;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14m-6-6 6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14m-6-6 6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
    transition: transform .25s var(--fp-ease);
}
.furia-shell.body-page .dmn-content .fp-step__link:hover { color: var(--fp-text); }
.furia-shell.body-page .dmn-content .fp-step__link:hover::after { transform: translateX(4px); }

/* Phones: a vertical timeline (numeral column + line), so the first client is not pushed below three stacked blocks */
@media (max-width: 719px) {
    .furia-shell.body-page .fp-steps { grid-template-columns: minmax(0, 1fr); gap: 0; margin-bottom: 32px; }
    .furia-shell.body-page .fp-step { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 16px; padding-bottom: 22px; }
    .furia-shell.body-page .fp-step:last-child { padding-bottom: 0; }
    .furia-shell.body-page .fp-step__n { grid-column: 1; grid-row: 1 / span 3; flex-direction: column; align-items: center; gap: 10px; margin: 0; font-size: 2rem; }
    .furia-shell.body-page .fp-step__n::after { flex: 1; width: 1px; height: auto; min-height: 24px; background: linear-gradient(180deg, var(--fp-gold-line), transparent); }
    .furia-shell.body-page .fp-step:last-child .fp-step__n::after { display: none; }
    .furia-shell.body-page .fp-step__title, .furia-shell.body-page .fp-step__text, .furia-shell.body-page .fp-step__link { grid-column: 2; }
    .furia-shell.body-page .fp-step__title { margin-top: 2px; }
}

/* 2. Clients: the lead one is the set-piece, every other mirror / launcher is a quiet full-width row ------ */
.furia-shell.body-page .fp-clients { gap: 12px; }
@media (min-width: 720px) {
    .furia-shell.body-page .fp-client:not(.fp-client--lead) {
        grid-column: 1 / -1;
        flex-direction: row;
        align-items: center;
        gap: 28px;
        padding: 18px 28px;
    }
    .furia-shell.body-page .fp-client:not(.fp-client--lead) .fp-client__name { margin-bottom: 4px; font-size: 1.125rem; }
    .furia-shell.body-page .fp-client:not(.fp-client--lead) .fp-client__desc { margin-bottom: 6px; }
    .furia-shell.body-page .dmn-content .fp-client:not(.fp-client--lead) .fp-client__btn { align-self: center; width: auto; min-width: 200px; }
}
/* the lead card: the chest stands on a soft floor shadow and lifts a little on hover */
.furia-shell.body-page .fp-client--lead { overflow: hidden; }
.furia-shell.body-page .fp-client--lead .fp-client__art { position: relative; transition: transform .6s var(--fp-ease); }
.furia-shell.body-page .fp-client--lead:hover .fp-client__art { transform: translateY(-5px); }
.furia-shell.body-page .fp-client--lead .fp-client__meta { font-size: .9375rem; color: var(--fp-text); }
.furia-shell.body-page .fp-client--lead .fp-client__meta li:first-child:last-child { font-family: var(--fp-display); font-size: 1.25rem; }
@media (min-width: 860px) {
    .furia-shell.body-page .fp-client--lead { padding-block: 34px; }
    .furia-shell.body-page .fp-client--lead .fp-client__art { flex-basis: 200px; width: 200px; }
    .furia-shell.body-page .fp-client--lead .fp-client__name { font-size: 1.75rem; }
}

@media (prefers-reduced-motion: reduce) {
    .furia-shell.body-page .fp-client--lead .fp-client__art, .furia-shell.body-page .dmn-content .fp-step__link::after { transition: none; }
    .furia-shell.body-page .fp-client--lead:hover .fp-client__art, .furia-shell.body-page .dmn-content .fp-step__link:hover::after { transform: none; }
}
