/* cp-cushion — the cushion as a stair of ink blocks on green: one block is $100.00,
   it steps up every two clean cycles. Example numbers, marked illustrative. */
#cp-cushion .cu { --bh: clamp(44px, 5.4vw, 72px); --bg: 5px; --cg: clamp(6px, .8vw, 10px);
  margin: 0; width: 100%; max-width: 580px; justify-self: start; color: var(--ink); }

#cp-cushion .cu-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--rule); }
#cp-cushion .cu-ill { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border: 1px solid var(--ink); font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; line-height: 1; }
#cp-cushion .cu-key { display: inline-flex; align-items: center; gap: 9px; font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--fg2); white-space: nowrap; }
#cp-cushion .cu-key i { width: 12px; height: 12px; background: var(--ink); }

/* chart: headroom for the sticker, then four blocks of height ($250.00 a block) */
#cp-cushion .cu-chart { position: relative; margin-top: 24px; padding-top: 96px; }
#cp-cushion .cu-cols { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); column-gap: var(--cg); align-items: end;
  height: calc(4 * var(--bh) + 3 * var(--bg)); border-bottom: 2px solid var(--ink); }
#cp-cushion .cu-col { display: flex; flex-direction: column; justify-content: flex-end; height: 100%; min-width: 0; }
#cp-cushion .cu-stack { display: flex; flex-direction: column-reverse; gap: var(--bg); }
#cp-cushion .cu-b { display: block; height: calc(var(--bh) * var(--f, 1)); background: var(--ink); transform-origin: 50% 100%; }
/* a step's new block reads as new: a paper face on the top block where the level rose */
#cp-cushion .cu-col.is-now .cu-b:last-child { background: var(--green); }
/* part of a block: the step that lands between whole $250.00 blocks */
#cp-cushion .cu-col.is-now .cu-part { background: var(--green); }
/* the streak bonus: a sliver on the last step, and its swatch in the caption */
#cp-cushion .cu-col.is-now .cu-b.cu-bonus { background: var(--paper-3); margin-bottom: calc(-1 * var(--bg)); }
#cp-cushion .cu-cap-r { display: flex; gap: 18px; }
#cp-cushion .cu-cap-b { display: inline-block; width: 10px; height: 10px; margin: 0 7px 0 0; background: var(--paper-3); vertical-align: -1px; }

/* tread values, sitting on the step they belong to */
#cp-cushion .cu-tread { margin-bottom: 10px; font-family: var(--f-mono); font-size: 12.5px; letter-spacing: .02em; line-height: 1; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* the reading: a sticker on the top step */
#cp-cushion .cu-stk { position: absolute; right: 0; top: 0; gap: 18px; padding: 12px 14px 12px 16px; }
#cp-cushion .cu-stk-l { display: grid; gap: 6px; }
#cp-cushion .cu-stk-k { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; line-height: 1; color: var(--ink-70); }
#cp-cushion .cu-stk .sticker-big { font-variant-numeric: tabular-nums; }
#cp-cushion .cu-stk .sticker-big small { font-size: .56em; letter-spacing: -0.02em; }
#cp-cushion .cu-ready { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px 0 8px; border-radius: var(--r-pill); background: var(--ink); color: var(--paper-3); font-size: 14px; font-weight: 500; align-self: flex-end; }
#cp-cushion .cu-ready svg { width: 18px; height: 18px; padding: 2px; border-radius: 50%; background: var(--green-light); color: var(--ink); }

/* cycles along the bottom, each ticked clean */
#cp-cushion .cu-axis { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); column-gap: var(--cg); padding-top: 12px; }
#cp-cushion .cu-c { display: flex; flex-direction: column; align-items: center; gap: 7px; font-family: var(--f-mono); font-size: 12.5px; letter-spacing: .04em; line-height: 1; }
#cp-cushion .cu-c svg { width: 18px; height: 18px; padding: 2.5px; border-radius: 50%; background: var(--ink); color: var(--green-light); }

#cp-cushion .cu-cap { display: flex; justify-content: space-between; gap: 16px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--rule);
  font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--fg2); }

@media (max-width: 900px) {
  #cp-cushion .cu { --bh: clamp(40px, 8vw, 72px); justify-self: stretch; max-width: none; margin-top: 8px; }
}
@media (max-width: 640px) {
  #cp-cushion .cu { --bh: 40px; --bg: 4px; --cg: 5px; }
  #cp-cushion .cu-ill, #cp-cushion .cu-key, #cp-cushion .cu-stk-k, #cp-cushion .cu-cap { font-size: 12.5px; }
  #cp-cushion .cu-chart { margin-top: 20px; padding-top: 88px; }
  #cp-cushion .cu-stk .sticker-big { font-size: 26px; }
  #cp-cushion .cu-c svg { width: 16px; height: 16px; }
}

/* the headline needs a little more room than half to keep "grows with you." on one line */
@media (min-width: 901px) {
  #cp-cushion .cp-split { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
}

@media (max-width: 560px) { #cp-cushion .cu-cap-r { flex-direction: column; align-items: flex-end; gap: 6px; text-align: right; } }
