/* Storefront of the company's services (appstore/index.php), on top of ui.css. */
.as-page { width: 100%; max-width: 1080px; margin: 0 auto; padding-bottom: 8px; }

.as-hero { padding: 36px 16px 8px; }
.as-accent { display: block; width: 40px; height: 4px; margin-bottom: 18px; border-radius: 4px; background: var(--ui-gradient); }
.as-eyebrow { margin-bottom: 10px !important; color: var(--ui-muted); font-size: 14px; font-weight: 600; }
.as-hero h1 { margin-bottom: 12px; font-size: clamp(34px, 9vw, 56px); font-weight: 700; line-height: 1.05; letter-spacing: -0.02em; text-wrap: balance; }
.as-lead { max-width: 52ch; color: var(--ui-muted); font-size: 16px; }

.as-block { margin-top: 32px; padding: 0 16px; }
.as-block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.as-block-head h2 { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.as-muted { color: var(--ui-muted); font-size: 14px; }

/* Shelf with app icons standing on a plank */
.as-shelf { overflow: hidden; padding: 24px 16px 0; border: 1px solid var(--ui-line); border-radius: var(--ui-radius); background: var(--ui-surface); }
.as-slots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 8px; margin: 0; padding: 0; list-style: none; }
.as-slot-item { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.as-slot-item--wide { display: none; }
.as-slot { display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; border: 1px dashed var(--ui-line); border-radius: 15px; background: var(--ui-bg); color: var(--ui-muted); text-decoration: none; }
.as-slot--app { border: 1px solid var(--ui-line); background: var(--ui-surface); box-shadow: 0 8px 18px -12px rgba(22, 22, 26, .45); overflow: hidden; }
/* App icons: an uploaded picture fills the tile; without one, the first letter on the brand gradient */
.as-slot--app img, .as-tile img { display: block; width: 100%; height: 100%; object-fit: cover; }
.as-letter { display: grid; place-items: center; width: 100%; height: 100%; background: var(--ui-gradient); color: #fff; font-weight: 700; font-size: 26px; }
.as-slot-label { display: block; max-width: 100%; margin-top: 6px; overflow: hidden; color: var(--ui-muted); font-size: 12px; white-space: nowrap; text-overflow: ellipsis; }
.as-slot--app + .as-slot-label { color: var(--ui-text); font-weight: 600; }
.as-plank { height: 14px; margin: 22px -16px 0; border-top: 1px solid var(--ui-line); background: linear-gradient(180deg, #e9e9e3, #d3d3cc); box-shadow: 0 12px 16px -12px rgba(22, 22, 26, .28); }

.as-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 24px; padding: 0 16px; }

/* List of all services */
.as-list { margin: 0; padding: 0; overflow: hidden; border: 1px solid var(--ui-line); border-radius: var(--ui-radius); background: var(--ui-surface); list-style: none; }
.as-list li + li { border-top: 1px solid var(--ui-line); }
.as-row { display: flex; align-items: center; gap: 14px; min-height: 72px; padding: 14px 16px; text-decoration: none; }
.as-row:hover { background: var(--ui-bg); }
.as-tile { display: flex; align-items: center; justify-content: center; flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--ui-bg); overflow: hidden; }
.as-tile .as-letter { font-size: 18px; }
.as-row-text { display: flex; flex: 1; flex-direction: column; gap: 2px; min-width: 0; }
.as-row-title { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.as-row-sub { overflow: hidden; color: var(--ui-muted); font-size: 14px; white-space: nowrap; text-overflow: ellipsis; }
.as-badge { flex: none; padding: 3px 8px; border-radius: 999px; background: var(--ui-gradient); color: #fff; font-size: 11px; font-weight: 700; }
.as-chev { flex: none; color: var(--ui-muted); font-size: 14px; }

.as-foot { padding: 40px 16px 48px; color: var(--ui-muted); font-size: 13px; text-align: center; }
.as-foot a { text-decoration: none; }
.as-foot a:hover { color: var(--ui-text); }

@media (prefers-color-scheme: dark) {
  .as-plank { background: linear-gradient(180deg, #2c2f37, #21242a); box-shadow: 0 12px 16px -12px rgba(0, 0, 0, .7); }
}
@media (min-width: 720px) {
  .as-hero { padding: 56px 32px 8px; }
  .as-block { margin-top: 40px; padding: 0 32px; }
  .as-shelf { padding: 28px 24px 0; }
  .as-slots { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .as-slot-item--wide { display: flex; }
  .as-plank { margin: 24px -24px 0; }
  .as-foot { padding: 48px 32px 56px; }
}
