/* Noto Sans Arabic (variable 100-900), self-hosted: no third-party font request. */
/* MARASIPOS wordmark: Inter (Latin only), wide tracking like the MARASITECH logo */
@font-face { font-family: 'Marasi Brand'; font-style: normal; font-display: swap; font-weight: 400; src: url(../fonts/inter-latin-400.woff2) format('woff2'); }
@font-face { font-family: 'Marasi Brand'; font-style: normal; font-display: swap; font-weight: 500; src: url(../fonts/inter-latin-500.woff2) format('woff2'); }
@font-face {
  font-family: 'Noto Sans Arabic Variable';
  font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(../fonts/noto-sans-arabic-arabic-wght-normal.woff2) format('woff2-variations'), url(../fonts/noto-sans-arabic-arabic-wght-normal.woff2) format('woff2');
  unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC;
}
/* MARASIPOS wordmark: Inter (Latin only), wide tracking like the MARASITECH logo */
@font-face { font-family: 'Marasi Brand'; font-style: normal; font-display: swap; font-weight: 400; src: url(../fonts/inter-latin-400.woff2) format('woff2'); }
@font-face { font-family: 'Marasi Brand'; font-style: normal; font-display: swap; font-weight: 500; src: url(../fonts/inter-latin-500.woff2) format('woff2'); }
@font-face {
  font-family: 'Noto Sans Arabic Variable';
  font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(../fonts/noto-sans-arabic-latin-ext-wght-normal.woff2) format('woff2-variations'), url(../fonts/noto-sans-arabic-latin-ext-wght-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
/* MARASIPOS wordmark: Inter (Latin only), wide tracking like the MARASITECH logo */
@font-face { font-family: 'Marasi Brand'; font-style: normal; font-display: swap; font-weight: 400; src: url(../fonts/inter-latin-400.woff2) format('woff2'); }
@font-face { font-family: 'Marasi Brand'; font-style: normal; font-display: swap; font-weight: 500; src: url(../fonts/inter-latin-500.woff2) format('woff2'); }
@font-face {
  font-family: 'Noto Sans Arabic Variable';
  font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(../fonts/noto-sans-arabic-latin-wght-normal.woff2) format('woff2-variations'), url(../fonts/noto-sans-arabic-latin-wght-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

/* MARASIPOS identity — shared stylesheet (RTL-first, responsive, no framework)
 * Palette/typography mirror the novaerps.com reference: white header, navy
 * headlines (#0A1633), blue→teal gradient CTAs, light section background,
 * white cards with soft borders. All legacy class names are preserved so
 * page behavior and tests never depend on styling. */

:root {
  --navy: #0a1633;
  --navy-2: #16224d;
  --blue: #1b63e0;
  --blue-dark: #1550b8;
  --teal: #14b8a6;
  --teal-dark: #0e9384;
  /* MARASITECH logo colours */
  --brand-navy: #181e50;
  --brand-teal: #61ada0;
  --grad: linear-gradient(135deg, var(--blue), var(--teal));
  --bg: #f2f4f9;
  --card: #ffffff;
  --text: #0a1633;
  --muted: #667085;
  --border: #e4e9f2;
  --danger: #dc2626;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 14px 44px rgba(10, 22, 51, 0.08);
  --shadow-sm: 0 4px 16px rgba(10, 22, 51, 0.06);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Noto Sans Arabic Variable", "Segoe UI", Tahoma, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* ---------- Header (white, sticky, like reference) ---------- */
.site-header {
  background: #fff;
  color: var(--text);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 14px rgba(10, 22, 51, 0.05);
}
.site-header .bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 20px;
  max-width: 1120px;
  margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand-logo { height: 42px; width: auto; display: block; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 12px;
  background: linear-gradient(135deg, var(--navy) 20%, var(--blue) 60%, var(--teal));
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 22px; color: #fff;
  box-shadow: var(--shadow-sm);
}
.brand-name { font-family: 'Marasi Brand', 'Segoe UI', Arial, sans-serif; font-weight: 500; font-size: 19px; letter-spacing: 0.14em; line-height: 1.25; direction: ltr; unicode-bidi: isolate; }
.brand-name .nova { color: var(--brand-navy); }
.brand-name .erps { color: var(--brand-teal); }
.brand-name small { display: block; font-family: 'Noto Sans Arabic Variable', 'Segoe UI', Tahoma, sans-serif; direction: rtl; font-size: 11px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.nav { display: flex; gap: 2px; flex-wrap: wrap; margin-inline-start: auto; }
.nav a {
  color: var(--text); text-decoration: none; font-size: 15px; font-weight: 600;
  padding: 8px 14px; border-radius: 10px;
}
.nav a:hover { background: #eef3fc; color: var(--blue); }
.nav a.active { color: var(--blue); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-link { color: var(--text); font-weight: 700; font-size: 14px; text-decoration: none; white-space: nowrap; }
.header-link:hover { color: var(--blue); }
.lang-toggle {
  display: inline-flex; border: 1px solid var(--border); border-radius: 999px;
  padding: 3px; gap: 2px; background: #f6f8fc; font-size: 13px; font-weight: 700;
}
.lang-toggle .on {
  background: var(--grad); color: #fff; border-radius: 999px; padding: 4px 14px;
}
.lang-toggle .off { color: var(--muted); padding: 4px 14px; border-radius: 999px; }
.btn-header { padding: 10px 22px; font-size: 15px; }

/* ---------- Hero (light, navy headline like reference) ---------- */
.hero {
  background: linear-gradient(180deg, #f7f9fd 0%, var(--bg) 100%);
  color: var(--text);
  padding: 60px 0 52px;
  text-align: center;
}
.hero h1 { margin: 0 0 12px; font-size: clamp(28px, 5vw, 46px); font-weight: 800; line-height: 1.5; }
.hero h1 .grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { margin: 0 auto 26px; max-width: 660px; color: var(--muted); font-size: 17px; }
.hero .cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  border: 0; cursor: pointer;
  padding: 12px 30px;
  border-radius: var(--radius-sm);
  font-size: 16px; font-weight: 700; font-family: inherit;
  text-decoration: none;
  transition: transform 0.06s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 22px rgba(27, 99, 224, 0.28); }
.btn-primary:hover { filter: brightness(1.06); box-shadow: 0 10px 26px rgba(27, 99, 224, 0.34); }
.btn-primary:disabled { background: #a9c3f2; cursor: not-allowed; box-shadow: none; }
.btn-ghost { background: rgba(255, 255, 255, 0.14); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.24); }
.btn-outline { background: #fff; color: var(--text); border: 1.5px solid #d3dbe8; }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }
.btn-light { background: #fff; color: var(--text); border: 1.5px solid var(--border); box-shadow: var(--shadow-sm); }
.btn-light:hover { border-color: var(--blue); color: var(--blue); }
.btn-block { width: 100%; }

/* ---------- Sections & cards ---------- */
.section { padding: 40px 0; }
.section-title { text-align: center; margin: 0 0 8px; font-size: clamp(22px, 3.4vw, 30px); font-weight: 800; }
.section-sub { text-align: center; color: var(--muted); margin: 0 0 26px; font-size: 16px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 18px; }
.grid-4 { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 720px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1020px) {
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
  .grid-4.four { grid-template-columns: repeat(4, 1fr); }
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 26px;
}
.card h3 { margin-top: 0; }
.product-card { text-align: center; }
.product-card .icon { font-size: 44px; }
.product-card p { color: var(--muted); min-height: 52px; }
.price { font-size: 32px; font-weight: 800; color: var(--navy); }
.price small { font-size: 14px; color: var(--muted); font-weight: 400; }
.plan-card { text-align: center; display: flex; flex-direction: column; gap: 10px; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.plan-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.plan-card .months { color: var(--muted); font-size: 14px; }
.plan-card.featured { border: 2px solid transparent; background: linear-gradient(#fff, #fff) padding-box, var(--grad) border-box; position: relative; }
.badge {
  display: inline-block; font-size: 12px; font-weight: 700;
  padding: 4px 14px; border-radius: 999px;
  background: #eaf1fe; color: var(--blue);
}
.badge-green { background: #dcfce7; color: #15803d; }
.badge-amber { background: #fef3c7; color: #b45309; }
.badge-admin { background: var(--navy); color: #fff; }

/* Trust badges row (circled checks, like reference) */
.trust-row { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }
.trust-item { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 600; color: var(--text); }
.check-dot {
  width: 22px; height: 22px; border-radius: 50%;
  border: 1.5px solid var(--blue); color: var(--blue);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800; flex-shrink: 0;
}
.pill-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--border); border-radius: 999px;
  padding: 6px 18px; font-size: 13px; font-weight: 600; color: var(--navy);
  box-shadow: var(--shadow-sm);
}
.pill-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); }

/* ---------- Steps ---------- */
.steps { display: flex; gap: 8px; justify-content: center; margin: 0 0 26px; flex-wrap: wrap; }
.step {
  font-size: 13px; font-weight: 600; color: var(--muted);
  background: #fff; border: 1px solid var(--border);
  padding: 6px 16px; border-radius: 999px;
}
.step.done { background: #e7f8f3; color: var(--teal-dark); border-color: #bfe9e2; }
.step.current { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ---------- Forms ---------- */
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; font-size: 14px; }
.field input, .field select {
  width: 100%; padding: 12px 14px;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-size: 15px; font-family: inherit;
  background: #fbfcff; color: var(--text);
}
.field input:focus, .field select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(27, 99, 224, 0.12); background: #fff; }
.field .hint { font-size: 12px; color: var(--muted); }
.form-row { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 720px) { .form-row { grid-template-columns: 1fr 1fr; } }

/* Payment method picker (visual/demo only — no data leaves this form) */
.pay-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 18px; }
.pay-method {
  display: flex; align-items: center; gap: 10px;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  padding: 12px 14px; background: #fbfcff; cursor: pointer; font-weight: 700;
}
.pay-method.selected { border-color: var(--teal); background: #f0fdfb; box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.12); }
.pay-method .brand-tag {
  font-weight: 800; font-size: 13px; letter-spacing: 0.5px;
  background: var(--navy); color: #fff; border-radius: 6px; padding: 3px 10px;
}
.pay-method .brand-tag.visa { background: #1434cb; }
.soon-tag { font-size: 11px; font-weight: 700; color: var(--teal-dark); background: #e7f8f3; border-radius: 999px; padding: 2px 10px; margin-inline-start: auto; }

/* ---------- Summary box ---------- */
.summary {
  background: #f8fafd; border: 1px dashed var(--border);
  border-radius: var(--radius-sm); padding: 18px; margin-bottom: 22px;
}
.summary dl { margin: 0; }
.summary .row { display: flex; justify-content: space-between; padding: 5px 0; font-size: 15px; }
.summary .row.total { font-weight: 800; font-size: 19px; color: var(--navy); border-top: 1px solid var(--border); margin-top: 6px; padding-top: 10px; }

/* ---------- Activation code ---------- */
.code-box {
  background: linear-gradient(135deg, var(--navy), var(--navy-2) 70%, #1e3a8a);
  color: #fff;
  border-radius: var(--radius);
  padding: 28px 20px; text-align: center;
  margin: 20px 0;
  box-shadow: var(--shadow);
}
.code-box .code {
  font-family: Consolas, "Courier New", monospace;
  font-size: clamp(20px, 5vw, 32px);
  font-weight: 800; letter-spacing: 2px;
  direction: ltr;
  background: rgba(255, 255, 255, 0.08);
  border: 1px dashed rgba(255, 255, 255, 0.35);
  border-radius: var(--radius-sm);
  padding: 14px 10px; margin: 12px 0;
  user-select: all;
}
.code-box .meta { color: #c7d2fe; font-size: 14px; }

/* ---------- Admin distinction (same identity, clearly staff-only) ---------- */
body.admin .section { padding-top: 0; }
.admin-band {
  background: linear-gradient(135deg, var(--navy), var(--navy-2) 70%, #1e3a8a);
  color: #fff; padding: 30px 0 26px; margin-bottom: 26px;
}
.admin-band h2 { margin: 0 0 4px; font-size: clamp(20px, 3vw, 27px); }
.admin-band p { margin: 0; color: #c7d2fe; }
.admin-band .badge-admin { margin-bottom: 10px; background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.3); }

/* ---------- Alerts ---------- */
.alert { border-radius: var(--radius-sm); padding: 12px 18px; margin-bottom: 16px; font-size: 14px; }
.alert-info { background: #eaf1fe; color: var(--blue-dark); border: 1px solid #c4d8f8; }
.alert-warn { background: #fffbeb; color: #b45309; border: 1px solid #fde68a; }
.alert-error { background: #fef2f2; color: var(--danger); border: 1px solid #fecaca; }
.alert-ok { background: #e7f8f3; color: var(--teal-dark); border: 1px solid #bfe9e2; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data th, table.data td { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: right; }
table.data th { background: #f6f8fc; font-size: 13px; color: var(--muted); }
.mono { font-family: Consolas, monospace; direction: ltr; display: inline-block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #94a3b8; padding: 28px 0; margin-top: 44px; font-size: 14px; }
.site-footer .container { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.site-footer a { color: #c7d2fe; text-decoration: none; }

/* ---------- Spinner ---------- */
.spinner {
  display: inline-block; width: 18px; height: 18px; vertical-align: -3px;
  border: 3px solid rgba(255, 255, 255, 0.4); border-top-color: #fff;
  border-radius: 50%; animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Responsive header ---------- */
@media (max-width: 860px) {
  .site-header .bar { flex-wrap: wrap; }
  .nav { order: 3; width: 100%; margin-inline-start: 0; }
  .nav a { font-size: 14px; padding: 7px 10px; }
  .header-actions { margin-inline-start: auto; }
}

/* ---- Landing contact form (manual sales flow) ---- */
.lead-card { max-width: 760px; margin: 0 auto; }
@media (min-width: 640px) { .lead-card .form-row { grid-template-columns: 1fr 1fr; } }
.lead-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lead-card .field label { color: #0a1633; }
.lead-card .hint { color: #5b6b82; }
.lead-card .hint a { color: #0e9384; font-weight: 700; }

/* free trial + download (landing) */
.trial-card { max-width: 760px; }
.trial-steps { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 10px; }
.trial-steps li { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; color: #0a1633; }
.trial-result { text-align: center; margin-top: 16px; padding: 16px; border: 2px dashed #14b8a6; border-radius: 14px; color: #0a1633; }
.trial-code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 26px; font-weight: 800; letter-spacing: 2px; margin: 10px 0 14px; user-select: all; }
.trial-warn { display: block !important; background: #fff7e0; border: 1px solid #f0c75e; border-radius: 12px; padding: 10px 14px; font-size: 14px; line-height: 1.8; }
