/* The card-first story shared by the landing pages and the homepage:
   the poster-to-card hero panel, the five steps, the "Design your card"
   builder, the "How customers join" lanes and the step videos.
   Uses the site's --rl-* tokens, so it inherits each page's palette. */

/* ---------- Poster to card: the hero panel ---------- */

.cs-launch {
  display: grid;
  gap: clamp(0.7rem, 2vw, 1rem);
  transform-style: preserve-3d;
}

@media (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .cs-launch {
    will-change: transform;
  }
}

.cs-launch__stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 0.15rem;
}

.cs-launch__side {
  display: grid;
  justify-items: center;
  gap: 0.5rem;
  min-width: 0;
  margin: 0;
}

.cs-launch__caption {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  max-width: 15rem;
  margin: 0;
  color: var(--rl-text-strong, #0F2D32);
  font-family: var(--rl-font-heading);
  font-size: clamp(0.8rem, 2.5vw, 0.95rem);
  font-weight: 800;
  line-height: 1.25;
}

.cs-num {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--rl-color-orange-500, #F4AB4B);
  color: var(--rl-color-teal-900, #0F2D32);
  font-family: var(--rl-font-heading);
  font-size: 0.8rem;
  font-weight: 900;
  line-height: 1;
}

.cs-launch__arrow {
  display: grid;
  justify-items: center;
  gap: 0.15rem;
  margin-top: -1.6rem;
  color: var(--rl-text-caption, #314A51);
  font-size: 0.6rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cs-launch__arrow svg {
  display: block;
  width: clamp(1.5rem, 5vw, 2.3rem);
  height: auto;
  color: var(--rl-color-orange-500, #F4AB4B);
}

.cs-launch__works {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.3rem 0.45rem;
  margin: 0;
  color: var(--rl-text-strong, #0F2D32);
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
}

.cs-launch__works svg {
  flex: 0 0 auto;
  width: 1.1rem;
  height: 1.1rem;
  color: var(--rl-color-teal-900, #0F2D32);
}

/* The landing pages' Apple Wallet and Google Wallet badges. */
.cs-launch__wallets {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.6rem;
}

.cs-launch__wallets img {
  display: block;
  width: auto;
  height: 2.3rem;
}

.cs-launch__note {
  margin: 0;
  color: var(--rl-text-muted, #4C5A5F);
  font-size: 0.74rem;
  line-height: 1.45;
  text-align: center;
}

/* Fanned posters and the matching fanned cards: each card sits where its
   poster does. The cards fan from the bottom so their names stay visible. */
.cs-fan {
  position: relative;
  width: 100%;
  max-width: 300px;
  aspect-ratio: 1.12;
  isolation: isolate;
}

.cs-fan img {
  position: absolute;
  display: block;
  height: auto;
}

.cs-fan--posters img {
  top: 9%;
  width: 44%;
  border-radius: 0.45rem;
  /* The thin frame is a ring just outside the poster, not a border inside
     its box, so the box keeps the poster's own shape at every size. */
  box-shadow: 0 0 0 1px rgba(15, 45, 50, 0.13), 0 14px 24px rgba(58, 38, 18, 0.2);
}

.cs-fan--posters .cs-fan__left {
  left: 6%;
  transform: translateY(3%) rotate(-11deg);
}

.cs-fan--posters .cs-fan__right {
  right: 6%;
  transform: translateY(3%) rotate(11deg);
}

.cs-fan--posters .cs-fan__front {
  left: 28%;
  z-index: 1;
}

.cs-fan--cards img {
  top: 15%;
  width: 45%;
  filter: drop-shadow(0 10px 14px rgba(15, 45, 50, 0.2));
}

.cs-fan--cards .cs-fan__left {
  left: 9%;
  transform-origin: 50% 100%;
  transform: rotate(-10deg);
}

.cs-fan--cards .cs-fan__right {
  right: 9%;
  transform-origin: 50% 100%;
  transform: rotate(10deg);
}

.cs-fan--cards .cs-fan__front {
  left: 27.5%;
  z-index: 1;
}

/* ---------- The five steps ---------- */

.cs-steps__head {
  max-width: 46rem;
  margin: 0 auto clamp(1.4rem, 4vw, 2.4rem);
  text-align: center;
}

.cs-steps__head h2 {
  margin: 0.2rem 0 0.6rem;
}

.cs-steps__head p {
  margin: 0 auto;
  max-width: 36rem;
  color: var(--rl-text-muted, #4C5A5F);
}

.cs-steps__list {
  display: grid;
  gap: clamp(0.9rem, 2.4vw, 1.4rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.cs-step {
  display: grid;
  gap: clamp(1rem, 3vw, 2.2rem);
  align-items: center;
  padding: clamp(1.1rem, 3.4vw, 2.1rem);
  border: 1px solid color-mix(in srgb, var(--rl-border-soft, #EAD9C7) 82%, white);
  border-radius: clamp(1.1rem, 2.6vw, 1.6rem);
  background: var(--rl-bg-card, #FFFFFF);
  box-shadow: var(--rl-shadow-soft, 0 8px 24px rgba(15, 45, 50, 0.08));
}

.cs-step__copy {
  min-width: 0;
}

/* Body copy in a step. :where() keeps these as weak as a single class, so a
 * labelled paragraph (.cs-lane__foot, .cs-join__title…) keeps its own spacing,
 * while still beating the pages' bare p rules. Defined before those classes. */
.cs-step :where(p) {
  margin: 0 0 0.65rem;
  color: var(--rl-text-muted, #4C5A5F);
  line-height: 1.55;
}

.cs-step :where(p:last-child) {
  margin-bottom: 0;
}

.cs-step__label {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 0.6rem;
  color: var(--rl-text-caption, #314A51);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cs-step__label .cs-num {
  width: 2rem;
  height: 2rem;
  font-size: 0.95rem;
}

.cs-step h3 {
  margin: 0 0 0.55rem;
  color: var(--rl-text-strong, #0F2D32);
  font-family: var(--rl-font-heading);
  font-size: clamp(1.35rem, 3.6vw, 1.8rem);
  line-height: 1.15;
}

.cs-step__link {
  color: var(--rl-text-strong, #0F2D32);
  font-weight: 800;
}

.cs-step__small {
  font-size: 0.82rem;
}

.cs-step__visual {
  display: grid;
  justify-items: center;
  gap: 0.6rem;
  min-width: 0;
  margin: 0;
}

.cs-step__visual figcaption,
.cs-caption {
  color: var(--rl-text-caption, #314A51);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
}

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

  /* Copy and picture always share the first row; extras run underneath. */
  .cs-step__copy,
  .cs-step__visual,
  .cs-step > .cs-builder {
    grid-row: 1;
  }

  .cs-step--flip .cs-step__copy {
    grid-column: 2;
  }

  .cs-step--flip .cs-step__visual {
    grid-column: 1;
  }

  .cs-video {
    width: min(100%, 360px);
  }

}

/* Step 2: the free poster beside a real one at a till. */
.cs-poster-pair {
  position: relative;
  width: min(100%, 420px);
  aspect-ratio: 1.15;
}

.cs-poster-pair img {
  position: absolute;
  display: block;
  height: auto;
}

.cs-poster-pair__photo {
  top: 0;
  left: 0;
  width: 54%;
  border-radius: 0.9rem;
  box-shadow: var(--rl-shadow-pop, 0 14px 30px rgba(15, 45, 50, 0.14));
  transform: rotate(-3deg);
}

.cs-poster-pair__poster {
  right: 2%;
  bottom: 0;
  width: 52%;
  border: 1px solid rgba(15, 45, 50, 0.12);
  border-radius: 0.5rem;
  box-shadow: 0 18px 34px rgba(15, 45, 50, 0.24);
  transform: rotate(3deg);
}

/* Step 2 on the landing pages: four real posters in real shops, in a row
   under the counter kit. */
.cs-shop-photos-strip {
  display: grid;
  gap: 0.45rem;
  width: min(100%, 560px);
  margin: 0;
}

.cs-shop-photos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
  width: min(100%, 420px);
}

.cs-shop-photos--row {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.45rem;
  width: 100%;
}

.cs-shop-photos img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 0.75rem;
  box-shadow: 0 8px 18px rgba(15, 45, 50, 0.14);
}

.cs-shop-photos--row img {
  border-radius: 0.6rem;
  box-shadow: 0 6px 14px rgba(15, 45, 50, 0.12);
}

/* Step videos: muted loops that load when they come into view. */
.cs-video {
  position: relative;
  width: min(100%, 340px);
  overflow: hidden;
  border-radius: 1.4rem;
  background: #E9E1D6;
  box-shadow: var(--rl-shadow-pop, 0 14px 30px rgba(15, 45, 50, 0.14));
  aspect-ratio: 4 / 5;
}

.cs-video video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Clear-background animations (stacked-alpha video drawn on a canvas):
 * no box, the scene sits straight on the page. The transparent still shows
 * until the first frame is drawn, and stays without WebGL. */
.cs-video--clear {
  width: min(100%, 360px);
  overflow: visible;
  border-radius: 0;
  background: none;
  box-shadow: none;
}

/* 720 pixels wide: up to 380 keeps it sharp on 2x screens. */
@media (min-width: 900px) {
  .cs-video--clear {
    width: min(100%, 380px);
  }
}

.cs-video--clear .cs-video__still,
.cs-video--clear .cs-video__canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.cs-video--clear .cs-video__canvas {
  opacity: 0;
  transition: opacity 220ms ease;
}

.cs-video--clear.is-drawing .cs-video__canvas {
  opacity: 1;
}

.cs-video--clear.is-drawing .cs-video__still {
  opacity: 0;
  transition: opacity 160ms ease 140ms;
}

/* The video only feeds the canvas. */
.cs-video--clear video {
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* Step 4 extras: Head Start and the nudge, side by side on wide screens. */
.cs-extras {
  display: grid;
  gap: 0.8rem;
  margin-top: 0.2rem;
}

@media (min-width: 720px) {
  .cs-extras {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.cs-extra {
  display: grid;
  align-content: start;
  gap: 0.55rem;
  padding: 1rem 1.05rem;
  border: 1px solid color-mix(in srgb, var(--rl-border-soft, #EAD9C7) 80%, white);
  border-radius: 1.05rem;
  background: color-mix(in srgb, var(--rl-color-cream-200, #FFF0DE) 55%, white);
}

.cs-extra h4 {
  margin: 0;
  color: var(--rl-text-strong, #0F2D32);
  font-family: var(--rl-font-heading);
  font-size: 1.05rem;
  line-height: 1.25;
}

.cs-extra p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
}

.cs-extra cite {
  font-style: normal;
  font-weight: 700;
}

.cs-headstart {
  display: grid;
  gap: 0.45rem;
  padding: 0.75rem 0.85rem;
  border-radius: 0.85rem;
  background: #FFFFFF;
  box-shadow: 0 6px 16px rgba(15, 45, 50, 0.08);
}

.cs-headstart__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  color: var(--rl-text-strong, #0F2D32);
  font-size: 0.82rem;
  font-weight: 800;
}

.cs-stamps {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 0.25rem;
  --rl-stamp-empty: #B9C2C1;
}

.cs-stamps > span {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border: 2px solid var(--rl-color-orange-500, #F4AB4B);
  border-radius: 50%;
  background: var(--rl-color-orange-500, #F4AB4B);
  color: var(--rl-color-teal-900, #0F2D32);
  font-size: clamp(0.55rem, 1.6vw, 0.72rem);
  font-weight: 900;
}

.cs-stamps > span:empty {
  border-style: dashed;
  border-color: var(--rl-stamp-empty);
  background: transparent;
}

.cs-notes {
  display: grid;
  gap: 0.45rem;
}

.cs-notes img {
  display: block;
  width: 100%;
  height: auto;
  /* Clear corners: a shadow that follows the pill, not a box. */
  filter: drop-shadow(0 6px 12px rgba(15, 45, 50, 0.13));
}

/* The shop's own lock-screen message, kept phone-sized. */
.cs-notes img.cs-notes__lock {
  justify-self: center;
  width: min(100%, 270px);
}

/* Step 5: the owner's charts on an iPad. */
/* The bezel, corners and inner curve come from the shared iPad frame in
 * tablet-frames.css, so they scale with the tablet like the site's others. */
.cs-tablet {
  width: min(100%, 330px);
  margin-inline: auto;
}

@media (min-width: 900px) {
  .cs-tablet {
    width: min(100%, 410px);
  }
}

.cs-tablet img {
  background: #FFFFFF;
  box-shadow: var(--rl-shadow-pop, 0 14px 30px rgba(15, 45, 50, 0.14));
}

/* ---------- Design your card ---------- */

.cs-builder {
  display: grid;
  gap: 1rem;
  width: 100%;
}

.cs-builder__preview {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 0.55rem;
  min-width: 0;
  padding: clamp(0.9rem, 3vw, 1.3rem);
  border-radius: 1.15rem;
  background:
    radial-gradient(90% 70% at 20% 0%, rgba(244, 171, 75, 0.16), transparent 70%),
    linear-gradient(160deg, #F5F0EA, #ECE5DB);
}

/* The card as it sits in Apple Wallet on an iPhone. The pass follows setup's
 * preview: every size is a share of its width (--u), so it scales like the
 * real card. On narrow screens the phone is cropped with a fade, so the form
 * stays close to the preview. */
.cs-wallet-crop {
  width: min(100%, 250px);
}

.cs-wallet-phone {
  position: relative;
  aspect-ratio: 300 / 650;
  padding: 3.4%;
  border-radius: 15% / 6.9%;
  background: linear-gradient(160deg, #2B3A3E, #0B1214 40%, #182326);
  box-shadow: 0 18px 34px rgba(10, 20, 22, 0.2), 0 4px 10px rgba(10, 20, 22, 0.1), inset 0 0 0 1.5px rgba(255, 255, 255, 0.14);
}

.cs-wallet-phone__still,
.cs-wallet-phone__screen {
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 12.4% / 5.7%;
  background: #F2F2F7;
}

.cs-wallet-phone__still {
  object-fit: cover;
  object-position: top;
}

.cs-wallet-phone__screen {
  container-type: inline-size;
  color: #111111;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.2;
  text-align: left;
}

.cs-wallet-ui__status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6cqw 7.5cqw 0 10cqw;
  font-size: 5cqw;
  font-weight: 600;
}

.cs-wallet-ui__status svg {
  width: 19cqw;
  height: auto;
  fill: currentColor;
}

.cs-wallet-ui__nav {
  display: flex;
  justify-content: space-between;
  padding: 5cqw 4.4cqw 0;
}

.cs-wallet-ui__button {
  display: grid;
  place-items: center;
  width: 10.5cqw;
  height: 10.5cqw;
  border-radius: 999px;
  background: #FFFFFF;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.cs-wallet-ui__button--pill {
  display: flex;
  gap: 5cqw;
  width: auto;
  padding: 0 3.4cqw;
}

.cs-wallet-ui__button svg {
  width: 5cqw;
  height: 5cqw;
  fill: none;
  stroke: #111111;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cs-wallet-ui__button svg.cs-wallet-ui__more {
  fill: #111111;
  stroke: none;
}

.cs-pass {
  --u: 0.932cqw;
  margin: 4.6cqw 3.4cqw 0;
  overflow: hidden;
  padding-bottom: calc(5 * var(--u));
  border-radius: calc(4.4 * var(--u));
  background: #FFFFFF;
  color: var(--pass-ink, #0F2D32);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(16, 45, 50, 0.06);
}

.cs-pass__top {
  display: flex;
  align-items: center;
  gap: calc(2.5 * var(--u));
  min-height: calc(15.6 * var(--u));
  padding: calc(3.75 * var(--u)) calc(4.4 * var(--u));
}

.cs-pass__logo {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: calc(15.6 * var(--u));
  height: calc(15.6 * var(--u));
  border-radius: calc(3.1 * var(--u));
  background: #0F2D32;
  color: #FFFFFF;
  font-size: calc(5 * var(--u));
  font-weight: 700;
}

.cs-pass__name {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  font-size: calc(5 * var(--u));
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cs-pass__field {
  display: grid;
  gap: calc(0.6 * var(--u));
  min-width: 0;
}

.cs-pass__field--end {
  flex: 0 0 auto;
  margin-left: auto;
  text-align: right;
}

.cs-pass__label {
  color: var(--pass-label, inherit);
  font-size: calc(3.1 * var(--u));
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cs-pass__value {
  overflow: hidden;
  font-size: calc(5.3 * var(--u));
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cs-pass__strip {
  aspect-ratio: 375 / 144;
  background: var(--pass-band, #F4AB4B);
}

.cs-pass__strip img {
  display: block;
  width: 100%;
  height: 100%;
}

.cs-pass__row {
  display: flex;
  align-items: flex-start;
  gap: calc(3 * var(--u));
  padding: calc(3.1 * var(--u)) calc(4.4 * var(--u)) 0;
}

.cs-pass__row .cs-pass__field:first-child {
  flex: 1 1 auto;
}

.cs-pass__barcode {
  width: calc(46.9 * var(--u));
  margin: calc(5 * var(--u)) auto 0;
  padding: calc(2.5 * var(--u));
  border-radius: calc(2.5 * var(--u));
  background: #FFFFFF;
  box-shadow: 0 0 0 1px rgba(16, 45, 50, 0.08);
  color: #0F2D32;
}

.cs-pass__code {
  display: block;
  width: 100%;
  height: auto;
  opacity: 0.88;
}

@media (max-width: 899px) {
  .cs-wallet-crop {
    max-height: 22.5rem;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(#000 70%, transparent);
    mask-image: linear-gradient(#000 70%, transparent);
  }
}

.cs-builder__form {
  display: grid;
  gap: 0.85rem;
  min-width: 0;
}

.cs-field {
  display: grid;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.cs-field > span,
.cs-field > legend {
  padding: 0;
  margin-bottom: 0.35rem;
  color: var(--rl-text-strong, #0F2D32);
  font-size: 0.86rem;
  font-weight: 800;
}

.cs-field input[type="text"],
.cs-field select {
  width: 100%;
  min-height: 46px;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--rl-border-strong, #D8BE9F);
  border-radius: 0.75rem;
  background: #FFFFFF;
  color: var(--rl-text-primary, #120C0B);
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
}

.cs-field input[type="text"]:focus-visible,
.cs-field select:focus-visible {
  outline: 3px solid var(--rl-focus-ring, #2B7FFF);
  outline-offset: 1px;
}

.cs-field__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(6.5rem, auto);
  gap: 0.5rem;
}

.cs-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.cs-chip {
  position: relative;
}

.cs-chip input,
.cs-swatch input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.cs-chip span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 42px;
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--rl-border-strong, #D8BE9F);
  border-radius: 999px;
  background: #FFFFFF;
  color: var(--rl-text-strong, #0F2D32);
  font-size: 0.86rem;
  font-weight: 800;
}

.cs-chip input:checked + span {
  border-color: var(--rl-color-teal-900, #0F2D32);
  background: var(--rl-color-teal-900, #0F2D32);
  color: #FFFFFF;
}

.cs-chip input:focus-visible + span,
.cs-swatch input:focus-visible + span {
  outline: 3px solid var(--rl-focus-ring, #2B7FFF);
  outline-offset: 2px;
}

.cs-swatches {
  /* "My logo" on its own line, then the six colours in one even row, so no
     colour is ever left alone on a line. */
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 2.35rem));
  align-items: center;
  gap: 0.5rem 0.45rem;
}

.cs-swatch {
  position: relative;
}

.cs-swatch--logo {
  grid-column: 1 / -1;
  justify-self: start;
}

.cs-swatch span {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--swatch, #F4AB4B);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.55);
}

.cs-swatch--logo span {
  display: grid;
  place-items: center;
  width: auto;
  min-width: 2.35rem;
  height: 2.35rem;
  aspect-ratio: auto;
  padding: 0 0.75rem;
  border: 1px dashed var(--rl-border-strong, #D8BE9F);
  border-radius: 999px;
  background: #FFFFFF;
  box-shadow: none;
  color: var(--rl-text-strong, #0F2D32);
  font-size: 0.8rem;
  font-weight: 800;
}

.cs-swatch input:checked + span {
  outline: 3px solid var(--rl-color-teal-900, #0F2D32);
  outline-offset: 2px;
}

.cs-builder__hint {
  margin: 0;
  color: var(--rl-text-muted, #4C5A5F);
  font-size: 0.78rem;
  line-height: 1.45;
}

.cs-builder__action {
  display: grid;
  gap: 0.4rem;
  justify-items: start;
}

@media (min-width: 640px) {
  .cs-builder {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
  }
}

/* ---------- How customers join ---------- */

.cs-join {
  display: grid;
  gap: 0.75rem;
  margin-top: clamp(1rem, 3vw, 1.6rem);
}

.cs-join__title {
  margin: 0;
  color: var(--rl-text-caption, #314A51);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.cs-join__lanes {
  display: grid;
  gap: 0.55rem;
  align-items: stretch;
}

.cs-lane {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
  padding: 1rem 1.05rem;
  border: 1px solid color-mix(in srgb, var(--rl-border-soft, #EAD9C7) 80%, white);
  border-radius: 1.1rem;
  background: #FFFFFF;
}

.cs-lane--card {
  border-color: color-mix(in srgb, var(--rl-color-orange-500, #F4AB4B) 45%, white);
  background:
    radial-gradient(90% 90% at 100% 0%, rgba(244, 171, 75, 0.18), transparent 70%),
    #FFFFFF;
}

.cs-lane--app {
  background: color-mix(in srgb, var(--rl-color-teal-900, #0F2D32) 4%, white);
}

.cs-lane__kicker {
  margin: 0 0 0.15rem;
  color: var(--rl-text-caption, #314A51);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cs-lane h4 {
  margin: 0 0 0.45rem;
  color: var(--rl-text-strong, #0F2D32);
  font-family: var(--rl-font-heading);
  font-size: 1.12rem;
  line-height: 1.2;
}

.cs-lane ul {
  display: grid;
  gap: 0.28rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cs-lane li {
  position: relative;
  padding-left: 1.35rem;
  color: var(--rl-text-primary, #120C0B);
  font-size: 0.9rem;
  line-height: 1.4;
}

.cs-lane li::before {
  position: absolute;
  top: 0.12rem;
  left: 0;
  display: grid;
  place-items: center;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: var(--rl-color-orange-500, #F4AB4B);
  color: var(--rl-color-teal-900, #0F2D32);
  content: "✓";
  font-size: 0.62rem;
  font-weight: 900;
}

.cs-lane--app li::before {
  background: color-mix(in srgb, var(--rl-color-teal-900, #0F2D32) 14%, white);
}

.cs-lane__bonus {
  margin: 0.5rem 0 0;
  color: var(--rl-text-strong, #0F2D32);
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.4;
}

.cs-lane__foot {
  margin: 0.5rem 0 0;
  color: var(--rl-text-caption, #314A51);
  font-size: 0.74rem;
  font-weight: 800;
}

.cs-lane__media {
  display: block;
  margin: 0;
}

.cs-lane__media img {
  display: block;
  height: auto;
}

.cs-lane--card .cs-lane__media img {
  width: clamp(5.5rem, 26vw, 8.5rem);
  filter: drop-shadow(0 8px 12px rgba(15, 45, 50, 0.18));
  transform: rotate(4deg);
}

/* The bezel, edge and corner curves come from the shared phone frame in
 * phone-frames.css (compact bezel, like the site's other small phones). */
.cs-phone {
  display: block;
  width: clamp(3.6rem, 16vw, 5rem);
  overflow: hidden;
  border-color: color-mix(in srgb, #FFFFFF 36%, transparent);
  background: linear-gradient(155deg, #183A40, #081C21);
  box-shadow: 0 8px 14px rgba(15, 45, 50, 0.2);
}

.cs-join__or {
  display: grid;
  place-items: center;
  justify-self: center;
  width: 2.5rem;
  height: 2.5rem;
  margin: -0.1rem 0;
  border-radius: 50%;
  background: var(--rl-color-teal-900, #0F2D32);
  color: #FFFFFF;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cs-join__foot {
  margin: 0;
  color: var(--rl-text-strong, #0F2D32);
  font-size: 0.86rem;
  font-weight: 700;
  text-align: center;
}

@media (min-width: 760px) {
  .cs-join__lanes {
    grid-template-columns: minmax(0, 1.3fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 0.7rem;
  }

  .cs-lane {
    height: 100%;
  }
}

/* Steps whose extras run under both columns on wide screens. */
.cs-step__note {
  margin: 0;
  text-align: center;
}

@media (min-width: 900px) {
  .cs-step > .cs-join,
  .cs-step > .cs-extras,
  .cs-step > .cs-step__note {
    grid-column: 1 / -1;
  }
}

/* The story strip shows the shop's real poster with its own card in front. */
.story-proof__media--card {
  position: relative;
  padding-bottom: 1.6rem;
}

.story-proof__media--card .story-proof__card {
  position: absolute;
  right: -12%;
  bottom: 0;
  width: 70%;
  border-radius: 0;
  box-shadow: none;
  filter: drop-shadow(0 12px 18px rgba(15, 45, 50, 0.24));
  transform: rotate(4deg);
}

/* Two links side by side in a step read as separate links. */
.cs-step__link + .cs-step__link {
  margin-left: 0.7rem;
}

.cs-steps__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: clamp(1.4rem, 3vw, 2rem);
}

/* Homepage hero: the poster-to-card panel in place of the old app carousel. */
.hero__stage--card {
  display: block;
  width: min(560px, 100%);
  min-height: 0;
  perspective: none;
}

.hero__stage--card::before {
  inset: 2% 0 4%;
}

.hero__card-panel {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.85rem;
  padding: clamp(1rem, 2.2vw, 1.45rem);
  border: 1px solid color-mix(in srgb, var(--rl-border-soft) 80%, white);
  border-radius: clamp(1.3rem, 3vw, 2rem);
  background:
    radial-gradient(68% 54% at 88% 10%, color-mix(in srgb, var(--rl-color-orange-500) 18%, transparent), transparent 75%),
    linear-gradient(145deg, color-mix(in srgb, white 96%, var(--rl-color-cream-200)), color-mix(in srgb, white 91%, #E9F1F1));
  box-shadow: 0 28px 70px rgba(15, 45, 50, 0.13);
}

/* On narrower screens the hero reads headline, introduction, then the
   poster-to-card picture and the buttons, so the card shows on the first
   phone screen. */
@media (max-width: 1024px) {
  .hero__grid--card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .hero__grid--card > .hero__copy {
    display: contents;
  }

  .hero__grid--card .hero__eyebrow { order: 1; margin-bottom: -0.4rem; }
  .hero__grid--card h1 { order: 2; margin-bottom: 0; }
  .hero__grid--card .hero__lede { order: 3; margin-bottom: 0; }
  .hero__grid--card .hero__stage { order: 4; align-self: center; margin: 0; }
  .hero__grid--card .hero__actions { order: 5; margin: 0; }
  .hero__grid--card .hero__next-step { order: 6; margin: 0; }
  .hero__grid--card .hero__chips { order: 7; margin: 0; }
  .hero__grid--card .hero__login { order: 8; margin: 0; }
}

/* Homepage trust band: supporters and technology in one compact section. */
.trust-band {
  display: grid;
  gap: clamp(1rem, 2.5vw, 1.5rem);
}

.trust-band__group {
  min-width: 0;
  padding: clamp(1.15rem, 2.6vw, 1.7rem);
  border: 1px solid var(--rl-border-soft);
  border-radius: 1.4rem;
  background: var(--rl-bg-card);
  box-shadow: var(--rl-shadow-soft);
}

.trust-band h2,
.trust-band h3 {
  margin: 0.2rem 0 0;
  color: var(--rl-text-strong);
  font-family: var(--rl-font-heading);
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  line-height: 1.2;
}

.trust-band__logos,
.trust-band__tech {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem 1.5rem;
  margin: 1.1rem 0 0;
  padding: 0;
  list-style: none;
}

.trust-band__logos img {
  display: block;
  width: auto;
  max-width: 132px;
  height: 46px;
  object-fit: contain;
}

.trust-band__tech {
  gap: 0.6rem;
}

.trust-band__tech li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.75rem 0.4rem 0.45rem;
  border: 1px solid var(--rl-border-soft);
  border-radius: 999px;
  color: var(--rl-text-strong);
  font-size: 0.82rem;
  font-weight: 700;
}

.trust-band__tech img {
  display: block;
  width: auto;
  max-width: 64px;
  height: 22px;
  object-fit: contain;
}

.trust-band__note {
  margin: 0.9rem 0 0;
  color: var(--rl-text-muted);
  font-size: 0.85rem;
}

@media (min-width: 900px) {
  .trust-band {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }
}

/* Homepage on phones: the same content, less scrolling. */
@media (max-width: 640px) {
  .page-home .price-card {
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 0.5rem 1rem;
    padding: 1.05rem 1.15rem 1.15rem;
  }

  .page-home .price-card > * {
    grid-column: 1 / -1;
  }

  .page-home .price-card h3 {
    grid-column: 1;
    margin: 0;
  }

  .page-home .price-card .price-tag {
    grid-column: 2;
    grid-row: 2;
    font-size: 2rem;
  }

  .page-home .price-card .price-period {
    margin: -0.3rem 0 0;
    font-size: 0.72rem;
  }

  .page-home .price-card .price-list {
    gap: 0.3rem;
  }

  .page-home .price-card .price-list li {
    font-size: 0.9rem;
    line-height: 1.45;
  }

  .page-home #faq .support-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
  }

  .page-home #faq .support-links a {
    min-height: 0;
    padding: 0.45rem 0.8rem;
    font-size: 0.82rem;
  }

  /* The "Ask a Question" button sits just above, so the extra card is
     only shown on wider screens. */
  .page-home .cta-grid--support .cta-question-card {
    display: none;
  }

  .page-home .site-footer__grid ul {
    grid-template-columns: 1fr 1fr;
    column-gap: 1.25rem;
  }

  .page-home .trust-band__tech {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem;
  }

  .page-home .trust-band__tech li {
    min-width: 0;
    padding: 0.35rem 0.55rem 0.35rem 0.4rem;
    font-size: 0.76rem;
  }

  .page-home .trust-band__tech img {
    max-width: 42px;
    height: 18px;
  }
}

/* A card video inside a support page's media box. */
.media-proof__figure--video {
  display: grid;
  justify-items: center;
  gap: 0.6rem;
  text-align: center;
}

/* A real shop's words beside a step (trade packs, 14 October 2026). On the
   small-business page each one shows only for the trades it suits. */
.cs-quote {
  margin: 1.1rem 0 0;
  padding: 0.15rem 0 0.15rem 0.95rem;
  border-left: 3px solid var(--rl-color-orange-500, #F4AB4B);
}

.cs-quote[hidden] {
  display: none;
}

.cs-quote blockquote {
  margin: 0;
  color: var(--rl-text-strong, #0F2D32);
  font-size: 1.04rem;
  font-weight: 650;
  line-height: 1.45;
}

.cs-quote figcaption {
  margin-top: 0.3rem;
  color: var(--rl-text-muted, #4C5A5F);
  font-size: 0.9rem;
}
