/* Landing page sections (Figma: DOZ — Landing Page, 1440px frame).
   Positions inside the two stepped shapes (features, helmets) are percentages of
   the Figma boxes (1320x722 and 1320x711) and use logical insets, so the English
   page is the mirror of the Arabic one. The shapes are drawn for LTR and flipped
   for RTL. */

.landing {
    --landing-yellow: #ffdd00;
    --landing-yellow-cta: #ffd21f;
    --landing-ink: #080a0c;
    --landing-card: #181818;
    --landing-card-border: #303740;
    position: relative;
    font-family: 'Alexandria', 'Plus Jakarta Sans', sans-serif;
    color: #fff;
    overflow: hidden;
    overflow: clip;
}
.landing h1, .landing h2, .landing h3, .landing p { font-family: inherit; margin: 0; }
.landing img { max-width: 100%; }

.landing-container {
    position: relative;
    max-width: 1368px;
    margin-inline: auto;
    padding-inline: 24px;
}

.landing-title {
    font-size: clamp(34px, 4.3vw, 62px);
    font-weight: 700;
    line-height: 1.35;
    color: #fff;
    text-align: center;
}


/* ---------- Hero ---------- */
.landing-hero {
    /* Figma: the background ends at 90% of the phone & scooter image (605 of 125 + 533px),
       so the image always runs over its bottom edge. Image width = its grid column, max 630px. */
    --hero-image-w: min(630px, calc(min(100vw, 1368px) - 563px));
    --hero-bg-h: calc(125px + var(--hero-image-w) * 0.7614);
    padding: 125px 0 40px;
    background: #080a0c;
}
.landing-hero__bg {
    position: absolute;
    inset: 0 0 auto;
    width: 100%;
    height: var(--hero-bg-h);
    object-fit: cover;
    opacity: 0.42;
    transform: scaleX(-1);
}
.landing-hero::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    height: var(--hero-bg-h);
    background: rgba(8, 10, 12, 0.64);
    z-index: 1;
}
.landing-hero__inner {
    z-index: 2;
    display: grid;
    /* Figma: text column on the start side, a 665px image column (image 630px, flush to its start) */
    grid-template-columns: minmax(480px, 1fr) minmax(0, 665px);
    align-items: start;
    gap: 0;
    min-height: 533px;
}
/* Figma: headline 43px below the image top, description 39px below it, buttons 39px below that */
.landing-hero__content { padding-top: 43px; }
.landing-hero__title {
    display: flex;
    flex-direction: column;
    font-size: clamp(38px, 4.3vw, 62px);
    font-weight: 700;
    line-height: 1.35;
    color: #f7f8fa;
}
.landing-hero__highlight { position: relative; align-self: flex-start; z-index: 0; }
.landing-hero__highlight::after {
    content: '';
    position: absolute;
    z-index: -1;
    inset-inline: 21% -14%;
    bottom: 0.08em;
    height: 0.42em;
    border-radius: 4px;
    background: rgba(255, 209, 31, 0.94);
}
.landing-hero__text {
    margin-top: 39px !important;
    font-size: clamp(20px, 2.1vw, 30px);
    line-height: 1.53;
    color: #fff;
}
.landing-hero .store-badges { margin-top: 39px; }
.landing-hero__visual { position: relative; min-height: 533px; }
.landing-hero__union {
    position: absolute;
    inset-inline-end: 1%;
    top: 25%;
    width: 87.7%;
    height: auto;
}
.landing-hero__glow {
    position: absolute;
    left: 50%;
    bottom: -12%;
    width: 110%;
    max-width: none;
    transform: translateX(-50%);
    pointer-events: none;
}
.landing-hero__image {
    position: relative;
    display: block;
    width: 100%;
    max-width: 630px;
    height: auto;
    margin-inline: 0 auto;
}

/* ---------- How it works ---------- */
.landing-steps { padding: 72px 0 120px; background: #080a0c; }
.landing-steps__body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 332px) minmax(0, 1fr);
    grid-template-areas: "start visual end";
    gap: 0;
    margin-top: 39px;
}
.landing-steps__column { display: flex; flex-direction: column; justify-content: flex-end; gap: 48px; padding-bottom: 0; }
.landing-steps__column--start { grid-area: start; }
.landing-steps__column--end { grid-area: end; }
.landing-steps__visual { grid-area: visual; position: relative; }
.landing-steps__scooter { position: relative; display: block; width: 138%; max-width: none; height: auto; margin-inline: -19%; }
.landing-steps__swirl {
    position: absolute;
    top: 16.7%;
    left: 50%;
    width: 102%;
    max-width: none;
    transform: translateX(-50%);
    opacity: 0.5;
}
.landing-steps__glow {
    position: absolute;
    left: 50%;
    bottom: -8%;
    width: 64%;
    max-width: none;
    transform: translateX(-50%) rotate(90deg);
}
.landing-step { display: flex; flex-direction: column; gap: 7px; }
.landing-step__head {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 90px;
    padding-block: 12px;
    padding-inline: 56px 20px;
    border: 2.3px solid var(--landing-card-border);
    border-radius: 32px;
    background: var(--landing-yellow);
}
.landing-step__icon {
    position: absolute;
    top: -85px;
    inset-inline-start: -24px;
    width: 112px;
    height: 112px;
    border-radius: 50%;
    object-fit: cover;
}
.landing-step__title { font-size: clamp(20px, 1.95vw, 28px); font-weight: 700; line-height: 1.36; color: #000; }
.landing-step__text {
    padding: 26px 24px;
    border: 2.3px solid var(--landing-card-border);
    border-radius: 32px;
    background: var(--landing-card);
    font-size: clamp(16px, 1.4vw, 20px);
    line-height: 1.7;
    color: #fff;
}

/* ---------- Features ---------- */
.landing-features { padding: 62px 0 140px; background: var(--landing-yellow); }
.landing-features .landing-title { color: #000; }
.landing-features__pair {
    position: relative;
    max-width: 1320px;
    margin: 220px auto 0;
    aspect-ratio: 1320 / 722;
}
.landing-features__pair + .landing-features__pair { margin-top: 260px; }
.landing-features__pair::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../images/landing/features-union.svg?v=8266e53f53f61c790af3c2471e43f1939ed195b7') center / 100% 100% no-repeat;
}
[dir="rtl"] .landing-features__pair::before { transform: scaleX(-1); }
.landing-feature { display: contents; }
.landing-feature__media { position: absolute; z-index: 1; display: flex; align-items: flex-end; justify-content: center; }
.landing-feature__media::before {
    content: '';
    position: absolute;
    z-index: -1;
    background: var(--landing-yellow);
}
.landing-feature__media img { position: relative; width: 100%; height: 100%; object-fit: contain; }
.landing-feature__body { position: absolute; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; }
.landing-feature__chip {
    display: inline-flex;
    align-items: center;
    min-height: 69px;
    padding: 4px 40px;
    border: 1px solid var(--landing-card-border);
    border-radius: 14px;
    background: #111418;
    font-size: clamp(24px, 2.4vw, 34.7px);
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
}
.landing-feature__text {
    margin-top: 28px !important;
    font-size: clamp(17px, 1.67vw, 24px);
    font-weight: 700;
    line-height: 2.45;
    color: #000;
}
/* First feature: image in the upper block, text in the corner beside it */
.landing-feature--a .landing-feature__media { inset-inline-end: 4.4%; top: -21%; width: 46%; height: 65%; }
.landing-feature--a .landing-feature__media::before { inset-inline-start: 12.4%; top: 50%; width: 79.7%; height: 46%; border-radius: 77px; }
.landing-feature--a .landing-feature__body { inset-inline-start: 4.7%; top: -2.2%; width: 30%; }
/* Second feature: image in the lower block, text in the opposite corner */
.landing-feature--b .landing-feature__media { inset-inline-start: 9.9%; top: 49.4%; width: 42.3%; height: 65%; }
.landing-feature--b .landing-feature__media::before { inset-inline-start: 0; top: 14.2%; width: 31.4%; height: 71.8%; border-radius: 22px; }
.landing-feature--b .landing-feature__body { inset-inline-end: 0; top: 70.5%; width: 36%; }

/* ---------- Locations ---------- */
.landing-locations { padding: 62px 0 140px; background: #090909; }
.landing-locations__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.landing-locations::before { content: ''; position: absolute; inset: 0; z-index: 1; background: rgba(9, 9, 9, 0.67); }
.landing-locations > .landing-container { z-index: 2; }
.landing-locations__grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 554px));
    justify-content: center;
    gap: 70px 76px;
    margin-top: 88px;
}
.landing-locations__swirl {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 468px;
    transform: translate(-50%, -40%);
    pointer-events: none;
}
.landing-location { position: relative; }
.landing-location__frame {
    aspect-ratio: 554 / 384;
    border: 19px solid #fff;
    border-radius: 43px;
    background: var(--landing-yellow);
    overflow: hidden;
    transform: skewX(-3deg);
}
[dir="ltr"] .landing-location__frame { transform: skewX(3deg); }
.landing-location__frame img { width: 100%; height: 100%; object-fit: cover; border-radius: 24px; }
.landing-location__tag {
    position: absolute;
    top: 58px;
    inset-inline-end: -29px;
    filter: drop-shadow(10px 4px 0 #000);
}
.landing-location__tag span {
    display: block;
    padding: 8px 30px 8px 14px;
    background: var(--landing-yellow);
    clip-path: polygon(0 0, 88% 0, 100% 100%, 0 100%);
    font-size: 14.5px;
    font-weight: 700;
    line-height: 1.35;
    color: #000;
    direction: ltr;
    white-space: nowrap;
}
.landing-location__btn {
    position: absolute;
    left: 50%;
    bottom: -15px;
    min-width: 200px;
    padding: 16px;
    border: 1px solid #0e0e0e;
    border-radius: 12px;
    background: var(--landing-yellow-cta);
    filter: drop-shadow(8px 8px 10px #000);
    font-size: 14px;
    font-weight: 700;
    color: var(--landing-ink);
    text-align: center;
    transform: translateX(-50%);
    transition: background 0.2s ease-in-out;
}
.landing-location__btn:hover { background: #fff; color: var(--landing-ink); }

/* ---------- Helmets ---------- */
.landing-helmets { padding: 92px 0 0; background: #080a0c; }
.landing-helmets__board {
    position: relative;
    max-width: 1320px;
    margin-inline: auto;
    aspect-ratio: 1320 / 711;
}
.landing-helmets__board::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../images/landing/helmets-union.svg?v=8266e53f53f61c790af3c2471e43f1939ed195b7') center / 100% 100% no-repeat;
}
[dir="rtl"] .landing-helmets__board::before { transform: scaleX(-1); }
.landing-helmets__board > * { position: absolute; z-index: 1; }
.landing-helmets__brand {
    inset-inline-start: 16.4%;
    top: 4.4%;
    font-size: clamp(36px, 4.3vw, 62px);
    font-weight: 700;
    line-height: 1.35;
    color: #fff;
}
.landing-helmets__card {
    inset-inline-end: 4%;
    top: 5.8%;
    width: 31.5%;
    height: 66%;
    padding: 42px 30px 30px;
    border-radius: 25px;
    background: var(--landing-card);
}
.landing-helmets__title { position: relative; font-size: clamp(30px, 3.3vw, 48px); font-weight: 700; line-height: 1.3; color: #fff; }
.landing-helmets__title span { position: relative; z-index: 0; }
.landing-helmets__title span::after {
    content: '';
    position: absolute;
    z-index: -1;
    inset-inline: 8% -12%;
    bottom: -0.05em;
    height: 0.6em;
    border-radius: 4px;
    background: rgba(255, 209, 31, 0.94);
}
.landing-helmets__text { margin-top: 44px !important; font-size: clamp(20px, 2.5vw, 36px); line-height: 1.58; color: #fff; }
.landing-helmets__helmet { inset-inline-end: 36.1%; top: 6.9%; width: 27.4%; height: 46.3%; }
.landing-helmets__helmet::before {
    content: '';
    position: absolute;
    inset: 3% 8.6% 12% 17.4%;
    border-radius: 25px;
    background: var(--landing-card);
}
.landing-helmets__helmet img { position: relative; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 0 20px rgba(0, 0, 0, 0.55)); }
.landing-helmets__stat {
    inset-inline-end: 61.2%;
    top: 28.8%;
    width: 20.6%;
    height: 21.2%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 25px;
    background: var(--landing-yellow);
    color: #000;
    text-align: center;
}
.landing-helmets__stat strong { font-size: clamp(36px, 4.3vw, 62px); font-weight: 700; line-height: 1.1; direction: ltr; }
.landing-helmets__stat span { font-size: clamp(14px, 1.4vw, 20px); font-weight: 700; }
.landing-helmets__highlight {
    inset-inline-end: 38.8%;
    top: 56.1%;
    width: 58.7%;
    height: 39%;
    display: flex;
    align-items: center;
    padding-inline: 0 2.8%;
    border-radius: 25px;
    background: var(--landing-yellow);
}
.landing-helmets__highlight p {
    position: relative;
    z-index: 1;
    width: 57%;
    font-size: clamp(20px, 2.5vw, 36px);
    font-weight: 700;
    line-height: 2.33;
    color: #000;
    order: 2;
}
.landing-helmets__highlight img {
    position: absolute;
    inset-inline-start: -2.7%;
    top: -13.4%;
    width: 43%;
    height: 127%;
    object-fit: contain;
}
.landing-helmets__highlight p { margin-inline-start: auto !important; }
.landing-helmets__button {
    inset-inline-end: 1.2%;
    top: 86.5%;
    width: 31%;
    min-height: 96px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    border: 1px solid var(--landing-yellow-cta);
    border-radius: 12px;
    background: var(--landing-yellow-cta);
    box-shadow: 0 0 10px var(--landing-yellow);
    font-size: clamp(18px, 1.7vw, 24px);
    font-weight: 700;
    color: var(--landing-ink);
    transition: box-shadow 0.2s ease-in-out;
}
.landing-helmets__button:hover { color: var(--landing-ink); box-shadow: 0 0 24px var(--landing-yellow); }

/* ---------- FAQs ---------- */
.landing-faqs { padding: 90px 0 140px; background: #080a0c; }
.landing-faqs .landing-title { font-size: clamp(32px, 3.4vw, 48px); }
.landing-faqs__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 76px;
    margin-top: 42px;
}
.landing-faqs__column { display: flex; flex-direction: column; gap: 28px; }
.landing-faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 65px;
    padding: 12px 24px 12px 30px;
    border: 1px solid #2e363d;
    border-radius: 18px;
    background: #111417;
    cursor: pointer;
    list-style: none;
}
.landing-faq summary::-webkit-details-marker { display: none; }
.landing-faq summary:focus-visible { outline: 2px solid var(--landing-yellow); outline-offset: 3px; }
.landing-faq__question { font-size: clamp(16px, 1.4vw, 20px); font-weight: 700; color: #f7fafc; }
.landing-faq__icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--landing-yellow);
    color: var(--landing-ink);
    font-size: 25px;
    font-weight: 700;
    line-height: 1;
}
.landing-faq__icon::before { content: '+'; }
.landing-faq[open] .landing-faq__icon::before { content: '\2212'; }
.landing-faq__answer {
    margin: 5px -2px 0;
    padding: 14px 24px;
    border-radius: 25px;
    background: var(--landing-yellow);
    font-size: 14px;
    line-height: 1.6;
    color: #000;
}

/* ---------- CTA ---------- */
.landing-cta { min-height: 621px; display: flex; align-items: center; background: #000; }
.landing-cta__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 55%; }
.landing-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to left, rgba(0, 0, 0, 0.79) 11.8%, rgba(102, 102, 102, 0) 74.5%);
}
[dir="ltr"] .landing-cta::before { background: linear-gradient(to right, rgba(0, 0, 0, 0.79) 11.8%, rgba(102, 102, 102, 0) 74.5%); }
.landing-cta__inner { z-index: 2; width: 100%; padding-block: 60px; }
.landing-cta__title { display: flex; flex-direction: column; gap: 40px; font-size: clamp(38px, 4.4vw, 64px); font-weight: 700; line-height: 1.2; color: #fff; }
.landing-cta__highlight { color: var(--landing-yellow); }
.landing-cta .store-badges { margin-top: 56px; }

/* English runs longer than the Arabic the boxes were drawn for: tighter lines keep it inside */
[dir="ltr"] .landing-feature__text { line-height: 1.8; }
[dir="ltr"] .landing-helmets__highlight p { line-height: 1.45; }
[dir="ltr"] .landing-helmets__text { line-height: 1.45; }

/* ---------- Tablet & mobile: stack the absolute layouts ---------- */
@media (max-width: 991px) {
    .landing-hero { padding-top: 110px; }
    .landing-hero__inner { grid-template-columns: minmax(0, 1fr); gap: 40px; text-align: start; }
    .landing-hero__image { margin-inline: auto; }
    .landing-hero { --hero-bg-h: 100%; }
    .landing-hero__content { padding-top: 20px; }
    .landing-hero__visual { min-height: 0; max-width: 520px; width: 100%; margin-inline: auto; }

    .landing-steps__body { grid-template-columns: minmax(0, 1fr); grid-template-areas: "visual" "start" "end"; gap: 48px; }
    .landing-steps__visual { max-width: 320px; width: 100%; margin-inline: auto; }
    .landing-steps__column { gap: 48px; }
    .landing-step { margin-top: 60px; }

    .landing-features__pair,
    .landing-features__pair + .landing-features__pair { aspect-ratio: auto; margin-top: 40px; display: flex; flex-direction: column; gap: 32px; }
    .landing-features__pair::before { display: none; }
    .landing-feature { display: flex; flex-direction: column; gap: 20px; padding: 24px; border-radius: 32px; background: #000; }
    .landing-feature__media,
    .landing-feature__body,
    .landing-feature--a .landing-feature__media, .landing-feature--b .landing-feature__media,
    .landing-feature--a .landing-feature__body, .landing-feature--b .landing-feature__body {
        position: relative; inset: auto; width: auto; height: auto;
    }
    .landing-feature__media { max-height: 320px; }
    .landing-feature__media::before { display: none; }
    .landing-feature__text { color: #fff; line-height: 1.8; margin-top: 16px !important; }

    .landing-locations__grid { grid-template-columns: minmax(0, 554px); gap: 64px; }

    .landing-helmets__board { aspect-ratio: auto; display: flex; flex-direction: column; gap: 20px; margin-bottom: 0; padding: 28px; border: 6px solid var(--landing-yellow); border-radius: 40px; background: #000; }
    .landing-helmets__board::before { display: none; }
    .landing-helmets__board > * { position: relative; inset: auto; width: auto; height: auto; }
    .landing-helmets__card { padding: 28px; }
    .landing-helmets__helmet { max-width: 300px; margin-inline: auto; }
    .landing-helmets__stat { padding: 20px; }
    .landing-helmets__highlight { padding: 24px; flex-direction: column; }
    .landing-helmets__highlight p { width: auto; line-height: 1.6; margin: 0 !important; }
    .landing-helmets__highlight img { position: relative; inset: auto; width: 160px; height: auto; order: 3; }
    .landing-helmets__button { min-height: 64px; }

    .landing-faqs__grid { grid-template-columns: minmax(0, 1fr); }
    .landing-steps__scooter { width: 100%; margin-inline: 0; }
    .landing-cta { min-height: 480px; }
}

@media (max-width: 575px) {
    .landing-container { padding-inline: 16px; }
    .landing .store-badges { gap: 12px; font-size: 13px; }
    .landing-step__head { padding-inline: 92px 18px; }
    .landing-step__icon { width: 88px; height: 88px; top: -60px; inset-inline-start: -8px; }
    .landing-feature__chip { padding: 4px 24px; min-height: 56px; }
    .landing-location__tag { inset-inline-end: -8px; }
    .landing-location__frame { border-width: 12px; border-radius: 32px; }
    .landing-cta__title { gap: 16px; }
}
