/* ═══════════════════════════════════════════════════════════ the list ══
   The front page's list (ClimbList), on the page itself rather than in a
   window: three steps saying how it is made, then per product last month's
   pile beside this month's, 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: grid; gap: 20px; padding-bottom: 28px; }
.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: 62ch; text-wrap: pretty; }
.climb-empty { padding-block: 22px; border-top: 1px solid var(--line); color: var(--ink-soft); max-width: 70ch; }

/* The three steps: soft chips with a chevron between, which shrink and wrap their own words
   before the row breaks. A phone stacks them and drops the chevrons. */
.climb-how {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, max-content));
  gap: 10px 34px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.climb-how li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--tint);
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.35;
}
.climb-how li > svg, .climb-how li > .climb-pile { flex: none; color: var(--ink); }
.climb-how b { color: var(--ink); font-weight: 650; }
.climb-how li + li::before {
  content: "";
  position: absolute;
  left: -22px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-top: 1.5px solid var(--ink-faint);
  border-right: 1.5px solid var(--ink-faint);
  transform: translateY(-50%) rotate(45deg);
}

/* ═══════════════════════════════════════════════════════════════ rows ══
   Name, last month's pile, this month's pile, the change. The heading row
   over the piles shares the grid, so its month names sit over them.       */
.climb-rows, .climb-ghost { list-style: none; margin: 0; padding: 0; }
/* Each row rules itself off above; whichever comes last, the rows or the lock, closes the list. */
.climb-rows:last-child, .climb-lock { border-bottom: 1px solid var(--line); }
.climb-row, .climb-cols {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, .7fr) minmax(0, 1fr) 8.5rem;
  gap: 0 28px;
  align-items: center;
}
.climb-row { padding: 22px 0; border-top: 1px solid var(--line); }
.climb-cols { padding-bottom: 10px; font-size: 13px; font-weight: 600; color: var(--ink-soft); }
/* Arrived at from the hero's "See it in the list": the row lights up once, then settles. */
.climb-row:target { animation: row-lit 1.8s ease-out; }
@keyframes row-lit { from { background: var(--tint, color-mix(in srgb, var(--ink) 7%, transparent)); } }
.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; }

/* 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); }
/* One month: its shelf, and the count at the shelf's end so nobody has to count parcels. */
.climb-month { display: grid; grid-template-columns: minmax(0, auto) auto; justify-content: start; align-items: end; gap: 0 10px; }
.climb-month .climb-shelf { min-height: 23px; }
.climb-count { font-size: 15px; font-weight: 650; line-height: 1; padding-bottom: 8px; font-variant-numeric: tabular-nums; }
/* 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: 1 / -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, under the open rows. A grid of one cell, so a tall card on a phone
   grows the lock.                                                          */
.climb-lock { display: grid; }
.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-pile:nth-child(2) i { width: 30%; }
.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; }

/* Narrower than a laptop: the name, then the two piles side by side, each with its own month
   over it since the heading row goes, then the change. */
@media (max-width: 900px) {
  .climb-cols { display: none; }
  .climb-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px 20px; align-items: end; }
  .climb-what, .climb-change, .ghost-what, .ghost-change { grid-column: 1 / -1; }
  .climb-month::before { content: attr(data-when); grid-column: 1 / -1; padding-bottom: 6px; font-size: 13px; font-weight: 600; color: var(--ink-soft); }
  .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; }
}
/* A phone: the steps stacked without chevrons, and the list closer under the members band, whose
   hairline already parts it from the hero. */
@media (max-width: 700px) {
  .climb-how { grid-template-columns: minmax(0, 1fr); }
  .climb-how li + li::before { display: none; }
  /* No more than three locked shapes: five stood 800px tall on a 375px phone, a whole screen of
     grey. The card's title still says how many are locked. */
  .climb-ghost li:nth-child(n+4) { display: none; }
}
@media (max-width: 560px) { .climb { padding-top: 24px; } }
