/* basmilo.com — marketing site, "Douceur" style.
   Fonts are self-hosted (SIL OFL 1.1, licences in fonts/). Nothing is loaded
   from another host: no analytics, no CDN, no third-party fonts. */
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("/fonts/plus-jakarta-sans-latin.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: "Plus Jakarta Sans"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("/fonts/plus-jakarta-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Noto Sans Arabic"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/fonts/noto-sans-arabic.woff2") format("woff2");
  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 {
  --bg: #f4f1fa; --surface: #ffffff; --surface-sunken: #efe7fa;
  --ink: #23173a; --ink-muted: #5e4e78; --line: #e4dcf1;
  --plum: #6b2fa8; --plum-strong: #521f86; --on-plum: #ffffff; --plum-tint: #efe7fa; --plum-blob: #e6dcf5;
  --amber: #f2a93b; --on-amber: #23173a; --amber-blob: #fce7c6;
  --night: #23173a; --on-night: #ffffff; --on-night-muted: #cfc4e6;
  --success: #1d6a9e; --success-tint: #e3eef7;
  --focus: #6b2fa8;
  --shadow-card: 0 16px 40px rgba(60, 30, 100, .08);
  --shadow-float: 0 24px 60px rgba(60, 30, 100, .14);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-ar: "Noto Sans Arabic", "Plus Jakarta Sans", "Geeza Pro", Tahoma, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17102a; --surface: #221a3a; --surface-sunken: #2c2248;
    --ink: #f1ecfa; --ink-muted: #b9aed0; --line: #3a2f58;
    --plum: #b58cf0; --plum-strong: #cdb2f6; --on-plum: #1a1030; --plum-tint: #33265a; --plum-blob: #2a1f4a;
    --amber: #f5b95c; --amber-blob: #3d2e14;
    --night: #2e2350;
    --success: #7db8e8; --success-tint: #17324a;
    --focus: #d7bfff;
    --shadow-card: 0 16px 40px rgba(0, 0, 0, .35);
    --shadow-float: 0 24px 60px rgba(0, 0, 0, .5);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--font); overflow-x: hidden; }
html[lang="ar"] body { font-family: var(--font-ar); font-size: 18px; line-height: 1.75; }
img, svg { max-width: 100%; }
a { color: var(--plum); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; }
.wrap { inline-size: 100%; max-inline-size: 76rem; margin-inline: auto; padding-inline: max(16px, 4vw); }
.skip { position: absolute; inset-inline-start: 1rem; top: -4rem; background: var(--night); color: var(--on-night); padding: .6rem 1rem; border-radius: 999px; z-index: 20; }
.skip:focus { top: 1rem; }

/* Header */
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.4rem; }
.brand { display: inline-flex; align-items: center; gap: .55rem; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 1.55rem; letter-spacing: -.045em; }
html[lang="ar"] .brand { letter-spacing: 0; }
.brand svg { inline-size: 36px; block-size: 36px; }
.mark-plum { stroke: var(--plum); } .mark-amber { stroke: var(--amber); }
.nav { display: flex; flex-wrap: wrap; gap: 4px; padding: 6px; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow-card); }
.nav a { padding: .55rem 1.05rem; border-radius: 999px; color: var(--ink-muted); text-decoration: none; font-size: .92rem; font-weight: 600; }
.nav a:hover { background: var(--plum-tint); color: var(--ink); }
.nav .lang { color: var(--ink); background: var(--plum-tint); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-block-size: 52px; padding: .85rem 1.6rem; border-radius: 999px; font-weight: 700; text-decoration: none; transition: transform .2s ease, background-color .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--plum); color: var(--on-plum); }
.btn-primary:hover { background: var(--plum-strong); color: var(--on-plum); }
.btn-dark { background: var(--night); color: var(--on-night); }
.btn-soft { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-card); }
.btn-dark:hover { color: var(--on-night); }
.btn-soft:hover { color: var(--ink); }

/* Hero */
.hero { position: relative; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 2.5rem; align-items: center; padding-block: 2.5rem 5rem; }
.blob { position: absolute; border-radius: 50%; z-index: -1; }
.blob-1 { inline-size: 38rem; block-size: 38rem; background: var(--plum-blob); inset-inline-end: -10rem; top: 4rem; }
.blob-2 { inline-size: 14rem; block-size: 14rem; background: var(--amber-blob); inset-inline-end: 30rem; top: 30rem; }
.eyebrow { align-self: flex-start; display: inline-flex; align-items: center; gap: .6rem; padding: .45rem 1rem; border-radius: 999px; background: var(--surface); font-size: .85rem; font-weight: 600; color: var(--ink-muted); box-shadow: var(--shadow-card); }
.dot { inline-size: 9px; block-size: 9px; border-radius: 50%; background: var(--amber); animation: pulse 2.4s ease-out 2; }
.hero-copy { display: flex; flex-direction: column; gap: 1.4rem; }
.hero h1 { font-size: clamp(2.6rem, 1.6rem + 4.2vw, 4.6rem); line-height: 1.02; font-weight: 800; letter-spacing: -.045em; }
html[lang="ar"] .hero h1 { letter-spacing: 0; line-height: 1.3; }
.hero h1 em { font-style: normal; color: var(--plum); }
.lead { font-size: clamp(1.05rem, 1rem + .3vw, 1.25rem); color: var(--ink-muted); max-inline-size: 34rem; }
.alt-lang { color: var(--ink-muted); font-size: 1.05rem; }
html[lang="fr"] .alt-lang { font-family: var(--font-ar); }
.cta { display: flex; flex-wrap: wrap; gap: .75rem; }

/* App preview (synthetic data) */
.preview { position: relative; min-block-size: 31rem; }
.p-card { position: absolute; border-radius: 28px; padding: 1.4rem; background: var(--surface); box-shadow: var(--shadow-float); }
.p-agenda { inset-inline-start: 0; top: 0; inline-size: min(100%, 25rem); }
.p-agenda h3 { font-size: 1.05rem; margin-block-end: .9rem; }
.row { display: flex; align-items: center; gap: .75rem; padding: .7rem .85rem; border-radius: 18px; background: var(--surface-sunken); }
.row + .row { margin-block-start: .6rem; }
.time { background: var(--plum); color: var(--on-plum); border-radius: 10px; padding: .25rem .55rem; font-weight: 700; font-size: .82rem; font-variant-numeric: tabular-nums; }
.who { flex: 1; min-inline-size: 0; display: flex; flex-direction: column; line-height: 1.3; }
.who b { font-weight: 600; font-size: .95rem; }
.who small { color: var(--ink-muted); font-size: .8rem; }
.pill { border-radius: 999px; padding: .2rem .65rem; font-size: .75rem; font-weight: 700; white-space: nowrap; }
.pill-ok { background: var(--success-tint); color: var(--success); }
.pill-plan { background: var(--plum-tint); color: var(--plum); }
.p-cash { inset-inline-start: 38%; top: 15rem; inline-size: 18.5rem; background: var(--night); color: var(--on-night); }
.p-cash small { color: var(--on-night-muted); display: flex; align-items: center; gap: .5rem; }
.p-cash strong { display: block; font-size: 2rem; font-weight: 800; letter-spacing: -.02em; margin-block: .3rem .8rem; font-variant-numeric: tabular-nums; }
.p-cash .chips { display: flex; gap: .4rem; flex-wrap: wrap; }
.p-cash .chips span { background: rgba(255, 255, 255, .1); border-radius: 999px; padding: .3rem .7rem; font-size: .78rem; }
.p-pin { inset-inline-start: 2%; top: 26rem; inline-size: 15rem; display: flex; align-items: center; gap: .8rem; padding: 1rem 1.1rem; }
.p-pin .key { flex: none; inline-size: 44px; block-size: 44px; border-radius: 14px; background: var(--amber); color: var(--on-amber); display: grid; place-items: center; font-weight: 800; font-size: .8rem; }
.p-pin span:last-child { font-weight: 600; font-size: .92rem; line-height: 1.35; }
/* Floating cards move for under five seconds, then stay still (WCAG 2.2.2). */
.f1 { animation: float 4.5s ease-in-out 1; }
.f2 { animation: float2 4.5s ease-in-out .3s 1; }
.f3 { animation: float 4.5s ease-in-out .6s 1; }
.note-fake { position: absolute; inset-block-end: -1.5rem; inset-inline-end: 0; font-size: .75rem; color: var(--ink-muted); }

/* Sections */
section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section-head { display: flex; flex-direction: column; gap: .8rem; max-inline-size: 42rem; margin-block-end: 2.5rem; }
.kicker { font-size: .85rem; font-weight: 700; color: var(--plum); letter-spacing: .08em; text-transform: uppercase; }
html[lang="ar"] .kicker { letter-spacing: 0; text-transform: none; font-size: .95rem; }
h2 { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem); line-height: 1.1; font-weight: 800; letter-spacing: -.035em; }
html[lang="ar"] h2 { letter-spacing: 0; line-height: 1.4; }
.section-head p { color: var(--ink-muted); font-size: 1.1rem; }

.strip { padding-block: 0; }
.strip ul { list-style: none; margin: 0; padding: 1.1rem; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; border-radius: 28px; background: var(--surface); box-shadow: var(--shadow-card); }
.strip li { display: flex; flex-direction: column; gap: .15rem; padding: .9rem 1rem; border-radius: 18px; background: var(--surface-sunken); }
.strip b { font-size: 1.05rem; }
.strip span { color: var(--ink-muted); font-size: .9rem; }

.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.feature { display: flex; flex-direction: column; gap: .7rem; padding: 1.6rem; border-radius: 28px; background: var(--surface); box-shadow: var(--shadow-card); transition: transform .25s ease; }
.feature:hover { transform: translateY(-4px); }
.icon { inline-size: 48px; block-size: 48px; border-radius: 16px; display: grid; place-items: center; background: var(--plum-tint); }
.icon svg { inline-size: 26px; block-size: 26px; fill: none; stroke: var(--plum); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.feature:nth-child(3n+2) .icon { background: var(--amber-blob); }
.feature:nth-child(3n+2) .icon svg { stroke: var(--ink); }
.feature h3 { font-size: 1.2rem; font-weight: 700; }
.feature p { color: var(--ink-muted); font-size: .98rem; }

.security { background: var(--night); color: var(--on-night); border-radius: clamp(28px, 4vw, 48px); margin-inline: max(8px, 2vw); }
.security .kicker { color: var(--amber); }
.security .section-head p { color: var(--on-night-muted); }
.sec-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.sec-item { display: flex; gap: 1rem; padding: 1.3rem; border-radius: 22px; background: rgba(255, 255, 255, .06); }
.sec-item .num { flex: none; inline-size: 36px; block-size: 36px; border-radius: 50%; background: var(--amber); color: var(--on-amber); display: grid; place-items: center; font-weight: 800; }
.sec-item h3 { font-size: 1.08rem; margin-block-end: .25rem; }
.sec-item p { color: var(--on-night-muted); font-size: .95rem; }

.pilot .wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 2rem; align-items: center; }
.pilot-card { padding: 2rem; border-radius: 28px; background: var(--surface); box-shadow: var(--shadow-float); display: flex; flex-direction: column; gap: 1rem; }
.pilot-card ol { margin: 0; padding-inline-start: 1.2rem; display: flex; flex-direction: column; gap: .5rem; color: var(--ink-muted); }
.pilot-card li::marker { color: var(--plum); font-weight: 800; }
.contact { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
.contact code { font: 700 1.05rem var(--font); background: var(--plum-tint); color: var(--ink); padding: .55rem .9rem; border-radius: 14px; user-select: all; }

.site-footer { padding-block: 2.5rem; color: var(--ink-muted); font-size: .9rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; }
.site-footer .brand { font-size: 1.2rem; }
.site-footer .brand svg { inline-size: 28px; block-size: 28px; }

/* Motion: content is visible at rest; motion only adds movement */
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes float2 { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(10px); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(242, 169, 59, .55); } 70%, 100% { box-shadow: 0 0 0 12px rgba(242, 169, 59, 0); } }
@keyframes rise { from { transform: translateY(14px); } to { transform: none; } }
.hero-copy > * { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
.hero-copy > *:nth-child(2) { animation-delay: .08s; } .hero-copy > *:nth-child(3) { animation-delay: .16s; }
.hero-copy > *:nth-child(4) { animation-delay: .24s; } .hero-copy > *:nth-child(5) { animation-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Narrow screens */
@media (max-width: 960px) {
  .hero .wrap, .pilot .wrap { grid-template-columns: minmax(0, 1fr); }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .strip ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .preview { min-block-size: 32rem; }
  .blob-2 { display: none; }
}
@media (max-width: 640px) {
  .nav { inline-size: 100%; justify-content: center; border-radius: 22px; }
  .nav a { font-size: .85rem; }
  .nav a { padding-inline: .7rem; }
  .features, .sec-grid, .strip ul { grid-template-columns: minmax(0, 1fr); }
  .preview { min-block-size: 0; display: flex; flex-direction: column; gap: 1rem; }
  .p-card { position: static; inline-size: 100%; }
  .note-fake { position: static; }
  .site-header .cta-head { display: none; }
}
