/* SmartTawsil landing v4. Dark product page, one warm accent, RTL-safe (logical properties). */

:root {
  --ink: #0b0d12;
  --ink-2: #11141b;
  --panel: #151922;
  --panel-2: #1b2029;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #eef0f4;
  --muted: #9aa1ad;
  --dim: #6b7280;
  --accent: #ff7a3d;
  --accent-2: #ffb36b;
  --accent-soft: rgba(255, 122, 61, 0.14);
  --ok: #3ddc97;
  --run: #6aa8ff;
  --wait: #f5c451;
  --bad: #ff6b6b;
  --radius: 16px;
  --radius-sm: 10px;
  --wrap: 1200px;
  --font: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: dark;
}

[dir="rtl"] {
  --font: "IBM Plex Sans Arabic", "Geist", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--accent); color: #140a04; padding: 8px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }

.code, .kpi__value, .amount, .flow__n, .steps__n, .money__amt, .ledger td, .device__url { font-family: var(--mono); font-feature-settings: "tnum"; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font-weight: 600; font-size: 15px; white-space: nowrap;
  transition: transform 0.2s var(--ease), background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.btn--sm { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn--primary { background: var(--accent); color: #170b04; box-shadow: 0 8px 30px -8px rgba(255, 122, 61, 0.6); }
.btn--primary:hover { background: var(--accent-2); transform: translateY(-1px); }
.btn--ghost { border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.03); }
.btn--ghost:hover { border-color: rgba(255, 255, 255, 0.3); background: rgba(255, 255, 255, 0.06); }
.btn__arrow { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.2s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(3px); }
[dir="rtl"] .btn__arrow { transform: scaleX(-1); }
[dir="rtl"] .btn:hover .btn__arrow { transform: scaleX(-1) translateX(3px); }

/* Top bar */
.topbar { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid transparent; transition: background 0.3s, border-color 0.3s; }
.topbar.is-scrolled { background: rgba(11, 13, 18, 0.78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--line); }
.topbar__inner { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.wordmark { display: inline-flex; align-items: center; }
/* Generated lockups (brand/scripts/generate-brand-assets.ts); the Arabic one shows on RTL pages. */
.wordmark__logo { display: block; height: 32px; width: auto; }
.wordmark__logo--arabic { display: none; }
[dir="rtl"] .wordmark__logo--latin { display: none; }
[dir="rtl"] .wordmark__logo--arabic { display: block; }
.topnav { display: flex; gap: 26px; font-size: 14px; color: var(--muted); }
.topnav a:hover { color: var(--text); }
.topbar__actions { margin-inline-start: auto; display: flex; align-items: center; gap: 14px; }
.link-login { font-size: 14px; color: var(--muted); }
.link-login:hover { color: var(--text); }

.lang { position: relative; }
.lang__toggle { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 13px; font-weight: 600; }
.lang__toggle svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.lang__list { position: absolute; inset-inline-end: 0; top: calc(100% + 8px); min-width: 160px; background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 12px; padding: 6px; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5); }
.lang__list button { width: 100%; text-align: start; padding: 9px 12px; border-radius: 8px; font-size: 14px; }
.lang__list button:hover, .lang__list button[aria-current="true"] { background: rgba(255, 255, 255, 0.06); }
.lang__list button[aria-current="true"] { color: var(--accent-2); }

/* Shared bits */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 10px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 13px; color: var(--muted); background: rgba(255, 255, 255, 0.03); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(61, 220, 151, 0.6); animation: pulse 2s infinite; flex: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(61, 220, 151, 0.55); } 70% { box-shadow: 0 0 0 9px rgba(61, 220, 151, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 220, 151, 0); } }
.kicker { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 14px; }
[dir="rtl"] .kicker { letter-spacing: 0; font-family: var(--font); font-size: 14px; }
.tag { font-size: 12px; padding: 3px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-2); }
.tag--ghost { background: rgba(255, 255, 255, 0.05); color: var(--muted); }
.status { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.s-ok { background: rgba(61, 220, 151, 0.13); color: var(--ok); }
.s-run { background: rgba(106, 168, 255, 0.14); color: var(--run); }
.s-wait { background: rgba(245, 196, 81, 0.14); color: var(--wait); }
.s-bad { background: rgba(255, 107, 107, 0.14); color: var(--bad); }
.hl { color: var(--accent-2); }
.hl.ok { color: var(--ok); }
.demo-note { margin-top: 18px; text-align: center; font-size: 12px; color: var(--dim); font-family: var(--mono); }
.demo-note--left { text-align: start; }
[dir="rtl"] .demo-note { font-family: var(--font); }
.ui-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 13px; color: var(--muted); }
.ui-row:last-child { border-bottom: 0; }
.ui-row b { color: var(--text); font-family: var(--mono); font-weight: 500; }
.ui-row--total { border-top: 1px solid var(--line-2); border-bottom: 0; margin-top: 4px; }

/* Hero */
.hero { position: relative; padding: 72px 0 110px; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.hero__grid {
  position: absolute; inset: -1px;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
}
.hero__glow { position: absolute; left: 50%; top: 42%; width: 1100px; height: 700px; transform: translate(-50%, -20%); background: radial-gradient(closest-side, rgba(255, 122, 61, 0.32), rgba(255, 122, 61, 0.08) 55%, transparent 75%); filter: blur(10px); }
.hero__copy { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero__title { margin-top: 26px; font-size: clamp(40px, 6.4vw, 80px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 600; max-width: 14ch; }
.hero__title span { display: block; }
.hero__title-accent { background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
[dir="rtl"] .hero__title { letter-spacing: 0; line-height: 1.25; max-width: 18ch; }
.hero__lede { margin-top: 24px; max-width: 640px; font-size: clamp(17px, 1.6vw, 19px); color: var(--muted); }
.hero__ctas { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.hero__chips { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: center; font-size: 13px; color: var(--dim); }
.hero__chips li { display: inline-flex; align-items: center; gap: 8px; }
.hero__chips li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }

.hero__stage { position: relative; margin-top: 64px; perspective: 1800px; }
.device {
  position: relative; border-radius: 18px; padding: 1px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.04) 40%, rgba(255, 122, 61, 0.25));
  box-shadow: 0 60px 120px -30px rgba(0, 0, 0, 0.8), 0 0 80px -20px rgba(255, 122, 61, 0.35);
  transform: rotateX(8deg); transform-origin: 50% 0; transition: transform 1.2s var(--ease);
}
.hero__stage.is-in .device { transform: rotateX(0deg); }
.device > * { position: relative; }
.device__bar { display: flex; align-items: center; gap: 7px; height: 40px; padding: 0 16px; background: #0f1218; border-radius: 17px 17px 0 0; border-bottom: 1px solid var(--line); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.14); }
.device__url { margin-inline: auto; font-size: 12px; color: var(--dim); padding: 3px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.04); }
.app { display: grid; grid-template-columns: 190px 1fr; background: #0f1218; border-radius: 0 0 17px 17px; overflow: hidden; }
.app__side { display: flex; flex-direction: column; gap: 4px; padding: 18px 14px; border-inline-end: 1px solid var(--line); font-size: 13px; color: var(--dim); }
.app__logo { display: block; width: 26px; height: 26px; border-radius: 8px; margin: 0 6px 18px; }
.app__nav { padding: 8px 10px; border-radius: 8px; }
.app__nav.is-active { background: rgba(255, 255, 255, 0.06); color: var(--text); }
.app__main { padding: 22px; min-width: 0; }
.app__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.app__kicker { font-size: 12px; color: var(--dim); }
.app__title { font-size: 20px; font-weight: 600; }
.live { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ok); padding: 5px 12px; border-radius: 999px; background: rgba(61, 220, 151, 0.1); }

.kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.kpi { position: relative; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); overflow: hidden; min-width: 0; }
.kpi--accent { border-color: rgba(255, 122, 61, 0.35); background: linear-gradient(180deg, rgba(255, 122, 61, 0.12), var(--panel)); }
.kpi__label { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi__value { margin-top: 6px; font-size: 24px; font-weight: 500; letter-spacing: -0.02em; white-space: nowrap; }
.kpi__value small { font-size: 12px; color: var(--muted); margin-inline-start: 2px; }
.kpi__delta { font-size: 12px; color: var(--muted); margin-top: 2px; }
.kpi__delta.is-up { color: var(--ok); }
.kpi__delta.is-down { color: var(--ok); }
.spark { width: 100%; height: 28px; margin-top: 8px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.spark path { stroke-dasharray: 140; stroke-dashoffset: 140; transition: stroke-dashoffset 1.6s var(--ease) 0.4s; }
.is-in .spark path { stroke-dashoffset: 0; }
.spark--muted { stroke: var(--dim); }
.bars { display: flex; align-items: flex-end; gap: 4px; height: 28px; margin-top: 8px; }
.bars i { flex: 1; height: calc(var(--h) * 100%); border-radius: 3px; background: linear-gradient(180deg, var(--accent-2), rgba(255, 122, 61, 0.25)); }

.app__grid { display: grid; grid-template-columns: 1fr 1.35fr; gap: 12px; margin-top: 12px; }
.panel { border: 1px solid var(--line); border-radius: 12px; background: var(--panel); padding: 14px; min-width: 0; }
.panel__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; font-size: 13px; font-weight: 600; }
.map { position: relative; height: 220px; border-radius: 10px; overflow: hidden; background: #0d1219; }
.map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map__roads path { fill: none; stroke: rgba(255, 255, 255, 0.12); stroke-width: 3; }
.map__minor path { fill: none; stroke: rgba(255, 255, 255, 0.05); stroke-width: 1.5; }
.map__route { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 6 8; animation: dash 1.4s linear infinite; filter: drop-shadow(0 0 6px rgba(255, 122, 61, 0.7)); }
@keyframes dash { to { stroke-dashoffset: -28; } }
.pin { position: absolute; left: var(--x); top: var(--y); width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--run); box-shadow: 0 0 0 4px rgba(106, 168, 255, 0.18); }
.pin--a { background: var(--accent); box-shadow: 0 0 0 5px rgba(255, 122, 61, 0.22), 0 0 18px rgba(255, 122, 61, 0.8); animation: drift 6s ease-in-out infinite; }
.pin--c { animation: drift 7s ease-in-out infinite reverse; }
.pin--d { background: var(--ok); box-shadow: 0 0 0 4px rgba(61, 220, 151, 0.18); }
.pin--depot { width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 5px; background: var(--text); box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.1); }
@keyframes drift { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(10px, -6px); } }

.rows li { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.rows li:last-child { border-bottom: 0; }
.rows .code { color: var(--muted); font-size: 12px; }
.row__city { color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.amount { font-size: 12px; color: var(--muted); }

.phone {
  position: absolute; inset-inline-end: -28px; bottom: -64px; width: 228px; padding: 10px;
  border-radius: 38px; background: #07080b; border: 1px solid var(--line-2);
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.9), 0 0 0 6px rgba(255, 255, 255, 0.02);
  transform: translateY(30px); opacity: 0; transition: transform 1.1s var(--ease) 0.35s, opacity 0.9s 0.35s;
}
.hero__stage.is-in .phone { transform: translateY(0); opacity: 1; }
.phone__notch { width: 80px; height: 20px; margin: 2px auto 6px; border-radius: 999px; background: #000; }
.phone__screen { border-radius: 28px; background: var(--ink-2); padding: 16px 14px 14px; }
.phone__kicker { font-size: 11px; color: var(--dim); }
.phone__title { font-size: 15px; font-weight: 600; line-height: 1.3; }
.phone__progress { height: 5px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); margin: 10px 0 12px; overflow: hidden; }
.phone__progress span { display: block; height: 100%; width: calc(var(--p) * 100%); background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius: inherit; }
.stop { padding: 10px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); margin-bottom: 8px; }
.stop.is-next { border-color: rgba(255, 122, 61, 0.45); background: linear-gradient(180deg, rgba(255, 122, 61, 0.1), var(--panel)); }
.stop__code { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.stop__line { font-size: 13px; font-weight: 500; }
.stop__cod { font-size: 12px; color: var(--muted); margin-top: 4px; }
.stop__cod strong { color: var(--accent-2); font-family: var(--mono); font-weight: 500; }
.stop__actions { display: flex; gap: 6px; margin-top: 8px; }
.mini { flex: 1; text-align: center; font-size: 11px; font-weight: 600; padding: 7px 4px; border-radius: 8px; background: rgba(255, 255, 255, 0.06); }
.mini--ok { background: var(--ok); color: #04140c; }
.phone__wallet { display: flex; justify-content: space-between; align-items: center; margin-top: 4px; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.04); font-size: 12px; color: var(--muted); }
.phone__wallet strong { color: var(--text); font-family: var(--mono); font-weight: 500; white-space: nowrap; }

/* Strip */
.strip { border-block: 1px solid var(--line); background: var(--ink-2); margin-top: 60px; }
.strip__inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.strip p { padding: 26px 22px; display: flex; flex-direction: column; gap: 2px; border-inline-start: 1px solid var(--line); }
.strip p:first-child { border-inline-start: 0; padding-inline-start: 0; }
.strip strong { font-size: 18px; font-weight: 600; }
.strip span { font-size: 14px; color: var(--muted); }

/* Sections */
.section { padding: clamp(80px, 10vw, 128px) 0; }
.section__head { max-width: 760px; margin-bottom: 56px; }
.section__head--center { margin-inline: auto; text-align: center; display: flex; flex-direction: column; align-items: center; }
.section h2, .final h2 { font-size: clamp(30px, 4vw, 48px); line-height: 1.1; letter-spacing: -0.03em; font-weight: 600; }
[dir="rtl"] .section h2, [dir="rtl"] .final h2 { letter-spacing: 0; line-height: 1.35; }
.section__lede { margin-top: 18px; font-size: 18px; color: var(--muted); max-width: 640px; }

/* Segments */
.segs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.seg { position: relative; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, var(--panel), var(--ink-2)); transition: border-color 0.3s, transform 0.3s var(--ease); }
.seg:hover { border-color: rgba(255, 122, 61, 0.4); transform: translateY(-3px); }
.seg__ui { padding: 6px 14px; border-radius: 12px; background: #0e1117; border: 1px solid var(--line); margin-bottom: 22px; }
.seg h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.seg p { margin-top: 8px; font-size: 14px; color: var(--muted); }

/* Flow */
.section--flow { background: radial-gradient(ellipse 80% 60% at 50% 100%, rgba(255, 122, 61, 0.09), transparent 70%), var(--ink-2); border-block: 1px solid var(--line); }
.flow__steps { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.flow__steps button { width: 100%; text-align: start; padding: 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: 15px; color: var(--muted); transition: all 0.3s var(--ease); }
.flow__steps button:hover { color: var(--text); border-color: var(--line-2); }
.flow__steps button[aria-selected="true"] { color: var(--text); border-color: rgba(255, 122, 61, 0.55); background: var(--accent-soft); box-shadow: 0 0 30px -10px rgba(255, 122, 61, 0.6); }
.flow__n { font-size: 12px; font-weight: 400; color: var(--dim); }
.flow__steps button[aria-selected="true"] .flow__n { color: var(--accent-2); }
.flow__rail { height: 2px; margin: 18px 0 28px; background: var(--line); border-radius: 2px; overflow: hidden; }
.flow__rail span { display: block; height: 100%; width: 16.66%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width 0.6s var(--ease); }
[dir="rtl"] .flow__rail { transform: scaleX(-1); }
.flow__panel { position: relative; min-height: 270px; }
.flow__card { display: none; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.flow__card.is-active { display: grid; animation: fadeUp 0.5s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.flow__text h3 { font-size: 28px; font-weight: 600; letter-spacing: -0.02em; }
.flow__text p { margin-top: 12px; font-size: 17px; color: var(--muted); max-width: 46ch; }
.mock { padding: 18px 20px; border-radius: var(--radius); border: 1px solid var(--line-2); background: var(--panel); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8); }
.mock__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); font-weight: 600; font-size: 14px; }
.mock__top .code { color: var(--accent-2); font-size: 13px; }
.mock .status { margin-top: 12px; }
.barcode { height: 46px; margin-top: 12px; border-radius: 6px; background: repeating-linear-gradient(90deg, var(--text) 0 2px, transparent 2px 4px, var(--text) 4px 5px, transparent 5px 8px, var(--text) 8px 11px, transparent 11px 13px); opacity: 0.85; }
.scanbox { position: relative; display: grid; place-items: center; height: 96px; margin-bottom: 8px; border-radius: 12px; border: 1px dashed rgba(255, 122, 61, 0.5); overflow: hidden; }
.scanbox .code { font-size: 18px; }
.scanline { position: absolute; inset-inline: 10px; height: 2px; top: 10%; background: var(--accent); box-shadow: 0 0 14px var(--accent); animation: scan 2.2s ease-in-out infinite; }
@keyframes scan { 50% { top: 88%; } }
.mock--dispatch { display: grid; gap: 10px; }
.lane { display: flex; justify-content: space-between; align-items: center; padding: 14px; border-radius: 12px; background: #0e1117; border: 1px solid var(--line); font-size: 14px; }
.chip-n { font-family: var(--mono); font-size: 13px; padding: 2px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-2); }
.mock--outcome { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile { display: grid; place-items: center; min-height: 84px; border-radius: 14px; background: #0e1117; border: 1px solid var(--line); font-weight: 600; font-size: 15px; text-align: center; padding: 8px; }
.tile--ok { background: rgba(61, 220, 151, 0.14); border-color: rgba(61, 220, 151, 0.4); color: var(--ok); }
.tile--bad { background: rgba(255, 107, 107, 0.1); border-color: rgba(255, 107, 107, 0.35); color: var(--bad); }

/* Tour */
.tour__tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 999px; border: 1px solid var(--line); background: var(--ink-2); margin-bottom: 36px; }
.tour__tabs button { padding: 10px 18px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--muted); transition: all 0.25s; }
.tour__tabs button[aria-selected="true"] { background: var(--text); color: var(--ink); }
.tour__pane { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }
.tour__pane[hidden] { display: none; }
.tour__pane:not([hidden]) { animation: fadeUp 0.5s var(--ease); }
.tour__copy h3 { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.2; font-weight: 600; letter-spacing: -0.02em; }
.tour__copy p { margin-top: 14px; color: var(--muted); font-size: 17px; }
.ticks { margin-top: 22px; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: baseline; font-size: 15px; }
.ticks li::before { content: ""; flex: none; width: 14px; height: 8px; border-inline-start: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg) translateY(-3px); }
[dir="rtl"] .ticks li::before { transform: scaleX(-1) rotate(-45deg) translateY(-3px); }
.screen { border-radius: 18px; border: 1px solid var(--line-2); background: var(--panel); padding: 18px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.9), 0 0 60px -30px rgba(255, 122, 61, 0.5); }
.screen__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); font-weight: 600; font-size: 14px; }
.screen__head .code { color: var(--accent-2); font-size: 13px; }
.screen__foot { display: flex; justify-content: space-between; align-items: center; padding-top: 12px; margin-top: 4px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.screen__foot b { font-family: var(--mono); color: var(--text); font-size: 16px; font-weight: 500; }
.screen__foot b.hl { color: var(--accent-2); }
.feed li { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.feed li:last-child { border-bottom: 0; }
.feed .code { color: var(--muted); font-size: 13px; }
.ok-dot, .warn-dot { font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.ok-dot { color: var(--ok); }
.warn-dot { color: var(--wait); }
.ok-dot::before, .warn-dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.feed li:first-child { animation: flash 2.4s ease-in-out infinite; }
@keyframes flash { 0%, 100% { background: transparent; } 50% { background: rgba(61, 220, 151, 0.06); } }
.screen--map { padding: 10px; }
.map--big { height: 340px; }
.map__card { position: absolute; inset-inline-start: 50%; top: 18%; margin-inline-start: 12px; padding: 10px 14px; border-radius: 12px; background: rgba(21, 25, 34, 0.92); border: 1px solid var(--line-2); font-size: 13px; color: var(--muted); backdrop-filter: blur(6px); }
.map__card b { color: var(--text); }
.ledger { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 6px; }
.ledger th { text-align: start; font-weight: 500; color: var(--dim); padding: 10px 6px; border-bottom: 1px solid var(--line); }
.ledger td { padding: 11px 6px; border-bottom: 1px solid var(--line); color: var(--muted); }
.ledger td:last-child { color: var(--text); }
.ledger th:not(:first-child), .ledger td:not(:first-child) { text-align: end; }
.timeline { position: relative; display: grid; gap: 20px; padding: 10px 0 6px; padding-inline-start: 26px; }
.timeline::before { content: ""; position: absolute; inset-inline-start: 7px; top: 16px; bottom: 16px; width: 2px; background: var(--line-2); }
.timeline li { position: relative; display: flex; flex-direction: column; font-size: 14px; }
.timeline li::before { content: ""; position: absolute; inset-inline-start: -26px; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--panel); border: 2px solid var(--line-2); }
.timeline li.done::before { background: var(--ok); border-color: var(--ok); }
.timeline li.now::before { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 5px rgba(255, 122, 61, 0.2); }
.timeline span { color: var(--muted); font-size: 13px; }

/* Cash */
.section--cash { background: linear-gradient(180deg, var(--ink), #120d0a 50%, var(--ink)); }
.money { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; counter-reset: m; }
.money__step { position: relative; padding: 24px 20px; border: 1px solid var(--line); background: var(--panel); display: flex; flex-direction: column; gap: 8px; }
.money__step + .money__step { border-inline-start: 0; }
.money__step:first-child { border-start-start-radius: var(--radius); border-end-start-radius: var(--radius); }
.money__step:last-child { border-start-end-radius: var(--radius); border-end-end-radius: var(--radius); }
.money__step::after { content: ""; position: absolute; top: 38px; inset-inline-end: -7px; width: 12px; height: 12px; border-top: 1px solid var(--line-2); border-inline-end: 1px solid var(--line-2); background: var(--panel); transform: rotate(45deg); z-index: 1; }
[dir="rtl"] .money__step::after { transform: rotate(-45deg); }
.money__step:last-child::after { display: none; }
.money__amt { font-size: 22px; color: var(--text); }
.money__step--end { background: linear-gradient(180deg, rgba(255, 122, 61, 0.16), var(--panel)); border-color: rgba(255, 122, 61, 0.4); }
.money__step--end .money__amt { color: var(--accent-2); }
.money__step b { font-size: 16px; font-weight: 600; }
.money__step span:not(.money__amt) { font-size: 14px; color: var(--muted); }
.money__step { opacity: 0.35; transition: opacity 0.6s; }
.money.is-in .money__step { opacity: 1; }
.money.is-in .money__step:nth-child(2) { transition-delay: 0.15s; }
.money.is-in .money__step:nth-child(3) { transition-delay: 0.3s; }
.money.is-in .money__step:nth-child(4) { transition-delay: 0.45s; }
.money.is-in .money__step:nth-child(5) { transition-delay: 0.6s; }

/* API */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.feats { margin-top: 30px; display: grid; grid-template-columns: 1fr 1fr; gap: 22px 28px; }
.feats li { display: flex; flex-direction: column; gap: 4px; padding-top: 14px; border-top: 1px solid var(--line); }
.feats b { font-size: 15px; font-weight: 600; }
.feats span { font-size: 14px; color: var(--muted); }
.code-card { border-radius: var(--radius); border: 1px solid var(--line-2); background: #0a0c10; overflow: hidden; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.9), 0 0 70px -30px rgba(255, 122, 61, 0.5); text-align: left; }
.code-card__bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 12px; color: var(--dim); }
.code-card__bar span:last-child { margin-inline-start: 10px; }
.code-card pre { margin: 0; padding: 22px; font-family: var(--mono); font-size: 13.5px; line-height: 1.8; color: var(--muted); overflow-x: auto; }
.c-k { color: var(--accent-2); }
.c-s { color: #9fc3ff; }
.c-v { color: var(--ok); }
.c-n { color: var(--wait); }

/* Onboarding */
.section--onboard { background: var(--ink-2); border-block: 1px solid var(--line); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps li { padding: 26px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); display: flex; flex-direction: column; gap: 8px; }
.steps__n { font-size: 13px; color: var(--accent-2); }
.steps b { font-size: 20px; font-weight: 600; }
.steps span:not(.steps__n) { color: var(--muted); font-size: 15px; }

/* Pricing (cards built by js/pricing.js) */
.billing { display: inline-flex; gap: 4px; padding: 4px; margin-top: 28px; border-radius: 999px; border: 1px solid var(--line); background: var(--ink-2); }
.billing[hidden] { display: none; }
.billing button { padding: 8px 18px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--muted); }
.billing button[aria-pressed="true"] { background: var(--text); color: var(--ink); }
.pricing-grid { display: grid; grid-template-columns: repeat(var(--plan-count, 3), minmax(0, 1fr)); gap: 16px; }
.pricing__loading, .pricing__error { grid-column: 1 / -1; text-align: center; color: var(--muted); }
.plan { display: flex; flex-direction: column; padding: 26px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); }
.plan[data-plan="pro"] { border-color: rgba(255, 122, 61, 0.5); background: linear-gradient(180deg, rgba(255, 122, 61, 0.12), var(--panel) 45%); box-shadow: 0 0 60px -25px rgba(255, 122, 61, 0.6); }
.plan__label { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
[dir="rtl"] .plan__label { font-family: var(--font); letter-spacing: 0; font-size: 14px; }
.plan__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; margin: 14px 0 18px; min-height: 52px; }
.plan__amount { font-family: var(--mono); font-size: 40px; font-weight: 500; letter-spacing: -0.03em; line-height: 1.1; }
.plan__amount--word { font-family: var(--font); font-size: 32px; font-weight: 600; letter-spacing: -0.02em; }
.plan__currency { font-family: var(--mono); font-size: 14px; color: var(--muted); }
.plan__interval { font-size: 14px; color: var(--muted); }
.plan__limit { display: flex; justify-content: space-between; padding: 12px 0; border-block: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.plan__limit strong { color: var(--text); font-weight: 600; }
.plan__features { flex: 1; display: grid; align-content: start; gap: 10px; margin: 16px 0 24px; font-size: 14px; }
.plan__features li { display: flex; gap: 10px; align-items: baseline; }
.plan__features li::before { content: ""; flex: none; width: 12px; height: 7px; border-inline-start: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg) translateY(-3px); }
.plan__cta { width: 100%; }

/* FAQ */
.faq { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 64px; align-items: start; }
.faq__head { position: sticky; top: 100px; }
.faq__head h2 { font-size: clamp(28px, 3.4vw, 42px); }
.text-link { display: inline-block; margin-top: 22px; color: var(--accent-2); font-weight: 600; border-bottom: 1px solid rgba(255, 179, 107, 0.4); padding-bottom: 2px; }
.qa { border-bottom: 1px solid var(--line); }
.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; padding: 22px 0; font-size: 17px; font-weight: 600; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; font-family: var(--mono); font-weight: 400; font-size: 22px; line-height: 1; color: var(--accent-2); transition: transform 0.25s var(--ease); }
.qa[open] summary::after { transform: rotate(45deg); }
.qa p { padding-bottom: 22px; color: var(--muted); max-width: 62ch; }

/* Final */
.final { position: relative; overflow: hidden; padding: clamp(90px, 11vw, 140px) 0; border-top: 1px solid var(--line); text-align: center; }
.final__glow { position: absolute; left: 50%; bottom: -320px; width: 1000px; height: 600px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(255, 122, 61, 0.35), transparent 75%); }
.final__inner { position: relative; display: flex; flex-direction: column; align-items: center; }
.final h2 { max-width: 18ch; }
.final p { margin-top: 16px; color: var(--muted); font-size: 18px; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 56px 0 28px; font-size: 14px; }
.footer__inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer__brand p { margin-top: 12px; color: var(--muted); max-width: 32ch; }
.footer__family a { color: var(--text); }
.footer__col { display: flex; flex-direction: column; gap: 10px; color: var(--muted); }
.footer__col b { color: var(--text); font-weight: 600; margin-bottom: 4px; }
.footer__col a:hover { color: var(--text); }
.footer__col a[hidden] { display: none; }
.footer__base { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--dim); font-size: 13px; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1100px) {
  .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kpis .kpi:nth-child(n + 4) { display: none; }
  .segs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .money { grid-template-columns: 1fr; gap: 10px; }
  .money__step, .money__step + .money__step { border: 1px solid var(--line); border-radius: var(--radius) !important; }
  .money__step--end { border-color: rgba(255, 122, 61, 0.4); }
  .money__step::after { top: auto; bottom: -7px; inset-inline-end: auto; inset-inline-start: 32px; transform: rotate(135deg); }
  [dir="rtl"] .money__step::after { transform: rotate(135deg); }
  .phone { inset-inline-end: 0; width: 210px; }
}
@media (max-width: 900px) {
  .topnav { display: none; }
  .app { grid-template-columns: 1fr; }
  .app__side { display: none; }
  .app__grid { grid-template-columns: 1fr; }
  .panel--orders { display: none; }
  .strip__inner { grid-template-columns: 1fr 1fr; }
  .strip p { border-inline-start: 0; padding-inline: 0; border-top: 1px solid var(--line); }
  .strip p:nth-child(-n + 2) { border-top: 0; }
  .flow__steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .flow__card, .tour__pane, .split, .faq { grid-template-columns: 1fr; gap: 32px; }
  .faq__head { position: static; }
  .steps { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .phone { position: relative; inset: auto; margin: -80px 0 0 auto; }
  [dir="rtl"] .phone { margin: -80px auto 0 0; }
}
@media (max-width: 600px) {
  .wrap { width: min(100% - 32px, var(--wrap)); }
  .topbar__actions { gap: 8px; }
  .link-login { display: none; }
  .hero { padding-top: 48px; }
  .eyebrow { font-size: 12px; padding: 6px 12px 6px 9px; text-align: start; }
  .hero__ctas .btn { flex: 1 1 100%; }
  .hero__stage { margin-top: 44px; }
  .device { transform: none; }
  .device__url { display: none; }
  .app__main { padding: 14px; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .kpis .kpi:nth-child(3) { grid-column: 1 / -1; }
  .kpi__value { font-size: 20px; }
  .map { height: 170px; }
  .phone { margin-top: -60px; }
  .segs, .feats, .pricing-grid { grid-template-columns: 1fr; }
  .flow__steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow__steps button { padding: 10px 12px; font-size: 14px; }
  .flow__text h3 { font-size: 23px; }
  .tour__tabs { border-radius: 16px; }
  .tour__tabs button { flex: 1 1 45%; }
  .map--big { height: 260px; }
  .strip p { padding-block: 18px; }
  .strip strong { font-size: 16px; }
  .phone { width: 190px; }
  .footer__inner { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal, .money__step { opacity: 1; transform: none; }
  .device { transform: none; }
  .phone { opacity: 1; transform: none; }
  .spark path { stroke-dashoffset: 0; }
}
