/* Fulfillment flow — phase colors from active theme preset (config/theme.php) */
body.mkt-theme-preset {
    --ff-connect: var(--mkt-secondary);
    --ff-connect-rgb: var(--mkt-secondary-rgb);
    --ff-warehouse: var(--mkt-primary);
    --ff-warehouse-rgb: var(--mkt-primary-rgb);
    --ff-deliver: var(--mkt-info);
    --ff-deliver-rgb: var(--mkt-accent-rgb);
    --ff-hero-deep: var(--mkt-dark);
    --ff-hero-mid: var(--mkt-hero-mid);
    --ff-hero-accent: var(--mkt-primary);
}

body.mkt-theme-preset .ff-hero.mkt-sol-hero {
    background: var(--mkt-chrome, var(--mkt-slate-950));
}

body.mkt-theme-preset .ff-hero .mkt-sol-hero__glow--left {
    background: rgba(var(--ff-connect-rgb), 0.28);
}

body.mkt-theme-preset .ff-hero .mkt-sol-hero__glow--right {
    background: rgba(var(--ff-warehouse-rgb), 0.38);
}

.ff-phase-chip[href="#ff-phase-connect"] {
    border-color: rgb(var(--ff-connect-rgb) / 45%);
    background: rgb(var(--ff-connect-rgb) / 12%);
}

.ff-phase-chip[href="#ff-phase-warehouse"] {
    border-color: rgb(var(--ff-warehouse-rgb) / 45%);
    background: rgb(var(--ff-warehouse-rgb) / 12%);
}

.ff-phase-chip[href="#ff-phase-deliver"] {
    border-color: rgb(var(--ff-deliver-rgb) / 45%);
    background: rgb(var(--ff-deliver-rgb) / 12%);
}

.ff-phase-chip:hover {
    border-color: rgb(255 255 255 / 50%);
    background: rgb(255 255 255 / 16%);
}

.ff-journey[data-ff-active-phase="connect"] {
    --ff-phase: var(--ff-connect);
    --ff-phase-rgb: var(--ff-connect-rgb);
}

.ff-journey[data-ff-active-phase="warehouse"] {
    --ff-phase: var(--ff-warehouse);
    --ff-phase-rgb: var(--ff-warehouse-rgb);
}

.ff-journey[data-ff-active-phase="deliver"] {
    --ff-phase: var(--ff-deliver);
    --ff-phase-rgb: var(--ff-deliver-rgb);
}

#ff-phase-connect .ff-phase-block__badge {
    color: var(--ff-connect);
}

#ff-phase-warehouse .ff-phase-block__badge {
    color: var(--ff-warehouse);
}

#ff-phase-deliver .ff-phase-block__badge {
    color: var(--ff-deliver);
}

.ff-hero .mkt-sol-hero__inner--landing {
    padding-bottom: 2.5rem;
}

.ff-phase-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.65rem;
    margin-top: 1.75rem;
}

.ff-phase-chip {
    padding: 0.45rem 1rem;
    border: 1px solid rgb(255 255 255 / 22%);
    border-radius: 999px;
    color: rgb(255 255 255 / 92%);
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    background: rgb(255 255 255 / 8%);
    transition: background 0.2s ease, border-color 0.2s ease;
}

.ff-journey {
    padding-bottom: clamp(3rem, 6vw, 4.5rem);
}

.ff-map {
    display: flex;
    gap: 0.35rem;
    margin-bottom: clamp(2rem, 4vw, 2.75rem);
    padding: 1rem 0.75rem;
    overflow-x: auto;
    border: 1px solid var(--mkt-slate-200);
    border-radius: var(--mkt-radius-lg, 16px);
    background: linear-gradient(180deg, #fff 0%, var(--mkt-slate-50) 100%);
    box-shadow: var(--mkt-shadow-sm);
    scrollbar-width: thin;
}

.ff-map__item {
    flex: 1 1 0;
    min-width: 4.5rem;
    display: grid;
    gap: 0.35rem;
    justify-items: center;
    padding: 0.35rem 0.25rem;
    color: var(--mkt-slate-500);
    font-size: 0.68rem;
    font-weight: 600;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
    transition: color 0.2s ease;
}

.ff-map__dot {
    display: grid;
    width: 1.65rem;
    height: 1.65rem;
    border: 2px solid var(--mkt-slate-200);
    border-radius: 999px;
    place-items: center;
    font-size: 0.65rem;
    color: var(--mkt-slate-600);
    background: var(--mkt-white);
    transition: border-color 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.ff-map__item.is-active,
.ff-map__item.is-done {
    color: var(--mkt-slate-950);
}

.ff-map__item[data-ff-phase="connect"].is-active .ff-map__dot,
.ff-map__item[data-ff-phase="connect"].is-done .ff-map__dot {
    border-color: var(--ff-connect);
}

.ff-map__item[data-ff-phase="warehouse"].is-active .ff-map__dot,
.ff-map__item[data-ff-phase="warehouse"].is-done .ff-map__dot {
    border-color: var(--ff-warehouse);
}

.ff-map__item[data-ff-phase="deliver"].is-active .ff-map__dot,
.ff-map__item[data-ff-phase="deliver"].is-done .ff-map__dot {
    border-color: var(--ff-deliver);
}

.ff-map__item[data-ff-phase="connect"].is-active .ff-map__dot {
    color: #fff;
    background: var(--ff-connect);
}

.ff-map__item[data-ff-phase="warehouse"].is-active .ff-map__dot {
    color: #fff;
    background: var(--ff-warehouse);
}

.ff-map__item[data-ff-phase="deliver"].is-active .ff-map__dot {
    color: #fff;
    background: var(--ff-deliver);
}

.ff-map__item[data-ff-phase="connect"].is-done .ff-map__dot {
    color: var(--ff-connect);
    background: rgb(var(--ff-connect-rgb) / 12%);
}

.ff-map__item[data-ff-phase="warehouse"].is-done .ff-map__dot {
    color: var(--ff-warehouse);
    background: rgb(var(--ff-warehouse-rgb) / 12%);
}

.ff-map__item[data-ff-phase="deliver"].is-done .ff-map__dot {
    color: var(--ff-deliver);
    background: rgb(var(--ff-deliver-rgb) / 12%);
}

.ff-journey-layout {
    display: grid;
    grid-template-columns: minmax(0, 240px) minmax(0, 1fr);
    gap: clamp(1.5rem, 4vw, 2.5rem);
    align-items: start;
}

.ff-rail__sticky {
    position: sticky;
    top: 96px;
    padding: 1.25rem;
    border: 1px solid var(--mkt-slate-200);
    border-radius: var(--mkt-radius-lg, 16px);
    background: var(--mkt-white);
    box-shadow: var(--mkt-shadow);
}

.ff-rail__kicker {
    margin: 0 0 0.35rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ff-phase, var(--ff-connect));
}

.ff-rail__step-title {
    margin: 0 0 0.5rem;
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1.3;
    color: var(--mkt-slate-950);
}

.ff-rail__meta {
    margin: 0 0 0.85rem;
    font-size: 0.82rem;
    color: var(--mkt-slate-500);
}

.ff-rail__bar {
    height: 6px;
    border-radius: 999px;
    background: var(--mkt-slate-100);
    overflow: hidden;
}

.ff-rail__bar-fill {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--ff-phase, var(--ff-connect)), rgb(var(--ff-phase-rgb, var(--ff-connect-rgb)) / 65%));
    transition: width 0.45s var(--mkt-ease, ease);
}

.ff-phase-block {
    margin-bottom: 2.25rem;
}

.ff-phase-block__head {
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--mkt-slate-200);
}

.ff-phase-block__badge {
    display: inline-block;
    margin-bottom: 0.35rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.ff-phase-block__head h3 {
    margin: 0 0 0.35rem;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--mkt-slate-950);
}

.ff-phase-block__head p {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.55;
    color: var(--mkt-slate-500);
}

.ff-timeline-step {
    position: relative;
    display: grid;
    grid-template-columns: 2.5rem minmax(0, 1fr);
    gap: 1rem;
    padding-bottom: 1.25rem;
}

.ff-timeline-step:not(:last-child)::before {
    position: absolute;
    top: 2.5rem;
    bottom: 0;
    inset-inline-start: 1.2rem;
    width: 2px;
    content: "";
    background: var(--mkt-slate-200);
}

.ff-timeline-step.is-active:not(:last-child)::before {
    background: linear-gradient(180deg, var(--ff-phase, var(--mkt-slate-300)), var(--mkt-slate-200));
}

.ff-timeline-step__marker {
    z-index: 1;
    display: grid;
    width: 2.4rem;
    height: 2.4rem;
    border: 2px solid var(--mkt-slate-200);
    border-radius: 999px;
    place-items: center;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--mkt-slate-500);
    background: var(--mkt-white);
    transition: border-color 0.3s ease, background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.ff-timeline-step[data-ff-phase="connect"].is-active .ff-timeline-step__marker {
    border-color: var(--ff-connect);
    color: #fff;
    background: var(--ff-connect);
    box-shadow: 0 0 0 6px rgb(var(--ff-connect-rgb) / 14%);
}

.ff-timeline-step[data-ff-phase="warehouse"].is-active .ff-timeline-step__marker {
    border-color: var(--ff-warehouse);
    color: #fff;
    background: var(--ff-warehouse);
    box-shadow: 0 0 0 6px rgb(var(--ff-warehouse-rgb) / 14%);
}

.ff-timeline-step[data-ff-phase="deliver"].is-active .ff-timeline-step__marker {
    border-color: var(--ff-deliver);
    color: #fff;
    background: var(--ff-deliver);
    box-shadow: 0 0 0 6px rgb(var(--ff-deliver-rgb) / 14%);
}

.ff-timeline-step[data-ff-phase="connect"].is-done .ff-timeline-step__marker {
    border-color: var(--ff-connect);
    color: var(--ff-connect);
    background: rgb(var(--ff-connect-rgb) / 10%);
}

.ff-timeline-step[data-ff-phase="warehouse"].is-done .ff-timeline-step__marker {
    border-color: var(--ff-warehouse);
    color: var(--ff-warehouse);
    background: rgb(var(--ff-warehouse-rgb) / 10%);
}

.ff-timeline-step[data-ff-phase="deliver"].is-done .ff-timeline-step__marker {
    border-color: var(--ff-deliver);
    color: var(--ff-deliver);
    background: rgb(var(--ff-deliver-rgb) / 10%);
}

.ff-timeline-step__card {
    display: flex;
    gap: 1rem;
    padding: 1.1rem 1.15rem;
    border: 1px solid var(--mkt-slate-200);
    border-radius: var(--mkt-radius-lg, 16px);
    background: var(--mkt-white);
    box-shadow: var(--mkt-shadow-sm);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.ff-timeline-step[data-ff-phase="connect"].is-active .ff-timeline-step__card {
    border-color: rgb(var(--ff-connect-rgb) / 35%);
    box-shadow: 0 12px 32px -20px rgb(var(--ff-connect-rgb) / 40%);
}

.ff-timeline-step[data-ff-phase="warehouse"].is-active .ff-timeline-step__card {
    border-color: rgb(var(--ff-warehouse-rgb) / 35%);
    box-shadow: 0 12px 32px -20px rgb(var(--ff-warehouse-rgb) / 40%);
}

.ff-timeline-step[data-ff-phase="deliver"].is-active .ff-timeline-step__card {
    border-color: rgb(var(--ff-deliver-rgb) / 35%);
    box-shadow: 0 12px 32px -20px rgb(var(--ff-deliver-rgb) / 40%);
}

.ff-timeline-step__icon {
    flex-shrink: 0;
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 12px;
}

.ff-timeline-step[data-ff-phase="connect"] .ff-timeline-step__icon {
    color: var(--ff-connect);
    background: rgb(var(--ff-connect-rgb) / 10%);
}

.ff-timeline-step[data-ff-phase="warehouse"] .ff-timeline-step__icon {
    color: var(--ff-warehouse);
    background: rgb(var(--ff-warehouse-rgb) / 10%);
}

.ff-timeline-step[data-ff-phase="deliver"] .ff-timeline-step__icon {
    color: var(--ff-deliver);
    background: rgb(var(--ff-deliver-rgb) / 10%);
}

.ff-timeline-step__icon svg {
    width: 24px;
    height: 24px;
}

.ff-timeline-step__copy h4 {
    margin: 0 0 0.35rem;
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--mkt-slate-950);
}

.ff-timeline-step__copy p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--mkt-slate-600);
}

.ff-timeline-step__plain {
    margin-top: 0.5rem !important;
    padding-top: 0.5rem;
    border-top: 1px dashed var(--mkt-slate-200);
    font-size: 0.85rem !important;
    color: var(--mkt-slate-500) !important;
}

body.mkt-theme-preset .ff-cta.mkt-cta {
    background: var(--mkt-chrome, var(--mkt-slate-950));
}

.ff-cta {
    margin-bottom: 0;
    padding-block: clamp(4rem, 7vw, 5.5rem);
}

.ff-cta .mkt-cta__inner {
    max-width: 38rem;
}

.ff-cta__eyebrow {
    color: var(--mkt-accent, #e8c468);
    margin-bottom: 12px;
}

.ff-cta__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-width: min(100%, 15.5rem);
    font-weight: 700;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
}

.ff-cta__btn::after {
    content: '→';
    font-size: 1.05em;
    line-height: 1;
    transition: transform 0.2s ease;
}

.ff-cta__btn:hover::after {
    transform: translateX(3px);
}

html[dir='rtl'] .ff-cta__btn::after {
    content: '←';
}

html[dir='rtl'] .ff-cta__btn:hover::after {
    transform: translateX(-3px);
}

@media (max-width: 991px) {
    .ff-journey-layout {
        grid-template-columns: 1fr;
    }

    .ff-rail__sticky {
        top: 76px;
        z-index: 4;
    }

    .ff-timeline-step__card {
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ff-rail__bar-fill {
        transition: none;
    }
}
