/* SmartBorsa trust pages (about, contact, privacy, 404): the app's own world: mint canvas, white sheets, growth green, Cairo. Arabic first (RTL) with an English section; logical properties; no script; strict CSP (no inline styles). */
:root {
    --canvas: #F1F5F2; --sunk: #E6EEE9; --sheet: #FFFFFF; --ink: #0F172A; --ink-soft: #334155; --muted: #566579;
    --green: #0B5E3F; --green-deep: #094D34; --wash: #E2F5E9; --loss: #B91C1C; --loss-wash: #FDE8E8;
    --line: rgba(15, 23, 42, .1); --line-strong: rgba(11, 94, 63, .3);
    --r: 20px; --ease: cubic-bezier(.16, 1, .3, 1);
    --shadow: 0 30px 60px -34px rgba(15, 23, 42, .32); --shadow-sm: 0 12px 28px -20px rgba(15, 23, 42, .3);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; font-family: 'Cairo', system-ui, sans-serif; color: var(--ink); background: var(--canvas); line-height: 1.85; font-size: 16px; -webkit-font-smoothing: antialiased; }
img { max-inline-size: 100%; block-size: auto; }
a { color: inherit; }
b { font-weight: 800; }
::selection { background: var(--wash); color: var(--green); }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 6px; }
.skip:not(:focus) { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); }
.skip:focus { position: fixed; inset: 8px 8px auto auto; z-index: 100; background: #fff; padding: 8px 14px; border-radius: 10px; }
.wrap { inline-size: min(1120px, 100% - 40px); margin-inline: auto; }

/* shared header */
.top { position: sticky; inset-block-start: 0; z-index: 50; display: flex; align-items: center; gap: 10px; padding: 10px max(20px, calc((100% - 1120px) / 2)); background: rgba(241, 245, 242, .88); backdrop-filter: blur(14px); border-block-end: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; margin-inline-end: auto; font-weight: 900; font-size: 18px; text-decoration: none; }
.brand img { border-radius: 10px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-block-size: 44px; padding: 0 20px; border: 1.5px solid transparent; border-radius: 14px; font: inherit; font-size: 15px; font-weight: 800; text-decoration: none; white-space: nowrap; transition: background .2s, border-color .2s, transform .2s var(--ease); }
.btn.primary { background: var(--green); color: #fff; box-shadow: 0 10px 22px -12px rgba(11, 94, 63, .7); } .btn.primary:hover { background: var(--green-deep); transform: translateY(-2px); }
.btn.quiet { color: var(--green); border-color: var(--line-strong); } .btn.quiet:hover { background: var(--wash); border-color: var(--green); }
.btn.big { min-block-size: 54px; padding: 0 28px; font-size: 17px; }
@media (max-width: 560px) { .top .btn { padding: 0 14px; font-size: 14px; } .top { gap: 8px; } }

/* a language section = one full page in that language */
.lang { padding-block: 0 24px; }
.lang + .lang { border-block-start: 1px solid var(--line-strong); margin-block-start: 24px; padding-block-start: 12px; }

/* page hero */
.ph { padding: 56px 0 36px; }
.ph-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.ph h1 { margin: 0 0 16px; font-size: clamp(2.2rem, 4.6vw, 3.4rem); line-height: 1.18; font-weight: 900; text-wrap: balance; }
.lead { margin: 0 0 24px; max-inline-size: 54ch; font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--ink-soft); }
.pnav { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.pnav a { display: inline-flex; align-items: center; min-block-size: 44px; padding: 0 18px; border: 1.5px solid var(--line-strong); border-radius: 999px; font-size: 14px; font-weight: 800; color: var(--green); text-decoration: none; transition: background .2s, border-color .2s; }
.pnav a:hover { background: var(--wash); border-color: var(--green); }
.pnav a[aria-current="page"] { background: var(--green); border-color: var(--green); color: #fff; }
@media (max-width: 900px) { .ph { padding: 32px 0 20px; } .ph-grid { grid-template-columns: 1fr; gap: 28px; } }

/* hero art: app crops */
.art { position: relative; min-block-size: 280px; }
.art::before { content: ""; position: absolute; inset: 6% -4% 0 8%; border-radius: 32px; background: var(--wash); }
.art img { position: absolute; border-radius: 16px; background: var(--sheet); border: 1px solid var(--line); box-shadow: var(--shadow); }
.art .a1 { inset-block-start: 2%; inset-inline: 0 10%; inline-size: 90%; } .art .a2 { inset-block-end: 0; inset-inline: 16% 0; inline-size: 62%; }
@media (max-width: 900px) { .art { min-block-size: 230px; } }

/* sections */
.sec { padding-block: 40px; }
.sec > .wrap > h2 { margin: 0 0 8px; font-size: clamp(1.5rem, 2.8vw, 2rem); line-height: 1.3; font-weight: 900; text-wrap: balance; }
.sub { margin: 0 0 22px; color: var(--muted); max-inline-size: 60ch; }
.mark { display: grid; place-items: center; inline-size: 44px; block-size: 44px; border-radius: 14px; background: var(--wash); color: var(--green); font-weight: 900; font-size: 18px; font-variant-numeric: tabular-nums; direction: ltr; }

/* bento of what the app offers */
.bento { align-items: start; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.bento > li { grid-column: span 2; display: flex; flex-direction: column; gap: 14px; padding: 26px; border-radius: var(--r); background: var(--sheet); border: 1px solid var(--line); transition: transform .3s var(--ease), box-shadow .3s; }
.bento > li:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.bento > li.w { grid-column: span 3; } .bento > li.g { background: var(--wash); border-color: transparent; }
.bento img { border-radius: 12px; border: 1px solid var(--line); background: var(--sheet); margin-block-start: auto; }
.bento p { margin: 0; }
@media (max-width: 900px) { .bento { grid-template-columns: 1fr; } .bento > li, .bento > li.w { grid-column: auto; } }

/* two-up and four-up cards */
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 900px) { .grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid2, .grid4 { grid-template-columns: 1fr; } }
.card { display: flex; flex-direction: column; gap: 10px; padding: 22px; border-radius: var(--r); background: var(--sheet); border: 1px solid var(--line); }
.card.g { background: var(--wash); border-color: transparent; }
.card h2 { margin: 0; font-size: 1.1rem; font-weight: 900; line-height: 1.4; } .card p { margin: 0; font-size: 15px; color: var(--ink-soft); }

/* data flow: device -> encrypted -> server */
.flow { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: stretch; padding: 22px; border-radius: 28px; background: var(--wash); }
.node { display: grid; align-content: center; gap: 4px; padding: 22px 18px; border-radius: 18px; background: var(--sheet); border: 1px solid var(--line); box-shadow: var(--shadow-sm); text-align: center; }
.node b { font-size: 1.1rem; font-weight: 900; } .node small { color: var(--muted); font-size: 14px; font-weight: 700; line-height: 1.6; }
.node.dim { background: var(--sunk); box-shadow: none; }
.link { position: relative; display: grid; place-items: center; min-inline-size: 120px; padding: 0 8px; font-size: 13px; font-weight: 900; color: var(--green); text-align: center; line-height: 1.5; }
.link::before { content: ""; position: absolute; inset-inline: 0; inset-block-start: 50%; block-size: 2px; background: repeating-linear-gradient(90deg, var(--green) 0 8px, transparent 8px 14px); }
.link span { position: relative; padding: 4px 10px; border-radius: 999px; background: var(--wash); border: 1px solid var(--line-strong); }
@media (max-width: 640px) { .flow { grid-template-columns: 1fr; } .link { min-block-size: 64px; } .link::before { inset-block: 0; inset-inline: auto; inset-inline-start: 50%; inline-size: 2px; block-size: auto; background: repeating-linear-gradient(0deg, var(--green) 0 8px, transparent 8px 14px); } }

/* contact: the two ways to reach us */
.chan { display: flex; flex-direction: column; gap: 14px; padding: 28px; border-radius: 24px; background: var(--sheet); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.chan:not(.fast) { align-self: start; }
.chan.fast { background: var(--wash); border-color: var(--line-strong); }
.chan h2 { margin: 0; font-size: 1.35rem; font-weight: 900; }
.chan p { margin: 0; }
.badge { align-self: flex-start; padding: 2px 12px; border-radius: 999px; background: var(--green); color: #fff; font-size: 13px; font-weight: 900; }
.path { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 0; padding: 0; list-style: none; }
.path li { display: inline-flex; align-items: center; padding: 6px 14px; border-radius: 999px; background: var(--sheet); border: 1px solid var(--line-strong); font-size: 14px; font-weight: 800; color: var(--green-deep); }
.path li + li::before { content: ""; display: inline-block; inline-size: 7px; block-size: 7px; margin-inline-end: 10px; border: solid var(--green); border-width: 2px 2px 0 0; transform: rotate(45deg); } [dir="rtl"] .path li + li::before { transform: rotate(-135deg); }
.mail { align-self: flex-start; font-size: clamp(1.1rem, 2.4vw, 1.5rem); font-weight: 900; color: var(--green); text-decoration: none; direction: ltr; unicode-bidi: isolate; word-break: break-all; }
.mail:hover { text-decoration: underline; text-underline-offset: 5px; }
.checks { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.checks li { position: relative; padding-inline-start: 36px; }
.checks li::before { content: ""; position: absolute; inset-inline-start: 4px; inset-block-start: .5em; inline-size: 7px; block-size: 13px; border: solid var(--green); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.warn { padding: 20px 24px; border-radius: 18px; background: var(--loss-wash); color: #7F1D1D; font-weight: 700; }
.warn b { color: #7F1D1D; }
.thread { display: grid; gap: 12px; padding: 24px; border-radius: 28px; background: var(--wash); }
.msg { display: grid; gap: 8px; inline-size: min(78%, 340px); padding: 16px 18px; border-radius: 18px; background: var(--sheet); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.msg.me { justify-self: start; } .msg.us { justify-self: end; background: var(--green); border-color: var(--green); }
.msg i { display: block; block-size: 9px; border-radius: 5px; background: var(--sunk); } .msg.us i { background: rgba(255, 255, 255, .55); }
.msg i:nth-child(1) { inline-size: 70%; } .msg i:nth-child(2) { inline-size: 95%; } .msg i:nth-child(3) { inline-size: 45%; }

/* privacy: a document with a contents list */
.doc { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 40px; align-items: start; padding-block: 24px 40px; }
.toc { position: sticky; inset-block-start: 88px; padding: 18px; border-radius: var(--r); background: var(--sheet); border: 1px solid var(--line); }
.toc b { display: block; margin-block-end: 8px; font-size: 15px; }
.toc ol { margin: 0; padding: 0; list-style: none; counter-reset: t; }
.toc li { counter-increment: t; } .toc a { display: flex; gap: 10px; align-items: baseline; padding: 6px 10px; border-radius: 10px; font-size: 14px; font-weight: 700; color: var(--ink-soft); text-decoration: none; line-height: 1.5; }
.toc a::before { content: counter(t); color: var(--green); font-weight: 900; min-inline-size: 1.2em; font-variant-numeric: tabular-nums; direction: ltr; }
.toc a:hover { background: var(--wash); color: var(--green); }
.legal { display: grid; gap: 14px; min-inline-size: 0; }
.legal section { padding: 26px 28px; border-radius: var(--r); background: var(--sheet); border: 1px solid var(--line); }
.legal h2 { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; font-size: 1.3rem; font-weight: 900; line-height: 1.35; }
.legal h2 .n { display: inline-grid; place-items: center; flex: none; min-inline-size: 34px; block-size: 34px; border-radius: 10px; background: var(--wash); color: var(--green); font-size: 15px; font-variant-numeric: tabular-nums; direction: ltr; }
.legal p { margin: 0 0 10px; } .legal p:last-child { margin: 0; }
.legal ul { margin: 0; padding-inline-start: 22px; } .legal li { margin-block: 8px; }
.legal .disc { background: var(--sunk); }
.note { margin: 0 0 20px; padding: 12px 18px; border-radius: 14px; background: var(--sheet); border: 1px solid var(--line); font-size: 14px; font-weight: 700; color: var(--muted); }
@media (max-width: 900px) { .doc { grid-template-columns: 1fr; gap: 18px; } .toc { position: static; } .legal section { padding: 22px 20px; } }

/* footer: the pages and the app */
.foot { margin-block-start: 24px; padding: 32px 0; background: var(--sunk); border-block-start: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; align-items: center; }
.foot nav { display: flex; flex-wrap: wrap; gap: 4px 18px; } .foot a { color: var(--green); font-weight: 800; text-decoration: none; padding: 6px 0; display: inline-block; } .foot a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* 404 */
.nf { min-block-size: 46vh; display: grid; place-items: center; text-align: center; padding: 48px 20px; }
.nf .n404 { display: block; font-size: clamp(5rem, 18vw, 9rem); font-weight: 900; line-height: 1; color: var(--green); font-variant-numeric: tabular-nums; direction: ltr; }
.nf h1 { margin: 12px 0 8px; font-size: 1.8rem; font-weight: 900; } .nf p { margin: 0 0 24px; color: var(--muted); }

@media (prefers-reduced-motion: reduce) { * { transition-duration: .01ms !important; } html { scroll-behavior: auto; } }
@media print { .top, .foot, .toc, .pnav, .art { display: none !important; } body { background: #fff; } .legal section, .card { box-shadow: none; break-inside: avoid; } }
