/* ============================================================
   Cubes ERP — global landing page (en/ + ar/ share this file)
   Design language v2 — product-forward: navy hero with a cube
   motif, the simulation as a real app window, surfaces with
   depth, big friendly type, colour in fields. Logical properties
   throughout so one file serves LTR (Plex Sans) and RTL (Cairo);
   Arabic typography lives in the [dir="rtl"] block at the end.
   ============================================================ */

:root {
  --navy-900: #0B1633;
  --navy-800: #0F2456;
  --navy-700: #16307A;
  --blue-600: #0F5FE0;
  --blue-500: #2F80FF;
  --blue-300: #4FB4FF;
  --blue-50: #EEF4FF;
  --amber: #FFB020;
  --amber-ink: #3D2A00;
  --ink: #0B1633;
  --ink-2: #3F4A66;
  --ink-3: #6B7590;
  --line: #E3E8F2;
  --bg: #FFFFFF;
  --bg-soft: #F4F7FB;
  --ok: #12A66B;
  --ok-soft: #E6F7EF;
  --warn: #D48A0A;
  --warn-soft: #FFF4DF;
  --bad: #E5484D;
  --bad-soft: #FDECEC;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(11, 22, 51, 0.05), 0 6px 20px rgba(11, 22, 51, 0.06);
  --shadow: 0 1px 2px rgba(11, 22, 51, 0.06), 0 16px 40px rgba(11, 22, 51, 0.10);
  --shadow-lg: 0 24px 64px rgba(11, 22, 51, 0.18);
  --sans: "IBM Plex Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 17px/1.6 var(--sans); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
body.nav-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
code, kbd, .mono { font-family: var(--mono); }
.mono { font-variant-numeric: tabular-nums; }
.num { text-align: end; font-variant-numeric: tabular-nums; }
.dim { color: var(--ink-3); }
:focus-visible { outline: 3px solid rgba(47, 128, 255, 0.5); outline-offset: 2px; }
::selection { background: var(--blue-600); color: #fff; }
.ic { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
body > svg[hidden] { display: none; }

.skip { position: absolute; top: 12px; inset-inline-start: 12px; z-index: 200; background: var(--navy-900); color: #fff; padding: 10px 14px; border-radius: 8px; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { width: auto; height: auto; overflow: visible; clip-path: none; }
.wrap { width: min(1200px, 100% - 48px); margin-inline: auto; }
section { scroll-margin-top: var(--header-h); position: relative; }

/* ---------- type ---------- */
h1 { font-size: clamp(40px, 5.6vw, 74px); line-height: 1.05; letter-spacing: -0.03em; font-weight: 700; text-wrap: balance; }
h1 em { font-style: normal; color: var(--blue-300); }
h2 { font-size: clamp(30px, 3.6vw, 46px); line-height: 1.12; letter-spacing: -0.025em; font-weight: 700; text-wrap: balance; }
h3 { font-weight: 700; letter-spacing: -0.015em; line-height: 1.25; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--blue-50); color: var(--blue-600); font-weight: 600; font-size: 13px; letter-spacing: 0.01em; }
.sec-head { max-width: 780px; margin: 0 auto 48px; text-align: center; }
.sec-head h2 { margin: 16px 0 12px; }
.sec-head p { font-size: 18px; line-height: 1.6; color: var(--ink-2); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 24px; border-radius: 12px; font-size: 16px; font-weight: 600; white-space: nowrap; transition: transform 0.15s, background-color 0.15s, color 0.15s, box-shadow 0.15s; border: 1px solid transparent; }
.btn:hover { transform: translateY(-1px); }
.btn-accent { background: var(--amber); color: var(--amber-ink); box-shadow: 0 8px 24px rgba(255, 176, 32, 0.35); }
.btn-accent:hover { background: #FFC24D; }
.btn-primary { background: var(--blue-600); color: #fff; box-shadow: 0 8px 24px rgba(15, 95, 224, 0.28); }
.btn-primary:hover { background: var(--blue-500); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-ghost:hover { border-color: var(--ink-3); }
.btn-ghost-light { border-color: rgba(255, 255, 255, 0.35); color: #fff; }
.btn-ghost-light:hover { background: rgba(255, 255, 255, 0.1); }
.btn-sm { height: 40px; padding: 0 16px; font-size: 14px; border-radius: 10px; }
.btn[disabled] { opacity: 0.4; pointer-events: none; }
.linkbtn { font-size: 13px; font-weight: 600; color: var(--ink-3); padding: 8px 4px; }
.linkbtn:hover { color: var(--blue-600); }

/* ---------- header (solid, quiet) ---------- */
.top { position: fixed; inset: 0 0 auto 0; height: var(--header-h); z-index: 50; color: var(--ink); background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.top-inner { height: 100%; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 32px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img.lockup { height: 46px; width: auto; display: block; }
.foot-brand .brand img.lockup { height: 60px; }
@media (max-width: 640px) { .brand img.lockup { height: 38px; } }
.brand-name { font-weight: 700; font-size: 19px; letter-spacing: -0.01em; }
.brand-tag { font-size: 11px; letter-spacing: 0.14em; color: var(--blue-600); padding-top: 3px; font-weight: 600; }
.nav { display: flex; gap: 6px; justify-content: center; }
.nav a { font-size: 15px; font-weight: 500; padding: 8px 12px; border-radius: 10px; color: var(--ink-2); }
.nav a:hover { color: var(--ink); background: var(--bg-soft); }
.top-actions { display: flex; align-items: center; gap: 10px; }
.lang { font-size: 14px; font-weight: 600; color: var(--ink-2); margin-inline-end: 6px; }
.menu-btn { display: none; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line); flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.menu-btn span { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; transition: transform 0.2s; }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.mobile-nav { position: fixed; inset: var(--header-h) 0 0 0; background: #fff; color: var(--ink); padding: 16px 24px 40px; display: flex; flex-direction: column; overflow: auto; }
.mobile-nav[hidden] { display: none; }
.mobile-nav > a { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; padding: 14px 0; border-bottom: 1px solid var(--line); }
.mobile-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }

/* ---------- hero: two panels, one seam ---------- */
.hero { padding-top: var(--header-h); }
.hero-split { position: relative; display: grid; grid-template-columns: 55fr 45fr; min-height: 620px; --edge: max(24px, calc((100vw - 1200px) / 2)); }
.hero-ops { background: var(--bg-soft); color: var(--ink); padding: clamp(48px, 6vw, 80px) 0 200px; padding-inline-start: var(--edge); padding-inline-end: 230px; display: flex; flex-direction: column; justify-content: center; }
.hero-acc { background: var(--navy-900); color: #fff; padding: clamp(48px, 6vw, 80px) 0 200px; padding-inline-start: 230px; padding-inline-end: var(--edge); display: flex; flex-direction: column; justify-content: center; }
.hero-copy { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; max-width: 620px; }
.hero-copy h1 { font-size: clamp(40px, 4.5vw, 64px); }
.hero-side-label { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; }
.hero-side-label::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.hero-side-label.ops { color: var(--ok); }
.hero-side-label.acc { color: var(--blue-300); }
h1 em { color: inherit; text-decoration: underline; text-decoration-color: var(--blue-600); text-decoration-thickness: 0.09em; text-underline-offset: 0.12em; }
.lead { font-size: clamp(17px, 1.3vw, 19px); line-height: 1.6; color: var(--ink-2); max-width: 56ch; }
.cta-row { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink); padding: 6px 0; border-bottom: 2px solid transparent; }
.link-arrow:hover { border-bottom-color: var(--ink); }
.hero-cube { position: absolute; top: calc(50% - 100px); inset-inline-start: calc(55% - 200px); width: 400px; transform: translateY(-50%); z-index: 2; filter: drop-shadow(0 36px 60px rgba(0, 0, 0, 0.45)); animation: float 7s ease-in-out infinite; }
.hero-cube svg { width: 100%; height: auto; display: block; }
@keyframes float { 0%, 100% { transform: translateY(-50%); } 50% { transform: translateY(calc(-50% - 12px)); } }
.cube-label { font-family: var(--sans); font-weight: 700; font-size: 20px; fill: #fff; }
.cube-sub { font-family: var(--mono); font-size: 13px; fill: rgba(255, 255, 255, 0.75); }
.cube-top { font-family: var(--mono); font-weight: 600; font-size: 22px; fill: var(--navy-900); }
.hero-statement { display: flex; flex-direction: column; gap: 10px; max-width: 340px; }
.hs-eq { font-family: var(--mono); font-size: 14px; color: rgba(255, 255, 255, 0.7); margin-top: 8px; }
.hs-delta { font-family: var(--mono); font-weight: 600; font-size: clamp(40px, 3.9vw, 58px); line-height: 1; color: #3DDC97; letter-spacing: -0.02em; white-space: nowrap; }
.hero-statement p { font-size: 15px; line-height: 1.6; color: rgba(255, 255, 255, 0.8); }

/* ---------- the app window (simulation) ---------- */
.window-slot { position: relative; z-index: 2; margin-top: -150px; margin-bottom: -190px; }
.console { border-radius: 18px; background: #fff; color: var(--ink); box-shadow: 0 40px 100px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.1); overflow: hidden; }
.console-bar { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; padding: 12px 16px; background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.dots { display: flex; gap: 7px; }
.dots span { width: 11px; height: 11px; border-radius: 50%; background: #D7DCE6; }
.dots span:nth-child(1) { background: #FF5F57; } .dots span:nth-child(2) { background: #FEBC2E; } .dots span:nth-child(3) { background: #28C840; }
.console-title { justify-self: center; font-size: 12.5px; color: var(--ink-3); background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 5px 14px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mode { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.mode #modeState { white-space: nowrap; }
.console.out .mode #modeState { color: var(--warn); }
.switch { width: 46px; height: 26px; border-radius: 999px; position: relative; background: var(--ok); transition: background-color 0.2s; flex: none; box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.15); }
.switch .knob { position: absolute; top: 3px; inset-inline-start: 23px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); transition: inset-inline-start 0.2s; }
.switch[aria-checked="false"] { background: #B9C0CF; }
.switch[aria-checked="false"] .knob { inset-inline-start: 3px; }
.desks { display: grid; grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1fr); }
.desk { padding: 18px 20px 14px; display: flex; flex-direction: column; gap: 10px; min-width: 0; min-height: 420px; }
.desk-ops { background: #fff; }
.desk-acc { background: var(--bg-soft); }
.desk-head { display: flex; flex-direction: column; gap: 6px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.desk-k { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--blue-600); }
.desk-k::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.desk-ops .desk-k { color: var(--ok); }
.desk-who { font-size: 13.5px; color: var(--ink-2); line-height: 1.45; }
.wall { background: var(--navy-800); color: var(--blue-300); display: flex; align-items: center; justify-content: center; }
.wall span { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; white-space: nowrap; }
.feed { display: flex; flex-direction: column; }
.fi { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; line-height: 1.4; animation: rowIn 0.35s ease both; }
@keyframes rowIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.fi > div { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.fi b { font-weight: 600; font-size: 12.5px; color: var(--blue-600); }
.fi span { color: var(--ink); font-weight: 500; }
.fi small { font-size: 12px; color: var(--ink-3); line-height: 1.4; }
.fi-check { width: 20px; height: 20px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); font-size: 12px; font-weight: 700; display: grid; place-items: center; flex: none; margin-top: 1px; }
.fi-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--warn); flex: none; margin: 6px 5px 0; box-shadow: 0 0 0 4px var(--warn-soft); }
.fi-wait small { color: var(--warn); }
.fi-post .fi-check { background: var(--blue-50); color: var(--blue-600); }
.fi-more { font-size: 12.5px; font-weight: 600; color: var(--warn); padding: 8px 0 0; padding-inline-start: 30px; }
.desk-foot { display: flex; gap: 18px; flex-wrap: wrap; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--ink-3); }
.desk-foot b { color: var(--ink); font-weight: 700; margin-inline-start: 4px; }
.desk-foot b.zero { color: var(--ok); }
.acc-zone-k { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-3); padding: 6px 0 2px; }
.acc-zone-k b { color: var(--ink); margin-inline-start: 4px; }
.feed-wait { min-height: 126px; }
.feed-post { min-height: 96px; }
.acc-out { margin-top: auto; padding: 12px 14px; background: var(--warn-soft); border-radius: var(--radius-sm); font-size: 13.5px; line-height: 1.45; color: var(--ink); animation: rowIn 0.35s ease both; }
.acc-out .mono { display: block; font-family: var(--sans); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--warn); margin-bottom: 2px; }
.acc-out[hidden] { display: none; }
.recon-bar { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: baseline; padding: 14px 20px; background: var(--navy-900); color: #fff; }
.recon-k { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--blue-300); }
.recon-eq { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 13.5px; color: rgba(255, 255, 255, 0.72); }
.recon-eq b { font-weight: 600; color: #fff; margin-inline-start: 4px; font-family: var(--mono); }
.recon-delta { color: #fff; }
.recon-delta b { color: #3DDC97; font-size: 17px; }
.ok-tag { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #3DDC97; margin-inline-start: 8px; font-style: normal; }
.console-foot { padding: 10px 20px; background: var(--bg-soft); border-top: 1px solid var(--line); font-size: 12.5px; color: var(--ink-3); text-align: center; }

/* ---------- stats ---------- */
.stats { background: var(--bg-soft); padding: 250px 0 72px; }
.stats-lead { text-align: center; font-size: 15px; color: var(--ink-3); margin-bottom: 22px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { background: #fff; border-radius: var(--radius); padding: 24px 24px 22px; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.stat b { display: block; font-size: 44px; line-height: 1; font-weight: 700; letter-spacing: -0.03em; color: var(--blue-600); margin-bottom: 10px; font-family: var(--mono); }
.stat span { font-size: 14.5px; color: var(--ink-2); line-height: 1.45; }

/* ---------- sections ---------- */
.sec { padding: clamp(72px, 8vw, 112px) 0; }
.sec-soft { background: var(--bg-soft); }
.sec-navy { background: var(--navy-900); color: #fff; }
.sec-navy .eyebrow { background: rgba(255, 255, 255, 0.1); color: var(--blue-300); }
.sec-navy .sec-head p { color: rgba(255, 255, 255, 0.75); }

/* ---------- in practice: scenario cards ---------- */
.scenes { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.scene { background: #fff; border-radius: var(--radius); padding: 24px; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.scene h3 { font-size: 19px; margin-bottom: 16px; }
.vs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.vs > div { border-radius: 12px; padding: 14px 16px 16px; }
.vs-old { background: #F3F4F7; color: var(--ink-2); }
.vs-new { background: var(--blue-50); color: var(--ink); }
.vs-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px; }
.vs-tag .ic { width: 16px; height: 16px; }
.vs-old .vs-tag { color: var(--bad); }
.vs-new .vs-tag { color: var(--blue-600); }
.vs p { font-size: 14.5px; line-height: 1.55; }

/* ---------- how it works: stages ---------- */
.stages { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 14px; align-items: stretch; }
.stage { border-radius: 20px; padding: 28px; position: relative; }
.stage-ops { background: var(--ok-soft); color: var(--ink); }
.stage-acc { background: var(--blue-600); color: #fff; }
.stage-gl { background: var(--navy-900); color: #fff; }
.stage .ic { width: 28px; height: 28px; }
.stage-ops .ic { color: var(--ok); }
.stage-n { position: absolute; top: 24px; inset-inline-end: 24px; width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, 0.2); font-weight: 700; display: grid; place-items: center; font-size: 15px; }
.stage-ops .stage-n { background: #fff; color: var(--ok); }
.stage h3 { font-size: 22px; margin: 16px 0 8px; }
.stage p { font-size: 15px; line-height: 1.55; opacity: 0.85; }
.stage ul { margin-top: 16px; display: grid; gap: 8px; font-size: 14.5px; }
.stage li { display: flex; gap: 8px; align-items: flex-start; }
.stage li .ic { width: 16px; height: 16px; margin-top: 4px; opacity: 0.9; }
.stage-arrow { display: grid; place-items: center; color: var(--ink-3); }
.stage-arrow .ic { width: 26px; height: 26px; }
.stepper { display: flex; margin: 48px 0 40px; position: relative; padding-top: 8px; }
.stepper::before { content: ""; position: absolute; top: 15px; left: 8%; right: 8%; height: 2px; background: var(--line); }
.stepper li { flex: 1; text-align: center; position: relative; padding-top: 30px; }
.stepper li::before { content: ""; position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 16px; height: 16px; border-radius: 50%; background: var(--blue-600); box-shadow: 0 0 0 4px var(--blue-50); }
.stepper li:nth-child(4)::before { background: var(--navy-900); }
.stepper li:nth-child(5)::before { background: var(--ink-3); }
.stepper b { display: block; font-weight: 700; font-size: 15px; }
.stepper small { display: block; color: var(--ink-3); font-size: 12.5px; line-height: 1.4; margin-top: 2px; padding: 0 6px; }
.two-lists { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.list-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.list-card h4 { display: flex; align-items: center; gap: 10px; font-size: 16px; margin-bottom: 12px; }
.list-ops h4 .ic { color: var(--ok); }
.list-acc h4 .ic { color: var(--blue-600); }
.list-card li { display: flex; gap: 10px; align-items: flex-start; padding: 9px 0; border-top: 1px solid var(--line); font-size: 15px; }
.list-card li .ic { width: 16px; height: 16px; margin-top: 4px; color: var(--ink-3); }
.list-card .note { margin-top: 16px; font-size: 14px; color: var(--ink-3); line-height: 1.5; }

/* ---------- proofs ---------- */
.proof-row { display: grid; grid-template-columns: 4.5fr 7.5fr; gap: 48px; align-items: center; padding: 36px 0; }
.proof-row + .proof-row { border-top: 1px solid var(--line); }
.proof-row:nth-child(even) .proof-copy { order: 2; }
/* the copy moves to the second column on alternating rows — swap the track widths so the
   panel always keeps the wide side (otherwise wide tables land in the narrow column). */
.proof-row:nth-child(even) { grid-template-columns: 7.5fr 4.5fr; }
.proof-copy h3 { font-size: clamp(24px, 2.4vw, 32px); margin: 14px 0 12px; }
.proof-copy p { color: var(--ink-2); line-height: 1.6; }
.rule { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; line-height: 1.5; color: var(--ink-3); background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-top: 18px; }
.rule .ic { color: var(--blue-600); margin-top: 2px; }
.panel { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); padding: 20px; min-width: 0; container-type: inline-size; }
.widget-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.widget-msg { min-height: 22px; margin-top: 12px; font-size: 13.5px; line-height: 1.5; color: var(--ink-2); }
.widget-msg.bad { color: var(--bad); }
.widget-msg.ok { color: var(--ok); }
.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; }
th { text-align: start; font-weight: 600; font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-3); }
th.num { text-align: end; }
.badge { display: inline-flex; align-items: center; font-size: 11.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; line-height: 1.3; }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.draft { background: var(--warn-soft); color: var(--warn); }
.badge.accent { background: var(--blue-50); color: var(--blue-600); }
.badge.bad { background: var(--bad-soft); color: var(--bad); }

/* proof — separation */
.sep { border: 1px solid var(--line); border-radius: 12px; display: grid; grid-template-columns: 1.35fr 1fr; overflow: hidden; }
@container (max-width: 640px) {
  .sep { grid-template-columns: 1fr; }
  .sep-doc { border-inline-end: 0; border-bottom: 1px solid var(--line); }
}
.sep-doc { padding: 16px; border-inline-end: 1px solid var(--line); min-width: 0; }
.sep-acc { padding: 16px; background: var(--bg-soft); min-width: 0; }
.sep-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.sep-head .dim { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.sep-head strong { font-size: 15px; font-weight: 600; min-height: 1.3em; }
.sep[data-state="confirmed"] .sep-head strong { color: var(--blue-600); }
.doc-lines td { padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.doc-lines td:first-child { width: 100%; }
.doc-lines td:nth-child(2) { color: var(--ink-3); white-space: nowrap; padding-inline-end: 12px; }
.doc-lines td:last-child { white-space: nowrap; }
.doc-lines .total td { border-bottom: 0; font-weight: 700; padding-top: 12px; }
.sep .doc-lines td { font-size: 13px; }
.sep-effects { margin-top: 12px; }
.sep-effects > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 12.5px; }
.sep-effects dt { color: var(--ink-3); font-weight: 600; flex: none; }
.sep-effects dd { text-align: end; color: var(--ink); }
.sep[data-state="confirmed"] .sep-effects dd { color: var(--blue-600); font-weight: 600; }
.sep-acc-head { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.sep-acc-head > .mono { font-family: var(--sans); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--blue-600); }
.sep-acc-head .badge { text-transform: none; letter-spacing: 0; font-size: 12px; font-weight: 600; white-space: normal; text-align: start; border-radius: 10px; padding: 6px 10px; }
.sep-events li { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13px; line-height: 1.45; }
.sep-ev .mono { display: block; font-size: 12px; margin-bottom: 2px; font-weight: 600; }
.sep-ev.bad { color: var(--bad); }
.sep-ev.ok { color: var(--ok); }
.sep-ev.resolved { color: var(--ink-3); text-decoration: line-through; }

/* proof — journal entries */
.je { border: 1px solid var(--line); border-radius: 12px; background: #fff; overflow: hidden; }
.je + .je { margin-top: 10px; border-color: var(--blue-500); box-shadow: 0 0 0 3px var(--blue-50); animation: rowIn 0.4s ease both; }
.je-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 12.5px; background: var(--bg-soft); }
.je-id { font-weight: 600; font-size: 14px; color: var(--blue-600); }
.je-lines th, .je-lines td { padding: 10px 16px; border-bottom: 1px solid var(--line); font-size: 14px; }
.je-lines tbody tr:last-child td { border-bottom: 0; }
.je.shake { animation: shake 0.4s; }
.je.refused { border-color: var(--bad); box-shadow: 0 0 0 3px var(--bad-soft); }
@keyframes shake { 0%, 100% { transform: none; } 20% { transform: translateX(-5px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(3px); } }

/* proof — landed cost & currency */
.lc, .fx { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.lc-head, .fx-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--bg-soft); font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.lc-table, .fx-table { min-width: 520px; font-size: 13.5px; }
.lc-table th, .lc-table td, .fx-table th, .fx-table td { padding: 10px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.lc-table th:first-child, .lc-table td:first-child, .fx-table th:first-child, .fx-table td:first-child { padding-inline-start: 16px; }
.lc-table th:last-child, .lc-table td:last-child, .fx-table th:last-child, .fx-table td:last-child { padding-inline-end: 16px; }
.lc-table tfoot td { font-weight: 700; background: var(--bg-soft); border-bottom: 0; }
.lc-table .landed { color: var(--blue-600); font-weight: 700; }
.lc-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 24px; padding: 16px; border-top: 1px solid var(--line); background: var(--blue-50); }
.lc-inputs label { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; align-items: baseline; font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.lc-inputs output { font-size: 14px; color: var(--ink); font-weight: 700; }
.lc-inputs input[type="range"] { grid-column: 1 / -1; width: 100%; margin: 0; accent-color: var(--blue-600); }
.lc-note, .fx-note { padding: 10px 16px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--ink-3); line-height: 1.5; }
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13px; font-weight: 500; }
.check input { accent-color: var(--blue-600); margin: 0; }
.fx-table .stored { font-weight: 700; }
.fx-table .rate { width: 96px; height: 32px; border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 0 8px; text-align: end; font-size: 13px; }
.fx-table .rate:focus { outline: none; border-color: var(--blue-600); box-shadow: 0 0 0 3px var(--blue-50); }
.fx-table .fx-val { color: var(--blue-600); font-weight: 600; }
.fx.hide-val .fx-val { display: none; }
.fx-val.tick { animation: tick 0.5s; }
@keyframes tick { from { background: var(--blue-50); } to { background: transparent; } }
.fx-table .advance { color: var(--ok); font-weight: 600; }

/* proof — document numbering */
.doc { position: relative; border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 18px 20px; overflow: hidden; }
.doc-wm { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 800; font-size: 72px; letter-spacing: 0.2em; color: var(--bad); opacity: 0.12; transform: rotate(-18deg); pointer-events: none; transition: opacity 0.4s; }
.doc[data-state="confirmed"] .doc-wm { opacity: 0; }
.doc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.doc-head .dim { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.doc-no { font-size: 18px; font-weight: 600; display: inline-block; margin-top: 4px; min-height: 1.3em; }
.doc[data-state="confirmed"] .doc-no { color: var(--blue-600); }
.doc-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12px; font-weight: 600; color: var(--ink-3); }
.doc[data-state="confirmed"] .doc-foot { color: var(--blue-600); }
.doc-copy { border: 1px solid var(--ink); border-radius: 6px; padding: 3px 8px; letter-spacing: 0.12em; color: var(--ink); }
.doc-copy[hidden] { display: none; }

/* ---------- modules ---------- */
.modules-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.module { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.module-ic { width: 46px; height: 46px; border-radius: 12px; background: var(--blue-50); color: var(--blue-600); display: grid; place-items: center; margin-bottom: 16px; }
.module-ic .ic { width: 24px; height: 24px; }
.module h3 { font-size: 20px; }
.flow { display: inline-block; font-family: var(--mono); font-size: 12px; color: var(--blue-600); background: var(--blue-50); border-radius: 8px; padding: 4px 8px; margin: 8px 0 10px; direction: ltr; unicode-bidi: isolate; }
.module p { font-size: 14.5px; color: var(--ink-2); line-height: 1.55; }
.legs { margin-top: 56px; background: var(--bg-soft); border-radius: 24px; padding: clamp(28px, 4vw, 44px); }
.legs-head { max-width: 720px; margin: 0 auto 28px; text-align: center; }
.legs-head h3 { font-size: clamp(22px, 2.4vw, 30px); margin-bottom: 8px; }
.legs-head p { color: var(--ink-2); font-size: 16px; }
.legs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.leg { display: flex; gap: 12px; align-items: flex-start; background: #fff; border-radius: 12px; padding: 16px; border: 1px solid var(--line); }
.leg .ic { color: var(--blue-600); width: 24px; height: 24px; margin-top: 2px; }
.leg b { display: block; font-size: 15px; margin-bottom: 4px; }
.leg p { font-size: 13.5px; color: var(--ink-2); line-height: 1.5; }
.domains { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: 20px; }
.domains li { background: #fff; border-radius: 12px; padding: 16px; border: 1px solid var(--line); }
.domains h4 { font-size: 15px; margin-bottom: 10px; }
.domains dt { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-3); }
.domains dd { font-size: 13px; color: var(--ink-2); line-height: 1.45; margin: 2px 0 10px; }
.domains dd:last-child { margin-bottom: 0; color: var(--blue-600); font-weight: 600; }

/* ---------- under the hood ---------- */
.capsules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.capsule { background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 14px; padding: 20px; }
.capsule .ic { color: var(--blue-300); width: 24px; height: 24px; }
.capsule h4 { margin: 12px 0 6px; font-size: 16px; }
.capsule p { font-size: 14px; color: rgba(255, 255, 255, 0.72); line-height: 1.5; }
.capsule code { font-size: 13px; background: rgba(255, 255, 255, 0.1); padding: 1px 5px; border-radius: 4px; color: #fff; }
.more { margin-top: 28px; }
.more summary { list-style: none; cursor: pointer; display: inline-flex; gap: 8px; align-items: center; padding: 10px 16px; border-radius: 10px; background: rgba(255, 255, 255, 0.1); font-weight: 600; font-size: 15px; }
.more summary::-webkit-details-marker { display: none; }
.more summary .ic { transition: transform 0.2s; }
.more[open] summary .ic { transform: rotate(90deg); }
.spec-list { margin-top: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.spec-list > div { border-top: 1px solid rgba(255, 255, 255, 0.14); padding: 12px 0; display: grid; grid-template-columns: 120px 1fr; gap: 12px; }
.spec-list dt { color: var(--blue-300); font-weight: 600; font-size: 13.5px; }
.spec-list dd { font-size: 14px; color: rgba(255, 255, 255, 0.78); line-height: 1.5; }

/* ---------- fit, rollout, faq ---------- */
.fit-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.fit { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.fit .module-ic { margin-bottom: 14px; }
.fit h3 { font-size: 18px; margin-bottom: 8px; }
.fit p { font-size: 14.5px; color: var(--ink-2); line-height: 1.55; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); position: relative; }
.step-n { width: 40px; height: 40px; border-radius: 50%; background: var(--navy-900); color: #fff; font-weight: 700; display: grid; place-items: center; margin-bottom: 16px; font-family: var(--mono); }
.step-w { display: inline-block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--blue-600); margin-bottom: 8px; }
.step h3 { font-size: 20px; margin-bottom: 8px; }
.step p { font-size: 14.5px; color: var(--ink-2); line-height: 1.55; }
.faq { max-width: 840px; margin-inline: auto; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 2px 20px; margin-bottom: 10px; box-shadow: var(--shadow-sm); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 16px 0; font-size: 17px; font-weight: 600; line-height: 1.35; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { color: var(--blue-600); transition: transform 0.2s; }
.faq details[open] summary .ic { transform: rotate(45deg); }
.faq p { padding: 0 0 18px; color: var(--ink-2); line-height: 1.6; }

/* ---------- demo ---------- */
.demo-panel { background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 55%, var(--blue-600) 130%); border-radius: 28px; padding: clamp(28px, 5vw, 56px); color: #fff; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; box-shadow: var(--shadow-lg); }
.demo-copy h2 { margin: 16px 0 12px; }
.demo-copy p { color: rgba(255, 255, 255, 0.8); font-size: 17px; line-height: 1.6; }
.demo-panel .eyebrow { background: rgba(255, 255, 255, 0.12); color: var(--blue-300); }
.contact-list { margin-top: 28px; display: grid; gap: 10px; }
.contact-list a { display: flex; align-items: center; gap: 12px; font-size: 15px; color: #fff; }
.contact-list .ic { color: var(--blue-300); }
.form-card { background: #fff; color: var(--ink); border-radius: 18px; padding: 28px; box-shadow: var(--shadow-lg); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field input, .field select, .field textarea { height: 46px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-soft); padding: 0 12px; font-size: 15px; width: 100%; }
.field select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%); background-position: calc(100% - 16px) 20px, calc(100% - 11px) 20px; background-size: 5px 5px; background-repeat: no-repeat; padding-inline-end: 30px; }
.field textarea { height: auto; padding: 10px 12px; resize: vertical; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue-600); box-shadow: 0 0 0 3px var(--blue-50); background: #fff; }
.field-wide { grid-column: 1 / -1; }
.form-foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 4px; }
.form-note { font-size: 12.5px; color: var(--ink-3); }
.form-note.ok { color: var(--ok); font-weight: 600; }

/* ---------- footer ---------- */
.foot { background: var(--navy-900); color: rgba(255, 255, 255, 0.75); padding: 56px 0 24px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 32px; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.foot-brand .brand { color: #fff; margin-bottom: 12px; }
.foot-brand p { font-size: 14px; line-height: 1.55; max-width: 34ch; }
.foot-grid h4 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 12px; }
.foot-grid a { display: block; font-size: 14.5px; padding: 4px 0; }
.foot-grid a:hover { color: #fff; }
.foot-bar { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 20px; font-size: 13px; color: rgba(255, 255, 255, 0.55); }
kbd { font-family: var(--mono); border: 1px solid currentColor; padding: 0 5px; font-size: 12px; border-radius: 4px; }

/* ---------- reveal ---------- */
.rv { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.rv.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .nav, .top-actions .lang, .top-actions .btn-ghost-light { display: none; }
  .menu-btn { display: flex; }
  .hero-split { grid-template-columns: 1fr; min-height: 0; }
  .hero-ops { padding: 48px var(--edge) 150px; }
  .hero-acc { padding: 0 var(--edge) 48px; }
  .hero-cube { position: static; width: min(64%, 300px); margin: -110px auto 8px; transform: none; animation: none; }
  .hero-statement { max-width: none; }
  .window-slot { margin-top: 28px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stages { grid-template-columns: 1fr; }
  .stage-arrow .ic { transform: rotate(90deg); }
  .scenes { grid-template-columns: 1fr; }
  .proof-row, .proof-row:nth-child(even) { grid-template-columns: 1fr; gap: 24px; }
  .proof-row:nth-child(even) .proof-copy { order: 0; }
  .modules-grid { grid-template-columns: 1fr 1fr; }
  .legs-grid { grid-template-columns: 1fr; }
  .domains { grid-template-columns: 1fr 1fr; }
  .capsules { grid-template-columns: 1fr 1fr; }
  .spec-list { grid-template-columns: 1fr; }
  .fit-grid { grid-template-columns: 1fr 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .two-lists { grid-template-columns: 1fr; }
  .demo-panel { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .stepper { flex-wrap: wrap; gap: 16px 0; }
  .stepper::before { display: none; }
  .stepper li { flex: 1 1 33%; }
}
@media (max-width: 720px) {
  .wrap { width: calc(100% - 32px); }
  .desks { grid-template-columns: 1fr; }
  .desk { min-height: 0; }
  .wall { height: 36px; }
  .wall span { writing-mode: horizontal-tb; transform: none; }
  .feed-wait, .feed-post { min-height: 0; }
  .console-bar { grid-template-columns: auto 1fr; }
  .console-title { display: none; }
  .mode { justify-self: end; }
  .window-slot { margin-bottom: -120px; }
  .stats { padding-top: 170px; }
  .stats-grid { grid-template-columns: 1fr; }
  .vs { grid-template-columns: 1fr; }
  .modules-grid, .domains, .capsules, .fit-grid, .foot-grid { grid-template-columns: 1fr; }
  .sep { grid-template-columns: 1fr; }
  .sep-doc { border-inline-end: 0; border-bottom: 1px solid var(--line); }
  .lc-inputs { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
  .spec-list > div { grid-template-columns: 1fr; gap: 4px; }
  .stepper li { flex: 1 1 50%; }
  .doc-wm { font-size: 52px; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv { opacity: 1; transform: none; transition: none; }
  .fi, .acc-out, .je + .je, .je.shake, .fx-val.tick { animation: none; }
  .hero-cube { animation: none; }
  .switch, .switch .knob, .doc-wm, .btn, .top { transition: none; }
}

/* ============================================================
   RTL / Arabic (ar/) — Cairo for text, Plex Mono for numbers and
   document ids. No letter-spacing, taller leading, heavier weights.
   ============================================================ */
[dir="rtl"] { --sans: "Cairo", "IBM Plex Sans", "Segoe UI", Tahoma, Arial, sans-serif; }
[dir="rtl"] *, [dir="rtl"] *::before, [dir="rtl"] *::after { letter-spacing: 0 !important; }
[dir="rtl"] body { line-height: 1.75; }
[dir="rtl"] h1 { font-size: clamp(36px, 4.8vw, 66px); line-height: 1.25; font-weight: 800; }
[dir="rtl"] .hero-copy h1 { font-size: clamp(30px, 7.2vw, 64px); }
.nb { white-space: nowrap; }
[dir="rtl"] h2 { font-size: clamp(28px, 3.2vw, 42px); line-height: 1.3; font-weight: 800; }
[dir="rtl"] h3 { line-height: 1.45; }
[dir="rtl"] .lead, [dir="rtl"] .sec-head p, [dir="rtl"] .demo-copy p { line-height: 1.8; }
[dir="rtl"] .btn, [dir="rtl"] .nav a, [dir="rtl"] .brand-name { font-weight: 700; }
[dir="rtl"] .cube-label { font-family: "Cairo", sans-serif; font-size: 22px; }
[dir="rtl"] .cube-sub { font-family: "Cairo", sans-serif; }
[dir="rtl"] .wall span { transform: none; }
[dir="rtl"] .field select { background-position: 16px 20px, 11px 20px; padding-inline-end: 12px; padding-inline-start: 30px; }
[dir="rtl"] .doc-wm { transform: rotate(18deg); font-size: 64px; }
[dir="rtl"] .stepper li::before { left: 50%; }
[dir="rtl"] :is(.num, .fi b, .je-id, .doc-no, .sep-head strong, .recon-eq b, .stat b, .lc-inputs output, .desk-foot b, .acc-zone-k b, .sep-effects dd, .lc-table td.mono, .fx-table td.mono, .je-lines td.mono, .doc-lines td.mono, .sep-ev > .mono, .flow, .step-n) { direction: ltr; unicode-bidi: isolate; }
[dir="rtl"] .fx-table .rate { direction: ltr; }
[dir="rtl"] .doc-lines td:nth-child(2) { padding-inline-end: 0; padding-left: 14px; }
[dir="rtl"] .domains { grid-template-columns: repeat(3, 1fr); }
[dir="rtl"] .stat span, [dir="rtl"] .vs p, [dir="rtl"] .stage p, [dir="rtl"] .stage li, [dir="rtl"] .list-card li, [dir="rtl"] .module p, [dir="rtl"] .leg p, [dir="rtl"] .domains dd, [dir="rtl"] .capsule p, [dir="rtl"] .spec-list dd, [dir="rtl"] .fit p, [dir="rtl"] .step p, [dir="rtl"] .faq p, [dir="rtl"] .rule, [dir="rtl"] .desk-who, [dir="rtl"] .fi small, [dir="rtl"] .widget-msg, [dir="rtl"] .lc-note, [dir="rtl"] .fx-note, [dir="rtl"] .console-foot, [dir="rtl"] .foot-brand p { line-height: 1.7; font-size: 14.5px; }
[dir="rtl"] .proof-copy p, [dir="rtl"] .scene h3 { line-height: 1.75; }
[dir="rtl"] .vs-tag, [dir="rtl"] .desk-k, [dir="rtl"] .acc-zone-k, [dir="rtl"] .recon-k, [dir="rtl"] .step-w, [dir="rtl"] .domains dt, [dir="rtl"] th, [dir="rtl"] .badge, [dir="rtl"] .sep-head .dim, [dir="rtl"] .doc-head .dim, [dir="rtl"] .sep-acc-head > .mono, [dir="rtl"] .acc-out .mono, [dir="rtl"] .foot-grid h4 { font-size: 13px; }


/* ===== Customization section ===== */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.cust { display: grid; grid-template-columns: 5.4fr 6.6fr; gap: 24px; align-items: start; }
.cust-editor, .cust-preview { padding: 20px; }
.cust-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.cust-bar input, .cust-bar select {
  flex: 1 1 130px; min-width: 0; font: inherit; font-size: 14px; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px;
}
.cust-bar select { flex: 0 1 140px; }
.cust-bar input:focus, .cust-bar select:focus { outline: 2px solid var(--blue-500); outline-offset: 1px; }
.cust-fields { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.cf-row {
  display: flex; flex-direction: column; gap: 8px;
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px;
}
.cf-line1 { display: flex; align-items: center; gap: 10px; }
.cf-line2 { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.cf-group { display: flex; gap: 4px; flex-wrap: wrap; }
.cf-sep { width: 1px; align-self: stretch; min-height: 20px; background: var(--ink-3); opacity: 0.35; margin-inline: 7px; }

.cf-row.is-custom { border-color: rgba(15, 95, 224, 0.35); background: var(--blue-50); }
.cf-row.dragging { opacity: 0.45; }
.cf-row.over { border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(47, 128, 255, 0.14); }
.cf-grip { cursor: grab; color: var(--ink-3); font-size: 15px; line-height: 1; }
.cf-name { font-weight: 600; font-size: 14.5px; flex: 1 1 auto; min-width: 90px; }
.cf-tag { font-style: normal; font-size: 11px; font-weight: 600; color: var(--blue-600); margin-inline-start: 7px; }
.cf-type { font-family: var(--mono); font-size: 11px; color: var(--ink-3); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 2px 8px; }
.cf-toggles { display: flex; gap: 4px; }
.cf-tg {
  font: inherit; font-size: 11.5px; font-weight: 600; cursor: pointer; color: var(--ink-3);
  background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 3px 9px;
}
.cf-tg.on { color: #fff; background: var(--blue-600); border-color: var(--blue-600); }
.cf-tg.cf-print-tg.on { background: var(--amber); border-color: var(--amber); color: var(--amber-ink); }
.cf-move { display: flex; gap: 3px; margin-inline-start: auto; }
.cf-mv {
  font: inherit; font-size: 13px; line-height: 1; cursor: pointer; color: var(--ink-2);
  background: #fff; border: 1px solid var(--line); border-radius: 8px; width: 24px; height: 24px;
}
.cf-mv:hover { border-color: var(--blue-500); color: var(--blue-600); }
.cf-del:hover { border-color: var(--bad); color: var(--bad); }
.cust-hint { font-size: 13px; color: var(--ink-3); margin: 14px 0 0; line-height: 1.5; }
.cust-hint.warn { color: var(--bad); font-weight: 600; }
.seg { display: inline-flex; gap: 2px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 10px; padding: 3px; margin-bottom: 16px; }
.seg button {
  font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; color: var(--ink-2);
  background: transparent; border: 0; border-radius: 7px; padding: 6px 14px;
}
.seg button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(11, 22, 51, 0.12); }
.cust-stage { border: 1px solid var(--line); border-radius: 12px; padding: 16px; background: #fff; min-height: 330px; overflow-x: auto; }
.cf-form-head { font-weight: 700; font-size: 15px; margin-bottom: 14px; }
.cf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.cf-field label { display: block; font-size: 12px; color: var(--ink-3); margin-bottom: 4px; }
.cf-req { font-style: normal; color: var(--bad); font-size: 11px; }
.cf-input { border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 8px; background: var(--bg-soft); padding: 8px 10px; font-size: 13.5px; min-height: 36px; }
.cf-check { position: relative; }
.cf-check::before { content: "✓"; color: var(--ok); font-weight: 700; }
.cf-form-foot { margin-top: 16px; font-size: 13px; font-weight: 600; color: #fff; background: var(--blue-600); border-radius: 9px; padding: 8px 16px; display: inline-block; }
.cf-searchbar { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); background: var(--bg-soft); border: 1px solid var(--line); border-radius: 9px; padding: 8px 11px; margin-bottom: 10px; }
.cf-mag { color: var(--ink-3); font-size: 15px; }
.cf-chips { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.cf-chip-label { font-size: 12px; color: var(--ink-3); }
.cf-chip { font-size: 12px; font-weight: 600; color: var(--blue-600); background: var(--blue-50); border-radius: 999px; padding: 3px 10px; }
.cf-chip.dim { color: var(--ink-3); background: var(--bg-soft); font-weight: 400; }
.cf-chip-filter { font-size: 12px; font-weight: 600; color: var(--ink-2); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; }
.cf-chips + .cf-chips { margin-top: -6px; }
.cf-table { width: 100%; border-collapse: collapse; font-size: 12.5px; white-space: nowrap; }
.cf-table th { text-align: start; font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-3); padding: 6px 7px; border-bottom: 1px solid var(--line); font-weight: 600; }
.cf-table td { padding: 7px 7px; border-bottom: 1px solid var(--line); }
.cf-table th.num, .cf-table td.num { text-align: end; }
.cf-print { border: 1px solid var(--line); border-radius: 10px; padding: 16px; }
.cf-print-head { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 2px solid var(--ink); padding-bottom: 8px; margin-bottom: 12px; }
.cf-print-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 18px; margin: 0 0 14px; }
.cf-print-fields div { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px dotted var(--line); padding-bottom: 3px; }
.cf-print-fields dt { font-size: 12px; color: var(--ink-3); }
.cf-print-fields dd { margin: 0; font-size: 12.5px; font-weight: 600; }
.cf-print-total { display: flex; justify-content: space-between; font-weight: 700; padding: 10px 8px 0; }
.cf-print-foot { margin-top: 12px; font-size: 11px; color: var(--ink-3); text-align: center; }
.cust-json { max-height: 300px; overflow: auto; font-size: 11.5px; line-height: 1.6; background: var(--navy-900); color: #C9D8F5; border-radius: 12px; padding: 16px; white-space: pre; }
.cust-rule { margin-top: 26px; }
[dir="rtl"] .cf-grip { transform: scaleX(-1); }
@media (max-width: 900px) {
  .cust { grid-template-columns: 1fr; }
  .cf-grid, .cf-print-fields { grid-template-columns: 1fr; }
  .cf-row { padding: 9px 10px; }
  .cf-name { font-size: 14px; }
  .cf-tg { padding: 3px 8px; }
  .cf-sep { display: none; }
  .cf-line2 { gap: 5px; }
}
