/* --------------------------------------------------------------------------
   Landing showcase — the app's own screens on the landing page.
   Reads 00-tokens.css; the look follows the cashier app: a soft grey ground,
   white rounded cards, one orange accent. Motion is slow and stops entirely
   for prefers-reduced-motion.
   -------------------------------------------------------------------------- */
.landing-modern-v2 {
    --lsc-radius: 22px;
    --lsc-card: var(--custom-surface, #ffffff);
    --lsc-line: var(--custom-border, #e7ebf0);
    --lsc-ink: var(--custom-text, #101828);
    --lsc-muted: var(--custom-text-muted, #667085);
    --lsc-ground: #f5f5f7;
    --lsc-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 14px 34px rgba(16, 24, 40, 0.07);
    --lsc-shadow-lift: 0 2px 4px rgba(16, 24, 40, 0.05), 0 28px 60px rgba(16, 24, 40, 0.14);
}

.dark .landing-modern-v2 {
    --lsc-ground: #111827;
    --lsc-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 14px 34px rgba(0, 0, 0, 0.3);
    --lsc-shadow-lift: 0 2px 4px rgba(0, 0, 0, 0.35), 0 28px 60px rgba(0, 0, 0, 0.45);
}

/* ── The device frame ─────────────────────────────────────────────────────── */
.landing-modern-v2 .lsc-device {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--lsc-line);
    border-radius: var(--lsc-radius);
    background: #ffffff;
    box-shadow: var(--lsc-shadow-lift);
}

.landing-modern-v2 .lsc-device-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 38px;
    padding: 0 14px;
    border-bottom: 1px solid #eceef2;
    background: #f7f8fa;
    direction: ltr;
}

.landing-modern-v2 .lsc-device-dots {
    display: inline-flex;
    gap: 6px;
}

.landing-modern-v2 .lsc-device-dots i {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #d9dde4;
}

.landing-modern-v2 .lsc-device-label {
    margin-inline: auto;
    padding: 3px 12px;
    border-radius: 999px;
    background: #ffffff;
    box-shadow: inset 0 0 0 1px #e7ebf0;
    color: #344054;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.5;
}

.landing-modern-v2 .lsc-device-steps {
    display: inline-flex;
    gap: 5px;
}

.landing-modern-v2 .lsc-device-steps i {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #d9dde4;
    transition: width 400ms ease, background-color 400ms ease;
}

.landing-modern-v2 .lsc-device-steps i.is-active {
    width: 18px;
    background: var(--custom-primary);
}

.landing-modern-v2 .lsc-device-screen {
    position: relative;
    aspect-ratio: 1352 / 758;
    background: #f5f5f7;
}

.landing-modern-v2 .lsc-device-screen img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: right top;
    opacity: 0;
    transition: opacity 900ms ease;
}

.landing-modern-v2 .lsc-device-screen img.is-active {
    opacity: 1;
}

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.landing-modern-v2 .lsc-hero-stage {
    position: relative;
    padding-block: 26px 34px;
    padding-inline: 0 18px;
}

.landing-modern-v2 .lsc-hero-stage::before {
    content: "";
    position: absolute;
    inset: 0 8% 6% 4%;
    z-index: 0;
    border-radius: 40px;
    background:
        radial-gradient(60% 70% at 70% 30%, color-mix(in srgb, var(--custom-primary) 26%, transparent), transparent 70%),
        radial-gradient(50% 60% at 20% 80%, rgba(37, 99, 235, 0.14), transparent 70%);
    filter: blur(34px);
}

.landing-modern-v2 .lsc-hero-stage .lsc-device {
    z-index: 1;
}

.landing-modern-v2 .lsc-float {
    position: absolute;
    z-index: 2;
    height: auto;
    max-width: none;
    border: 1px solid var(--lsc-line);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: var(--lsc-shadow-lift);
}

.landing-modern-v2 .lsc-float-call {
    inset-block-end: 0;
    inset-inline-start: -26px;
    width: min(46%, 300px);
    animation: lsc-drift 7s ease-in-out infinite;
}

.landing-modern-v2 .lsc-float-ticket {
    inset-block-start: -14px;
    inset-inline-end: -14px;
    width: min(36%, 250px);
    animation: lsc-drift 8s ease-in-out -3s infinite;
}

@keyframes lsc-drift {
    0%, 100% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(0, -9px, 0); }
}

.landing-modern-v2 .lsc-assure {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin: 4px 0 0;
    padding: 0;
    list-style: none;
}

.landing-modern-v2 .lsc-assure li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--lsc-muted);
    font-size: 14px;
    font-weight: 700;
}

.landing-modern-v2 .lsc-assure svg {
    flex: none;
    width: 18px;
    height: 18px;
    color: var(--custom-success, #16a34a);
}

/* ── «ده بيحصل عندك؟» ─────────────────────────────────────────────────────── */
.landing-modern-v2 .lsc-pain-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.landing-modern-v2 .lsc-pain-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--lsc-line);
    border-radius: var(--lsc-radius);
    background: var(--lsc-card);
    box-shadow: var(--lsc-shadow);
    transition: transform 260ms ease, box-shadow 260ms ease;
}

.landing-modern-v2 .lsc-pain-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--lsc-shadow-lift);
}

.landing-modern-v2 .lsc-pain-head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 20px 20px 16px;
}

.landing-modern-v2 .lsc-pain-icon {
    display: grid;
    flex: none;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 13px;
    background: var(--custom-danger-soft, #fef2f2);
    color: var(--custom-danger, #dc2626);
}

.landing-modern-v2 .lsc-pain-icon svg {
    width: 22px;
    height: 22px;
}

.landing-modern-v2 .lsc-pain-head h3 {
    margin: 0;
    color: var(--lsc-ink);
    font-size: 17px;
    font-weight: 900;
    line-height: 1.6;
}

.landing-modern-v2 .lsc-pain-fix {
    flex: 1;
    padding: 16px 20px 20px;
    border-top: 1px dashed var(--lsc-line);
    background: color-mix(in srgb, var(--custom-success, #16a34a) 5%, var(--lsc-card));
}

.landing-modern-v2 .lsc-pain-fix-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
    color: var(--custom-success, #16a34a);
    font-size: 12.5px;
    font-weight: 900;
}

.landing-modern-v2 .lsc-pain-fix-label svg {
    width: 17px;
    height: 17px;
}

.landing-modern-v2 .lsc-pain-card .lsc-pain-fix p {
    margin: 0;
    color: var(--lsc-ink) !important;
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.85;
}

/* ── The tour ─────────────────────────────────────────────────────────────── */
.landing-modern-v2 .lsc-tour-pin {
    display: grid;
    grid-template-columns: 268px minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

.landing-modern-v2 .lsc-tour-progress {
    display: none;
}

.landing-modern-v2 .lsc-tour-tabs {
    display: grid;
    gap: 8px;
}

.landing-modern-v2 .lsc-tour-tab {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 62px;
    overflow: hidden;
    padding: 10px 14px;
    border: 1px solid transparent;
    border-radius: 16px;
    background: transparent;
    color: var(--lsc-ink);
    font: inherit;
    text-align: start;
    cursor: pointer;
    transition: background-color 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.landing-modern-v2 .lsc-tour-tab:hover {
    background: color-mix(in srgb, var(--lsc-card) 70%, transparent);
}

.landing-modern-v2 .lsc-tour-tab:focus-visible {
    outline: 2px solid var(--custom-primary);
    outline-offset: 2px;
}

.landing-modern-v2 .lsc-tour-tab.is-active {
    border-color: var(--lsc-line);
    background: var(--lsc-card);
    box-shadow: var(--lsc-shadow);
}

.landing-modern-v2 .lsc-tour-tab-no {
    display: grid;
    flex: none;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 11px;
    background: var(--custom-surface-muted, #f5f7fa);
    color: var(--lsc-muted);
    font-size: 14px;
    font-weight: 900;
    transition: background-color 220ms ease, color 220ms ease;
}

.landing-modern-v2 .lsc-tour-tab.is-active .lsc-tour-tab-no {
    background: var(--custom-primary);
    color: var(--custom-on-primary, #ffffff);
}

.landing-modern-v2 .lsc-tour-tab-text {
    display: grid;
    min-width: 0;
}

.landing-modern-v2 .lsc-tour-tab-text strong {
    font-size: 15px;
    font-weight: 900;
    line-height: 1.5;
}

.landing-modern-v2 .lsc-tour-tab-text small {
    color: var(--lsc-muted);
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.5;
}

.landing-modern-v2 .lsc-tour-tab-bar {
    position: absolute;
    inset-inline: 0;
    inset-block-end: 0;
    height: 3px;
    opacity: 0;
}

.landing-modern-v2 .lsc-tour-tab-bar i {
    display: block;
    width: 100%;
    height: 100%;
    background: var(--custom-primary);
    transform: scaleX(0);
    transform-origin: inline-start;
}

[dir="rtl"] .landing-modern-v2 .lsc-tour-tab-bar i {
    transform-origin: right center;
}

[dir="ltr"] .landing-modern-v2 .lsc-tour-tab-bar i {
    transform-origin: left center;
}

.landing-modern-v2 .lsc-tour.is-auto .lsc-tour-tab.is-active .lsc-tour-tab-bar {
    opacity: 1;
}

.landing-modern-v2 .lsc-tour.is-auto .lsc-tour-tab.is-active .lsc-tour-tab-bar i {
    animation: lsc-fill 6.5s linear forwards;
}

.landing-modern-v2 .lsc-tour.is-auto:hover .lsc-tour-tab.is-active .lsc-tour-tab-bar i {
    animation-play-state: paused;
}

@keyframes lsc-fill {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

.landing-modern-v2 .lsc-tour-panel {
    opacity: 0;
    transform: translate3d(0, 10px, 0);
    transition: opacity 420ms ease, transform 420ms ease;
}

.landing-modern-v2 .lsc-tour-panel.is-active {
    opacity: 1;
    transform: none;
}

.landing-modern-v2 .lsc-tour-caption {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 14px 28px;
    align-items: start;
    margin-top: 16px;
    padding: 20px 22px;
    border: 1px solid var(--lsc-line);
    border-radius: var(--lsc-radius);
    background: var(--lsc-card);
    box-shadow: var(--lsc-shadow);
}

.landing-modern-v2 .lsc-tour-caption h3 {
    margin: 0;
    color: var(--lsc-ink);
    font-size: clamp(18px, 1.7vw, 22px);
    font-weight: 900;
    line-height: 1.5;
    text-wrap: balance;
}

.landing-modern-v2 .lsc-tour-caption ul,
.landing-modern-v2 .lsc-spot-copy ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.landing-modern-v2 .lsc-tour-caption li {
    position: relative;
    padding-inline-start: 18px;
    color: var(--lsc-ink);
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.75;
}

.landing-modern-v2 .lsc-tour-caption li::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    inset-block-start: 0.72em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--custom-primary);
}

/* ── Close-ups ────────────────────────────────────────────────────────────── */
.landing-modern-v2 .lsc-spot-list {
    display: grid;
    gap: clamp(34px, 5vw, 64px);
}

.landing-modern-v2 .lsc-spot {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(24px, 4vw, 60px);
    align-items: center;
}

.landing-modern-v2 .lsc-spot-flip .lsc-spot-media {
    order: 2;
}

.landing-modern-v2 .lsc-spot-media {
    position: relative;
    display: grid;
    gap: 14px;
    justify-items: center;
    padding: clamp(18px, 3vw, 34px);
    border-radius: 30px;
    background:
        radial-gradient(80% 90% at 85% 10%, color-mix(in srgb, var(--custom-primary) 20%, transparent), transparent 70%),
        var(--lsc-ground);
}

.landing-modern-v2 .lsc-spot-media img {
    width: 100%;
    height: auto;
    border: 1px solid var(--lsc-line);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: var(--lsc-shadow-lift);
}

.landing-modern-v2 .lsc-spot-media-stack img {
    width: min(100%, 430px);
}

.landing-modern-v2 .lsc-spot-media-stack img:nth-child(2) {
    margin-inline-start: 12%;
}

.landing-modern-v2 .lsc-spot-media-stack img:first-child {
    margin-inline-end: 12%;
}

.landing-modern-v2 .lsc-spot-eyebrow {
    display: block;
    color: var(--custom-primary);
    font-size: 14px;
    font-weight: 900;
}

.landing-modern-v2 .lsc-spot-copy h3 {
    margin: 8px 0 10px;
    color: var(--lsc-ink);
    font-size: clamp(23px, 2.5vw, 32px);
    font-weight: 900;
    line-height: 1.4;
    text-wrap: balance;
}

.landing-modern-v2 .lsc-spot-copy > p {
    margin: 0 0 18px;
    color: var(--lsc-muted);
    font-size: 16px;
    line-height: 1.95;
}

.landing-modern-v2 .lsc-spot-copy li {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    color: var(--lsc-ink);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.75;
}

.landing-modern-v2 .lsc-spot-copy li svg {
    flex: none;
    width: 20px;
    height: 20px;
    margin-top: 3px;
    color: var(--custom-success, #16a34a);
}

/* ── «وكمان» ──────────────────────────────────────────────────────────────── */
.landing-modern-v2 .lsc-more-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.landing-modern-v2 .lsc-more-card {
    padding: 20px;
    border: 1px solid var(--lsc-line);
    border-radius: var(--lsc-radius);
    background: var(--lsc-card);
    box-shadow: var(--lsc-shadow);
    transition: transform 260ms ease, box-shadow 260ms ease, border-color 260ms ease;
}

.landing-modern-v2 .lsc-more-card:hover {
    border-color: var(--custom-primary-border);
    transform: translateY(-3px);
    box-shadow: var(--lsc-shadow-lift);
}

.landing-modern-v2 .lsc-more-icon {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 14px;
    background: var(--custom-primary-soft);
    color: var(--custom-primary);
}

.landing-modern-v2 .lsc-more-icon svg {
    width: 23px;
    height: 23px;
}

.landing-modern-v2 .lsc-more-card h3 {
    margin: 14px 0 6px;
    color: var(--lsc-ink);
    font-size: 16.5px;
    font-weight: 900;
    line-height: 1.55;
}

.landing-modern-v2 .lsc-more-card p {
    margin: 0;
    color: var(--lsc-muted);
    font-size: 14px;
    line-height: 1.85;
}

/* ── «من التسجيل لأول طلب» ────────────────────────────────────────────────── */
.landing-modern-v2 .lsc-start-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: none;
}

.landing-modern-v2 .lsc-start-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--lsc-line);
    border-radius: var(--lsc-radius);
    background: var(--lsc-card);
    box-shadow: var(--lsc-shadow);
}

.landing-modern-v2 .lsc-start-shot {
    aspect-ratio: 900 / 430;
    padding: 0;
    overflow: hidden;
    border-bottom: 1px solid var(--lsc-line);
    background: #f8f9fc;
}

.landing-modern-v2 .lsc-start-shot img {
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center top;
}

.landing-modern-v2 .lsc-start-copy {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 18px 20px 22px;
}

.landing-modern-v2 .lsc-start-no {
    display: grid;
    flex: none;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 50%;
    background: var(--custom-primary);
    color: var(--custom-on-primary, #ffffff);
    font-size: 16px;
    font-weight: 900;
}

.landing-modern-v2 .lsc-start-copy h3 {
    margin: 2px 0 6px;
    color: var(--lsc-ink);
    font-size: 17.5px;
    font-weight: 900;
    line-height: 1.5;
}

.landing-modern-v2 .lsc-start-copy p {
    margin: 0;
    color: var(--lsc-muted);
    font-size: 14.5px;
    line-height: 1.85;
}

.landing-modern-v2 .lsc-start-action {
    display: flex;
    justify-content: center;
    margin-top: 28px;
}

/* ── The phone's start button ─────────────────────────────────────────────── */
.landing-modern-v2 .lsc-sticky {
    display: none;
}

@media (max-width: 1023px) {
    .landing-modern-v2 .lsc-sticky {
        position: fixed;
        inset-inline: 0;
        inset-block-end: 0;
        z-index: 60;
        display: block;
        padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
        border-top: 1px solid var(--lsc-line);
        background: color-mix(in srgb, var(--lsc-card) 94%, transparent);
        backdrop-filter: blur(10px);
        transform: translate3d(0, 110%, 0);
        transition: transform 320ms ease;
    }

    .landing-modern-v2 .lsc-sticky[hidden] {
        display: none;
    }

    .landing-modern-v2 .lsc-sticky.is-on {
        transform: none;
    }

    .landing-modern-v2 .lsc-sticky .landing-btn {
        display: flex;
        width: 100%;
        justify-content: center;
    }
}

/* ── Narrower screens ─────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
    .landing-modern-v2 .lsc-more-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .landing-modern-v2 .lsc-pain-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 960px) {
    /* No tabs on a phone: the block is pinned and the page's scroll turns the screens. */
    .landing-modern-v2 .lsc-tour-pin {
        position: sticky;
        /* Centred in the screen, never under the header. */
        inset-block-start: max(76px, calc(50svh - 250px));
        display: block;
    }

    .landing-modern-v2 .lsc-tour-tabs {
        display: none;
    }

    .landing-modern-v2 .lsc-tour-progress {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        margin-bottom: 12px;
    }

    .landing-modern-v2 .lsc-tour-progress strong {
        color: var(--lsc-ink);
        font-size: 17px;
        font-weight: 900;
    }

    .landing-modern-v2 .lsc-tour-dots {
        display: inline-flex;
        gap: 5px;
    }

    .landing-modern-v2 .lsc-tour-dots i {
        width: 7px;
        height: 7px;
        border-radius: 999px;
        background: var(--custom-border-strong, #cfd6e2);
        transition: width 300ms ease, background-color 300ms ease;
    }

    .landing-modern-v2 .lsc-tour-dots i.is-active {
        width: 20px;
        background: var(--custom-primary);
    }

    .landing-modern-v2 .lsc-tour-caption {
        min-height: 232px;
        align-content: start;
    }

    .landing-modern-v2 .lsc-tour-caption {
        grid-template-columns: minmax(0, 1fr);
    }

    .landing-modern-v2 .lsc-spot {
        grid-template-columns: minmax(0, 1fr);
    }

    .landing-modern-v2 .lsc-spot-flip .lsc-spot-media {
        order: 0;
    }

    .landing-modern-v2 .lsc-start-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 640px) {
    .landing-modern-v2 {
        --lsc-radius: 18px;
    }

    .landing-modern-v2 .lsc-pain-grid,
    .landing-modern-v2 .lsc-more-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .landing-modern-v2 .lsc-hero-stage {
        padding-inline: 0;
    }

    .landing-modern-v2 .lsc-float-call {
        inset-inline-start: -6px;
        width: 54%;
    }

    .landing-modern-v2 .lsc-float-ticket {
        display: none;
    }

    .landing-modern-v2 .lsc-device-bar {
        height: 30px;
    }

    .landing-modern-v2 .lsc-device-dots i {
        width: 8px;
        height: 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .landing-modern-v2 .lsc-float,
    .landing-modern-v2 .lsc-tour-tab-bar i {
        animation: none !important;
    }

    .landing-modern-v2 .lsc-device-screen img,
    .landing-modern-v2 .lsc-tour-panel,
    .landing-modern-v2 .lsc-pain-card,
    .landing-modern-v2 .lsc-more-card {
        transition: none !important;
    }
}

/* ── Sticky needs the PAGE to be the scroller ─────────────────────────────────
   The landing shell wrapped the page in three boxes that each clipped with
   overflow hidden/auto. The window scrolls, not they — but any of them still
   becomes the reference a sticky child sticks to, so it never stuck. `clip`
   cuts the same sideways overflow without becoming a scroll container. */
body.landing-page .landing-content-wrap,
body.landing-page #main-content,
body.landing-page .landing-modern {
    overflow-x: clip !important;
    overflow-y: visible !important;
}

/* ══════════════════════════════════════════════════════════════════════════
   Motion (2026-11-13, second pass). Crisp instead of blurred: things rise,
   settle and pop as the page scrolls; headings and their lines are written
   word by word; the hero's screen straightens. All of it lives behind
   body.lsc-motion, which the script sets only when motion is welcome.
   ══════════════════════════════════════════════════════════════════════════ */

/* How far the page has been read. */
.landing-modern-v2 .lsc-progress {
    position: fixed;
    inset-inline: 0;
    inset-block-start: 0;
    z-index: 80;
    height: 3px;
    pointer-events: none;
}

.landing-modern-v2 .lsc-progress i {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--custom-primary), color-mix(in srgb, var(--custom-primary) 60%, #ffd08a));
    transform: scaleX(0);
    transform-origin: right center;
}

[dir="ltr"] .landing-modern-v2 .lsc-progress i {
    transform-origin: left center;
}

/* ── The page's own reveal, without the blur ─────────────────────────────── */
body.landing-reveal-enabled.lsc-motion .landing-modern-v2 .landing-reveal {
    opacity: 0;
    filter: none;
    transform: translate3d(0, 38px, 0) scale(0.96);
    transition:
        opacity 620ms cubic-bezier(0.2, 0.8, 0.2, 1),
        transform 780ms cubic-bezier(0.2, 0.9, 0.25, 1.08);
    transition-delay: var(--landing-reveal-delay, 0ms);
    will-change: opacity, transform;
}

body.landing-reveal-enabled.lsc-motion .landing-modern-v2 .landing-reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* A box whose words are written does not also slide in as a block. */
body.landing-reveal-enabled.lsc-motion .landing-modern-v2 .lsc-own-motion.landing-reveal,
body.landing-reveal-enabled.lsc-motion .landing-modern-v2 .lsc-own-motion.landing-reveal.is-visible {
    opacity: 1;
    transform: none;
    transition: none;
}

/* A close-up's picture comes from its own side. */
body.landing-reveal-enabled.lsc-motion .landing-modern-v2 .lsc-spot-media.landing-reveal {
    transform: translate3d(70px, 0, 0) scale(0.94);
}

body.landing-reveal-enabled.lsc-motion .landing-modern-v2 .lsc-spot-flip .lsc-spot-media.landing-reveal {
    transform: translate3d(-70px, 0, 0) scale(0.94);
}

body.landing-reveal-enabled.lsc-motion .landing-modern-v2 .lsc-spot-media.landing-reveal.is-visible {
    transform: none;
}

/* The tour's screen tips up into place. */
body.landing-reveal-enabled.lsc-motion .landing-modern-v2 .lsc-tour-stage.landing-reveal {
    transform: perspective(1400px) rotateX(10deg) translate3d(0, 40px, 0) scale(0.95);
    transform-origin: center bottom;
}

body.landing-reveal-enabled.lsc-motion .landing-modern-v2 .lsc-tour-stage.landing-reveal.is-visible {
    transform: none;
}

/* Icons pop a beat after their card lands. */
body.lsc-motion .landing-modern-v2 .landing-reveal :is(.lsc-pain-icon, .lsc-more-icon, .lsc-start-no, .landing-feature-icon, .landing-suite-icon, .landing-journey-icon) {
    transform: scale(0.3) rotate(-12deg);
    opacity: 0;
    transition: transform 620ms cubic-bezier(0.3, 1.5, 0.5, 1), opacity 300ms ease;
    transition-delay: calc(var(--landing-reveal-delay, 0ms) + 260ms);
}

body.lsc-motion .landing-modern-v2 .landing-reveal.is-visible :is(.lsc-pain-icon, .lsc-more-icon, .lsc-start-no, .landing-feature-icon, .landing-suite-icon, .landing-journey-icon) {
    transform: none;
    opacity: 1;
}

/* A problem lands first; its answer opens under it. */
body.lsc-motion .landing-modern-v2 .lsc-pain-card.landing-reveal .lsc-pain-fix {
    clip-path: inset(0 0 100% 0);
    opacity: 0;
    transition: clip-path 700ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 500ms ease;
    transition-delay: calc(var(--landing-reveal-delay, 0ms) + 420ms);
}

body.lsc-motion .landing-modern-v2 .lsc-pain-card.landing-reveal.is-visible .lsc-pain-fix {
    clip-path: inset(0 0 0 0);
    opacity: 1;
}

/* A close-up's points arrive one after another. */
body.lsc-motion .landing-modern-v2 .lsc-spot-copy li {
    opacity: 0;
    transform: translate3d(0, 14px, 0);
    transition: opacity 500ms ease, transform 600ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

body.lsc-motion .landing-modern-v2 .lsc-spot-copy.is-visible li {
    opacity: 1;
    transform: none;
}

body.lsc-motion .landing-modern-v2 .lsc-spot-copy.is-visible li:nth-child(1) { transition-delay: 900ms; }
body.lsc-motion .landing-modern-v2 .lsc-spot-copy.is-visible li:nth-child(2) { transition-delay: 1050ms; }
body.lsc-motion .landing-modern-v2 .lsc-spot-copy.is-visible li:nth-child(3) { transition-delay: 1200ms; }

/* ── Writing ─────────────────────────────────────────────────────────────── */
body.lsc-motion .landing-modern-v2 .lsc-typed .lsc-w {
    display: inline-block;
    opacity: 0;
    transform: translate3d(0, 0.45em, 0);
}

body.lsc-motion .landing-modern-v2 .lsc-typed.is-typing .lsc-w {
    animation: lsc-word 460ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    animation-delay: calc(var(--lsc-wait, 0ms) + var(--i) * var(--lsc-step, 60ms));
}

@keyframes lsc-word {
    from { opacity: 0; transform: translate3d(0, 0.45em, 0); }
    to { opacity: 1; transform: none; }
}

/* The caret that writes the hero's title, gone once the line is written. */
body.lsc-motion .landing-modern-v2 .landing-hero h1.lsc-typed::after {
    content: "";
    display: inline-block;
    width: 0.07em;
    height: 0.9em;
    margin-inline-start: 0.12em;
    border-radius: 2px;
    background: var(--custom-primary);
    vertical-align: -0.08em;
    animation: lsc-caret 620ms steps(1) infinite, lsc-caret-out 400ms ease forwards;
    animation-delay: 0ms, calc(var(--lsc-total, 2000ms) + 900ms);
}

@keyframes lsc-caret {
    50% { opacity: 0; }
}

@keyframes lsc-caret-out {
    to { width: 0; margin: 0; opacity: 0; }
}

/* The hero's buttons and reassurances follow the words. */
body.lsc-motion .landing-modern-v2 .lsc-own-motion .landing-actions,
body.lsc-motion .landing-modern-v2 .lsc-own-motion .lsc-assure {
    opacity: 0;
    animation: lsc-word 600ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    animation-delay: var(--lsc-after, 1200ms);
}

body.lsc-motion .landing-modern-v2 .lsc-own-motion .lsc-assure {
    animation-delay: calc(var(--lsc-after, 1200ms) + 180ms);
}

/* ── The hero's screen straightens as the page starts to move ────────────── */
body.lsc-motion .landing-modern-v2 .lsc-hero-stage .lsc-device {
    transform: perspective(1600px) rotateX(calc(var(--lsc-tilt, 1) * 14deg)) scale(calc(1 - var(--lsc-tilt, 1) * 0.05));
    transform-origin: center top;
    transition: transform 120ms linear;
    will-change: transform;
}

@media (max-width: 640px) {
    body.landing-reveal-enabled.lsc-motion .landing-modern-v2 .lsc-spot-media.landing-reveal,
    body.landing-reveal-enabled.lsc-motion .landing-modern-v2 .lsc-spot-flip .lsc-spot-media.landing-reveal {
        transform: translate3d(0, 38px, 0) scale(0.96);
    }
}

/* The tour shows each screen WHOLE (owner, 2026-11-13): the frame takes the
   picture's own shape instead of cutting it to one. */
.landing-modern-v2 .lsc-tour-panel .lsc-device-screen {
    aspect-ratio: auto;
}

.landing-modern-v2 .lsc-tour-panel .lsc-device-screen img {
    position: static;
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* ── Gradual appearance (2026-11-13, third pass) ────────────────────────────
   Every card and picture appears GRADUALLY as it scrolls into view, the way the
   words do: the card fades up, then what is inside it arrives piece by piece.
   No clipping and no wipes (owner: «تظهر تدريجي», not drawn). A card marked
   here ignores the page's block reveal — one movement, not two. */
body.lsc-motion .landing-modern-v2 .lsc-draw,
body.landing-reveal-enabled.lsc-motion .landing-modern-v2 .lsc-draw.landing-reveal,
body.landing-reveal-enabled.lsc-motion .landing-modern-v2 .lsc-draw.landing-reveal.is-visible {
    opacity: 0;
    filter: none;
    transform: translate3d(0, 30px, 0);
    transition:
        opacity 700ms ease,
        transform 800ms cubic-bezier(0.2, 0.8, 0.2, 1);
    transition-delay: calc(var(--lsc-order, 0) * 110ms);
    will-change: opacity, transform;
}

body.lsc-motion .landing-modern-v2 .lsc-draw.is-drawn,
body.landing-reveal-enabled.lsc-motion .landing-modern-v2 .lsc-draw.landing-reveal.is-drawn {
    opacity: 1;
    transform: none;
}

/* What is inside a card arrives after it, one piece after another. */
body.lsc-motion .landing-modern-v2 .lsc-draw > * {
    opacity: 0;
    transform: translate3d(0, 12px, 0);
    transition: opacity 560ms ease, transform 640ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

body.lsc-motion .landing-modern-v2 .lsc-draw.is-drawn > * {
    opacity: 1;
    transform: none;
}

body.lsc-motion .landing-modern-v2 .lsc-draw.is-drawn > :nth-child(1) { transition-delay: calc(var(--lsc-order, 0) * 110ms + 200ms); }
body.lsc-motion .landing-modern-v2 .lsc-draw.is-drawn > :nth-child(2) { transition-delay: calc(var(--lsc-order, 0) * 110ms + 320ms); }
body.lsc-motion .landing-modern-v2 .lsc-draw.is-drawn > :nth-child(3) { transition-delay: calc(var(--lsc-order, 0) * 110ms + 440ms); }
body.lsc-motion .landing-modern-v2 .lsc-draw.is-drawn > :nth-child(4) { transition-delay: calc(var(--lsc-order, 0) * 110ms + 560ms); }
body.lsc-motion .landing-modern-v2 .lsc-draw.is-drawn > :nth-child(n+5) { transition-delay: calc(var(--lsc-order, 0) * 110ms + 680ms); }

/* A list inside a card appears line by line. */
body.lsc-motion .landing-modern-v2 .lsc-draw li {
    opacity: 0;
    transform: translate3d(0, 10px, 0);
    transition: opacity 480ms ease, transform 560ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

body.lsc-motion .landing-modern-v2 .lsc-draw.is-drawn li {
    opacity: 1;
    transform: none;
}

body.lsc-motion .landing-modern-v2 .lsc-draw.is-drawn li:nth-child(1) { transition-delay: calc(var(--lsc-order, 0) * 110ms + 560ms); }
body.lsc-motion .landing-modern-v2 .lsc-draw.is-drawn li:nth-child(2) { transition-delay: calc(var(--lsc-order, 0) * 110ms + 660ms); }
body.lsc-motion .landing-modern-v2 .lsc-draw.is-drawn li:nth-child(3) { transition-delay: calc(var(--lsc-order, 0) * 110ms + 760ms); }
body.lsc-motion .landing-modern-v2 .lsc-draw.is-drawn li:nth-child(4) { transition-delay: calc(var(--lsc-order, 0) * 110ms + 860ms); }
body.lsc-motion .landing-modern-v2 .lsc-draw.is-drawn li:nth-child(n+5) { transition-delay: calc(var(--lsc-order, 0) * 110ms + 960ms); }

/* A problem's answer follows the problem, fading in — it is not cut open. */
body.lsc-motion .landing-modern-v2 .lsc-pain-card.lsc-draw .lsc-pain-fix,
body.lsc-motion .landing-modern-v2 .lsc-pain-card.lsc-draw.is-drawn .lsc-pain-fix {
    clip-path: none;
}

/* Icons keep their small pop, timed after the card. */
body.lsc-motion .landing-modern-v2 .lsc-draw :is(.lsc-pain-icon, .lsc-more-icon, .lsc-start-no, .landing-feature-icon, .landing-suite-icon, .landing-journey-icon) {
    transform: scale(0.6);
    opacity: 0;
    transition: transform 560ms cubic-bezier(0.3, 1.4, 0.5, 1), opacity 400ms ease;
    transition-delay: calc(var(--lsc-order, 0) * 110ms + 300ms);
}

body.lsc-motion .landing-modern-v2 .lsc-draw.is-drawn :is(.lsc-pain-icon, .lsc-more-icon, .lsc-start-no, .landing-feature-icon, .landing-suite-icon, .landing-journey-icon) {
    transform: none;
    opacity: 1;
}

/* Pictures fade up into place. */
body.lsc-motion .landing-modern-v2 .lsc-wipe img {
    opacity: 0;
    transform: translate3d(0, 18px, 0) scale(0.985);
    transition: opacity 800ms ease, transform 900ms cubic-bezier(0.2, 0.8, 0.2, 1);
    transition-delay: 180ms;
}

body.lsc-motion .landing-modern-v2 .lsc-wipe.is-drawn img {
    opacity: 1;
    transform: none;
}

body.lsc-motion .landing-modern-v2 .lsc-wipe.is-drawn img:nth-child(2) {
    transition-delay: 420ms;
}

/* The tour's pictures are shown and hidden by their tab, not by the scroll. */
body.lsc-motion .landing-modern-v2 .lsc-tour-stage .lsc-device.lsc-wipe img {
    opacity: 1;
    transform: none;
    transition: none;
}

/* On a phone the tour is pinned and its height drives the scroll, so every screen
   sits in one frame of one shape there — whole, never cut. */
@media (max-width: 960px) {
    .landing-modern-v2 .lsc-tour-panel .lsc-device-screen {
        aspect-ratio: 1352 / 758;
        background: #14161c;
    }

    .landing-modern-v2 .lsc-tour-panel .lsc-device-screen img {
        position: absolute;
        inset: 0;
        height: 100%;
        object-fit: contain;
        object-position: center;
    }
}
