/* UlamnaPass website v3 (docs/DESIGN.md §11): direction A « Le geste », opened by B « Le mur »; palette « Encre » (P-35):
   warm black, saffron, cream.
   Rules that keep scrolling smooth on a phone: only transform and opacity move; each scene moves on its own scroll
   timeline (CSS scroll-driven animations, the keyframes in the page); every picture has its size; sections below the first
   screen skip their rendering until they come near (content-visibility); no filter or blend moves on scroll.
   One curve for every time-based entrance (--out), one for every move from one place to another (--io). */

@font-face { font-family: "Brico Display"; src: url(fonts/brico-display.woff2) format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Brico"; src: url(fonts/brico-text.woff2) format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Plex Arabic"; src: url(fonts/plex-arabic-400.woff2) format("woff2"); font-weight: 400 500; font-display: swap; unicode-range: U+0600-06FF, U+200C-200F, U+2066-2069, U+25CC; }
@font-face { font-family: "Plex Arabic"; src: url(fonts/plex-arabic-700.woff2) format("woff2"); font-weight: 600 800; font-display: swap; unicode-range: U+0600-06FF, U+200C-200F, U+2066-2069, U+25CC; }

:root {
  /* « Encre » (owner, 2026-11-29, P-35): no blue. Cream paper, warm ink, saffron. */
  --s0: #FBF8F2; --s1: #F4EFE5; --s2: #EAE3D5; --line: #E0D8C8;
  --t1: #141210; --t2: #4A443C; --t3: #5E574D;
  --ink: #141210; --ink-hi: #2A2622; --saf: #FFC21A; --saf-hi: #FFD04D;
  --night: #141210; --night-rgb: 20 18 16; --night2: #1E1B18; --nt1: #F6F2EA; --nt2: #CFC7B8;
  --scene: var(--saf); --on-scene: var(--ink); --scene-hl: #FFFFFF; /* the counter's and the call's ground, its text, its marker */
  --out: cubic-bezier(.16, 1, .3, 1);
  --io: cubic-bezier(.7, 0, .2, 1);
  --display: "Brico Display", "Brico", system-ui, sans-serif;
  --text: "Brico", system-ui, sans-serif;
  --ar: "Plex Arabic", "Brico", system-ui, sans-serif;
  --gut: clamp(16px, 4.5vw, 56px);
  --nav-h: 64px;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body { margin: 0; font: 400 17px/1.5 var(--text); color: var(--t1); background: var(--s0); overflow-x: clip; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
html.home, html.home body { background: var(--night); }
:lang(ar), [dir="rtl"] { font-family: var(--ar); }
img { display: block; max-width: 100%; height: auto; }
picture { display: contents; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--saf); outline-offset: 3px; border-radius: 6px; }
.skip { position: fixed; z-index: 200; inset-inline-start: 12px; top: 12px; padding: 12px 16px; background: var(--t1); color: #fff; border-radius: 10px; transform: translateY(-200%); }
.skip:focus { transform: none; }

/* Type: Bricolage 800 headlines, tight; Plex Arabic 700 in Arabic. One word may carry the saffron stroke (.hl). */
.d { font-family: var(--display); font-weight: 800; letter-spacing: -.035em; line-height: .95; margin: 0; text-wrap: balance; }
:lang(ar) .d, .d:lang(ar) { font-family: var(--ar); font-weight: 700; letter-spacing: 0; line-height: 1.25; }
.hl { background: linear-gradient(transparent 60%, var(--saf) 60%, var(--saf) 90%, transparent 90%); padding-inline: .04em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.label { font: 700 16px/1.3 var(--text); letter-spacing: .01em; margin: 0; }
:lang(ar) .label, .label:lang(ar) { font-family: var(--ar); }
.s { color: var(--saf); }

/* Buttons: one primary per screen (saffron), a ghost beside it. 52 px tall, 44 px in the bar. */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 52px; padding: 0 26px; border-radius: 999px; font: 700 17px/1 var(--text); text-decoration: none; border: 0; cursor: pointer; transition: transform .16s var(--out), background-color .16s, opacity .16s; white-space: nowrap; }
:lang(ar) .btn { font-family: var(--ar); }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--saf); color: var(--t1); }
.btn.primary:hover { background: var(--saf-hi); }
.btn.ghost { color: inherit; background: transparent; box-shadow: inset 0 0 0 2px currentColor; }
.btn.blue { background: var(--ink); color: #fff; }
.btn.blue:hover { background: var(--ink-hi); }
.btn .ic { width: 20px; height: 20px; flex: none; }

/* The bar: the logo, the other languages, the quote. White over dark scenes (html[data-nav=dark]). */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h); display: flex; align-items: center; gap: 8px; padding: 0 var(--gut); padding-top: env(safe-area-inset-top); color: var(--t1); transition: color .3s; }
html[data-nav="dark"] .nav { color: #fff; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; min-height: 44px; margin-inline-end: auto; color: inherit; }
.brand .mark { width: 34px; height: 34px; flex: none; color: var(--ink); transition: color .3s; }
html[data-nav="dark"] .nav .brand .mark { color: #fff; }
.brand .word { font: 800 22px/1 var(--display); letter-spacing: -.04em; }
.brand .word b { font-weight: 800; color: inherit; transition: color .3s; }
html[data-nav="dark"] .nav .brand .word b { color: var(--saf); }
/* The language picker: a pill like the site's buttons (a globe, the page's language, a chevron), opening a night panel with
   the three names in their own script; the current one carries a saffron check. It rises on the entrance curve. */
.lang { position: relative; }
.lang summary { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px 0 11px; border-radius: 99px; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, currentColor 34%, transparent); font: 700 15px/1 var(--text); letter-spacing: .02em; cursor: pointer; list-style: none; user-select: none; transition: box-shadow .16s, background-color .16s; }
.lang summary::-webkit-details-marker { display: none; }
/* a fill of the bar's tone (a plain colour, no blur): the pill stays readable over the wall of screens */
.lang summary { background: rgb(251 248 242 / .88); }
html[data-nav="dark"] .lang summary { background: rgb(var(--night-rgb) / .72); }
/* over the saffron scenes (the counter, the call) the bar is ink, and its quote button too */
html[data-nav="saf"] .nav .cta { background: var(--ink); color: #fff; }
html[data-nav="saf"] .lang summary { background: rgb(255 255 255 / .4); }
.lang summary:hover, .lang[open] summary { box-shadow: inset 0 0 0 1.5px currentColor; }
.lang summary .ic { width: 18px; height: 18px; }
.lang summary .i-chev { width: 16px; height: 16px; transition: transform .25s var(--out); }
.lang[open] summary .i-chev { transform: rotate(180deg); }
.lang .lang-now:lang(ar) { font: 700 15px/1 var(--ar); }
.lang-panel { position: absolute; inset-inline-end: 0; top: calc(100% + 10px); z-index: 60; min-width: 196px; display: grid; padding: 6px; border-radius: 18px; background: var(--night); color: var(--nt1); box-shadow: 0 0 0 1px rgb(255 255 255 / .1), 0 24px 48px -16px rgb(5 6 20 / .6); transform-origin: top right; }
[dir="rtl"] .lang-panel { transform-origin: top left; }
.lang[open] .lang-panel { animation: lang-in .24s var(--out); }
@keyframes lang-in { from { opacity: 0; transform: translateY(-6px) scale(.96); } }
.lang-panel a { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 48px; padding: 0 14px; border-radius: 12px; font: 700 17px/1 var(--text); text-decoration: none; color: var(--nt1); }
.lang-panel a[lang="ar"] { font: 700 18px/1 var(--ar); }
.lang-panel a:hover { background: rgb(255 255 255 / .08); }
.lang-panel a[aria-current] { color: #fff; }
.lang-panel .i-on { width: 20px; height: 20px; color: var(--saf); stroke-width: 2.6; flex: none; }
.foot-langs a { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; min-width: 48px; font: 600 15px/1 var(--text); text-decoration: none; color: var(--nt2); }
.foot-langs a[lang="ar"] { font: 600 16px/1 var(--ar); }
.foot-langs a[aria-current] { color: #fff; }
.foot-langs .i-on { width: 16px; height: 16px; color: var(--saf); }
.nav .cta { min-height: 44px; padding: 0 18px; font-size: 15px; background: var(--saf); color: var(--t1); }
.nav .cta[aria-current] { box-shadow: inset 0 0 0 2px var(--t1); }
.nav .short { display: none; }
@media (max-width: 760px) {
  :root { --nav-h: 58px; }
  .nav { gap: 2px; }
  .nav .long { display: none; }
  .nav .short { display: inline; }
  .nav .cta { padding: 0 16px; margin-inline-start: 6px; }
  .brand .mark { width: 30px; height: 30px; }
  .brand .word { font-size: 19px; }
}
@media (max-width: 374px) { .nav .cta { padding: 0 10px; font-size: 14px; } }
@media (max-width: 359px) {
  .nav .brand .word { display: none; }
  /* the smallest phones: the language panel spans the screen under the bar */
  .lang-panel { position: fixed; inset-inline: 16px; top: calc(var(--nav-h) + 6px); min-width: 0; }
}

/* Phones hold the real captures. The phone is a size container: bezel, buttons and island scale with its width (--w). */
.phone { --w: 300px; width: var(--w); container-type: inline-size; flex: none; }
.phone .bz { position: relative; padding: 3.3cqw; border-radius: 16.5cqw; background: linear-gradient(150deg, #2B2D38, #0E0F14 40%, #1A1B22); box-shadow: inset 0 0 0 .55cqw #474A58, inset 0 0 0 1.1cqw #101116, 0 2cqw 6cqw -1cqw rgb(14 16 51 / .3), 0 12cqw 22cqw -6cqw rgb(14 16 51 / .42); }
.phone .bz::before, .phone .bz::after { content: ""; position: absolute; width: 1cqw; border-radius: 1cqw; background: #2B2D38; }
.phone .bz::before { inset-inline-start: -.7cqw; top: 22%; height: 9%; }
.phone .bz::after { inset-inline-end: -.7cqw; top: 28%; height: 14%; }
.phone .scr { position: relative; overflow: hidden; border-radius: 13cqw; aspect-ratio: 1206 / 2622; background: #05060f; }
.phone .scr img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.phone .isl { position: absolute; top: 5.4cqw; left: 50%; width: 29cqw; height: 8.6cqw; transform: translateX(-50%); border-radius: 99px; background: #000; z-index: 3; }
.phone.web .scr { background: var(--top, #0B5A43); }
.phone.web .scr img { top: 12.6cqw; height: auto; bottom: auto; }
.phone.and .bz { border-radius: 10cqw; padding: 2.8cqw; }
.phone.and .scr { border-radius: 7.6cqw; aspect-ratio: 1080 / 2400; }
.phone.and .isl { width: 4.4cqw; height: 4.4cqw; top: 4.2cqw; }
/* the wall's small phones: no drop shadow, a thinner bezel (dozens of them move at once) */
.phone.mini .bz { box-shadow: inset 0 0 0 .7cqw #3A3D4C; padding: 3cqw; }
.phone.mini .bz::before, .phone.mini .bz::after { display: none; }
/* frames of one real flow, stacked (each later frame over the one before); the scene dissolves from one to the next */
.phone .f { position: absolute; inset: 0; }
.phone .f + .f { opacity: 0; }

/* Scenes: a tall section (its scroll: --len), a pinned stage, and the scene's own view timeline. Every moving element (.sd)
   plays its generated keyframes (the page's <style>) over that scroll, from the stage's pin to its release: the compositor
   interpolates every frame. Without scroll-driven animations (.no-sd), assets/site.js writes the scene's progress --p and the
   same keyframes are held at it. Before either applies, the markup is the scene's first frame. */
:root { --len-open: 520svh; --len-fills: 200svh; --len-brands: 170svh; --len-features: 330svh; }
.scene { position: relative; height: calc(100svh + var(--len)); }
.scene > .stage { position: sticky; top: 0; height: 100svh; overflow: clip; }
/* the sentinel runs from its point to the scene's end: a fast scroll (or a jump) can never step over it */
.scene > .away { position: absolute; inset-inline-start: 0; width: 1px; bottom: 0; top: calc(50svh + var(--at) * (100% - 100svh)); pointer-events: none; }
.scene > .anchor { position: absolute; top: calc(var(--at) * (100% - 100svh)); }
@supports (animation-timeline: view()) {
  html:not(.no-sd) .scene { view-timeline: --scene block; }
  html:not(.no-sd) .sd { animation-duration: auto; animation-timing-function: linear; animation-fill-mode: both; animation-timeline: --scene; animation-range: contain 0% contain 100%; }
}
html.no-sd .sd { animation-duration: 1s; animation-timing-function: linear; animation-fill-mode: both; animation-play-state: paused; animation-delay: calc(var(--p, 0) * -1s); }
.fills, .wallet, .brands, .features, .arabic, .end { content-visibility: auto; }
.wallet { contain-intrinsic-size: auto 70svh; }
.arabic { contain-intrinsic-size: auto 64svh; } /* the content box: its padding comes on top */
.end { contain-intrinsic-size: auto 29svh; }

@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes fade-out { to { opacity: 0; } }

/* ---------- The opening and the counter: one stage, one scroll ---------- */
.open > .stage { color: #fff; transition: opacity .6s var(--out); }
/* before its pictures are decoded the wall waits (1.2 s at most; 2 s if the script never runs); the words never wait (LCP) */
.js.home:not(.ready) .open .wallwrap > .wall { opacity: 0; animation: fade-in .6s 2s forwards; }
.open .wallwrap > .wall { transition: opacity .6s var(--out); }
.open .night, .open .maj, .open .veil { position: absolute; inset: 0; }
.open .night { background: var(--night); }
.open .maj { background: var(--scene); opacity: 0; }
/* the veil darkens the wall behind the headline and under the bar (the logo and the language pill stay readable) */
.open .veil { background: linear-gradient(rgb(var(--night-rgb) / .85), rgb(var(--night-rgb) / 0) calc(var(--nav-h) + 6svh)), radial-gradient(62% 58% at 50% 48%, rgb(var(--night-rgb) / .9), rgb(var(--night-rgb) / .55) 62%, rgb(var(--night-rgb) / .2)); }
/* the wall: columns of real screens drifting up and down on a tilted plane */
.wallwrap { position: absolute; inset: -12% -24%; perspective: 1500px; }
.wall { position: absolute; inset: 0; display: flex; justify-content: center; gap: 26px; transform: rotateX(26deg) rotateZ(-15deg) scale(1.12); transform-origin: 50% 42%; }
.col { flex: none; }
.col .track { display: flex; flex-direction: column; gap: 26px; animation: drift var(--t, 70s) linear infinite; }
.col:nth-child(even) .track { animation-direction: reverse; }
.col .phone { --w: 200px; }
@keyframes drift { to { transform: translateY(-50%); } }
/* the drift rests once the wall has gone (the scene is past its sentinel) and while the stage is off screen */
.open.away .wall .track, .wall.paused .track { animation-play-state: paused; }
html.intro-played .col { animation: col-in 1.25s var(--io) both; animation-delay: calc(1.15s + var(--i) * 55ms); }
html.intro-played .col:nth-child(even) { animation-name: col-in-down; }
@keyframes col-in { from { transform: translateY(125vh); } }
@keyframes col-in-down { from { transform: translateY(-125vh); } }
/* the saffron scan line: a soft bar swept once across the wall (a gradient, no filter) */
.beam { position: absolute; top: -20%; bottom: -20%; left: 0; width: 22vw; background: linear-gradient(90deg, rgb(255 194 26 / 0), rgb(255 194 26 / .32) 45%, rgb(255 222 120 / .55) 50%, rgb(255 194 26 / .32) 55%, rgb(255 194 26 / 0)); transform: translateX(-40vw) rotate(15deg); opacity: 0; pointer-events: none; }
html.intro-played .beam { animation: sweep 1.3s var(--io) 1.85s both; }
@keyframes sweep { 0% { opacity: 1; transform: translateX(-40vw) rotate(15deg); } 100% { opacity: 1; transform: translateX(130vw) rotate(15deg); } }
.hero-copy { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; text-align: center; padding: var(--nav-h) var(--gut) 0; }
.hero-copy .big { font-size: clamp(56px, 10.5vw, 168px); }
/* the page's h1: what the product is, in the words people search with (small, above the big headline) */
.hero-copy .kicker { margin: 0 0 22px; padding: 8px 16px; border-radius: 18px; background: rgb(var(--night-rgb) / .78); font: 700 clamp(14px, 1.3vw, 17px)/1.35 var(--text); letter-spacing: .02em; color: var(--nt1); max-width: min(34ch, 100%); }
:lang(ar) .hero-copy .kicker { font-family: var(--ar); letter-spacing: 0; }
.hero-copy .big span { display: block; }
.hero-copy .l2 { color: var(--saf); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 34px; }
html.intro-played .hero-copy .big span, html.intro-played .hero-copy .kicker { animation: rise 1s var(--out) both; animation-delay: calc(1.4s + var(--i, 0) * 110ms); }
html.intro-played .hero-copy .l2 { --i: 1; }
html.intro-played .hero-copy .cta-row, html.intro-played .open .next-in { animation: rise .9s var(--out) 1.75s both; }
@keyframes rise { from { opacity: 0; transform: translateY(.5em) scale(1.03); } }
/* once the counter has come forward, the hero's links are gone (not only invisible) */
.open.away .hero-copy, .open.away .next { visibility: hidden; }
.open .next { position: absolute; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); width: 48px; height: 48px; margin-inline-start: -24px; display: grid; place-items: center; border-radius: 50%; color: #fff; box-shadow: inset 0 0 0 2px rgb(255 255 255 / .4); }
.open .next-in { display: grid; }
.open .next svg { width: 22px; height: 22px; animation: nudge 2.4s var(--io) 3s infinite; }
@keyframes nudge { 50% { transform: translateY(5px); } }
/* the counter: the words, and the phone that plays the app's own recording of the flow */
.counter { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 4vw; padding: var(--nav-h) var(--gut) 0; pointer-events: none; }
.counter .words { position: relative; height: 1.1em; font-size: clamp(44px, 6.6vw, 108px); }
.counter .words .d { position: absolute; inset-inline: 0; top: 0; opacity: 0; }
.counter { color: var(--on-scene); }
.counter .hl { color: var(--t1); background-image: linear-gradient(transparent 60%, var(--scene-hl) 60%, var(--scene-hl) 90%, transparent 90%); }
.counter .hand { opacity: 0; transform: translateY(42svh) scale(.6) rotate(9deg); }
.counter .hand .phone { --w: min(25vw, 330px, 35svh); }

/* ---------- Their card fills: 0 → 5 → 10, the number and the words follow the real cards ---------- */
.fills { background: var(--s1); }
.fills > .stage { display: grid; place-items: center; }
.fills .big { position: absolute; inset: 0; font: 800 min(60vw, 72svh)/.8 var(--display); letter-spacing: -.06em; color: rgb(20 18 16 / .07); font-variant-numeric: tabular-nums; }
.fills .big span { position: absolute; inset-inline-start: 6vw; top: 50%; margin-top: -.42em; }
.fills .big span + span { opacity: 0; }
.fills .cust-at { transform: translateX(14vw); }
[dir="rtl"] .fills .cust-at { transform: translateX(-14vw); }
.fills .cust .phone { --w: min(23vw, 320px, 34svh); }
.fills .tags { position: absolute; inset-inline-start: 7vw; width: 40vw; bottom: 16svh; height: 1.2em; font-size: clamp(36px, 5vw, 80px); text-align: start; }
.fills .tags .d { position: absolute; inset: 0; }
.fills .tags .d + .d { opacity: 0; }

/* ---------- The Wallet moment (only with the owner's real captures) ---------- */
.wallet { background: var(--s0); padding: 18svh var(--gut); display: grid; justify-items: center; gap: 8svh; text-align: center; }
.wallet h2 { font-size: clamp(44px, 6.6vw, 108px); }
.wallet .pair { display: flex; gap: 6vw; align-items: flex-end; justify-content: center; }
.wallet figure { margin: 0; display: grid; justify-items: center; gap: 18px; }
.wallet .phone { --w: min(26vw, 320px); }
.wallet figcaption { font: 700 17px/1.2 var(--text); color: var(--t2); }

/* ---------- Every shop, its own card: rows of real cards and strips gliding with the scroll ---------- */
.brands { background: var(--night); color: var(--nt1); }
.brands > .stage { display: flex; flex-direction: column; justify-content: center; gap: 4svh; padding-top: var(--nav-h); }
.brands-copy { padding: 0 var(--gut); }
.brands h2 { font-size: clamp(44px, 6.6vw, 108px); }
.brands .label { margin-top: 14px; color: var(--nt2); }
.rows { display: grid; gap: 2.2svh; }
.row { display: flex; gap: max(14px, 1.6vw); width: max-content; padding-inline: var(--gut); align-items: center; }
.kard { width: min(17vw, 240px, 21svh); flex: none; }
.kard img { width: 100%; height: auto; border-radius: 6%/4.8%; box-shadow: 0 18px 40px -18px #000; }
.strip { width: min(19vw, 270px, 17svh * 2.6); flex: none; }
.strip img { width: 100%; height: auto; border-radius: 10px; }

/* ---------- All you need: each launch feature on its real screen, gliding with the scroll ---------- */
.features { background: var(--s0); }
.features > .stage { display: flex; flex-direction: column; justify-content: center; gap: 4svh; padding-top: var(--nav-h); }
.features h2 { font-size: clamp(44px, 6.6vw, 108px); padding: 0 var(--gut); }
.features .track { display: flex; align-items: flex-start; gap: max(24px, 3vw); width: max-content; padding: 0 var(--gut); }
.features figure { margin: 0; display: grid; justify-items: center; gap: 14px; }
.features .phone { --w: min(18vw, 250px, 24svh); }
.features figcaption { font: 700 17px/1.25 var(--text); text-align: center; max-width: min(18vw, 250px, 24svh); }
:lang(ar) .features figcaption { font-family: var(--ar); }
.features .poster img { width: min(26vw, 360px, 40svh); border-radius: 10px; box-shadow: 0 24px 50px -24px rgb(14 16 51 / .6); }
.pair { display: flex; gap: 3.5vw; justify-content: center; }
.arabic .phone { --w: min(19vw, 270px); }

/* ---------- Arabic, on saffron ---------- */
.arabic { background: var(--night); color: var(--nt1); padding: 16svh var(--gut); display: grid; grid-template-columns: 1fr 1fr; gap: 6vw; align-items: center; }
.arabic h2 { font-size: clamp(44px, 6vw, 96px); }
.arabic .label { margin-bottom: 18px; color: var(--nt2); }
.arabic .pair > :first-child { transform: translateY(8svh); }

/* ---------- The call ---------- */
.end { background: var(--scene); color: var(--on-scene); padding: 22svh var(--gut) 16svh; text-align: center; display: grid; justify-items: center; }
.end h2 { font-size: clamp(54px, 9.5vw, 156px); }
.end .price { margin: 26px 0 0; font: 700 clamp(19px, 2vw, 24px)/1.3 var(--text); color: var(--on-scene); }
.end .s { color: inherit; background: linear-gradient(transparent 60%, var(--scene-hl) 60%, var(--scene-hl) 90%, transparent 90%); padding-inline: .04em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
/* on the saffron call, the one action is ink */
.end .btn.primary { background: var(--ink); color: #fff; }
.end .btn.primary:hover { background: var(--ink-hi); }
:lang(ar) .end .price { font-family: var(--ar); }
.end .amount { font-family: var(--display); font-weight: 800; font-size: 1.3em; }
.end .cta-row { margin-top: 30px; }

/* ---------- Footer ---------- */
.foot { background: var(--night); color: var(--nt1); padding: 44px var(--gut) calc(40px + env(safe-area-inset-bottom)); }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; }
.foot .brand { margin-inline-end: auto; }
.foot .brand .mark { color: #fff; }
.foot .brand .word b { color: var(--saf); }
.foot-links { display: flex; flex-wrap: wrap; gap: 0 22px; margin: 0; }
.foot-links a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; font-weight: 600; }
.foot-langs { display: flex; gap: 0 18px; }
/* the product in one sentence, on every page (search and answer engines read it; so does a visitor who scrolled this far) */
.foot-def { flex-basis: 100%; margin: 14px 0 0; max-width: 72ch; font-size: 15px; line-height: 1.55; color: var(--nt2); }
.foot-legal { flex-basis: 100%; margin: 8px 0 0; font-size: 14px; color: var(--nt2); }
.foot-legal a { color: var(--nt2); }

/* ---------- Reveal on entering (makkook's grammar: rise 28 px, fade, expo-out, staggered) ---------- */
.js [data-reveal] { opacity: 0; translate: 0 28px; transition: opacity .8s var(--out), translate .9s var(--out); transition-delay: calc(var(--i, 0) * 80ms); }
.js [data-reveal].in, .js [data-reveal="in"] { opacity: 1; translate: 0 0; }

/* ---------- Phone width ---------- */
@media (max-width: 760px) {
  :root { --len-open: 480svh; --len-fills: 180svh; --len-brands: 150svh; --len-features: 420svh; }
  .wall { gap: 14px; transform: rotateX(24deg) rotateZ(-15deg) scale(1.28); }
  .col .phone { --w: 124px; }
  .col .track { gap: 14px; }
  .col:nth-child(n + 5) { display: none; }
  .hero-copy .big { font-size: min(15.5vw, 9svh); }
  .counter { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 3svh; padding-bottom: 2svh; }
  .counter .words { width: 100%; text-align: center; font-size: min(12.5vw, 7svh); }
  .counter .hand .phone { --w: min(64vw, 33svh); }
  .fills .big { font-size: min(70vw, 40svh); }
  .fills .big span { inset-inline-start: 0; inset-inline-end: 0; text-align: center; top: 22svh; margin-top: 0; }
  .fills .cust-at, [dir="rtl"] .fills .cust-at { transform: translateY(-3svh); }
  .fills .cust .phone { --w: min(60vw, 32svh); }
  .fills .tags { inset-inline: var(--gut); width: auto; bottom: 6svh; font-size: min(10vw, 6svh); text-align: center; }
  .wallet .pair { gap: 4vw; }
  .wallet .phone { --w: 42vw; }
  .kard { width: min(38vw, 20svh); }
  .strip { width: min(44vw, 15svh * 2.6); }
  .features .phone { --w: min(56vw, 34svh); }
  .features figcaption { max-width: min(56vw, 34svh); }
  .features .poster img { width: min(70vw, 44svh); }
  .arabic { grid-template-columns: 1fr; gap: 7svh; }
  .arabic .phone { --w: 41vw; }
  .arabic .pair > :first-child { transform: translateY(5svh); }
  .foot-in { align-items: flex-start; flex-direction: column; }
}

/* ---------- The quote, privacy and not-found pages (light) ---------- */
.sub { padding: calc(var(--nav-h) + 8svh) var(--gut) 12svh; max-width: 1180px; margin-inline: auto; }
.sub h1 { font-size: clamp(48px, 8vw, 110px); }
.sub .lead { font-size: 19px; color: var(--t2); margin: 18px 0 0; max-width: 40ch; }
.chip-price { display: inline-flex; align-items: baseline; gap: .4em; margin-top: 22px; padding: 10px 18px; border-radius: 99px; background: var(--s1); font-weight: 700; }
.chip-price .amount { font-family: var(--display); font-weight: 800; font-size: 1.2em; }

.quote { margin-top: 7svh; display: grid; gap: 34px; max-width: 760px; }
.q { border: 0; margin: 0; padding: 0; min-width: 0; }
.q legend { font: 800 26px/1.15 var(--display); letter-spacing: -.02em; padding: 0; margin-bottom: 16px; }
:lang(ar) .q legend { font-family: var(--ar); font-weight: 700; letter-spacing: 0; }
.q legend small { font: 600 14px/1 var(--text); color: var(--t3); margin-inline-start: 10px; letter-spacing: 0; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.segq { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; display: block; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip-l { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px; padding: 10px 16px; border-radius: 16px; background: var(--s1); box-shadow: inset 0 0 0 1.5px var(--line); font-weight: 700; text-align: center; transition: background-color .16s, box-shadow .16s, transform .16s var(--out); }
.segq .chip-l { min-height: 48px; min-width: 52px; border-radius: 99px; }
.chip input:checked + .chip-l { background: var(--ink); color: #fff; box-shadow: none; }
.chip input:checked + .chip-l::before { content: ""; width: 16px; height: 9px; border: solid currentColor; border-width: 0 0 2.5px 2.5px; transform: translateY(-2px) rotate(-45deg); }
.chip input:focus-visible + .chip-l { outline: 3px solid var(--saf); outline-offset: 2px; }
.chip:active .chip-l { transform: scale(.98); }
.field { display: grid; gap: 8px; font-weight: 700; }
.field input, .field textarea { width: 100%; min-height: 52px; padding: 12px 16px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; font-weight: 400; }
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgb(255 194 26 / .45); }
.other { margin-top: 14px; }
.q-opt { border-radius: 18px; background: var(--s1); }
.q-opt summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; padding: 0 20px; cursor: pointer; list-style: none; font-weight: 700; }
.q-opt summary::-webkit-details-marker { display: none; }
.q-opt summary::after { content: "+"; font: 800 26px/1 var(--display); }
.q-opt[open] summary::after { content: "−"; }
.q-opt summary small { font-weight: 600; color: var(--t3); margin-inline-start: 8px; }
.q-opt-in { display: grid; gap: 26px; padding: 6px 20px 24px; }
.q-opt-in legend { font-size: 19px; margin-bottom: 12px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fields .wide { grid-column: 1 / -1; }
.q-prev { border-radius: 18px; box-shadow: inset 0 0 0 1.5px var(--line); padding: 20px; }
.q-prev h2 { font: 800 19px/1.2 var(--display); letter-spacing: -.01em; margin: 0 0 12px; }
:lang(ar) .q-prev h2 { font-family: var(--ar); font-weight: 700; }
.q-mailhead { margin: 0 0 12px; display: grid; gap: 4px; font-size: 15px; }
.q-mailhead div { display: flex; gap: 10px; }
.q-mailhead dt { color: var(--t3); font-weight: 600; min-width: 4.5em; }
.q-mailhead dd { margin: 0; overflow-wrap: anywhere; }
.q-text { white-space: pre-wrap; font: 400 15px/1.55 var(--text); color: var(--t2); background: var(--s1); border-radius: 12px; padding: 14px 16px; overflow-wrap: anywhere; }
:lang(ar) .q-text { font-family: var(--ar); }
.handoff { display: grid; gap: 14px; }
.q-state { margin: 0; font-weight: 700; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; min-height: 28px; }
.q-state .ic { width: 20px; height: 20px; }
.q-state .q-ok { color: #0B6B3A; display: inline-flex; align-items: center; gap: 8px; }
.q-state .q-todo { color: var(--t2); display: inline-flex; align-items: center; gap: 8px; }
.q-state b { font-weight: 600; color: var(--t2); }
.q-acts { display: flex; flex-wrap: wrap; gap: 12px; }
.q-acts .btn { min-height: 56px; }
.q-acts .btn[aria-disabled="true"] { background: var(--s2); color: var(--t2); box-shadow: none; cursor: not-allowed; }
#q-copy { background: var(--s1); color: var(--t1); box-shadow: inset 0 0 0 1.5px var(--line); }
#q-copy .i-done, #q-copy.done .i-copy { display: none; }
#q-copy.done .i-done { display: block; }
.q-copied { margin: 0; color: var(--t2); min-height: 1.5em; }
@media (max-width: 760px) {
  .tiles { grid-template-columns: 1fr 1fr; }
  .fields { grid-template-columns: 1fr; }
  .q-acts .btn { flex: 1 1 100%; }
}

/* the quote page's questions: one line each (and their FAQPage markup) */
.faq { margin-top: 10svh; max-width: 760px; }
.faq h2 { font-size: clamp(36px, 5vw, 64px); margin-bottom: 24px; }
.faq dl { margin: 0; display: grid; gap: 0; }
.faq dl > div { padding: 18px 0; border-top: 1.5px solid var(--line); }
.faq dt { font: 800 19px/1.3 var(--display); letter-spacing: -.01em; }
:lang(ar) .faq dt { font-family: var(--ar); font-weight: 700; letter-spacing: 0; }
.faq dd { margin: 6px 0 0; color: var(--t2); }
.notes { display: grid; gap: 34px; max-width: 760px; margin-top: 7svh; }
.note h2 { font: 800 26px/1.15 var(--display); letter-spacing: -.02em; margin: 0 0 12px; }
:lang(ar) .note h2 { font-family: var(--ar); font-weight: 700; letter-spacing: 0; }
.note p, .note li, .note dd { color: var(--t2); }
.note p { margin: 0 0 10px; }
.note ul { margin: 0; padding-inline-start: 1.2em; display: grid; gap: 6px; }
.note dl { margin: 0; display: grid; gap: 12px; }
.note dt { font-weight: 700; }
.note dd { margin: 2px 0 0; }
.note a { font-weight: 700; color: var(--ink); }

.lost { min-height: 100svh; display: grid; place-content: center; justify-items: center; text-align: center; padding: var(--nav-h) var(--gut) 8svh; gap: 20px; }
.lost .mark { width: 120px; height: 120px; color: var(--ink); transform: rotate(-6deg); }
.lost h1 { font-size: clamp(44px, 7vw, 96px); }
.lost .cta-row { margin-top: 10px; }
.lost .others { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 18px; margin: 0; }
.lost .others a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }

/* ---------- The website's ways in (P-49): try the demo card, three steps, the gain, the comparison; the sign-up page ---------- */
.essai, .steps, .gain, .compare { content-visibility: auto; }
.essai { contain-intrinsic-size: auto 80svh; }
.steps { contain-intrinsic-size: auto 90svh; }
.gain { contain-intrinsic-size: auto 70svh; }
.compare { contain-intrinsic-size: auto 60svh; }
/* « Essayez maintenant », on ink: the words and the way in (a tap on a phone, a QR on a computer), the demo page beside */
.essai { background: var(--night); color: var(--nt1); padding: 16svh var(--gut); display: grid; grid-template-columns: 1.1fr .9fr; gap: 6vw; align-items: center; }
.essai h2 { font-size: clamp(48px, 7vw, 116px); }
.essai .label { margin-top: 18px; color: var(--nt2); font-size: 19px; max-width: 30ch; }
.essai-go { margin-top: 34px; display: flex; align-items: center; gap: 22px; }
.essai-tap { display: none; }
.essai-qr { margin: 0; display: flex; align-items: center; gap: 18px; }
.essai-qr img { width: 148px; height: 148px; padding: 10px; border-radius: 18px; background: #fff; }
.essai-qr figcaption { font: 700 17px/1.3 var(--text); max-width: 14ch; }
:lang(ar) .essai-qr figcaption { font-family: var(--ar); }
.essai-phone { justify-self: center; }
.essai .phone { --w: min(24vw, 300px, 56svh); }
/* « 3 étapes »: a number, its real screen, three words */
.steps { background: var(--s0); padding: 16svh var(--gut); text-align: center; }
.steps h2 { font-size: clamp(48px, 7vw, 116px); }
.steps ol { list-style: none; margin: 9svh auto 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4vw; max-width: 1100px; align-items: end; }
.steps li { display: grid; justify-items: center; gap: 18px; position: relative; }
.steps .n { position: absolute; top: -22px; inset-inline-start: 8%; z-index: 4; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: var(--saf); font: 800 26px/1 var(--display); }
.steps .phone { --w: min(22vw, 250px); }
.steps .print img { width: min(24vw, 270px); border-radius: 10px; box-shadow: 0 24px 50px -24px rgb(14 16 51 / .6); }
.steps .label { font-size: clamp(19px, 1.8vw, 24px); }
/* the gain: three sliders, and what the card brings back, big */
.gain { background: var(--s1); padding: 16svh var(--gut); }
.gain h2 { font-size: clamp(48px, 7vw, 116px); text-align: center; }
.gain-in { margin: 8svh auto 0; max-width: 1060px; display: grid; grid-template-columns: 1fr 1fr; gap: 5vw; align-items: center; }
.sim { display: grid; gap: 30px; }
.slide { display: grid; grid-template-columns: 1fr auto; gap: 10px 16px; align-items: baseline; }
.slide-l { font-weight: 700; }
.slide output { font: 800 22px/1 var(--display); letter-spacing: -.02em; }
:lang(ar) .slide output { font-family: var(--ar); font-weight: 700; letter-spacing: 0; }
.slide input { grid-column: 1 / -1; width: 100%; height: 44px; margin: 0; accent-color: var(--ink); cursor: pointer; touch-action: pan-y; }
.sim-out { padding: 40px 36px; border-radius: 28px; background: var(--ink); color: var(--nt1); }
.sim-big { margin: 0; font: 800 clamp(56px, 7vw, 104px)/1 var(--display); letter-spacing: -.04em; color: var(--saf); font-variant-numeric: tabular-nums; }
.sim-big small { display: block; margin-top: 10px; font: 700 19px/1.2 var(--text); letter-spacing: 0; color: var(--nt1); }
:lang(ar) .sim-big small { font-family: var(--ar); }
.sim-out .label { margin-top: 22px; color: var(--nt1); font-variant-numeric: tabular-nums; }
.sim-how { margin: 14px 0 0; font-size: 15px; color: var(--nt2); }
/* the comparison: three columns, ticks; ours on saffron */
.compare { background: var(--s0); padding: 16svh var(--gut); }
.compare h2 { font-size: clamp(48px, 7vw, 116px); text-align: center; }
.cmp-wrap { margin: 8svh auto 0; max-width: 980px; }
.cmp { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; }
.cmp th, .cmp td { padding: 18px 12px; text-align: center; border-bottom: 1.5px solid var(--line); }
.cmp thead th { font: 700 16px/1.25 var(--text); color: var(--t2); vertical-align: bottom; }
:lang(ar) .cmp thead th { font-family: var(--ar); }
.cmp tbody th { text-align: start; font: 700 18px/1.3 var(--text); width: 36%; }
:lang(ar) .cmp tbody th { font-family: var(--ar); }
.cmp .us { background: var(--saf); }
.cmp thead .us { border-radius: 22px 22px 0 0; color: var(--t1); }
.cmp tbody tr:last-child .us { border-radius: 0 0 22px 22px; }
.cmp .word { font: 800 22px/1 var(--display); letter-spacing: -.04em; }
.cmp .yes .ic { width: 28px; height: 28px; stroke-width: 3; }
.cmp .no { font: 700 22px/1 var(--text); color: var(--t3); }
.cmp-wrap .cmp thead td { border-bottom-color: transparent; }
/* the sign-up page */
.signup { margin-top: 6svh; display: grid; gap: 30px; max-width: 760px; }
.signup .tiles { grid-template-columns: repeat(3, 1fr); }
.signup .btn.primary { justify-self: start; min-height: 58px; padding: 0 34px; font-size: 18px; }
.signup .next { margin: 0; color: var(--t2); }
.form-err { margin: 0; padding: 14px 18px; border-radius: 14px; background: #FFF1D0; box-shadow: inset 0 0 0 1.5px var(--saf); font-weight: 700; }
/* the human check's widget (Cloudflare Turnstile), drawn by its own script once the page knows its key */
.signup .ts:empty { display: none; }
/* the field only robots fill: never shown, never focused */
.hp { display: none; }
@media (max-width: 760px) {
  .essai { grid-template-columns: 1fr; gap: 7svh; padding: 12svh var(--gut); text-align: center; }
  .essai .label { margin-inline: auto; }
  .essai-go { justify-content: center; }
  .essai-qr { display: none; }
  .essai-tap { display: inline-flex; }
  .essai .phone { --w: min(58vw, 46svh); }
  .steps { padding: 12svh var(--gut); }
  .steps ol { grid-template-columns: 1fr; gap: 9svh; margin-top: 7svh; }
  .steps .phone { --w: min(56vw, 44svh); }
  .steps .print img { width: min(62vw, 44svh); }
  .steps .n { inset-inline-start: calc(50% - min(28vw, 22svh) - 18px); }
  .gain { padding: 12svh var(--gut); }
  .gain-in { grid-template-columns: 1fr; gap: 6svh; margin-top: 6svh; }
  .sim-out { padding: 30px 24px; text-align: center; }
  .compare { padding: 12svh var(--gut); }
  .cmp th, .cmp td { padding: 14px 4px; }
  .cmp thead th { font-size: 14px; }
  .cmp tbody th { font-size: 15px; width: 40%; }
  .cmp .word { font-size: 15px; }
  .cmp .yes .ic { width: 22px; height: 22px; }
  .signup .tiles { grid-template-columns: 1fr 1fr; }
  .signup .btn.primary { justify-self: stretch; }
}
/* a tablet: both ways in */
@media (min-width: 761px) and (pointer: coarse) { .essai-tap { display: inline-flex; } }

/* ---------- Reduced motion: a calm intro (home.mjs), no drift, no sweep; the headline fades in; the scenes dissolve without
   moving (their -r keyframes) ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .col .track, .open .next svg, html.intro-played .col { animation: none; }
  html.intro-played .hero-copy .big span, html.intro-played .hero-copy .kicker, html.intro-played .hero-copy .cta-row, html.intro-played .open .next-in { animation: fade-in .35s ease-out .25s both; }
  .beam { display: none; }
  .counter .hand { transform: none; }
  .js [data-reveal] { translate: none; transition: opacity .4s linear; }
}

[data-when-signup-open][hidden] { display: none; }

/* Public application and referred enquiry. */
.affiliate-form { gap: 20px; margin-block: 28px; }
.referral-lead { max-width: 760px; margin-block: 24px; }
.affiliate-form[hidden], .referral-lead[hidden], .referral-lead [hidden] { display: none; }
.affiliate-form select { min-height: 48px; padding-inline: 12px; font: inherit; color: var(--t1); background: var(--s1); border: 1px solid var(--line); border-radius: 12px; }
