/* fx/stack: owned by the stack task. Stair cards (#como). #historia lives in fx/pecas.css. */

/* ---------- #como: stair cards ---------- */
.st-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: start; padding-top: 4px; }
.st-col {
  --step: 40px;
  margin-top: calc((3 - var(--i)) * var(--step));
  background: var(--surface); border: 1px solid var(--line); border-radius: 28px;
  padding: 20px 20px 20px; box-sizing: border-box; min-width: 0;
  display: flex; flex-direction: column; gap: 0;
}
.st-copy { min-height: 124px; margin-bottom: 30px; }
.st-title { margin: 0 0 8px; font-size: 17px; font-weight: 700; letter-spacing: -.015em; line-height: 1.25; }
.st-text { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink2); }
.st-card {
  position: relative; height: 190px; border-radius: 22px; box-sizing: border-box;
  display: flex; align-items: flex-end; justify-content: space-between; padding: 0 18px 12px 20px;
  color: #fff; transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s;
}
.st-c1 { background: #1f3f78; }
.st-c2 { background: #315ea8; }
.st-c3 { background: #8ab4f8; color: #14171c; }
.st-c4 { background: #f5c26b; color: #14171c; }
.st-num {
  font-family: Inter, -apple-system, BlinkMacSystemFont, system-ui, sans-serif; font-weight: 300;
  font-size: 90px; line-height: .86; letter-spacing: -.05em; font-variant-numeric: tabular-nums;
  margin-left: -4px; padding-bottom: 4px;
}
.st-arr { flex: none; margin-bottom: 14px; opacity: .85; }
.st-ill { position: absolute; z-index: 2; top: -50px; right: -10px; width: 112px; height: 112px; transform: rotate(var(--tilt, 0deg)); pointer-events: none; }
.st-ill img { display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 8px 10px rgba(10, 20, 50, .22)); }
.st-ill img.fx-broken { visibility: hidden; }
@media (hover: hover) and (pointer: fine) {
  .st-card:hover { transform: translateY(-8px); box-shadow: 0 18px 30px rgba(15, 25, 60, .24); }
}
@media (max-width: 1060px) {
  .st-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .st-col { --step: 0px; margin-top: 0; }
  .st-col:nth-child(even) { margin-top: 36px; }
  .st-col:nth-child(n+3) { margin-top: 0; }
  .st-col:nth-child(4) { margin-top: 36px; }
}
@media (max-width: 560px) {
  .st-grid { gap: 12px; }
  .st-col { padding: 14px 14px 14px; border-radius: 24px; }
  .st-col:nth-child(even), .st-col:nth-child(4) { margin-top: 28px; }
  .st-copy { min-height: 150px; margin-bottom: 26px; }
  .st-title { font-size: 15px; }
  .st-text { font-size: 13px; line-height: 1.45; }
  .st-card { height: 138px; border-radius: 18px; padding: 0 12px 8px 14px; }
  .st-num { font-size: 62px; margin-left: -3px; }
  .st-arr { margin-bottom: 10px; }
  .st-ill { width: 76px; height: 76px; top: -36px; right: -6px; }
}

/* ---------- #como: header + mode swap ---------- */
.st-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 32px; margin-bottom: clamp(20px, 3vw, 32px); }
.st-head-t { display: flex; flex-direction: column; gap: 14px; max-width: 600px; min-width: 0; }
.st-head .mode-sw { flex: none; }
.st-title > span, .st-text > span { display: block; }
.st-ill img { position: absolute; inset: 0; }
.st-readme { margin: 22px 0 0; font-size: 14px; font-weight: 600; line-height: 21px; min-height: 21px; }
.st-readme a { color: var(--focus); text-decoration: none; border-bottom: 1px solid color-mix(in srgb, var(--focus) 40%, transparent); padding-bottom: 1px; }
.st-readme a:hover { border-bottom-color: var(--focus); }
.df-eyebrow { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; }
.df-pill { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 700; color: var(--ink2); background: var(--glass); border: 1px solid var(--glassline); white-space: nowrap; }
@media (max-width: 560px) { .st-head .mode-sw { width: 100%; } .st-head .mode-tag { display: none; } .st-head .mode-sw [data-mode-set] { min-width: 0; } }
