/* Fabricus website.
   Layout concept: a factory routing sheet – the page reads like a job moving through the plant,
   with real order numbers, steps and costs as the visual language.  */
@font-face { font-family: "Fabricus Display"; src: url("../fonts/fabricus-display-bold.woff") format("woff"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Fabricus Display"; src: url("../fonts/fabricus-display-regular.woff") format("woff"); font-weight: 400; font-display: swap; }

:root {
  --paper: #EEF1F4;        /* cool steel-grey page */
  --sheet: #FFFFFF;        /* cards, the "printed sheet" */
  --ink: #141C27;          /* text */
  --muted: #5B6676;
  --line: #D5DBE3;
  --brand: #1F4E99;        /* Fabricus blue (from the logo) */
  --brand-ink: #FFFFFF;
  --brand-soft: #E3EBF7;
  --steel: #6E7378;        /* logo grey */
  --signal: #D9821E;       /* floor-marking amber, used sparingly */
  --signal-soft: #FBEEDD;
  --good: #1E7A48;
  --bad: #B3261E;
  --band: #16202D;         /* dark band behind the flow section */
  --band-ink: #E7ECF2;
  --band-line: #2A3647;
  --f-display: "Fabricus Display", "Century Gothic", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --f-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --f-ar: "Noto Kufi Arabic", "Segoe UI", "Geeza Pro", Tahoma, "Noto Sans Arabic", sans-serif;
  --f-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
  --r: 6px;
  --wrap: 1180px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0E131A; --sheet: #151C26; --ink: #E6EBF1; --muted: #9AA6B6; --line: #263142;
    --brand: #6E9BE3; --brand-ink: #0B1220; --brand-soft: #1A2840; --steel: #9AA0A6;
    --signal: #EAA04A; --signal-soft: #2E2416; --good: #4CC27F; --bad: #F2867E;
    --band: #0A0F15; --band-ink: #E7ECF2; --band-line: #222D3B; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0E131A; --sheet: #151C26; --ink: #E6EBF1; --muted: #9AA6B6; --line: #263142;
  --brand: #6E9BE3; --brand-ink: #0B1220; --brand-soft: #1A2840; --steel: #9AA0A6;
  --signal: #EAA04A; --signal-soft: #2E2416; --good: #4CC27F; --bad: #F2867E;
  --band: #0A0F15; --band-ink: #E7ECF2; --band-line: #222D3B; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.6 var(--f-body); }
[dir="rtl"] body, [dir="rtl"] { font-family: var(--f-ar); }
img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
a { color: var(--brand); text-underline-offset: 3px; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; border-radius: 3px; }
h1, h2, h3 { font-family: var(--f-display); line-height: 1.12; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3 { font-family: var(--f-ar); letter-spacing: 0; line-height: 1.35; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.35rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.mono { font-family: var(--f-mono); font-size: .82em; letter-spacing: .02em; }
.eyebrow { font-family: var(--f-mono); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
[dir="rtl"] .eyebrow { letter-spacing: 0; text-transform: none; font-family: var(--f-ar); font-weight: 600; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }
.skip { position: absolute; inset-inline-start: -999px; top: 8px; background: var(--brand); color: var(--brand-ink); padding: 8px 12px; z-index: 50; }
.skip:focus { inset-inline-start: 8px; }

/* ---------- header ---------- */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--paper); }
.top .wrap { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--f-display); font-weight: 700; font-size: 1.25rem; letter-spacing: .01em; }
.logo img { width: 34px; height: 34px; }
.nav { display: flex; align-items: center; gap: 22px; margin-inline-start: auto; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--brand); }
.langs { display: flex; gap: 2px; border: 1px solid var(--line); border-radius: var(--r); padding: 2px; }
.langs a { padding: 3px 9px; border-radius: 4px; font-size: .82rem; font-weight: 700; text-decoration: none; color: var(--muted); }
.langs a[aria-current="true"] { background: var(--brand); color: var(--brand-ink); }
.menu { display: none; margin-inline-start: auto; }
.menu summary { list-style: none; cursor: pointer; border: 1px solid var(--line); border-radius: var(--r); padding: 6px 12px; font-weight: 700; }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] .menu-panel { display: grid; }
.menu-panel { display: none; position: absolute; inset-inline: 0; top: 64px; background: var(--sheet); border-bottom: 1px solid var(--line); padding: 14px max(20px, env(safe-area-inset-right, 0px)) 18px max(20px, env(safe-area-inset-left, 0px)); gap: 12px; }
.menu-panel a { color: var(--ink); text-decoration: none; font-weight: 600; padding: 6px 0; }
@media (max-width: 860px) { .nav { display: none; } .menu { display: block; } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: var(--r); font-weight: 700; text-decoration: none; border: 1.5px solid var(--brand); color: var(--brand); background: transparent; }
.btn:hover { background: var(--brand-soft); }
.btn.solid { background: var(--brand); color: var(--brand-ink); }
.btn.solid:hover { filter: brightness(1.08); }
.btn.small { padding: 8px 14px; font-size: .9rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- hero ---------- */
.hero { padding-block: 64px 40px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 48px; align-items: center; }
.hero h1 { margin-block: 14px 18px; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero .actions { margin-top: 26px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 26px; padding: 0; list-style: none; color: var(--muted); font-size: .92rem; }
.facts li::before { content: "■"; color: var(--signal); font-size: .6em; vertical-align: middle; margin-inline-end: 8px; }
@media (max-width: 920px) { .hero .wrap { grid-template-columns: 1fr; } }

/* job ticket – the characteristic object of a factory */
.ticket { background: var(--sheet); border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 18px 40px -24px rgba(20, 28, 39, .35); font-size: .92rem; overflow: hidden; }
.ticket-head { display: flex; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px dashed var(--line); }
.ticket-head b { font-family: var(--f-mono); font-size: .95rem; }
.ticket-head span { color: var(--muted); }
.steps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; padding: 14px 18px 4px; }
.steps i { height: 6px; border-radius: 3px; background: var(--line); }
.steps i.done { background: var(--good); }
.steps i.now { background: var(--signal); }
.step-label { padding: 2px 18px 12px; color: var(--muted); font-size: .85rem; }
.ticket table { width: 100%; border-collapse: collapse; }
.ticket td { padding: 9px 18px; border-top: 1px solid var(--line); }
.ticket td:last-child { white-space: nowrap; text-align: end; font-variant-numeric: tabular-nums; font-family: var(--f-mono); font-size: .88rem; }
.ticket .over { color: var(--bad); font-weight: 700; }
.ticket .sell td { background: var(--brand-soft); font-weight: 700; }
.ticket .sell td:last-child { color: var(--brand); font-size: 1rem; }

/* ---------- sections ---------- */
section { padding-block: 72px; }
.sec-head { display: grid; gap: 12px; margin-bottom: 36px; max-width: 760px; }
.grid { display: grid; gap: 18px; }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 980px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .g2, .g3, .g4 { grid-template-columns: minmax(0, 1fr); } table.list { min-width: 0; } }

.pains { border-top: 1px solid var(--line); }
.pain { display: grid; gap: 8px; padding-top: 18px; border-top: 3px solid var(--ink); }
.pain p { color: var(--muted); }
.pain .fix { color: var(--ink); font-weight: 600; }

/* the flow: material in -> books */
.band { background: var(--band); color: var(--band-ink); }
.band .eyebrow, .band .lead { color: #9EABBC; }
.band a { color: #9CC0FF; }
.flow { display: grid; gap: 56px; padding: 0; margin: 0; list-style: none; }
.stage { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 40px; align-items: center; }
.stage:nth-child(even) .shot { order: -1; }
.stage-num { font-family: var(--f-mono); font-size: .8rem; color: var(--signal); letter-spacing: .12em; text-transform: uppercase; }
.stage h3 { font-size: 1.6rem; margin-block: 8px 12px; }
.stage ul { margin: 14px 0 0; padding-inline-start: 18px; display: grid; gap: 6px; color: #C3CDD9; }
.shot { border-radius: var(--r); overflow: hidden; border: 1px solid var(--band-line); background: #fff; box-shadow: 0 24px 60px -30px rgba(0, 0, 0, .7); }
.shot.phone { max-width: 300px; margin-inline: auto; border-radius: 22px; border: 6px solid #2A3647; }
@media (max-width: 860px) { .stage { grid-template-columns: 1fr; gap: 20px; } .stage:nth-child(even) .shot { order: 0; } }

/* module cards */
.mod { background: var(--sheet); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; display: grid; gap: 8px; align-content: start; }
.mod .tag { font-family: var(--f-mono); font-size: .72rem; color: var(--steel); letter-spacing: .08em; text-transform: uppercase; }
.mod p { color: var(--muted); font-size: .95rem; }
.mod.key { border-color: var(--brand); box-shadow: inset 0 3px 0 var(--brand); }

/* split rows */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 44px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } }
.ticks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.ticks li { display: grid; grid-template-columns: 22px 1fr; gap: 8px; }
.ticks li::before { content: "✓"; color: var(--good); font-weight: 900; }
.frame { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--sheet); box-shadow: 0 20px 50px -30px rgba(20, 28, 39, .4); }

/* deployment */
.mode { background: var(--sheet); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; display: grid; gap: 10px; align-content: start; }
.mode .pill { justify-self: start; font-size: .75rem; font-weight: 700; padding: 3px 10px; border-radius: 99px; background: var(--brand-soft); color: var(--brand); }
.mode .pill.soon { background: var(--signal-soft); color: var(--signal); }
.mode p { color: var(--muted); }

/* industries */
.chips { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; list-style: none; }
.chips li { border: 1px solid var(--line); background: var(--sheet); border-radius: 99px; padding: 8px 16px; font-weight: 600; }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
@media (max-width: 920px) { .plans { grid-template-columns: 1fr; } }
.plan { background: var(--sheet); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; display: grid; gap: 14px; align-content: start; }
.plan.best { border: 2px solid var(--brand); position: relative; }
.plan.best::before { content: attr(data-badge); position: absolute; top: -12px; inset-inline-start: 22px; background: var(--brand); color: var(--brand-ink); font-size: .75rem; font-weight: 700; padding: 3px 10px; border-radius: 99px; }
.plan h3 { font-size: 1.35rem; }
.price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.price .from { color: var(--muted); font-size: .9rem; }
.price b { font-family: var(--f-display); font-size: 2.6rem; line-height: 1; font-variant-numeric: tabular-nums; }
[dir="rtl"] .price b { font-family: var(--f-body); }
.price .per { color: var(--muted); }
.annual { font-size: .9rem; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 10px; }
.annual b { color: var(--good); }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: .95rem; }
.plan li { display: grid; grid-template-columns: 20px 1fr; gap: 6px; }
.plan li::before { content: "✓"; color: var(--good); font-weight: 900; }
.plan .users { font-weight: 700; }
.note { color: var(--muted); font-size: .9rem; margin-top: 18px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--sheet); }
table.list { width: 100%; border-collapse: collapse; min-width: 560px; }
table.list th, table.list td { padding: 13px 16px; text-align: start; border-bottom: 1px solid var(--line); vertical-align: top; }
table.list th { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
[dir="rtl"] table.list th { text-transform: none; letter-spacing: 0; }
table.list td.num { text-align: end; font-variant-numeric: tabular-nums; font-weight: 700; white-space: nowrap; }
table.list tr:last-child td { border-bottom: 0; }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { background: var(--sheet); border: 1px solid var(--line); border-radius: var(--r); }
.faq summary { cursor: pointer; padding: 16px 20px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 20px 18px; color: var(--muted); max-width: 72ch; }

/* contact */
.contact { background: var(--sheet); border: 1px solid var(--line); border-radius: var(--r); padding: 32px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 32px; }
@media (max-width: 820px) { .contact { grid-template-columns: 1fr; padding: 22px; } }
.contact dl { margin: 0; display: grid; gap: 14px; }
.contact dt { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
[dir="rtl"] .contact dt { text-transform: none; letter-spacing: 0; }
.contact dd { margin: 2px 0 0; font-weight: 700; font-size: 1.1rem; overflow-wrap: anywhere; }
.contact .empty { color: var(--muted); font-weight: 400; }
.bring { margin: 14px 0 0; padding-inline-start: 18px; display: grid; gap: 6px; color: var(--muted); }

/* feature page */
.feature { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 40px; align-items: center; padding-block: 44px; border-top: 1px solid var(--line); }
.feature:nth-of-type(even) .frame { order: -1; }
.feature h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin-block: 6px 12px; }
.feature p { color: var(--muted); }
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; } .feature:nth-of-type(even) .frame { order: 0; } }
.page-head { padding-block: 56px 24px; }
.page-head h1 { margin-block: 10px 14px; font-size: clamp(2rem, 4vw, 3rem); }
.crumbs { font-size: .88rem; color: var(--muted); }
.crumbs a { color: var(--muted); }

/* footer */
footer { border-top: 1px solid var(--line); padding-block: 36px; color: var(--muted); font-size: .9rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 18px 36px; justify-content: space-between; align-items: flex-start; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer a { color: var(--muted); }
.prose { max-width: 72ch; display: grid; gap: 14px; }
.prose h2 { font-size: 1.3rem; margin-top: 14px; }
.prose p, .prose li { color: var(--muted); }
.cta-band { background: var(--brand); color: var(--brand-ink); border-radius: var(--r); padding: 36px; display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.cta-band h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); }
.cta-band .btn { border-color: var(--brand-ink); color: var(--brand-ink); }
.cta-band .btn:hover { background: rgba(255, 255, 255, .12); }
.center { text-align: center; }
.mt { margin-top: 28px; }
.muted { color: var(--muted); }

.split.rev > div:first-child { order: 2; }
@media (max-width: 860px) { .split.rev > div:first-child { order: 0; } }

/* free trial strip (pricing) */
.trial-strip { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 26px; padding: 18px 22px; border: 1px solid var(--brand); border-inline-start-width: 5px; border-radius: 10px; background: #fff; }
.trial-strip b { font-size: 1.1rem; color: var(--brand); }
.trial-strip p { margin: 4px 0 0; color: var(--muted); max-width: 60ch; }

/* call-back assistant */
.bot { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; align-self: start; }
.bot-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: var(--brand); color: var(--brand-ink); }
.bot-face { width: 30px; height: 30px; border-radius: 9px; background: var(--brand-ink); display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.bot-face i { width: 5px; height: 8px; border-radius: 3px; background: var(--brand); }
.bot-dot { width: 8px; height: 8px; border-radius: 50%; background: #5BD18B; margin-inline-start: auto; box-shadow: 0 0 0 3px rgba(91, 209, 139, .25); }
.bot-body { padding: 16px; display: grid; gap: 12px; }
.bubble { background: var(--sheet); border: 1px solid var(--line); border-radius: 12px; border-start-start-radius: 3px; padding: 10px 14px; max-width: 92%; }
.bot label { display: grid; gap: 5px; font-size: .88rem; font-weight: 600; color: var(--ink); }
.bot input, .bot select, .bot textarea { font: inherit; font-weight: 400; color: var(--ink); background: var(--sheet); border: 1px solid var(--line); border-radius: var(--r); padding: 10px 12px; width: 100%; }
.bot input:focus, .bot select:focus, .bot textarea:focus { outline: 2px solid var(--brand); outline-offset: 1px; }
.bot textarea { resize: vertical; }
.bot .btn { justify-content: center; border: 0; cursor: pointer; font: inherit; font-weight: 700; }
.bot-note { font-size: .8rem; color: var(--muted); }
.bot .hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.contact dl.mt { margin-top: 24px; }

/* new logo (v0.7.1) */
.logo { gap: 9px; }
.logo img.mk { width: auto; height: 36px; }
.logo .wm { width: auto; height: 22px; display: block; }
footer .logo img.mk { height: 32px; }
footer .logo .wm { height: 19px; }
.foot-brand .tagline { font-family: var(--f-display); letter-spacing: .28em; font-size: .72rem; color: var(--steel); margin-top: 6px; text-transform: uppercase; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logo img.mk { background: #fff; border-radius: 8px; padding: 3px; } }
.phone-row { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 10px; }
@media (max-width: 420px) { .phone-row { grid-template-columns: 1fr; } }
#cb-hint { margin-top: -6px; }

/* industries */
section.tight { padding-block: 44px; }
.ind-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 980px) { .ind-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .ind-grid { grid-template-columns: minmax(0, 1fr); } }
.ind-card { display: grid; gap: 10px; align-content: start; background: var(--sheet); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; text-decoration: none; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.ind-card:hover { border-color: var(--brand); box-shadow: inset 0 3px 0 var(--brand); }
.ind-card h2 { font-size: 1.2rem; }
.ind-card p { color: var(--muted); font-size: .95rem; }
.ind-card .more { color: var(--brand); font-weight: 700; font-size: .92rem; }
[dir="rtl"] .ind-card .more { direction: rtl; }
.chips a { color: inherit; text-decoration: none; }
.chips li:has(a):hover { border-color: var(--brand); color: var(--brand); }
table.list tr.total td { background: var(--brand-soft); font-weight: 700; }
.foot-ind { display: flex; flex-wrap: wrap; gap: 8px 18px; flex-basis: 100%; order: 3; font-size: .85rem; }

/* header: tagline under the logo */
.top .logo img.mk { height: 40px; }
.lockup { display: flex; flex-direction: column; align-items: stretch; gap: 3px; }
.hdr-tag { font-family: var(--f-display); font-weight: 400; font-size: 8.4px; line-height: 1; letter-spacing: .34em; color: var(--steel);
  text-transform: uppercase; text-align: center; white-space: nowrap; margin-inline-end: -.34em; direction: ltr; }
.logo { direction: ltr; }
.hdr-tag b { color: var(--signal); font-weight: 700; }
