/* ==========================================================================
   QuickDeliver — public website
   Plain CSS, no build step. Light/dark via [data-theme] on <html>,
   RTL via logical properties and [dir="rtl"].
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
    --brand: #1d4ed8;
    --brand-strong: #173ead;
    --brand-bright: #1e88e5;
    --brand-soft: #e8efff;
    --accent: #ff7a00;
    --accent-strong: #e86a00;
    --accent-soft: #fff1e3;
    --success: #12a150;
    --success-soft: #e3f7ec;
    --danger: #e5484d;

    --bg: #f6f8fc;
    --bg-elev: #ffffff;
    --bg-soft: #eef2fa;
    --bg-dark: #0a1230;
    --text: #0e1730;
    --text-muted: #55627d;
    --text-faint: #8590a8;
    --border: #e2e8f3;
    --border-strong: #cfd8e8;

    --map-bg: #e9eef8;
    --map-block: #dbe3f2;

    --shadow-sm: 0 1px 2px rgba(15, 23, 42, .05);
    --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 10px 30px rgba(15, 23, 42, .07);
    --shadow-lg: 0 2px 4px rgba(15, 23, 42, .04), 0 24px 60px rgba(15, 23, 42, .12);

    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 24px;

    --font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Sora', var(--font-sans);
    --header-h: 72px;

    color-scheme: light;
}

:root[data-theme="dark"] {
    --brand: #5b8cff;
    --brand-strong: #7aa2ff;
    --brand-bright: #4fa3ff;
    --brand-soft: rgba(91, 140, 255, .14);
    --accent: #ff9124;
    --accent-strong: #ffa64d;
    --accent-soft: rgba(255, 145, 36, .14);
    --success: #3ccf7f;
    --success-soft: rgba(60, 207, 127, .14);

    --bg: #070b18;
    --bg-elev: #0e1528;
    --bg-soft: #0b1122;
    --bg-dark: #0e1630;
    --text: #e9eef9;
    --text-muted: #9aa5bf;
    --text-faint: #6c7894;
    --border: #1d2742;
    --border-strong: #2a3657;

    --map-bg: #121b33;
    --map-block: #1a2544;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .35);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, .3), 0 24px 60px rgba(0, 0, 0, .5);

    color-scheme: dark;
}

/* No-JS fallback: follow the system theme. */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme]) {
        --brand: #5b8cff; --brand-strong: #7aa2ff; --brand-soft: rgba(91, 140, 255, .14);
        --accent: #ff9124; --accent-soft: rgba(255, 145, 36, .14);
        --bg: #070b18; --bg-elev: #0e1528; --bg-soft: #0b1122; --bg-dark: #0e1630;
        --text: #e9eef9; --text-muted: #9aa5bf; --text-faint: #6c7894;
        --border: #1d2742; --border-strong: #2a3657;
        --map-bg: #121b33; --map-block: #1a2544;
        color-scheme: dark;
    }
}

html[lang="ar"] {
    --font-sans: 'IBM Plex Sans Arabic', 'Inter', ui-sans-serif, system-ui, sans-serif;
    --font-display: 'IBM Plex Sans Arabic', 'Inter', sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 16px);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    transition: background-color .25s ease, color .25s ease;
}

html[lang="ar"] body { line-height: 1.75; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); line-height: 1.2; letter-spacing: -.02em; }
html[lang="ar"] :is(h1, h2, h3) { letter-spacing: 0; line-height: 1.35; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

.icon { width: 20px; height: 20px; flex: none; }
[dir="rtl"] .flip-rtl { transform: scaleX(-1); }
.icon--back { transform: scaleX(-1); }
[dir="rtl"] .icon--back { transform: none; }

.skip-link {
    position: absolute;
    inset-inline-start: 16px;
    top: -60px;
    z-index: 100;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    background: var(--brand);
    color: #fff;
    font-weight: 600;
}
.skip-link:focus { top: 12px; }

.container {
    width: 100%;
    max-width: 1200px;
    margin-inline: auto;
    padding-inline: 24px;
}
.container--narrow { max-width: 860px; }

@media (max-width: 640px) {
    .container { padding-inline: 16px; }
}

.text-gradient {
    background: linear-gradient(100deg, var(--brand) 0%, var(--brand-bright) 45%, var(--accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 20px;
    border: 1.5px solid transparent;
    border-radius: 12px;
    font: inherit;
    font-weight: 600;
    font-size: 15px;
    line-height: 1.2;
    white-space: nowrap;
    cursor: pointer;
    transition: transform .15s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease, color .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn--lg { min-height: 52px; padding: 14px 26px; font-size: 16px; border-radius: 14px; }
.btn--block { width: 100%; }

.btn--primary {
    background: linear-gradient(180deg, #2a5ef0, #1d4ed8);
    color: #fff;
    box-shadow: 0 6px 18px rgba(29, 78, 216, .28);
}
.btn--primary:hover { box-shadow: 0 10px 26px rgba(29, 78, 216, .36); transform: translateY(-1px); }
[data-theme="dark"] .btn--primary { background: linear-gradient(180deg, #4b7dff, #2f62ec); box-shadow: 0 6px 22px rgba(75, 125, 255, .3); }

.btn--ghost { background: var(--bg-elev); color: var(--text); border-color: var(--border); box-shadow: var(--shadow-sm); }
.btn--ghost:hover { border-color: var(--border-strong); }

.btn--outline { background: transparent; color: var(--brand); border-color: color-mix(in srgb, var(--brand) 35%, transparent); }
.btn--outline:hover { background: var(--brand-soft); }

.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 42px;
    height: 42px;
    padding: 0 10px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--bg-elev);
    color: var(--text);
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color .2s ease, background-color .2s ease;
}
.icon-btn:hover { border-color: var(--border-strong); }

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    height: var(--header-h);
    background: color-mix(in srgb, var(--bg) 78%, transparent);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--border); box-shadow: var(--shadow-sm); }

.site-header__inner {
    display: flex;
    align-items: center;
    gap: 24px;
    height: 100%;
}

.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.brand__mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 0 0 1px var(--border), var(--shadow-sm);
    overflow: hidden;
}
.brand__mark img { width: 38px; height: 38px; }
.brand__word { font-family: 'Sora', 'Inter', sans-serif; font-weight: 800; font-size: 20px; letter-spacing: -.02em; }
.brand__quick { color: #1a3a9e; }
.brand__deliver { color: var(--accent); }
[data-theme="dark"] .brand__quick { color: #8fb0ff; }

.site-nav { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; }
.site-nav a:not(.btn) {
    padding: 8px 12px;
    border-radius: 10px;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 15px;
    transition: color .2s ease, background-color .2s ease;
}
.site-nav a:not(.btn):hover { color: var(--text); background: var(--bg-soft); }
.site-nav__cta { display: none; }

.site-header__controls { display: flex; align-items: center; gap: 8px; }
.site-header__toggle { display: none; }

.theme-icon--sun { display: none; }
[data-theme="dark"] .theme-icon--sun { display: block; }
[data-theme="dark"] .theme-icon--moon { display: none; }

.lang-menu { position: relative; }
.lang-menu summary { list-style: none; }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu__list {
    position: absolute;
    top: calc(100% + 8px);
    inset-inline-end: 0;
    min-width: 170px;
    padding: 6px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--bg-elev);
    box-shadow: var(--shadow-lg);
}
.lang-menu__list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 12px;
    border-radius: 10px;
    font-size: 15px;
}
.lang-menu__list a:hover { background: var(--bg-soft); }
.lang-menu__list a[aria-current] { color: var(--brand); font-weight: 600; }
.lang-menu__list .icon { width: 16px; height: 16px; }

@media (max-width: 1020px) {
    .site-header__cta { display: none; }
    .site-header__toggle { display: inline-flex; }
    .site-header__controls { margin-inline-start: auto; }

    .site-nav {
        position: fixed;
        inset: var(--header-h) 0 auto 0;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        margin: 0;
        padding: 12px 16px 20px;
        background: var(--bg-elev);
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-lg);
        transform: translateY(-8px);
        opacity: 0;
        visibility: hidden;
        transition: opacity .2s ease, transform .2s ease, visibility .2s;
    }
    .site-nav.is-open { opacity: 1; visibility: visible; transform: none; }
    .site-nav a:not(.btn) { padding: 12px 14px; font-size: 16px; }
    .site-nav__cta { display: inline-flex; margin-top: 8px; }
}

.nav-icon--close { display: none; }
.site-header__toggle[aria-expanded="true"] .nav-icon--open { display: none; }
.site-header__toggle[aria-expanded="true"] .nav-icon--close { display: block; }

@media (max-width: 420px) {
    .brand__word { font-size: 18px; }
    .lang-menu__code { display: none; }
}

/* ---------- Shared bits ---------- */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--brand);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}
html[lang="ar"] .eyebrow { letter-spacing: 0; font-size: 14px; }
.eyebrow .icon { width: 16px; height: 16px; }
.eyebrow--pill {
    padding: 6px 14px 6px 10px;
    border: 1px solid color-mix(in srgb, var(--brand) 22%, transparent);
    border-radius: 999px;
    background: var(--brand-soft);
    letter-spacing: .02em;
    text-transform: none;
    font-size: 14px;
}
[dir="rtl"] .eyebrow--pill { padding: 6px 10px 6px 14px; }
.eyebrow--light { color: #8fb0ff; }

.card {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--bg-elev);
    box-shadow: var(--shadow);
}

.checklist { display: grid; gap: 10px; }
.checklist li { display: flex; align-items: flex-start; gap: 10px; color: var(--text-muted); font-size: 15px; }
.checklist .icon {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    padding: 3px;
    border-radius: 999px;
    background: var(--success-soft);
    color: var(--success);
}
.checklist--lg li { font-size: 16px; color: var(--text); }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    padding: 64px 0 48px;
    overflow: hidden;
}
.hero__glow {
    position: absolute;
    inset: -200px -10% auto;
    height: 720px;
    background:
        radial-gradient(40% 50% at 75% 35%, color-mix(in srgb, var(--brand-bright) 22%, transparent), transparent 70%),
        radial-gradient(30% 40% at 90% 70%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%),
        radial-gradient(35% 45% at 15% 20%, color-mix(in srgb, var(--brand) 12%, transparent), transparent 70%);
    pointer-events: none;
}
[dir="rtl"] .hero__glow { transform: scaleX(-1); }

.hero__grid {
    position: relative;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    align-items: center;
    gap: 48px;
}

.hero__title {
    margin-top: 20px;
    font-size: clamp(36px, 5.2vw, 60px);
    font-weight: 800;
    line-height: 1.08;
}
html[lang="ar"] .hero__title { line-height: 1.3; font-weight: 700; }
.hero__subtitle {
    max-width: 580px;
    margin-top: 20px;
    color: var(--text-muted);
    font-size: clamp(16px, 1.6vw, 19px);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 28px; color: var(--text-muted); font-size: 14px; font-weight: 500; }
.hero__trust li { display: inline-flex; align-items: center; gap: 6px; }
.hero__trust .icon { width: 16px; height: 16px; color: var(--success); }

@media (max-width: 960px) {
    .hero { padding-top: 40px; }
    .hero__grid { grid-template-columns: 1fr; gap: 56px; }
    .hero__copy { text-align: center; }
    .hero__subtitle { margin-inline: auto; }
    .hero__actions, .hero__trust { justify-content: center; }
}
@media (max-width: 480px) {
    .hero__actions .btn { width: 100%; }
}

/* Phone mockup */
.hero__visual {
    position: relative;
    display: flex;
    justify-content: center;
    padding: 24px 0;
}
.phone {
    position: relative;
    width: 300px;
    max-width: 78vw;
    aspect-ratio: 300 / 610;
    padding: 12px;
    border-radius: 46px;
    background: linear-gradient(160deg, #1b2438, #0b1020);
    box-shadow: 0 0 0 1.5px #2b3550, var(--shadow-lg), 0 40px 80px rgba(29, 78, 216, .18);
}
.phone__notch {
    position: absolute;
    top: 22px;
    left: 50%;
    z-index: 3;
    width: 90px;
    height: 24px;
    border-radius: 999px;
    background: #0b1020;
    transform: translateX(-50%);
}
.phone__screen {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: 35px;
    background: var(--bg-elev);
    overflow: hidden;
}
.phone__map { position: relative; flex: 1 1 auto; min-height: 0; background: var(--map-bg); }
.phone__map svg { width: 100%; height: 100%; }
.map-blocks rect { fill: var(--map-block); }
.map-route { fill: none; stroke: var(--brand); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 2 10; }
.map-pickup { fill: var(--bg-elev); stroke: var(--brand); stroke-width: 4; }
.map-drop path { fill: var(--accent); }
.map-drop circle { fill: #fff; }
.map-driver circle { fill: var(--brand); stroke: #fff; stroke-width: 3; }
.map-driver .map-driver__pulse { fill: color-mix(in srgb, var(--brand) 25%, transparent); stroke: none; animation: pulse 2s ease-out infinite; transform-box: fill-box; transform-origin: center; }

.phone__eta {
    position: absolute;
    top: 52px;
    inset-inline-start: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--bg-elev);
    box-shadow: var(--shadow);
    font-size: 12px;
    font-weight: 600;
}
.phone__eta .icon { width: 14px; height: 14px; color: var(--brand); }

.phone__sheet {
    position: relative;
    margin-top: -22px;
    padding: 16px 16px 18px;
    border-radius: 24px 24px 0 0;
    background: var(--bg-elev);
    box-shadow: 0 -10px 30px rgba(15, 23, 42, .08);
}
.phone__sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.phone__sheet-head small { display: block; color: var(--text-faint); font-size: 11px; font-weight: 600; }
.phone__sheet-head strong { display: block; font-size: 15px; line-height: 1.3; }
.status-dot { width: 10px; height: 10px; border-radius: 999px; background: var(--accent); box-shadow: 0 0 0 5px var(--accent-soft); }

.mini-steps { display: flex; gap: 4px; margin-top: 14px; }
.mini-steps li { flex: 1; color: var(--text-faint); font-size: 9.5px; font-weight: 600; text-align: center; line-height: 1.25; }
.mini-steps li span { display: block; height: 4px; margin-bottom: 6px; border-radius: 99px; background: var(--border); }
.mini-steps li.is-done span { background: var(--brand); }
.mini-steps li.is-active { color: var(--accent); }
.mini-steps li.is-active span { background: linear-gradient(90deg, var(--brand), var(--accent)); }
[dir="rtl"] .mini-steps li.is-active span { background: linear-gradient(-90deg, var(--brand), var(--accent)); }
.mini-steps li.is-done { color: var(--text-muted); }

.collect {
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 14px;
    background: var(--accent-soft);
    border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
}
.collect small { display: block; color: var(--text-muted); font-size: 11px; font-weight: 600; }
.collect strong { display: block; color: var(--accent-strong); font-family: var(--font-display); font-size: 26px; line-height: 1.2; }
[dir="rtl"] .collect strong { text-align: end; }
.collect span { display: block; color: var(--text-muted); font-size: 11px; }

.phone__driver { display: flex; align-items: center; gap: 8px; margin-top: 14px; }
.avatar {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: var(--brand-soft);
    color: var(--brand);
    font-weight: 700;
    font-size: 14px;
}
.phone__driver-name { flex: 1; min-width: 0; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-btn { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: var(--bg-soft); color: var(--text); }
.mini-btn .icon { width: 16px; height: 16px; }
.mini-btn--primary { background: var(--brand); color: #fff; }

.float-card {
    position: absolute;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 250px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--bg-elev);
    box-shadow: var(--shadow-lg);
    animation: float 6s ease-in-out infinite;
}
.float-card small { display: block; color: var(--text-faint); font-size: 11px; font-weight: 600; }
.float-card strong { display: block; font-size: 13px; line-height: 1.35; }
.float-card__icon { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 11px; }
.float-card__icon .icon { width: 18px; height: 18px; }
.float-card__icon--brand { background: var(--brand-soft); color: var(--brand); }
.float-card__icon--success { background: var(--success-soft); color: var(--success); }
.float-card--top { top: 70px; inset-inline-start: max(0px, calc(50% - 300px)); }
.float-card--bottom { bottom: 6px; inset-inline-end: max(0px, calc(50% - 300px)); animation-delay: -3s; }

@media (max-width: 960px) {
    .float-card--top { inset-inline-start: 0; }
    .float-card--bottom { inset-inline-end: 0; }
}
@media (max-width: 560px) {
    .float-card { max-width: 200px; padding: 10px 12px; }
    .float-card--top { top: 10px; }
    .float-card--bottom { bottom: 10px; }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
@keyframes pulse {
    0% { transform: scale(.6); opacity: 1; }
    100% { transform: scale(1.6); opacity: 0; }
}

/* Stats */
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    margin: 56px 0 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--border);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.stats__item { display: flex; flex-direction: column-reverse; gap: 2px; padding: 22px 24px; background: var(--bg-elev); }
.stats dt { color: var(--text-muted); font-size: 14px; }
.stats dd { margin: 0; font-family: var(--font-display); font-size: 30px; font-weight: 800; color: var(--brand); line-height: 1.2; }
@media (max-width: 760px) {
    .stats { grid-template-columns: repeat(2, 1fr); }
    .stats__item { padding: 18px; }
    .stats dd { font-size: 24px; }
}

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section--soft { background: var(--bg-soft); border-block: 1px solid var(--border); }
@media (max-width: 760px) { .section { padding: 64px 0; } }

.section__head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section__head h2 { margin-top: 12px; font-size: clamp(28px, 3.6vw, 42px); font-weight: 800; }
html[lang="ar"] .section__head h2 { font-weight: 700; }
.section__head p { margin-top: 14px; color: var(--text-muted); font-size: 17px; }

/* Roles */
.roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.role { padding: 28px; }
.role__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 15px; }
.role__icon .icon { width: 26px; height: 26px; }
.role--admin .role__icon { background: var(--brand-soft); color: var(--brand); }
.role--driver .role__icon { background: var(--accent-soft); color: var(--accent); }
.role--customer .role__icon { background: var(--success-soft); color: var(--success); }
.role h3 { margin-top: 20px; font-size: 21px; }
.role__text { margin: 6px 0 20px; color: var(--text-muted); }
@media (max-width: 960px) { .roles { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; } }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature {
    padding: 26px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-elev);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--brand) 30%, var(--border)); }
.feature__icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 13px;
    background: linear-gradient(135deg, var(--brand-soft), color-mix(in srgb, var(--accent-soft) 60%, var(--brand-soft)));
    color: var(--brand);
}
.feature__icon .icon { width: 22px; height: 22px; }
.feature h3 { margin-top: 18px; font-size: 18px; }
.feature p { margin-top: 8px; color: var(--text-muted); font-size: 15px; }
@media (max-width: 960px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; padding: 26px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-elev); }
.step__num {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--brand), var(--brand-bright));
    color: #fff;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 18px;
    box-shadow: 0 8px 20px color-mix(in srgb, var(--brand) 30%, transparent);
}
.step h3 { margin-top: 18px; font-size: 18px; }
.step p { margin-top: 8px; color: var(--text-muted); font-size: 15px; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .steps { grid-template-columns: 1fr; } }

/* Lifecycle (always dark) */
.section--dark {
    position: relative;
    background: radial-gradient(60% 80% at 80% 0%, rgba(30, 136, 229, .25), transparent 60%), linear-gradient(180deg, #0a1230, #0b1530);
    color: #e9eef9;
}
.section--dark .section__head p { color: #a9b4cf; }
.lifecycle {
    padding: 32px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, .03);
}
.lifecycle__label { margin-bottom: 14px; color: #8fb0ff; font-size: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
html[lang="ar"] .lifecycle__label { letter-spacing: 0; }
.lifecycle__label:not(:first-child) { margin-top: 28px; }
.flow { display: flex; flex-wrap: wrap; gap: 10px; }
.flow__item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px 9px 9px;
    border: 1px solid rgba(143, 176, 255, .25);
    border-radius: 999px;
    background: rgba(91, 140, 255, .1);
    font-size: 14px;
    font-weight: 600;
}
[dir="rtl"] .flow__item { padding: 9px 9px 9px 14px; }
.flow__num { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 999px; background: #2f62ec; color: #fff; font-size: 12px; }
.flow__item--done { border-color: rgba(60, 207, 127, .4); background: rgba(60, 207, 127, .12); }
.flow__item--done .flow__num { background: #12a150; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 1px solid rgba(255, 145, 36, .3);
    border-radius: 999px;
    background: rgba(255, 145, 36, .1);
    color: #ffc58a;
    font-size: 14px;
    font-weight: 600;
}
.chip .icon { width: 15px; height: 15px; }
.lifecycle__note { margin-top: 24px; color: #a9b4cf; font-size: 15px; }
@media (max-width: 600px) { .lifecycle { padding: 20px; } }

/* Money split */
.split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 56px; }
.split__title { margin-top: 12px; font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; }
.split__text { margin: 14px 0 26px; color: var(--text-muted); font-size: 17px; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 36px; } }

.receipt { position: relative; padding: 28px; overflow: hidden; }
.receipt::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    height: 5px;
    background: linear-gradient(90deg, var(--brand), var(--brand-bright), var(--accent));
}
.receipt__title { display: flex; align-items: center; gap: 10px; font-size: 18px; }
.receipt__title .icon { color: var(--accent); }
.receipt__lines { margin: 20px 0 0; }
.receipt__lines div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px dashed var(--border-strong); }
.receipt__lines dt { color: var(--text-muted); }
.receipt__lines dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.receipt__total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 18px;
    padding: 16px 18px;
    border-radius: 14px;
    background: var(--accent-soft);
}
.receipt__total span { font-weight: 600; }
.receipt__total strong { color: var(--accent-strong); font-family: var(--font-display); font-size: 30px; font-variant-numeric: tabular-nums; }
.receipt__note { margin-top: 16px; color: var(--text-muted); font-size: 14px; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 30px; }
.plan .checklist { margin: 22px 0 28px; flex: 1; }
.plan--featured { border-color: color-mix(in srgb, var(--brand) 55%, transparent); box-shadow: 0 0 0 1px color-mix(in srgb, var(--brand) 40%, transparent), var(--shadow-lg); }
.plan__badge {
    position: absolute;
    top: 22px;
    inset-inline-end: 22px;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-strong);
    font-size: 12px;
    font-weight: 700;
}
.plan__name { font-size: 18px; }
.plan__price { margin-top: 14px; font-family: var(--font-display); font-size: 32px; font-weight: 800; line-height: 1.15; }
.plan__period { color: var(--text-faint); font-size: 14px; }
.plan__text { margin-top: 12px; color: var(--text-muted); }
.plans__note { margin-top: 24px; color: var(--text-muted); font-size: 14px; text-align: center; }
@media (max-width: 960px) { .plans { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; } }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq__item { border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-elev); transition: border-color .2s ease, box-shadow .2s ease; }
.faq__item[open] { border-color: color-mix(in srgb, var(--brand) 30%, var(--border)); box-shadow: var(--shadow); }
.faq__item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 22px;
    font-weight: 600;
    font-size: 17px;
    cursor: pointer;
    list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__icon { color: var(--brand); transition: transform .2s ease; }
.faq__item[open] .faq__icon { transform: rotate(45deg); }
.faq__item p { padding: 0 22px 22px; color: var(--text-muted); }

/* CTA */
.section--cta { padding-top: 24px; }
.cta {
    position: relative;
    padding: 64px 32px;
    border-radius: 32px;
    background: linear-gradient(135deg, #10227a 0%, #1d4ed8 55%, #1e88e5 100%);
    color: #fff;
    text-align: center;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.cta__glow {
    position: absolute;
    inset: auto -20% -60% auto;
    width: 70%;
    height: 120%;
    background: radial-gradient(closest-side, rgba(255, 122, 0, .45), transparent);
    pointer-events: none;
}
[dir="rtl"] .cta__glow { inset: auto auto -60% -20%; }
.cta__logo { position: relative; width: 88px; height: 88px; margin: 0 auto; padding: 8px; border-radius: 24px; background: #fff; box-shadow: 0 12px 30px rgba(0, 0, 0, .2); }
.cta h2 { position: relative; margin-top: 24px; font-size: clamp(28px, 4vw, 44px); font-weight: 800; }
.cta > p { position: relative; max-width: 560px; margin: 14px auto 0; color: rgba(255, 255, 255, .85); font-size: 18px; }
.cta__contact { position: relative; margin-top: 28px !important; color: rgba(255, 255, 255, .8); font-size: 15px !important; }
.cta__contact a { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 600px) { .cta { padding: 48px 20px; border-radius: 24px; } }

.store-badges { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.store-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 190px;
    padding: 10px 18px;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 14px;
    background: #0b1020;
    color: #fff;
    text-align: start;
    transition: transform .15s ease, background-color .2s ease;
}
a.store-badge:hover { transform: translateY(-2px); background: #000; }
.store-badge__icon { width: 26px; height: 26px; }
.store-badge__text small { display: block; font-size: 11px; opacity: .75; line-height: 1.2; }
.store-badge__text strong { display: block; font-size: 18px; line-height: 1.25; }
.store-badge--soon { background: rgba(11, 16, 32, .55); cursor: default; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 96px; padding: 56px 0 28px; border-top: 1px solid var(--border); background: var(--bg-elev); }
.site-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 32px; }
.site-footer__brand p { max-width: 320px; margin-top: 14px; color: var(--text-muted); font-size: 15px; }
.site-footer__title { margin-bottom: 14px; font-family: var(--font-sans); font-size: 14px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--text-faint); }
html[lang="ar"] .site-footer__title { letter-spacing: 0; }
.site-footer__links { display: grid; gap: 10px; }
.site-footer__links a { color: var(--text-muted); font-size: 15px; transition: color .2s ease; }
.site-footer__links a:hover { color: var(--brand); }
.site-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 24px;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    color: var(--text-faint);
    font-size: 14px;
}
.site-footer__bottom a { color: var(--text-muted); font-weight: 600; }
@media (max-width: 860px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } .site-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .site-footer__grid { grid-template-columns: 1fr; } }
.page-home .site-footer { margin-top: 72px; }

/* ---------- Legal pages ---------- */
.legal-hero {
    padding: 56px 0 40px;
    background: radial-gradient(60% 120% at 50% 0%, var(--brand-soft), transparent 70%);
    border-bottom: 1px solid var(--border);
}
.legal-hero__back { display: inline-flex; align-items: center; gap: 6px; color: var(--brand); font-weight: 600; font-size: 15px; }
.legal-hero__back .icon { width: 18px; height: 18px; }
.legal-hero h1 { margin-top: 18px; font-size: clamp(32px, 4.4vw, 48px); font-weight: 800; }
.legal-hero__meta { margin-top: 10px; color: var(--text-muted); }

.legal { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 56px; padding-top: 48px; }
.legal__toc { position: relative; }
.toc { position: sticky; top: calc(var(--header-h) + 24px); }
.toc summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    color: var(--text-faint);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    list-style: none;
    pointer-events: none;
}
.toc summary::-webkit-details-marker { display: none; }
.toc__chevron { display: none; }
.toc ol { display: grid; gap: 2px; max-height: calc(100vh - var(--header-h) - 100px); overflow-y: auto; }
.toc a {
    display: block;
    padding: 6px 12px;
    border-inline-start: 2px solid var(--border);
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.45;
    transition: color .2s ease, border-color .2s ease;
}
.toc a:hover, .toc a.is-active { color: var(--brand); border-inline-start-color: var(--brand); }

.prose { max-width: 760px; }
.prose .lead { font-size: 18px; color: var(--text); margin-bottom: 16px; }
.prose section { padding-top: 24px; }
.prose h2 { margin: 16px 0 12px; font-size: 22px; font-weight: 700; }
.prose__num { color: var(--brand); }
.prose p { margin: 0 0 14px; color: var(--text-muted); }
.prose ul { display: grid; gap: 10px; margin: 0 0 16px; padding-inline-start: 4px; }
.prose li { position: relative; padding-inline-start: 22px; color: var(--text-muted); }
.prose li::before {
    content: '';
    position: absolute;
    top: .7em;
    inset-inline-start: 4px;
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: var(--accent);
}
.legal__contact { display: flex; align-items: center; gap: 16px; margin-top: 40px; padding: 22px; }
.legal__contact-icon { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 13px; background: var(--brand-soft); color: var(--brand); }
.legal__contact strong { display: block; }
.legal__contact a { color: var(--brand); font-weight: 600; }

@media (max-width: 900px) {
    .legal { grid-template-columns: 1fr; gap: 24px; padding-top: 28px; }
    .toc { position: static; padding: 14px 18px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-elev); }
    .toc summary { margin: 0; pointer-events: auto; cursor: pointer; }
    .toc[open] summary { margin-bottom: 12px; }
    .toc__chevron { display: block; transition: transform .2s ease; }
    .toc[open] .toc__chevron { transform: rotate(180deg); }
    .toc ol { max-height: none; }
}

/* ---------- Reveal on scroll ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .js [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- Account deletion page (m6) ---------- */
.deletion { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 400px); gap: 48px; align-items: start; padding-top: 40px; }
.deletion .prose section:first-child { padding-top: 0; }
.deletion .prose a { color: var(--brand); font-weight: 600; }
.deletion__card {
    position: sticky;
    top: calc(var(--header-h) + 24px);
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--bg-elev);
    box-shadow: var(--shadow-sm);
}
.deletion__card h2 { font-size: 22px; font-weight: 700; }
.deletion__muted { margin: 8px 0 20px; color: var(--text-muted); }
.deletion__form { display: grid; gap: 16px; }
.deletion__field { display: grid; gap: 6px; font-weight: 600; font-size: 14px; }
.deletion__field input, .deletion__field textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border-strong, var(--border));
    border-radius: var(--radius-sm);
    background: var(--bg);
    color: var(--text);
    font: inherit;
    font-weight: 400;
}
.deletion__field input:focus, .deletion__field textarea:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: transparent; }
.deletion__error { margin-top: -8px; color: var(--danger); font-size: 14px; font-weight: 600; }
.deletion__warning { color: var(--danger); font-size: 14px; }
.deletion__hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.deletion__link { margin-top: 14px; padding: 0; border: 0; background: none; color: var(--brand); font: inherit; font-weight: 600; cursor: pointer; }
.btn--danger { background: var(--danger); color: #fff; }
.btn--danger:hover { filter: brightness(1.05); }
@media (max-width: 900px) {
    .deletion { grid-template-columns: 1fr; gap: 28px; padding-top: 28px; }
    .deletion__card { position: static; padding: 20px; }
}
