/* X-POS landing: the x-projects.tech identity. Navy, yellow, blue, pixel stripe, hard shadows. */
:root {
  --navy: #0a1b3d;
  --navy-deep: #06132d;
  --yellow: #ffb800;
  --blue: #0066ff;
  --sky: #bce9fd;
  --ink: #1a1c1c;
  --bg: #f9f9f7;
  --card: #ffffff;
  --muted: #52607d;
  --line: #d3dbe8;
  --on-navy-muted: #8fa3c8;
  --stripe: repeating-linear-gradient(90deg, var(--yellow) 0 20px, var(--blue) 20px 40px, #ffffff 40px 48px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'IBM Plex Sans Arabic', 'IBM Plex Sans', system-ui, 'Segoe UI', Tahoma, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

a {
  color: inherit;
}

.pixel {
  font-family: 'Press Start 2P', ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  direction: ltr;
  display: inline-block;
}

.container {
  width: min(1120px, 100% - 32px);
  margin-inline: auto;
}

/* ---- header ------------------------------------------------------------ */
.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--navy);
  color: #fff;
}
.top::after {
  content: '';
  display: block;
  height: 5px;
  background: var(--stripe);
}
.top .container {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  direction: ltr;
  text-decoration: none;
}
.brand img,
.brand svg {
  width: 32px;
  height: 32px;
  display: block;
}
.brand b {
  font-style: italic;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}
.brand b span {
  color: var(--blue);
}
.nav {
  display: flex;
  gap: 18px;
  margin-inline-start: auto;
}
.nav a {
  text-decoration: none;
  color: #c9d6ef;
  font-weight: 600;
  font-size: 0.95rem;
}
.nav a:hover {
  color: #fff;
}
.top .cta {
  margin-inline-start: 8px;
}

/* ---- buttons ----------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 2px solid var(--ink);
  background: #fff;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  box-shadow: 4px 4px 0 var(--ink);
  transition:
    transform 80ms,
    box-shadow 80ms;
  white-space: nowrap;
}
.btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 var(--ink);
}
.btn:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
}
.btn--cta {
  background: var(--yellow);
}
.btn--ghost {
  background: transparent;
  color: #fff;
  border-color: #fff;
  box-shadow: 4px 4px 0 rgba(255, 255, 255, 0.35);
}
.btn--sm {
  padding: 8px 14px;
  font-size: 0.9rem;
  box-shadow: 3px 3px 0 var(--ink);
}

/* ---- hero -------------------------------------------------------------- */
.hero {
  background: var(--navy) radial-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px) 0 0 / 22px 22px;
  color: #fff;
  padding: 72px 0 64px;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero .pixel {
  color: var(--yellow);
  margin-bottom: 18px;
}
.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  line-height: 1.2;
  font-weight: 700;
}
.hero h1 span {
  color: var(--yellow);
}
.hero p {
  margin: 0 0 28px;
  font-size: 1.15rem;
  color: #dbe4f5;
  max-width: 48ch;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.hero__note {
  margin-top: 18px;
  color: var(--on-navy-muted);
  font-size: 0.9rem;
}

/* the till mock-up */
.mock {
  background: #fff;
  color: var(--ink);
  border: 2px solid var(--ink);
  box-shadow: 10px 10px 0 var(--ink);
  overflow: hidden;
}
.mock__bar {
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  font-size: 0.85rem;
}
.mock__bar::after {
  content: '';
  position: absolute;
}
.mock__bar .pixel {
  color: var(--yellow);
  margin-inline-start: auto;
  font-size: 9px;
}
.mock__stripe {
  height: 4px;
  background: var(--stripe);
}
.mock__body {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.mock__cart {
  padding: 14px;
  border-inline-end: 1px solid var(--line);
  font-size: 0.9rem;
}
.mock__cart div {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  border-bottom: 1px dashed var(--line);
}
.mock__cart .total {
  border: 0;
  font-weight: 700;
  font-size: 1.1rem;
  margin-top: 6px;
}
.mock__cart .num {
  direction: ltr;
  font-variant-numeric: tabular-nums;
}
.mock__grid {
  padding: 14px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.mock__tile {
  background: #f3f6fb;
  border: 1px solid var(--line);
  padding: 8px;
  font-size: 0.72rem;
  line-height: 1.3;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mock__tile b {
  color: var(--blue);
  direction: ltr;
}
.mock__pay {
  margin: 0 14px 14px;
  padding: 10px;
  text-align: center;
  background: var(--yellow);
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  font-weight: 700;
}
.mock__offline {
  display: inline-block;
  padding: 2px 8px;
  background: #fff3cd;
  color: #7a4b00;
  font-size: 0.75rem;
  border-radius: 999px;
}

/* ---- sections ---------------------------------------------------------- */
section {
  padding: 64px 0;
}
.section-head {
  margin-bottom: 28px;
}
.section-head .pixel {
  color: #b27a00;
}
.section-head h2 {
  margin: 8px 0 6px;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
}
.section-head p {
  margin: 0;
  color: var(--muted);
  max-width: 60ch;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.card {
  background: var(--card);
  border: 2px solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
  padding: 22px;
}
.card .icon {
  font-size: 1.8rem;
  line-height: 1;
  margin-bottom: 12px;
}
.card h3 {
  margin: 0 0 6px;
  font-size: 1.1rem;
}
.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.steps {
  counter-reset: step;
}
.step {
  position: relative;
  padding-inline-start: 58px;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  inset-inline-start: 0;
  top: -4px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: var(--yellow);
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  font-family: 'Press Start 2P', monospace;
  font-size: 14px;
}

/* ---- plans ------------------------------------------------------------- */
.plans {
  background: var(--navy);
  color: #fff;
}
.plans .section-head .pixel {
  color: var(--yellow);
}
.plans .section-head p {
  color: var(--on-navy-muted);
}
.plan {
  background: #fff;
  color: var(--ink);
  border: 2px solid var(--ink);
  box-shadow: 6px 6px 0 var(--yellow);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.plan--featured {
  outline: 4px solid var(--yellow);
}
.plan h3 {
  margin: 0;
  font-size: 1.3rem;
}
.plan .limits {
  display: flex;
  gap: 14px;
  font-weight: 700;
}
.plan .limits span {
  display: flex;
  flex-direction: column;
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 500;
}
.plan .limits b {
  font-size: 1.4rem;
  color: var(--ink);
}
.plan ul {
  margin: 0;
  padding-inline-start: 20px;
  color: var(--muted);
  font-size: 0.95rem;
}
.plan .btn {
  margin-top: auto;
}

/* ---- footer ------------------------------------------------------------ */
footer {
  background: var(--navy-deep);
  color: var(--on-navy-muted);
  padding: 28px 0;
  font-size: 0.9rem;
}
footer::before {
  content: '';
  display: block;
  height: 5px;
  background: var(--stripe);
  margin-top: -28px;
  margin-bottom: 24px;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}
footer .links {
  display: flex;
  gap: 16px;
  margin-inline-start: auto;
}
footer a {
  color: #c9d6ef;
  text-decoration: none;
}
footer a:hover {
  color: #fff;
}

@media (max-width: 900px) {
  .hero .container,
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .nav {
    display: none;
  }
  .mock {
    box-shadow: 6px 6px 0 var(--ink);
  }
}

/* ---- request form ------------------------------------------------------ */
.request {
  background: var(--bg);
}
.request__form {
  max-width: 860px;
  margin-inline: auto;
}
.request__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px 18px;
}
.request__form label {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
}
.request__form input,
.request__form select,
.request__form textarea {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  font: inherit;
  padding: 10px 12px;
  border: 2px solid var(--line);
  background: #fff;
  outline: none;
}
.request__form input:focus,
.request__form select:focus,
.request__form textarea:focus {
  border-color: var(--blue);
}
.request__wide {
  margin-top: 14px;
}
.request__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.request__status {
  font-weight: 600;
  color: var(--muted);
}
/* The bot trap stays in the flow box, not off-screen: an offset element in an RTL page widens the scrollable area and can blank the render. */
.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  opacity: 0;
  pointer-events: none;
}
.request__form {
  position: relative;
}
@media (max-width: 900px) {
  .request__grid {
    grid-template-columns: 1fr;
  }
}
