/* ============================================================
   Moajir — marketing site · Sandstone editorial system
   One stylesheet for both AR (RTL) and EN (LTR): all spacing
   uses logical properties so the layout mirrors automatically.
   ============================================================ */

/* ---- tokens ---- */
:root {
  --bone: #F4F0E7;
  --bone-grad: linear-gradient(180deg, #F6F2EA 0%, #F1EBE0 100%);
  --paper: #FFFFFF;
  --paper-alt: #FAF7F0;
  --sunk: #F1ECE1;

  --ink: #211C14;
  --ink2: #6A6253;
  --ink3: #9C937F;
  --ink-inv: #FBF8F2;

  --line: rgba(33, 28, 20, 0.09);
  --line-strong: rgba(33, 28, 20, 0.16);

  --olive: #566D40;
  --olive-hover: #4C6137;
  --olive-soft: #E9EDDD;
  --olive-line: rgba(86, 109, 64, 0.30);

  --clay: #AF4631;
  --clay-soft: #F4E5E0;
  --brass: #9E7A2E;
  --brass-soft: #F3EAD5;

  --ui: 'IBM Plex Sans Arabic', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;

  --maxw: 1180px;
  --gutter: 5vw;

  --shadow-sm: 0 1px 2px rgba(33, 28, 20, 0.04);
  --shadow-md: 0 4px 14px rgba(86, 109, 64, 0.16);
  --shadow-lg: 0 30px 60px rgba(33, 28, 20, 0.16);
  --shadow-card: 0 18px 44px rgba(33, 28, 20, 0.10);
}

[data-theme="dark"] {
  --bone: #14110B;
  --bone-grad: linear-gradient(180deg, #181410 0%, #110E08 100%);
  --paper: #1C1810;
  --paper-alt: #211B12;
  --sunk: #16120C;

  --ink: #F2ECDC;
  --ink2: #B8AD93;
  --ink3: #847B64;
  --ink-inv: #16130D;

  --line: rgba(242, 236, 220, 0.10);
  --line-strong: rgba(242, 236, 220, 0.18);

  --olive: #87A266;
  --olive-hover: #93AE71;
  --olive-soft: rgba(135, 162, 102, 0.16);
  --olive-line: rgba(135, 162, 102, 0.32);

  --clay: #D58467;
  --clay-soft: rgba(213, 132, 103, 0.16);
  --brass: #D6AA5A;
  --brass-soft: rgba(214, 170, 90, 0.15);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 30px 60px rgba(0, 0, 0, 0.5);
  --shadow-card: 0 18px 44px rgba(0, 0, 0, 0.45);
}

/* ---- reset ---- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bone);
  font-family: var(--ui);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  line-height: 1.5;
  transition: background .4s ease, color .4s ease;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font-family: inherit; }
::selection { background: rgba(86, 109, 64, 0.22); }

h1, h2, h3, h4, p { margin: 0; }

/* numbers / latin-in-arabic isolation */
.lt { direction: ltr; unicode-bidi: isolate; }
bdi { unicode-bidi: isolate; }

/* ---- layout primitives ---- */
.wrap { width: min(var(--maxw), 90vw); margin-inline: auto; }
.section { padding-block: clamp(80px, 10vw, 136px); position: relative; }
.section--sm { padding-block: clamp(48px, 7vw, 88px); }
.section--lg { padding-block: clamp(96px, 12vw, 168px); }
.section--alt { background: var(--paper-alt); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 11.5px; font-weight: 500;
  letter-spacing: 2px; text-transform: uppercase; color: var(--ink3);
  direction: ltr;
}
.eyebrow .num { color: var(--olive); font-weight: 600; }
.eyebrow .tick { width: 22px; height: 1px; background: var(--line-strong); display: inline-block; }

.lead {
  font-size: clamp(15px, 1.4vw, 18px); line-height: 1.65; color: var(--ink2);
  max-width: 56ch; text-wrap: pretty;
}

.h-sec {
  font-family: var(--ui); font-weight: 700;
  font-size: clamp(28px, 3.4vw, 46px); line-height: 1.08;
  letter-spacing: -0.6px; color: var(--ink); text-wrap: balance;
}
.accent { color: var(--olive); }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 48px; padding-inline: 22px; border-radius: 999px; cursor: pointer;
  font-family: var(--ui); font-size: 14.5px; font-weight: 600; letter-spacing: .1px;
  text-decoration: none; white-space: nowrap; border: 1px solid transparent;
  transition: background .2s, color .2s, transform .2s, border-color .2s, box-shadow .25s;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--olive); color: var(--ink-inv); box-shadow: var(--shadow-md); }
.btn--primary:hover { background: var(--olive-hover); box-shadow: 0 10px 26px rgba(86, 109, 64, 0.30); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { background: var(--sunk); }
.btn--light { background: var(--ink-inv); color: var(--ink); box-shadow: var(--shadow-sm); }
.btn--lg { height: 56px; padding-inline: 28px; font-size: 16px; }
.btn--sm { height: 40px; padding-inline: 16px; font-size: 13px; }
.btn .arrow { display: inline-flex; }
[dir="rtl"] .btn .arrow { transform: scaleX(-1); }

/* ---- nav ---- */
.nav {
  position: fixed; inset-block-start: 0; inset-inline: 0; z-index: 100; height: 72px;
  display: flex; align-items: center;
  transition: background .35s, border-color .35s, box-shadow .35s;
  border-block-end: 1px solid transparent;
}
.nav.solid {
  background: color-mix(in srgb, var(--bone) 82%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  border-block-end-color: var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: min(var(--maxw), 90vw); }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a {
  font-size: 14px; font-weight: 500; color: var(--ink2); text-decoration: none;
  padding: 8px 14px; border-radius: 999px; transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--ink); background: rgba(33, 28, 20, 0.05); }
.nav-right { display: flex; align-items: center; gap: 10px; }

/* wordmark */
.wordmark { display: inline-flex; align-items: center; gap: 10px; direction: rtl; text-decoration: none; }
.wordmark .tile {
  width: 34px; height: 34px; border-radius: 11px; background: var(--olive); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 19px; font-weight: 700; color: #FBF8F2; line-height: 1;
}
.wordmark .wm-ar { font-size: 19px; font-weight: 700; color: var(--ink); letter-spacing: -.5px; line-height: 1; }
.wordmark .wm-en { font-family: var(--mono); font-size: 8px; font-weight: 500; letter-spacing: 2.6px; color: var(--ink3); direction: ltr; }
.wordmark .wm-stack { display: flex; flex-direction: column; gap: 2px; }
.wordmark.inv .wm-ar { color: var(--ink-inv); }
.wordmark.inv .wm-en { color: rgba(251, 248, 242, 0.55); }

/* lang + theme toggles */
.seg { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); }
.seg a, .seg button {
  min-width: 30px; height: 28px; padding: 0 9px; border-radius: 999px; border: none; cursor: pointer;
  font-size: 12.5px; font-weight: 600; background: transparent; color: var(--ink3);
  text-decoration: none; display: inline-flex; align-items: center; justify-content: center;
  transition: background .2s, color .2s;
}
.seg a.on { background: var(--ink); color: var(--ink-inv); }
.seg .en { font-family: var(--mono); }
.icon-btn {
  width: 36px; height: 36px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--paper); cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink2); transition: background .2s, color .2s, border-color .2s;
}
.icon-btn:hover { color: var(--ink); border-color: var(--line-strong); }
.icon-btn .moon { display: block; }
.icon-btn .sun { display: none; }
[data-theme="dark"] .icon-btn .moon { display: none; }
[data-theme="dark"] .icon-btn .sun { display: block; }

.menu-btn { display: none; }

/* ---- hero ---- */
.hero { position: relative; overflow: hidden; }
.hero-wash {
  position: absolute; inset-inline: 0; inset-block-start: 0; height: 120%; z-index: 0;
  background: radial-gradient(120% 80% at 78% 8%, rgba(86, 109, 64, 0.10) 0%, rgba(86, 109, 64, 0) 55%), var(--bone-grad);
}
.hero-grid {
  position: relative; z-index: 1;
  padding-block-start: clamp(128px, 16vw, 196px);
  padding-block-end: clamp(56px, 8vw, 96px);
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(24px, 5vw, 72px); align-items: center;
}
.pill {
  display: inline-flex; align-items: center; gap: 8px; height: 30px; padding-inline: 12px 14px;
  border-radius: 999px; background: var(--olive-soft); border: 1px solid var(--olive-line);
  font-size: 12.5px; font-weight: 600; color: var(--olive);
}
.pill .dot { width: 7px; height: 7px; border-radius: 99px; background: var(--olive); }
.h-hero {
  font-family: var(--ui); font-weight: 700;
  font-size: clamp(40px, 6vw, 76px); line-height: 1.04; letter-spacing: -0.5px;
  color: var(--ink); text-wrap: balance; margin-block-start: 26px;
}
[dir="ltr"] .h-hero { letter-spacing: -2px; }
.hero-sub { margin-block-start: 26px; max-width: 540px; font-size: clamp(16px, 1.5vw, 19px); line-height: 1.65; color: var(--ink2); text-wrap: pretty; }
.hero-cta { margin-block-start: 34px; }
.fineprint {
  margin-block-start: 16px; display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .6px; color: var(--ink3); direction: ltr;
}
.fineprint .dot { width: 6px; height: 6px; border-radius: 99px; background: var(--olive); }

/* waitlist field */
.waitlist {
  display: flex; align-items: center; gap: 8px; padding: 6px; max-width: 460px;
  border-radius: 999px; border: 1px solid var(--line-strong); background: var(--paper); box-shadow: var(--shadow-sm);
}
.waitlist input {
  flex: 1; min-width: 0; height: 44px; border: none; outline: none; background: transparent;
  font-family: var(--ui); font-size: 15px; color: var(--ink); padding-inline: 16px;
}
.waitlist input::placeholder { color: var(--ink3); }
.waitlist.done { background: var(--olive-soft); border-color: var(--olive-line); justify-content: center; gap: 11px; }
.waitlist .ok-badge { width: 26px; height: 26px; border-radius: 99px; background: var(--olive); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.waitlist .ok-txt { font-size: 15px; font-weight: 600; color: var(--olive); }

/* ---- device mockups (static, CSS) ---- */
.device-col { display: flex; justify-content: center; min-width: 0; }
.device {
  width: 300px; flex-shrink: 0; background: var(--paper); border-radius: 38px;
  border: 1px solid var(--line); padding: 12px; box-shadow: var(--shadow-lg);
  position: relative;
}
.device.float { animation: heroFloat 7s ease-in-out infinite; }
.device-screen { background: var(--bone); border-radius: 28px; overflow: hidden; border: 1px solid var(--line); }
.device-notch { position: absolute; inset-block-start: 22px; inset-inline: 0; margin-inline: auto; width: 110px; height: 26px; background: var(--ink); border-radius: 999px; z-index: 3; }

/* phone content */
.scr { padding: 22px 16px 16px; }
.scr-top { display: flex; align-items: center; justify-content: space-between; margin-block-end: 16px; }
.scr-eyebrow { font-family: var(--mono); font-size: 8.5px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--ink3); direction: ltr; }
.scr-title { font-size: 19px; font-weight: 700; color: var(--ink); margin-block-start: 2px; }
.scr-dot { width: 30px; height: 30px; border-radius: 99px; background: var(--olive); display: flex; align-items: center; justify-content: center; color: #FBF8F2; font-size: 15px; font-weight: 700; }

.kpi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.kpi {
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 12px;
}
.kpi .k-label { font-size: 10.5px; color: var(--ink2); font-weight: 600; }
.kpi .k-val { font-family: var(--mono); font-size: 20px; font-weight: 600; color: var(--ink); letter-spacing: -.5px; margin-block-start: 5px; direction: ltr; }
.kpi .k-sub { font-size: 9px; color: var(--ink3); margin-block-start: 3px; }
.kpi .k-val.clay { color: var(--clay); }
.kpi .k-val.olive { color: var(--olive); }
.kpi-pill { display: inline-block; font-family: var(--mono); font-size: 8px; padding: 2px 7px; border-radius: 99px; margin-block-end: 6px; letter-spacing: .5px; }
.kpi-pill.ink { background: var(--sunk); color: var(--ink2); }
.kpi-pill.clay { background: var(--clay-soft); color: var(--clay); }
.kpi-pill.olive { background: var(--olive-soft); color: var(--olive); }

.sec-head { display: flex; align-items: center; gap: 8px; margin: 16px 0 10px; }
.sec-head .sn { font-family: var(--mono); font-size: 10px; color: var(--olive); }
.sec-head .st { font-size: 12px; font-weight: 700; color: var(--ink); }
.sec-head .sl { margin-inline-start: auto; font-size: 10px; color: var(--olive); font-weight: 600; }

.attn-row { display: flex; align-items: center; gap: 10px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 11px 12px; margin-block-end: 7px; }
.attn-row .a-bar { width: 3px; align-self: stretch; border-radius: 99px; }
.attn-row .a-bar.clay { background: var(--clay); }
.attn-row .a-bar.warn { background: var(--brass); }
.attn-row .a-main { flex: 1; min-width: 0; }
.attn-row .a-title { font-size: 12px; font-weight: 700; color: var(--ink); }
.attn-row .a-sub { font-size: 10px; color: var(--ink2); margin-block-start: 2px; }
.attn-row .a-amt { font-family: var(--mono); font-size: 12.5px; font-weight: 600; color: var(--ink); direction: ltr; }

.qa-row { display: flex; gap: 8px; }
.qa { flex: 1; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 12px 8px; text-align: center; }
.qa .qa-ic { width: 30px; height: 30px; margin-inline: auto; border-radius: 9px; background: var(--olive-soft); display: flex; align-items: center; justify-content: center; color: var(--olive); margin-block-end: 7px; }
.qa .qa-l { font-size: 10px; font-weight: 600; color: var(--ink2); }

/* nav bar inside phone */
.scr-nav { display: flex; justify-content: space-around; margin: 14px -16px -16px; padding: 12px 0 14px; border-block-start: 1px solid var(--line); background: var(--paper); }
.scr-nav .ni { display: flex; flex-direction: column; align-items: center; gap: 3px; color: var(--ink3); font-size: 8px; }
.scr-nav .ni.on { color: var(--ink); }
.scr-nav .ni .nd { width: 18px; height: 18px; border-radius: 6px; background: currentColor; opacity: .85; }

/* small supporting visuals for feature rows */
.mini {
  background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 18px;
  box-shadow: var(--shadow-card); max-width: 440px; width: 100%;
}
.mini-wash { position: relative; }
.mini-wash::before {
  content: ""; position: absolute; inset: 8% 10%; border-radius: 50%;
  background: radial-gradient(circle, rgba(86, 109, 64, 0.14) 0%, transparent 70%);
  filter: blur(20px); z-index: 0;
}
.mini-wash > * { position: relative; z-index: 1; }
.mini .m-eyebrow { font-family: var(--mono); font-size: 10px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--ink3); direction: ltr; margin-block-end: 12px; }
.mini-row { display: flex; align-items: center; gap: 12px; padding-block: 11px; border-block-start: 1px solid var(--line); }
.mini-row:first-of-type { border-block-start: none; }
.mini-av { width: 36px; height: 36px; border-radius: 10px; background: var(--olive-soft); color: var(--olive); display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; }
.mini-row .mr-main { flex: 1; min-width: 0; }
.mini-row .mr-t { font-size: 13.5px; font-weight: 700; color: var(--ink); }
.mini-row .mr-s { font-size: 11.5px; color: var(--ink2); margin-block-start: 2px; }
.mini-row .mr-amt { font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--ink); direction: ltr; }
.mini-tag { font-family: var(--mono); font-size: 9px; padding: 3px 8px; border-radius: 99px; background: var(--olive-soft); color: var(--olive); letter-spacing: .5px; }

/* invoice mini */
.inv-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding-block-end: 14px; border-block-end: 1px solid var(--line); }
.inv-qr { width: 56px; height: 56px; border-radius: 10px; background:
  repeating-linear-gradient(0deg, var(--ink) 0 3px, transparent 3px 6px),
  repeating-linear-gradient(90deg, var(--ink) 0 3px, transparent 3px 6px);
  background-blend-mode: multiply; opacity: .9; flex-shrink: 0; }
.inv-line { display: flex; justify-content: space-between; align-items: center; padding-block: 8px; font-size: 12.5px; color: var(--ink2); }
.inv-line .il-v { font-family: var(--mono); color: var(--ink); direction: ltr; }
.inv-total { display: flex; justify-content: space-between; align-items: center; padding-block-start: 12px; margin-block-start: 4px; border-block-start: 1px solid var(--line-strong); }
.inv-total .it-l { font-size: 13px; font-weight: 700; color: var(--ink); }
.inv-total .it-v { font-family: var(--mono); font-size: 17px; font-weight: 600; color: var(--olive); direction: ltr; }

/* whatsapp bubble mini */
.wa-bubble { background: var(--olive-soft); border: 1px solid var(--olive-line); border-radius: 14px; border-end-end-radius: 4px; padding: 11px 13px; font-size: 13px; line-height: 1.5; color: var(--ink); max-width: 78%; }
.wa-bubble.them { background: var(--sunk); border-color: var(--line); border-radius: 14px; border-end-start-radius: 4px; margin-inline-start: auto; color: var(--ink2); }
.wa-stack { display: flex; flex-direction: column; gap: 8px; }
.wa-meta { font-family: var(--mono); font-size: 9px; color: var(--ink3); direction: ltr; }

/* ---- feature section ---- */
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.feature-copy h2 { margin-block-start: 20px; }
.feature-copy .lead { margin-block: 20px 28px; }
.feat-list { margin: 0; padding: 0; list-style: none; }
.feat-item { display: flex; gap: 13px; padding-block: 14px; border-block-start: 1px solid var(--line); }
.feat-item .ck { width: 24px; height: 24px; border-radius: 7px; background: var(--olive-soft); flex-shrink: 0; margin-block-start: 1px; display: flex; align-items: center; justify-content: center; color: var(--olive); }
.feat-item .fi-t { font-size: 15.5px; font-weight: 700; color: var(--ink); margin-block-end: 4px; }
.feat-item .fi-b { font-size: 14px; line-height: 1.6; color: var(--ink2); }
.feat-visual { display: flex; justify-content: center; min-width: 0; }
.caption { font-family: var(--mono); font-size: 10.5px; letter-spacing: 1.6px; color: var(--ink3); direction: ltr; text-transform: uppercase; display: inline-flex; align-items: center; gap: 8px; margin-block-start: 18px; }
.caption .dot { width: 6px; height: 6px; border-radius: 99px; background: var(--olive); }
.visual-stack { display: flex; flex-direction: column; align-items: center; }

/* ---- problem / solution ---- */
.split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: clamp(24px, 3vw, 36px);
  box-shadow: var(--shadow-sm);
}
.card h3 { font-size: clamp(19px, 2vw, 24px); font-weight: 700; color: var(--ink); margin-block-end: 14px; }
.card .card-eyebrow { margin-block-end: 18px; }
.x-list, .check-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; }
.x-list li, .check-list li { display: flex; gap: 12px; font-size: 15px; line-height: 1.55; color: var(--ink2); }
.x-list .mk { width: 22px; height: 22px; border-radius: 6px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: var(--clay-soft); color: var(--clay); margin-block-start: 1px; }
.check-list .mk { width: 22px; height: 22px; border-radius: 6px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: var(--olive-soft); color: var(--olive); margin-block-start: 1px; }

/* ---- compliance trust band ---- */
.rail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 48px); }
.rail-card { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: clamp(26px, 3.5vw, 40px); box-shadow: var(--shadow-sm); }
.rail-card .rc-badge { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11px; letter-spacing: 1px; color: var(--olive); text-transform: uppercase; direction: ltr; padding: 6px 12px; border-radius: 99px; background: var(--olive-soft); border: 1px solid var(--olive-line); margin-block-end: 20px; }
.rail-card h3 { font-size: clamp(20px, 2.2vw, 27px); font-weight: 700; color: var(--ink); margin-block-end: 12px; text-wrap: balance; }
.rail-card p { font-size: 15px; line-height: 1.7; color: var(--ink2); }
.rail-card .rc-note { margin-block-start: 16px; padding-block-start: 16px; border-block-start: 1px solid var(--line); font-size: 13.5px; color: var(--ink3); }

/* ---- how it works ---- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 44px); }
.step .s-num { font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--olive); }
.step .s-rule { height: 2px; background: var(--ink); margin-block: 14px; width: 40px; }
.step h3 { font-size: clamp(18px, 1.9vw, 22px); font-weight: 700; color: var(--ink); margin-block-end: 10px; }
.step p { font-size: 14.5px; line-height: 1.6; color: var(--ink2); }

/* ---- stat band ---- */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 40px); }
.stat { border-block-start: 2px solid var(--ink); padding-block-start: 16px; }
.stat .sv { font-family: var(--mono); font-size: clamp(26px, 3vw, 38px); font-weight: 600; color: var(--olive); letter-spacing: -1px; direction: ltr; }
.stat .sl { font-size: 14px; line-height: 1.5; color: var(--ink2); margin-block-start: 8px; max-width: 200px; }

/* ---- pricing ---- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.5vw, 28px); align-items: stretch; }
.price {
  background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: clamp(24px, 3vw, 34px);
  display: flex; flex-direction: column; box-shadow: var(--shadow-sm);
}
.price.featured { border-color: var(--olive-line); box-shadow: var(--shadow-card); position: relative; }
.price .p-tag { font-family: var(--mono); font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--ink3); direction: ltr; }
.price.featured .p-tag { color: var(--olive); }
.price .p-name { font-size: 21px; font-weight: 700; color: var(--ink); margin-block: 10px 4px; }
.price .p-price { font-family: var(--mono); font-size: clamp(30px, 3.4vw, 40px); font-weight: 600; color: var(--ink); letter-spacing: -1px; direction: ltr; margin-block: 14px 4px; }
.price .p-unit { font-size: 13px; color: var(--ink3); }
.price .p-desc { font-size: 14px; line-height: 1.6; color: var(--ink2); margin-block: 16px; padding-block-end: 16px; border-block-end: 1px solid var(--line); }
.price ul { margin: 0 0 24px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 11px; flex: 1; }
.price ul li { display: flex; gap: 10px; font-size: 13.5px; line-height: 1.5; color: var(--ink2); }
.price ul .mk { width: 18px; height: 18px; border-radius: 5px; flex-shrink: 0; background: var(--olive-soft); color: var(--olive); display: flex; align-items: center; justify-content: center; margin-block-start: 1px; }
.price .btn { width: 100%; }

/* ---- FAQ ---- */
.faq-list { max-width: 820px; margin-inline: auto; border-block-start: 1px solid var(--line); }
.faq-item { border-block-end: 1px solid var(--line); }
.faq-q {
  width: 100%; background: none; border: none; cursor: pointer; text-align: start;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-block: 22px; font-family: var(--ui); font-size: clamp(16px, 1.7vw, 19px); font-weight: 700; color: var(--ink);
}
.faq-q .chev { flex-shrink: 0; color: var(--olive); transition: transform .3s; }
.faq-item.open .faq-q .chev { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-a-inner { padding-block-end: 24px; font-size: 15.5px; line-height: 1.72; color: var(--ink2); max-width: 70ch; }
.faq-item.open .faq-a { max-height: 420px; }

/* ---- principle (ink moment) ---- */
.ink-band { background: var(--ink); position: relative; overflow: hidden; }
[data-theme="dark"] .ink-band { background: #0E0B07; }
.ink-band .iw { position: absolute; inset: 0; background: radial-gradient(80% 60% at 80% 0%, rgba(86, 109, 64, 0.22) 0%, transparent 60%); }
.ink-band .wrap { position: relative; z-index: 1; padding-block: clamp(96px, 13vw, 180px); }
.ink-band blockquote { margin: 28px 0 0; font-family: var(--ui); font-weight: 700; font-size: clamp(28px, 4.2vw, 58px); line-height: 1.18; letter-spacing: -0.8px; color: var(--ink-inv); text-wrap: balance; max-width: 980px; }
.ink-band blockquote .hl { color: var(--olive-soft); }
[data-theme="dark"] .ink-band blockquote .hl { color: var(--olive); }
.ink-band .eyebrow { color: rgba(251, 248, 242, 0.55); }
.ink-note { margin-block-start: 40px; display: flex; align-items: center; gap: 12px; }
.ink-note .ln { width: 38px; height: 1px; background: rgba(251, 248, 242, 0.3); }
.ink-note span:last-child { font-size: 14px; color: rgba(251, 248, 242, 0.7); }

/* ---- CTA ---- */
.cta-center { max-width: 720px; margin-inline: auto; text-align: center; }
.cta-center .h-sec { font-size: clamp(32px, 4.6vw, 60px); letter-spacing: -1px; line-height: 1.06; }
.cta-center .lead { margin-inline: auto; margin-block: 20px 34px; }
.cta-center .waitlist { margin-inline: auto; }

/* ---- footer ---- */
.footer { background: var(--ink); color: var(--ink-inv); }
[data-theme="dark"] .footer { background: #0E0B07; }
.footer .wrap { padding-block: clamp(56px, 7vw, 88px) 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.footer-about { max-width: 300px; margin-block-start: 20px; font-size: 14.5px; line-height: 1.6; color: rgba(251, 248, 242, 0.62); }
.footer-col .fh { font-family: var(--mono); font-size: 11px; letter-spacing: 1.6px; text-transform: uppercase; color: rgba(251, 248, 242, 0.45); margin-block-end: 18px; }
.footer-col .fl { display: flex; flex-direction: column; gap: 12px; }
.footer-col a { font-size: 14.5px; color: rgba(251, 248, 242, 0.78); text-decoration: none; width: fit-content; transition: color .2s; }
.footer-col a:hover { color: var(--ink-inv); }
.footer-bottom { margin-block-start: clamp(40px, 6vw, 72px); padding-block-start: 22px; border-block-start: 1px solid rgba(251, 248, 242, 0.12); display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-bottom .fb { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 11px; letter-spacing: .5px; color: rgba(251, 248, 242, 0.5); direction: ltr; }
.footer-bottom .fb .dot { width: 6px; height: 6px; border-radius: 99px; background: var(--olive); }

/* ---- content page (compliance/faq) ---- */
.doc-hero { padding-block: clamp(120px, 15vw, 180px) clamp(40px, 6vw, 72px); position: relative; }
.doc-hero .h-doc { font-family: var(--ui); font-weight: 700; font-size: clamp(34px, 5vw, 64px); line-height: 1.06; letter-spacing: -1px; color: var(--ink); text-wrap: balance; margin-block-start: 22px; max-width: 16ch; }
.doc-body { max-width: 760px; }
.doc-body h2 { font-size: clamp(24px, 2.8vw, 34px); font-weight: 700; color: var(--ink); letter-spacing: -.5px; margin-block: clamp(40px, 5vw, 64px) 16px; text-wrap: balance; }
.doc-body h3 { font-size: clamp(18px, 2vw, 22px); font-weight: 700; color: var(--ink); margin-block: 28px 10px; }
.doc-body p { font-size: clamp(15px, 1.4vw, 17px); line-height: 1.78; color: var(--ink2); margin-block-end: 16px; text-wrap: pretty; }
.doc-body p a { color: var(--olive); text-decoration: underline; text-underline-offset: 3px; }
.doc-body ul { margin: 0 0 18px; padding-inline-start: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.doc-body ul li { display: flex; gap: 12px; font-size: clamp(15px, 1.4vw, 17px); line-height: 1.7; color: var(--ink2); }
.doc-body ul li .mk { width: 22px; height: 22px; border-radius: 6px; flex-shrink: 0; background: var(--olive-soft); color: var(--olive); display: flex; align-items: center; justify-content: center; margin-block-start: 2px; }
.doc-toc { background: var(--paper-alt); border: 1px solid var(--line); border-radius: 16px; padding: 22px 24px; margin-block: 24px; }
.doc-toc .tt { font-family: var(--mono); font-size: 11px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--ink3); direction: ltr; margin-block-end: 14px; }
.doc-toc ol { margin: 0; padding-inline-start: 1.2em; display: flex; flex-direction: column; gap: 9px; }
.doc-toc a { font-size: 15px; color: var(--ink); text-decoration: none; }
.doc-toc a:hover { color: var(--olive); }
.callout { background: var(--olive-soft); border: 1px solid var(--olive-line); border-radius: 16px; padding: 22px 24px; margin-block: 24px; font-size: 15.5px; line-height: 1.7; color: var(--ink); }

/* ---- reveal ---- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s cubic-bezier(.22,.61,.36,1), transform 1s cubic-bezier(.22,.61,.36,1); }
.reveal.seen { opacity: 1; transform: none; }

/* ---- marquee ---- */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; width: max-content; animation: mq 38s linear infinite; }
.marquee-track > span { font-size: 15px; font-weight: 600; color: var(--ink2); padding-inline: 30px; white-space: nowrap; }
.marquee-track .sep { color: var(--olive-line); padding-inline: 0; }
.trust-strip { border-block: 1px solid var(--line); padding-block: 22px; background: color-mix(in srgb, var(--paper) 40%, transparent); position: relative; z-index: 1; }
.trust-strip .tcap { display: flex; justify-content: center; margin-block-end: 12px; }

@keyframes heroFloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
@keyframes mq { from { transform: translateX(0); } to { transform: translateX(-50%); } }
[dir="rtl"] .marquee-track { animation-name: mqRtl; }
@keyframes mqRtl { from { transform: translateX(0); } to { transform: translateX(50%); } }

/* ---- responsive ---- */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .menu-btn { display: inline-flex; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-device { margin-block-start: 12px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-copy { order: 1 !important; }
  .feat-visual { order: 2 !important; }
  .split-grid, .rail-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 24px; }
  .price-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .stat-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; }
  .device { width: 264px; }
}

/* mobile drawer */
.drawer { position: fixed; inset: 0; z-index: 200; background: color-mix(in srgb, var(--bone) 96%, transparent); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); display: none; flex-direction: column; padding: 24px; }
.drawer.open { display: flex; }
.drawer-top { display: flex; align-items: center; justify-content: space-between; }
.drawer nav { display: flex; flex-direction: column; gap: 4px; margin-block-start: 40px; }
.drawer nav a { font-size: 24px; font-weight: 700; color: var(--ink); text-decoration: none; padding-block: 12px; border-block-end: 1px solid var(--line); }

/* ============================================================
   MOTION LAYER  (progressive enhancement — JS adds classes)
   ============================================================ */

/* scroll-progress rail */
.scroll-progress {
  position: fixed; inset-block-start: 0; inset-inline: 0; height: 2px; z-index: 300;
  transform: scaleX(0); transform-origin: 0 50%; pointer-events: none;
  background: linear-gradient(90deg, var(--olive), var(--brass));
}
[dir="rtl"] .scroll-progress { transform-origin: 100% 50%; }

/* richer reveal: keep the site's proven opacity/transform reveal; just hint the compositor */
.reveal { will-change: opacity, transform; }

/* hero device fades in via the persistent .reveal/.seen mechanism (screenshot-safe);
   the headline + pill stay visible always so the hero is never blank. */

/* live pulsing status dots */
.pill .dot, .caption .dot { position: relative; }
.pill .dot::after, .caption .dot::after {
  content: ""; position: absolute; inset: -3px; border-radius: 99px;
  border: 1px solid var(--olive); animation: pulseRing 2.6s ease-out infinite;
}
@keyframes pulseRing { 0% { transform: scale(.55); opacity: .7; } 100% { transform: scale(2); opacity: 0; } }

/* device tilt stage */
.hero-device { perspective: 1100px; }
.hero-device .device { transition: transform .3s cubic-bezier(.22,.61,.36,1); transform-style: preserve-3d; }

/* invoice QR scan sweep */
.inv-qr { position: relative; overflow: hidden; }
.inv-qr::after {
  content: ""; position: absolute; inset-inline: -10%; height: 70%; inset-block-start: -70%;
  background: linear-gradient(180deg, transparent, rgba(86,109,64,.85), transparent);
  opacity: 0; mix-blend-mode: screen;
}
.inv-qr.scan::after { animation: qrScan 1.6s cubic-bezier(.5,0,.5,1); }
@keyframes qrScan { 0% { inset-block-start: -70%; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { inset-block-start: 110%; opacity: 0; } }

/* WhatsApp typing indicator + sequential bubbles */
.wa-typing {
  display: inline-flex; gap: 5px; align-items: center; width: fit-content;
  background: var(--sunk); border: 1px solid var(--line);
  border-radius: 14px; border-end-start-radius: 4px; padding: 12px 14px; margin-inline-start: auto;
}
.wa-typing i { width: 6px; height: 6px; border-radius: 99px; background: var(--ink3); animation: waDot 1.1s infinite ease-in-out; }
.wa-typing i:nth-child(2) { animation-delay: .15s; }
.wa-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes waDot { 0%, 60%, 100% { transform: translateY(0); opacity: .4; } 30% { transform: translateY(-4px); opacity: 1; } }
.seq { opacity: 0; transform: translateY(10px) scale(.98); transform-origin: 100% 100%; }
.seq.show { opacity: 1; transform: none; transition: opacity .5s ease, transform .55s cubic-bezier(.22,.61,.36,1); }

/* pause the rails marquee on hover */
.marquee:hover .marquee-track { animation-play-state: paused; }

@media (prefers-reduced-motion: reduce) {
  .device.float { animation: none; }
  .marquee-track { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-anim { opacity: 1; transform: none; }
  .seq { opacity: 1; transform: none; }
  .pill .dot::after, .caption .dot::after { animation: none; display: none; }
  .scroll-progress { display: none; }
  * { scroll-behavior: auto !important; }
}
