/* The free counter kit (owner, 15 October 2026; the UK's counter sign since
   the November 2026 build, UK-2): "Go live, and we post you a free counter
   sign". One picture of it arriving: the counter sign, in the poster's look
   (the shop's initials, its reward and its QR code), comes down and stands
   on the counter by the till on its strut, an envelope slides in beside it
   and the welcome letter comes out of it, and the letter is shown close up,
   with its three steps. No poster comes in the post (N15). The element
   names are the till sticker's (25 October to 15 November 2026), so the
   site's markup is unchanged; only these styles changed. Until 25 October
   2026 the picture showed the old kit.
   Until 29 October 2026 each thing had a label and "Posted free when you go
   live" was stamped on; they only said what the picture shows (owner's no
   pointless captions rule), so they went and the picture got shorter.

   One snippet, this stylesheet and rl-scenes.js (which plays it once, when
   it scrolls into view), so the merchant app can port it as it is:

   .rl-kit                        the picture (role="img" with a label)
     .rl-kit__stage               data-rl-scene="kit"
       .rl-kit__scene             the counter, the till, the sign, the envelope and the close-up
         .rl-kit__counter         the counter top
         .rl-kit__shadow          the till's shadow on the counter
         .rl-kit__till            the till, standing on the counter
         .rl-kit__sticker         the counter sign, standing on the counter by the till (its strut is ::after)
           .rl-kit__sticker-face  the poster's look: initials, name, reward line and QR code
         .rl-kit__envelope        the envelope, standing beside it
           .rl-kit__envelope-back   its back, with the open flap
           .rl-kit__sheet--poster   not shown since the November 2026 build (no poster is posted)
           .rl-kit__sheet--welcome  the welcome letter
           .rl-kit__envelope-front  its front, in front of the sheets
         .rl-kit__view--steps     the welcome letter, close up: the till steps

   Sizes are in cqw (1cqw is 1% of the picture's width), so the picture
   scales as a whole; positions are numbers in those units, set below for
   phones and again for wider pictures. The markup alone shows the finished
   picture: without JavaScript, with reduced motion and when printed nothing
   moves. rl-scenes.js adds .rl-scene and .is-pending (the animations wait,
   holding their first frame: the sign above the counter, the envelope off
   to the right), then swaps in .is-playing. The stage's own children always
   finish untransformed and fully opaque; tilts live on the elements inside
   them.

   Everything moves in two dimensions only, so nothing ever turns over and
   there's no back face for any browser to draw (Safari once drew a turned
   face through the front, 19 October 2026). */

.rl-kit {
  --kit-teal: #0F2D32;
  --kit-teal-soft: #143F47;
  --kit-ink: #120C0B;
  --kit-orange: #F4AB4B;
  --kit-cream: #FFF0DE;
  --kit-cream-deep: #FEEAD7;
  --kit-paper: #FFF8EF;
  --kit-muted: #53666B;
  --kit-envelope: #FFFDF8;
  --kit-envelope-deep: #E6D3BA;
  --kit-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --kit-font: var(--rl-font-heading, "Avenir Next", "Trebuchet MS", "Segoe UI", sans-serif);
  /* The till sticker (25 October 2026; square since 28 October 2026), in
     the poster's look: the shop's initials and name beside its card, its
     reward line under them, and a white panel with a big QR code and "NO
     APP. JUST SCAN." under them. Since 31 October 2026 the reward line is
     the biggest words, on two lines, and the shop's card, with the Head
     Start line under it, takes the place of the row of stamps, as the
     printed sticker has them. A picture of the layout, not one that
     scans. */
  --kit-sticker: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><defs><linearGradient id='s' x1='0' y1='0' x2='1' y2='1'><stop offset='0' stop-color='%23FFF9F1'/><stop offset='.6' stop-color='%23F8EFE4'/><stop offset='1' stop-color='%23ECE1D4'/></linearGradient></defs><rect width='200' height='200' fill='url(%23s)'/><rect x='6' y='6' width='188' height='1.6' rx='.8' fill='%23F4AB4B'/><rect x='34' y='15.6' width='36' height='18' rx='4' fill='%230F2D32'/><text x='52' y='28.8' text-anchor='middle' font-family='Avenir Next,Trebuchet MS,Segoe UI,Arial,sans-serif' font-size='11.5' font-weight='800' fill='%23FFF0DE'>BB</text><rect x='22' y='36.2' width='60' height='6.4' rx='2' fill='%230F2D32'/><rect x='44.2' y='46.6' width='15.6' height='1.6' rx='.8' fill='%23F4AB4B'/><g transform='rotate(-1.5 144 28.4)'><rect x='122' y='10.7' width='44' height='35.4' rx='2' fill='%23FFFFFF' stroke='%230F2D32' stroke-opacity='.14' stroke-width='.4'/><rect x='123.9' y='12.299999999999999' width='6.8' height='6.8' rx='1.4' fill='%230F2D32'/><rect x='132.6' y='14.7' width='14' height='2' rx='1' fill='%230F2D32'/><rect x='158.2' y='13.5' width='5.8' height='1.2' rx='.6' fill='%23F4AB4B'/><rect x='159.4' y='15.7' width='4.6' height='2' rx='1' fill='%230F2D32'/><rect x='122' y='20.8' width='44' height='16.8' fill='%23F4AB4B'/><circle cx='132.8' cy='26.4' r='2.1' fill='%23FFFFFF'/><circle cx='138.4' cy='26.4' r='2.1' fill='%23FFFFFF'/><circle cx='144.0' cy='26.4' r='1.9' fill='%23FFFFFF' fill-opacity='.35'/><circle cx='149.6' cy='26.4' r='1.9' fill='%23FFFFFF' fill-opacity='.35'/><circle cx='155.2' cy='26.4' r='1.9' fill='%23FFFFFF' fill-opacity='.35'/><circle cx='132.8' cy='32.0' r='1.9' fill='%23FFFFFF' fill-opacity='.35'/><circle cx='138.4' cy='32.0' r='1.9' fill='%23FFFFFF' fill-opacity='.35'/><circle cx='144.0' cy='32.0' r='1.9' fill='%23FFFFFF' fill-opacity='.35'/><circle cx='149.6' cy='32.0' r='1.9' fill='%23FFFFFF' fill-opacity='.35'/><circle cx='155.2' cy='32.0' r='1.9' fill='none' stroke='%23FFFFFF' stroke-width='.5'/><rect x='123.9' y='39.7' width='9' height='1.2' rx='.6' fill='%23F4AB4B'/><rect x='123.9' y='41.9' width='16' height='2' rx='1' fill='%230F2D32'/></g><rect x='103' y='49.6' width='82' height='3.2' rx='1.4' fill='%230F2D32'/><rect x='55.5' y='57.6' width='89' height='11' rx='2.6' fill='%230F2D32'/><rect x='44.5' y='73' width='111' height='11' rx='2.6' fill='%230F2D32'/><rect x='6' y='91' width='188' height='92' rx='5' fill='%23FFFFFF'/><rect x='11.5' y='96' width='82' height='82' rx='5.5' fill='%23FFFFFF' stroke='%23F4AB4B' stroke-width='1.4'/><path transform='translate(17.5 102) scale(3.333)' fill='%230F2D32' d='M0 0h7v1h-7zM11 0h1v1h-1zM14 0h7v1h-7zM0 1h1v1h-1zM6 1h1v1h-1zM9 1h2v1h-2zM14 1h1v1h-1zM20 1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h-1zM14 17h5v1h-5zM20 17h1v1h-1zM0 18h1v1h-1zM2 18h3v1h-3zM6 18h1v1h-1zM8 18h1v1h-1zM10 18h2v1h-2zM13 18h1v1h-1zM16 18h3v1h-3zM0 19h1v1h-1zM6 19h1v1h-1zM8 19h4v1h-4zM13 19h5v1h-5zM19 19h1v1h-1zM0 20h7v1h-7zM8 20h2v1h-2zM13 20h2v1h-2zM17 20h1v1h-1z'/><rect x='100' y='110' width='50' height='9' rx='2' fill='%230F2D32'/><rect x='100' y='123' width='74' height='9' rx='2' fill='%230F2D32'/><rect x='100' y='137.5' width='88' height='1.4' rx='.7' fill='%23F4AB4B'/><rect x='100' y='144' width='78' height='4' rx='1.5' fill='%230F2D32'/><rect x='100' y='155' width='32' height='10' rx='2' fill='%23050505'/><rect x='135' y='155' width='36' height='10' rx='2' fill='%23050505'/><rect x='80' y='188.5' width='40' height='3' rx='1.5' fill='%2353666B'/></svg>");
  container-type: inline-size;
  width: 100%;
  max-width: 560px;
  margin-inline: auto;
}

/* Phones first. Positions and sizes are numbers of cqw. Since the labels
   went (29 October 2026) everything sits 6cqw higher and the picture ends just
   under the close-up. */
.rl-kit__stage {
  /* The counter sign (A4 upright in life): left, top, width and height. It
     stands on the counter, a little in front of the till. */
  --kx: 20;
  --ky: 16.6;
  --kw: 24;
  --kh: 33.9;
  /* The till: left, top and width. It stands on the counter. */
  --till-x: 3;
  --till-y: 14;
  --till-w: 46;
  /* The envelope (C4, landscape): left, top, width and height. */
  --ex: 55;
  --ey: 23.2;
  --ew: 42;
  --eh: 29.6;
  /* Where the counter starts. */
  --counter: 49.7;
  /* Type: the till steps, the close-up's heading and small print. */
  --kit-line: max(8px, 3.25cqw);
  --kit-head: max(6px, 2.3cqw);
  position: relative;
  aspect-ratio: 100 / 92;
  overflow: hidden;
  border-radius: clamp(1rem, 4.4cqw, 1.5rem);
  background:
    radial-gradient(62% 40% at 50% 92%, rgba(244, 171, 75, 0.2), transparent 72%),
    linear-gradient(180deg, #FFF8F0 0%, #FDEBD9 100%);
  box-shadow: inset 0 0 0 1px rgba(15, 45, 50, 0.06);
  font-family: var(--kit-font);
  line-height: 1.2;
}

.rl-kit__scene {
  position: absolute;
  inset: 0;
  isolation: isolate;
}

/* ---------- The counter ---------- */

.rl-kit__counter {
  position: absolute;
  z-index: 0;
  left: 0;
  right: 0;
  top: calc(var(--counter) * 1cqw);
  bottom: 0;
  border-top: 1px solid rgba(15, 45, 50, 0.08);
  background:
    linear-gradient(180deg, #FFF5E8 0, #FFF5E8 0.8cqw, #F4DABB 0.8cqw, #EDCCA8 100%);
}

/* The till's shadow, where it stands on the counter. */
.rl-kit__shadow {
  position: absolute;
  z-index: 1;
  left: calc((var(--till-x) - var(--till-w) * 0.05) * 1cqw);
  width: calc(var(--till-w) * 1.1 * 1cqw);
  top: calc((var(--counter) + 0.2) * 1cqw);
  height: calc(var(--till-w) * 0.12 * 1cqw);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(15, 45, 50, 0.3), transparent);
}

/* ---------- The till, with the counter sign in front of it ---------- */

/* The till's front, from its top down to where it stands on the counter,
   with its drawer along the foot. It stays still; the sign moves. */
.rl-kit__till {
  position: absolute;
  z-index: 1;
  left: calc(var(--till-x) * 1cqw);
  top: calc(var(--till-y) * 1cqw);
  width: calc(var(--till-w) * 1cqw);
  height: calc((var(--counter) + 1.6 - var(--till-y)) * 1cqw);
  --u: 1cqw;
  border-radius: 1.4cqw 1.4cqw 0.5cqw 0.5cqw;
  background: linear-gradient(180deg, #1D4C55 0%, var(--kit-teal-soft) 26%, var(--kit-teal) 100%);
  box-shadow: inset 0 0.45cqw 0 rgba(255, 255, 255, 0.1), 0 1cqw 2.2cqw rgba(15, 45, 50, 0.2);
}

/* A small customer display on a stand, at the back of its top: it's what
   makes the box a till. Sized in --u, which wider pictures shrink. */
.rl-kit__till::before {
  content: "";
  position: absolute;
  right: 7%;
  bottom: 100%;
  width: calc(9 * var(--u));
  height: calc(7 * var(--u));
  border-radius: calc(0.9 * var(--u)) calc(0.9 * var(--u)) 0 0;
  background:
    linear-gradient(var(--kit-orange), var(--kit-orange)) calc(1.3 * var(--u)) calc(1.5 * var(--u)) / calc(3.6 * var(--u)) calc(0.55 * var(--u)) no-repeat,
    linear-gradient(rgba(255, 240, 222, 0.45), rgba(255, 240, 222, 0.45)) calc(1.3 * var(--u)) calc(2.7 * var(--u)) / calc(5 * var(--u)) calc(0.45 * var(--u)) no-repeat,
    linear-gradient(var(--kit-teal), var(--kit-teal)) center bottom / calc(2 * var(--u)) calc(2.4 * var(--u)) no-repeat,
    linear-gradient(160deg, #2A626C 0%, var(--kit-teal-soft) 70%) top / 100% calc(4.8 * var(--u)) no-repeat;
}

/* The drawer: a seam across the foot with a small orange handle. */
.rl-kit__till::after {
  content: "";
  position: absolute;
  left: 6%;
  right: 6%;
  bottom: 0.9cqw;
  height: 0.9cqw;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(var(--kit-orange), var(--kit-orange)) center 0.25cqw / 6cqw 0.45cqw no-repeat;
  opacity: 0.9;
}

/* The counter sign (the UK's A4 strut card, UK-2): a board standing on the
   counter, its foot on the counter's edge, with a soft shadow under it. */
.rl-kit__sticker {
  position: absolute;
  z-index: 2;
  left: calc(var(--kx) * 1cqw);
  top: calc(var(--ky) * 1cqw);
  width: calc(var(--kw) * 1cqw);
  height: calc(var(--kh) * 1cqw);
  filter: drop-shadow(0 0.5cqw 0.7cqw rgba(5, 20, 23, 0.32));
  transform-origin: 50% 100%;
}

/* Its face: the poster's look on a white board, with an orange edge at the
   foot where the sign's design ends. */
.rl-kit__sticker-face {
  position: absolute;
  inset: 0;
  border-radius: 0.8cqw;
  border: 0.35cqw solid #FFFFFF;
  background:
    var(--kit-sticker) center 30% / 100% auto no-repeat,
    linear-gradient(var(--kit-orange), var(--kit-orange)) center bottom / 100% 8% no-repeat,
    #FFF9F1;
}

/* The fold-out strut behind it, down to the counter on the right. */
.rl-kit__sticker::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: 8%;
  bottom: -0.2cqw;
  width: 1.1cqw;
  height: 70%;
  border-radius: 0.5cqw;
  background: linear-gradient(90deg, #CDBBA5, #E6D3BA);
  transform: rotate(-24deg);
  transform-origin: 50% 100%;
}

/* ---------- The envelope, with the A4 poster and the welcome card ---------- */

.rl-kit__envelope {
  position: absolute;
  z-index: 2;
  left: calc(var(--ex) * 1cqw);
  top: calc(var(--ey) * 1cqw);
  width: calc(var(--ew) * 1cqw);
  height: calc(var(--eh) * 1cqw);
  transform-origin: 50% 100%;
}

.rl-kit__envelope-back,
.rl-kit__envelope-front {
  position: absolute;
  inset: 0;
  border-radius: 0.7cqw;
}

/* The back, with the flap open above it. */
.rl-kit__envelope-back {
  z-index: 0;
  background: var(--kit-envelope-deep);
  box-shadow: 0 1cqw 2.2cqw rgba(15, 45, 50, 0.2);
}

.rl-kit__envelope-back::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: 30%;
  background: var(--kit-envelope-deep);
  clip-path: polygon(0 100%, 50% 4%, 100% 100%);
}

/* The front pocket: lower than the back, with the folds of its sides. */
.rl-kit__envelope-front {
  z-index: 2;
  top: 30%;
  border-radius: 0 0 0.7cqw 0.7cqw;
  background:
    linear-gradient(to top right, transparent calc(50% - 0.2cqw), rgba(15, 45, 50, 0.14) 50%, transparent calc(50% + 0.2cqw)) left bottom / 50% 100% no-repeat,
    linear-gradient(to top left, transparent calc(50% - 0.2cqw), rgba(15, 45, 50, 0.14) 50%, transparent calc(50% + 0.2cqw)) right bottom / 50% 100% no-repeat,
    var(--kit-envelope);
  box-shadow: inset 0 0.35cqw 0 rgba(255, 255, 255, 0.7), 0 0 0 1px rgba(15, 45, 50, 0.08);
}

/* Each sheet stands in the envelope and leans out of it, turned about its
   foot, which stays hidden in the pocket. */
.rl-kit__sheet {
  position: absolute;
  z-index: 1;
  left: calc(50% - var(--sw) / 2 + var(--sx, 0) * 1cqw);
  bottom: 30%;
  width: var(--sw);
  aspect-ratio: 1 / 1.414;
  overflow: hidden;
  border-radius: 0.35cqw;
  box-shadow: 0 0.5cqw 1.2cqw rgba(15, 45, 50, 0.18), 0 0 0 1px rgba(15, 45, 50, 0.1);
  transform: rotate(var(--fan, 0deg));
  transform-origin: 50% 100%;
  --sw: calc(var(--ew) * 0.5cqw);
}

/* Until the November 2026 build the A4 poster leaned out to the left with
   the welcome card behind it. No poster comes in the post now (N15), so the
   envelope brings the welcome letter alone, leaning out a little. */
.rl-kit__sheet--poster { display: none; }
.rl-kit__sheet--welcome { --sx: 2; --fan: 7deg; --sw: calc(var(--ew) * 0.46cqw); z-index: 0; }

.rl-kit__sheet--poster {
  background: #FFF7EC;
}

.rl-kit__sheet--poster img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* The welcome card: a slim band along the top and three lines of steps. */
.rl-kit__sheet--welcome {
  display: flex;
  flex-direction: column;
  gap: 9%;
  padding: 0 0 8%;
  background: #FFFFFF;
}

.rl-kit__sheet-head {
  display: block;
  flex: 0 0 auto;
  height: 6%;
  border-bottom: 0.3cqw solid var(--kit-orange);
  background: var(--kit-teal);
}

.rl-kit__sheet-lines {
  display: grid;
  gap: 0.7cqw;
  margin: 0 14%;
}

.rl-kit__sheet-lines > span {
  display: block;
  height: 0.75cqw;
  border-radius: 999px;
  background: rgba(15, 45, 50, 0.22);
}

.rl-kit__sheet-lines > span:first-child {
  height: 1.1cqw;
  margin-right: 28%;
  background: rgba(15, 45, 50, 0.7);
}

.rl-kit__sheet-lines > span:nth-child(3) { margin-right: 20%; }

/* ---------- The close-up: the welcome card's till steps ---------- */

.rl-kit__view {
  position: absolute;
  left: calc(var(--x) * 1cqw);
  top: calc(var(--y) * 1cqw);
  width: calc(var(--w) * 1cqw);
  height: calc(var(--h) * 1cqw);
  z-index: 3;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 1.1cqw;
  background: var(--kit-paper);
  box-shadow: 0 1.4cqw 3cqw rgba(15, 45, 50, 0.2), 0 0 0 1px rgba(15, 45, 50, 0.08);
  transform: rotate(var(--r, 0deg));
  /* Where it starts, at the welcome card in the envelope, as an offset
     from where it settles. */
  --in-x: calc((var(--ex) + var(--ew) / 2 + 7 - var(--x) - var(--w) / 2) * 1cqw);
  --in-y: calc((var(--ey) + var(--eh) * 0.35 - var(--y) - var(--h) / 2) * 1cqw);
}

/* The welcome card's band, as on the card in the envelope. */
.rl-kit__view::before {
  content: "";
  flex: 0 0 auto;
  height: 1.3cqw;
  border-bottom: 0.4cqw solid var(--kit-orange);
  background: var(--kit-teal);
}

.rl-kit__view--steps { --x: 18; --y: 59.2; --w: 64; --h: 27; --r: -1.5deg; }

.rl-kit__view-head {
  display: block;
  padding: 0.95em 0.95em 0.1em;
  color: var(--kit-muted);
  font-size: var(--kit-head);
  font-weight: 800;
  line-height: 1;
}

/* The three steps, numbered. */
.rl-kit__steps {
  display: grid;
  align-content: start;
  gap: 0.5em;
  margin: 0.6em 0.75em 0.75em;
  color: var(--kit-teal);
  font-size: var(--kit-line);
  font-weight: 800;
  line-height: 1.15;
  counter-reset: rl-kit-step;
}

.rl-kit__steps > span {
  display: flex;
  align-items: center;
  gap: 0.45em;
  counter-increment: rl-kit-step;
}

.rl-kit__steps > span::before {
  content: counter(rl-kit-step);
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 1.4em;
  height: 1.4em;
  border-radius: 50%;
  background: var(--kit-orange);
  color: var(--kit-teal);
  font-size: 0.78em;
  font-weight: 900;
}

/* QR-like squares: a picture of a code, not one that scans. */
.rl-kit__qr {
  flex: 0 0 auto;
  width: 22%;
  aspect-ratio: 1;
  border-radius: 12%;
  background: #FFFFFF url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 21 21' shape-rendering='crispEdges'><path fill='%230F2D32' d='M0 0h7v1h-7zM11 0h1v1h-1zM14 0h7v1h-7zM0 1h1v1h-1zM6 1h1v1h-1zM9 1h2v1h-2zM14 1h1v1h-1zM20 1h1v1h-1zM0 2h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-5zM20 17h1v1h-1zM0 18h1v1h-1zM2 18h3v1h-3zM6 18h1v1h-1zM8 18h1v1h-1zM10 18h2v1h-2zM13 18h1v1h-1zM16 18h3v1h-3zM0 19h1v1h-1zM6 19h1v1h-1zM8 19h4v1h-4zM13 19h5v1h-5zM19 19h1v1h-1zM0 20h7v1h-7zM8 20h2v1h-2zM13 20h2v1h-2zM17 20h1v1h-1z'/></svg>") center / 78% no-repeat;
  box-shadow: 0 0 0 1px rgba(15, 45, 50, 0.14);
}

/* The narrowest phones, where the steps can't get any smaller: room for
   one more line (19 October 2026). */
@container (max-width: 300px) {
  .rl-kit__stage {
    --ky: 18.6;
    --till-y: 16;
    --ey: 25.2;
    --counter: 51.7;
    aspect-ratio: 100 / 98;
  }

  .rl-kit__view--steps { --x: 10; --y: 61.2; --w: 80; --h: 31; }
}

/* ---------- Wider pictures: the till and the close-up on the left, the envelope on the right ---------- */

@container (min-width: 500px) {
  .rl-kit__stage {
    --kx: 21;
    --ky: 13.6;
    --kw: 17.5;
    --kh: 24.7;
    --till-x: 4;
    --till-y: 9.5;
    --till-w: 38;
    --ex: 55;
    --ey: 17.9;
    --ew: 31;
    --eh: 21.9;
    --counter: 38;
    --kit-line: max(8px, 1.9cqw);
    --kit-head: max(6px, 1.3cqw);
    aspect-ratio: 100 / 64;
  }

  .rl-kit__till { --u: 0.75cqw; }
  .rl-kit__till::before { right: 4%; }


  .rl-kit__view--steps { --x: 4; --y: 44.5; --w: 46; --h: 14.5; --r: -1.5deg; }

  .rl-kit__view::before {
    height: 0.9cqw;
    border-bottom-width: 0.3cqw;
  }
}

/* ---------- The animation ---------- */

@media screen and (prefers-reduced-motion: no-preference) {
  .rl-scene[data-rl-scene="kit"].is-pending,
  .rl-scene[data-rl-scene="kit"].is-pending * {
    animation-play-state: paused !important;
  }

  /* The sign comes down onto the counter and stands. */
  .rl-scene[data-rl-scene="kit"] .rl-kit__sticker {
    animation: rl-kit-stick 680ms var(--kit-ease) both;
  }

  /* The envelope slides in beside it... */
  .rl-scene[data-rl-scene="kit"] .rl-kit__envelope {
    animation: rl-kit-slide 760ms var(--kit-ease) 520ms both;
  }

  /* ...and the welcome letter comes out of it. */
  .rl-scene[data-rl-scene="kit"] .rl-kit__sheet {
    animation: rl-kit-fan 620ms var(--kit-ease) both;
  }

  .rl-scene[data-rl-scene="kit"] .rl-kit__sheet--poster { animation-delay: 1240ms; }
  .rl-scene[data-rl-scene="kit"] .rl-kit__sheet--welcome { animation-delay: 1380ms; }

  /* The welcome letter, close up. */
  .rl-scene[data-rl-scene="kit"] .rl-kit__view {
    animation: rl-kit-rise 720ms var(--kit-ease) 1820ms both;
  }
}

/* From above, a little larger and tilted, down onto the counter: it lands
   with a small squash, then stands. */
@keyframes rl-kit-stick {
  0% {
    opacity: 0;
    transform: translateY(-14cqw) scale(1.16) rotate(-7deg);
  }

  22% {
    opacity: 1;
  }

  72% {
    transform: translateY(0.3cqw) scale(0.98) rotate(0.6deg);
  }

  100% {
    opacity: 1;
    transform: none;
  }
}

/* In from the right, a little tilted, then it settles upright. */
@keyframes rl-kit-slide {
  0% {
    opacity: 0;
    transform: translateX(62cqw) rotate(8deg);
  }

  25% {
    opacity: 1;
  }

  78% {
    transform: translateX(-0.8cqw) rotate(-1deg);
  }

  100% {
    opacity: 1;
    transform: none;
  }
}

/* Up out of the pocket, then out to its place in the fan. */
@keyframes rl-kit-fan {
  0% {
    opacity: 0;
    transform: translateY(40%) rotate(0deg);
  }

  30% {
    opacity: 1;
  }

  55% {
    transform: translateY(-4%) rotate(calc(var(--fan) * 0.35));
  }

  100% {
    opacity: 1;
    transform: rotate(var(--fan));
  }
}

/* From the welcome card in the envelope, over to its place, then settle. */
@keyframes rl-kit-rise {
  0% {
    opacity: 0;
    transform: translate(var(--in-x), var(--in-y)) scale(0.3) rotate(0deg);
  }

  30% {
    opacity: 1;
  }

  80% {
    transform: translate(0, -0.6cqw) scale(1.02) rotate(calc(var(--r) * 1.15));
  }

  100% {
    opacity: 1;
    transform: rotate(var(--r));
  }
}

/* ---------- The words beside the picture ---------- */

/* The kit, item by item, with ticks. */
.rl-kit-list {
  display: grid;
  gap: 0.55rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

.rl-kit-list li {
  position: relative;
  padding-left: 1.75rem;
  color: var(--rl-text-strong, #0F2D32);
  font-weight: 700;
  line-height: 1.45;
}

.rl-kit-list li::before {
  content: "\2713";
  position: absolute;
  top: 0.12em;
  left: 0;
  display: grid;
  place-items: center;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  background: #F4AB4B;
  color: #0F2D32;
  font-size: 0.7rem;
  font-weight: 900;
}

/* The words beside the picture, in pages without a layout of their own. */
.rl-kit-panel {
  display: grid;
  gap: clamp(1.6rem, 4vw, 3rem);
  align-items: center;
}

.rl-kit-panel__copy {
  min-width: 0;
}

.rl-kit-panel__copy h2 {
  max-width: 16ch;
  text-wrap: balance;
}

.rl-kit-panel__lede {
  max-width: 46ch;
  font-size: clamp(1rem, 1.25vw, 1.12rem);
  line-height: 1.6;
}

.rl-kit-panel__note {
  max-width: 52ch;
  color: var(--rl-text-muted, #4C5A5F);
  font-size: 0.86rem;
  line-height: 1.55;
}

@media (min-width: 900px) {
  .rl-kit-panel {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  }
}

/* ==========================================================================
   The kits abroad (UK-10, 29 November 2026): the same picture, by the kit's
   kind (merchant-app/lib/launch/kit-drawing.ts), shown only once a
   country's kit can be posted. Everything above is the UK's and stays as it
   is; these rules only add to it, each under the picture's own modifier, so
   the UK's markup (with neither) draws exactly as before.

   .rl-kit.rl-kit--stand    the US and Canada: the square 8 × 8 in counter
                            sign slides down into its clear acrylic stand on
                            the counter by the register (the welcome sheet's
                            step 1 picture), then the US Letter welcome sheet
                            comes in its envelope
     .rl-kit__stand         the clear stand, in front of the sign's foot
   .rl-kit.rl-kit--sticker  Australia and New Zealand: the square 20 cm till
                            sticker comes down and presses onto the till's
                            front, then the small landscape welcome card
                            comes, its three steps across it as printed

   The sign's and the sticker's face is the square design both print (the
   till sticker's look, --kit-sticker above). Neither picture holds a name,
   so a Mainstamp page never shows "RewardLoop" in one. Reduced motion,
   no JavaScript and printing show the finished picture, as above.
   ========================================================================== */

/* ---------- The sign in its clear stand (the US, Canada) ---------- */

.rl-kit--stand .rl-kit__stage {
  /* The sign, square (8 in), and the clear block it stands in (5 in across,
     a little over a third of the sign's height, as on the printed sheet's
     step 1): the sign's foot goes --stand-in down into the block, whose
     foot stands on the counter. */
  --ky: 22;
  --kw: 24;
  --kh: 24;
  --stand-w: 16;
  --stand-h: 6.6;
  --stand-in: 2.2;
}

/* The sign: the square design to its edge, on a rigid board (no strut). */
.rl-kit--stand .rl-kit__sticker-face {
  border: 0;
  border-radius: 0.45cqw;
  background: var(--kit-sticker) center / 100% 100% no-repeat, #FFF9F1;
  box-shadow: 0 0 0 1px rgba(15, 45, 50, 0.14);
}

.rl-kit--stand .rl-kit__sticker::after {
  content: none;
}

/* The clear stand on the counter, in front of the sign's foot, which shows
   through it: a frosted front with a crisp edge, its top face with the slot
   the sign stands in, and two glare marks. */
.rl-kit--stand .rl-kit__stand {
  position: absolute;
  z-index: 2;
  left: calc((var(--kx) + (var(--kw) - var(--stand-w)) / 2) * 1cqw);
  top: calc((var(--ky) + var(--kh) - var(--stand-in)) * 1cqw);
  width: calc(var(--stand-w) * 1cqw);
  height: calc(var(--stand-h) * 1cqw);
  border-radius: 0.6cqw;
  background: linear-gradient(180deg, rgba(244, 250, 251, 0.5) 0%, rgba(214, 236, 240, 0.58) 55%, rgba(188, 222, 228, 0.7) 100%);
  box-shadow:
    inset 0 0 0 0.16cqw rgba(255, 255, 255, 0.8),
    inset 0 -0.5cqw 0 rgba(15, 45, 50, 0.1),
    0 0 0 0.2cqw rgba(15, 45, 50, 0.34),
    0 0.7cqw 1cqw rgba(15, 45, 50, 0.24);
}

.rl-kit--stand .rl-kit__stand::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 30%;
  border-radius: 0.6cqw 0.6cqw 0 0;
  border-bottom: 0.16cqw solid rgba(15, 45, 50, 0.26);
  background:
    linear-gradient(rgba(15, 45, 50, 0.42), rgba(15, 45, 50, 0.42)) center 50% / 84% 0.32cqw no-repeat,
    rgba(255, 255, 255, 0.5);
}

.rl-kit--stand .rl-kit__stand::after {
  content: "";
  position: absolute;
  left: 8%;
  top: 40%;
  width: 22%;
  height: 50%;
  background: linear-gradient(115deg, transparent 0 28%, rgba(255, 255, 255, 0.95) 28% 40%, transparent 40% 56%, rgba(255, 255, 255, 0.85) 56% 64%, transparent 64%);
}

/* The welcome sheet is US Letter, a little squarer than A4. */
.rl-kit--stand .rl-kit__sheet {
  aspect-ratio: 8.5 / 11;
}

/* ---------- The till sticker (Australia, New Zealand) ---------- */

.rl-kit--sticker .rl-kit__stage {
  /* The square sticker, on the till's front. */
  --kx: 11;
  --ky: 17.5;
  --kw: 30;
  --kh: 30;
  aspect-ratio: 100 / 84;
}

/* Flat on the till, so only a thin shadow; it presses on about its middle. */
.rl-kit--sticker .rl-kit__sticker {
  filter: drop-shadow(0 0.3cqw 0.45cqw rgba(5, 20, 23, 0.4));
  transform-origin: 50% 50%;
  --peel: 3.4cqw;
}

/* Its face: the square design to its edge, with the top right corner
   lifted (it peels off its backing cleanly). */
.rl-kit--sticker .rl-kit__sticker-face {
  border: 0;
  border-radius: 0.45cqw;
  background: #FFF9F1 var(--kit-sticker) center / 100% 100% no-repeat;
  clip-path: polygon(0 0, calc(100% - var(--peel)) 0, 100% var(--peel), 100% 100%, 0 100%);
}

/* The lifted corner, showing the sticker's back (in place of the UK sign's strut). */
.rl-kit--sticker .rl-kit__sticker::after {
  z-index: auto;
  top: 0;
  right: 0;
  bottom: auto;
  width: var(--peel);
  height: var(--peel);
  border-radius: 0 0 0 1.3cqw;
  background: linear-gradient(to top right, #D9CCBC 0, #F1E8DC 42%, #F6EFE6 50%, transparent 50%);
  transform: none;
}

/* The small welcome card (21.3 × 10.2 cm): landscape, out of the envelope,
   with its three steps across it. */
.rl-kit--sticker .rl-kit__sheet--welcome {
  --sx: 1;
  --fan: 5deg;
  --sw: calc(var(--ew) * 0.66cqw);
  bottom: 50%;
  aspect-ratio: 213 / 102;
  gap: 16%;
}

.rl-kit--sticker .rl-kit__sheet-head {
  height: 13%;
}

.rl-kit--sticker .rl-kit__sheet-lines {
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4cqw;
  margin: 0 9%;
}

.rl-kit--sticker .rl-kit__sheet-lines > span,
.rl-kit--sticker .rl-kit__sheet-lines > span:first-child,
.rl-kit--sticker .rl-kit__sheet-lines > span:nth-child(3) {
  height: 1cqw;
  margin-right: 0;
  background: rgba(15, 45, 50, 0.55);
}

/* The card close up: wide, the three steps side by side, each number over its words. */
.rl-kit--sticker .rl-kit__view--steps { --x: 6; --y: 59.2; --w: 88; --h: 20; --r: -1deg; }

.rl-kit--sticker .rl-kit__steps {
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 0.9em;
}

.rl-kit--sticker .rl-kit__steps > span {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4em;
}

/* The narrowest phones: as the UK's picture, one line lower. */
@container (max-width: 300px) {
  .rl-kit--stand .rl-kit__stage { --ky: 24; }

  .rl-kit--sticker .rl-kit__stage {
    --ky: 19.5;
    aspect-ratio: 100 / 88;
  }

  .rl-kit--sticker .rl-kit__view--steps { --x: 5; --y: 61.2; --w: 90; --h: 23; }
}

/* Wider pictures: the till and the close-up on the left, the envelope on the right. */
@container (min-width: 500px) {
  .rl-kit--stand .rl-kit__stage {
    --ky: 17.8;
    --kw: 17.5;
    --kh: 17.5;
    --stand-w: 11.7;
    --stand-h: 4.8;
    --stand-in: 1.6;
  }

  .rl-kit--sticker .rl-kit__stage {
    --kx: 11;
    --ky: 12.5;
    --kw: 24;
    --kh: 24;
    aspect-ratio: 100 / 64;
  }

  .rl-kit--sticker .rl-kit__sticker { --peel: 2.7cqw; }

  .rl-kit--sticker .rl-kit__view--steps { --x: 4; --y: 44.5; --w: 50; --h: 14.5; }
}

/* ---------- Their animation ---------- */

@media screen and (prefers-reduced-motion: no-preference) {
  /* The clear stand is set down on the counter first... */
  .rl-kit--stand .rl-scene[data-rl-scene="kit"] .rl-kit__stand {
    animation: rl-kit-set 380ms var(--kit-ease) both;
  }

  /* ...then the sign slides straight down into it ("Slide the sign into
     its stand"), and the rest follows a little later than the UK's. The
     sticker keeps the UK's timing: it comes down and presses on, as the
     UK's sign lands. */
  .rl-kit--stand .rl-scene[data-rl-scene="kit"] .rl-kit__sticker {
    animation: rl-kit-slot 720ms var(--kit-ease) 260ms both;
  }

  .rl-kit--stand .rl-scene[data-rl-scene="kit"] .rl-kit__envelope { animation-delay: 840ms; }
  .rl-kit--stand .rl-scene[data-rl-scene="kit"] .rl-kit__sheet--welcome { animation-delay: 1700ms; }
  .rl-kit--stand .rl-scene[data-rl-scene="kit"] .rl-kit__view { animation-delay: 2140ms; }
}

/* Down onto the counter, a little above where it ends. */
@keyframes rl-kit-set {
  0% {
    opacity: 0;
    transform: translateY(-2cqw) scale(0.96);
  }

  60% {
    opacity: 1;
  }

  100% {
    opacity: 1;
    transform: none;
  }
}

/* Straight down from above into the stand's slot, a small bounce, then still. */
@keyframes rl-kit-slot {
  0% {
    opacity: 0;
    transform: translateY(-20cqw);
  }

  20% {
    opacity: 1;
  }

  70% {
    transform: translateY(0.5cqw);
  }

  86% {
    transform: translateY(-0.15cqw);
  }

  100% {
    opacity: 1;
    transform: none;
  }
}
