/* Upbase Ứng dụng page. Reuses the tokens and shared classes
   (.section-grid, .reveal, .button, .eyebrow) from upbase-landing.css —
   this file only adds what is specific to the apps catalogue.

   Deliberately compact: a small section title, then a grid of light cards
   (icon, badge, a generic placeholder preview, name, one-line description,
   3 short bullets, one button). No long copy, no per-app illustration. */

/* ---------- Section title ---------- */
.apps-hero { padding-top: 150px; padding-bottom: 20px; }
.apps-hero__title { margin: 0; font-size: clamp(28px, 3.2vw, 38px); letter-spacing: -.03em; font-weight: 800; color: var(--text-on-light); }

/* ---------- Shared bits ---------- */
.apps-icon {
  width: 44px; height: 44px; flex: none; display: grid; place-items: center;
  border-radius: 12px; background: rgba(248, 153, 28, .14); color: var(--orange-text);
}
.apps-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.apps-badge {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 11px; border-radius: 999px; font-size: 10px; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase;
}
.apps-badge i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.apps-badge--live { background: rgba(52, 199, 89, .12); color: #1f8a44; }
.apps-badge--soon { background: rgba(11, 31, 77, .07); color: var(--muted-on-light); }

/* ---------- Card grid ---------- */
.apps-list { padding-top: 10px; padding-bottom: 40px; }
/* align-items:start (not the grid default "stretch") — a card with a real
   cover image (taller than the generic placeholder) must not force every
   other card in its row to stretch and leave blank space at the bottom. */
.apps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: start; }
.apps-card {
  display: grid; gap: 12px; align-content: start;
  padding: 22px; border-radius: 22px; background: var(--white);
  border: 1px solid var(--line);
  transition: box-shadow .3s var(--ease), transform .3s var(--ease);
}
.apps-card:hover { box-shadow: 0 20px 50px rgba(11, 31, 77, .1); transform: translateY(-3px); }
.apps-card__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

/* Generic placeholder preview — identical shapes on every card, standing in
   for a screenshot instead of a per-app illustration to keep in sync. */
.apps-card__preview { display: grid; gap: 8px; padding: 16px; border-radius: 14px; background: var(--paper); }
.apps-card__preview-row { display: flex; gap: 8px; }
.apps-card__preview-bar { display: block; height: 22px; border-radius: 8px; }
.apps-card__preview-bar--dark { width: 46%; background: var(--ink); }
.apps-card__preview-bar--accent { width: 34%; background: var(--orange); }
.apps-card__preview-bar--light { height: 14px; background: rgba(248, 153, 28, .3); }
.apps-card__preview-bar--full { width: 100%; }

/* Real cover image (currently Ecard only) — same slot as the placeholder above. */
/* Fixed aspect ratio, not the image's natural height — without this, a
   card whose image is a different shape ends up a different height and
   the row's bottom edges "jump". 3 of the 4 current images are already
   exactly 2048×768 (8:3); object-fit:cover only has to crop the 4th. */
.apps-card__cover { display: block; width: 100%; aspect-ratio: 8 / 3; object-fit: cover; border-radius: 14px; background: var(--paper); }

.apps-card h2 { margin: 2px 0 0; font-size: 19px; letter-spacing: -.03em; font-weight: 800; color: var(--text-on-light); }
.apps-card__tagline { margin: 0; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--orange-text); }
.apps-card__text { margin: 0; font-size: 14px; line-height: 1.55; color: var(--muted-on-light); }

.apps-card__bullets { margin: 2px 0 0; padding: 0; list-style: none; display: grid; gap: 7px; }
.apps-card__bullets li { position: relative; padding-left: 16px; font-size: 13px; line-height: 1.4; color: var(--text-on-light); }
.apps-card__bullets li::before { content: ""; position: absolute; left: 0; top: .5em; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }

/* Every card's button is the same orange — live vs soon is already
   carried by the badge above, so the button does not need its own
   muted/primary split. */
.apps-card__button {
  margin-top: 6px; display: block; text-align: center; padding: 11px 16px;
  border-radius: 12px; font-size: 14px; font-weight: 700;
  background: var(--orange); color: var(--ink);
  transition: background .25s var(--ease);
}
.apps-card__button:hover { background: var(--orange-hot); }

/* ---------- Closing CTA ---------- */
.apps-cta { padding-top: 40px; padding-bottom: 150px; }
.apps-cta__inner {
  display: grid; gap: 18px; justify-items: center; text-align: center;
  padding: clamp(40px, 5vw, 70px) clamp(24px, 4vw, 60px);
  border-radius: 34px; background: var(--paper); border: 1px solid var(--line);
}
.apps-cta__inner h2 { margin: 0; max-width: 620px; font-size: clamp(26px, 3.4vw, 40px); line-height: 1.15; letter-spacing: -.035em; font-weight: 800; color: var(--text-on-light); }
.apps-cta__inner p { margin: 0; max-width: 560px; font-size: 16px; line-height: 1.6; color: var(--muted-on-light); }
.apps-cta__inner .button { margin-top: 8px; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .apps-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .apps-hero { padding-top: 130px; }
  .apps-grid { grid-template-columns: 1fr; }
  .apps-cta { padding-bottom: 110px; }
}
