.order-demo {
    padding-top: 82px;
    padding-bottom: 88px;
    scroll-margin-top: 96px;
}

.order-demo-intro {
    max-width: 760px;
    margin: 0 auto 36px;
    text-align: center;
}

.order-demo-intro h2 {
    margin-top: 12px;
}

.order-demo-intro > p {
    max-width: 620px;
    margin: 15px auto 0;
    color: #5e6861;
    font-size: 16px;
    line-height: 1.6;
}

.order-demo-layout {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(270px, 320px) minmax(0, 1fr);
    gap: clamp(18px, 3vw, 38px);
    align-items: center;
    padding: 14px 0;
}

.order-demo-points {
    display: grid;
    gap: 30px;
    z-index: 1;
}

.order-demo-point {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    min-height: 142px;
    padding: 22px 20px;
    border: 1px solid rgba(6, 62, 42, 0.09);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 15px 35px rgba(8, 45, 27, 0.09), 0 2px 8px rgba(8, 45, 27, 0.04);
    animation: order-demo-card-float 6s ease-in-out infinite;
    animation-delay: var(--float-delay, 0s);
}

.order-demo-points-left .order-demo-point:nth-child(2) {
    margin-right: 24px;
}

.order-demo-points-right .order-demo-point:nth-child(2) {
    margin-left: 24px;
}

.order-demo-icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    border-radius: 15px;
    background: #e8f5eb;
    color: #087044;
}

.order-demo-icon svg {
    width: 24px;
    height: 24px;
}

.order-demo-points-right .order-demo-icon {
    background: #fff0ed;
    color: #d61c29;
}

.order-demo-step {
    display: block;
    margin-bottom: 7px;
    color: #07874e;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.order-demo-points-right .order-demo-step {
    color: #d61c29;
}

.order-demo-point h3 {
    margin: 0 0 7px;
    color: #123b29;
    font-size: 17px;
    line-height: 1.25;
}

.order-demo-point p {
    color: #68726c;
    font-size: 13.5px;
    line-height: 1.5;
}

.order-demo-phone-column {
    position: relative;
    min-width: 0;
    text-align: center;
    z-index: 1;
}

.order-demo-phone-column::before {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 415px;
    height: 415px;
    max-width: 130vw;
    border: 1px dashed rgba(5, 107, 65, 0.23);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(17, 146, 80, 0.075), rgba(17, 146, 80, 0) 72%);
    content: '';
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: -1;
}

.order-demo-video-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    color: #0c673f;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.14em;
}

.order-demo-video-label > span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #e32c34;
    box-shadow: 0 0 0 4px rgba(227, 44, 52, 0.12);
}

.order-demo-iphone {
    position: relative;
    width: min(100%, 300px);
    aspect-ratio: 9 / 19.4;
    margin: 0 auto;
    border: 9px solid #171b1b;
    border-radius: 50px;
    background: #171b1b;
    box-shadow: 0 0 0 2px #77817a, 0 28px 55px rgba(2, 37, 22, 0.27);
    overflow: hidden;
    animation: order-demo-float 6s ease-in-out infinite;
}

.order-demo-screen {
    position: absolute;
    inset: 0;
    overflow: hidden;
    border-radius: 38px;
    background: #e8ece5;
}

.order-demo-video {
    width: 100%;
    height: 100%;
    display: block;
    background: #101513;
    object-fit: contain;
}

.order-demo-play {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    min-width: 128px;
    padding: 15px 18px;
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 20px;
    background: rgba(4, 55, 34, 0.94);
    box-shadow: 0 12px 35px rgba(2, 30, 19, 0.33);
    color: #fff;
    cursor: pointer;
    transform: translate(-50%, -50%);
    transition: background 0.2s, transform 0.2s;
}

.order-demo-play[hidden] {
    display: none;
}

.order-demo-play:hover {
    background: #07583a;
    transform: translate(-50%, -50%) scale(1.04);
}

.order-demo-play:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
}

.order-demo-play svg {
    width: 29px;
    height: 29px;
}

.order-demo-play span {
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.order-demo-island {
    position: absolute;
    top: 8px;
    left: 50%;
    z-index: 2;
    width: 82px;
    height: 23px;
    transform: translateX(-50%);
    border-radius: 20px;
    background: #171b1b;
    pointer-events: none;
}

.order-demo-home-indicator {
    position: absolute;
    bottom: 8px;
    left: 50%;
    z-index: 2;
    width: 90px;
    height: 4px;
    transform: translateX(-50%);
    border-radius: 4px;
    background: #17211b;
    pointer-events: none;
}

.order-demo-preview {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #e7eee9;
    text-align: left;
}

.order-demo-preview-header {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 76px;
    padding: 24px 15px 10px;
    background: #075238;
    color: #fff;
}

.order-demo-avatar {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f7faf6;
    font-size: 18px;
}

.order-demo-preview-header strong,
.order-demo-preview-header small {
    display: block;
}

.order-demo-preview-header strong {
    font-size: 12px;
}

.order-demo-preview-header small {
    margin-top: 2px;
    font-size: 10px;
    opacity: 0.8;
}

.order-demo-preview-chat {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 13px;
    padding: 20px 12px;
}

.order-demo-chat-in,
.order-demo-chat-out {
    max-width: 88%;
    padding: 10px 11px;
    border-radius: 11px;
    font-size: 12px;
    line-height: 1.35;
    box-shadow: 0 2px 7px rgba(11, 39, 21, 0.06);
}

.order-demo-chat-in {
    background: #fff;
    border-top-left-radius: 3px;
}

.order-demo-chat-out {
    align-self: flex-end;
    background: #d7f4ce;
    border-top-right-radius: 3px;
}

.order-demo-preview-note {
    margin: 0 12px 32px;
    padding: 9px 10px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.88);
    color: #315b43;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
}

.order-demo-caption {
    max-width: 280px;
    margin: 23px auto 0;
    color: #6a746d;
    font-size: 13px;
    line-height: 1.5;
}

@keyframes order-demo-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes order-demo-card-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-7px); }
}

@media (max-width: 1050px) {
    .order-demo-layout {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
        column-gap: 20px;
    }

    .order-demo-phone-column {
        grid-column: 1 / -1;
        grid-row: 1;
        margin-bottom: 20px;
    }

    .order-demo-points-left .order-demo-point:nth-child(2),
    .order-demo-points-right .order-demo-point:nth-child(2) {
        margin: 0;
    }
}

@media (max-width: 650px) {
    .order-demo {
        padding-top: 58px;
        padding-bottom: 58px;
    }

    .order-demo-intro {
        margin-bottom: 28px;
    }

    .order-demo-intro > p {
        font-size: 14px;
    }

    .order-demo-layout {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 8px 0;
    }

    .order-demo-phone-column {
        grid-column: auto;
        margin-bottom: 12px;
    }

    .order-demo-iphone {
        width: min(100%, 280px);
    }

    .order-demo-phone-column::before {
        width: 330px;
        height: 330px;
    }

    .order-demo-points {
        gap: 12px;
    }

    .order-demo-point {
        min-height: 0;
        padding: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .order-demo-iphone,
    .order-demo-point {
        animation: none;
    }
}
