/*
 * C.35: the landing of moovey.ma (docs/design/landing). Desktop first, the phone mockup under 900 px,
 * mirrored in Arabic (dir="rtl") with logical properties.
 */
:root {
    --night: #120A24;
    --night-2: #1A0F33;
    --night-3: #0D0719;
    --violet: #2E1A57;
    --sand: #F4EFE6;
    --cream: #E9DFCF;
    --gold: #C9A86A;
    /* Bronze and copyright darkened/lightened a touch from the mockup (#8A6D3B, #6F6585) for AA contrast. */
    --bronze: #836636;
    --muted: #5A4F6B;
    --lilac: #CFC6E0;
    --mist: #D9D0E6;
    --foot: #A99FBD;
    --foot-2: #7F7596;
    --line-sand: #D9CBB0;
    --serif: 'Cormorant Garamond', Georgia, serif;
    --sans: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

[dir="rtl"] {
    --serif: 'Amiri', 'Noto Naskh Arabic', serif;
    --sans: 'Readex Pro', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--night); }
img { max-width: 100%; }
picture { display: block; }
picture img { display: block; }

.landing { font-family: var(--sans); color: var(--sand); background: var(--night); min-height: 100vh; overflow-x: hidden; }
.landing a { color: var(--cream); }
.landing a:hover { color: #FFFFFF; }
.landing :focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.landing .sand :focus-visible { outline-color: var(--night-2); }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.serif { font-family: var(--serif); font-weight: 500; letter-spacing: -.01em; }
.serif em, h1 em, h2 em { font-style: italic; }
.gold { color: var(--gold); }
.bronze { color: var(--bronze); }
.gold-rule { height: 1px; width: 64px; background: var(--gold); }
.glass { background: rgba(255, 255, 255, .10); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid rgba(255, 255, 255, .22); }
.eyebrow { font-size: 13px; letter-spacing: .28em; text-transform: uppercase; }
.sm { display: none !important; }

.skip { position: absolute; inset-inline-start: 16px; top: -60px; z-index: 20; background: var(--sand); color: var(--night-2) !important; padding: 10px 16px; border-radius: 12px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 16px; }

/* Header */
.top { position: absolute; top: 0; left: 0; right: 0; z-index: 5; }
.top-in { padding-top: 28px; padding-bottom: 28px; display: flex; align-items: center; gap: 32px; }
.brand img { height: 26px; width: auto; }
.nav-lg { display: flex; gap: 28px; font-size: 15px; flex: 1; justify-content: center; }
.nav-lg a, .lang { text-decoration: none; }
.top-actions { display: flex; gap: 14px; align-items: center; margin-inline-start: auto; }
.lang { font-size: 15px; }
.landing .pill { height: 44px; padding: 0 22px; border-radius: 22px; background: var(--sand); color: var(--night-2); font-weight: 600; font-size: 15px; text-decoration: none; display: flex; align-items: center; }
.landing .pill:hover { color: var(--night-2); background: #FFFFFF; }
.burger { display: none; width: 44px; height: 44px; border-radius: 22px; border: 1px solid rgba(255, 255, 255, .35); background: transparent; color: #FFFFFF; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.burger .burger-close { display: none; }
.burger[aria-expanded="true"] .burger-open { display: none; }
.burger[aria-expanded="true"] .burger-close { display: inline; }
.menu { margin: 0 22px; border-radius: 20px; background: rgba(18, 10, 36, .96); border: 1px solid rgba(233, 223, 207, .18); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.menu[hidden] { display: none; }
.menu ul { list-style: none; margin: 0; padding: 8px 0; }
.menu a { display: block; padding: 14px 22px; font-size: 18px; text-decoration: none; }
.menu li + li a { border-top: 1px solid rgba(233, 223, 207, .12); }

/* Hero */
.hero { position: relative; min-height: 820px; display: flex; align-items: center; overflow: hidden; }
.hero-bg, .download-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img, .download-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg img { object-position: right center; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(18, 10, 36, .92) 0%, rgba(18, 10, 36, .72) 38%, rgba(18, 10, 36, .08) 70%); }
[dir="rtl"] .hero-bg img { transform: scaleX(-1); }
[dir="rtl"] .hero::before { background: linear-gradient(270deg, rgba(18, 10, 36, .92) 0%, rgba(18, 10, 36, .72) 38%, rgba(18, 10, 36, .08) 70%); }
.hero-in { position: relative; z-index: 2; width: 100%; padding-top: 140px; padding-bottom: 80px; display: flex; gap: 48px; align-items: flex-end; justify-content: space-between; }
.hero-text { max-width: 600px; display: flex; flex-direction: column; gap: 28px; }
.hero h1 { margin: 0; font-size: 84px; line-height: .98; color: #FFFFFF; }
.hero h1 em { color: var(--cream); }
.lead { margin: 0; font-size: 19px; line-height: 1.6; color: var(--mist); max-width: 480px; font-weight: 300; }
.stores { display: flex; gap: 12px; flex-wrap: wrap; }
.landing .store { height: 56px; padding: 0 22px; border-radius: 14px; text-decoration: none; display: flex; align-items: center; gap: 12px; }
.store-two { display: flex; flex-direction: column; line-height: 1.1; }
.store-two small { font-size: 11px; }
.store-two strong { font-size: 17px; font-weight: 600; }
.store-one { display: none; }
.landing .store-light { background: #FFFFFF; color: var(--night); }
.landing .store-light:hover { color: var(--night); background: var(--sand); }
.landing .store-line { border: 1px solid rgba(255, 255, 255, .4); color: #FFFFFF; }
.landing .store-line:hover { color: #FFFFFF; background: rgba(255, 255, 255, .08); }
.points-card { width: 300px; flex-shrink: 0; border-radius: 24px; padding: 22px; display: flex; flex-direction: column; gap: 14px; margin-bottom: 40px; }
.points-head { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--cream); }
.points-head .gold { font-size: 12px; }
.points-value { font-size: 52px; line-height: 1; color: #FFFFFF; }
.points-value span { font-size: 24px; }
.points-rule { height: 1px; background: rgba(255, 255, 255, .2); }
.points-balance { display: flex; justify-content: space-between; font-size: 14px; color: var(--cream); }
.points-balance strong { color: #FFFFFF; font-weight: 600; }

/* Sand sections */
.sand { background: var(--sand); color: var(--night-2); }
.figures-in { padding-top: 56px; padding-bottom: 56px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.figure { display: flex; flex-direction: column; gap: 6px; border-inline-start: 1px solid var(--line-sand); padding-inline-start: 24px; }
.figure .serif { font-size: 54px; line-height: 1; }
.figure span + span { font-size: 15px; color: var(--muted); }

.services-in { padding-top: 72px; padding-bottom: 120px; display: flex; flex-direction: column; gap: 48px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; }
.section-title { display: flex; flex-direction: column; gap: 18px; max-width: 640px; }
.services h2, .how h2, .partners h2 { margin: 0; font-size: 58px; line-height: 1.02; }
.section-head p { margin: 0; max-width: 380px; font-size: 17px; line-height: 1.6; color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.card { display: flex; flex-direction: column; gap: 18px; }
.card-img { border-radius: 22px; overflow: hidden; aspect-ratio: 4 / 5; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .8, .2, 1); }
.card:hover .card-img img { transform: scale(1.04); }
.tag { font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--bronze); }
.card h3 { margin: 0; font-size: 32px; line-height: 1.1; }
.card p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--muted); }

/* How it works */
.how { background: var(--night-2); }
.how-in { padding-top: 120px; padding-bottom: 120px; display: flex; flex-direction: column; gap: 56px; }
.how-head { display: flex; flex-direction: column; gap: 18px; align-items: center; text-align: center; }
.how h2 { color: #FFFFFF; }
.how h2 em { color: var(--cream); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.steps li { border: 1px solid rgba(233, 223, 207, .18); border-radius: 22px; padding: 36px 30px; display: flex; flex-direction: column; gap: 16px; }
.step-number { font-size: 64px; line-height: 1; color: var(--gold); }
.step-body { display: flex; flex-direction: column; gap: 16px; }
.step-title { font-size: 21px; font-weight: 600; color: #FFFFFF; }
.step-text { font-size: 16px; line-height: 1.6; color: var(--lilac); }

/* Partners */
.partners-in { padding-top: 120px; padding-bottom: 120px; display: flex; gap: 72px; align-items: center; }
.partners-img { flex: 1 1 0; min-width: 0; border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 5; max-width: 520px; }
.partners-img img { width: 100%; height: 100%; object-fit: cover; }
.partners-text { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.partners-text p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--muted); }
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; font-size: 16px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks svg { flex-shrink: 0; margin-top: 2px; color: var(--bronze); }
.buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.landing .button { height: 54px; padding: 0 26px; border-radius: 27px; font-weight: 600; text-decoration: none; display: flex; align-items: center; justify-content: center; }
.landing .button-dark { background: var(--night-2); color: var(--sand); }
.landing .button-dark:hover { background: var(--violet); color: #FFFFFF; }
.landing .button-outline { border: 1px solid var(--night-2); color: var(--night-2); }
.landing .button-outline:hover { background: rgba(26, 15, 51, .06); color: var(--night-2); }
.landing .button-sand { background: var(--sand); color: var(--night-2); flex-shrink: 0; }
.landing .button-sand:hover { background: #FFFFFF; color: var(--night-2); }

/* Couriers */
.couriers { background: var(--violet); }
.couriers-in { padding-top: 72px; padding-bottom: 72px; display: flex; gap: 40px; align-items: center; justify-content: space-between; }
.couriers-text { display: flex; flex-direction: column; gap: 12px; max-width: 640px; }
.couriers h2 { margin: 0; font-size: 44px; line-height: 1.05; color: #FFFFFF; }
.couriers h2 em { color: var(--cream); }
.couriers p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--lilac); }

/* Download */
.download { position: relative; overflow: hidden; }
.download::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(18, 10, 36, .15), rgba(18, 10, 36, .55)); }
.download-in { position: relative; z-index: 2; padding-top: 160px; padding-bottom: 160px; display: flex; flex-direction: column; gap: 28px; align-items: center; text-align: center; }
.download-in > picture img { height: 34px; width: auto; }
.download h2 { margin: 0; font-size: 68px; line-height: 1; color: #FFFFFF; }
.download h2 em { color: var(--cream); }
.download-buttons { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.landing .store-flat { height: 56px; padding: 0 26px; border-radius: 14px; font-weight: 600; text-decoration: none; display: flex; align-items: center; justify-content: center; }
.landing .store-flat.store-line { border-color: rgba(255, 255, 255, .5); }

/* Footer */
.foot { background: var(--night-3); color: var(--foot); font-size: 14px; }
.foot-in { padding-top: 48px; padding-bottom: 48px; display: flex; gap: 32px; justify-content: space-between; align-items: flex-start; }
.foot-brand { display: flex; flex-direction: column; gap: 12px; max-width: 320px; }
.foot-brand img { height: 22px; width: auto; }
.foot-nav { display: flex; gap: 48px; flex-wrap: wrap; }
.foot-group { display: flex; flex-direction: column; gap: 10px; }
.foot-title { color: var(--cream); font-weight: 600; }
.landing .foot a { color: var(--foot); text-decoration: none; }
.landing .foot a:hover { color: #FFFFFF; text-decoration: underline; }
.foot-copy { padding-bottom: 32px; color: var(--foot-2); }

/* Light motion, cut by prefers-reduced-motion */
@keyframes rise { 0% { opacity: 0; transform: translateY(18px); } 100% { opacity: 1; transform: translateY(0); } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.rise1 { animation: rise .9s ease-out .1s both; }
.rise2 { animation: rise .9s ease-out .3s both; }
.rise3 { animation: rise .9s ease-out .5s both; }
.floaty { animation: floaty 6s ease-in-out infinite; }

@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
}

@media (prefers-reduced-motion: reduce) {
    .rise1, .rise2, .rise3, .floaty { animation: none; }
    .card-img img { transition: none; }
    .card:hover .card-img img { transform: none; }
}

/* Arabic: a Naskh serif for the titles (Amiri), no italic nor letter spacing (they break the joined letters). */
[dir="rtl"] .serif { font-weight: 400; letter-spacing: 0; }
[dir="rtl"] .serif em, [dir="rtl"] h1 em, [dir="rtl"] h2 em { font-style: normal; }
[dir="rtl"] .eyebrow, [dir="rtl"] .tag { letter-spacing: 0; text-transform: none; font-size: 14px; }
[dir="rtl"] .hero h1 { font-size: 76px; line-height: 1.25; }
[dir="rtl"] .services h2, [dir="rtl"] .how h2, [dir="rtl"] .partners h2 { font-size: 52px; line-height: 1.3; }
[dir="rtl"] .couriers h2 { line-height: 1.35; }
[dir="rtl"] .download h2 { font-size: 60px; line-height: 1.35; }
[dir="rtl"] .card h3 { line-height: 1.35; }
[dir="rtl"] .figure .serif { line-height: 1.25; }
[dir="rtl"] .lead { line-height: 1.8; }

/* Phone (landing-telephone) */
@media (max-width: 900px) {
    .lg { display: none !important; }
    .sm { display: revert !important; }
    .wrap { padding: 0 22px; }

    .top-in { padding-top: 22px; padding-bottom: 0; gap: 16px; }
    .brand img { height: 22px; }
    .nav-lg, .pill { display: none !important; }
    .top-actions { gap: 10px; }
    .lang { font-size: 14px; }
    .burger { display: flex; }
    .menu { margin-top: 12px; }

    .hero { min-height: 760px; align-items: flex-end; }
    .hero-bg img { object-position: 68% center; }
    .hero::before, [dir="rtl"] .hero::before { background: linear-gradient(180deg, rgba(18, 10, 36, .2) 0%, rgba(18, 10, 36, .55) 40%, rgba(18, 10, 36, .96) 78%); }
    .hero-in { padding-top: 120px; padding-bottom: 36px; flex-direction: column; align-items: stretch; }
    .hero-text { max-width: none; gap: 18px; }
    .hero .eyebrow { font-size: 12px; letter-spacing: .26em; }
    .hero h1 { font-size: 52px; }
    .lead { font-size: 16px; line-height: 1.55; max-width: none; }
    .chip { display: flex !important; border-radius: 18px; padding: 14px 16px; justify-content: space-between; align-items: center; gap: 12px; background: rgba(255, 255, 255, .12); font-size: 13px; color: var(--cream); }
    .chip-points { font-size: 30px; color: #FFFFFF; white-space: nowrap; }
    .stores { flex-direction: column; gap: 10px; }
    .landing .store { height: 54px; justify-content: center; font-weight: 600; }
    .landing .store-line { border-color: rgba(255, 255, 255, .45); }
    .store svg, .store-two { display: none; }
    .store-one { display: inline; }

    .figures-in { padding-top: 36px; padding-bottom: 36px; grid-template-columns: minmax(0, 1fr); gap: 22px; }
    .figure { gap: 4px; padding-inline-start: 18px; }
    .figure .serif { font-size: 40px; }
    .figure span + span { font-size: 14px; }

    .services-in { padding-top: 24px; padding-bottom: 64px; gap: 28px; }
    .section-head { display: block; }
    .section-title { gap: 14px; }
    .section-title .gold-rule { width: 48px; }
    .services h2, .how h2, .partners h2 { font-size: 40px; line-height: 1.04; }
    .cards { grid-template-columns: minmax(0, 1fr); gap: 28px; }
    .card { gap: 12px; }
    .card-img { aspect-ratio: auto; height: 300px; border-radius: 20px; }
    .tag { font-size: 11px; letter-spacing: .22em; }
    .card h3 { font-size: 28px; }
    .card p { font-size: 15px; line-height: 1.55; }

    .how-in { padding-top: 64px; padding-bottom: 64px; gap: 22px; }
    .steps { grid-template-columns: minmax(0, 1fr); gap: 14px; }
    .steps li { flex-direction: row; gap: 16px; padding: 22px; border-radius: 20px; align-items: flex-start; }
    .step-number { font-size: 46px; line-height: .9; }
    .step-body { gap: 4px; }
    .step-title { font-size: 18px; }
    .step-text { font-size: 14.5px; line-height: 1.5; }

    .partners-in { padding-top: 64px; padding-bottom: 64px; flex-direction: column; align-items: stretch; gap: 20px; }
    .partners-img { flex: none; max-width: none; aspect-ratio: auto; height: 380px; border-radius: 24px; }
    .partners-text { gap: 20px; }
    .partners .eyebrow { font-size: 12px; letter-spacing: .26em; }
    .partners-text p { font-size: 15.5px; line-height: 1.55; }
    .buttons { flex-direction: column; }

    .couriers-in { padding-top: 48px; padding-bottom: 48px; flex-direction: column; align-items: stretch; gap: 14px; }
    .couriers-text { gap: 14px; }
    .couriers .eyebrow { font-size: 12px; letter-spacing: .26em; }
    .couriers h2 { font-size: 34px; line-height: 1.06; }
    .landing .button-sand { height: 52px; border-radius: 26px; }

    .download::before { background: linear-gradient(180deg, rgba(18, 10, 36, .2), rgba(18, 10, 36, .6)); }
    .download-in { padding-top: 96px; padding-bottom: 96px; gap: 22px; }
    .download h2 { font-size: 44px; }
    .landing .store-wide { display: flex !important; width: 100%; height: 54px; }

    .foot-in { padding-top: 36px; padding-bottom: 16px; flex-direction: column; gap: 16px; }
    .foot-brand img { height: 20px; }
    .foot-nav { gap: 10px 20px; }
    .foot-group { display: contents; }
    .foot-title { display: none; }
    .foot-last { order: 9; }
    .foot-copy { padding-bottom: 36px; }

    [dir="rtl"] .eyebrow, [dir="rtl"] .tag { letter-spacing: 0; font-size: 13px; }
    [dir="rtl"] .hero h1 { font-size: 48px; line-height: 1.3; }
    [dir="rtl"] .services h2, [dir="rtl"] .how h2, [dir="rtl"] .partners h2 { font-size: 36px; line-height: 1.35; }
    [dir="rtl"] .couriers h2 { font-size: 32px; }
    [dir="rtl"] .download h2 { font-size: 40px; }
    [dir="rtl"] .chip-points { font-size: 26px; }
}

@media (min-width: 901px) {
    .menu { display: none !important; }
}
