/* ChabChab website — dark aurora + glass. One stylesheet for every page. */
:root {
  --bg: #0b0818;
  --text: #f6f3ff;
  --muted: #b8afd8;
  --faint: #8d84b3;
  --p300: #c4b5fd;
  --p400: #a78bfa;
  --p500: #8b5cf6;
  --p600: #7c3aed;
  --p700: #6d28d9;
  --amber: #fbbf24;
  --green: #34d399;
  --glass: rgba(255, 255, 255, .055);
  --glass-2: rgba(255, 255, 255, .09);
  --line: rgba(255, 255, 255, .12);
  --line-2: rgba(255, 255, 255, .22);
  --radius: 26px;
  --shadow: 0 24px 60px rgba(4, 2, 16, .55);
  --ease: cubic-bezier(.34, 1.56, .64, 1);
  font-family: "Segoe UI", Tahoma, "Noto Sans Arabic", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding-bottom: 0;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
p, li { text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
/* letter-spacing breaks the joined Arabic letters */
html[lang="ar"] * { letter-spacing: 0 !important; }

/* icons (Lucide line icons from assets/icons.svg) */
.i { width: 1.2em; height: 1.2em; flex: none; stroke-width: 1.75; }
.i-fill { fill: currentColor; stroke: none; }
html[dir="rtl"] .flip { transform: scaleX(-1); }

/* the aurora behind everything */
.aurora { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: radial-gradient(1200px 700px at 80% -10%, #2a1363 0%, transparent 60%), radial-gradient(900px 600px at 0% 30%, #1d0f4a 0%, transparent 60%), var(--bg); }
.aurora i { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .5; animation: drift 22s ease-in-out infinite; }
.aurora i:nth-child(1) { width: 460px; height: 460px; background: #7c3aed; top: -120px; inset-inline-end: 4%; }
.aurora i:nth-child(2) { width: 380px; height: 380px; background: #2563eb; opacity: .26; top: 38%; inset-inline-start: -120px; animation-delay: -7s; }
.aurora i:nth-child(3) { width: 340px; height: 340px; background: #db2777; opacity: .2; bottom: -100px; inset-inline-end: 20%; animation-delay: -13s; }
@keyframes drift { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(40px, -50px) scale(1.12); } }

.wrap { width: min(1140px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; inset-inline-start: 8px; top: -60px; background: var(--p600); padding: 10px 16px; border-radius: 12px; z-index: 200; }
.skip:focus { top: 8px; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 12px; }

/* ── glass surface ── */
.glass {
  background: linear-gradient(160deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .03));
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), var(--shadow);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  backdrop-filter: blur(18px) saturate(1.5);
}

/* ── buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px;
  padding: 12px 26px; border-radius: 999px; border: 0; cursor: pointer; text-decoration: none;
  background: linear-gradient(135deg, var(--p500), var(--p700));
  color: #fff; font-weight: 800;
  box-shadow: 0 12px 30px rgba(124, 58, 237, .45), inset 0 1px 0 rgba(255, 255, 255, .3);
  transition: transform .25s var(--ease), filter .2s;
}
.btn:hover { transform: translateY(-2px) scale(1.02); filter: brightness(1.1); }
.btn:active { transform: scale(.98); }
.btn .i { width: 20px; height: 20px; }
.btn-ghost { background: var(--glass); border: 1px solid var(--line-2); box-shadow: none; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.btn-lg { min-height: 56px; padding: 14px 34px; font-size: 1.1rem; }
.btn-block { width: 100%; }

/* ── site header ── */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(11, 8, 24, .6); -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5); border-bottom: 1px solid transparent; transition: background-color .3s, border-color .3s; }
.site-header.scrolled { background: rgba(11, 8, 24, .88); border-bottom-color: var(--line); }
.hdr { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 900; font-size: 1.05rem; letter-spacing: .2px; flex: none; }
.brand img { width: 34px; height: auto; }
.nav { display: flex; align-items: center; justify-content: center; gap: 2px; flex: 1; }
.nav a { position: relative; padding: 9px 13px; border-radius: 10px; color: var(--muted); text-decoration: none; font-size: .93rem; font-weight: 700; transition: color .2s, background-color .2s; }
.nav a:hover { color: var(--text); background: var(--glass-2); }
.nav a[aria-current="page"] { color: var(--text); }
.nav a[aria-current="page"]::after { content: ""; position: absolute; inset-inline: 13px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--p400); }
.hdr-end { display: flex; align-items: center; gap: 10px; flex: none; }
.hdr-cta { min-height: 42px; padding: 0 20px; font-size: .92rem; }
.menu-btn { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border-radius: 14px; border: 1px solid var(--line-2); background: var(--glass); color: var(--text); cursor: pointer; }
.menu-btn .i { width: 22px; height: 22px; }
.menu-btn[aria-expanded="true"] { background: var(--glass-2); }
.lang { display: flex; background: rgba(0, 0, 0, .3); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang button { border: 0; background: transparent; color: var(--muted); font-weight: 800; font-size: .82rem; min-height: 36px; padding: 0 13px; border-radius: 999px; cursor: pointer; transition: color .2s, background-color .2s; }
.lang button:hover { color: #fff; }
.lang button[aria-pressed="true"] { background: linear-gradient(135deg, var(--p500), var(--p700)); color: #fff; box-shadow: 0 4px 14px rgba(124, 58, 237, .5); }
.mobile { background: rgba(11, 8, 24, .97); border-top: 1px solid var(--line); }
.mobile-nav { display: grid; gap: 4px; padding: 12px 0 20px; }
.mobile-nav a:not(.btn) { display: flex; align-items: center; min-height: 50px; padding: 0 16px; border-radius: 14px; color: var(--text); text-decoration: none; font-weight: 800; }
.mobile-nav a:not(.btn):hover { background: var(--glass); }
.mobile-nav a[aria-current="page"]:not(.btn) { background: rgba(124, 58, 237, .22); }
.mobile-nav .btn { margin-top: 10px; min-height: 52px; }
@media (max-width: 960px) {
  .nav, .hdr-cta { display: none; }
  .menu-btn { display: inline-flex; }
}
@media (min-width: 961px) { .mobile { display: none !important; } }

/* notice from the server (app-config.json) */
.notice { margin: 8px auto 0; width: min(1140px, 100% - 24px); padding: 12px 20px; border-radius: 20px; display: flex; gap: 12px; align-items: center; border-color: rgba(251, 191, 36, .5); color: #fde68a; font-weight: 700; }

/* ── hero ── */
.hero { padding: 38px 0 64px; }
.hero-in { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.status { display: inline-flex; align-items: center; gap: 10px; padding: 8px 18px; border-radius: 999px; font-size: .9rem; font-weight: 800; margin-bottom: 20px; color: var(--muted); }
.status .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--faint); }
.status.on .dot { background: var(--green); animation: ping 2s infinite; }
.status.maint .dot { background: var(--amber); }
.status.on { color: #bbf7d0; } .status.maint { color: #fde68a; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, .6); } 80%, 100% { box-shadow: 0 0 0 10px rgba(52, 211, 153, 0); } }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.7rem); line-height: 1.22; font-weight: 900; letter-spacing: -.4px; }
.grad { background: linear-gradient(120deg, #fff 10%, var(--p300) 45%, #f9a8d4 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { color: #ddd6f4; font-size: 1.14rem; margin-top: 18px; max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.chip { display: inline-flex; align-items: center; gap: 9px; padding: 8px 16px; border-radius: 999px; font-size: .9rem; font-weight: 700; color: var(--muted); }
.chip .i { width: 18px; height: 18px; color: var(--p300); }

.f1 { top: 80px; inset-inline-start: 2%; animation-delay: -1s; }
.f2 { bottom: 120px; inset-inline-end: 0; animation-delay: -2.5s; }
.f3 { top: 40%; inset-inline-end: -2%; animation-delay: -4s; }
.hero-art { position: relative; display: grid; place-items: center; margin: 0; }
.phone { position: relative; width: 276px; border-radius: 48px; padding: 11px; background: linear-gradient(160deg, #4a3c82, #19123a); box-shadow: var(--shadow), inset 0 0 0 2px rgba(255, 255, 255, .1); transform: rotate(-4deg); animation: bob 7s ease-in-out infinite; }
.notch { position: absolute; top: 19px; left: 50%; width: 88px; height: 24px; border-radius: 99px; background: #08051a; transform: translateX(-50%); z-index: 3; }
.screen { position: relative; width: 100%; aspect-ratio: 780 / 1688; border-radius: 38px; overflow: hidden; background: #0f0a22; }
.app-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.app-ov { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.ov-glow { fill: none; stroke: #c4b5fd; stroke-width: 16; stroke-linecap: round; stroke-linejoin: round; opacity: .28; }
.ov-flow { fill: none; stroke: #ffffff; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 2 22; animation: route-flow 1.1s linear infinite; }
.ov-ring { fill: none; stroke: var(--amber); stroke-width: 6; transform-box: fill-box; transform-origin: center; animation: ring 1.8s ease-out infinite; }
.ov-ring-b { animation-delay: .9s; }
.ov-halo { fill: var(--amber); opacity: .28; }
.ov-dot { fill: var(--amber); stroke: #ffffff; stroke-width: 5; }
.float { position: absolute; display: inline-flex; align-items: center; gap: 8px; border-radius: 18px; padding: 10px 16px; font-weight: 800; animation: bob 5.5s ease-in-out infinite; }
.float .i { width: 20px; height: 20px; color: var(--p300); }
.f1 { top: 64px; inset-inline-start: 0; animation-delay: -1s; }
.f2 { bottom: 116px; inset-inline-end: 0; animation-delay: -2.5s; }
.f2 .i { color: var(--amber); fill: var(--amber); }
.f3 { top: 42%; inset-inline-end: -2%; animation-delay: -4s; }
@keyframes route-flow { to { stroke-dashoffset: -24; } }
@keyframes ring { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(2.2); opacity: 0; } }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -14px; } }

/* ── sections ── */
.section { padding: 76px 0; }
.head { text-align: center; max-width: 660px; margin: 0 auto 46px; }
.eyebrow { display: inline-block; color: var(--p300); font-weight: 800; font-size: .85rem; letter-spacing: 1.4px; text-transform: uppercase; margin-bottom: 10px; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 900; line-height: 1.28; letter-spacing: -.2px; }
.head p { color: var(--muted); margin-top: 12px; font-size: 1.05rem; }

/* icon tile, five hues */
.ico { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 18px; flex: none; color: var(--hc, #c4b5fd); border: 1px solid var(--hb, rgba(167, 139, 250, .4)); background: linear-gradient(145deg, var(--hbg, rgba(139, 92, 246, .35)), transparent 85%), rgba(255, 255, 255, .04); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14); }
.ico .i { width: 26px; height: 26px; }
.h-p { --hc: #c4b5fd; --hb: rgba(167, 139, 250, .42); --hbg: rgba(139, 92, 246, .38); }
.h-a { --hc: #fcd34d; --hb: rgba(251, 191, 36, .4); --hbg: rgba(245, 158, 11, .3); }
.h-g { --hc: #6ee7b7; --hb: rgba(52, 211, 153, .4); --hbg: rgba(16, 185, 129, .28); }
.h-b { --hc: #7dd3fc; --hb: rgba(56, 189, 248, .4); --hbg: rgba(14, 165, 233, .28); }
.h-r { --hc: #f9a8d4; --hb: rgba(244, 114, 182, .4); --hbg: rgba(236, 72, 153, .28); }

/* stats */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stat { border-radius: 24px; padding: 22px; text-align: center; }
.stat b { display: block; font-size: 2.1rem; font-weight: 900; line-height: 1.25; }
.stat span { color: var(--muted); font-weight: 700; font-size: .93rem; }

/* bento */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.tile { grid-column: span 2; border-radius: var(--radius); padding: 24px; position: relative; overflow: hidden; transition: transform .3s var(--ease), border-color .3s; }
.tile:hover { transform: translateY(-5px); border-color: var(--line-2); }
.tile.w3 { grid-column: span 3; } .tile.w4 { grid-column: span 4; }
.tile .ico { margin-bottom: 16px; }
.tile h3 { font-size: 1.12rem; margin-bottom: 6px; }
.tile p { color: var(--muted); font-size: .96rem; }
.tile.hl { background: linear-gradient(150deg, rgba(124, 58, 237, .5), rgba(124, 58, 237, .08)); }

/* steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step { border-radius: var(--radius); padding: 26px 22px; position: relative; }
.step b { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, var(--p500), var(--p700)); box-shadow: 0 8px 20px rgba(124, 58, 237, .5); margin-bottom: 14px; font-size: 1.1rem; }
.step h3 { font-size: 1.05rem; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: .93rem; }
.center { display: flex; justify-content: center; margin-top: 32px; }

/* download */
.scan { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 800px; margin: 0 auto 26px; }
.scan li { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 18px; color: var(--muted); font-weight: 700; font-size: .92rem; line-height: 1.5; }
.scan .ico { width: 40px; height: 40px; border-radius: 14px; }
.scan .ico .i { width: 20px; height: 20px; }
.stores { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 800px; margin-inline: auto; }
.store { border-radius: 30px; padding: 26px; display: grid; justify-items: center; gap: 18px; text-align: center; }
.store-head { display: flex; align-items: center; gap: 14px; align-self: stretch; }
.store-logo { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 17px; background: #fff; color: #0b0818; flex: none; }
.store-logo svg { width: 30px; height: 30px; }
.store-head h3 { font-size: 1.25rem; line-height: 1.2; text-align: start; }
.store-head p { color: var(--muted); font-size: .88rem; text-align: start; }
.qr-frame { position: relative; width: 214px; height: 214px; padding: 18px; border-radius: 26px; background: #fff; display: grid; place-items: center; }
.qr-frame svg { width: 100%; height: 100%; }
.qr-frame img { width: 100%; height: 100%; object-fit: contain; }
.qr-frame::before, .qr-frame::after { content: ""; position: absolute; width: 38px; height: 38px; border: 4px solid var(--p600); }
.qr-frame::before { top: 6px; inset-inline-start: 6px; border-inline-end: 0; border-bottom: 0; border-start-start-radius: 16px; }
.qr-frame::after { bottom: 6px; inset-inline-end: 6px; border-inline-start: 0; border-top: 0; border-end-end-radius: 16px; }
.qr-empty { display: grid; place-items: center; width: 100%; }
.qr-grid { position: relative; width: 100%; aspect-ratio: 1; border-radius: 10px;
  background:
    linear-gradient(90deg, #ece8f8 2px, transparent 2px) 0 0 / 14px 14px,
    linear-gradient(#ece8f8 2px, transparent 2px) 0 0 / 14px 14px; }
.qr-grid svg { position: absolute; inset: 0; margin: auto; width: 62px; height: 62px; padding: 11px; border-radius: 18px; background: #fff; color: #0b0818; box-shadow: 0 6px 20px rgba(40, 20, 90, .28); }
.store-btn.off { display: none; }
.soon { display: inline-flex; align-items: center; gap: 8px; color: var(--amber); font-weight: 800; font-size: .95rem; }
.soon .i { width: 18px; height: 18px; }
.apk-line { text-align: center; margin-top: 26px; color: var(--muted); font-size: .92rem; }
.apk-line a { color: var(--p300); font-weight: 800; }

/* contact + social */
.socials { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.soc { display: inline-flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 22px 0 16px; border-radius: 999px; text-decoration: none; font-weight: 800; font-size: .95rem; transition: transform .25s var(--ease), border-color .2s; }
.soc:hover { transform: translateY(-3px) scale(1.03); border-color: var(--line-2); }
.soc svg { width: 22px; height: 22px; }
.soc[data-k="whatsapp"] svg { color: #4ade80; } .soc[data-k="telegram"] svg { color: #38bdf8; }
.soc[data-k="facebook"] svg { color: #60a5fa; } .soc[data-k="instagram"] svg { color: #f472b6; }
.soc[data-k="email"] svg, .soc[data-k="phone"] svg { color: var(--amber); }

/* tech */
.arch { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; align-items: stretch; margin-bottom: 18px; }
.layer { border-radius: 22px; padding: 18px; text-align: center; display: flex; flex-direction: column; gap: 4px; justify-content: center; }
.layer h3 { font-size: .78rem; letter-spacing: 1px; text-transform: uppercase; color: var(--p300); unicode-bidi: plaintext; }
.layer p { font-weight: 800; line-height: 1.4; }
.layer small { color: var(--muted); font-size: .8rem; line-height: 1.4; unicode-bidi: plaintext; }
.layer.l-app { border-color: rgba(167, 139, 250, .6); }
.link { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 54px; color: var(--p300); font-size: .68rem; font-weight: 800; }
.link i { width: 100%; height: 2px; position: relative; background: repeating-linear-gradient(90deg, var(--p400) 0 6px, transparent 6px 11px); background-size: 11px 2px; animation: flow 1s linear infinite; }
.link i::after { content: ""; position: absolute; right: -2px; top: -4px; border: 5px solid transparent; border-left-color: var(--p400); }
@keyframes flow { to { background-position: 11px 0; } }
.ext { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 26px 0 30px; }
.tag { border-radius: 999px; padding: 7px 16px; font-weight: 800; font-size: .86rem; }
.tag em { font-style: normal; color: var(--muted); font-weight: 600; margin-inline-start: 6px; }
.sec-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.card { border-radius: var(--radius); padding: 26px; }
.card-h { display: flex; align-items: center; gap: 14px; }
.card-h h3 { font-size: 1.15rem; }
.card-h .ico { width: 46px; height: 46px; border-radius: 15px; }
.card-h .ico .i { width: 22px; height: 22px; }
.ticks { margin-top: 16px; display: grid; gap: 11px; }
.ticks li { position: relative; padding-inline-start: 30px; color: #ddd6f4; font-size: .95rem; }
.ticks li::before { content: ""; position: absolute; inset-inline-start: 0; top: .32em; width: 18px; height: 18px; border-radius: 50%; background: rgba(52, 211, 153, .18) url("/assets/check.svg") center / 11px no-repeat; }

/* faq */
.faq { display: grid; gap: 12px; }
.faq details { border-radius: 22px; padding: 4px 22px; }
.faq details[open] { border-color: rgba(167, 139, 250, .55); }
.faq summary { cursor: pointer; font-weight: 800; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 56px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 22px; height: 22px; background: var(--p300); -webkit-mask: url("/assets/plus.svg") center / contain no-repeat; mask: url("/assets/plus.svg") center / contain no-repeat; transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { color: #ddd6f4; padding-bottom: 16px; }
.faq p a { color: var(--p300); font-weight: 800; }

/* final + footer */
.final { padding: 40px 0 60px; }
.final-in { border-radius: 40px; padding: 54px 24px; text-align: center; display: grid; justify-items: center; gap: 22px; background: linear-gradient(135deg, rgba(124, 58, 237, .55), rgba(219, 39, 119, .25)); }
.final-in img { width: 90px; }
.foot { border-top: 1px solid var(--line); padding: 44px 0 18px; color: var(--muted); font-size: .94rem; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 34px; }
.foot-brand p { margin: 12px 0 16px; max-width: 28em; }
.foot-col { display: grid; gap: 2px; align-content: start; }
.foot-h { color: var(--text); font-size: .95rem; font-weight: 800; margin-bottom: 8px; }
.foot-col a { text-decoration: none; padding: 5px 0; }
.foot-col a:hover { color: #fff; }
.foot-soc { display: flex; flex-wrap: wrap; gap: 8px; }
.foot-soc a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--glass); border: 1px solid var(--line); transition: .2s; }
.foot-soc a:hover { background: var(--glass-2); transform: translateY(-2px); }
.foot-soc svg { width: 20px; height: 20px; }
.foot-bar { margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line); font-size: .86rem; color: var(--faint); }

/* ── inner pages (guide, legal) ── */
.page-head { padding: 34px 0 10px; text-align: center; }
.page-head h1 { font-size: clamp(1.9rem, 4.4vw, 3rem); }
.page-head p { color: var(--muted); max-width: 40em; margin: 14px auto 0; font-size: 1.05rem; }
.badge { display: inline-flex; gap: 8px; align-items: center; padding: 7px 18px; border-radius: 999px; font-size: .85rem; font-weight: 800; color: var(--p300); margin-bottom: 16px; }
.badge .i { width: 17px; height: 17px; }

.tabs { display: flex; justify-content: center; gap: 6px; padding: 5px; border-radius: 999px; width: max-content; max-width: 100%; margin: 26px auto 34px; overflow-x: auto; }
.tabs button { display: inline-flex; align-items: center; gap: 9px; min-height: 46px; border: 0; background: transparent; color: var(--muted); font-weight: 800; padding: 0 22px; border-radius: 999px; cursor: pointer; white-space: nowrap; transition: .25s; }
.tabs button .i { width: 20px; height: 20px; }
.tabs button:hover { color: #fff; }
.tabs button[aria-selected="true"] { background: linear-gradient(135deg, var(--p500), var(--p700)); color: #fff; box-shadow: 0 6px 18px rgba(124, 58, 237, .5); }
.panel { display: none; }
.panel.on { display: block; animation: rise .5s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.timeline { position: relative; display: grid; gap: 16px; max-width: 820px; margin-inline: auto; padding-inline-start: 58px; }
.timeline::before { content: ""; position: absolute; inset-inline-start: 22px; top: 14px; bottom: 14px; width: 2px; background: linear-gradient(var(--p500), transparent); }
.tl { border-radius: 24px; padding: 20px 24px; position: relative; }
.tl::before { content: attr(data-n); position: absolute; inset-inline-start: -58px; top: 14px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--p500), var(--p700)); font-weight: 900; box-shadow: 0 8px 22px rgba(124, 58, 237, .5), 0 0 0 5px var(--bg); }
.tl h3 { font-size: 1.1rem; margin-bottom: 4px; }
.tl p { color: #ddd6f4; }
.hint { display: flex; align-items: flex-start; gap: 9px; margin-top: 12px; padding: 10px 14px; border-radius: 14px; background: rgba(251, 191, 36, .1); border: 1px solid rgba(251, 191, 36, .28); color: #fde68a; font-size: .92rem; font-weight: 700; line-height: 1.55; }
.hint .i { width: 19px; height: 19px; margin-top: 2px; }

.tips { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.tips li { display: flex; gap: 16px; align-items: flex-start; border-radius: 22px; padding: 18px 20px; }
.tips li p { color: #e2dcf6; }
.tips .ico { width: 46px; height: 46px; border-radius: 15px; }
.tips .ico .i { width: 22px; height: 22px; }

.track { max-width: 640px; margin: 56px auto 0; border-radius: 28px; padding: 28px; text-align: center; }
.track .ico { margin: 0 auto 12px; }
.track h3 { font-size: 1.2rem; margin-bottom: 6px; }
.track p { color: var(--muted); font-size: .95rem; }
.track form { display: flex; gap: 10px; margin-top: 16px; }
.track input { flex: 1; min-width: 0; min-height: 52px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(0, 0, 0, .3); color: var(--text); font: inherit; direction: ltr; text-align: start; }
.track input::placeholder { color: var(--faint); }
.track .err { color: #fca5a5; margin-top: 10px; font-size: .9rem; min-height: 1.4em; }

.rules { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 12px; }
.rule { border-radius: 22px; padding: 18px 20px; display: flex; gap: 14px; align-items: flex-start; }
.rule p { color: #e2dcf6; }
.rule .ico { width: 44px; height: 44px; border-radius: 15px; }
.rule .ico .i { width: 22px; height: 22px; }

/* legal pages */
.legal { display: grid; grid-template-columns: 250px 1fr; gap: 30px; align-items: start; margin-top: 30px; }
.toc { position: sticky; top: 92px; border-radius: 24px; padding: 16px; }
.toc h4 { font-size: .8rem; letter-spacing: 1.2px; text-transform: uppercase; color: var(--faint); margin: 4px 8px 8px; }
.toc a { display: block; text-decoration: none; padding: 8px 12px; border-radius: 12px; color: var(--muted); font-weight: 700; font-size: .9rem; line-height: 1.5; transition: .2s; }
.toc a:hover { color: #fff; background: var(--glass-2); }
.toc a.on { color: #fff; background: rgba(124, 58, 237, .4); }
.doc { border-radius: 30px; padding: 36px 40px; }
.doc h2 { font-size: 1.45rem; margin: 38px 0 10px; scroll-margin-top: 96px; }
.doc h2:first-child, .doc > :first-child { margin-top: 0; }
.doc p, .doc li { color: #e0daf5; }
.doc p { margin: 8px 0; }
.doc ul, .doc ol { margin: 10px 0; padding-inline-start: 22px; }
.doc ul { list-style: disc; } .doc ol { list-style: decimal; }
.doc li { margin: 7px 0; padding-inline-start: 4px; }
.doc li::marker { color: var(--p400); }
.doc a { color: var(--p300); font-weight: 800; }
.doc .box { background: rgba(255, 255, 255, .05); border: 1px solid var(--line); border-radius: 20px; padding: 6px 20px; margin: 14px 0; }
.doc b { color: #fff; }
.doc .contact-list { list-style: none; padding: 0; }
/* the three languages of a legal page: only the active one is shown */
html[lang="ar"] [data-l]:not([data-l="ar"]),
html[lang="fr"] [data-l]:not([data-l="fr"]),
html[lang="en"] [data-l]:not([data-l="en"]) { display: none; }

.ns-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; padding: 18px 16px; }
.ns-nav a { padding: 8px 14px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line); text-decoration: none; font-weight: 700; }

/* reveal on scroll */
.reveal { opacity: 0; translate: 0 26px; transition: opacity .7s ease, translate .7s ease; }
.reveal.in { opacity: 1; translate: 0 0; }
.no-js .reveal { opacity: 1; translate: 0 0; }
.mt-20 { margin-top: 20px; } .mt-60 { margin-top: 60px; }


/* 404 */
.lost { min-height: 60vh; display: grid; place-items: center; align-content: center; text-align: center; gap: 18px; padding: 40px 0; }
.lost b { font-size: clamp(4rem, 16vw, 8rem); line-height: 1; }

/* ── how to use (a short film made from the app) ── */
.howto { padding: 8px 0 34px; }
.howto-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.howto-copy h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 10px 0 12px; }
.howto-copy p { color: var(--muted); font-size: 1.05rem; }
.howto-steps { display: grid; gap: 12px; margin-top: 24px; }
.howto-steps li { display: flex; align-items: center; gap: 14px; font-weight: 800; }
.step-n { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; flex: none; background: linear-gradient(135deg, var(--p500), var(--p700)); box-shadow: 0 6px 16px rgba(124, 58, 237, .45); font-size: .95rem; }
.howto-video { margin: 0; border-radius: 30px; padding: 12px; overflow: hidden; }
.howto-video video { display: block; width: 100%; max-width: 360px; margin-inline: auto; aspect-ratio: 9 / 16; height: auto; border-radius: 22px; background: #08051a; object-fit: contain; }
.transcript { max-width: 820px; margin: 26px auto 0; border-radius: 22px; padding: 4px 22px; }
.transcript summary { cursor: pointer; font-weight: 800; min-height: 52px; display: flex; align-items: center; list-style: none; }
.transcript summary::-webkit-details-marker { display: none; }
.transcript ol { padding-inline-start: 22px; color: #e0daf5; margin-bottom: 16px; }
.transcript li { margin: 8px 0; }
.transcript b { color: #fff; }
@media (max-width: 960px) { .howto-grid { grid-template-columns: 1fr; } }

/* ── small screens ── */
@media (max-width: 960px) {
  .hero-in { grid-template-columns: 1fr; text-align: center; }
  .lead { margin-inline: auto; } .cta, .chips { justify-content: center; }
  .phone { width: 250px; }
  .bento { grid-template-columns: repeat(2, 1fr); } .tile, .tile.w3, .tile.w4 { grid-column: span 1; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .scan { grid-template-columns: 1fr; max-width: 420px; }
  .arch { grid-template-columns: 1fr; gap: 6px; }
  .link { width: auto; height: 34px; flex-direction: row; }
  .link i { width: 2px; height: 100%; background: repeating-linear-gradient(180deg, var(--p400) 0 6px, transparent 6px 11px); background-size: 2px 11px; animation-name: flowv; }
  .link i::after { right: auto; left: -4px; top: auto; bottom: -2px; border-left-color: transparent; border-top-color: var(--p400); }
  .link span { margin-inline-start: 8px; }
  @keyframes flowv { to { background-position: 0 11px; } }
  .sec-grid, .rules, .tips { grid-template-columns: 1fr; }
  .legal { grid-template-columns: 1fr; } .toc { position: static; display: none; }
  .doc { padding: 26px 22px; }
  .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .section { padding: 56px 0; }
  .stats { grid-template-columns: 1fr; }
  .bento, .steps, .stores { grid-template-columns: 1fr; }
  .stores { max-width: 420px; }
  .cta .btn { flex: 1 1 100%; }
  .brand span { display: none; }
  .float { display: none; }
  .timeline { padding-inline-start: 50px; } .tl::before { inset-inline-start: -50px; width: 38px; height: 38px; }
  .timeline::before { inset-inline-start: 18px; }
  .track form { flex-direction: column; }
  .tabs { width: 100%; justify-content: flex-start; }
  .tabs button { padding: 0 16px; }
  .lang button { padding: 0 12px; }
}
/* a phone is already the target: the QR is only for other screens */
@media (hover: none) and (pointer: coarse) {
  .store:not(.has-no-url) .qr-frame { display: none; }
  .store.has-no-url .qr-frame { display: grid; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; translate: 0 0; }
}
@media (prefers-reduced-transparency: reduce) {
  .glass { -webkit-backdrop-filter: none; backdrop-filter: none; background: #1d1540; }
}
@media print {
  .aurora, .site-header, .mobile, .toc, .notice { display: none !important; }
  body { background: #fff; color: #000; padding: 0; }
  .glass, .doc { background: none !important; box-shadow: none !important; border: 0 !important; }
  .doc p, .doc li, .doc b, h1, h2, .page-head p { color: #000 !important; }
  .doc a { color: #000 !important; text-decoration: underline; }
}
