/* Rawaj public site — v2
   Direction: an operations ledger, not a SaaS brochure. White paper, navy ink, one cool fog
   tone, start-aligned index layout (heading column + content column), rules instead of
   cards, and a single brand moment: the growth path drawn once under the hero.
   Colour: ink #0B1F4D · signal #4F46E5 · approve #0F8F7E · fog #EEF2F8 · rule #D6DDE9 */

:root {
  --ink: #0B1F4D; --ink-2: #33426A; --ink-3: #66739A;
  --paper: #FFFFFF; --fog: #EEF2F8; --rule: #D6DDE9; --rule-2: #C3CDDE;
  --signal: #4F46E5; --signal-ink: #1D4FCB; --approve: #0F8F7E; --hold: #A35A00;
  --night: #0B1F4D; --night-2: #13295E; --night-ink: #E7ECF8; --night-dim: #9FB0D8;
  --font: "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  --font-lat: "Inter Variable", "Inter", "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", sans-serif;
  --w: 1200px; --gut: clamp(20px, 4vw, 40px);
  --r: 6px; --r-lg: 14px;
}
:root[lang="en"] { --font: "Inter Variable", "Inter", "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { overflow-x: clip; }
body { margin: 0; font: 400 17px/1.75 var(--font); color: var(--ink); background: var(--paper); text-rendering: optimizeLegibility; }
:lang(en) body, html[lang="en"] body { line-height: 1.6; }
a { color: var(--signal-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
img, svg { max-width: 100%; }
h1, h2, h3 { margin: 0; color: inherit; font-weight: 600; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.num { font-family: var(--font-lat); font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; }
.i { width: 18px; height: 18px; flex: none; vertical-align: -3px; }
.i.sm { width: 15px; height: 15px; } .i.lg { width: 22px; height: 22px; }
.sr, .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 3px; }
.skip { position: absolute; inset-inline-start: 8px; top: 8px; z-index: 99; background: var(--paper); padding: 8px 14px; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; white-space: nowrap; }
.skip:focus { clip-path: none; width: auto; height: auto; }
.wrap { width: min(var(--w), 100% - 2 * var(--gut)); margin-inline: auto; }
.narrow { width: min(760px, 100% - 2 * var(--gut)); }
.center { text-align: center; }
.muted { color: var(--ink-3); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px;
  border-radius: var(--r); font: 600 15px/1 var(--font); text-decoration: none; cursor: pointer; border: 1.5px solid transparent;
  transition: background-color .15s, color .15s, border-color .15s; white-space: nowrap; }
.btn-lg { min-height: 52px; padding: 0 26px; font-size: 16px; }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 14px; }
.btn-ink, .btn-glow { background: var(--ink); color: #fff; }
.btn-ink:hover, .btn-glow:hover { background: var(--signal); }
.btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn-ghost-l { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-ghost-l:hover { background: #fff; color: var(--ink); }
.sec-ink .btn-glow, .band .btn-glow { background: #fff; color: var(--ink); }
.sec-ink .btn-glow:hover, .band .btn-glow:hover { background: var(--signal); color: #fff; }
.txt-link { display: inline-block; margin-top: 18px; font-weight: 600; color: inherit; text-decoration: underline; text-decoration-color: var(--signal); text-decoration-thickness: 2px; }
.txt-link:hover { color: var(--signal-ink); }
.more { font-weight: 600; color: var(--signal-ink); }

/* ---------- header ---------- */
.hdr { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.94); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--rule); }
.hdr-in { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.logo img { width: 34px; height: 34px; }
.logo-t { display: flex; flex-direction: column; line-height: 1; }
.logo-t b { font-size: 22px; font-weight: 700; }
.logo-t small { font: 600 9.5px/1 var(--font-lat); letter-spacing: .38em; color: var(--ink-3); margin-top: 5px; }
.nav { display: flex; gap: 24px; margin-inline-start: 8px; }
.nav a { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 15px; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }
.hdr-act { display: flex; align-items: center; gap: 18px; margin-inline-start: auto; }
.hdr-act .lang, .lnk-login { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 15px; }
.hdr-act .lang:hover, .lnk-login:hover { color: var(--ink); text-decoration: underline; }
.mnav { display: none; position: relative; }
.mnav summary { list-style: none; cursor: pointer; display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--rule-2); border-radius: var(--r); }
.mnav summary::-webkit-details-marker { display: none; }
.mnav-panel { position: absolute; inset-inline-end: 0; top: 52px; width: min(300px, 86vw); background: var(--paper); border: 1px solid var(--rule); box-shadow: 0 18px 40px -18px rgba(11,31,77,.35); padding: 8px; border-radius: var(--r-lg); display: grid; }
.mnav-panel a { padding: 12px 14px; color: var(--ink); text-decoration: none; font-weight: 600; border-radius: var(--r); }
.mnav-panel a:hover { background: var(--fog); }
@media (max-width: 980px) { .nav, .hdr-act .lang, .lnk-login { display: none; } .mnav { display: block; } }
@media (max-width: 420px) { .hdr-act .btn-sm { display: none; } }

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(48px, 7vw, 96px) 0 0; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.hero h1 { font-size: clamp(38px, 5.6vw, 76px); line-height: 1.12; font-weight: 700; letter-spacing: -.01em; max-width: 13ch; text-wrap: balance; }
html[lang="en"] .hero h1 { letter-spacing: -.035em; line-height: 1.02; max-width: 14ch; }
.hero-lead { margin-top: 28px; font-size: clamp(17px, 1.5vw, 19px); color: var(--ink-2); max-width: 54ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-note { margin-top: 16px; font-size: 14px; color: var(--ink-3); }

/* the plan sheet — the product's core moment */
.sheet { margin: 6px 0 0; background: var(--paper); border: 1px solid var(--rule-2); border-radius: var(--r-lg);
  box-shadow: 0 1px 0 var(--rule), 0 30px 60px -34px rgba(11,31,77,.45); position: relative; z-index: 2; }
.sheet-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 20px 22px 16px; border-bottom: 1px solid var(--rule); }
.sheet-t { display: block; font-size: 19px; font-weight: 600; }
.sheet-sub { display: block; font-size: 13px; color: var(--ink-3); margin-top: 2px; }
.sheet-tag { font-size: 12px; font-weight: 600; color: var(--ink-3); border: 1px dashed var(--rule-2); border-radius: 999px; padding: 2px 10px; white-space: nowrap; }
.sheet-rows { padding: 4px 0; }
.sr-row { display: grid; grid-template-columns: 58px 1fr; gap: 12px; padding: 14px 22px; border-bottom: 1px solid var(--rule); position: relative; }
.sr-row:last-child { border-bottom: 0; }
.sr-row.is-sens::before { content: ""; position: absolute; inset-block: 12px; inset-inline-start: 0; width: 3px; background: var(--hold); border-radius: 0 3px 3px 0; }
[dir="rtl"] .sr-row.is-sens::before { border-radius: 3px 0 0 3px; }
.sr-time { font-size: 13px; font-weight: 600; color: var(--ink-3); padding-top: 3px; }
.sr-kind { font-size: 12.5px; font-weight: 600; color: var(--ink-3); }
.sr-text { font-size: 15.5px; font-weight: 600; line-height: 1.5; margin-top: 1px; }
.sr-meta { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 13px; color: var(--ink-2); }
.sr-av { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--fog); border: 1px solid var(--rule-2); font-size: 11px; font-weight: 600; color: var(--ink); }
.sr-av-lg { width: 34px; height: 34px; font-size: 15px; background: var(--ink); color: #fff; border: 0; }
.sr-state { margin-inline-start: auto; font-weight: 600; color: var(--approve); }
.is-sens .sr-state { color: var(--hold); }
.sheet-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 22px 18px; border-top: 1px solid var(--rule); background: #FAFBFD; border-radius: 0 0 var(--r-lg) var(--r-lg); }
.sheet-sum { font-size: 13.5px; color: var(--ink-2); font-weight: 600; }
.sheet-btns { display: flex; gap: 8px; }
.fake-btn { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: var(--r); background: var(--ink); color: #fff; font-size: 13.5px; font-weight: 600; }
.fake-btn.fb-ghost { background: transparent; color: var(--ink); border: 1px solid var(--rule-2); }

/* the growth path: one line, drawn once */
.path { display: block; width: 100%; height: clamp(70px, 10vw, 150px); margin-top: clamp(-90px, -6vw, -40px); position: relative; z-index: 1; }
.path-line { fill: none; stroke: url(#pg); stroke-width: 3; stroke-linecap: round; vector-effect: non-scaling-stroke;
  stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.6s .25s cubic-bezier(.6,.05,.25,1) forwards; }
[dir="rtl"] .path { transform: scaleX(-1); }
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .path-line { animation: none; stroke-dashoffset: 0; } html { scroll-behavior: auto; } }
.strip { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 28px; padding: 22px 0 30px; border-top: 1px solid var(--rule); }
.strip-l { font-size: 14px; color: var(--ink-3); }
.strip ul { display: flex; flex-wrap: wrap; gap: 6px 26px; }
.strip li { font-weight: 600; font-size: 17px; color: var(--ink-2); }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero h1 { max-width: 16ch; }
  .path { margin-top: 12px; }
}

/* ---------- sections & the index layout ---------- */
.sec { padding: clamp(64px, 9vw, 120px) 0; }
.sec-tight { padding: clamp(44px, 6vw, 72px) 0; }
.sec-fog, .sec-mist { background: var(--fog); }
.sec-ink, .sec-navy { background: var(--night); color: var(--night-ink); }
.sec-ink a, .sec-navy a { color: #fff; }
.idx { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(28px, 6vw, 96px); align-items: start; }
.idx-h h2, .h2, .sec h2:not(.h-sm):not(.ftr-h) { font-size: clamp(28px, 3.3vw, 44px); line-height: 1.22; font-weight: 600; letter-spacing: -.005em; text-wrap: balance; }
html[lang="en"] .idx-h h2, html[lang="en"] .h2, html[lang="en"] .sec h2:not(.h-sm):not(.ftr-h) { letter-spacing: -.025em; line-height: 1.12; }
.idx-h p, .lead-p { margin-top: 18px; color: var(--ink-2); max-width: 46ch; }
.sec-ink .idx-h p, .sec-ink .lead-p, .sec-navy p { color: var(--night-dim); }
.idx-wide { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.idx-sticky { position: sticky; top: 100px; }
.sec > .wrap > h2 { margin-bottom: clamp(28px, 4vw, 48px); }
@media (max-width: 900px) { .idx { grid-template-columns: minmax(0, 1fr); } .idx-sticky { position: static; } }

/* before / after ledger */
.ledger-t { width: 100%; border-collapse: collapse; font-size: 16px; }
.ledger-t th { text-align: start; font-size: 14px; font-weight: 600; color: var(--ink-3); padding: 0 0 12px; border-bottom: 2px solid var(--ink); }
.ledger-t th + th, .ledger-t td + td { padding-inline-start: 28px; }
.ledger-t td { padding: 18px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.ledger-t td:first-child { color: var(--ink-3); }
.ledger-t td:last-child { font-weight: 600; }
@media (max-width: 620px) {
  .ledger-t thead { display: none; }
  .ledger-t tr { display: block; padding: 16px 0; border-bottom: 1px solid var(--rule); }
  .ledger-t td { display: block; border: 0; padding: 0; }
  .ledger-t td + td { padding: 6px 0 0; }
}

/* modules index */
.modules { margin: 0; border-top: 2px solid var(--ink); }
.mod { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--rule-2); }
.mod dt a { font-size: 20px; font-weight: 600; color: var(--ink); text-decoration: none; line-height: 1.35; }
.mod dt a:hover { text-decoration: underline; text-decoration-color: var(--signal); text-decoration-thickness: 2px; }
.mod dd { margin: 0; color: var(--ink-2); }
@media (max-width: 620px) { .mod { grid-template-columns: minmax(0, 1fr); gap: 6px; } }

/* day track — a real sequence, so it gets times */
.track { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 2px solid var(--ink); }
.track li { padding: 22px clamp(14px, 2vw, 28px) 0; padding-inline-start: 0; position: relative; }
.track li + li { border-inline-start: 1px solid var(--rule); padding-inline-start: clamp(14px, 2vw, 28px); }
.track-t { display: block; font-size: 15px; font-weight: 600; color: var(--signal-ink); margin-bottom: 10px; }
.track h3 { font-size: 20px; margin-bottom: 8px; }
.track p { color: var(--ink-2); font-size: 16px; }
@media (max-width: 860px) { .track { grid-template-columns: minmax(0, 1fr); } .track li, .track li + li { border-inline-start: 0; padding: 20px 0; border-bottom: 1px solid var(--rule); } }

/* governance */
.guards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 40px; }
.guards h3 { display: flex; gap: 10px; align-items: center; font-size: 18px; color: #fff; margin-bottom: 8px; }
.guards .i { color: #7DD3C7; }
.guards p { color: var(--night-dim); font-size: 16px; }
@media (max-width: 620px) { .guards { grid-template-columns: minmax(0, 1fr); } }

/* two-column sections */
.duo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.duo-flip > :first-child { order: 2; }
@media (max-width: 900px) { .duo { grid-template-columns: minmax(0, 1fr); } .duo-flip > :first-child { order: 0; } }
.facts { margin: 32px 0 0; }
.facts div { padding: 18px 0; border-top: 1px solid var(--rule-2); }
.facts dt { font-weight: 600; font-size: 18px; }
.facts dd { margin: 4px 0 0; color: var(--ink-2); }
.checks { margin-top: 26px; display: grid; gap: 12px; }
.checks li { position: relative; padding-inline-start: 30px; font-weight: 600; }
.checks li::before { content: ""; position: absolute; inset-inline-start: 2px; top: .55em; width: 14px; height: 8px; border: solid var(--approve); border-width: 0 0 2.5px 2.5px; transform: rotate(-45deg); }
.sec-ink .checks li::before { border-color: #7DD3C7; }

/* contribution calc (example) */
.calc { margin: 0; background: var(--paper); border: 1px solid var(--rule-2); border-radius: var(--r-lg); padding: 22px 24px; box-shadow: 0 24px 50px -36px rgba(11,31,77,.5); }
.calc figcaption { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; padding-bottom: 14px; border-bottom: 2px solid var(--ink); }
.calc li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--rule); font-size: 15.5px; }
.calc-v { font-weight: 600; }
.calc-ok .calc-v { color: var(--approve); } .calc-warn .calc-v { color: var(--hold); } .calc-info .calc-v { color: var(--ink-2); }
.calc-warn { background: #FFF7EB; margin-inline: -24px; padding-inline: 24px !important; }
.calc-res { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 16px; }
.calc-res span { color: var(--ink-3); font-weight: 600; }
.calc-res b { color: var(--hold); }
.calc-task { margin-top: 14px; font-size: 14px; color: var(--ink-2); display: flex; gap: 8px; align-items: center; }

/* org diagram */
.org { display: grid; justify-items: center; gap: 0; }
.org-owner { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 18px; padding-bottom: 26px; position: relative; }
.org-owner::after { content: ""; position: absolute; bottom: 0; left: 50%; width: 2px; height: 22px; background: var(--ink); }
.org-cos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; width: 100%; border-top: 2px solid var(--ink); padding-top: 22px; }
.org-co { background: var(--paper); border: 1px solid var(--rule-2); border-radius: var(--r); padding: 16px 14px; font-weight: 600; font-size: 15px; display: grid; gap: 8px; }
.org-co .i { color: var(--ink-3); }
@media (max-width: 520px) { .org-cos { grid-template-columns: minmax(0, 1fr); } }

/* connections table */
.conn { border-top: 2px solid var(--ink); }
.conn li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--rule); font-weight: 600; }
.st { font-size: 13px; font-weight: 600; white-space: nowrap; }
.st-available { color: var(--approve); } .st-pending { color: var(--hold); } .st-export { color: var(--ink-3); }
.st-beta { color: var(--signal-ink); } .st-planned { color: var(--ink-3); font-style: italic; }
.lead-sm { color: var(--ink-2, inherit); max-width: 70ch; margin: 0 0 16px; }
.st::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: currentColor; margin-inline-end: 7px; vertical-align: 1px; }
.fine, .honest { margin-top: 18px; font-size: 14px; color: var(--ink-3); max-width: 62ch; }

/* audiences */
.who-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; margin-top: clamp(30px, 4vw, 48px); }
.who-cols li { border-top: 2px solid var(--ink); padding-top: 18px; }
.who-cols h3, .who h3 { font-size: 18px; margin-bottom: 8px; line-height: 1.4; }
.who-cols p, .who p { color: var(--ink-2); font-size: 16px; }
@media (max-width: 900px) { .who-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .who-cols { grid-template-columns: minmax(0, 1fr); } }
.who { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.who-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .who-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.who li { border-top: 2px solid var(--ink); padding-top: 18px; }
.who-ic { display: block; color: var(--signal-ink); margin-bottom: 10px; }
@media (max-width: 900px) { .who, .who-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .who, .who-3, .who-2 { grid-template-columns: minmax(0, 1fr); } }

/* plans */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--rule-2); border-radius: var(--r-lg); overflow: hidden; }
.plan { padding: 30px 28px 32px; display: flex; flex-direction: column; gap: 14px; background: var(--paper); }
.plan + .plan { border-inline-start: 1px solid var(--rule-2); }
.plan-feat { background: var(--night); color: var(--night-ink); }
.plan-badge { font-size: 13px; font-weight: 600; color: #7DD3C7; }
.plan-n { font: 600 26px/1.1 var(--font-lat); letter-spacing: -.02em; }
.plan-for { color: var(--ink-2); min-height: 3.4em; }
.plan-feat .plan-for { color: var(--night-dim); }
.plan-price { font-weight: 600; padding-bottom: 14px; border-bottom: 1px solid var(--rule); }
.plan-feat .plan-price { border-color: rgba(255,255,255,.18); }
.plan .ticks { flex: 1; }
.plan .btn { align-self: stretch; }
.plan-feat .btn-glow { background: #fff; color: var(--ink); }
.plan-feat .btn-glow:hover { background: var(--signal); color: #fff; }
.after-plans { margin-top: 8px; }
@media (max-width: 900px) { .plans { grid-template-columns: minmax(0, 1fr); } .plan + .plan { border-inline-start: 0; border-top: 1px solid var(--rule-2); } }

/* ticks (inner pages, plans) */
.ticks { display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; font-size: 15.5px; }
.ticks li .i { color: var(--approve); margin-top: 5px; }
.plan-feat .ticks li .i, .sec-ink .ticks li .i, .sec-navy .ticks li .i { color: #7DD3C7; }
.ticks-lg li { font-size: 17px; }

/* faq */
.faq { border-top: 2px solid var(--ink); }
.faq-i { border-bottom: 1px solid var(--rule-2); }
.faq-i summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 20px 0; }
.faq-i summary::-webkit-details-marker { display: none; }
.faq-i summary h3 { font-size: 18px; font-weight: 600; line-height: 1.5; }
.faq-i summary .i { transition: transform .2s; color: var(--ink-3); }
.faq-i[open] summary .i { transform: rotate(45deg); }
.faq-i p { padding: 0 0 22px; color: var(--ink-2); max-width: 70ch; }

/* demo + forms */
.demo-mail { margin-top: 28px; font-weight: 600; }
.form-card { background: var(--paper); color: var(--ink); border-radius: var(--r-lg); padding: clamp(22px, 3vw, 34px); }
.form-card-l { border: 1px solid var(--rule-2); }
.lead-form { display: grid; gap: 16px; }
.f-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
@media (max-width: 560px) { .f-row { grid-template-columns: minmax(0, 1fr); } }
.f label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.f input, .f textarea { width: 100%; min-height: 48px; padding: 10px 14px; border: 1.5px solid var(--rule-2); border-radius: var(--r); font: 500 16px/1.5 var(--font); color: var(--ink); background: #fff; }
.f textarea { min-height: 120px; resize: vertical; }
.f input:focus, .f textarea:focus { outline: none; border-color: var(--signal); box-shadow: 0 0 0 3px rgba(79,70,229,.18); }
.f input[aria-invalid="true"] { border-color: #C2353A; }
.f-e, .form-err { color: #C2353A; font-size: 13px; font-weight: 600; }
.f-note { font-size: 13px; color: var(--ink-3); }
.lead-form .btn { justify-self: start; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* inner page head */
.phead { padding: clamp(44px, 6vw, 80px) 0 clamp(32px, 4vw, 52px); border-bottom: 1px solid var(--rule); }
.phead h1 { font-size: clamp(34px, 4.6vw, 60px); line-height: 1.15; font-weight: 700; max-width: 18ch; text-wrap: balance; }
html[lang="en"] .phead h1 { letter-spacing: -.03em; line-height: 1.05; }
.phead .lead, .lead { margin-top: 18px; font-size: 18.5px; color: var(--ink-2); max-width: 60ch; }
.phead-c { text-align: center; } .phead-c h1, .phead-c .lead { margin-inline: auto; }
.crumbs { font-size: 14px; color: var(--ink-3); margin-bottom: 18px; }
.crumbs a { color: var(--ink-3); }

/* features page */
.feat-wrap { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); padding: clamp(40px, 6vw, 72px) 0; align-items: start; }
.toc { position: sticky; top: 96px; }
.toc ul { border-inline-start: 2px solid var(--rule); }
.toc a { display: flex; gap: 8px; align-items: center; padding: 8px 14px; color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 15px; margin-inline-start: -2px; border-inline-start: 2px solid transparent; }
.toc a:hover { color: var(--ink); border-color: var(--ink); }
.feat { padding: 0 0 48px; margin-bottom: 48px; border-bottom: 1px solid var(--rule); scroll-margin-top: 96px; }
.feat:last-child { border: 0; margin: 0; }
.feat-ic { display: block; color: var(--signal-ink); margin-bottom: 12px; }
.feat h2 { font-size: clamp(24px, 2.6vw, 32px) !important; margin-bottom: 12px; }
.feat-p { color: var(--ink-2); margin-bottom: 20px; max-width: 64ch; }
@media (max-width: 900px) { .feat-wrap { grid-template-columns: minmax(0, 1fr); } .toc { position: static; } }

/* integrations page */
.h-sm { font-size: 20px !important; margin-bottom: 16px; }
.legend { display: grid; gap: 10px; }
.legend li { display: flex; gap: 14px; align-items: baseline; flex-wrap: wrap; }
.legend p { color: var(--ink-2); }
.prov-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 2px solid var(--ink); }
.prov { padding: 22px 0; border-bottom: 1px solid var(--rule); }
.prov:nth-child(odd) { padding-inline-end: 28px; } .prov:nth-child(even) { padding-inline-start: 28px; border-inline-start: 1px solid var(--rule); }
.prov header { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.prov h3 { font-size: 19px; }
.prov header .st { margin-inline-start: auto; }
.prov-ic { color: var(--ink-3); }
.prov dl { margin: 0; display: grid; gap: 8px; }
.prov dt { font-size: 13px; font-weight: 600; color: var(--ink-3); }
.prov dd { margin: 0; font-size: 15.5px; }
@media (max-width: 760px) { .prov-grid { grid-template-columns: minmax(0, 1fr); } .prov:nth-child(n) { padding-inline: 0; border-inline-start: 0; } }

/* pricing table */
.tbl-wrap { overflow-x: auto; contain: paint; border: 1px solid var(--rule-2); border-radius: var(--r-lg); }
.cmp { width: 100%; border-collapse: collapse; min-width: 640px; font-size: 15.5px; }
.cmp th, .cmp td { padding: 14px 18px; border-bottom: 1px solid var(--rule); text-align: start; }
.cmp thead th { background: var(--fog); font-weight: 600; }
.cmp thead th[lang] { font-family: var(--font-lat); }
.cmp tbody th { font-weight: 600; }
.cmp tr:last-child > * { border-bottom: 0; }
.yes { color: var(--approve); } .no { color: var(--ink-3); }

/* ai page */
.flow { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); border-top: 2px solid var(--ink); }
.flow li { padding: 20px 18px 0 0; }
[dir="rtl"] .flow li { padding: 20px 0 0 18px; }
.flow-n { font: 600 14px/1 var(--font-lat); color: var(--signal-ink); display: block; margin-bottom: 10px; }
.flow h3 { font-size: 18px; margin-bottom: 6px; }
.flow p { color: var(--ink-2); font-size: 15.5px; }
.cmd { margin: 0 0 24px; padding: 20px 22px; border-inline-start: 3px solid var(--signal); background: var(--fog); display: flex; gap: 12px; font-size: 18px; font-weight: 600; }
.cmd .i { color: var(--signal-ink); margin-top: 6px; }
.steps-l { list-style: decimal; padding-inline-start: 1.4em; display: grid; gap: 10px; color: var(--ink-2); }

/* prose / legal / about */
.prose h2 { margin-bottom: 16px; }
.prose p { margin-bottom: 16px; color: var(--ink-2); max-width: 68ch; }
.prose h3 { font-size: 19px; margin: 26px 0 8px; }
.draft { background: #FFF7EB; border-inline-start: 3px solid var(--hold); padding: 14px 18px; margin-bottom: 28px; font-weight: 600; }
.kv { margin: 26px 0 0; display: grid; gap: 14px; }
.kv dt { font-size: 13px; font-weight: 600; color: var(--ink-3); }
.kv dd { margin: 2px 0 0; font-weight: 600; }
.lead-s { margin: 14px 0 22px; color: var(--ink-2); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); } }
.ok-ic { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: #E3F5F1; color: var(--approve); margin-bottom: 18px; }

/* closing band */
.band { background: var(--night); color: var(--night-ink); padding: clamp(52px, 7vw, 88px) 0; }
.band-in { display: flex; justify-content: space-between; align-items: flex-end; gap: 28px; flex-wrap: wrap; }
.band h2 { font-size: clamp(28px, 3.2vw, 42px); line-height: 1.2; max-width: 20ch; }
.band p { color: var(--night-dim); margin-top: 10px; max-width: 52ch; }
.band-act { display: flex; gap: 12px; flex-wrap: wrap; }

/* footer */
.ftr { background: var(--paper); border-top: 1px solid var(--rule); padding: 56px 0 28px; font-size: 15px; }
.ftr-grid { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.ftr-grid nav, .ftr-grid > div:last-child { display: grid; gap: 8px; align-content: start; }
.ftr-grid a { color: var(--ink-2); text-decoration: none; }
.ftr-grid a:hover { color: var(--ink); text-decoration: underline; }
.ftr-h { font-size: 14px !important; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.ftr-tag { margin-top: 14px; font-weight: 600; }
.ftr-by { color: var(--ink-3); font-size: 14px; margin-top: 4px; }
.ftr-base { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--rule); color: var(--ink-3); font-size: 13.5px; }
@media (max-width: 760px) { .ftr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ftr-brand { grid-column: 1 / -1; } }

/* error page */
.pg-error .err, .err { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 60px 0; }
.err-code { font: 700 clamp(80px, 14vw, 160px)/1 var(--font-lat); letter-spacing: -.05em; color: var(--ink); }
.hero-glow { display: none; }

@media print { .hdr, .ftr, .band, .path { display: none; } }
.form-card .btn-glow { background: var(--ink); color: #fff; }
.form-card .btn-glow:hover { background: var(--signal); }
.form-card a { color: var(--signal-ink); }

/* ===================================================================== landing v3
   Same ledger direction. New pieces: a real product screen under the hero (framed like a window, stamped
   «بيانات توضيحية»), CSS-only outcome tabs (radio group → no JS, no layout shift), and ONE bold moment:
   the ROI ledger on navy. Screens reserve their box with width/height + aspect-ratio (CLS 0). */
.hero-v3 { padding-bottom: 0; }
.hero-v3 .hero-grid { grid-template-columns: minmax(0, 1fr); }
.hero-v3 h1 { max-width: 19ch; }
.hero-v3 .hero-lead { max-width: 62ch; }
.hero-pts { margin-top: 26px; display: grid; gap: 8px; }
.hero-pts li { position: relative; padding-inline-start: 26px; font-weight: 600; color: var(--ink); }
.hero-pts li::before { content: ""; position: absolute; inset-inline-start: 2px; top: .62em; width: 12px; height: 7px;
  border: solid var(--approve); border-width: 0 0 2.5px 2.5px; transform: rotate(-45deg); }
@media (min-width: 1100px) {
  .hero-v3 .hero-copy { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); column-gap: 72px; align-items: end; }
  .hero-v3 .hero-copy h1 { grid-column: 1 / -1; }
  .hero-v3 .hero-lead { grid-column: 1; }
  .hero-v3 .hero-pts { grid-column: 2; grid-row: 2; margin-top: 28px; align-self: start; }
  .hero-v3 .hero-cta, .hero-v3 .hero-note { grid-column: 1; }
}
.install-btn { display: inline-flex; align-items: center; gap: 6px; margin-inline-start: 10px; padding: 4px 12px; min-height: 32px;
  border: 1px solid var(--rule-2); border-radius: 999px; background: var(--paper); color: var(--ink); font: 600 13px/1 var(--font); cursor: pointer; }
.install-btn:hover { border-color: var(--ink); }
.install-btn[hidden] { display: none; }

/* product screens */
.shot { margin: 0; position: relative; }
.shot img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; background: var(--fog); }
.shot figcaption { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; font-size: 13.5px; color: var(--ink-3); }
.shot-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--hold);
  background: #FFF7EB; border: 1px solid #F3D9B1; border-radius: 999px; padding: 2px 10px; }
.shot-hero { margin: clamp(40px, 5vw, 64px) auto 0; position: relative; z-index: 2; }
.shot-hero img, .shot-sm img { border: 1px solid var(--rule-2); border-top: 0; border-radius: 0 0 var(--r-lg) var(--r-lg);
  box-shadow: 0 1px 0 var(--rule), 0 40px 80px -48px rgba(11,31,77,.55); }
.shot-sm img { border-top: 1px solid var(--rule-2); border-radius: var(--r-lg); }
.shot-win { display: flex; align-items: center; gap: 7px; height: 34px; padding-inline: 14px; background: #F3F5FA;
  border: 1px solid var(--rule-2); border-bottom-color: var(--rule); border-radius: var(--r-lg) var(--r-lg) 0 0; }
.shot-win i { width: 9px; height: 9px; border-radius: 50%; background: var(--rule-2); }
.shot-win span { margin-inline-start: 14px; font: 500 12px/1 var(--font-lat); color: var(--ink-3); }
.hero-v3 .path { margin-top: clamp(-120px, -8vw, -48px); z-index: 1; }
.sec-top0 { padding-top: clamp(28px, 4vw, 48px); }
.conn-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; border-top: 2px solid var(--ink); }
.conn-2 li { min-width: 0; }
.conn-2 li > span:first-child { overflow-wrap: anywhere; }
@media (max-width: 640px) { .conn-2 { grid-template-columns: minmax(0, 1fr); } }

/* outcomes: radio-driven tabs */
.oc { position: relative; }
.oc-r { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.oc-tabs { display: flex; gap: 6px; border-bottom: 2px solid var(--ink); overflow-x: auto; scrollbar-width: none; margin-bottom: clamp(28px, 4vw, 44px); }
.oc-tabs::-webkit-scrollbar { display: none; }
.oc-t { flex: none; padding: 12px 16px 14px; font-weight: 600; font-size: 16px; color: var(--ink-3); cursor: pointer; white-space: nowrap;
  border-bottom: 3px solid transparent; margin-bottom: -2px; }
.oc-t:hover { color: var(--ink); }
.oc-p { display: none; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.oc-kicker { font-size: 14px; font-weight: 600; color: var(--signal-ink); margin-bottom: 8px; }
.oc-copy h3 { font-size: clamp(24px, 2.6vw, 34px); line-height: 1.25; margin-bottom: 14px; text-wrap: balance; }
html[lang="en"] .oc-copy h3 { letter-spacing: -.02em; line-height: 1.15; }
.oc-copy > p:not(.oc-kicker):not(.fine) { color: var(--ink-2); max-width: 52ch; }
.oc-copy .checks { margin-top: 20px; }
#oc-money:checked ~ .oc-panels .oc-p-money, #oc-health:checked ~ .oc-panels .oc-p-health, #oc-ask:checked ~ .oc-panels .oc-p-ask,
#oc-autopilot:checked ~ .oc-panels .oc-p-autopilot, #oc-inbox:checked ~ .oc-panels .oc-p-inbox { display: grid; }
#oc-money:checked ~ .oc-tabs .oc-t-money, #oc-health:checked ~ .oc-tabs .oc-t-health, #oc-ask:checked ~ .oc-tabs .oc-t-ask,
#oc-autopilot:checked ~ .oc-tabs .oc-t-autopilot, #oc-inbox:checked ~ .oc-tabs .oc-t-inbox { color: var(--ink); border-bottom-color: var(--signal); }
#oc-money:focus-visible ~ .oc-tabs .oc-t-money, #oc-health:focus-visible ~ .oc-tabs .oc-t-health, #oc-ask:focus-visible ~ .oc-tabs .oc-t-ask,
#oc-autopilot:focus-visible ~ .oc-tabs .oc-t-autopilot, #oc-inbox:focus-visible ~ .oc-tabs .oc-t-inbox { outline: 2px solid var(--signal); outline-offset: -2px; border-radius: 4px; }
@media (max-width: 900px) { .oc-p { grid-template-columns: minmax(0, 1fr); } }

/* ROI ledger */
.roi { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.roi-in { border: 0; margin: 0; padding: 0; display: grid; gap: 18px; min-width: 0; }
.roi-f { display: grid; gap: 6px; font-weight: 600; font-size: 15px; color: #fff; }
.roi-f small { font-weight: 600; color: var(--night-dim); }
.roi-f input[type="number"] { width: 100%; min-height: 50px; padding: 10px 14px; border-radius: var(--r); border: 1.5px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.06); color: #fff; font: 600 19px/1.2 var(--font-lat); text-align: start; }
.roi-f input[type="number"]:focus { outline: none; border-color: #7DD3C7; box-shadow: 0 0 0 3px rgba(125,211,199,.25); }
.roi-help { font-size: 13px; font-weight: 500; color: var(--night-dim); }
.seg { display: inline-flex; border: 1.5px solid rgba(255,255,255,.22); border-radius: var(--r); overflow: hidden; width: max-content; max-width: 100%; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span { display: block; padding: 10px 18px; font-weight: 600; color: var(--night-dim); }
.seg input:checked + span { background: #fff; color: var(--ink); }
.seg input:focus-visible + span { outline: 2px solid #7DD3C7; outline-offset: -3px; }
.roi-in .btn { justify-self: start; }
.roi-out { border-top: 2px solid #fff; padding-top: 8px; min-width: 0; }
.roi-big { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.roi-big > div { padding: 18px 0 22px; }
.roi-big > div + div { padding-inline-start: 28px; border-inline-start: 1px solid rgba(255,255,255,.18); }
.roi-big dt { font-size: 14px; font-weight: 600; color: var(--night-dim); }
.roi-big dd { margin: 6px 0 0; font-size: 18px; font-weight: 600; color: var(--night-dim); }
.roi-big output { display: inline-block; font: 600 clamp(40px, 5.4vw, 68px)/1.05 var(--font-lat); letter-spacing: -.03em; color: #fff; min-width: 2ch; }
.roi-year { display: block; margin-top: 6px; font-size: 14px; font-weight: 600; }
.roi-year output { font: 600 14px/1 var(--font-lat); letter-spacing: 0; color: var(--night-ink); min-width: 0; }
.roi-cap { margin: 0 0 8px; font-size: 14px; color: #FCD34D; font-weight: 600; }
.roi-cap[hidden] { display: none; }
.roi-ledger { margin: 0; border-top: 1px solid rgba(255,255,255,.18); }
.roi-ledger > div { display: flex; justify-content: space-between; align-items: baseline; gap: 18px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.roi-ledger dt { font-weight: 600; color: var(--night-ink); }
.roi-ledger dt small { display: block; font-size: 13px; font-weight: 500; color: var(--night-dim); }
.roi-ledger dd { margin: 0; font-weight: 600; color: #fff; white-space: nowrap; }
.roi-ledger output { font-family: var(--font-lat); }
.roi-as { margin-top: 18px; color: var(--night-dim); font-size: 14.5px; }
.roi-as summary { cursor: pointer; font-weight: 600; color: #fff; padding: 6px 0; }
.roi-as ul { display: grid; gap: 6px; padding-inline-start: 18px; list-style: disc; margin-top: 6px; }
.roi-disc { margin-top: 14px; font-size: 13.5px; color: var(--night-dim); border-inline-start: 3px solid #FCD34D; padding-inline-start: 12px; }
@media (max-width: 900px) { .roi { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) { .roi-big { grid-template-columns: minmax(0, 1fr); } .roi-big > div + div { padding-inline-start: 0; border-inline-start: 0; border-top: 1px solid rgba(255,255,255,.18); } }

/* vs manual work */
.vs { width: 100%; border-collapse: collapse; min-width: 640px; font-size: 15.5px; }
.vs th, .vs td { padding: 16px 18px; border-bottom: 1px solid var(--rule); text-align: start; vertical-align: top; }
.vs thead th { background: var(--fog); font-weight: 600; font-size: 14.5px; }
.vs thead th:last-child { background: var(--ink); color: #fff; }
.vs tbody th { font-weight: 600; width: 24%; }
.vs tbody td:nth-child(2) { color: var(--ink-3); width: 32%; }
.vs tbody td:last-child { font-weight: 600; background: #F6F9FF; }
.vs tr:last-child > * { border-bottom: 0; }

/* trust on fog */
.guards-light h3 { color: var(--ink); }
.guards-light .i { color: var(--approve); }
.guards-light p { color: var(--ink-2); }
@media (max-width: 640px) { .guards { grid-template-columns: minmax(0, 1fr); } }

/* plans from billing */
.plan-n { font: 600 26px/1.2 var(--font); letter-spacing: 0; }
.plan-price small { display: block; margin-top: 4px; font-size: 13px; font-weight: 600; color: var(--ink-3); }
.plan-feat .plan-price small, .plan-feat .plan-lim dt { color: var(--night-dim); }
.plan-price-pub b { font: 600 34px/1 var(--font-lat); letter-spacing: -.02em; }
.plan-trial { font-size: 14px; font-weight: 600; color: var(--approve); }
.plan-feat .plan-trial { color: #7DD3C7; }
.plan-lim { margin: 0; display: grid; gap: 6px; font-size: 14.5px; }
.plan-lim > div { display: flex; justify-content: space-between; gap: 12px; }
.plan-lim dt { color: var(--ink-3); } .plan-lim dd { margin: 0; font-weight: 600; }
.vat-note { margin-top: 16px; }
/* «محادثات رواج» (v19) */
.conv-grid { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.conv-card { border: 1px solid var(--rule, rgba(15, 26, 58, .12)); border-radius: 16px; padding: 22px; background: var(--paper, #fff); }
.conv-card h3 { font-size: 18px; margin: 0 0 8px; }
.conv-card p { margin: 0; color: var(--ink-2); }
#conversations .fine { margin-top: 18px; }
