/*
 * Yool Car public site: the one stylesheet. Brand colors and fonts as the admin panel and the app (navy + yellow,
 * IBM Plex Sans Arabic, Sora for numbers). Mobile first; logical properties only, so the same rules serve Arabic (RTL)
 * and English (LTR). Light only, like the app's store pages.
 */

:root {
    --navy: #14284B;
    --yellow: #FFD400;
    --yellow-soft: #FFF4C2;
    --bg: #F5F6F8;
    --card: #FFFFFF;
    --line: #E6E6E8;
    --grey: #5F6168;
    --font-text: 'IBM Plex Sans Arabic', system-ui, sans-serif;
    --font-num: 'Sora', 'IBM Plex Sans Arabic', sans-serif;
    color-scheme: light;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    color: var(--navy);
    font-family: var(--font-text);
    font-size: 17px;
    line-height: 1.7;
}

main { flex: 1; }

a { color: inherit; }

:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; border-radius: 4px; }

.wrap { width: 100%; max-width: 720px; margin-inline: auto; padding-inline: 16px; }

.num { font-family: var(--font-num); font-weight: 700; }

.muted { color: var(--grey); margin-block: 0 16px; }

.lead { font-size: 1.1em; }

/* Header */
.site-header { background: var(--navy); color: #FFFFFF; }
.header-row { display: flex; align-items: center; justify-content: space-between; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.25em; text-decoration: none; }
.lang-switch { padding: 6px 14px; border: 1px solid rgba(255, 255, 255, 0.4); border-radius: 999px; text-decoration: none; font-size: 0.9em; }
.lang-switch:hover { background: rgba(255, 255, 255, 0.1); }

/* Home */
.hero { background: var(--navy); color: #FFFFFF; padding-block: 20px 28px; }
.hero h1 { font-size: 1.55em; line-height: 1.35; margin: 0 0 8px; }
.hero .lead { font-size: 1em; line-height: 1.6; margin: 0 0 18px; color: #DCE2EC; }
.cards { display: grid; gap: 16px; padding-block: 24px 40px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.card h2 { margin: 0 0 6px; font-size: 1.15em; }
.card p { margin: 0; color: var(--grey); }
@media (min-width: 640px) {
    .cards { grid-template-columns: 1fr 1fr; }
    .card-wide { grid-column: 1 / -1; }
    .hero { padding-block: 32px 48px; }
    .hero h1 { font-size: 2.4em; margin-block-end: 12px; }
    .hero .lead { font-size: 1.1em; line-height: 1.7; margin-block-end: 24px; }
}

/* Store badges (black, like the stores' own) */
.stores { display: flex; flex-wrap: wrap; gap: 8px; }
.store {
    display: inline-flex; align-items: center; gap: 8px; width: 172px; min-height: 46px; padding: 4px 12px;
    background: #000000; color: #FFFFFF; border: 1px solid #A6A6A6; border-radius: 10px; text-decoration: none;
}
a.store:hover { background: #1F1F1F; }
.store-icon { width: 22px; height: 22px; flex: none; fill: currentColor; }
.store-text { display: flex; flex-direction: column; line-height: 1.2; }
.store-cta { font-size: 0.7em; }
.store-name { font-family: var(--font-num); font-size: 1em; font-weight: 600; direction: ltr; text-align: start; white-space: nowrap; }
.store.is-soon { opacity: 0.55; cursor: default; }

/* Text pages (legal, delete account, listing) */
.page { padding-block: 28px 40px; }
.page h1 { font-size: 1.7em; line-height: 1.35; margin: 0 0 8px; }
.page h2 { font-size: 1.2em; margin: 28px 0 8px; }
.page p, .page li { overflow-wrap: anywhere; }
.page ul, .page ol { padding-inline-start: 1.4em; }
.page li + li { margin-block-start: 6px; }
.legal { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 4px 20px 16px; }
.legal[dir="ltr"] { text-align: left; }
.legal[dir="rtl"] { text-align: right; }

/* Shared listing */
.cover { margin: 0 0 20px; border-radius: 16px; overflow: hidden; background: var(--line); aspect-ratio: 4 / 3; }
.cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.amounts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.amount { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column; }
.amount-value { font-size: 1.35em; white-space: nowrap; }
.amount-label { color: var(--grey); font-size: 0.9em; }
.remaining { margin: 12px 0 0; color: var(--grey); }
.get-app { margin-block-start: 28px; padding: 20px; background: var(--yellow-soft); border-radius: 16px; }
.get-app p { margin: 0 0 12px; font-weight: 600; }
.sar { display: inline-block; height: 0.8em; width: auto; vertical-align: -0.05em; fill: currentColor; }

/* Footer */
.site-footer { background: #FFFFFF; border-block-start: 1px solid var(--line); padding-block: 24px; font-size: 0.92em; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-links a { font-weight: 600; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.contact { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 6px 20px; color: var(--grey); }
.contact a { text-decoration: none; }
.contact a:hover { text-decoration: underline; }
.rights { margin: 16px 0 0; color: var(--grey); }

/* /c/{code}: the code is the way back to the listing after installing, so it's big and one tap selects it. */
.code-box { text-align: center; margin: 24px 0; padding: 20px; border-radius: 16px; background: var(--navy); color: var(--card); }
.code-value { font-family: var(--font-num); font-size: 56px; font-weight: 800; letter-spacing: 2px; color: var(--yellow);
    margin: 8px 0; user-select: all; -webkit-user-select: all; cursor: text; text-align: center; }
.code-box .code-hint { color: rgba(255, 255, 255, .7); }
.small { font-size: 13px; }
.get-app .code-store-hint { font-weight: 400; color: var(--grey); }
