/* The app cards (#2122, #2124): the /apps/ lists and the home page's Apps section (#2125) share them.
   Each card is the design system's sticker card (zz-card lift); --accent is the app's own colour. */
.k-btn { font-weight: 700; border: var(--bw-card) solid var(--line); border-radius: var(--r-pill); padding: 10px 18px; background: var(--accent, var(--pop)); color: var(--on-screen); box-shadow: 3px 3px 0 var(--line); transition: transform .15s, box-shadow .15s; }
.k-btn.ghost { background: var(--card); color: var(--text); }
.k-btn.soon { background: var(--pop); color: var(--on-pop); }
/* #2177, #2183: the platform's mark before the label */
.k-btn:has(.k-ico) { display: inline-flex; align-items: center; gap: 8px; }
.k-ico { width: 1.05em; height: 1.05em; flex: none; fill: currentColor; }
a.k-btn:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--line); }

.k-shelf { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }
.k-tile { position: relative; display: flex; gap: var(--s3); align-items: flex-start; }
.k-tile img { width: 72px; height: 72px; border-radius: 16px; border: var(--bw-card) solid var(--line); flex: none; }
.k-tile h2 { font-size: 24px; font-weight: 800; line-height: 1.2; margin: 0; }
.k-tile p { color: var(--muted); margin: 4px 0 8px; }
.k-tile span { font-family: var(--mono); font-size: 12px; }
/* The name's link covers the card; the card's own buttons sit above it */
.k-open::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.k-open:focus-visible { outline: none; } .k-tile:has(.k-open:focus-visible) { outline: 3px solid var(--pop); outline-offset: 3px; }
.k-tlinks { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s3); }
.k-tile .k-tlinks .k-btn { font-family: var(--display); font-size: 14px; padding: 6px 14px; }
.k-feat { margin-bottom: var(--s4); align-items: center; justify-content: space-between; gap: var(--s4); padding: var(--s4); }
.k-feat-name { display: flex; align-items: center; gap: var(--s3); margin: var(--s2) 0; }
.k-feat-name img { width: 96px; height: 96px; border-radius: 22px; }
.k-feat h2 { font-size: clamp(30px, 4.5vw, 48px); line-height: 1; letter-spacing: -.03em; }
.k-feat p { font-size: 18px; max-width: 46ch; }
.k-tile .k-badge { display: inline-block; font-weight: 700; background: var(--accent); color: var(--on-screen); border: var(--bw-card) solid var(--line); border-radius: var(--r-pill); padding: 2px 10px; }
.k-feat-pics { display: flex; gap: var(--s3); flex: none; }
.k-feat-pics img { width: 150px; height: auto; border-radius: 16px; box-shadow: 3px 3px 0 var(--line); }
.k-feat-pics img:nth-child(1) { transform: rotate(-4deg); } .k-feat-pics img:nth-child(2) { transform: rotate(4deg); margin-top: var(--s4); }
/* Home (#2125): a few apps, then the way to the rest */
.k-more { display: inline-block; margin-top: var(--s4); }

@media (max-width: 760px) {
  .k-shelf { grid-template-columns: 1fr; }
  .k-feat { flex-direction: column; align-items: flex-start; padding: var(--s3); }
  .k-feat-name img { width: 72px; height: 72px; border-radius: 16px; }
  .k-feat-pics img { width: 120px; }
}
