/* planyfin.com — shared styles for / (English) and /ar/ (Arabic). Colors are tokens with a
   dark set; directional spacing uses logical properties so the Arabic page mirrors. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; }
img, svg { max-width: 100%; }
[hidden] { display: none !important; }
/* Layout: teal-gradient hero (white type, email field) that hands off to a white page held
   inside thin frame lines; product screen overlapping the seam; module cards; feature chips;
   industries; dark ERP band; QuickBooks card; muted-teal closing band; dark footer.
   Teal is the brand and the only accent. */
:root {
  --bg: #FFFFFF;
  --ink: #0E1B26;
  --soft: #66757D;
  --card: #F4F6F5;
  --card-2: #ECEFEE;
  --line: #E3E8E6;
  --accent: #1F8F7A;
  --accent-hover: #177E6C;
  --accent-ink: #FFFFFF;
  --accent-soft: #E4F2EE;
  --hero-top: #0B2F3A;
  --hero-mid: #135E63;
  --hero-low: #8FC4BC;
  --hero-end: #E9F3F1;
  --on-hero: #FFFFFF;
  --on-hero-soft: rgba(255,255,255,.78);
  --dark: #15191C;
  --dark-2: #1D2226;
  --dark-ink: #EEF2F1;
  --dark-soft: #9AA7AC;
  --dark-line: rgba(255,255,255,.1);
  --cta-band: #5E9A97;
  --ok: #1E8A5A;
  --warn: #A8741A;
  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0C1216; --ink: #E9EFEC; --soft: #8E9DA3; --card: #141C22; --card-2: #19232A; --line: #233038;
    --accent: #3FB59C; --accent-hover: #5CC7AF; --accent-ink: #06231C; --accent-soft: #123A33;
    --hero-top: #061A21; --hero-mid: #0E4549; --hero-low: #1C5E5B; --hero-end: #0C1216;
    --dark: #070B0E; --dark-2: #10161A; --cta-band: #1E4E4C; --ok: #4CC08A; --warn: #E0A848;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0C1216; --ink: #E9EFEC; --soft: #8E9DA3; --card: #141C22; --card-2: #19232A; --line: #233038;
  --accent: #3FB59C; --accent-hover: #5CC7AF; --accent-ink: #06231C; --accent-soft: #123A33;
  --hero-top: #061A21; --hero-mid: #0E4549; --hero-low: #1C5E5B; --hero-end: #0C1216;
  --dark: #070B0E; --dark-2: #10161A; --cta-band: #1E4E4C; --ok: #4CC08A; --warn: #E0A848;
  color-scheme: dark;
}

* { box-sizing: border-box; }
body { background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.55; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; color: inherit; text-wrap: balance; margin: 0; letter-spacing: -.02em; }
p { margin: 0; }
.wrap { max-width: 1320px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.frame { border-inline: 1px solid var(--line); padding-inline: clamp(0px, 3vw, 40px); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font: 500 15px/1 var(--body); padding: 14px 20px; border-radius: 4px; border: 0; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn-white { background: #fff; color: #0E1B26; }
.btn-white:hover { background: #EAF3F1; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-line { background: transparent; color: inherit; border: 1px solid currentColor; }
.arrow::after { content: "›"; font-size: 18px; line-height: 0; }


/* Hero */
.hero { background: linear-gradient(180deg, var(--hero-top) 0%, var(--hero-mid) 38%, var(--hero-low) 78%, var(--hero-end) 100%); color: var(--on-hero); }
.announce { font-size: 13px; text-align: center; padding-block: 10px; border-bottom: 1px solid rgba(255,255,255,.12); color: var(--on-hero-soft); }
.announce b { color: var(--on-hero); font-weight: 600; }
.announce a { color: var(--on-hero); margin-inline-start: 10px; }
nav.top .wrap { display: flex; align-items: center; gap: 30px; padding-block: 18px; }
.wordmark { font-family: var(--display); font-weight: 700; font-size: 26px; letter-spacing: -.045em; text-decoration: none; line-height: 1; color: inherit; }
.links { display: flex; gap: 28px; font-size: 15px; margin-inline: auto; }
.links a { text-decoration: none; opacity: .92; }
.links a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.nav-cta { display: flex; gap: 14px; align-items: center; font-size: 15px; }
.nav-cta .signin { text-decoration: none; }
.hero-body { padding-block: 120px 0; }
.pill { display: inline-flex; gap: 8px; align-items: center; font-size: 14px; padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.06); }
.hero h1 { font-size: clamp(44px, 6.6vw, 80px); line-height: 1.02; letter-spacing: -.035em; margin-block: 26px 22px; max-width: 14ch; }
.hero .sub { font-size: 19px; color: var(--on-hero-soft); max-width: 54ch; margin-bottom: 34px; }
.signup { display: flex; gap: 8px; max-width: 520px; flex-wrap: wrap; }
.signup input { flex: 1 1 240px; min-width: 0; border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.1); color: var(--on-hero); font: 15px var(--body); padding: 14px 16px; border-radius: 4px; }
.signup input::placeholder { color: var(--on-hero-soft); }
.signup input:focus { outline: 2px solid #fff; }
.fine { font-size: 12.5px; color: var(--on-hero-soft); margin-top: 10px; }
.hero-links { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 30px; font-size: 15px; }
.hero-links span { display: inline-flex; gap: 8px; align-items: center; }
.hero-links i { width: 6px; height: 6px; border-radius: 50%; background: #fff; display: block; }

/* Product frame, overlapping the hero's end */
.shot { margin-top: 72px; position: relative; }
.app { background: var(--bg); color: var(--ink); border: 1px solid var(--line); border-radius: 12px 12px 0 0; border-bottom: 0; overflow: hidden; font-size: 13px; box-shadow: 0 40px 80px -40px rgba(6,26,33,.55); }
.app-bar { display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.dots { display: flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); display: block; }
.app-bar .co { font-weight: 600; margin-inline-start: 8px; }
.chip { font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); white-space: nowrap; }
.app-body { display: grid; grid-template-columns: 180px 1fr; }
.app-side { border-inline-end: 1px solid var(--line); padding: 14px 10px 24px; display: flex; flex-direction: column; gap: 1px; color: var(--soft); }
.app-side div { padding: 6px 10px; border-radius: 6px; }
.app-side .on { background: var(--card); color: var(--ink); font-weight: 600; }
.app-side .grp { font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; padding-top: 14px; }
.app-main { padding: 20px 22px 28px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.app-main h4 { margin: 0; font: 600 16px var(--display); }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.tile { border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; }
.tile .k { color: var(--soft); font-size: 11.5px; }
.tile .v { font-family: var(--display); font-weight: 500; font-size: 22px; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.tile .s { font-size: 11.5px; color: var(--soft); }
.table { border: 1px solid var(--line); border-radius: 8px; overflow-x: auto; }
.row { display: grid; grid-template-columns: 90px minmax(140px,1fr) 80px 110px 130px; gap: 12px; align-items: center; padding: 10px 14px; border-top: 1px solid var(--line); min-width: 580px; }
.row.h { border-top: 0; font-size: 11.5px; color: var(--soft); background: var(--card); }
.row .no { font-family: var(--mono); font-size: 12px; color: var(--soft); }
.row .amt { font-variant-numeric: tabular-nums; text-align: end; }
.st { justify-self: start; font-size: 11.5px; font-weight: 600; padding: 2px 9px; border-radius: 4px; white-space: nowrap; }
.st.ok { color: var(--ok); background: color-mix(in srgb, var(--ok) 12%, transparent); }
.st.due { color: var(--warn); background: color-mix(in srgb, var(--warn) 14%, transparent); }
.st.neu { color: var(--soft); background: var(--card); }

/* Sections inside the frame */
.sec { padding-block: 104px; border-bottom: 1px solid var(--line); }
.sec-head h2 { font-size: clamp(34px, 4.6vw, 56px); line-height: 1.04; letter-spacing: -.03em; max-width: 18ch; }
.sec-head p { color: var(--soft); font-size: 18px; max-width: 56ch; margin-top: 16px; }
.sec-head { margin-bottom: 48px; }

/* Module cards */
.mods { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.mod { grid-column: span 4; border: 1px solid var(--line); border-radius: 8px; padding: 24px 24px 0; display: flex; flex-direction: column; min-width: 0; overflow: hidden; background: linear-gradient(180deg, var(--bg), var(--card)); text-decoration: none; }
.mod.wide { grid-column: span 6; }
.mod:hover { border-color: var(--accent); }
.mod-top { display: flex; justify-content: space-between; gap: 12px; }
.mod h3 { font-size: 21px; }
.mod .go { color: var(--soft); font-size: 16px; }
.mod .tag { color: var(--soft); margin-top: 8px; font-size: 15.5px; }
.vign { margin-top: 28px; background: var(--bg); border: 1px solid var(--line); border-bottom: 0; border-radius: 8px 8px 0 0; padding: 14px; font-size: 13px; display: flex; flex-direction: column; gap: 9px; box-shadow: 0 10px 30px -18px rgba(14,27,38,.3); }
.vline { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.vline .amt { font-variant-numeric: tabular-nums; }
.vmuted { color: var(--soft); font-size: 12px; }
.bar { height: 8px; border-radius: 4px; background: var(--card-2); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--accent); border-radius: 4px; }

/* Feature chips */
.cloud { padding-block: 72px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto 1fr; gap: 28px; align-items: center; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips.l { justify-content: flex-end; }
.chips span { font-size: 15px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 4px; background: var(--card); white-space: nowrap; }
.cloud .mid { text-align: center; }
.cloud .mid h2 { font-size: 24px; line-height: 1.25; }
.cloud .mid a { display: inline-block; margin-top: 16px; text-decoration: none; }


/* ERP (dark) */
.erp { background: var(--dark); color: var(--dark-ink); }
.erp .frame { border-color: var(--dark-line); }
.erp .inner { padding-block: 104px; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.erp h2 { font-size: clamp(34px, 4.6vw, 56px); line-height: 1.04; letter-spacing: -.03em; margin-bottom: 20px; }
.erp .lead { color: var(--dark-soft); font-size: 18px; margin-bottom: 30px; max-width: 46ch; }
.steps { list-style: none; margin: 0; padding: 0; }
.steps li { display: grid; grid-template-columns: 1fr; gap: 6px; padding: 26px 0; border-top: 1px solid var(--dark-line); }
.steps li:last-child { border-bottom: 1px solid var(--dark-line); }
.steps .k { font-family: var(--display); font-size: 26px; letter-spacing: -.02em; }
.steps .k span { color: var(--dark-soft); }
.steps p { color: var(--dark-soft); font-size: 15.5px; }

/* QBO */
.qbo { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.qbo h2 { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.08; letter-spacing: -.025em; }
.qbo .kick { font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); display: block; margin-bottom: 14px; }
.qbo ul { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.qbo li { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; display: flex; justify-content: space-between; gap: 16px; }
.qbo li span { color: var(--soft); }

/* Trial form */
.trial { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.points { display: flex; flex-direction: column; gap: 14px; color: var(--soft); font-size: 15.5px; margin-top: 26px; }
.points b { color: var(--ink); font-weight: 600; }
form.card { border: 1px solid var(--line); border-radius: 8px; padding: 28px; display: grid; gap: 14px; background: var(--card); }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-size: 13px; font-weight: 600; }
.field input, .field select { font: 16px var(--body); color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 4px; padding: 12px; width: 100%; }
.field input:focus, .field select:focus { outline: 2px solid var(--accent); border-color: var(--accent); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.sent { background: var(--accent-soft); border-radius: 4px; padding: 12px 14px; font-size: 14px; }

/* Closing band */
.closing { background: var(--cta-band); color: #fff; text-align: center; }
.closing .frame { border-color: rgba(255,255,255,.18); padding-block: 88px; }
.closing h2 { font-size: clamp(32px, 4.4vw, 54px); letter-spacing: -.03em; line-height: 1.05; margin-bottom: 30px; }
.closing .signup { margin-inline: auto; justify-content: center; }
.closing .signup input { border-color: rgba(255,255,255,.4); }

/* Footer */
footer { background: var(--dark); color: var(--dark-ink); font-size: 14.5px; }
footer .frame { border-color: var(--dark-line); padding-block: 64px 32px; }
.fgrid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.fgrid h4 { margin: 0 0 14px; font-size: 14px; font-weight: 600; }
.fgrid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; color: var(--dark-soft); }
.fgrid a { text-decoration: none; }
.fgrid a:hover { color: var(--dark-ink); }
.fgrid .tagline { color: var(--dark-soft); margin-top: 12px; max-width: 28ch; }
.legal { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--dark-line); color: var(--dark-soft); font-size: 12.5px; display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; }


/* ── Infographics ── */
.ig-head { display: flex; justify-content: space-between; align-items: end; gap: 16px 40px; flex-wrap: wrap; margin-bottom: 36px; }
.ig-head h2 { font-size: clamp(28px, 3.6vw, 42px); line-height: 1.08; letter-spacing: -.025em; max-width: 20ch; }
.ig-head p { color: var(--soft); max-width: 44ch; font-size: 16px; }
.kick { font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); display: block; margin-bottom: 12px; }

/* 1. Hub: one invoice, every number */
.hub-sec { padding-block: 88px; border-bottom: 1px solid var(--line); }
.hub { display: grid; grid-template-columns: 1fr minmax(240px, 300px) 1fr; gap: 0; align-items: center; }
.hub-col { display: flex; flex-direction: column; gap: 18px; }
.node { position: relative; border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; background: var(--bg); min-width: 0; }
.node .t { font-size: 12px; color: var(--soft); font-family: var(--mono); letter-spacing: .04em; text-transform: uppercase; }
.node .v { font-family: var(--display); font-size: 19px; font-variant-numeric: tabular-nums; margin-top: 2px; }
.node .d { font-size: 13.5px; color: var(--soft); }
.hub-col.l .node { margin-inline-end: 44px; }
.hub-col.r .node { margin-inline-start: 44px; }
.hub-col.l .node::after, .hub-col.r .node::after { content: ""; position: absolute; top: 50%; width: 44px; border-top: 1.5px dashed var(--accent); }
.hub-col.l .node::after { inset-inline-start: 100%; }
.hub-col.r .node::after { inset-inline-end: 100%; }
.hub-col.l .node::before, .hub-col.r .node::before { content: ""; position: absolute; top: calc(50% - 4px); width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.hub-col.l .node::before { inset-inline-start: calc(100% + 40px); }
.hub-col.r .node::before { inset-inline-end: calc(100% + 40px); }
.core { border-radius: 12px; padding: 22px; background: var(--hero-mid); color: #fff; box-shadow: 0 30px 60px -30px rgba(6,26,33,.6); position: relative; z-index: 1; }
.core .t { font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; opacity: .8; }
.core .no { font-family: var(--display); font-size: 26px; margin-top: 6px; }
.core .who { opacity: .85; font-size: 14px; }
.core dl { margin: 16px 0 0; display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; font-size: 14px; font-variant-numeric: tabular-nums; }
.core dt { opacity: .8; } .core dd { margin: 0; text-align: end; font-variant-numeric: tabular-nums; }
.core .tot { border-top: 1px solid rgba(255,255,255,.25); padding-top: 6px; font-weight: 600; }

/* 2. Cash management: cheque steps + cash ahead */
.cash-sec { padding-block: 88px; border-bottom: 1px solid var(--line); }
.cash { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.panel { border: 1px solid var(--line); border-radius: 8px; padding: 26px; background: linear-gradient(180deg, var(--bg), var(--card)); min-width: 0; }
.panel h3 { font-size: 21px; }
.panel .sub2 { color: var(--soft); font-size: 14.5px; margin-top: 4px; }
.flow { margin-top: 26px; display: flex; flex-direction: column; gap: 22px; }
.track { display: grid; grid-template-columns: 92px 1fr; gap: 12px; align-items: start; }
.track .who2 { font-size: 12px; font-family: var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--soft); padding-top: 8px; }
.steps2 { display: flex; align-items: flex-start; flex-wrap: wrap; row-gap: 12px; }
.stp { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }
.stp b { font-size: 13.5px; font-weight: 600; padding: 6px 10px; border-radius: 4px; background: var(--card-2); white-space: nowrap; }
.stp.done b { background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); }
.stp.bad b { background: color-mix(in srgb, var(--warn) 16%, transparent); color: var(--warn); }
.stp small { font-size: 12px; color: var(--soft); max-width: 15ch; line-height: 1.35; }
.arr { color: var(--soft); padding: 6px 8px 0; font-size: 14px; }
.outs { display: flex; flex-direction: column; gap: 10px; padding-inline-start: 12px; border-inline-start: 1.5px dashed var(--line); }
.or { font-size: 11px; color: var(--soft); padding: 8px 8px 0; font-family: var(--mono); text-transform: uppercase; }
.note { margin-top: 24px; padding: 12px 14px; border-radius: 6px; background: var(--accent-soft); font-size: 14px; }
.chart-wrap { margin-top: 18px; }
.chart-wrap svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart-wrap .grid { stroke: var(--line); stroke-width: 1; }
.chart-wrap .axis { fill: var(--soft); font-size: 11px; font-family: var(--body); }
.chart-wrap .area { fill: var(--accent); opacity: .12; }
.chart-wrap .ln { fill: none; stroke: var(--accent); stroke-width: 2; }
.chart-wrap .ev-in { fill: var(--ok); } .chart-wrap .ev-out { fill: var(--warn); }
.chart-wrap .end { fill: var(--accent); }
.chart-wrap .lbl { fill: var(--ink); font-size: 12px; font-family: var(--body); font-variant-numeric: tabular-nums; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: var(--soft); margin-top: 10px; }
.legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-inline-end: 6px; vertical-align: middle; }
.ctiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }
.ctile { border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; background: var(--bg); }
.ctile .k { font-size: 11.5px; color: var(--soft); }
.ctile .v { font-family: var(--display); font-size: 18px; font-variant-numeric: tabular-nums; }

/* 3. Industry matrix */
.matrix-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; }
table.matrix { border-collapse: collapse; width: 100%; min-width: 900px; font-size: 14px; }
.matrix th, .matrix td { padding: 14px 12px; border-bottom: 1px solid var(--line); text-align: center; vertical-align: middle; }
.matrix thead th { font-size: 12px; font-weight: 600; color: var(--soft); background: var(--card); line-height: 1.3; }
.matrix tbody tr:last-child td, .matrix tbody tr:last-child th { border-bottom: 0; }
.matrix tbody th { text-align: start; font-weight: 400; min-width: 230px; }
.matrix tbody th b { display: block; font-family: var(--display); font-weight: 500; font-size: 17px; }
.matrix tbody th span { color: var(--soft); font-size: 13px; }
.matrix tbody tr:hover { background: var(--card); }
.dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; }
.dot.on { background: var(--accent); }
.dot.opt { border: 1.5px solid var(--accent); opacity: .7; }
.mlegend { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 14px; font-size: 13px; color: var(--soft); align-items: center; }
.mlegend span { display: inline-flex; gap: 8px; align-items: center; }

@media (max-width: 1060px) {
  .cash { grid-template-columns: 1fr; }
  .hub { grid-template-columns: 1fr; gap: 18px; }
  .hub-col.l .node, .hub-col.r .node { margin: 0; }
  .hub-col.l .node::after, .hub-col.r .node::after, .hub-col.l .node::before, .hub-col.r .node::before { display: none; }
  .hub .core { order: -1; }
  .hub-col { display: grid; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .hub-col { grid-template-columns: 1fr; }
  .hub-sec, .cash-sec { padding-block: 64px; }
  .track { grid-template-columns: 1fr; gap: 6px; }
  .track .who2 { padding-top: 0; }
  .ctiles { grid-template-columns: 1fr 1fr; }
  .panel { padding: 20px; }
}

@media (max-width: 1060px) {
  .links { display: none; }
  .nav-cta { margin-inline-start: auto; }
  .mod, .mod.wide { grid-column: span 6; }
  .inds { grid-template-columns: repeat(2, 1fr); }
  .erp .inner, .trial, .qbo { grid-template-columns: 1fr; gap: 36px; }
  .cloud { grid-template-columns: 1fr; }
  .cloud .mid { order: -1; }
  .chips, .chips.l { justify-content: center; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .app-body { grid-template-columns: 1fr; }
  .app-side { display: none; }
  .fgrid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .frame { border-inline: 0; padding-inline: 0; }
  .hero-body { padding-top: 64px; }
  .sec, .erp .inner { padding-block: 64px; }
  .mod, .mod.wide { grid-column: span 12; }
  .inds, .two { grid-template-columns: 1fr; }
  .nav-cta .signin { display: none; }
  .app-bar .lang-note { display: none; }
  .fgrid { grid-template-columns: 1fr; }
  .chips span { white-space: normal; }
}
@media (prefers-reduced-motion: no-preference) {
  .btn, .mod { transition: background .15s, border-color .15s, color .15s; }
}

/* ── Live-site additions ── */
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lang { font-size: 14px; text-decoration: none; padding: 6px 10px; border: 1px solid rgba(255,255,255,.35); border-radius: 4px; }
.lang:hover { background: rgba(255,255,255,.1); }
.form-error { color: #B3261E; font-size: 14px; }
.ar-num, .chart-wrap, .row .amt, .tile .v, .node .v, .ctile .v, .core dl { font-variant-numeric: tabular-nums; }
/* Arabic: IBM Plex Sans Arabic for text; the wordmark stays Latin. */
html[lang="ar"] body { font-family: "IBM Plex Sans Arabic", var(--body); }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3, html[lang="ar"] .core .no, html[lang="ar"] .node .v, html[lang="ar"] .tile .v, html[lang="ar"] .ctile .v, html[lang="ar"] .steps .k, html[lang="ar"] .app-main h4 { font-family: "IBM Plex Sans Arabic", var(--display); font-weight: 600; letter-spacing: 0; }
html[lang="ar"] .hero h1, html[lang="ar"] .sec-head h2, html[lang="ar"] .ig-head h2, html[lang="ar"] .erp h2, html[lang="ar"] .closing h2 { line-height: 1.25; letter-spacing: 0; }
html[lang="ar"] .kick, html[lang="ar"] .label, html[lang="ar"] .node .t, html[lang="ar"] .core .t, html[lang="ar"] .track .who2, html[lang="ar"] .app-side .grp, html[lang="ar"] .ind .label { font-family: "IBM Plex Sans Arabic", var(--body); letter-spacing: 0; text-transform: none; font-size: 13px; }
html[lang="ar"] .wordmark { font-family: var(--display); }
html[lang="ar"] .arrow::after { content: "‹"; }
html[lang="ar"] .arr { transform: scaleX(-1); display: inline-block; }
.ltr { direction: ltr; unicode-bidi: isolate; }

/* ── Inventory & warehouses ── */
.inv-sec { padding-block: 88px; border-bottom: 1px solid var(--line); }
.inv { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.inv .panel.full { grid-column: 1 / -1; }
.layers { display: flex; flex-direction: column; gap: 14px; margin-top: 22px; }
.layer .lh { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--soft); margin-bottom: 6px; }
.track2 { display: flex; height: 34px; border-radius: 6px; overflow: hidden; border: 1px solid var(--line); font-size: 12px; font-weight: 600; }
.track2 span { display: flex; align-items: center; justify-content: center; white-space: nowrap; overflow: hidden; padding-inline: 6px; }
.track2 .used { background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--accent) 30%, transparent) 0 6px, color-mix(in srgb, var(--accent) 16%, transparent) 6px 12px); color: var(--accent); }
.track2 .left { background: var(--accent-soft); color: var(--ink); }
.fifo-out { margin-top: 18px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); }
.fo-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 14px; border-top: 1px solid var(--line); font-size: 14px; }
.fo-row:first-child { border-top: 0; }
.fo-row small { display: block; color: var(--soft); font-size: 12px; }
.fo-row b { font-family: var(--display); font-weight: 500; font-size: 18px; font-variant-numeric: tabular-nums; }
.lc-bill { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; margin-top: 22px; font-size: 14px; }
.lc-bill b { font-family: var(--display); font-weight: 500; font-size: 20px; }
.split { display: flex; gap: 3px; height: 14px; margin-top: 10px; border-radius: 4px; overflow: hidden; }
.split i, .sw { display: block; }
.s1 { background: var(--accent); }
.s2 { background: var(--warn); }
.s3 { background: var(--hero-mid); }
.lc-table { margin-top: 16px; border: 1px solid var(--line); border-radius: 8px; overflow-x: auto; background: var(--bg); }
.lc-row { display: grid; grid-template-columns: minmax(150px, 1.6fr) 1fr .8fr 1fr; gap: 10px; align-items: center; padding: 10px 14px; border-top: 1px solid var(--line); font-size: 13.5px; min-width: 460px; }
.lc-row.h { border-top: 0; background: var(--card); color: var(--soft); font-size: 12px; }
.lc-row span:not(:first-child) { text-align: end; font-variant-numeric: tabular-nums; }
.lc-row small { display: block; color: var(--soft); font-size: 11.5px; }
.lc-row .add { color: var(--warn); font-weight: 600; }
.sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-inline-end: 8px; }
.whs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 22px; }
.wh { border: 1px solid var(--line); border-radius: 8px; padding: 16px; background: var(--bg); display: flex; flex-direction: column; gap: 12px; align-items: flex-start; min-width: 0; }
.wh-top { display: flex; justify-content: space-between; gap: 10px; width: 100%; align-items: baseline; }
.wh-n { font-family: var(--display); font-size: 24px; font-variant-numeric: tabular-nums; }
.wh-n small { font-family: var(--body); font-size: 12px; color: var(--soft); }
.units { display: grid; grid-template-columns: repeat(7, 18px); gap: 6px; }
.units i { width: 18px; height: 18px; border-radius: 4px; background: color-mix(in srgb, var(--accent) 35%, transparent); display: block; }
.units i.new { background: var(--accent); box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent); }
.units i.old { background: var(--warn); }
.move { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin-top: 16px; padding: 12px 14px; border: 1px dashed var(--accent); border-radius: 8px; font-size: 14px; }
.mv-k { font-size: 11.5px; font-weight: 600; padding: 3px 8px; border-radius: 4px; background: var(--accent); color: var(--accent-ink); }
.move .no { font-family: var(--mono); font-size: 12.5px; color: var(--soft); }
.inv-chips { margin-top: 18px; }
.inv-chips span { font-size: 13.5px; padding: 8px 12px; }
@media (max-width: 1060px) {
  .inv { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .inv-sec { padding-block: 64px; }
  .whs { grid-template-columns: 1fr; }
}
