/* =============================================================================
   The self-service ladder, at a glance
   -----------------------------------------------------------------------------
   Four toolkits at £5 / £19 / £49 / £149. Each is a progression: pick the cheapest
   that answers your question.

   WHY THIS EXISTS. On /products/ the four toolkits were four full-width stacked
   cards, each with a ~250KB square cover image, so the page measured 11231px
   (12.5 screens) and the reader had to scroll past four covers to discover the
   prices were £5, £19, £49 and £149. They read as a list, not a choice.

   This strip puts the four side by side with the progression visible, and the
   detailed cards stay below it for anyone who wants "what's inside". Nothing was
   removed -- the strip is an addition, not a replacement.

   Deliberately NOT a comparison TABLE. A table would need aligned columns of
   feature rows for four products that do not have comparable feature sets; at
   mobile widths that becomes a horizontal scroll, which is worse than the list it
   replaced.
   ========================================================================== */

.ladder-quick {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--rp-gap, 14px);
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: quick;
}

.ladder-quick__item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 18px 18px;
  border: 1px solid var(--line, rgba(250, 247, 234, .12));
  border-radius: 16px;
  background: rgba(12, 14, 16, .5);
  position: relative;
}

/* The progression is the point, so it is drawn: a thin cyan rail down the leading
   edge, deepening as the price rises. */
.ladder-quick__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 2px;
  border-radius: 2px;
  background: rgba(25, 232, 222, .22);
}
.ladder-quick__item:nth-child(2)::before { background: rgba(25, 232, 222, .42); }
.ladder-quick__item:nth-child(3)::before { background: rgba(25, 232, 222, .62); }
.ladder-quick__item--top::before { background: rgba(25, 232, 222, .95); }

.ladder-quick__step {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--caledapt-cyan, #19e8de);
}

.ladder-quick__name {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.01em;
  color: var(--ink-50, #faf7ea);
}

.ladder-quick__price {
  margin: 0;
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--ink-50, #faf7ea);
}

.ladder-quick__note {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--muted, #a8adb2);
}

/* Pushed to the bottom so all four buy buttons align on a row, whatever the
   length of the note above. margin-top:auto is the whole trick. */
.ladder-quick__buy {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  color: var(--ink-950, #070606);
  background: var(--caledapt-cyan, #19e8de);
  transition: filter .18s ease;
}
.ladder-quick__buy:hover { filter: brightness(1.08); }
.ladder-quick__buy:focus-visible {
  outline: 2px solid var(--caledapt-cyan, #19e8de);
  outline-offset: 3px;
}

.ladder-quick__legend {
  margin: 16px 0 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted, #a8adb2);
  text-align: center;
  max-width: 62ch;
  margin-inline: auto;
}

/* The detailed cards below keep their own layout, but they get a heading so the
   strip does not look like the whole page. */
.ladder-products > h2 + .ladder-quick ~ .product-card:first-of-type { margin-top: 34px; }

/* --- responsive -------------------------------------------------------------
   Two columns at tablet, one at phone. Never a horizontal scroll: four cards at
   phone width would put each label under ~70px, which is unreadable.
   ------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .ladder-quick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .ladder-quick { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .ladder-quick__item { padding: 16px 14px; }
  .ladder-quick__price { font-size: 26px; }
  /* On one column the rail is the only thing showing the progression, so it
     becomes a horizontal one instead of a vertical edge. */
  .ladder-quick__item::before {
    left: 14px;
    right: 14px;
    top: 0;
    bottom: auto;
    width: auto;
    height: 2px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ladder-quick__buy { transition: none; }
}