/* SmartBorsa landing: a bright, calm page whose proof is the real product. DESIGN.md palette (mint canvas, white sheets, growth green), Cairo, Arabic first, RTL, logical properties. One authored motion: sections rise into view (off under reduced motion). */
:root {
    --canvas: #F1F5F2; --sunk: #E6EEE9; --sheet: #FFFFFF; --ink: #0F172A; --ink-soft: #334155; --muted: #566579;
    --green: #0B5E3F; --green-deep: #094D34; --wash: #E2F5E9; --bright: #16A34A; --loss: #DC2626; --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 -32px rgba(15, 23, 42, .3); --shadow-sm: 0 12px 28px -18px rgba(15, 23, 42, .28);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; font-family: 'Cairo', system-ui, sans-serif; color: var(--ink); background: var(--canvas); line-height: 1.7; font-size: 16px; -webkit-font-smoothing: antialiased; }
img { max-inline-size: 100%; }
a { color: inherit; }
::selection { background: var(--wash); color: var(--green); }
.sr, .skip:not(:focus) { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; inset: 8px 8px auto auto; z-index: 100; background: #fff; padding: 8px 14px; border-radius: 10px; }
.wrap { inline-size: min(1180px, 100% - 40px); margin-inline: auto; }
.narrow { inline-size: min(780px, 100% - 40px); }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 6px; }

/* header */
.top { position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; align-items: center; gap: 20px; padding: 10px max(20px, calc((100% - 1180px) / 2)); background: rgba(241, 245, 242, .86); backdrop-filter: blur(14px); border-block-end: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 900; font-size: 18px; text-decoration: none; }
.brand img { border-radius: 10px; }
.nav { display: flex; gap: 24px; margin-inline-start: auto; font-size: 15px; font-weight: 700; color: var(--ink-soft); }
.nav a { text-decoration: none; padding-block: 8px; border-block-end: 2px solid transparent; transition: color .2s, border-color .2s; }
.nav a:hover { color: var(--green); border-color: var(--green); }
@media (max-width: 820px) { .nav { display: none; } .top .btn.quiet { margin-inline-start: auto; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-block-size: 44px; padding: 0 22px; border: 1.5px solid transparent; border-radius: 14px; font: inherit; font-size: 15px; font-weight: 800; cursor: pointer; text-decoration: none; transition: transform .2s var(--ease), background .2s, border-color .2s, color .2s; }
.btn:active { transform: scale(.98); }
.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, .btn.outline { background: transparent; color: var(--green); border-color: var(--line-strong); }
.btn.quiet:hover, .btn.outline:hover { background: var(--wash); border-color: var(--green); }
.btn.wide { inline-size: 100%; } .btn.big { min-block-size: 54px; padding: 0 30px; font-size: 17px; }
.top-cta { min-block-size: 40px; padding: 0 18px; font-size: 14px; }

/* hero: the product is the proof, shown large */
.hero { padding: 128px 0 72px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.15fr); gap: 56px; align-items: center; }
h1 { margin: 0 0 20px; font-size: clamp(2.4rem, 5.2vw, 4.1rem); line-height: 1.18; font-weight: 900; text-wrap: balance; }
h1 .em { color: var(--green); }
.lead { margin: 0 0 28px; max-inline-size: 56ch; font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--ink-soft); }
.lead.dim { color: var(--muted); font-size: 1.05rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 26px 0 0; padding: 0; list-style: none; font-size: 14px; font-weight: 700; color: var(--ink-soft); }
.facts li, .ticks li { position: relative; padding-inline-start: 24px; }
.facts li::before, .ticks li::before { content: ""; position: absolute; inset-inline-start: 2px; inset-block-start: .45em; inline-size: 6px; block-size: 11px; border: solid var(--green); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }

.hero-demo { position: relative; padding: 0 0 28px; }
.hero-demo::before { content: ""; position: absolute; inset: 7% -5% 0 8%; border-radius: 32px; background: var(--wash); z-index: 0; }
.sheet { position: relative; z-index: 1; margin: 0; border-radius: var(--r); overflow: hidden; background: var(--sheet); border: 1px solid var(--line); box-shadow: var(--shadow); }
.sheet img { display: block; inline-size: 100%; block-size: auto; }
.bar, .chrome { display: flex; align-items: center; gap: 6px; padding: 10px 16px; background: var(--sunk); font-size: 12px; color: var(--muted); border-block-end: 1px solid var(--line); }
.bar i, .chrome i { inline-size: 10px; block-size: 10px; border-radius: 50%; background: #C3CDC8; }
.bar span { margin-inline-start: auto; }
.tag { position: absolute; z-index: 2; display: grid; padding: 12px 18px; border-radius: 16px; background: var(--sheet); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.tag b { font-size: 15px; } .tag small { color: var(--muted); font-size: 13px; font-weight: 700; }
.tag.t1 { inset-block-end: 0; inset-inline-start: -14px; } .tag.t2 { inset-block-start: 4%; inset-inline-end: -12px; }
@media (max-width: 960px) { .hero { padding-top: 108px; } .hero-grid { grid-template-columns: 1fr; gap: 44px; } .tag.t1 { inset-inline-start: 8px; } .tag.t2 { inset-inline-end: 8px; } }

/* what is inside */
.caps { border-block: 1px solid var(--line); background: var(--sheet); }
.caps-in { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 12px; margin-block: 0; padding: 18px 0; list-style: none; }
.caps-in li { padding: 7px 16px; border-radius: 999px; background: var(--canvas); border: 1px solid var(--line); font-size: 14px; font-weight: 800; color: var(--ink-soft); }

/* sections */
.sec { padding: 96px 0; } .sec.soft { background: var(--sunk); } .sec.wash { background: var(--wash); }
h2 { margin: 0 0 40px; font-size: clamp(1.75rem, 3.4vw, 2.7rem); line-height: 1.25; font-weight: 900; text-wrap: balance; max-inline-size: 22ch; }
h3 { margin: 0 0 8px; font-size: 1.15rem; font-weight: 900; }
.steps p, .tile p, .cols3 p { margin: 0; color: var(--muted); }

.showcase { background: var(--sheet); }
.tabs { display: inline-flex; gap: 4px; padding: 4px; margin-block-end: 22px; border-radius: 16px; background: var(--canvas); border: 1px solid var(--line); flex-wrap: wrap; }
.tabs button { min-block-size: 44px; padding: 0 22px; border: 0; border-radius: 12px; background: transparent; font: inherit; font-weight: 800; color: var(--muted); cursor: pointer; transition: background .2s, color .2s; }
.tabs button:hover { color: var(--green); }
.tabs button[aria-selected="true"] { background: var(--green); color: #fff; }
.stage { border-radius: 22px; overflow: hidden; background: var(--sunk); border: 1px solid var(--line); box-shadow: var(--shadow); }
.stage img { display: block; inline-size: 100%; block-size: auto; } .stage img[hidden] { display: none; }
.note { margin: 14px 0 0; color: var(--muted); font-size: 14px; }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin: 0; padding: 0; list-style: none; }
.steps li { padding-block-start: 24px; border-block-start: 1px solid var(--line-strong); }
.steps .n { display: grid; place-items: center; inline-size: 48px; block-size: 48px; margin-block-end: 18px; border-radius: 50%; background: var(--wash); color: var(--green); font-weight: 900; font-size: 22px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; gap: 28px; } }

.hint-p { margin: -24px 0 28px; color: var(--muted); font-size: 14px; font-weight: 700; }
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
.tile { grid-column: span 2; padding: 28px; border-radius: var(--r); background: var(--sheet); border: 1px solid var(--line); transition: transform .35s var(--ease), box-shadow .35s; }
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.tile.big { grid-column: span 4; background: var(--wash); border-color: transparent; }
.tile.wide { grid-column: span 4; }
.bento .tile:last-child { grid-column: span 6; }
.tile[data-show] { cursor: pointer; } .tile[data-show]:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.chips li { padding: 6px 14px; border-radius: 999px; background: var(--sheet); border: 1px solid var(--line); font-size: 13px; font-weight: 800; color: var(--green); }
.tile:not(.big) .chips li { background: var(--wash); border-color: transparent; }
.rule { margin-block-start: 18px; padding: 14px 18px; border-radius: 14px; background: var(--wash); font-weight: 700; font-size: 15px; } .rule em { font-style: normal; color: var(--green); font-weight: 900; }
@media (max-width: 860px) { .bento { grid-template-columns: 1fr; } .tile, .tile.big, .tile.wide, .bento .tile:last-child { grid-column: auto; } }

.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 64px; align-items: center; }
@media (max-width: 900px) { .two { grid-template-columns: 1fr; gap: 40px; } }
.calc .btn { margin-block-start: 8px; }
.calc-card { padding: 24px; border-radius: 24px; background: var(--sheet); border: 1px solid var(--line); box-shadow: var(--shadow); display: grid; gap: 18px; }
.calc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.calc-grid label { display: grid; gap: 4px; font-size: 13px; font-weight: 800; }
.calc-grid input { min-block-size: 46px; padding: 0 12px; border: 1.5px solid var(--line); border-radius: 12px; font: inherit; font-size: 16px; background: #fff; color: var(--ink); }
.calc-grid input:focus, #auth-form input:focus { outline: 0; border-color: var(--green); box-shadow: 0 0 0 4px rgba(11, 94, 63, .15); }
.calc-out { display: grid; gap: 14px; }
.net { padding: 16px 18px; border-radius: 18px; background: var(--canvas); display: grid; gap: 2px; } .net small { color: var(--muted); font-weight: 800; font-size: 13px; } .net b { font-size: 28px; line-height: 1.2; font-weight: 900; } .net span { font-weight: 800; font-size: 14px; }
.net.up { background: var(--wash); } .net.up b, .net.up span { color: var(--green); } .net.down { background: var(--loss-wash); } .net.down b, .net.down span { color: #B91C1C; }
.calc-out dl { margin: 0; display: grid; gap: 8px; } .calc-out dl > div { display: flex; justify-content: space-between; gap: 12px; padding-block: 8px; border-block-end: 1px dashed var(--line); } .calc-out dt { color: var(--muted); font-weight: 700; font-size: 14px; } .calc-out dd { margin: 0; font-weight: 900; font-variant-numeric: tabular-nums; }
.fine { margin: 10px 0 0; font-size: 13px; color: var(--muted); } .fine a { color: var(--green); font-weight: 800; }
@media (max-width: 520px) { .calc-grid { grid-template-columns: 1fr; } }

.ticks { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; } .ticks li { font-weight: 700; }
.btn.see { margin-block-start: 24px; }
.ticket { padding: 22px; border-radius: 24px; background: var(--sheet); box-shadow: var(--shadow); border: 1px solid var(--line); display: grid; gap: 12px; }
.ticket .seg { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 14px; background: var(--canvas); } .ticket .seg b { padding: 10px; text-align: center; border-radius: 11px; color: var(--muted); } .ticket .seg b.on { background: #fff; color: var(--green); box-shadow: 0 2px 8px rgba(15, 23, 42, .1); }
.ticket .fld { display: grid; gap: 2px; padding: 10px 14px; border-radius: 12px; border: 1.5px solid var(--line); } .ticket .fld small { color: var(--muted); font-size: 13px; font-weight: 700; } .ticket .fld span { font-weight: 800; }
.ticket .qk { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 3px; border-radius: 12px; background: var(--canvas); } .ticket .qk b { padding: 9px 8px; text-align: center; font-size: 13px; border-radius: 9px; }
.ticket .sum { display: flex; justify-content: space-between; padding-block-start: 6px; border-block-start: 1px dashed var(--line); } .ticket .go { padding: 14px; border-radius: 14px; background: var(--green); color: #fff; text-align: center; font-weight: 900; }

.cols3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; } .cols3 > div { padding-block-start: 20px; border-block-start: 1px solid var(--line-strong); } .cols3 h3 { color: var(--green); }
@media (max-width: 860px) { .cols3 { grid-template-columns: 1fr; gap: 28px; } }

details { margin-block-end: 12px; border-radius: 16px; background: var(--sheet); border: 1px solid var(--line); overflow: hidden; }
summary { cursor: pointer; padding: 18px 22px; font-weight: 800; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; min-block-size: 44px; } summary::-webkit-details-marker { display: none; }
summary::after { content: ""; flex: none; inline-size: 9px; block-size: 9px; border: solid var(--green); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); transition: transform .25s; } details[open] summary::after { transform: rotate(-135deg); }
details p { margin: 0; padding: 0 22px 20px; color: var(--muted); }

.join { background: var(--sheet); }
.join .direct { margin-block-start: 6px; }
.card.auth { inline-size: 100%; max-inline-size: 460px; justify-self: end; padding: 20px; border-radius: 24px; background: var(--canvas); border: 1px solid var(--line); box-shadow: var(--shadow); }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin-block-end: 14px; border-radius: 14px; background: var(--sunk); }
.auth-tabs button { min-block-size: 44px; border: 0; border-radius: 11px; background: transparent; font: inherit; font-weight: 800; color: var(--muted); cursor: pointer; }
.auth-tabs button[aria-selected="true"] { background: #fff; color: var(--green); box-shadow: 0 2px 8px rgba(15, 23, 42, .12); }
#auth-form label { display: block; margin: 10px 0 4px; font-size: 13px; font-weight: 800; }
#auth-form input { inline-size: 100%; min-block-size: 46px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; font: inherit; font-size: 16px; color: var(--ink); text-align: start; transition: border-color .2s, box-shadow .2s; }
.msg { min-block-size: 22px; margin: 8px 0 6px; font-size: 13px; font-weight: 700; color: #B91C1C; } .msg.ok { color: var(--green); }
@media (max-width: 900px) { .card.auth { justify-self: stretch; max-inline-size: none; } }

.foot { background: var(--sunk); color: var(--muted); padding: 28px 0; font-size: 13px; border-block-start: 1px solid var(--line); } .foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; } .foot a { color: var(--green); font-weight: 800; }

/* the way in stays with the phone visitor once the first screen is behind them */
.fab { position: fixed; inset-inline: 16px; inset-block-end: 16px; z-index: 60; display: none; } .fab[hidden] { display: none !important; }
@media (max-width: 820px) { .fab:not([hidden]) { display: block; } .top-cta { display: none; } }

/* the one motion: sections rise into view. Content is visible without script and under reduced motion. */
.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js [data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { * { transition-duration: .01ms !important; } .js [data-reveal] { opacity: 1; transform: none; } html { scroll-behavior: auto; } }
