@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=IBM+Plex+Mono:wght@400;500;600&family=IBM+Plex+Sans+Arabic:wght@400;500;600;700&display=swap');

:root {
  --bg: #ffffff;
  --bg-soft: #f5f7f9;
  --bg-deep: #0e1624;
  --bg-deep-2: #141d2e;
  --ink: #0f1729;
  --ink-dim: #57616f;
  --ink-faint: #97a0ac;
  --on-dark: #eef1f5;
  --on-dark-dim: #97a3b5;
  --line: #e6e9ee;
  --line-strong: #d3d8e0;
  --accent: #0e7490;
  --accent-strong: #0a5c73;
  --accent-soft: #e3f2f6;
  --gold: #b8863b;
  --gold-soft: #faf1e0;
  --danger: #b3401f;
  --sans: 'Manrope', -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, Consolas, monospace;
  --wrap: 1180px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 41, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 23, 41, 0.08);
  --shadow-lg: 0 20px 48px rgba(15, 23, 41, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }
a { color: inherit; }
::selection { background: var(--accent-soft); color: var(--accent-strong); }

h1, h2, h3, h4 {
  font-family: var(--sans);
  font-weight: 800;
  line-height: 1.14;
  margin: 0;
  text-wrap: balance;
  color: var(--ink);
  letter-spacing: -0.02em;
}

p { margin: 0; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 28px;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-strong);
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.eyebrow::before {
  content: "";
  width: 20px;
  height: 2px;
  background: var(--gold);
  border-radius: 1px;
}

/* ---------------- Header ---------------- */
header.site {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--sans);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--ink);
}

.logo .mark {
  width: 26px;
  height: 26px;
  flex: none;
}

.logo .tag {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

nav.links {
  display: flex;
  align-items: center;
  gap: 32px;
}

nav.links a {
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-dim);
  transition: color 0.15s ease;
}

nav.links a:hover, nav.links a[aria-current="page"] { color: var(--ink); }

.nav-actions { display: flex; align-items: center; gap: 10px; }

.lang-switch {
  position: relative;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.lang-switch .lang-current {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px 8px;
  border-radius: 6px;
  border: none;
  background: none;
  color: var(--ink-faint);
  font: inherit;
  letter-spacing: inherit;
  cursor: pointer;
}

.lang-switch .lang-current:hover { color: var(--accent-strong); }

.lang-switch .lang-current svg { width: 9px; height: 9px; transition: transform 0.15s ease; }

.lang-switch.open .lang-current { color: var(--ink); background: var(--accent-soft); }

.lang-switch.open .lang-current svg { transform: rotate(180deg); }

.lang-switch .lang-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  inset-inline-end: 0;
  min-width: 76px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  padding: 4px;
  z-index: 60;
}

.lang-switch.open .lang-menu { display: block; }

.lang-switch .lang-menu a {
  display: block;
  padding: 6px 10px;
  border-radius: 6px;
  text-decoration: none;
  color: var(--ink-dim);
  font: inherit;
  letter-spacing: inherit;
}

.lang-switch .lang-menu a:hover { background: var(--bg-soft); color: var(--accent-strong); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 14.5px;
  padding: 12px 22px;
  border-radius: 8px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--accent-strong); box-shadow: var(--shadow-md); }

.btn-ghost {
  border-color: var(--line-strong);
  color: var(--ink);
  background: #fff;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-strong); }

.btn-text {
  color: var(--ink-dim);
  padding: 12px 6px;
}
.btn-text:hover { color: var(--ink); }

.btn-block { width: 100%; }
.btn-lg { padding: 14px 26px; font-size: 15.5px; }

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex: none;
  padding: 0;
}

.menu-toggle .bars { position: relative; width: 18px; height: 12px; }
.menu-toggle .bars i {
  position: absolute; left: 0; width: 18px; height: 2px; border-radius: 1px;
  background: var(--ink); transition: transform 0.2s ease, opacity 0.2s ease, top 0.2s ease;
}
.menu-toggle .bars i:nth-child(1) { top: 0; }
.menu-toggle .bars i:nth-child(2) { top: 5px; }
.menu-toggle .bars i:nth-child(3) { top: 10px; }
.menu-toggle[aria-expanded="true"] .bars i:nth-child(1) { top: 5px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bars i:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .bars i:nth-child(3) { top: 5px; transform: rotate(-45deg); }

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 84px;
  background:
    radial-gradient(720px 420px at 82% -10%, var(--accent-soft), transparent 60%),
    var(--bg);
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: 56px;
  align-items: start;
}

/* centered hero variant -- single column, everything centered */
.hero.center {
  text-align: center;
  background:
    radial-gradient(900px 420px at 50% -10%, var(--accent-soft), transparent 60%),
    var(--bg);
}
.hero.center .wrap { max-width: 760px; }
.hero.center .eyebrow { justify-content: center; }
.hero.center .lede { margin-left: auto; margin-right: auto; }
.hero.center .cta-row { justify-content: center; }

/* product showcase, its own section right after a centered hero */
.showcase { padding: 8px 0 92px; background: var(--bg); }
.showcase .wrap { max-width: 700px; }

.hero h1 {
  font-size: clamp(38px, 4.4vw, 58px);
  margin: 20px 0 22px;
}

.hero h1 .accent-text { color: var(--accent); }

.hero .lede {
  font-size: 18px;
  color: var(--ink-dim);
  max-width: 54ch;
  margin-bottom: 32px;
  font-weight: 500;
}

.hero .cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}

.hero .fine {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--ink-faint);
}

/* ledger glimpse panel */
.ledger-glimpse {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 22px 18px;
  font-family: var(--mono);
  font-size: 12.5px;
  box-shadow: var(--shadow-lg);
}

.ledger-glimpse .lg-head {
  display: flex;
  justify-content: space-between;
  color: var(--ink-faint);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 10.5px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.ledger-row {
  display: grid;
  grid-template-columns: 46px 1fr auto;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}

.ledger-row:last-child { border-bottom: none; }
.ledger-row .code { color: var(--gold); font-weight: 600; }
.ledger-row .label { color: var(--ink); font-family: var(--sans); font-size: 13px; font-weight: 600; }
.ledger-row .amt { color: var(--accent-strong); font-variant-numeric: tabular-nums; font-weight: 600; }
.ledger-row.pending .amt { color: var(--danger); }

.ledger-status {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--ink-faint);
}

.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; }
.dot.warn { background: var(--danger); }

/* ---------------- Sections ---------------- */
section { padding: 84px 0; }
section.tight { padding: 60px 0; }
section.soft { background: var(--bg-soft); }

.section-head {
  max-width: 640px;
  margin-bottom: 48px;
}

.section-head h2 {
  font-size: clamp(28px, 3vw, 38px);
  margin-top: 14px;
}

.section-head p {
  color: var(--ink-dim);
  font-size: 16.5px;
  margin-top: 14px;
  max-width: 60ch;
  font-weight: 500;
}

/* pillar grid */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.pillars.pillars-4 { grid-template-columns: repeat(4, 1fr); }

.pillar {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 32px 26px 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.pillar::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent);
}

.pillar:nth-child(3n+2)::before { background: var(--gold); }

.pillar:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.pillar-icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.pillar-icon svg { width: 24px; height: 24px; }

.pillar .n {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent-strong);
  font-weight: 600;
}

.pillar h3 { font-size: 19px; }
.pillar p { color: var(--ink-dim); font-size: 14.5px; font-weight: 500; }

/* trust / stat strip */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background:
    radial-gradient(480px 200px at 0% 0%, var(--accent-soft), transparent 65%),
    radial-gradient(480px 200px at 100% 100%, var(--gold-soft), transparent 65%),
    #fff;
}

.trust-item {
  padding: 30px 26px;
  border-inline-start: 1px solid var(--line);
}
.trust-item:first-child { border-inline-start: none; }

/* compact real-fact badges, sit directly under a hero's CTA row */
.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.trust-badges.center { justify-content: center; }

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-dim);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 13px 7px 11px;
}

.trust-badge svg { width: 14px; height: 14px; color: var(--accent-strong); flex: none; }

/* "most ERPs vs Arbarak" comparison */
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}

.compare-col { padding: 34px 32px; }
.compare-col.them { background: var(--bg-soft); }
.compare-col.us { background: #fff; border-inline-start: 1px solid var(--line); }

.compare-col .cc-label {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 22px;
  display: block;
}
.compare-col.them .cc-label { color: var(--ink-faint); }
.compare-col.us .cc-label { color: var(--accent-strong); }

.compare-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.compare-col li { display: flex; align-items: flex-start; gap: 11px; font-size: 15px; font-weight: 500; line-height: 1.5; }
.compare-col.them li { color: var(--ink-faint); }
.compare-col.us li { color: var(--ink); font-weight: 600; }

.compare-col li .mark {
  flex: none; width: 20px; height: 20px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; margin-top: 1px;
}
.compare-col.them li .mark { background: var(--line); color: var(--ink-faint); }
.compare-col.us li .mark { background: var(--accent); color: #fff; }
.compare-col.them li .mark svg, .compare-col.us li .mark svg { width: 12px; height: 12px; }

@media (max-width: 720px) {
  .compare-grid { grid-template-columns: 1fr; }
  .compare-col.us { border-inline-start: none; border-top: 1px solid var(--line); }
}

.trust-item .k {
  font-family: var(--sans);
  font-size: 30px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.trust-item .v {
  font-size: 13.5px;
  color: var(--ink-dim);
  margin-top: 6px;
  font-weight: 500;
}

/* module cards (features page) */
.modules {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.module {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 34px 32px;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
  box-shadow: var(--shadow-sm);
}

.module .mod-head { display: flex; flex-direction: column; gap: 8px; }

.mod-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  margin-bottom: 2px;
}

.mod-icon svg { width: 22px; height: 22px; }

.module .mod-head .code {
  font-family: var(--mono); color: var(--accent-strong); font-size: 12px; font-weight: 600;
  background: var(--accent-soft); display: inline-flex; padding: 3px 9px; border-radius: 5px; width: fit-content;
}
.module .mod-head h3 { font-size: 21px; }

.module ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 11px 24px;
}

.module li {
  font-size: 14.5px;
  color: var(--ink-dim);
  font-weight: 500;
  padding-inline-start: 20px;
  position: relative;
}

.module li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--accent);
}

/* pricing */
.plans {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.plan {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: var(--shadow-sm);
}

.plan.featured {
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
  position: relative;
}

.plan-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.plan-icon svg { width: 21px; height: 21px; }

.plan.featured .plan-icon { background: var(--accent-strong); color: #fff; }

.plan .p-name { font-family: var(--sans); font-size: 22px; font-weight: 800; }
.plan .p-seats { font-family: var(--mono); font-size: 12px; color: var(--ink-faint); margin-top: 2px; }
.plan .p-tag {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-strong);
  background: var(--accent-soft);
  padding: 4px 9px;
  border-radius: 5px;
  align-self: flex-start;
}

.plan ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.plan li {
  font-size: 13.5px;
  color: var(--ink-dim);
  font-weight: 500;
  padding-inline-start: 22px;
  position: relative;
}

.plan li::before {
  content: "✓";
  position: absolute;
  inset-inline-start: 0;
  color: var(--accent);
  font-weight: 700;
}

.plan li.new { color: var(--ink); font-weight: 700; }
.plan li.new::before { color: var(--gold); }

/* company / about */
.value-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.value-item {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px 26px 26px;
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.value-item::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent);
}

.value-item:nth-child(even)::before { background: var(--gold); }
.value-item:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.value-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  margin-bottom: 14px;
}

.value-icon svg { width: 21px; height: 21px; }

.value-item h3 { font-size: 18.5px; margin-bottom: 10px; }
.value-item p { color: var(--ink-dim); font-size: 14.5px; font-weight: 500; }
.value-item .vn {
  font-family: var(--mono); color: var(--accent-strong); font-size: 11.5px; font-weight: 600;
  display: block; margin-bottom: 10px; letter-spacing: 0.04em; text-transform: uppercase;
}

.honesty-panel {
  background: var(--gold-soft);
  border: 1px solid #e9d6ae;
  border-radius: 14px;
  padding: 26px 28px;
}

.honesty-panel .eyebrow { color: var(--gold); }
.honesty-panel .eyebrow::before { background: var(--gold); }
.honesty-panel p { color: var(--ink-dim); font-size: 14.5px; margin-bottom: 10px; font-weight: 500; }
.honesty-panel p:last-child { margin-bottom: 0; }

/* CTA band */
.cta-band {
  position: relative;
  overflow: hidden;
  background: var(--bg-deep);
  padding: 76px 0;
  text-align: center;
}

.cta-band .eyebrow { color: var(--gold); }
.cta-band .eyebrow::before { background: var(--gold); }
.cta-band h2 { font-size: clamp(26px, 3.4vw, 40px); margin-bottom: 18px; color: var(--on-dark); }
.cta-band p { color: var(--on-dark-dim); max-width: 50ch; margin: 0 auto 30px; font-weight: 500; }
.cta-band .cta-row { justify-content: center; }

/* footer */
footer.site {
  padding: 56px 0 40px;
  background: var(--bg-deep);
  color: var(--on-dark-dim);
}

footer.site .logo { color: var(--on-dark); }
footer.site .logo .tag { color: var(--on-dark-dim); }

.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 40px;
}

.foot-brand p { color: var(--on-dark-dim); font-size: 13.5px; max-width: 34ch; margin-top: 12px; }

.foot-col h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #66748c;
  font-weight: 600;
  margin-bottom: 14px;
}

.foot-col a {
  display: block;
  text-decoration: none;
  color: var(--on-dark-dim);
  font-size: 14px;
  margin-bottom: 10px;
  font-weight: 500;
}
.foot-col a:hover { color: var(--on-dark); }

.foot-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid rgba(238, 241, 245, 0.1);
  font-family: var(--mono);
  font-size: 12px;
  color: #66748c;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------------- Auth pages ---------------- */
.auth-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.auth-header {
  padding: 24px 0;
}

.auth-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.back-home {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-dim);
  text-decoration: none;
}
.back-home:hover { color: var(--ink); }
.back-home svg { width: 16px; height: 16px; }

.auth-main {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 20px 60px;
  background:
    radial-gradient(600px 360px at 50% 0%, var(--accent-soft), transparent 65%),
    var(--bg);
  overflow: hidden;
}

/* A faint, oversized version of the brand star sitting behind the card --
   the same identity that appears tiny in the header, at a scale that
   reads as an ambient watermark rather than a competing logo. */
.auth-main::before {
  content: "";
  position: absolute;
  inset-inline-end: -120px;
  bottom: -120px;
  width: 480px;
  height: 480px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpolygon points='37,20 26.47,22.68 32.02,32.02 22.68,26.47 20,37 17.32,26.47 7.98,32.02 13.53,22.68 3,20 13.53,17.32 7.98,7.98 17.32,13.53 20,3 22.68,13.53 32.02,7.98 26.47,17.32' fill='none' stroke='%230e7490' stroke-width='1.1'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.06;
  pointer-events: none;
}

.auth-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 40px 36px;
  box-shadow: var(--shadow-lg);
  animation: auth-rise 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes auth-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .auth-card { animation: none; }
}

.auth-card .eyebrow { margin-bottom: 14px; }
.auth-card h1 { font-size: 27px; margin-bottom: 8px; }
.auth-card .sub { color: var(--ink-dim); font-size: 14.5px; font-weight: 500; margin-bottom: 28px; }

.field { margin-bottom: 18px; }

.field label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 7px;
}

.field-hint {
  font-size: 12.5px;
  color: var(--ink-faint);
  margin-top: 6px;
  font-weight: 500;
}

.field input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  font-family: var(--sans);
  font-size: 14.5px;
  color: var(--ink);
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.field input::placeholder { color: var(--ink-faint); }

.field-row-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 7px;
}

.field-row-between label { margin-bottom: 0; }
.field-row-between a { font-size: 12.5px; font-weight: 600; color: var(--accent-strong); text-decoration: none; }
.field-row-between a:hover { text-decoration: underline; }

.auth-msg {
  border-radius: 9px;
  padding: 11px 13px;
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 18px;
  display: none;
}

.auth-msg.show { display: block; }
.auth-msg.error { background: #fbe9e4; color: var(--danger); }
.auth-msg.success { background: var(--accent-soft); color: var(--accent-strong); }

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0;
  color: var(--ink-faint);
  font-size: 12.5px;
  font-weight: 500;
}
.auth-divider::before, .auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.auth-foot {
  text-align: center;
  margin-top: 22px;
  font-size: 14px;
  color: var(--ink-dim);
  font-weight: 500;
}
.auth-foot a { color: var(--accent-strong); font-weight: 700; text-decoration: none; }
.auth-foot a:hover { text-decoration: underline; }

.spinner {
  width: 15px; height: 15px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: none;
}
.spinner.show { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------------- Scroll reveal ----------------
 * JS (site.js) adds .is-visible via IntersectionObserver as each element
 * enters the viewport. Elements render fully visible with no JS/motion
 * at all if reduced-motion is preferred or the class never lands. */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.is-visible { opacity: 1; transform: translateY(0); }

.reveal-group .reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal-group .reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal-group .reveal:nth-child(4) { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .pillars, .pillars.pillars-4 { grid-template-columns: 1fr; }
  .trust-strip { grid-template-columns: repeat(2, 1fr); }
  .trust-item:nth-child(3) { border-left: none; }
  .module { grid-template-columns: 1fr; }
  .module ul { grid-template-columns: 1fr; }
  .plans { grid-template-columns: repeat(2, 1fr); }
  .value-list { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: repeat(2, 1fr); }

  .menu-toggle { display: flex; }

  nav.links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    padding: 8px 28px 18px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }

  nav.links.open { max-height: 320px; }

  nav.links a {
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
    font-size: 15.5px;
  }
  nav.links a:last-child { border-bottom: none; }
}

@media (max-width: 560px) {
  .plans { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .trust-strip { grid-template-columns: 1fr; }
  .trust-item { border-inline-start: none; border-top: 1px solid var(--line); }
  .trust-item:first-child { border-top: none; }
  .auth-card { padding: 32px 24px; border-radius: 14px; }
  .logo .tag { display: none; }
  .nav-actions .btn { display: none; }
  .nav-actions { gap: 6px; }
  .lang-switch { font-size: 11px; }
  .lang-switch .lang-current { padding: 4px 6px; }
}

/* ---------------- RTL (Arabic) ----------------
 * Most layout (flex/grid ordering, justify-content, the module/plan bullet
 * offsets, trust-strip dividers) already mirrors automatically once
 * html[dir="rtl"] is set, because it's built on flex/grid main-axis order
 * and logical (border-inline-start / inset-inline-start) properties rather
 * than hardcoded left/right. What's left here is what direction alone
 * can't fix: swapping in an Arabic-shaped typeface and killing the
 * Latin-script letter-spacing/tracking that breaks Arabic joining, plus
 * flipping the one directional icon (the back-arrow). */
html[dir="rtl"] {
  --sans: 'IBM Plex Sans Arabic', -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Sans Arabic', -apple-system, 'Segoe UI', sans-serif;
}

html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] h4,
html[dir="rtl"] .eyebrow,
html[dir="rtl"] .logo,
html[dir="rtl"] .lang-switch,
html[dir="rtl"] .pillar .n,
html[dir="rtl"] .value-item .vn,
html[dir="rtl"] .foot-col h4,
html[dir="rtl"] .plan .p-tag,
html[dir="rtl"] .plan .p-seats,
html[dir="rtl"] .trust-item .k,
html[dir="rtl"] .lg-head,
html[dir="rtl"] .hero .fine {
  letter-spacing: normal;
}

html[dir="rtl"] .back-home svg { transform: scaleX(-1); }
