/* Start (#start). Prefix: go- / .go__ */

.go { --go-node: 46px; padding-block-end: clamp(64px, 7vw, 104px); }

/* ---------- Header: title on the start side, lead answering it on the end side ---------- */
.go__head {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  grid-template-areas: "eyebrow eyebrow" "title lead";
  align-items: end;
  column-gap: clamp(32px, 6vw, 96px);
  row-gap: var(--s-4);
  margin-block-end: clamp(56px, 7vw, 104px);
}
.go__eyebrow { grid-area: eyebrow; }
.go__title { grid-area: title; max-width: 13.5em; }
.go__lead { grid-area: lead; max-width: 24rem; justify-self: end; padding-block-end: .45em; }

/* ---------- Steps ---------- */
.go__steps { position: relative; }
.go__rope {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  z-index: 0;
}
.go__rope-line,
.go__rope-tip {
  fill: none;
  stroke: #BDBDC4;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.go__rope-line { stroke: transparent !important; stroke-width: 2; }
/* White dashes over the drawn line read as a twisted rope; over the white page they vanish where the line is not drawn yet. */
.go__rope-twist { fill: none; stroke: #BDBDC4; stroke-width: 2; stroke-linecap: round; stroke-dasharray: 5 9; }
.go__rope-tip { opacity: 0; transition: opacity .35s var(--ease-out); }
.go__rope.is-done .go__rope-tip { opacity: 1; }

.go__list {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: clamp(28px, 4vw, 72px);
  align-items: start;
}
.go__step {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: start;
}
/* The sequence walks down and back up, so the line between the numbers sags like a rope. */
.go__step--2 { margin-block-start: clamp(24px, 3.2vw, 46px); }
.go__step--3 { margin-block-start: clamp(8px, 1.4vw, 20px); }

/* Sticker */
.go__art {
  height: 128px;
  display: flex;
  align-items: flex-end;
  margin-block-end: 14px;
  padding-inline-start: 6px;
  transform-origin: 30% 90%;
}
.go__art .go__sticker { width: 104px; height: auto; filter: drop-shadow(0 10px 12px rgba(40, 20, 10, .10)); }
.go__art--1 { rotate: -5deg; }
.go__art--1 .go__sticker { width: 92px; }
.go__art--2 { rotate: 4deg; padding-inline-start: 14px; }
.go__art--2 .go__sticker { width: 100px; }
.go__art--3 { rotate: -3deg; }
.go__art--3 .go__sticker { width: 118px; }

html.js-motion .go__art { opacity: 0; transform: translateY(16px) scale(.8); transition: opacity .45s var(--ease-out), transform .9s var(--ease-spring); }
html.js-motion .go__step.is-lit .go__art { opacity: 1; transform: none; }

/* Number node: sits on the rope; a halo in the page colour lets the line run into it. */
.go__node {
  position: relative;
  width: var(--go-node);
  height: var(--go-node);
  border-radius: 50%;
  background: var(--page-bg);
  box-shadow: inset 0 0 0 1.5px var(--g-300), 0 0 0 8px var(--page-bg);
  margin-block-end: 34px;
}
.go__num,
.go__num-fill {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
}
.go__num { color: var(--g-500); transition: opacity .3s var(--ease-out); }
.go__num-fill {
  background: var(--z-blue);
  color: #fff;
  box-shadow: 0 6px 14px -6px rgba(51, 92, 255, .6);
  opacity: 0;
  transform: scale(.35);
  transition: opacity .3s var(--ease-out), transform .7s var(--ease-spring);
}
.go__step.is-lit .go__num { opacity: 0; }
.go__step.is-lit .go__num-fill { opacity: 1; transform: none; }

/* Copy */
.go__copy { display: grid; gap: 10px; max-width: 22rem; }
.go__step-title {
  font-family: var(--font-ui);
  font-size: var(--fs-h4);
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.3;
  color: var(--page-ink);
  text-wrap: balance;
}
:lang(ar) .go__step-title { letter-spacing: 0; line-height: 1.5; }
.go__step-body {
  font-size: 1rem;
  line-height: var(--lh-body);
  color: var(--page-ink-2);
  text-wrap: pretty;
}

/* ---------- Small product fragments (one per step, each shaped differently) ---------- */
.go__ui {
  margin-block-start: 26px;
  width: 100%;
  max-width: 21rem;
  background: #fff;
  border: 1px solid var(--g-150);
  border-radius: var(--r-md);
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 16px 28px -18px rgba(16, 24, 40, .22);
  font-size: 13px;
  line-height: 1.4;
  color: var(--ink);
}
:lang(ar) .go__ui { font-size: 13.5px; line-height: 1.55; }

/* 1: POS connection row */
.go__ui--pos {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px 12px 12px;
}
[dir="rtl"] .go__ui--pos { padding: 12px 12px 12px 14px; }
.go__pos-tile {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 10px;
  background: var(--g-100);
  color: var(--g-700);
}
.go__pos-tile .ico { width: 20px; height: 20px; }
.go__pos-text { display: grid; min-width: 0; flex: 1; }
.go__pos-text b { font-weight: 600; font-size: 14px; }
.go__pos-text span { font-size: 12px; color: var(--g-500); text-wrap: balance; }
.go__pos-state {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px 3px 6px;
  border-radius: var(--r-pill);
  background: var(--up-bg);
  color: #15803D;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
[dir="rtl"] .go__pos-state { padding: 3px 6px 3px 9px; }
.go__pos-state .ico { width: 14px; height: 14px; color: var(--up); }

/* 2: Reward feasibility, with the tick bar from the real checker */
.go__ui--reward { padding: 14px 16px 13px; display: grid; gap: 11px; }
.go__rw-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.go__rw-name { font-weight: 600; font-size: 14px; }
.go__rw-pts {
  padding: 2px 9px;
  border-radius: var(--r-pill);
  background: var(--z-blue-50);
  color: var(--z-blue-600);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.go__meter {
  position: relative;
  height: 14px;
  background: repeating-linear-gradient(90deg, var(--g-200) 0 3px, transparent 3px 6px);
}
.go__meter::after {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: 56%;
  width: round(down, 56%, 6px);
  background: repeating-linear-gradient(90deg, var(--c-green) 0 3px, transparent 3px 6px);
}
[dir="rtl"] .go__meter { background: repeating-linear-gradient(270deg, var(--g-200) 0 3px, transparent 3px 6px); }
[dir="rtl"] .go__meter::after { background: repeating-linear-gradient(270deg, var(--c-green) 0 3px, transparent 3px 6px); }
.go__rw-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.go__rw-score { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: #15803D; }
.go__rw-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--c-green); }
.go__rw-visits { color: var(--g-500); font-size: 12px; }

/* 3: Store live in Bonat */
.go__ui--live {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px 10px 10px;
  border-radius: 18px;
}
[dir="rtl"] .go__ui--live { padding: 10px 10px 10px 12px; }
.go__live-tile {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 12px;
  background: var(--b-plum);
  color: #fff;
}
.go__live-tile .go__bmark { width: 13px; height: auto; }
.go__live-text { display: grid; min-width: 0; flex: 1; }
.go__live-text b { font-family: var(--font-app); font-weight: 700; font-size: 14.5px; }
.go__live-text span { font-family: var(--font-app); font-size: 12px; color: var(--g-500); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.go__live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: var(--b-lilac-100);
  color: var(--b-plum-700);
  font-family: var(--font-app);
  font-size: 12px;
  font-weight: 700;
}
.go__live-dot { position: relative; width: 7px; height: 7px; border-radius: 50%; background: var(--b-violet); }

/* ---------- Tablet and phone: a vertical sequence with the rope running down the start side ---------- */
@media (max-width: 1023px) {
  .go__head { grid-template-columns: minmax(0, 1fr); grid-template-areas: "eyebrow" "title" "lead"; }
  .go__lead { justify-self: start; padding: 0; }

  .go__list { grid-template-columns: minmax(0, 1fr); row-gap: clamp(48px, 9vw, 72px); }
  .go__step,
  .go__step--2,
  .go__step--3 {
    margin: 0;
    grid-template-columns: var(--go-node) minmax(0, 1fr);
    grid-template-areas: "node art" "node copy" "node ui";
    column-gap: clamp(18px, 4vw, 28px);
  }
  .go__node { grid-area: node; margin: 0; align-self: start; margin-block-start: 34px; }
  .go__art { grid-area: art; height: auto; margin-block-end: 14px; padding: 0; }
  .go__art .go__sticker { width: 88px; }
  .go__art--2 .go__sticker { width: 80px; }
  .go__art--3 .go__sticker { width: 92px; }
  .go__copy { grid-area: copy; }
  .go__ui { grid-area: ui; margin-block-start: 20px; }
}

@media (min-width: 640px) and (max-width: 1023px) {
  /* Wider tablets: sticker sits beside the copy instead of above it. */
  .go__step,
  .go__step--2,
  .go__step--3 {
    grid-template-columns: var(--go-node) minmax(0, 1fr) auto;
    grid-template-areas: "node copy art" "node ui art";
  }
  .go__art { align-self: start; margin: 0; }
  .go__art .go__sticker { width: 104px; }
  .go__node { margin-block-start: 0; }
}
