/* The dashboard's public pages — /telecharger.html, /telecharger-ar.html, /conditions.html — in lepos.ma's design
   (lepos-landing: src/styles/global.css tokens and components, docs/DESIGN.md), as plain CSS:
   these are static files of the owner dashboard, served under its CSP (style/font 'self', no script).
   Fonts and wordmark are byte-for-byte copies of lepos.ma's (public/fonts, public/brand). */

@font-face {
    font-family: 'Geist';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/fonts/geist/geist-latin-400-normal.woff2') format('woff2');
    unicode-range:
        U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
        U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Geist';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('/fonts/geist/geist-latin-500-normal.woff2') format('woff2');
    unicode-range:
        U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
        U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Geist';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('/fonts/geist/geist-latin-600-normal.woff2') format('woff2');
    unicode-range:
        U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
        U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Geist';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/fonts/geist/geist-latin-700-normal.woff2') format('woff2');
    unicode-range:
        U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
        U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Geist Fallback';
    font-style: normal;
    font-weight: 400 700;
    src: local('Arial');
    ascent-override: 85.6%;
    descent-override: 20.47%;
    line-gap-override: 9.3%;
    size-adjust: 107.48%;
}

@font-face {
    font-family: 'Geist Mono';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('/fonts/geist-mono/geist-mono-latin-500-normal.woff2') format('woff2');
    unicode-range:
        U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
        U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Geist Mono Fallback';
    font-style: normal;
    font-weight: 400 500;
    src: local('Courier New');
    ascent-override: 100.52%;
    descent-override: 29.5%;
    line-gap-override: 0%;
    size-adjust: 99.98%;
}

@font-face {
    font-family: 'Noto Sans Arabic';
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url('/fonts/noto-sans-arabic/noto-sans-arabic-arabic-wght-normal.woff2') format('woff2-variations');
    unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}

:root {
  --ink: #0b1220; --ink-2: #4b5565; --mute: #667085; --line: #e3e8ef; --bg: #f6f8fb; --card: #ffffff;
  --navy: #0a1a33; --navy-2: #101f3b; --navy-line: #1b2b47;
  --blue: #0a60d8; --blue-hover: #0b4fb0; --blue-soft: #e8f0fd; --blue-on-navy: #7fb0f7;
  --green: #0f9d58; --amber-soft: #fff4e5; --amber-text: #a15406; --amber-line: #f3d7a8;
  --on-navy: #eef2f8; --on-navy-2: #a9b6cc; --on-navy-mute: #98a5bd;
  --ease-out: cubic-bezier(.23, 1, .32, 1); --dur-press: 120ms; --dur-pop: 180ms;
  --shadow-card: 0 1px 2px rgb(11 18 32 / .04);
  --shadow-float: 0 12px 32px -12px rgb(11 18 32 / .25);
  --shadow-btn: 0 6px 16px -8px rgb(10 96 216 / .7);
  --shadow-hero: 0 40px 90px -40px rgb(0 0 0 / .6);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0; background: var(--card); color: var(--ink); overflow-x: clip;
  font: 400 1rem/1.6 'Geist', 'Noto Sans Arabic', 'Geist Fallback', system-ui, sans-serif;
  font-optical-sizing: auto; -webkit-font-smoothing: antialiased;
}
[dir='rtl'] body, body[dir='rtl'] { font-family: 'Geist', 'Noto Sans Arabic', 'Geist Fallback', system-ui, sans-serif; }
h1, h2, h3 { margin: 0; letter-spacing: -0.03em; text-wrap: balance; font-weight: 600; }
p { margin: 0; }
a { color: inherit; }
img { display: block; }
::selection { background: var(--blue-soft); color: var(--ink); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
.mono { font-family: 'Geist Mono', 'Geist Mono Fallback', ui-monospace, SFMono-Regular, monospace; font-variant-numeric: tabular-nums; }
.skip { position: absolute; inset-inline-start: 1rem; top: -3rem; z-index: 50; padding: .5rem .75rem; border-radius: 8px; background: var(--blue); color: #fff; text-decoration: none; font-weight: 600; }
.skip:focus { top: .75rem; }

.container { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: 1.25rem; }
@media (min-width: 640px) { .container { padding-inline: 2rem; } }

/* Buttons — global.css .btn-base / .btn-primary / .btn-ghost / .btn-on-navy */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 44px;
  padding: .75rem 1.25rem; border-radius: 8px; border: 1px solid transparent;
  font: 600 .9375rem/1.2 inherit; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform var(--dur-press) var(--ease-out), background-color var(--dur-press) var(--ease-out), border-color var(--dur-press) var(--ease-out), box-shadow var(--dur-press) var(--ease-out);
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: var(--shadow-btn); }
.btn-primary:hover { background: var(--blue-hover); }
.btn-ghost { background: var(--card); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: #cfd7e2; }
.btn-sm { min-height: 40px; padding: .5rem 1rem; font-size: .875rem; }
.btn svg { width: 1.125rem; height: 1.125rem; flex-shrink: 0; }

/* Header — translucent material (DESIGN.md §3) */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgb(255 255 255 / .72);
  -webkit-backdrop-filter: blur(24px) saturate(160%); backdrop-filter: blur(24px) saturate(160%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .6), 0 1px 0 rgb(11 18 32 / .06);
}
@media (prefers-reduced-transparency: reduce) { .site-header { background: var(--card); } }
.site-header .container { display: flex; align-items: center; gap: 1rem; height: 4rem; }
.site-header .actions { margin-inline-start: auto; display: flex; align-items: center; gap: .5rem; }
.wordmark { display: flex; flex-shrink: 0; }
.wordmark img { height: 26px; width: auto; user-select: none; }
.nav-link { padding: .375rem .5rem; border-radius: 8px; font-size: .875rem; font-weight: 500; color: var(--ink-2); text-decoration: none; white-space: nowrap; }
.nav-link:hover { color: var(--ink); }
.hide-sm { display: none; }
@media (min-width: 640px) { .hide-sm { display: inline-flex; } }

/* Navy page hero — global.css .page-hero (help, legal, SEO pages) */
.page-hero { position: relative; overflow: hidden; background: var(--navy); color: #fff; }
.page-hero::before {
  content: ''; position: absolute; inset: -60% -20% auto 40%; height: 220%; pointer-events: none;
  background: radial-gradient(closest-side, rgb(10 96 216 / .30), transparent 70%);
}
[dir='rtl'] .page-hero::before { inset: -60% 40% auto -20%; }
.page-hero > * { position: relative; }
.page-hero .container { padding-top: 3.5rem; padding-bottom: 4.5rem; }
@media (min-width: 640px) { .page-hero .container { padding-top: 4.5rem; padding-bottom: 5.5rem; } }
.eyebrow-on-navy {
  display: inline-flex; align-items: center; gap: .5rem; padding: .375rem .75rem; border-radius: 999px;
  border: 1px solid rgb(10 96 216 / .45); background: rgb(10 96 216 / .18); color: var(--blue-on-navy);
  font-size: .78125rem; font-weight: 500;
}
.eyebrow-dot { width: .375rem; height: .375rem; border-radius: 999px; background: var(--green); flex-shrink: 0; }
.hero-title { margin-top: 1.25rem; max-width: 18ch; font-size: clamp(2.25rem, 5vw, 3.375rem); line-height: 1.04; letter-spacing: -0.04em; color: #fff; }
.hero-title .accent { color: var(--blue-on-navy); }
.hero-sub { margin-top: 1.25rem; max-width: 56ch; font-size: 1.0625rem; line-height: 1.65; color: var(--on-navy-2); }

.hero-grid { display: grid; gap: 2.25rem; align-items: center; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 1fr minmax(0, 30rem); gap: 4rem; } }

/* Download cards — hero cards on navy */
.downloads { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 768px) and (max-width: 1023px) { .downloads { grid-template-columns: 1fr 1fr; } }
.dl {
  display: flex; flex-direction: column; gap: 1rem; padding: 1.5rem; border-radius: 14px;
  background: var(--card); color: var(--ink); text-decoration: none; box-shadow: var(--shadow-hero);
  border: 1px solid rgb(255 255 255 / .08);
  transition: transform var(--dur-pop) var(--ease-out), box-shadow var(--dur-pop) var(--ease-out);
}
.dl:hover { transform: translateY(-2px); }
.dl:active { transform: scale(.985); }
.dl-head { display: flex; align-items: flex-start; gap: .875rem; }
.dl-icon { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; flex-shrink: 0; border-radius: 10px; background: var(--blue-soft); color: var(--blue); }
.dl-icon svg { width: 1.5rem; height: 1.5rem; }
.dl-title { display: block; font-size: 1.125rem; line-height: 1.3; letter-spacing: -0.02em; font-weight: 600; }
.dl-sub { display: block; margin-top: .25rem; font-size: .875rem; line-height: 1.5; color: var(--ink-2); }
.dl-foot { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--line); }
.dl-meta { font-size: .78125rem; color: var(--mute); }
.dl .btn { pointer-events: none; }
.which { margin-top: 1.5rem; max-width: 62ch; font-size: .875rem; line-height: 1.6; color: var(--on-navy-2); }
.which strong, .ui { font-weight: 600; }
.which strong { color: var(--on-navy); }
.which a { display: inline-block; min-height: 24px; color: var(--on-navy); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.which a:hover { color: var(--blue-on-navy); }

/* Sections */
.section { padding-block: 4rem; }
@media (min-width: 640px) { .section { padding-block: 5rem; } }
.section-alt { background: var(--bg); border-top: 1px solid var(--line); }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem; padding: .375rem .75rem; border-radius: 999px;
  border: 1px solid rgb(10 96 216 / .25); background: var(--blue-soft); color: var(--blue);
  font-size: .78125rem; font-weight: 500;
}
.section-title { margin-top: 1rem; font-size: 1.75rem; line-height: 1.15; color: var(--ink); }
@media (min-width: 640px) { .section-title { font-size: 2rem; } }
.section-lead { margin-top: .75rem; max-width: 60ch; font-size: 1.0625rem; line-height: 1.65; color: var(--ink-2); }

.steps { margin: 2.5rem 0 0; padding: 0; list-style: none; display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.card { border: 1px solid var(--line); border-radius: 10px; background: var(--card); padding: 1.25rem; box-shadow: var(--shadow-card); }
@media (min-width: 640px) { .card { padding: 1.5rem; } }
.step-n { display: inline-grid; place-items: center; min-width: 2rem; height: 2rem; padding-inline: .5rem; border-radius: 8px; background: var(--blue-soft); color: var(--blue); font-size: .875rem; font-weight: 500; }
.step h3 { margin-top: 1rem; font-size: 1rem; line-height: 1.3; letter-spacing: -0.01em; }
.step p { margin-top: .5rem; font-size: .9375rem; line-height: 1.6; color: var(--ink-2); }

.note { margin-top: 1.5rem; display: flex; gap: .875rem; align-items: flex-start; padding: 1rem 1.25rem; border-radius: 10px; background: var(--amber-soft); border: 1px solid var(--amber-line); color: var(--amber-text); font-size: .9375rem; line-height: 1.6; }
.note svg { width: 1.25rem; height: 1.25rem; flex-shrink: 0; margin-top: .15rem; }

.pair { margin-top: 2.5rem; display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .pair { grid-template-columns: 1fr 1fr; } }
.pair h3 { font-size: 1.125rem; line-height: 1.3; letter-spacing: -0.02em; }
.pair p { margin-top: .5rem; font-size: .9375rem; line-height: 1.6; color: var(--ink-2); }
.pair .btn { margin-top: 1.25rem; }
.card-icon { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; margin-bottom: 1rem; border-radius: 10px; background: var(--blue-soft); color: var(--blue); }
.card-icon svg { width: 1.25rem; height: 1.25rem; }

/* Footer — Landing.astro <footer> */
.site-footer { border-top: 1px solid var(--line); background: var(--bg); }
.site-footer .grid { display: grid; gap: 2.5rem; padding-block: 3rem; }
@media (min-width: 640px) { .site-footer .grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer .wordmark img { height: 28px; }
.tagline { margin-top: .75rem; max-width: 36ch; font-size: .9375rem; line-height: 1.65; color: var(--ink-2); }
.micro { font-size: .65625rem; line-height: 1.4; letter-spacing: .08em; text-transform: uppercase; font-weight: 500; color: var(--mute); }
.site-footer ul { margin: .75rem 0 0; padding: 0; list-style: none; display: grid; gap: .5rem; }
.site-footer a { font-size: .9375rem; color: var(--ink-2); text-decoration: none; text-underline-offset: 4px; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .bottom { border-top: 1px solid var(--line); }
.site-footer .bottom .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; padding-block: 1.25rem; font-size: .8125rem; color: var(--mute); }
.site-footer .bottom a { font-size: .8125rem; color: var(--mute); }

/* Legal text (/conditions.html) */
.legal { padding-block: 3rem 4.5rem; }
.legal .container { max-width: 48rem; }
.prose h2 { margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--line); font-size: 1.25rem; line-height: 1.2; color: var(--ink); }
.prose h2:first-of-type { margin-top: 2rem; }
.prose p, .prose li { font-size: 1rem; line-height: 1.7; color: var(--ink-2); }
.prose p { margin-top: .875rem; }
.prose ul { margin: .875rem 0 0; padding-inline-start: 1.25rem; display: grid; gap: .625rem; }
.prose li::marker { color: var(--blue); }
.prose a { color: var(--blue); text-underline-offset: 3px; }
.prose a:hover { color: var(--blue-hover); }
.toc { margin-top: 2rem; padding: 1.25rem 1.5rem; }
.toc ol { margin: .75rem 0 0; padding-inline-start: 1.25rem; columns: 2 14rem; column-gap: 2rem; font-size: .9375rem; line-height: 1.9; }
.toc a { color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.summary-ar { margin-top: 3rem; }
.summary-ar h2 { font-size: 1.25rem; line-height: 1.3; color: var(--ink); border: 0; padding: 0; margin: 0; }
.summary-ar p { margin-top: .75rem; font-size: 1rem; line-height: 1.8; color: var(--ink-2); }
.summary-ar a { color: var(--blue); }
:target { scroll-margin-top: 5rem; }

/* Cookie banner — lepos.ma's .consent (analytics.js shows it until the visitor chooses) */
.consent {
  position: fixed; inset-inline: .75rem; bottom: .75rem; z-index: 50; margin-inline: auto; max-width: 44rem;
  display: flex; flex-direction: column; gap: .75rem; padding: 1rem; border-radius: 14px;
  border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow-float);
  animation: consent-in 220ms var(--ease-out) both;
}
@media (min-width: 640px) { .consent { flex-direction: row; align-items: center; gap: 1.25rem; padding: 1.25rem; } }
.consent[hidden] { display: none; }
.consent p { font-size: .875rem; line-height: 1.6; color: var(--ink-2); }
.consent .choices { display: flex; flex-shrink: 0; gap: .5rem; }
@keyframes consent-in { from { opacity: 0; transform: translateY(8px); } }
.linklike { padding: 0; border: 0; background: none; font: inherit; color: inherit; cursor: pointer; text-underline-offset: 4px; }
.linklike:hover { text-decoration: underline; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
.site-footer .bottom-links { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .25rem 1rem; }
.site-footer .bottom-links a, .site-footer .bottom-links .linklike { display: inline-flex; align-items: center; min-height: 24px; }
.page-hero--compact .container { padding-top: 3rem; padding-bottom: 3.5rem; }
.page-hero--compact .hero-title { max-width: 22ch; font-size: clamp(2rem, 4vw, 2.75rem); }
.prose > p:first-child { font-size: 1.0625rem; color: var(--ink); }
.toc h2.micro { margin: 0; padding: 0; border: 0; font-size: .65625rem; line-height: 1.4; color: var(--mute); }

/* Download thank-you page */
.hero-actions { margin-top: 1.75rem; display: flex; flex-wrap: wrap; gap: .625rem; }
.btn-on-navy { background: transparent; color: #fff; border-color: rgb(169 182 204 / .35); }
.btn-on-navy:hover { border-color: rgb(169 182 204 / .6); }
[hidden] { display: none !important; }
