/* ═══════════════════════════════════════════════════════════ the list ══
   The front page's list (ClimbList), on the page itself rather than in a
   window: one sentence a product, a parcel per shop on a shelf, and a lock
   over the rows a stranger is not sent. Loaded by the front page alone.   */

/* No window hangs over the hero here, so the hero leaves no room for one. /pricing keeps it. */
.front { --hang: 0px; }

.climb { padding-top: var(--bay-md); }
.climb-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 48px;
  padding-bottom: 28px;
}
.climb-intro { display: grid; gap: 16px; max-width: 660px; }
.climb h2 { font-size: clamp(2.25rem, 1.4rem + 2.6vw, 3.25rem); line-height: 1.02; letter-spacing: -.035em; }
.climb-lead { font-size: 1.125rem; color: var(--ink-soft); max-width: 54ch; text-wrap: pretty; }
.climb-lead b { color: var(--ink); font-weight: 650; }
.climb-key { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 13px; color: var(--ink-soft); }
.climb-key > span { display: inline-flex; align-items: center; gap: 8px; }
.climb-empty { padding-block: 22px; border-top: 1px solid var(--line); color: var(--ink-soft); max-width: 70ch; }

/* ═══════════════════════════════════════════════════════════════ rows ══ */
.climb-rows, .climb-ghost { list-style: none; margin: 0; padding: 0; }
.climb-row {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1.3fr) minmax(0, 1fr) 8.5rem;
  gap: 0 28px;
  align-items: center;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.climb-rank { font-size: 40px; font-weight: 700; letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.climb-what { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }
.climb-seen { font-size: 13px; line-height: 20px; color: var(--ink-soft); }
/* A strip of tape with a word on it, stuck on slightly crooked. */
.climb-tag {
  padding: 2px 9px 1px;
  border-radius: 2px;
  background: var(--tape);
  color: var(--tape-ink);
  font-size: 12px;
  font-weight: 700;
  line-height: 17px;
  transform: rotate(-1.5deg);
}
.climb-name { font-size: 24px; letter-spacing: -.02em; line-height: 1.15; }
.climb-name a { text-decoration: none; }
.climb-name a:hover { text-decoration: underline; }
.climb-line { font-size: 15px; color: var(--ink-soft); text-wrap: pretty; }

/* The change: a signed number, teal only when it grew, and its unit under it. */
.climb-change { display: flex; flex-direction: column; align-items: flex-end; text-align: end; }
.climb-change b { font-size: 28px; font-weight: 700; letter-spacing: -.03em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.climb-change.grew b { color: var(--grow); }
.climb-change span { font-size: 13px; color: var(--ink-soft); }

/* ═══════════════════════════════════════════════════════════ parcels ══
   A tape strip down the middle and a darker bottom edge, so each reads as
   a box. The edge is mixed rather than --kraft-side, which in the light
   mode is --parcel itself. Last month's count is the same kraft at half
   opacity, as in the hero's pile.                                         */
.climb-pile { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 4px; min-width: 0; }
.climb-pile i {
  display: block;
  flex: none;
  width: 18px;
  height: 15px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent 42%, var(--tape) 42% 58%, transparent 58%), var(--parcel);
  box-shadow: inset 0 -3px 0 color-mix(in srgb, var(--parcel) 78%, #000);
  transition: opacity 240ms ease-out, transform 460ms cubic-bezier(.34, 1.45, .6, 1);
  transition-delay: calc(var(--r, 0) * 80ms + var(--i, 0) * var(--step, 0ms));
}
.climb-pile i.was { opacity: .5; }
.climb-shelf { padding-bottom: 6px; border-bottom: 2px solid var(--line-hi); }
/* Set by home.js only when the list starts below the fold, so the parcels fill once, in view. */
.climb-rows.pre .climb-pile i { opacity: 0; transform: translateY(-8px) scale(.5); transition: none; }

/* ═══════════════════════════════════════════════════════ its months ══ */
.climb-more { grid-column: 2 / -1; margin-top: 10px; font-size: var(--t-small); }
.climb-more summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}
.climb-more summary::-webkit-details-marker { display: none; }
.climb-more summary::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 260ms var(--ease);
}
.climb-more[open] summary::after { transform: translateY(2px) rotate(225deg); }
.climb-more::details-content {
  block-size: 0;
  overflow: clip;
  transition: block-size 320ms var(--ease), content-visibility 320ms allow-discrete;
}
.climb-more[open]::details-content { block-size: auto; }
.climb-more-in { display: grid; gap: 12px; max-width: 48rem; padding-top: 14px; color: var(--ink-soft); }
.climb-more-in p { text-wrap: pretty; }
.climb-more .lc-grid { font-style: normal; }

/* ═══════════════════════════════════════════════════════════════ lock ══
   The rows a stranger is not sent, as rank-only shapes, with the card over
   them. A grid of one cell, so a tall card on a phone grows the lock.     */
.climb-lock { display: grid; border-bottom: 1px solid var(--line); }
.climb-lock > * { grid-area: 1 / 1; }
.climb-ghost { opacity: .3; }
.climb-ghost i { display: block; height: 15px; border-radius: 4px; background: var(--line); }
.ghost-what { display: grid; gap: 12px; }
.ghost-what i:first-child { width: min(220px, 100%); height: 22px; background: var(--line-hi); }
.ghost-what i:last-child { width: min(300px, 100%); height: 12px; }
.ghost-pile i { width: 60%; }
.climb-ghost li:nth-child(even) .ghost-pile i { width: 40%; }
.ghost-change { justify-self: end; }
.ghost-change i { width: 48px; height: 26px; background: var(--line-hi); }

/* Positioned, because the faded rows' opacity lifts them into a layer of their own that would
   otherwise paint over the card. */
.climb-card {
  position: relative;
  z-index: 1;
  align-self: center;
  justify-self: center;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 16px 20px;
  max-width: 540px;
  margin: 16px;
  padding: 26px 28px;
  background: var(--card);
  border: 1px solid var(--line-hi);
  border-radius: 12px;
  box-shadow: var(--lift);
}
.climb-card svg { flex: none; margin-top: 2px; }
.climb-card > div { flex: 1 1 300px; min-width: 0; }
.climb-card-t { font-size: 20px; font-weight: 650; letter-spacing: -.015em; line-height: 1.25; }
.climb-card-t + p { margin: 8px 0 18px; font-size: 15px; color: var(--ink-soft); }
.climb-act { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.climb-act .btn { min-height: 48px; padding-inline: 24px; font-size: 1rem; }
.climb-act span { font-size: 13px; color: var(--ink-soft); }

.climb-foot { padding-top: 20px; font-size: 14px; color: var(--ink-soft); }
.climb-rows + .climb-foot { border-top: 1px solid var(--line); }
.climb-foot a { margin-left: 4px; font-weight: 600; color: var(--ink); }

/* Narrower than a laptop: the rank and one column, the shelf and the change under the sentence. */
@media (max-width: 900px) {
  .climb-row { grid-template-columns: 2.5rem minmax(0, 1fr); gap: 12px 14px; align-items: start; }
  .climb-row > :nth-child(n + 3) { grid-column: 2; }
  .climb-rank { font-size: 30px; }
  .climb-name { font-size: 21px; }
  .climb-change { flex-direction: row; align-items: baseline; gap: 8px; text-align: start; }
  .climb-more { margin-top: 0; }
  .ghost-change { justify-self: start; }
}
