/* Eqdom company page */
:root {
  --green: #0b6e4f;      /* the till's ENCAISSER green */
  --deep: #0e3b30;       /* dark tile green */
  --ink: #1c2530;
  --paper: #f3f6f5;
  --line: #d5deda;
  --ochre: #c9962b;      /* hazard tape, price tags */
  --muted: #56636c;
  --white: #ffffff;
  --font: "Archivo", system-ui, "Segoe UI", Roboto, Arial, sans-serif;
  --font-ar: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
[dir="rtl"] body { font-family: var(--font-ar); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); }
:focus-visible { outline: 3px solid var(--ochre); outline-offset: 2px; }
.hidden { display: none !important; }

h1, h2 {
  font-family: var(--font);
  font-stretch: 112%;
  font-weight: 760;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0;
}
[dir="rtl"] h1, [dir="rtl"] h2 { font-family: var(--font-ar); font-weight: 700; letter-spacing: 0; line-height: 1.25; }
h1 { font-size: clamp(40px, 5.6vw, 76px); }
h2 { font-size: clamp(30px, 3.4vw, 46px); }

/* ---------- buttons */
.btn-main, .btn-line, .btn-ghost {
  display: inline-flex; align-items: center; justify-content: center;
  font: 650 17px/1 var(--font); font-stretch: 105%;
  padding: 17px 26px; border-radius: 6px; text-decoration: none; cursor: pointer;
  border: 2px solid transparent;
}
[dir="rtl"] .btn-main, [dir="rtl"] .btn-line, [dir="rtl"] .btn-ghost { font-family: var(--font-ar); font-weight: 600; }
.btn-main { background: var(--green); color: var(--white); }
.btn-main:hover { background: #095c42; }
.btn-main.wide { width: 100%; }
.btn-main.light { background: var(--white); color: var(--deep); }
.btn-main.light:hover { background: var(--paper); }
.btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: var(--paper); }
.btn-ghost { padding: 11px 18px; border-color: var(--line); color: var(--ink); background: var(--white); font-size: 15px; }
.btn-ghost:hover { border-color: var(--ink); }

/* ---------- header */
.top {
  display: flex; align-items: center; gap: 24px;
  padding: 18px var(--gutter);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: relative; z-index: 5;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo img { border-radius: 8px; }
.logo span { font: 800 24px/1 var(--font); font-stretch: 118%; letter-spacing: -0.03em; }
.nav { display: flex; gap: 28px; margin-inline-start: 24px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; }
.nav a:hover { color: var(--green); }
.top-actions { margin-inline-start: auto; display: flex; gap: 10px; align-items: center; }
.lang { background: none; border: none; color: var(--ink); font: 500 15px var(--font-ar); cursor: pointer; padding: 8px 10px; }
[dir="rtl"] .lang { font-family: var(--font); }
@media (max-width: 860px) { .nav { display: none; } }

/* ---------- hero: text on paper | photo with receipt and login */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  min-height: calc(100vh - 77px);
  min-height: calc(100svh - 77px);
}
.hero-text {
  padding: clamp(40px, 7vw, 110px) var(--gutter) 64px;
  display: flex; flex-direction: column; justify-content: center; gap: 26px;
  max-width: 680px;
}
.lead { font-size: clamp(18px, 1.5vw, 21px); color: var(--muted); max-width: 34em; margin: 0; }
.ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.fine { margin: 0; font-size: 14px; color: var(--muted); }

.hero-photo { position: relative; background: var(--deep); overflow: hidden; min-height: 720px; }
.hero-photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 30%; }
.hero-photo::after { /* keeps the login card readable on any photo */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(14, 59, 48, 0) 35%, rgba(14, 59, 48, .55) 100%);
  pointer-events: none;
}
[dir="rtl"] .hero-photo::after { background: linear-gradient(270deg, rgba(14, 59, 48, 0) 35%, rgba(14, 59, 48, .55) 100%); }

/* the thermal receipt: the page's one loud element */
.receipt {
  position: absolute; z-index: 2;
  inset-inline-start: clamp(16px, 3vw, 40px); bottom: -14px;
  width: 270px; margin: 0;
  background: #fffdf7; color: #222;
  font: 400 12.5px/1.45 "Courier New", Courier, monospace;
  padding: 18px 18px 30px;
  box-shadow: 0 18px 40px rgba(6, 26, 20, .45);
  transform: rotate(-3deg);
  transform-origin: bottom left;
  /* torn top edge */
  -webkit-mask: linear-gradient(#000, #000) 0 10px / 100% 100% no-repeat, radial-gradient(circle 6px at 8px 0, transparent 5.5px, #000 6px) 0 0 / 16px 10px repeat-x;
  mask: linear-gradient(#000, #000) 0 10px / 100% 100% no-repeat, radial-gradient(circle 6px at 8px 0, transparent 5.5px, #000 6px) 0 0 / 16px 10px repeat-x;
}
.receipt::before { /* ochre tape holding it */
  content: ""; position: absolute; top: 14px; inset-inline-end: -18px; width: 86px; height: 22px;
  background: repeating-linear-gradient(-45deg, var(--ochre) 0 10px, #1c2530 10px 20px);
  transform: rotate(32deg); opacity: .92;
}
.r-head { text-align: center; margin-top: 8px; }
.r-head strong { display: block; font-size: 15px; letter-spacing: .04em; }
.r-meta { display: grid; grid-template-columns: 1fr auto; border-top: 1px dashed #777; border-bottom: 1px dashed #777; margin: 8px 0; padding: 6px 0; }
.r-meta span:last-child { grid-column: 1 / -1; }
.receipt table { width: 100%; border-collapse: collapse; }
.receipt td { padding: 2px 0; vertical-align: top; }
.receipt td:last-child { text-align: end; white-space: nowrap; }
.receipt small { color: #555; font-size: 11.5px; }
.r-sub, .r-total { display: flex; justify-content: space-between; }
.r-sub:first-of-type { border-top: 1px dashed #777; margin-top: 6px; padding-top: 6px; }
.r-total { font-weight: 700; font-size: 16px; margin-top: 4px; }
.r-foot { text-align: center; margin-top: 12px; color: #555; }
/* the receipt stays a French ticket; it moves to the right-hand side of the photo in Arabic */
[dir="rtl"] .receipt { direction: ltr; left: auto; right: clamp(16px, 3vw, 40px); transform: rotate(3deg); transform-origin: bottom right; }
[dir="rtl"] .receipt::before { right: auto; left: -18px; transform: rotate(-32deg); }

/* client login */
.login {
  position: absolute; z-index: 3;
  bottom: clamp(24px, 5vh, 56px); inset-inline-end: clamp(16px, 3vw, 48px); /* low, so the scanner in his hand stays visible */
  width: min(360px, calc(100% - 32px));
  background: var(--white);
  border-radius: 10px;
  padding: 26px 26px 20px;
  box-shadow: 0 24px 60px rgba(6, 26, 20, .35);
}
.login h2 { font-size: 24px; font-stretch: 108%; margin-bottom: 14px; }
.login form { display: flex; flex-direction: column; gap: 6px; }
.login label { font-size: 14px; font-weight: 600; margin-top: 8px; }
.login input {
  font: 400 16px var(--font); padding: 12px 14px; border: 1px solid #b9c5c0; border-radius: 6px; background: var(--white); color: var(--ink);
}
.login input:focus { outline: 2px solid var(--green); outline-offset: -1px; border-color: var(--green); }
.login .btn-main { margin-top: 10px; }
.login-err { color: #b3261e; font-size: 14px; font-weight: 600; margin: 4px 0 0; min-height: 1em; }
.login-hint { font-size: 13px; color: var(--muted); margin: 8px 0 0; }
.login-link { font-size: 14px; margin-top: 2px; }
.login-new { margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: 15px; }
#login-connected p { margin: 0 0 14px; }

/* ---------- sections */
section h2 { max-width: 16em; }
.section-lead { font-size: 19px; color: var(--muted); margin: 14px 0 0; max-width: 36em; }

.atelier {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 80px);
  padding: clamp(64px, 9vw, 130px) var(--gutter);
  align-items: start;
}
.rules { margin: 44px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 34px 44px; }
.rules div { border-top: 3px solid var(--ink); padding-top: 14px; }
.rules dt { font-weight: 700; font-size: 19px; line-height: 1.3; font-stretch: 104%; }
.rules dd { margin: 8px 0 0; color: var(--muted); font-size: 16px; }
.atelier-photo { margin: 0; position: sticky; top: 24px; }
.atelier-photo img, .start-photo img, .hardware-photo img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 4px; background: var(--deep);
}
.atelier-photo figcaption { font-size: 14px; color: var(--muted); margin-top: 10px; max-width: 32em; }

.start {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px);
  padding: clamp(64px, 9vw, 130px) var(--gutter);
  background: var(--deep); color: var(--paper);
  align-items: center;
}
.start-photo { margin: 0; }
.start-photo img { aspect-ratio: 1 / 1; }
.steps { list-style: none; margin: 40px 0 0; padding: 0; counter-reset: s; }
.steps li {
  counter-increment: s; display: grid; grid-template-columns: 64px 1fr; column-gap: 18px;
  padding: 22px 0; border-top: 1px solid rgba(243, 246, 245, .2);
}
.steps li::before {
  content: counter(s); grid-row: span 2;
  font: 760 44px/1 var(--font); font-stretch: 120%; color: var(--ochre);
}
.steps strong { font-size: 21px; font-stretch: 104%; }
.steps span { color: rgba(243, 246, 245, .78); }

.hardware {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 80px);
  padding: clamp(64px, 9vw, 130px) var(--gutter);
  align-items: center;
}
.hardware-text > p { font-size: 19px; color: var(--muted); max-width: 34em; margin: 16px 0 0; }
.hardware-photo { margin: 0; }
.hardware-photo img { aspect-ratio: 5 / 4; }
.kit { list-style: none; margin: 36px 0 0; padding: 0; }
.kit li { display: grid; grid-template-columns: minmax(180px, 2fr) 3fr; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.kit li:last-child { border-bottom: 1px solid var(--line); }
.kit strong { font-weight: 700; }
.kit span { color: var(--muted); }

.trial {
  margin: 0 var(--gutter) clamp(48px, 7vw, 96px);
  padding: clamp(40px, 6vw, 80px);
  background: var(--green); color: var(--white); border-radius: 10px;
  display: grid; grid-template-columns: 1fr auto; gap: 18px 40px; align-items: end;
}
.trial h2 { max-width: 14em; }
.trial p { margin: 0; grid-column: 1; max-width: 36em; color: rgba(255, 255, 255, .85); font-size: 18px; }
.trial .btn-main { grid-column: 2; grid-row: 1 / span 2; align-self: center; }

.foot {
  display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: center;
  padding: 28px var(--gutter) 40px; border-top: 1px solid var(--line); font-size: 15px; color: var(--muted);
}
.foot p { margin: 0; }
.foot-brand { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink); }
.foot-brand img { border-radius: 6px; }
.foot-small { margin-inline-start: auto !important; }

/* laptops: smaller receipt so it never meets the login card */
@media (max-width: 1300px) and (min-width: 961px) {
  .receipt { width: 240px; font-size: 11.5px; }
  .hero-photo { min-height: 760px; }
}
@media (max-width: 1120px) and (min-width: 961px) {
  .receipt { transform: rotate(-3deg) scale(.86); }
  [dir="rtl"] .receipt { transform: rotate(3deg) scale(.86); }
}

/* ---------- small screens */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-text { padding-bottom: 32px; max-width: none; }
  .hero-photo { min-height: 0; display: flex; flex-direction: column; padding: 300px 16px 24px; }
  .hero-photo > img { height: 340px; }
  .hero-photo::after { background: linear-gradient(180deg, rgba(14, 59, 48, 0) 120px, var(--deep) 340px); }
  .login { position: relative; top: auto; inset-inline-end: auto; width: 100%; order: 1; }
  .receipt, [dir="rtl"] .receipt { position: relative; bottom: auto; left: auto; right: auto; order: 2; margin: 28px auto 0; transform: rotate(-2deg); }
  .atelier, .start, .hardware { grid-template-columns: 1fr; }
  .atelier-photo { position: static; }
  .rules { grid-template-columns: 1fr; }
  .start-photo { order: 2; }
  .trial { grid-template-columns: 1fr; }
  .trial .btn-main { grid-column: 1; grid-row: auto; justify-self: start; }
}
@media (max-width: 520px) {
  .top { gap: 10px; }
  .top .btn-ghost { display: none; }
  .kit li { grid-template-columns: 1fr; gap: 2px; }
  .steps li { grid-template-columns: 44px 1fr; }
  .steps li::before { font-size: 34px; }
  .foot-small { margin-inline-start: 0 !important; }
}

/* ---------- Eqdom: product artefacts in place of photos */
.logo em { font-style: normal; color: var(--ochre); }
.part-sheet {
  align-self: center; background: var(--white); color: var(--ink); border: 1px solid var(--line); border-radius: 10px;
  padding: 22px; box-shadow: 0 18px 40px rgba(6, 26, 20, .12); display: flex; flex-direction: column; gap: 16px;
  font-size: 15px; transform: rotate(-1.2deg);
}
.ps-head { display: grid; grid-template-columns: 1fr auto; gap: 2px 14px; border-bottom: 2px solid var(--ink); padding-bottom: 12px; }
.ps-head strong { font-size: 22px; font-stretch: 108%; line-height: 1.15; grid-column: 1; }
.ps-head span:last-child { grid-column: 1; color: var(--muted); font-family: "Courier New", monospace; }
.ps-loc { grid-column: 2; grid-row: 1 / span 2; align-self: center; background: var(--ochre); color: var(--ink); font-weight: 800; padding: 10px 12px; border-radius: 6px; font-size: 20px; }
.ps-refs { margin: 0; display: grid; gap: 10px; }
.ps-refs div { display: grid; grid-template-columns: 7.5em 1fr; gap: 10px; }
.ps-refs dt { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; padding-top: 2px; }
.ps-refs dd { margin: 0; font-family: "Courier New", monospace; font-weight: 700; }
.ps-cars { display: flex; flex-wrap: wrap; gap: 6px; }
.ps-cars span { border: 1px solid var(--line); background: var(--paper); border-radius: 999px; padding: 4px 10px; font-size: 13.5px; }
.ps-foot { display: flex; justify-content: space-between; font-weight: 700; border-top: 1px dashed var(--line); padding-top: 12px; }
.ps-foot span:last-child { color: var(--green); font-size: 20px; }
[dir="rtl"] .ps-refs dd, [dir="rtl"] .ps-head span:last-child { direction: ltr; text-align: end; }
.bin-label { align-self: center; justify-self: center; background: var(--deep); padding: 46px 40px; border-radius: 12px; }
.bl-tag {
  width: 300px; aspect-ratio: 5 / 3; background: #fff; color: #000; border-radius: 4px; padding: 14px 18px;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between; text-align: center;
  font-family: Arial, sans-serif; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); transform: rotate(2deg); direction: ltr;
}
.bl-tag small { font-size: 11px; letter-spacing: .08em; }
.bl-tag strong { font-size: 19px; line-height: 1.1; }
.bl-tag span { font-size: 12px; font-weight: 700; }
.bl-tag b { font-size: 22px; }
.bl-bars { display: block; width: 82%; height: 34px; background: repeating-linear-gradient(90deg, #000 0 2px, #fff 2px 3px, #000 3px 4px, #fff 4px 7px, #000 7px 10px, #fff 10px 11px); }
@media (max-width: 860px) { .part-sheet { transform: none; } .bin-label { padding: 28px 18px; } .bl-tag { width: 260px; } }
