/* ==========================================================================
   Arbarak website - 2026 theme
   Loaded AFTER site.css. site.css keeps every component rule the pages rely on
   (forms, pricing, checkout, language switch); this file changes the look
   (floating menu pill, dark heroes, rounder cards, light footer) and adds the
   new home-page sections (classes starting with "h-").
   ========================================================================== */

:root {
  --night: #0e1624;          /* hero, dark bands */
  --night-2: #16223a;
  --teal: #0e7490;           /* brand */
  --teal-ink: #0a5c73;
  --teal-glow: #22a3c3;      /* teal readable on night */
  --teal-wash: #e3f2f6;
  --paper: #ffffff;
  --mist: #f5f7f9;           /* light sections */
  --rule: #e4e8ee;
  --r-card: 18px;
  --r-panel: 26px;
  /* one family everywhere: small labels use Manrope with tabular figures, not a typewriter face */
  --mono: 'Manrope', -apple-system, 'Segoe UI', sans-serif;
}
html[dir="rtl"] { --mono: 'IBM Plex Sans Arabic', -apple-system, 'Segoe UI', sans-serif; }
.plan .p-tag { text-transform: none; letter-spacing: 0; font-weight: 800; }
.plan .p-seats, .ledger-glimpse { font-variant-numeric: tabular-nums; }

body { background: var(--paper); }

h1, h2, h3 { letter-spacing: -0.03em; }
h1, h2 { font-weight: 800; }

/* Small section labels: quiet, sentence case, no rule before them */
.eyebrow {
  font-family: var(--sans);
  text-transform: none;
  letter-spacing: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--teal);
}
.eyebrow::before { display: none; }

/* ---------------- Header: floating pill ---------------- */
header.site {
  position: sticky;
  top: 0;
  height: 0;                       /* takes no room: the first section slides under it */
  background: none;
  border: 0;
  backdrop-filter: none;
  z-index: 50;
}
header.site > .wrap.nav {
  position: relative;
  top: 14px;                       /* offset without a margin, so no white strip above the hero */
  max-width: 1080px;
  height: 60px;
  margin: 0 auto;
  padding: 0 10px 0 22px;
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(14, 22, 36, 0.08);
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(14, 22, 36, 0.16);
}
header.site .logo { font-size: 18px; }
header.site .logo .tag { display: none; }
nav.links { gap: 26px; }
nav.links a { font-size: 14px; font-weight: 600; }
nav.links a[aria-current="page"] { color: var(--teal); }

.btn { border-radius: 999px; font-weight: 700; }
.btn-lg { padding: 14px 26px; }
header.site .btn { padding: 10px 18px; font-size: 14px; }
header.site .btn-text {
  border: 1px solid var(--rule);
  padding: 9px 16px;
}
header.site .btn-text:hover { border-color: var(--teal); color: var(--teal-ink); }

.lang-switch { font-family: var(--sans); font-size: 12.5px; font-weight: 800; }
.lang-switch .lang-current {
  padding: 7px 11px;
  border-radius: 999px;
  background: var(--mist);
  color: var(--ink);
}
.lang-switch.open .lang-current { background: var(--teal); color: #fff; }
.lang-switch .lang-menu { border-radius: 14px; }

/* ---------------- Page heroes: dark ---------------- */
.hero,
.hero.center {
  background:
    radial-gradient(760px 460px at 88% 8%, rgba(34, 163, 195, 0.22), transparent 62%),
    radial-gradient(620px 420px at 6% 96%, rgba(14, 116, 144, 0.28), transparent 64%),
    var(--night);
  color: var(--on-dark);
  border-bottom: 0;
  padding-top: 150px !important;   /* room for the floating menu (pages set inline padding) */
  padding-bottom: 104px !important;
  isolation: isolate;
}
/* the brand star, oversized and faint, behind every hero */
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset-inline-end: -140px;
  top: 40px;
  width: 560px;
  height: 560px;
  background: 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='%2322a3c3' stroke-width='0.5'/%3E%3C/svg%3E") no-repeat center / contain;
  opacity: 0.22;
  pointer-events: none;
}
/* soft curved lower edge */
.hero::after {
  content: "";
  position: absolute;
  left: -5%;
  right: -5%;
  bottom: -1px;
  height: 56px;
  background: var(--paper);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  pointer-events: none;
}
.hero h1 { color: #fff; }
.hero h1 .accent-text { color: var(--teal-glow); }
.hero .lede { color: #b9c4d3; }
.hero .eyebrow { color: var(--teal-glow); }
.hero .btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.32);
}
.hero .btn-ghost:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, 0.06); }
.hero .trust-badge {
  font-family: var(--sans);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: #d5dde8;
}
.hero .trust-badge svg { color: var(--teal-glow); }
.hero .fine { color: #8fa0b5; }

/* ---------------- Sections & cards ---------------- */
section.soft { background: var(--mist); }
.section-head h2 { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.08; }
.section-head p { font-size: 16.5px; }

.pillar, .module, .plan, .value-item, .honesty-panel, .compare-grid, .trust-strip {
  border-radius: var(--r-card);
}
.pillar { border-color: var(--rule); }
.pillar::before { display: none; }
.pillar:hover { transform: none; box-shadow: 0 1px 0 var(--rule); }
.pillar .n { font-family: var(--sans); font-size: 13px; font-weight: 700; color: var(--teal); }
.trust-badge { font-family: var(--sans); }
.compare-col .cc-label { font-family: var(--sans); text-transform: none; letter-spacing: 0; font-size: 14px; }
.trust-item .k { letter-spacing: -0.03em; }

/* ---------------- Call-to-action band: dark rounded block ---------------- */
section.cta-band {
  background: transparent;
  padding: 24px 0 96px;
}
section.cta-band > .wrap {
  background:
    radial-gradient(520px 300px at 92% 10%, rgba(34, 163, 195, 0.25), transparent 65%),
    var(--night);
  border-radius: var(--r-panel);
  padding: 64px 56px;
}
.cta-band .eyebrow { color: var(--teal-glow); }
.cta-band h2 { color: #fff; }
.cta-band .btn-ghost {
  background: #fff !important;
  color: var(--ink) !important;
  border-color: #fff !important;
}

/* ---------------- Footer: light ---------------- */
footer.site {
  background: var(--paper);
  color: var(--ink-dim);
  border-top: 1px solid var(--rule);
  padding: 64px 0 32px;
}
footer.site .logo { color: var(--ink); }
.foot-brand p { color: var(--ink-dim); }
.foot-col h4 {
  font-family: var(--sans);
  text-transform: none;
  letter-spacing: 0;
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
}
.foot-col a { color: var(--ink-dim); }
.foot-col a:hover { color: var(--teal); }
.foot-bottom {
  font-family: var(--sans);
  border-top: 1px solid var(--rule);
  color: var(--ink-faint);
}

/* ---------------- Sign-in style pages ---------------- */
.auth-shell {
  background:
    radial-gradient(680px 420px at 50% 6%, var(--teal-wash), transparent 66%),
    var(--mist);
}
.auth-main { background: transparent; }
.auth-card { border-radius: 22px; border-color: var(--rule); }
.field input { border-radius: 12px; }

/* ==========================================================================
   Home page sections (new markup)
   ========================================================================== */

/* Hero ------------------------------------------------------------------- */
.h-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  padding: 148px 0 0;
  background:
    radial-gradient(820px 520px at 84% 12%, rgba(34, 163, 195, 0.24), transparent 62%),
    radial-gradient(700px 460px at 4% 100%, rgba(14, 116, 144, 0.30), transparent 64%),
    var(--night);
}
.h-hero::before {               /* brand star, very large and faint */
  content: "";
  position: absolute;
  z-index: -1;
  inset-inline-start: -220px;
  bottom: -240px;
  width: 720px;
  height: 720px;
  background: 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='%2322a3c3' stroke-width='0.45'/%3E%3C/svg%3E") no-repeat center / contain;
  opacity: 0.18;
}
.h-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 56px;
  align-items: center;
}
.h-hero h1 {
  color: #fff;
  font-size: clamp(38px, 4.6vw, 62px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  margin: 0 0 22px;
}
.h-hero .h-lede {
  color: #b9c4d3;
  font-size: 18px;
  font-weight: 500;
  max-width: 46ch;
  margin-bottom: 30px;
}
.h-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.h-hero .btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.34);
}
.h-hero .btn-ghost:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, 0.06); }
.h-checks {
  display: flex; flex-wrap: wrap; gap: 8px 22px;
  list-style: none; margin: 0; padding: 0;
  color: #cbd5e1; font-size: 14px; font-weight: 600;
}
.h-checks li { display: inline-flex; align-items: center; gap: 8px; }
.h-checks svg { width: 16px; height: 16px; color: var(--teal-glow); flex: none; }

/* The app window ---------------------------------------------------------- */
.h-window {
  background: #fff;
  border-radius: 18px;
  padding: 10px;
  box-shadow: 0 40px 80px rgba(3, 8, 18, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.08);
  color: var(--ink);
}
.h-window-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 4px 6px 10px;
}
.h-window-bar i { width: 10px; height: 10px; border-radius: 50%; background: #e4e8ee; }
.h-window-bar i:nth-child(1) { background: #f0a39a; }
.h-window-bar i:nth-child(2) { background: #f3cf7a; }
.h-window-bar i:nth-child(3) { background: #9fd8a8; }
.h-window-bar .h-url {
  margin-inline-start: 10px;
  font-size: 12px; font-weight: 600; color: var(--ink-faint);
  background: var(--mist); border-radius: 999px; padding: 4px 12px;
}
.h-app {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  border: 1px solid var(--rule);
  border-radius: 12px;
  overflow: hidden;
  font-size: 13px;
}
.h-app-side { background: var(--mist); padding: 18px 16px; border-inline-end: 1px solid var(--rule); }
.h-app-main { padding: 18px 16px; }
.h-app-title { font-weight: 800; font-size: 13.5px; margin-bottom: 2px; }
.h-app-sub { color: var(--ink-faint); font-size: 12px; font-weight: 600; margin-bottom: 14px; }
.h-kpi { background: #fff; border: 1px solid var(--rule); border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; }
.h-kpi span { display: block; color: var(--ink-dim); font-size: 11.5px; font-weight: 600; }
.h-kpi b { font-size: 17px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.h-kpi.is-due b { color: var(--teal-ink); }
.h-decl { list-style: none; margin: 0; padding: 0; }
.h-decl li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--rule);
}
.h-decl li:last-child { border-bottom: 0; }
.h-decl .what { font-weight: 700; }
.h-decl .when { grid-column: 1; color: var(--ink-faint); font-size: 12px; font-weight: 600; }
.h-decl .st {
  grid-row: 1 / span 2; grid-column: 2; align-self: center;
  font-size: 11.5px; font-weight: 800; border-radius: 999px; padding: 4px 10px; white-space: nowrap;
}
.st.done { background: #e6f4ea; color: #1f6b35; }
.st.ready { background: var(--teal-wash); color: var(--teal-ink); }
.st.check { background: #fbf0dc; color: #8a5a12; }
.h-window-note {
  margin: 14px auto 0; width: fit-content;
  font-size: 12.5px; font-weight: 600; color: #a7b4c6;
}

/* Figures under the hero --------------------------------------------------- */
.h-figures {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 64px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.h-figures div { padding: 26px 22px 34px; text-align: center; }
.h-figures div + div { border-inline-start: 1px solid rgba(255, 255, 255, 0.1); }
.h-figures b { display: block; font-size: 30px; font-weight: 800; letter-spacing: -0.03em; color: #fff; }
.h-figures span { display: block; margin-top: 4px; color: #9fb0c4; font-size: 13.5px; font-weight: 600; }
.h-curve { display: block; width: 100%; height: 64px; margin-top: -1px; }

/* Files it prepares -------------------------------------------------------- */
.h-files { padding: 40px 0 56px; text-align: center; border-bottom: 1px solid var(--rule); }
.h-files p { color: var(--ink-dim); font-size: 14px; font-weight: 600; margin-bottom: 18px; }
.h-files ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 40px;
}
.h-files li { font-size: 18px; font-weight: 800; letter-spacing: -0.02em; color: #2b3647; }

/* Steps -------------------------------------------------------------------- */
.h-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.h-step {
  background: #fff; border: 1px solid var(--rule); border-radius: var(--r-card);
  padding: 28px 26px 30px;
}
.h-step .num { color: var(--teal); font-size: 14px; font-weight: 800; }
.h-step h3 { font-size: 19px; margin: 12px 0 10px; }
.h-step p { color: var(--ink-dim); font-size: 14.5px; font-weight: 500; }

/* Bento -------------------------------------------------------------------- */
.h-head-split {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 32px;
  margin-bottom: 40px;
}
.h-head-split h2 { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.06; max-width: 15ch; }
.h-head-split p { color: var(--ink-dim); font-weight: 500; max-width: 38ch; }
.h-bento {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 18px;
}
.h-tile {
  background: #fff; border: 1px solid var(--rule); border-radius: var(--r-card);
  padding: 28px 26px; display: flex; flex-direction: column; gap: 12px;
}
.h-tile h3 { font-size: 19px; display: flex; gap: 10px; align-items: flex-start; }
.h-tile h3 svg { width: 22px; height: 22px; flex: none; color: var(--teal); margin-top: 1px; }
.h-tile p { color: var(--ink-dim); font-size: 14.5px; font-weight: 500; }
.h-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 10px; }
.h-chips span {
  font-size: 12.5px; font-weight: 700; color: var(--ink-dim);
  background: var(--mist); border: 1px solid var(--rule); border-radius: 999px; padding: 5px 12px;
}
.h-tile.is-lead {
  grid-row: 1 / span 2;
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
  padding: 34px 30px;
}
.h-tile.is-lead h3 { color: #fff; font-size: clamp(24px, 2.4vw, 30px); line-height: 1.12; }
.h-tile.is-lead h3 svg { color: #fff; width: 26px; height: 26px; margin-top: 4px; }
.h-tile.is-lead p { color: #d6eef4; font-size: 15.5px; }
.h-tile.is-lead .h-chips span { background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.22); color: #fff; }
.h-tile.is-lead .btn { background: #fff; color: var(--teal-ink); align-self: flex-start; margin-top: 14px; }
.h-tile.is-wide { grid-column: 2 / span 2; }

/* Modules: dark panel + list ---------------------------------------------- */
.h-modules {
  display: grid; grid-template-columns: 1.35fr 1fr;
  border: 1px solid var(--rule); border-radius: var(--r-panel); overflow: hidden; background: #fff;
}
.h-slip {
  background:
    radial-gradient(520px 320px at 20% 0%, rgba(34, 163, 195, 0.2), transparent 65%),
    var(--night);
  padding: 40px;
  display: flex; align-items: center; justify-content: center;
}
.h-slip-card {
  width: 100%; max-width: 470px; background: #fff; border-radius: 14px; padding: 20px 22px;
  box-shadow: 0 30px 60px rgba(3, 8, 18, 0.5); font-size: 13px;
}
.h-slip-head { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--rule); margin-bottom: 6px; }
.h-slip-head b { font-size: 14px; }
.h-slip-head span { color: var(--ink-faint); font-weight: 600; font-size: 12px; }
.h-slip-row { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--rule); align-items: baseline; }
.h-slip-row .fr { font-weight: 600; }
.h-slip-row .ar { font-family: 'IBM Plex Sans Arabic', sans-serif; direction: rtl; text-align: end; color: var(--ink-dim); font-weight: 500; }
.h-slip-row .amt { font-weight: 800; font-variant-numeric: tabular-nums; }
.h-slip-row.total { border-bottom: 0; padding-top: 12px; }
.h-slip-row.total .amt { color: var(--teal-ink); font-size: 15px; }
.h-mod-list { list-style: none; margin: 0; padding: 8px 0; }
.h-mod-list li { padding: 16px 28px; border-bottom: 1px solid var(--rule); }
.h-mod-list li:last-child { border-bottom: 0; }
.h-mod-list b { display: block; font-size: 15.5px; }
.h-mod-list span { color: var(--ink-dim); font-size: 13.5px; font-weight: 500; }

/* Contact card above the footer ------------------------------------------- */
.h-contact {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  background: var(--mist); border: 1px solid var(--rule); border-radius: var(--r-card);
  padding: 22px 26px; margin-bottom: 32px;
}
.h-contact b { display: block; font-size: 15.5px; color: var(--ink); }
.h-contact span { font-size: 14px; color: var(--ink-dim); font-weight: 500; }

/* ---------------- Responsive ---------------- */
@media (max-width: 980px) {
  header.site > .wrap.nav { top: 10px; margin: 0 12px; padding: 0 8px 0 18px; }
  .menu-toggle { order: 3; border-radius: 999px; margin-inline-start: 6px; }
  nav.links {
    top: 68px; left: 0; right: 0;
    border-radius: 22px; border: 1px solid transparent;
    padding: 0 22px;
    box-shadow: none;
  }
  nav.links.open {
    padding: 8px 22px;
    border-color: var(--rule);
    box-shadow: 0 18px 40px rgba(14, 22, 36, 0.22);
  }
  .h-hero { padding-top: 120px; }
  .h-hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .h-figures { grid-template-columns: repeat(2, 1fr); }
  .h-figures div:nth-child(3) { border-inline-start: 0; }
  .h-figures div:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, 0.1); }
  .h-steps { grid-template-columns: 1fr; }
  .h-bento { grid-template-columns: 1fr; }
  .h-tile.is-lead, .h-tile.is-wide { grid-row: auto; grid-column: auto; }
  .h-head-split { flex-direction: column; align-items: flex-start; }
  .h-modules { grid-template-columns: 1fr; }
  section.cta-band > .wrap { margin: 0 16px; padding: 48px 28px; }
}
@media (max-width: 560px) {
  .h-app { grid-template-columns: 1fr; }
  .h-app-side { border-inline-end: 0; border-bottom: 1px solid var(--rule); }
  .h-slip { padding: 22px 14px; }
  .h-slip-row { grid-template-columns: 1fr auto; }
  .h-slip-row .ar { display: none; }
  .h-files li { font-size: 16px; }
  .h-figures b { font-size: 22px; }
  .h-figures div { padding: 20px 12px 24px; }
  .hero, .hero.center { padding-top: 124px !important; }
}

/* ---------------- Arabic ---------------- */
html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3,
html[dir="rtl"] .h-files li, html[dir="rtl"] .h-figures b { letter-spacing: normal; }
html[dir="rtl"] .h-hero h1 { line-height: 1.25; }
/* the bilingual payslip keeps its printed layout (French left, Arabic right) on every page language */
.h-slip-card { direction: ltr; text-align: left; }

/* ---- brand star (2026-11-24): the mark is the outline star, no square ---- */
.logo .mark { width: 28px; height: 28px; }
