/* الرضا ERP — public site. Palette from the logo: navy ink, steel blue, site gold; concrete greys. */
:root {
  --ink: #0b2a55;
  --steel: #1d5fa0;
  --gold: #d9a21b;
  --gold-soft: #f6e7bf;
  --concrete: #eef1f4;
  --line: #d3dae3;
  --text: #13233a;
  --muted: #55657a;
  --ok: #1d7a4b;
  --warn: #a35c00;
  --display: 'Readex Pro', 'Segoe UI', Tahoma, sans-serif;
  --body: 'IBM Plex Sans Arabic', 'Segoe UI', Tahoma, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--body); font-size: 17px; line-height: 1.75; color: var(--text); background: #fff; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--steel); }
a:focus-visible, .btn:focus-visible, summary:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; inset-inline-start: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 10; }
.skip:focus { inset-inline-start: 8px; }
h1, h2, h3 { font-family: var(--display); color: var(--ink); line-height: 1.3; margin: 0; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 500; }
section { padding: 88px 0; }
.section-lead { color: var(--muted); max-width: 62ch; margin: 12px 0 0; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 5; background: rgba(255,255,255,.94); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--display); font-size: 1.25rem; font-weight: 700; }
.brand b { color: var(--steel); }
.top nav { display: flex; gap: 22px; margin-inline-start: auto; }
.top nav a { color: var(--text); text-decoration: none; font-size: .95rem; }
.top nav a:hover { color: var(--steel); }
.login { text-decoration: none; color: var(--ink); border: 1.5px solid var(--ink); border-radius: 8px; padding: 6px 16px; font-weight: 600; font-size: .95rem; }
.login:hover { background: var(--ink); color: #fff; }

/* ---------- hero ---------- */
.hero { padding: 72px 0 96px; background:
  linear-gradient(var(--concrete) 1px, transparent 1px) 0 0 / 32px 32px,
  linear-gradient(90deg, var(--concrete) 1px, transparent 1px) 0 0 / 32px 32px, #fbfcfd; border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.kicker { margin: 0 0 14px; color: var(--steel); font-weight: 600; }
.hero h1 { font-size: clamp(2rem, 4.4vw, 3.15rem); font-weight: 700; letter-spacing: -.01em; max-width: 17ch; }
.lead { font-size: 1.12rem; color: #2a3d56; max-width: 52ch; margin: 22px 0 30px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border-radius: 10px; font-weight: 600; text-decoration: none; font-size: 1.02rem; }
.btn.primary { background: var(--ink); color: #fff; }
.btn.primary:hover { background: #082044; }
.btn.ghost { color: var(--ink); border: 1.5px solid var(--line); background: #fff; }
.btn.ghost:hover { border-color: var(--ink); }
.note { color: var(--muted); font-size: .92rem; margin: 14px 0 0; }

/* the memorable element: a project site-board */
.ledger { margin: 0; background: #fff; border: 1.5px solid var(--ink); border-radius: 6px; box-shadow: 10px 10px 0 var(--gold-soft); overflow: hidden; }
.ledger figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; background: var(--ink); color: #fff; padding: 14px 20px; font-family: var(--display); font-weight: 500; }
.ledger figcaption small { font-family: var(--body); font-weight: 400; color: #c9d6ea; font-size: .8rem; }
.ledger table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.ledger th, .ledger td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: start; }
.ledger thead th { font-size: .8rem; color: var(--muted); font-weight: 600; background: var(--concrete); padding-block: 9px; }
.ledger tbody th { font-weight: 600; width: 44%; }
.ledger td { font-variant-numeric: tabular-nums; direction: ltr; text-align: end; }
.ledger td.up { color: var(--ok); font-weight: 600; }
.ledger td.warn { color: var(--warn); font-weight: 600; }
.bar { display: block; height: 5px; background: var(--concrete); border-radius: 3px; margin-top: 8px; }
.bar i { display: block; height: 100%; background: var(--gold); border-radius: 3px; }
.ledger-foot { margin: 0; padding: 14px 20px; font-size: .92rem; background: #fff8e8; border-top: 3px solid var(--gold); }
.unit { margin: 0; padding: 8px 20px 12px; color: var(--muted); font-size: .8rem; }

/* ---------- flow & start (real sequences, so numbered) ---------- */
.flow { background: #fff; }
.steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); counter-reset: step; position: relative; }
.steps li { counter-increment: step; padding: 0 0 0 24px; position: relative; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #fff; border: 2px solid var(--ink); color: var(--ink); font-family: var(--display); font-weight: 700; margin-bottom: 16px; position: relative; z-index: 1; }
.steps::before { content: ''; position: absolute; top: 21px; inset-inline: 22px calc(25% - 22px); height: 2px; background: repeating-linear-gradient(90deg, var(--gold) 0 14px, transparent 14px 22px); }
.steps h3 { margin-bottom: 6px; }
.steps p { margin: 0; color: var(--muted); font-size: .97rem; }

/* ---------- features ---------- */
.features { background: var(--concrete); }
.feature { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; margin-top: 64px; }
.feature:nth-of-type(even) .shot { order: -1; }
.feature-text h3 { font-size: 1.55rem; font-weight: 700; margin-bottom: 10px; }
.feature-text p { margin: 0 0 14px; }
.feature-text ul { margin: 0; padding-inline-start: 1.1em; color: #2a3d56; }
.feature-text li { margin-bottom: 8px; }
.feature-text li::marker { color: var(--gold); }
.shot { border-radius: 8px; border: 1px solid var(--line); box-shadow: 0 18px 40px -24px rgba(11,42,85,.45); background: #fff; }
.shot.phone { max-width: 300px; justify-self: center; border: 8px solid var(--ink); border-radius: 28px; }
.more { margin-top: 80px; padding-top: 40px; border-top: 2px solid var(--ink); }
.more h3 { font-size: 1.3rem; font-weight: 700; }
.more dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 40px; margin: 24px 0 0; }
.more dt { font-family: var(--display); font-weight: 500; color: var(--ink); }
.more dd { margin: 4px 0 0; color: var(--muted); font-size: .97rem; }

/* ---------- compare ---------- */
.table-scroll { overflow-x: auto; margin-top: 32px; }
.compare table { width: 100%; min-width: 640px; border-collapse: collapse; }
.compare th, .compare td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: start; vertical-align: top; }
.compare thead th { font-family: var(--display); font-weight: 500; color: var(--muted); font-size: .95rem; }
.compare thead th:last-child { color: #fff; background: var(--ink); border-radius: 6px 6px 0 0; }
.compare tbody th { font-weight: 600; color: var(--ink); }
.compare tbody td:last-child { background: #f3f7fc; font-weight: 600; color: var(--ink); border-inline: 1px solid #dbe5f1; }

/* ---------- trust ---------- */
.trust { background: var(--ink); color: #dfe7f2; }
.trust h2 { color: #fff; }
.trust .section-lead { color: #b9c8dc; }
.trust-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 56px; }
.trust ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.trust li { padding-inline-start: 22px; border-inline-start: 3px solid var(--gold); }
.trust b { color: #fff; }

/* ---------- start, price, faq ---------- */
.start { background: #fff; }
.price { padding: 0 0 88px; background: #fff; }
.price-box { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; padding: 36px 40px; border: 1.5px solid var(--ink); border-radius: 8px; background: var(--gold-soft); }
.price-box p { margin: 8px 0 0; max-width: 60ch; }
.faq { background: var(--concrete); }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 8px; margin-top: 12px; max-width: 860px; }
.faq details:first-of-type { margin-top: 32px; }
.faq summary { cursor: pointer; padding: 16px 20px; font-weight: 600; color: var(--ink); list-style-position: inside; }
.faq details[open] summary { border-bottom: 1px solid var(--line); }
.faq details p { margin: 0; padding: 14px 20px 18px; color: #2a3d56; }

/* ---------- footer ---------- */
.foot { background: #081f40; color: #c9d6ea; padding: 48px 0 20px; }
.foot-grid { display: grid; grid-template-columns: 1.2fr 1.4fr 1fr; gap: 32px; align-items: start; }
.foot-brand { display: flex; gap: 12px; align-items: center; color: #fff; font-family: var(--display); font-weight: 700; }
.foot-brand img { background: #fff; border-radius: 10px; padding: 4px; }
.foot-brand small { font-family: var(--body); font-weight: 400; color: #e6c86d; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot a { color: #fff; }
.copy { margin-top: 32px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.12); font-size: .85rem; color: #8ea3bf; }

/* ---------- icons ---------- */
.defs { position: absolute; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.ic { width: 32px; height: 32px; fill: none; stroke: var(--ink); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.ic .g { stroke: var(--gold); stroke-width: 2; }
.ic.big { width: 44px; height: 44px; margin-bottom: 12px; display: block; }
.ic.light { stroke: #fff; }

/* hero: the one orchestrated moment — profit bars fill once on load */
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.bar i { transform-origin: right center; animation: fill 1.1s cubic-bezier(.2,.7,.2,1) both; }
.ledger tbody tr:nth-child(2) .bar i { animation-delay: .15s; }
.ledger tbody tr:nth-child(3) .bar i { animation-delay: .3s; }
@media (prefers-reduced-motion: reduce) { .bar i { animation: none; } }

/* ---------- facts ---------- */
.facts { padding: 0; background: var(--ink); color: #c9d6ea; }
.facts-row { display: grid; grid-template-columns: repeat(4, 1fr); }
.facts p { margin: 0; padding: 26px 22px; border-inline-start: 1px solid rgba(255,255,255,.12); display: grid; gap: 2px; }
.facts p:first-child { border-inline-start: 0; padding-inline-start: 0; }
.facts b { font-family: var(--display); font-size: 2rem; font-weight: 700; color: var(--gold); line-height: 1.2; }
.facts span { font-size: .95rem; }

/* ---------- module map ---------- */
.modules { background: #fff; }
.module-grid { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1.5px solid var(--ink); border-inline-start: 1px solid var(--line); }
.module-grid li { border-inline-end: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.module-grid a { display: block; height: 100%; padding: 26px 24px 28px; text-decoration: none; color: var(--text); position: relative; }
.module-grid a::after { content: ''; position: absolute; inset-inline: 24px; bottom: 0; height: 3px; background: var(--gold); transform: scaleX(0); transform-origin: right; transition: transform .2s; }
.module-grid a:hover { background: #f7f9fb; }
.module-grid a:hover::after, .module-grid a:focus-visible::after { transform: scaleX(1); }
.module-grid .ic { width: 40px; height: 40px; }
.module-grid h3 { margin: 14px 0 6px; font-weight: 700; font-size: 1.08rem; }
.module-grid p { margin: 0; color: var(--muted); font-size: .93rem; line-height: 1.7; }
@media (prefers-reduced-motion: reduce) { .module-grid a::after { transition: none; } }

/* ---------- radar ---------- */
.radar { background: #fff8e8; border-block: 1px solid #f0e1b8; }
.split { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; }
.split-shot, .wide-shot { margin: 0; }
.split-shot figcaption, .wide-shot figcaption { margin-top: 10px; font-size: .85rem; color: var(--muted); }
.wide-shot { margin-top: 40px; }
.radar-head { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.radar-head .ticks { margin-top: 6px; }
.ticks { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 14px; }
.ticks li { position: relative; padding-inline-start: 26px; }
.ticks li::before { content: ''; position: absolute; inset-inline-start: 0; top: .55em; width: 12px; height: 7px; border-inline-start: 2.5px solid var(--gold); border-bottom: 2.5px solid var(--gold); transform: rotate(45deg) scaleX(-1); }
.ticks b { color: var(--ink); }

/* ---------- features tweak ---------- */
.features .feature:first-child { margin-top: 0; }
.feature-text .ic.big { margin-bottom: 10px; }

/* ---------- procurement cycle (a real sequence, so it is numbered) ---------- */
.cycle { background: #fff; }
.cycle-steps { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); counter-reset: c; }
.cycle-steps li { counter-increment: c; position: relative; padding: 52px 0 0 14px; display: grid; gap: 4px; }
.cycle-steps li::before { content: counter(c); position: absolute; top: 0; inset-inline-start: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-family: var(--display); font-weight: 700; z-index: 1; }
.cycle-steps li::after { content: ''; position: absolute; top: 17px; inset-inline: 40px -4px; height: 2px; background: var(--gold); }
.cycle-steps li:last-child::after { display: none; }
.cycle-steps b { font-family: var(--display); font-weight: 500; color: var(--ink); }
.cycle-steps span { font-size: .9rem; color: var(--muted); }
.modes { margin-top: 56px; padding: 28px 32px; background: var(--concrete); border-radius: 8px; }
.modes h3 { font-weight: 700; }
.modes dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 18px 0 0; }
.modes dt { font-family: var(--display); font-weight: 700; color: var(--steel); }
.modes dd { margin: 4px 0 0; font-size: .95rem; }

/* ---------- groups ---------- */
.groups { background: var(--ink); color: #dfe7f2; }
.groups h2 { color: #fff; }
.groups .section-lead { color: #b9c8dc; }
.groups .ticks b { color: #fff; }
.org { margin: 0; padding: 32px 28px 24px; background: #0f3466; border: 1px solid rgba(255,255,255,.14); border-radius: 10px; text-align: center; }
.org small { display: block; font-family: var(--body); font-weight: 400; font-size: .8rem; color: #b9c8dc; margin-top: 2px; }
.org-owner { position: relative; z-index: 1; display: inline-block; padding: 14px 26px; background: var(--gold); color: var(--ink); border-radius: 8px; font-family: var(--display); font-weight: 700; }
.org-owner small { color: #3b3110; }
.org-lines { height: 28px; margin: 0 16.66%; border: 2px solid rgba(255,255,255,.5); border-bottom: 0; border-radius: 0; position: relative; top: 0; }
.org-lines::before { content: ''; position: absolute; top: -28px; left: 50%; width: 2px; height: 28px; background: rgba(255,255,255,.5); }
.org-cos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; position: relative; }
.org-cos::before { content: ''; position: absolute; top: -2px; left: 50%; width: 2px; height: 0; }
.org-cos li { padding: 14px 8px; background: #fff; color: var(--ink); border-radius: 8px; font-family: var(--display); font-weight: 500; }
.org-cos li small { color: var(--muted); }
.org-ic { margin: 18px 0 0; padding: 12px 16px; border: 1.5px dashed var(--gold); border-radius: 8px; font-size: .92rem; color: #fff; }
.org-ic span { color: var(--gold); font-weight: 700; margin-inline-end: 6px; }
.org figcaption { margin-top: 12px; font-size: .78rem; color: #8ea3bf; }

/* ---------- HR + equipment ---------- */
.duo { background: var(--concrete); }
.duo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.duo article { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--ink); padding: 28px 30px; }
.duo h3 { font-size: 1.35rem; font-weight: 700; margin-bottom: 8px; }
.duo ul { margin: 0; padding-inline-start: 1.1em; }
.duo li { margin-bottom: 6px; }
.duo li::marker { color: var(--gold); }

/* ---------- roles ---------- */
.roles { background: #fff; }
.role-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 36px 0 0; border-top: 1.5px solid var(--ink); }
.role-grid div { padding: 22px 0 22px 28px; border-bottom: 1px solid var(--line); }
.role-grid dt { font-family: var(--display); font-weight: 700; color: var(--ink); font-size: 1.1rem; }
.role-grid dd { margin: 4px 0 0; color: var(--muted); font-size: .96rem; }
.compare { background: var(--concrete); }
.compare tbody td:last-child { background: #fff; }
.trust .ic.big { margin-bottom: 14px; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero-grid, .feature, .trust-grid { grid-template-columns: 1fr; gap: 36px; }
  .feature:nth-of-type(even) .shot { order: 0; }
  .steps { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .steps::before { display: none; }
  .more dl { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .split, .radar-head { grid-template-columns: 1fr; gap: 28px; }
  .module-grid { grid-template-columns: repeat(2, 1fr); }
  .facts-row { grid-template-columns: 1fr 1fr; }
  .facts p:nth-child(3) { border-inline-start: 0; padding-inline-start: 0; }
  .facts p:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.12); }
  .cycle-steps { grid-template-columns: repeat(3, 1fr); row-gap: 28px; }
  .cycle-steps li:nth-child(3)::after { display: none; }
  .role-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .top nav { display: none; }
  .login { margin-inline-start: auto; }
  section { padding: 64px 0; }
  .hero { padding: 40px 0 64px; }
  .steps, .more dl, .modes dl, .duo-grid, .role-grid { grid-template-columns: 1fr; }
  .module-grid { grid-template-columns: 1fr; }
  .module-grid a { display: grid; grid-template-columns: 40px 1fr; column-gap: 14px; padding: 20px 4px; }
  .module-grid a .ic { grid-row: span 2; }
  .module-grid h3 { margin: 0 0 4px; }
  .facts b { font-size: 1.6rem; }
  .facts p { padding: 18px 12px; }
  .cycle-steps { grid-template-columns: 1fr; row-gap: 0; }
  .cycle-steps li { padding: 0 52px 22px 0; }
  .cycle-steps li::after { display: block !important; inset-inline: 17px auto; top: 36px; bottom: 0; width: 2px; height: auto; }
  .cycle-steps li:last-child::after { display: none !important; }
  .modes { padding: 22px 20px; }
  .org { padding: 24px 14px 18px; }
  .wide-shot { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .wide-shot img { min-width: 760px; }
  .wide-shot figcaption::after { content: ' — اسحب الصورة جانباً'; }
  .org-cos li { font-size: .9rem; padding: 10px 4px; }
  .role-grid div { padding-inline-end: 0; }
  .ledger th, .ledger td { padding: 11px 10px; }
  .ledger tbody th { width: auto; }
  .btn { width: 100%; }
  .price-box { padding: 26px 22px; }
  .ledger { box-shadow: 6px 6px 0 var(--gold-soft); }
}
.bar i.w60 { width: 60%; } .bar i.w33 { width: 33%; } .bar i.w43 { width: 43%; }
