#how-it-works {
    --rl-content-width: 1200px;
    --rl-page-padding: 48px;
    --rl-section-space: 100px;
    --font-serif: "IBM Plex Serif", Georgia, serif;
    --rl-dark: #0e0f11;
    --rl-muted: #5a5a5a;
    --rl-primary: #ff9000;
    --rl-primary-light: #ffb14d;
    --rl-green: #1f8a5b;
    --rl-shadow-cta: -4px 4px 65px 0 rgba(255, 144, 0, 0.4);
    position: relative;
    padding: var(--rl-section-space) var(--rl-page-padding);
    background: #f4efe7;
    color: #1e1e1e;
    font-family: "IBM Plex Sans", sans-serif;
    overflow: hidden;
}

#how-it-works .rl-section-wrap {
    width: min(100%, var(--rl-content-width));
    max-width: calc(100vw - (var(--rl-page-padding) * 2));
    min-width: 0;
    margin: 0 auto;
}

#how-it-works .rl-section-title {
    margin: 0 0 48px;
    color: #000;
    font-family: "IBM Plex Sans", sans-serif;
    font-size: clamp(40px, 4.6vw, 64px);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.08;
}

#how-it-works .rl-section-title em {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
    letter-spacing: -0.02em;
}

#how-it-works .rl-hiw-reel {
    --hiw-strip-height: 0px;
    position: relative;
    display: grid;
    overflow: hidden;
    grid-template-rows: auto minmax(0, 1fr);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 22px;
    background: var(--rl-dark);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.18), 0 2px 0 rgba(255, 255, 255, 0.6) inset;
    aspect-ratio: 16 / 10;
}

#how-it-works .rl-hiw-stage {
    position: relative;
    min-height: 0;
    overflow: hidden;
    background: #1a1a1a;
    line-height: 1.25;
    transition: background 0.45s ease;
}

#how-it-works .rl-hiw-reel[data-active-step="0"] .rl-hiw-stage {
    background: var(--rl-dark);
}

#how-it-works .rl-hiw-stage::before {
    position: absolute;
    inset: var(--hiw-strip-height) 0 0;
    z-index: 2;
    background: transparent;
    content: "";
    pointer-events: none;
}

#how-it-works .rl-hiw-reel[data-active-step="0"] .rl-hiw-stage::before {
    background:
        linear-gradient(rgba(255, 255, 255, 0.42) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.42) 1px, transparent 1px),
        #f5f1e8;
    background-size: 42px 42px;
}

#how-it-works .rl-hiw-image-stack {
    position: absolute;
    inset: 0;
}

#how-it-works .rl-hiw-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.015);
    transition: opacity 0.85s ease, transform 1s ease;
}

#how-it-works .rl-hiw-reel[data-active-step="0"] [data-hiw-image-step="0"],
#how-it-works .rl-hiw-reel[data-active-step="1"][data-edit-step="0"] [data-hiw-image-step="0"],
#how-it-works .rl-hiw-reel[data-active-step="1"][data-edit-step="1"] [data-hiw-image-step="1"],
#how-it-works .rl-hiw-reel[data-active-step="1"][data-edit-step="2"] [data-hiw-image-step="2"],
#how-it-works .rl-hiw-reel[data-active-step="1"][data-edit-step="3"] [data-hiw-image-step="3"],
#how-it-works .rl-hiw-reel[data-active-step="1"][data-edit-step="4"] [data-hiw-image-step="4"],
#how-it-works .rl-hiw-reel[data-active-step="2"] [data-hiw-image-step="4"] {
    opacity: 1;
    transform: scale(1);
}

#how-it-works .rl-upload-card,
#how-it-works .rl-download-card {
    position: absolute;
    z-index: 3;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

#how-it-works .rl-upload-card {
    top: 42px;
    left: 50%;
    width: min(380px, 70%);
    padding: 22px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    transform: translateX(-50%) translateY(12px);
}

#how-it-works .rl-hiw-reel[data-active-step="0"] .rl-upload-card {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

#how-it-works .rl-upload-drop {
    position: relative;
    display: flex;
    min-height: 244px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    overflow: visible;
    padding: 18px;
    border: 1.5px dashed rgba(255, 144, 0, 0.5);
    border-radius: 12px;
    background: rgba(255, 144, 0, 0.06);
    text-align: center;
}

#how-it-works .rl-hiw-reel[data-active-step="0"] .rl-upload-drop {
    animation: rl-upload-drop-glow 2.6s ease both;
}

#how-it-works .rl-upload-photo {
    display: grid;
    width: min(160px, 72%);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translate(-560px, -46px) scale(0.72) rotate(-11deg);
}

#how-it-works .rl-hiw-reel[data-active-step="0"] .rl-upload-photo {
    animation: rl-upload-photo-drop 2.45s cubic-bezier(0.18, 0.86, 0.26, 1) both;
}

#how-it-works .rl-upload-photo img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

#how-it-works .rl-upload-photo span {
    display: block;
    overflow: hidden;
    padding: 7px 9px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    color: #3d3d3d;
    font-family: "Inter", sans-serif;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#how-it-works .rl-upload-drop svg {
    width: 44px;
    height: 44px;
    padding: 12px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 10px rgba(255, 144, 0, 0.18);
    color: var(--rl-primary);
    stroke-width: 1.6;
    animation: rl-hiw-bob 1.2s ease-in-out infinite;
}

#how-it-works .rl-upload-drop strong {
    color: #1e1e1e;
    font-size: 14px;
    font-weight: 600;
}

#how-it-works .rl-upload-drop > span {
    color: var(--rl-muted);
    font-family: "Inter", sans-serif;
    font-size: 12px;
}

#how-it-works .rl-edit-callouts {
    position: absolute;
    inset: 28px 24px;
    z-index: 4;
    pointer-events: none;
}

#how-it-works .rl-edit-card {
    position: absolute;
    display: flex;
    min-width: 0;
    max-width: 250px;
    align-items: center;
    gap: 10px;
    padding: 10px 13px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 10px;
    background: rgba(18, 18, 18, 0.58);
    backdrop-filter: blur(14px) saturate(130%);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
    color: #fff;
    font-size: 13px;
    line-height: 1.2;
    opacity: 0;
    transform: translateY(14px) scale(0.96);
    transition: opacity 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
}

#how-it-works .rl-edit-card:nth-child(1) {
    top: 31%;
    right: 8%;
}

#how-it-works .rl-edit-card:nth-child(2) {
    top: 13%;
    left: 47%;
}

#how-it-works .rl-edit-card:nth-child(3) {
    bottom: 23%;
    left: 39%;
}

#how-it-works .rl-edit-card:nth-child(4) {
    right: 10%;
    bottom: 11%;
}

#how-it-works .rl-edit-card b {
    display: flex;
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.12);
    color: var(--rl-primary);
    font-size: 16px;
    font-weight: 400;
}

#how-it-works .rl-edit-card span {
    font-weight: 700;
}

#how-it-works .rl-edit-card small {
    display: block;
    margin-bottom: 3px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1;
    text-transform: uppercase;
}

#how-it-works .rl-hiw-reel[data-active-step="1"][data-edit-step="1"] [data-hiw-edit-step="1"],
#how-it-works .rl-hiw-reel[data-active-step="1"][data-edit-step="2"] [data-hiw-edit-step="1"],
#how-it-works .rl-hiw-reel[data-active-step="1"][data-edit-step="2"] [data-hiw-edit-step="2"],
#how-it-works .rl-hiw-reel[data-active-step="1"][data-edit-step="3"] [data-hiw-edit-step="1"],
#how-it-works .rl-hiw-reel[data-active-step="1"][data-edit-step="3"] [data-hiw-edit-step="2"],
#how-it-works .rl-hiw-reel[data-active-step="1"][data-edit-step="3"] [data-hiw-edit-step="3"],
#how-it-works .rl-hiw-reel[data-active-step="1"][data-edit-step="4"] [data-hiw-edit-step] {
    opacity: 0.74;
    transform: translateY(0) scale(1);
}

#how-it-works .rl-hiw-reel[data-active-step="1"][data-edit-step="1"] [data-hiw-edit-step="1"],
#how-it-works .rl-hiw-reel[data-active-step="1"][data-edit-step="2"] [data-hiw-edit-step="2"],
#how-it-works .rl-hiw-reel[data-active-step="1"][data-edit-step="3"] [data-hiw-edit-step="3"],
#how-it-works .rl-hiw-reel[data-active-step="1"][data-edit-step="4"] [data-hiw-edit-step="4"] {
    opacity: 0.92;
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(255, 144, 0, 0.46);
    transform: translateY(-3px) scale(1.01);
}

#how-it-works .rl-download-card {
    top: 50%;
    left: 50%;
    display: flex;
    min-width: 340px;
    align-items: center;
    gap: 18px;
    padding: 18px 22px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    transform: translate(-50%, -50%) scale(0.9);
}

#how-it-works .rl-hiw-reel[data-active-step="2"] .rl-download-card {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

#how-it-works .rl-download-card > span {
    display: flex;
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--rl-green);
    box-shadow: 0 0 0 6px rgba(31, 138, 91, 0.14);
    color: #fff;
    font-size: 22px;
    font-weight: 700;
}

#how-it-works .rl-download-card strong {
    display: block;
    color: #1e1e1e;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.25;
}

#how-it-works .rl-download-card small {
    display: block;
    color: var(--rl-muted);
    font-family: "Inter", sans-serif;
    font-size: 12px;
    line-height: 1.35;
}

#how-it-works .rl-download-card button {
    display: inline-flex;
    align-items: center;
    padding: 11px 18px;
    border: 0;
    border-radius: 99px;
    background: #1e1e1e;
    color: #fff;
    font-family: "IBM Plex Sans", sans-serif;
    font-size: 13px;
    font-weight: 600;
}

#how-it-works .rl-step-strip {
    position: relative;
    z-index: 8;
    display: grid;
    height: auto;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 6px;
    padding: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(180deg, #181818 0%, #101010 100%);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset;
    pointer-events: auto;
}

#how-it-works .rl-step-strip > button {
    position: relative;
    display: grid;
    min-width: 0;
    min-height: 58px;
    grid-template-columns: 30px minmax(0, 1fr);
    grid-template-rows: auto auto;
    gap: 1px 9px;
    align-content: center;
    overflow: hidden;
    padding: 8px 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    outline: none;
    background: rgba(255, 255, 255, 0.045);
    box-shadow: none;
    color: rgba(255, 255, 255, 0.92);
    cursor: pointer;
    font-family: "IBM Plex Sans", sans-serif;
    text-align: left;
    transform: none;
    transition: transform 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
}

#how-it-works .rl-step-strip > button::after {
    position: absolute;
    right: auto;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--rl-primary);
    content: "";
    transition: width 0.3s ease;
}

#how-it-works .rl-step-strip > button.is-complete::after {
    width: 100%;
}

#how-it-works .rl-step-strip > button.is-active {
    border-color: rgba(255, 144, 0, 0.64);
    background: rgba(255, 255, 255, 0.105);
    box-shadow: 0 0 0 1px rgba(255, 144, 0, 0.1) inset;
}

#how-it-works .rl-step-strip > button.is-active::after {
    width: 100%;
    animation: rl-step-progress var(--step-duration, 4.2s) linear;
}

#how-it-works .rl-step-strip > button > span {
    display: flex;
    grid-column: 2;
    grid-row: 1;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: rgba(255, 255, 255, 0.46);
    font-family: "Inter", sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.13em;
}

#how-it-works .rl-step-strip > button.is-active > span {
    color: var(--rl-primary);
}

#how-it-works .rl-step-strip i {
    display: inline-block;
    width: 12px;
    height: 1px;
    background: currentColor;
    opacity: 0.5;
}

#how-it-works .rl-step-strip svg {
    position: static;
    box-sizing: border-box;
    width: 30px;
    height: 30px;
    grid-column: 1;
    grid-row: 1 / span 2;
    align-self: center;
    padding: 7px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.07);
    color: rgba(255, 255, 255, 0.76);
    stroke-width: 1.6;
}

#how-it-works .rl-step-strip > button.is-active svg {
    color: var(--rl-primary);
}

#how-it-works .rl-step-strip strong {
    grid-column: 2;
    grid-row: 2;
    max-width: none;
    color: #fff;
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.16;
    text-wrap: balance;
}

#how-it-works .rl-step-strip small {
    display: none;
    grid-column: 2;
    grid-row: 3;
    color: rgba(255, 255, 255, 0.62);
    font-family: "Inter", sans-serif;
    font-size: 11.5px;
    line-height: 1.35;
}

#how-it-works .rl-how-cta {
    display: flex;
    justify-content: center;
    margin-top: 44px;
}

#how-it-works .rl-btn {
    display: inline-flex;
    height: 56px;
    max-width: 100%;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 36px;
    border: 0;
    border-radius: 50px;
    color: #000;
    background: var(--rl-primary-light);
    box-shadow: var(--rl-shadow-cta);
    font-family: "IBM Plex Sans", sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

#how-it-works .rl-btn:hover {
    background: var(--rl-primary);
    transform: translateY(-2px);
}

#how-it-works .rl-btn:focus-visible,
#how-it-works .rl-step-strip > button:focus-visible {
    outline: 3px solid rgba(255, 144, 0, 0.42);
    outline-offset: 3px;
}

#how-it-works .rl-btn-icon {
    flex: 0 0 auto;
}

@keyframes rl-hiw-bob {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-4px);
    }
}

@keyframes rl-upload-photo-drop {
    0% {
        opacity: 0;
        transform: translate(-560px, -46px) scale(0.72) rotate(-11deg);
    }
    10% {
        opacity: 1;
    }
    54% {
        opacity: 1;
        transform: translate(14px, 6px) scale(1.03) rotate(1.4deg);
    }
    70% {
        transform: translate(-4px, -3px) scale(0.99) rotate(-0.4deg);
    }
    84%, 100% {
        opacity: 1;
        transform: translate(0, 0) scale(1) rotate(0);
    }
}

@keyframes rl-upload-drop-glow {
    0%, 24% {
        border-color: rgba(255, 144, 0, 0.42);
        background: rgba(255, 144, 0, 0.05);
        box-shadow: none;
    }
    52% {
        border-color: rgba(255, 144, 0, 0.9);
        background: rgba(255, 144, 0, 0.12);
        box-shadow: 0 0 0 8px rgba(255, 144, 0, 0.08);
    }
    82%, 100% {
        border-color: rgba(255, 144, 0, 0.58);
        background: rgba(255, 144, 0, 0.07);
        box-shadow: 0 0 0 0 rgba(255, 144, 0, 0);
    }
}

@keyframes rl-step-progress {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@media (max-width: 900px) {
    #how-it-works {
        --rl-page-padding: 28px;
        --rl-section-space: 80px;
    }

    #how-it-works .rl-hiw-reel {
        height: clamp(680px, 166vw, 780px);
        min-height: 0;
        aspect-ratio: auto;
    }

    #how-it-works .rl-step-strip {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
        padding: 8px;
    }

    #how-it-works .rl-step-strip > button {
        min-height: 0;
        grid-template-columns: 26px minmax(0, 1fr);
        padding: 8px 7px;
    }

    #how-it-works .rl-step-strip svg {
        width: 26px;
        height: 26px;
        padding: 6px;
    }

    #how-it-works .rl-step-strip strong {
        font-size: 11.5px;
    }

    #how-it-works .rl-upload-card {
        top: 34px;
        width: min(340px, 82%);
        padding: 16px;
    }

    #how-it-works .rl-upload-drop {
        min-height: 218px;
        padding: 16px 14px;
    }

    #how-it-works .rl-upload-photo {
        width: min(138px, 68%);
        transform: translate(-105vw, -24px) scale(0.72) rotate(-10deg);
    }

    #how-it-works .rl-edit-callouts {
        inset: 12px;
    }

    #how-it-works .rl-edit-card {
        min-width: 0;
        max-width: 176px;
        gap: 7px;
        padding: 8px 10px;
        font-size: 11.5px;
    }

    #how-it-works .rl-edit-card b {
        width: 28px;
        height: 28px;
        border-radius: 7px;
        font-size: 14px;
    }

    #how-it-works .rl-edit-card small {
        font-size: 8.5px;
    }

    #how-it-works .rl-edit-card:nth-child(1) {
        top: 28%;
        right: 5%;
    }

    #how-it-works .rl-edit-card:nth-child(2) {
        top: 10%;
        left: 36%;
    }

    #how-it-works .rl-edit-card:nth-child(3) {
        bottom: 22%;
        left: 26%;
    }

    #how-it-works .rl-edit-card:nth-child(4) {
        right: 5%;
        bottom: 10%;
    }

    #how-it-works .rl-btn {
        width: 100%;
        padding-inline: 22px;
        white-space: normal;
    }
}

@media (max-width: 640px) {
    #how-it-works {
        --rl-page-padding: 24px;
        --rl-section-space: 64px;
    }

    #how-it-works .rl-section-title {
        font-size: clamp(34px, 9.5vw, 44px);
        line-height: 1.12;
    }

    #how-it-works .rl-download-card {
        width: calc(100% - 36px);
        min-width: 0;
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 380px) {
    #how-it-works .rl-step-strip {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 4px;
        padding: 6px;
    }

    #how-it-works .rl-step-strip > button {
        min-width: 0;
        min-height: 58px;
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: auto auto;
        gap: 2px;
        padding: 7px 5px;
        text-align: center;
    }

    #how-it-works .rl-step-strip svg {
        display: none;
    }

    #how-it-works .rl-step-strip > button > span {
        grid-column: 1;
        grid-row: 1;
        justify-content: center;
        gap: 5px;
        font-size: 9px;
        letter-spacing: 0.1em;
    }

    #how-it-works .rl-step-strip i {
        width: 10px;
    }

    #how-it-works .rl-step-strip strong {
        grid-column: 1;
        grid-row: 2;
        min-width: 0;
        font-size: clamp(10px, 2.9vw, 11px);
        line-height: 1.14;
        text-align: center;
        hyphens: auto;
        overflow-wrap: anywhere;
    }
}

@media (prefers-reduced-motion: reduce) {
    #how-it-works .rl-hiw-reel[data-active-step="0"] .rl-upload-drop,
    #how-it-works .rl-hiw-reel[data-active-step="0"] .rl-upload-photo,
    #how-it-works .rl-upload-drop svg,
    #how-it-works .rl-step-strip > button.is-active::after {
        animation: none;
    }

    #how-it-works .rl-upload-photo {
        opacity: 1;
        transform: none;
    }
}
