/* Animated "Convert Files in 3 Simple Steps" cards — homepage only. */

.step-card {
    position: relative;
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s ease, border-color 0.45s ease;
    border: 2px solid rgba(205, 214, 226, 0.55);
}

.step-card--active {
    transform: translateY(-6px) scale(1.015);
    box-shadow: 0 20px 45px rgba(10, 37, 64, 0.16);
    border-color: rgba(20, 82, 131, 0.35);
}

.step-chip {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: #d9e9f7;
    color: #145283;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
    flex-shrink: 0;
}

.step-card--active .step-chip {
    box-shadow: 0 10px 22px rgba(20, 82, 131, 0.22);
}

.step-chip--pulse {
    animation: stepChipPulse 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes stepChipPulse {
    0% { transform: scale(1); }
    45% { transform: scale(1.12); }
    100% { transform: scale(1); }
}

.step-chip svg {
    width: 28px;
    height: 28px;
}

.step-chip .step-icon-arrow {
    transition: transform 0.25s ease;
}

.step-card--icon-bump .step-icon-arrow {
    animation: stepIconBump 0.7s ease;
}

@keyframes stepIconBump {
    0% { transform: translateY(0); }
    35% { transform: translateY(-3px); }
    60% { transform: translateY(1px); }
    100% { transform: translateY(0); }
}

.step-check {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #4cb514;
    border: 3px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.3);
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.step-card--done .step-check {
    opacity: 1;
    transform: scale(1);
}

.step-check svg {
    width: 13px;
    height: 13px;
}

.step-slot {
    position: relative;
    min-height: 34px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-progress {
    width: 100%;
    max-width: 190px;
    height: 8px;
    border-radius: 99px;
    background: #e8eef4;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.step-progress--visible {
    opacity: 1;
}

.step-progress-fill {
    width: 0%;
    height: 100%;
    border-radius: 99px;
    background: #145283;
    transition: width 1.3s linear;
}

.step-done-chip {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    font-size: 14px;
    color: #5f5b5b;
    font-weight: 500;
}

.step-done-chip--visible {
    opacity: 1;
    transform: translateY(0);
}

.step-done-chip svg {
    width: 15px;
    height: 15px;
    color: #4cb514;
    flex-shrink: 0;
}

.step-format-pills {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.step-format-pills--visible {
    opacity: 1;
    transform: translateY(0);
}

.step-pill {
    padding: 6px 14px;
    border-radius: 99px;
    border: 2px solid #e2e8f0;
    color: #474747;
    font-size: 13px;
    font-weight: 500;
    background: #fff;
    transition: all 0.25s ease;
}

.step-pill--hover {
    border-color: #b2d4f0;
    background: #f4f8fc;
}

.step-pill--selected {
    background: #145283;
    border-color: #145283;
    color: #fff;
    transform: scale(1.06);
    box-shadow: 0 6px 14px rgba(20, 82, 131, 0.28);
}

.step-pill--faded {
    opacity: 0.35;
}

@media (prefers-reduced-motion: reduce) {
    .step-card,
    .step-chip,
    .step-check,
    .step-done-chip,
    .step-format-pills,
    .step-pill,
    .step-progress-fill {
        transition: none !important;
        animation: none !important;
    }
}
