/* سَلِس للجوال — BitSync store identity (paper, ink, Thmanyah display) with Salis colors (navy, cyan, sea). */
@font-face { font-family: Thmanyah; src: url('/assets/thmanyah.otf') format('opentype'); font-weight: 500; font-display: swap; }
:root {
  --paper: #f6f5ef; --surface: #fffefa; --mint: #e9eee4; --line: #dfe4dc; --ink: #172a27; --muted: #66756e;
  --navy: #0b1d38; --navy-2: #13294a; --cyan: #8fe3f7; --sea: #3a7db3; --on-navy: #eaf7fb; --on-navy-muted: #9db7c9;
  --ok: #1f7a4f; --ok-bg: #e2f1e8; --warn: #96600f; --warn-bg: #f8edd8; --bad: #b23a2b; --bad-bg: #f8e3df;
  --radius: 24px; --max: 1120px; color-scheme: light;
  --f-display: Thmanyah, 'Segoe UI', Tahoma, sans-serif; --f-body: 'Segoe UI', Tahoma, Arial, sans-serif; --f-mono: ui-monospace, Consolas, monospace;
}
@media (prefers-color-scheme: dark) { :root {
  --paper: #0c1320; --surface: #111b2b; --mint: #16233a; --line: #23324a; --ink: #eef3f1; --muted: #9aa8b6;
  --ok: #57c48d; --ok-bg: #12301f; --warn: #e2a64b; --warn-bg: #33270f; --bad: #ef7f71; --bad-bg: #3a1c18; color-scheme: dark; } }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.8 var(--f-body); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; } img { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; -webkit-tap-highlight-color: transparent; }
p { color: var(--muted); margin: 0; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 500; line-height: 1.3; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(40px, 7vw, 76px); } h2 { font-size: clamp(28px, 4vw, 42px); } h3 { font-size: 22px; }
.container { width: min(var(--max), calc(100% - 2 * max(20px, env(safe-area-inset-left, 0px)))); margin-inline: auto; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .08em; display: inline-flex; align-items: center; gap: 10px; color: var(--muted); }
.eyebrow::before { content: ''; width: 22px; height: 1px; background: currentColor; }
.latin { direction: ltr; display: inline-block; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 40px; height: 40px; border-radius: 11px; }
.brand b { font-family: var(--f-display); font-weight: 500; font-size: 24px; line-height: 1; }
.brand small { display: block; color: var(--muted); font-size: 11px; letter-spacing: .04em; margin-top: 3px; }
.header-links { display: flex; align-items: center; gap: 22px; font-size: 14px; }
.header-links a:not(.button) { color: var(--muted); }
.header-links a:not(.button):hover { color: var(--ink); }

/* Buttons */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 22px; border-radius: 12px; border: 1px solid transparent;
  background: var(--ink); color: var(--surface); font-weight: 600; font-size: 15px; cursor: pointer; transition: transform .15s, background .2s; touch-action: manipulation; }
.button:active { transform: scale(.98); }
.button.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.button.cyan { background: var(--cyan); color: var(--navy); }
.button.small { min-height: 40px; padding: 8px 16px; font-size: 13px; }
.button:focus-visible, .pick:focus-within { outline: 2px solid var(--sea); outline-offset: 3px; }
.button[aria-disabled="true"], .button:disabled { opacity: .5; cursor: not-allowed; }

/* Hero */
.hero { padding-block: 64px 40px; display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero h1 span { color: var(--sea); }
.hero p.lead { font-size: 18px; margin-top: 18px; max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero-notes { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 26px; font-size: 13px; color: var(--muted); }
.hero-notes span { display: inline-flex; align-items: center; gap: 7px; }
.hero-notes span::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--sea); }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 3px 12px; border-radius: 99px; background: var(--mint); color: var(--ink); }

/* Tool card (Salis navy) */
.tool { background: var(--navy); color: var(--on-navy); border-radius: 32px; padding: clamp(20px, 4vw, 32px); position: relative; overflow: hidden; isolation: isolate; box-shadow: 0 30px 60px -35px rgba(11, 29, 56, .55); }
.tool::before { content: ''; position: absolute; inset: auto -30% -55% auto; width: 90%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(143, 227, 247, .16), transparent); z-index: -1; }
.tool h2 { font-size: 26px; color: var(--on-navy); }
.tool p { color: var(--on-navy-muted); }
.tool-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.tool-head .badge { background: rgba(143, 227, 247, .14); color: var(--cyan); }
.drop { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px; min-height: 190px; padding: 22px;
  border: 1.5px dashed rgba(143, 227, 247, .45); border-radius: 20px; background: rgba(255, 255, 255, .03); cursor: pointer; transition: background .2s, border-color .2s; }
.drop:hover, .drop.over { background: rgba(143, 227, 247, .07); border-color: var(--cyan); }
.drop svg { width: 38px; height: 38px; color: var(--cyan); }
.drop b { font-size: 17px; color: var(--on-navy); }
.drop small { color: var(--on-navy-muted); font-size: 13px; }
.pick { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tool .note { font-size: 12.5px; margin-top: 14px; display: flex; gap: 8px; align-items: flex-start; }
.tool .note svg { width: 16px; height: 16px; flex: none; margin-top: 4px; color: var(--cyan); }

.clip { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; background: rgba(255, 255, 255, .05); border-radius: 16px; padding: 14px 16px; }
.clip b { color: var(--on-navy); overflow-wrap: anywhere; font-weight: 600; }
.clip span { color: var(--on-navy-muted); font-size: 13px; }
.clip button { grid-row: span 2; background: transparent; border: 1px solid rgba(255, 255, 255, .18); color: var(--on-navy); border-radius: 10px; min-height: 38px; padding: 0 12px; cursor: pointer; font-size: 13px; }
.steps { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.steps li { display: grid; grid-template-columns: 26px 1fr auto; align-items: center; gap: 10px; font-size: 14px; color: var(--on-navy-muted); }
.steps li i { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .2); display: grid; place-items: center; font-style: normal; font-size: 12px; }
.steps li.active { color: var(--on-navy); } .steps li.active i { border-color: var(--cyan); color: var(--cyan); }
.steps li.done { color: var(--on-navy); } .steps li.done i { background: var(--cyan); border-color: var(--cyan); color: var(--navy); }
.steps li.fail i { background: #ef7f71; border-color: #ef7f71; color: var(--navy); }
.steps li em { font-style: normal; font-family: var(--f-mono); font-size: 12px; color: var(--on-navy-muted); direction: ltr; }
.bar { height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .1); overflow: hidden; margin-top: 16px; }
.bar > div { height: 100%; width: 0; background: var(--cyan); transition: width .25s linear; }
.verdict { margin-top: 16px; padding: 12px 14px; border-radius: 14px; font-size: 14px; line-height: 1.7; }
.verdict.ok { background: rgba(87, 196, 141, .14); color: #a8ecc8; }
.verdict.warn { background: rgba(226, 166, 75, .14); color: #f4cf92; }
.verdict.bad { background: rgba(239, 127, 113, .14); color: #f8b4aa; }
.result { margin-top: 16px; display: flex; flex-direction: column; gap: 12px; }
.result .stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.result .stat { background: rgba(255, 255, 255, .05); border-radius: 14px; padding: 10px 12px; min-width: 0; }
.result .stat b { display: block; font-family: var(--f-mono); font-size: 16px; color: var(--on-navy); direction: ltr; text-align: right; font-variant-numeric: tabular-nums; }
.result .stat span { font-size: 12px; color: var(--on-navy-muted); }
.tool .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.tool .button.ghost { color: var(--on-navy); border-color: rgba(255, 255, 255, .2); }

/* Sections */
.section { padding-block: 64px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 28px; flex-wrap: wrap; }
.section-head p { max-width: 380px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.card .num { font-family: var(--f-display); font-size: 34px; line-height: 1; color: var(--sea); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.list li { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); font-size: 15px; }
.list li::before { content: ''; flex: none; width: 18px; height: 18px; margin-top: 5px; border-radius: 50%; background: var(--ok-bg) center/11px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.5 5 9l5-6' fill='none' stroke='%231f7a4f' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); }
.list.no li::before { background: var(--bad-bg) center/9px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M2 2l6 6M8 2 2 8' stroke='%23b23a2b' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); }
.app-band { background: var(--mint); border-radius: 32px; padding: clamp(24px, 5vw, 44px); display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; }
.app-band img { width: 72px; height: 72px; border-radius: 18px; }
details.faq { border-bottom: 1px solid var(--line); padding-block: 16px; }
details.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
details.faq summary::after { content: '+'; color: var(--muted); font-size: 20px; line-height: 1; }
details.faq[open] summary::after { content: '−'; }
details.faq p { margin-top: 10px; }
details.tech { margin-top: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 14px 18px; }
details.tech summary { cursor: pointer; font-size: 14px; color: var(--muted); }
details.tech textarea { width: 100%; min-height: 180px; margin-top: 12px; font: 12px/1.5 var(--f-mono); direction: ltr; background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-radius: 12px; padding: 10px; }
.notice { background: var(--warn-bg); color: var(--warn); font-size: 14px; }
.notice .container { padding-block: 10px; }
.site-footer { border-top: 1px solid var(--line); padding-block: 32px 48px; margin-top: 32px; }
.site-footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; font-size: 13px; color: var(--muted); }
.site-footer img { height: 22px; width: auto; }
.wm-dark { display: none; }
@media (prefers-color-scheme: dark) { .wm-light { display: none; } .wm-dark { display: block; } }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-block: 36px 24px; gap: 32px; }
  .grid3 { grid-template-columns: 1fr; } .split { grid-template-columns: 1fr; }
  .app-band { grid-template-columns: 1fr; text-align: start; }
  .header-links .hide-sm { display: none; }
}
@media (max-width: 420px) { .result .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
