/* ==========================================================================
   App Store Pro — Home
   Scope prefix: asp-   |   Tokens: --asp-*
   --------------------------------------------------------------------------
   01 Tokens
   02 Base
   03 Primitives (buttons, icons, tags, ratings)
   04 Header
   05 Hero
   06 Categories
   07 Featured apps
   08 Support CTA
   09 Footer
   10 Responsive
   11 Motion preferences
   ========================================================================== */

/* 01 Tokens ---------------------------------------------------------------- */
:root {
  /* Brand */
  --asp-primary: #351EE0;
  --asp-primary-600: #2B16C4;
  --asp-primary-700: #22109C;
  --asp-primary-100: #E4E0FD;
  --asp-primary-50: #F1EFFE;

  /* Neutrals (indigo-tinted, never pure grey) */
  --asp-ink: #16133A;
  --asp-ink-2: #45426A;
  --asp-muted: #7B7998;
  --asp-line: #E7E5F1;
  --asp-bg: #F6F6FA;
  --asp-surface: #FFFFFF;

  /* Signals — used sparingly */
  --asp-coral: #F0473C;
  --asp-green: #139E6A;
  --asp-amber: #F5A524;

  /* Type */
  --asp-font-head: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --asp-font-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Radius hierarchy: container > panel > card > control */
  --asp-r-container: 32px;
  --asp-r-panel: 24px;
  --asp-r-card: 18px;
  --asp-r-control: 12px;

  /* Elevation (tinted with ink, layered) */
  --asp-shadow-sm: 0 1px 2px rgba(22, 19, 58, .05), 0 2px 6px -2px rgba(22, 19, 58, .06);
  --asp-shadow-md: 0 1px 2px rgba(22, 19, 58, .04), 0 12px 28px -14px rgba(22, 19, 58, .18);
  --asp-shadow-lg: 0 2px 4px rgba(22, 19, 58, .04), 0 28px 60px -24px rgba(22, 19, 58, .28);
  --asp-shadow-brand: 0 10px 24px -10px rgba(53, 30, 224, .55);

  --asp-ease: cubic-bezier(.2, .7, .2, 1);
  --asp-header-h: 76px;
}

/* 02 Base ------------------------------------------------------------------ */
.asp-body {
  font-family: var(--asp-font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--asp-ink-2);
  background: var(--asp-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.asp-body h1, .asp-body h2, .asp-body h3 {
  font-family: var(--asp-font-head);
  color: var(--asp-ink);
  margin: 0;
}
.asp-body a { color: inherit; text-decoration: none; }
.asp-body img { max-width: 100%; display: block; }
.asp-body :focus-visible {
  outline: 2px solid var(--asp-primary);
  outline-offset: 3px;
  border-radius: 8px;
}
html { scroll-padding-top: calc(var(--asp-header-h) + 16px); }

.asp-skip {
  position: absolute; left: 16px; top: -60px; z-index: 2000;
  background: var(--asp-ink); color: #fff !important;
  padding: 10px 16px; border-radius: var(--asp-r-control);
}
.asp-skip:focus { top: 12px; }

.asp-h2 {
  font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -.03em;
  word-spacing: .04em;
  line-height: 1.12;
}
.asp-h3 {
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.25;
}

.asp-section { padding: 112px 0 0; }
.asp-section--tint { padding-bottom: 8px; }
.asp-section__head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; margin-bottom: 40px;
}
.asp-section__sub { margin: 10px 0 0; color: var(--asp-muted); max-width: 52ch; }

.asp-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 600; color: var(--asp-primary) !important; white-space: nowrap;
}
.asp-link i { font-size: .8em; transition: transform .2s var(--asp-ease); }
.asp-link:hover i { transform: translateX(3px); }

/* 03 Primitives ------------------------------------------------------------ */
.asp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 20px;
  font-family: var(--asp-font-head); font-weight: 700; font-size: .9375rem;
  letter-spacing: -.005em;
  border: 1px solid transparent; border-radius: var(--asp-r-control);
  cursor: pointer; white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s, box-shadow .2s;
}
.asp-btn--primary { background: var(--asp-primary); color: #fff !important; box-shadow: var(--asp-shadow-brand); }
.asp-btn--primary:hover { background: var(--asp-primary-600); }
.asp-btn--primary:active { background: var(--asp-primary-700); }
.asp-btn--soft { background: var(--asp-primary-50); color: var(--asp-primary) !important; }
.asp-btn--soft:hover { background: var(--asp-primary-100); }
.asp-btn--light { background: #fff; color: var(--asp-ink) !important; }
.asp-btn--light:hover { background: var(--asp-primary-50); }
.asp-btn--ghost { color: #fff !important; border-color: rgba(255, 255, 255, .28); background: transparent; }
.asp-btn--ghost:hover { border-color: #fff; }

.asp-icon {
  --tile: var(--asp-primary);
  --size: 52px;
  width: var(--size); height: var(--size); flex: 0 0 var(--size);
  display: inline-grid; place-items: center;
  border-radius: 28%;
  background:
    radial-gradient(120% 90% at 20% 0%, rgba(255, 255, 255, .28), transparent 55%),
    var(--tile);
  color: #fff;
  font-size: calc(var(--size) * .44);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), 0 6px 14px -8px var(--tile);
}
.asp-icon--lg { --size: 64px; }
.asp-icon--sm { --size: 40px; }
.asp-icon--xs { --size: 22px; border-radius: 7px; box-shadow: none; }

.asp-tag {
  display: inline-flex; align-items: center; height: 24px; padding: 0 10px;
  border-radius: 999px; font-size: .75rem; font-weight: 500;
  background: var(--asp-primary-50); color: var(--asp-primary);
}

.asp-rating {
  display: inline-flex; align-items: center; gap: 5px;
  height: 30px; padding: 0 10px; border-radius: 999px;
  background: var(--asp-bg); color: var(--asp-ink);
  font-weight: 600; font-size: .875rem;
}
.asp-rating i { color: var(--asp-amber); font-size: .8em; }
.asp-rating--plain { height: auto; padding: 0; background: none; }

.asp-live {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .8125rem; font-weight: 500; color: var(--asp-green);
}
.asp-live span {
  width: 8px; height: 8px; border-radius: 50%; background: var(--asp-green);
  box-shadow: 0 0 0 4px rgba(19, 158, 106, .16);
}

/* 04 Header ---------------------------------------------------------------- */
.asp-header {
  position: sticky; top: 0; z-index: 1030;
  background: rgba(246, 246, 250, .82);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, background-color .25s;
}
.asp-header.is-scrolled { border-bottom-color: var(--asp-line); background: rgba(255, 255, 255, .9); }

.asp-nav {
  height: var(--asp-header-h);
  display: flex; align-items: center; gap: 24px;
}
.asp-brand { display: inline-flex; align-items: center; gap: 11px; flex-shrink: 0; }
.asp-brand__name {
  font-family: var(--asp-font-head); font-weight: 800; font-size: 1.125rem;
  letter-spacing: -.025em; color: var(--asp-ink);
}

.asp-nav__links {
  list-style: none; margin: 0 auto; padding: 4px;
  gap: 2px; background: var(--asp-surface);
  border: 1px solid var(--asp-line); border-radius: 999px;
}
.asp-nav__links a {
  display: block; padding: 8px 18px; border-radius: 999px;
  font-size: .9375rem; font-weight: 500; color: var(--asp-ink-2);
  transition: color .2s, background-color .2s;
}
.asp-nav__links a:hover { color: var(--asp-ink); background: var(--asp-bg); }
.asp-nav__links a.is-active { color: #fff; background: var(--asp-ink); }

.asp-nav__actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.asp-nav__links + .asp-nav__actions { margin-left: 0; }

.asp-icon-btn {
  position: relative; display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: var(--asp-r-control);
  background: var(--asp-surface); border: 1px solid var(--asp-line);
  color: var(--asp-ink); font-size: 1.05rem; cursor: pointer;
  transition: border-color .2s;
}
.asp-icon-btn:hover { border-color: var(--asp-primary-100); color: var(--asp-primary); }
.asp-count {
  position: absolute; top: -6px; right: -6px; min-width: 19px; height: 19px; padding: 0 5px;
  display: grid; place-items: center; border-radius: 999px;
  background: var(--asp-coral); color: #fff; font-size: .6875rem; font-weight: 600;
  border: 2px solid var(--asp-bg);
}
.asp-dot {
  position: absolute; top: 9px; right: 10px; width: 8px; height: 8px; border-radius: 50%;
  background: var(--asp-coral); border: 2px solid #fff;
}
.asp-wallet {
  align-items: center; gap: 8px; height: 42px; padding: 0 14px;
  border-radius: var(--asp-r-control); background: var(--asp-surface);
  border: 1px solid var(--asp-line); font-weight: 600; color: var(--asp-ink);
  font-variant-numeric: tabular-nums;
}
.asp-wallet i { color: var(--asp-green); }
.asp-avatar { position: relative; display: block; margin-left: 4px; text-decoration: none !important; }
.asp-avatar img {
  width: 42px; height: 42px; border-radius: 50%; object-fit: cover;
  background: var(--asp-primary-100); border: 2px solid #fff; box-shadow: var(--asp-shadow-sm);
}
.asp-avatar__chip {
  width: 42px; height: 42px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--asp-primary), #6E5CE8);
  color: #ffffff !important; font-family: var(--asp-font-head);
  font-weight: 700; font-size: 1.0625rem; letter-spacing: -0.02em;
  border: 2px solid #ffffff; box-shadow: var(--asp-shadow-sm);
  text-transform: uppercase; user-select: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.asp-avatar:hover .asp-avatar__chip {
  transform: scale(1.05);
  box-shadow: var(--asp-shadow-brand);
}
.asp-avatar__tag {
  position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%);
  padding: 1px 6px; border-radius: 6px; font-size: .625rem; font-weight: 700;
  font-family: var(--asp-font-head); background: var(--asp-primary); color: #fff;
  border: 2px solid #fff;
}

.asp-offcanvas { font-family: var(--asp-font-body); }
.asp-offcanvas__links { list-style: none; padding: 0; margin: 0; }
.asp-offcanvas__links a {
  display: block; padding: 14px 4px; border-bottom: 1px solid var(--asp-line);
  font-family: var(--asp-font-head); font-weight: 700; font-size: 1.25rem; color: var(--asp-ink);
}

/* 05 Hero ------------------------------------------------------------------ */
.asp-hero { padding-top: 12px; }

.asp-hero__panel {
  position: relative; overflow: hidden; isolation: isolate;
  padding: 72px 64px 168px;
  border-radius: var(--asp-r-container);
  background: var(--asp-primary);
  color: rgba(255, 255, 255, .82);
}
.asp-hero__topo {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1;
  fill: none; stroke: rgba(255, 255, 255, .13); stroke-width: 1;
}
.asp-hero__topo use { vector-effect: non-scaling-stroke; }

.asp-hero__title {
  color: #fff !important;
  font-size: clamp(2.375rem, 1.3rem + 3.6vw, 4.25rem);
  font-weight: 800; line-height: 1.02; letter-spacing: -.04em; word-spacing: .06em;
  max-width: 13ch;
  text-wrap: balance;
}
.asp-hero__lead { margin: 24px 0 0; font-size: 1.125rem; max-width: 50ch; }

.asp-search {
  display: flex; align-items: center; gap: 0;
  margin-top: 36px; padding: 6px; max-width: 620px;
  background: #fff; border-radius: 16px;
  box-shadow: 0 20px 40px -20px rgba(10, 4, 80, .55);
}
.asp-search__select {
  flex: 0 0 auto; height: 50px; padding: 0 34px 0 14px;
  border: 0; border-right: 1px solid var(--asp-line); border-radius: 0;
  font: 500 .9375rem var(--asp-font-body); color: var(--asp-ink);
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2316133A' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 14px center;
  appearance: none; cursor: pointer;
}
.asp-search__input {
  flex: 1 1 auto; min-width: 0; height: 50px; padding: 0 16px;
  border: 0; background: transparent; color: var(--asp-ink);
  font: 400 1rem var(--asp-font-body);
}
.asp-search__input::placeholder { color: var(--asp-muted); }
.asp-search__input:focus, .asp-search__select:focus { outline: none; }
.asp-search:focus-within { box-shadow: 0 0 0 4px rgba(255, 255, 255, .28), 0 20px 40px -20px rgba(10, 4, 80, .55); }
.asp-search__btn { height: 50px; padding: 0 26px; flex-shrink: 0; box-shadow: none; }

.asp-hero__popular {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin-top: 18px; font-size: .875rem;
}
.asp-hero__popular span { color: rgba(255, 255, 255, .65); margin-right: 2px; }
.asp-hero__popular button {
  padding: 5px 12px; border-radius: 999px; cursor: pointer;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18);
  color: #fff; font: inherit; transition: background-color .2s;
}
.asp-hero__popular button:hover { background: rgba(255, 255, 255, .2); }

/* Hero Phone Mockup */
.asp-hero__mock {
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  max-width: 100%;
}
.asp-hero__mock-img {
  display: block;
  max-height: 480px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 25px 45px rgba(10, 4, 80, 0.45));
  transition: transform .35s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}
.asp-hero__mock-img:hover {
  transform: translateY(-8px) scale(1.02);
}

/* App of the day */
.asp-aotd {
  margin-left: auto; max-width: 440px;
  padding: 24px; border-radius: var(--asp-r-panel);
  background: #fff; color: var(--asp-ink-2);
  box-shadow: 0 30px 60px -30px rgba(10, 4, 80, .7);
}
.asp-aotd__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.asp-aotd__label {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--asp-font-head); font-weight: 700; font-size: .875rem; color: var(--asp-primary);
}
.asp-aotd__timer {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px; border-radius: 999px; background: var(--asp-ink); color: #fff;
  font-size: .8125rem; font-weight: 500; font-variant-numeric: tabular-nums;
}
.asp-aotd__app { display: flex; align-items: center; gap: 14px; margin-top: 22px; }
.asp-aotd__app > div { flex: 1; min-width: 0; }
.asp-aotd__name { font-size: 1.5rem; font-weight: 800; letter-spacing: -.03em; }
.asp-aotd__dev { margin: 2px 0 0; font-size: .875rem; color: var(--asp-muted); }
.asp-aotd__dev i { color: var(--asp-primary); font-size: .85em; }

.asp-aotd__chart {
  margin-top: 20px; padding: 14px 14px 10px;
  border-radius: var(--asp-r-card); background: var(--asp-bg);
}
.asp-aotd__chart-head, .asp-aotd__chart-foot {
  display: flex; justify-content: space-between; gap: 8px; font-size: .8125rem;
}
.asp-aotd__chart-head > span:first-child { color: var(--asp-ink); font-weight: 500; }
.asp-aotd__chart svg { display: block; width: 100%; height: 70px; margin: 10px 0 6px; }
.asp-aotd__chart-foot { color: var(--asp-muted); font-variant-numeric: tabular-nums; }

.asp-aotd__buy {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 20px; padding-top: 18px; border-top: 1px dashed var(--asp-line);
}
.asp-price {
  font-family: var(--asp-font-head); font-size: 1.625rem; font-weight: 800;
  letter-spacing: -.03em; color: var(--asp-ink);
}
.asp-price small { font-size: .875rem; font-weight: 600; color: var(--asp-muted); letter-spacing: 0; }
.asp-price-was { margin-left: 6px; font-size: .9375rem; color: var(--asp-muted); }

/* Shelf — cards overhang the panel */
.asp-shelf {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; align-items: end;
  margin: -120px 40px 0;
}
.asp-shelf__card {
  display: flex; flex-direction: column; gap: 10px;
  padding: 20px; border-radius: var(--asp-r-panel);
  background: #fff; box-shadow: var(--asp-shadow-lg);
  border: 1px solid rgba(231, 229, 241, .7);
  transition: box-shadow .25s var(--asp-ease), border-color .25s;
}
.asp-shelf__card:hover { border-color: var(--asp-primary-100); box-shadow: 0 30px 60px -24px rgba(53, 30, 224, .35); }
.asp-shelf__card--lead { padding-top: 28px; padding-bottom: 28px; }
.asp-shelf__name {
  margin-top: 6px; font-family: var(--asp-font-head); font-weight: 700; font-size: 1.0625rem;
  letter-spacing: -.02em; color: var(--asp-ink);
}
.asp-shelf__meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.asp-shelf__foot {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 12px; margin-top: 2px; border-top: 1px solid var(--asp-line);
  font-weight: 600; color: var(--asp-ink); font-variant-numeric: tabular-nums;
}
.asp-shelf__foot i {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--asp-primary-50); color: var(--asp-primary); font-size: .8rem;
}
.asp-shelf__card:hover .asp-shelf__foot i { background: var(--asp-primary); color: #fff; }

.asp-hero__trust {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  margin-top: 36px; text-align: left;
}
.asp-hero__trust p { margin: 0; font-size: .9375rem; max-width: 60ch; }
.asp-hero__trust strong { color: var(--asp-ink); }
.asp-stack { display: flex; flex-shrink: 0; }
.asp-stack img {
  width: 34px; height: 34px; border-radius: 50%; object-fit: cover;
  border: 2px solid var(--asp-bg); background: var(--asp-primary-100);
}
.asp-stack img + img { margin-left: -10px; }

/* 06 Categories ------------------------------------------------------------ */
.asp-cats {
  display: grid; grid-template-columns: 300px 1fr; gap: 24px; align-items: stretch;
}
.asp-cats__list {
  display: flex; flex-direction: column; gap: 4px;
  padding: 10px; border-radius: var(--asp-r-panel);
  background: var(--asp-surface); border: 1px solid var(--asp-line);
}
.asp-cats > * { min-width: 0; }
.asp-cats__tabs { display: flex; flex-direction: column; gap: 4px; }
.asp-cats__tab {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 12px; border: 0; border-radius: 14px; background: transparent;
  text-align: left; cursor: pointer; color: var(--asp-ink-2);
  transition: background-color .2s, color .2s;
}
.asp-cats__tab:hover { background: var(--asp-bg); color: var(--asp-ink); }
.asp-cats__glyph {
  display: grid; place-items: center; width: 40px; height: 40px; flex-shrink: 0;
  border-radius: 12px; background: var(--asp-bg); color: var(--asp-ink); font-size: 1.05rem;
  transition: background-color .2s, color .2s;
}
.asp-cats__label { flex: 1; font-family: var(--asp-font-head); font-weight: 600; font-size: .9875rem; letter-spacing: -.01em; }
.asp-cats__count { font-size: .8125rem; color: var(--asp-muted); font-variant-numeric: tabular-nums; }
.asp-cats__tab.is-active { background: var(--asp-primary-50); color: var(--asp-primary); }
.asp-cats__tab.is-active .asp-cats__glyph { background: var(--asp-primary); color: #fff; }
.asp-cats__tab.is-active .asp-cats__count { color: var(--asp-primary); }

.asp-cats__note {
  margin-top: auto; padding: 16px 12px 8px; font-size: .875rem; color: var(--asp-muted);
  border-top: 1px dashed var(--asp-line);
}
.asp-cats__note a { color: var(--asp-primary); font-weight: 600; }
.asp-cats__panels { min-width: 0; }
.asp-cat {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; height: 100%;
  border-radius: var(--asp-r-panel); overflow: hidden;
  background: var(--asp-surface); border: 1px solid var(--asp-line);
}
.asp-cat[hidden] { display: none; }
.asp-cat.is-active { animation: aspFade .35s var(--asp-ease); }
.asp-cat__media { position: relative; margin: 0; min-height: 360px; background: var(--asp-primary-100); }
.asp-cat__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.asp-cat__media figcaption {
  position: absolute; left: 16px; bottom: 16px; right: 16px; width: fit-content;
  padding: 8px 12px; border-radius: 10px; font-size: .8125rem; color: #fff;
  background: rgba(22, 19, 58, .55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.asp-cat__body { padding: 36px; display: flex; flex-direction: column; }
.asp-cat__body > p { margin: 12px 0 0; max-width: 46ch; }
.asp-cat__apps { list-style: none; margin: 24px 0 28px; padding: 0; }
.asp-cat__apps li {
  display: flex; align-items: center; gap: 12px; padding: 11px 0;
  border-top: 1px solid var(--asp-line);
}
.asp-cat__apps li:last-child { border-bottom: 1px solid var(--asp-line); }
.asp-cat__apps li > span:nth-child(2) { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.asp-cat__apps b { font-family: var(--asp-font-head); font-weight: 700; color: var(--asp-ink); letter-spacing: -.01em; }
.asp-cat__apps small { color: var(--asp-muted); font-size: .8125rem; }
.asp-cat__body .asp-btn { margin-top: auto; align-self: flex-start; }

@keyframes aspFade { from { opacity: 0; } to { opacity: 1; } }

/* 07 Featured apps --------------------------------------------------------- */
.asp-board {
  position: relative; margin-top: 68px;
  padding: 76px 40px 40px;
  border-radius: var(--asp-r-container);
  background: var(--asp-surface); border: 1px solid var(--asp-line);
}
.asp-filter {
  position: absolute; top: 0; left: 40px; right: 40px; transform: translateY(-50%);
  display: flex; align-items: center; gap: 10px; padding: 10px;
  background: #fff; border-radius: 20px; border: 1px solid var(--asp-line);
  box-shadow: var(--asp-shadow-md);
}
.asp-filter__pills {
  flex: 1; min-width: 0; display: flex; gap: 8px;
  overflow-x: auto; scrollbar-width: none;
}
.asp-filter__pills::-webkit-scrollbar { display: none; }
.asp-pill {
  flex-shrink: 0; height: 42px; padding: 0 20px; border-radius: var(--asp-r-control);
  border: 0; background: var(--asp-bg); color: var(--asp-ink-2);
  font: 500 .9375rem var(--asp-font-body); cursor: pointer;
  transition: background-color .2s, color .2s;
}
.asp-pill:hover { color: var(--asp-ink); background: var(--asp-primary-50); }
.asp-pill.is-active { background: var(--asp-primary); color: #fff; box-shadow: var(--asp-shadow-brand); }
.asp-filter__more {
  flex-shrink: 0; width: 42px; height: 42px; border-radius: var(--asp-r-control);
  border: 0; background: var(--asp-ink); color: #fff; cursor: pointer;
}

/* Spotlight */
.asp-spot {
  position: relative; padding: 40px 72px 40px 40px;
  border-radius: var(--asp-r-panel); background: var(--asp-bg);
  overflow: hidden;
}
.asp-spot__slide {
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center;
  min-height: 300px;
}
.asp-spot__slide[hidden] { display: none; }
.asp-spot__slide.is-active { animation: aspFade .45s var(--asp-ease); }
.asp-spot__kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .875rem; font-weight: 500; color: var(--asp-ink-2);
}
.asp-spot__name {
  margin-top: 14px !important;
  font-size: clamp(2.5rem, 1.6rem + 2.6vw, 3.75rem);
  font-weight: 800; letter-spacing: -.05em; line-height: .95;
}
.asp-spot__copy > p { margin: 18px 0 0; max-width: 40ch; }
.asp-spot__buy {
  display: inline-flex; align-items: center;
  margin-top: 26px;
}
.asp-spot__buy .asp-btn {
  box-shadow: var(--asp-shadow-brand);
}

.asp-spot__rail {
  position: absolute; right: 30px; top: 40px; bottom: 76px;
  display: flex; flex-direction: column; gap: 8px;
}
.asp-spot__rail button {
  flex: 1; width: 16px; padding: 0 6px; border: 0; background: transparent; cursor: pointer;
}
.asp-spot__rail span {
  position: relative; display: block; width: 4px; height: 100%; border-radius: 4px;
  background: var(--asp-line); overflow: hidden;
}
.asp-spot__rail span::after {
  content: ""; position: absolute; inset: 0; background: var(--asp-primary);
  transform: scaleY(0); transform-origin: top;
}
.asp-spot__rail button.is-done span::after { transform: scaleY(1); }
.asp-spot__rail button.is-active span::after { animation: aspRail var(--asp-spot-dur, 6s) linear forwards; }
.asp-spot.is-paused .asp-spot__rail button.is-active span::after { animation-play-state: paused; }
.asp-spot.is-static .asp-spot__rail button.is-active span::after { animation: none; transform: scaleY(1); }
@keyframes aspRail { to { transform: scaleY(1); } }
.asp-spot__count {
  position: absolute; right: 22px; bottom: 40px;
  font-size: .875rem; color: var(--asp-muted); font-variant-numeric: tabular-nums;
}
.asp-spot__count b { color: var(--asp-ink); font-weight: 600; }

/* Spotlight mock visuals */
.asp-mock {
  position: relative; width: 100%; max-width: 320px; margin-left: auto;
  padding: 18px; border-radius: 20px; background: #fff; box-shadow: var(--asp-shadow-lg);
  font-size: .8125rem;
}
.asp-mock--photo { padding: 10px; }
.asp-mock--photo img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px;
  background: linear-gradient(160deg, #c9c2f7, #6e5ce8);
}
.asp-mock__panel {
  position: absolute; left: -28px; bottom: -22px; width: 200px;
  padding: 12px 14px; border-radius: 14px; background: var(--asp-ink); color: #fff;
  box-shadow: var(--asp-shadow-lg);
}
.asp-adj { display: grid; grid-template-columns: 1fr auto; row-gap: 5px; padding: 5px 0; }
.asp-adj span { color: rgba(255, 255, 255, .7); }
.asp-adj b { font-weight: 600; font-variant-numeric: tabular-nums; }
.asp-adj i {
  grid-column: 1 / -1; position: relative; height: 3px; border-radius: 3px;
  background: rgba(255, 255, 255, .18);
}
.asp-adj i::after {
  content: ""; position: absolute; top: 50%; left: var(--v); width: 11px; height: 11px;
  border-radius: 50%; background: #fff; transform: translate(-50%, -50%);
}
.asp-adj i::before { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--v); background: var(--asp-amber); border-radius: 3px; }

.asp-mock--finance { display: grid; grid-template-columns: 112px 1fr; gap: 14px; align-items: center; }
.asp-donut, .asp-rings { width: 112px; height: 112px; }
.asp-mock__fig { display: flex; flex-direction: column; }
.asp-mock__fig b { font-family: var(--asp-font-head); font-weight: 800; font-size: 1.5rem; letter-spacing: -.03em; color: var(--asp-ink); line-height: 1.1; }
.asp-mock__fig span { color: var(--asp-muted); }
.asp-mock__legend { grid-column: 1 / -1; list-style: none; margin: 4px 0 0; padding: 0; }
.asp-mock__legend li {
  display: flex; align-items: center; gap: 8px; padding: 8px 0; border-top: 1px solid var(--asp-line);
  color: var(--asp-ink-2);
}
.asp-mock__legend i { width: 8px; height: 8px; border-radius: 2px; background: var(--c); }
.asp-mock__legend span { margin-left: auto; color: var(--asp-ink); font-weight: 600; font-variant-numeric: tabular-nums; }

.asp-mock__store span { color: var(--asp-ink); font-weight: 500; }
.asp-mock__store i {
  display: block; position: relative; height: 8px; margin-top: 8px; border-radius: 8px;
  background: var(--asp-primary-50); overflow: hidden;
}
.asp-mock__store i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--v); background: var(--asp-primary); border-radius: 8px; }
.asp-files { list-style: none; margin: 14px 0 0; padding: 0; }
.asp-files li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--asp-line); }
.asp-files i { font-size: 1.1rem; color: #3B82F6; }
.asp-files span { flex: 1; color: var(--asp-ink); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.asp-files small { color: var(--asp-muted); }

.asp-mock--fit { display: grid; grid-template-columns: 112px 1fr; gap: 14px; align-items: center; }
.asp-mock__week {
  grid-column: 1 / -1; display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px;
  height: 84px; align-items: end; padding-top: 8px; border-top: 1px solid var(--asp-line);
}
.asp-mock__week span {
  position: relative; height: 100%; display: flex; align-items: flex-end; justify-content: center;
  padding-bottom: 0; font-size: .6875rem; color: var(--asp-muted);
}
.asp-mock__week span::before {
  content: ""; position: absolute; left: 20%; right: 20%; bottom: 18px;
  height: calc((100% - 18px) * var(--h) / 100); min-height: 3px;
  border-radius: 4px; background: var(--asp-primary-100);
}
.asp-mock__week span.is-today { color: var(--asp-ink); font-weight: 600; }
.asp-mock__week span.is-today::before { background: #FF6A3D; }

/* App grid */
.asp-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr));
  gap: 16px; margin-top: 28px;
}
.asp-card {
  display: flex; flex-direction: column;
  padding: 16px; border-radius: var(--asp-r-card);
  border: 1px solid var(--asp-line); background: #fff;
  transition: border-color .2s;
}
.asp-card:hover { border-color: var(--asp-primary-100); }
.asp-card[hidden] { display: none; }
.asp-card__top { display: flex; justify-content: space-between; align-items: flex-start; }
.asp-card__name { margin-top: 16px !important; font-size: 1.0625rem; font-weight: 700; letter-spacing: -.02em; }
.asp-card__dev { margin: 2px 0 0; font-size: .8125rem; color: var(--asp-muted); }
.asp-card__meta {
  display: flex; justify-content: space-between; align-items: center;
  margin: 14px 0; font-size: .875rem; font-weight: 600; color: var(--asp-ink);
  font-variant-numeric: tabular-nums;
}
.asp-heart {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--asp-line); background: #fff; color: var(--asp-muted); cursor: pointer;
  transition: color .2s, border-color .2s, background-color .2s;
}
.asp-heart:hover { color: var(--asp-coral); }
.asp-heart.is-on { color: var(--asp-coral); background: #FFF1EF; border-color: #FFD9D4; }
.asp-heart.is-pop i { animation: aspPop .3s var(--asp-ease); }
@keyframes aspPop { 50% { transform: scale(1.3); } }

.asp-btn--get {
  height: 38px; width: 100%; margin-top: auto; font-size: .875rem;
  background: var(--asp-primary-50); color: var(--asp-primary);
}
.asp-btn--get:hover { background: var(--asp-primary); color: #fff; }
.asp-btn--get.is-loading { pointer-events: none; color: var(--asp-primary); background: var(--asp-primary-50); }
.asp-btn--get.is-done { background: var(--asp-ink); color: #fff; }
.asp-grid__empty {
  margin: 28px 0 0; padding: 28px; text-align: center; border-radius: var(--asp-r-card);
  border: 1px dashed var(--asp-line); color: var(--asp-muted);
}
.asp-grid__empty a { color: var(--asp-primary); font-weight: 600; }

/* Offers */
.asp-offers { position: sticky; top: calc(var(--asp-header-h) + 20px); display: flex; flex-direction: column; gap: 16px; }
.asp-offers__head { display: flex; justify-content: space-between; align-items: center; }
.asp-pager { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; color: var(--asp-ink); font-variant-numeric: tabular-nums; }
.asp-pager button {
  width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px;
  border: 0; background: transparent; color: var(--asp-ink); cursor: pointer;
}
.asp-pager button:hover { background: var(--asp-bg); }
.asp-offers__page { display: flex; flex-direction: column; gap: 16px; }
.asp-offers__page[hidden] { display: none; }
.asp-offers__page.is-active { animation: aspFade .35s var(--asp-ease); }
.asp-offer {
  display: flex; flex-direction: column; gap: 10px;
  padding: 10px 10px 16px; border-radius: var(--asp-r-card);
  background: var(--asp-bg); transition: background-color .2s;
}
.asp-offer:hover { background: var(--asp-primary-50); }
.asp-offer__media { position: relative; display: block; border-radius: 14px; overflow: hidden; aspect-ratio: 16 / 9; background: var(--asp-primary-100); }
.asp-offer__media img { width: 100%; height: 100%; object-fit: cover; }
.asp-offer__off {
  position: absolute; top: 10px; left: 10px; padding: 3px 9px; border-radius: 999px;
  background: var(--asp-coral); color: #fff; font-size: .75rem; font-weight: 600;
}
.asp-offer__rate {
  position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 12px; border-radius: 10px;
  background: rgba(22, 19, 58, .55); color: #fff; font-weight: 600; font-size: .875rem;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.asp-offer__rate i { color: var(--asp-amber); font-size: .8em; }
.asp-offer__row { display: flex; justify-content: space-between; align-items: center; padding: 0 6px; }
.asp-offer__row b { font-family: var(--asp-font-head); color: var(--asp-ink); letter-spacing: -.01em; }
.asp-offer__row > i {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px;
  background: #FFF1EF; color: var(--asp-coral);
}
.asp-offer__row--muted { font-size: .875rem; color: var(--asp-muted); }
.asp-offer__row--muted s { color: var(--asp-muted); }
.asp-offer__row--muted b { font-size: 1rem; font-variant-numeric: tabular-nums; }

/* 08 Support CTA ----------------------------------------------------------- */
.asp-support {
  position: relative; overflow: hidden;
  padding: 64px; border-radius: var(--asp-r-container);
  background: var(--asp-ink); color: rgba(255, 255, 255, .74);
}
.asp-support::before {
  content: ""; position: absolute; width: 520px; height: 520px; right: -140px; top: -220px;
  border-radius: 50%; border: 1px solid rgba(255, 255, 255, .07);
  box-shadow: 0 0 0 60px rgba(255, 255, 255, .02), 0 0 0 120px rgba(255, 255, 255, .015);
}
.asp-support > .row { position: relative; }
.asp-support__title { color: #fff !important; max-width: 17ch; text-wrap: balance; }
.asp-support__lead { margin: 18px 0 0; font-size: 1.0625rem; max-width: 46ch; }
.asp-support .asp-btn--light i { color: var(--asp-primary); }
.asp-support__topics {
  list-style: none; margin: 36px 0 0; padding: 0;
  border-top: 1px solid rgba(255, 255, 255, .1);
}
.asp-support__topics a {
  display: flex; align-items: center; gap: 12px; padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .1); color: #fff;
  transition: color .2s;
}
.asp-support__topics a:hover { color: #C9C1FF; }
.asp-support__topics i { color: #9C8CFF; }

.asp-support__visual { position: relative; padding-left: 48px; padding-bottom: 36px; }
.asp-support__visual img {
  width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: var(--asp-r-panel);
  background: #2A2660;
}
.asp-chat {
  position: absolute; left: 0; bottom: 0; width: min(320px, 82%);
  padding: 18px; border-radius: 20px; background: #fff; color: var(--asp-ink-2);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .5);
}
.asp-chat__who { display: flex; flex-direction: column; gap: 4px; }
.asp-chat__who b { font-family: var(--asp-font-head); color: var(--asp-ink); }
.asp-chat p {
  margin: 12px 0 0; padding: 12px 14px; border-radius: 4px 14px 14px 14px;
  background: var(--asp-bg); font-size: .9375rem; color: var(--asp-ink);
}
.asp-chat__chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.asp-chat__chips span {
  padding: 6px 12px; border-radius: 999px; font-size: .8125rem; font-weight: 500;
  border: 1px solid var(--asp-primary-100); color: var(--asp-primary);
}

/* 09 Footer ---------------------------------------------------------------- */
.asp-footer {
  margin-top: 112px; padding: 72px 0 0;
  background: var(--asp-surface); border-top: 1px solid var(--asp-line);
}
.asp-footer__about { margin: 18px 0 0; max-width: 36ch; }
.asp-footer__h { font-size: .9375rem; font-weight: 700; letter-spacing: -.01em; margin-bottom: 16px !important; }
.asp-footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.asp-footer__list a { color: var(--asp-ink-2); transition: color .2s; }
.asp-footer__list a:hover { color: var(--asp-primary); }

.asp-news { margin-top: 28px; }
.asp-news__label { display: block; font-size: .875rem; font-weight: 500; color: var(--asp-ink); margin-bottom: 10px; }
.asp-news__row { display: flex; gap: 8px; }
.asp-news__row input {
  flex: 1; min-width: 0; height: 46px; padding: 0 14px;
  border: 1px solid var(--asp-line); border-radius: var(--asp-r-control);
  font: inherit; color: var(--asp-ink); background: var(--asp-bg);
}
.asp-news__row input:focus { outline: none; border-color: var(--asp-primary); background: #fff; box-shadow: 0 0 0 3px var(--asp-primary-50); }
.asp-news__row input.is-invalid { border-color: var(--asp-coral); }
.asp-news__row .asp-btn { box-shadow: none; }
.asp-news__msg { min-height: 1.4em; margin: 8px 0 0; font-size: .8125rem; }
.asp-news__msg.is-error { color: var(--asp-coral); }
.asp-news__msg.is-ok { color: var(--asp-green); }

.asp-footer__bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  margin-top: 56px; padding: 24px 0 28px; border-top: 1px solid var(--asp-line);
  font-size: .875rem;
}
.asp-footer__bar p { margin: 0; }
.asp-footer__legal { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.asp-footer__legal a:hover { color: var(--asp-primary); }
.asp-footer__social { display: flex; gap: 8px; }
.asp-footer__social a {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px;
  border: 1px solid var(--asp-line); color: var(--asp-ink); transition: border-color .2s, color .2s;
}
.asp-footer__social a:hover { color: var(--asp-primary); border-color: var(--asp-primary-100); }

/* 10 Responsive ------------------------------------------------------------ */
@media (max-width: 1199.98px) {
  .asp-hero__panel { padding: 56px 44px 160px; }
  .asp-shelf { margin: -116px 24px 0; gap: 14px; }
  .asp-spot { padding: 32px 64px 32px 32px; }
  .asp-spot__slide { grid-template-columns: 1fr; min-height: 0; }
  .asp-mock { margin: 8px 0 18px 28px; }
}

@media (max-width: 991.98px) {
  .asp-section { padding-top: 88px; }
  .asp-hero__panel { padding: 48px 32px 150px; }
  .asp-hero__mock { margin: 24px auto 0; text-align: center; }
  .asp-hero__mock-img { max-height: 380px; }
  .asp-aotd { margin: 12px 0 0; max-width: none; }
  .asp-shelf {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 220px;
    margin: -110px 0 0; padding: 0 32px 24px;
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 32px; scrollbar-width: none;
    align-items: stretch;
  }
  .asp-shelf::-webkit-scrollbar { display: none; }
  .asp-shelf__card { scroll-snap-align: start; }
  .asp-shelf__card--lead { padding: 20px; }
  .asp-hero__trust { margin-top: 12px; }

  .asp-cats { grid-template-columns: 1fr; }
  .asp-cats__list { padding: 8px; }
  .asp-cats__tabs { flex-direction: row; overflow-x: auto; scrollbar-width: none; }
  .asp-cats__tabs::-webkit-scrollbar { display: none; }
  .asp-cats__tab { width: auto; flex-shrink: 0; padding: 8px 14px 8px 8px; }
  .asp-cats__glyph { width: 34px; height: 34px; border-radius: 10px; }
  .asp-cats__count, .asp-cats__note { display: none; }

  .asp-board { padding: 64px 24px 24px; }
  .asp-filter { left: 24px; right: 24px; }
  .asp-filter__pills {
    -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent);
            mask-image: linear-gradient(90deg, #000 85%, transparent);
  }
  .asp-offers { position: static; margin-top: 8px; }
  .asp-offers__page { flex-direction: row; }
  .asp-offers__page > * { flex: 1; min-width: 0; }

  .asp-support { padding: 48px 32px; }
}

@media (max-width: 767.98px) {
  .asp-section__head { flex-direction: column; align-items: flex-start; margin-bottom: 28px; }
  .asp-cat { grid-template-columns: 1fr; }
  .asp-cat__media { min-height: 220px; }
  .asp-cat__body { padding: 24px; }
  .asp-offers__page { flex-direction: column; }
}

@media (max-width: 575.98px) {
  :root { --asp-header-h: 66px; --asp-r-container: 24px; }
  .asp-nav { gap: 12px; }
  .asp-nav__actions { gap: 6px; }
  .asp-brand__name { font-size: 1rem; }
  .asp-hero { padding-top: 4px; }
  .asp-hero .container-xxl { padding-left: 10px; padding-right: 10px; }
  .asp-hero__panel { padding: 36px 20px 140px; }
  .asp-hero__mock-img { max-height: 300px; }
  .asp-hero__lead { font-size: 1rem; }
  .asp-search { flex-wrap: wrap; padding: 6px; }
  .asp-search__select { flex: 1 1 100%; border-right: 0; border-bottom: 1px solid var(--asp-line); height: 46px; }
  .asp-search__input { height: 48px; padding: 0 12px; }
  .asp-search__btn { width: 48px; height: 48px; padding: 0; }
  .asp-aotd { padding: 18px; }
  .asp-aotd__top { flex-wrap: wrap; }
  .asp-shelf { padding: 0 20px 24px; grid-auto-columns: 200px; scroll-padding-inline: 20px; }
  .asp-aotd__chart-head { flex-wrap: wrap; }
  .asp-aotd__chart-head > span { white-space: nowrap; }
  .asp-hero__trust { flex-direction: column; text-align: center; padding: 0 12px; }

  .asp-board { padding: 56px 14px 14px; border-radius: 24px; }
  .asp-filter { left: 14px; right: 14px; padding: 8px; border-radius: 16px; }
  .asp-pill { height: 38px; padding: 0 14px; font-size: .875rem; }
  .asp-filter__more { width: 38px; height: 38px; }
  .asp-spot { padding: 24px 44px 24px 20px; }
  .asp-spot__rail { right: 14px; top: 24px; bottom: 64px; }
  .asp-spot__count { right: 10px; bottom: 24px; }
  .asp-spot__buy { padding-left: 14px; gap: 12px; }
  .asp-mock { margin-left: 16px; max-width: none; }
  .asp-mock__panel { left: -16px; width: 180px; }
  .asp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .asp-card { padding: 14px; }
  .asp-icon { --size: 46px; }

  .asp-support { padding: 36px 20px; }
  .asp-support__visual { padding-left: 16px; }
  .asp-footer { margin-top: 88px; }
  .asp-news__row { flex-direction: column; }
}

/* 11 Motion preferences ---------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}
