/* Final storefront refinements layered after the accepted Patch 2 styles. */
.hero-showcase {
  position: relative;
  aspect-ratio: auto;
  display: grid;
  grid-template-rows: auto auto;
}

.hero-showcase::after {
  content: none;
}

.hero-showcase-hit {
  position: absolute;
  inset: 0;
  z-index: 4;
  border-radius: inherit;
  color: inherit;
  text-decoration: none;
}

.hero-showcase-hit:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: -3px;
}

.hero-showcase-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #06111a;
}

.hero-showcase-media .hero-showcase-image {
  position: absolute;
  inset: 0;
  inline-size: 100%;
  block-size: 100%;
  object-fit: contain;
  object-position: center;
  background: #06111a;
  transition: transform 180ms ease;
}

.hero-showcase:hover .hero-showcase-image,
.hero-showcase:focus-within .hero-showcase-image {
  transform: scale(1.006);
}

.hero-showcase-caption {
  position: static;
  inset: auto;
  max-inline-size: none;
  padding: 12px 14px;
  border: 0;
  border-block-start: 1px solid var(--border);
  border-radius: 0;
  background: var(--surface);
  color: var(--text);
  backdrop-filter: none;
}

.hero-showcase-caption span span {
  color: var(--muted);
}

/* Jana Apps keeps a simple favicon, while the visible header uses a richer app-grid mark. */
.brand .brand-mark {
  font-size: 0;
  background: transparent url('/assets/jana-apps-grid.svg') center / contain no-repeat;
  box-shadow: none;
  border-radius: 0;
}

/* Reusable inline vector icons: platform marks remain crisp without icon fonts. */
.platform-icon,
.store-card-action-icon,
.store-card-footer-icon,
.choice-cta-icon,
.back-link-icon,
.storefront-access-icon,
.iphone-shortcut-icon {
  inline-size: 20px;
  block-size: 20px;
  flex: 0 0 auto;
}

/* Apps hero: a single count plus a clear platform guide directly under the intro. */
.storefront-count {
  padding: 11px 17px;
}

.storefront-count strong {
  display: none;
}

.storefront-count span {
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 850;
}

.storefront-hero-copy {
  min-inline-size: 0;
}

.storefront-access {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, .9fr) minmax(0, 1.35fr);
  gap: 10px;
  margin-block-start: 24px;
  max-inline-size: 980px;
}

.storefront-access-item {
  min-inline-size: 0;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 13px 14px;
  border: 1px solid color-mix(in srgb, var(--border) 90%, transparent);
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  box-shadow: 0 10px 28px rgba(18, 48, 74, .07);
}

.storefront-access-item .storefront-access-icon {
  inline-size: 28px;
  block-size: 28px;
  padding: 5px;
  border-radius: 9px;
  background: color-mix(in srgb, var(--accent-soft) 78%, var(--surface));
  color: var(--accent);
}

.storefront-access-item:first-of-type .storefront-access-icon {
  background: color-mix(in srgb, var(--primary) 10%, var(--surface));
  color: var(--primary);
}

.storefront-access-item.iphone .storefront-access-icon {
  background: color-mix(in srgb, var(--text) 8%, var(--surface));
  color: var(--text);
}

.storefront-access-item strong,
.storefront-access-item small {
  display: block;
}

.storefront-access-item strong {
  margin-block-end: 3px;
  font-size: .92rem;
}

.storefront-access-item small {
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.5;
}

/* Available cards do not need an extra status label; title and icon get the visual priority. */
.store-card-heading {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
}

.store-card-title h3 {
  margin-block-start: 0;
}

.featured-shelf-heading > div {
  min-inline-size: 0;
}

.featured-shelf-heading h2 {
  margin-block-start: 0;
}

/* In the featured shelf, real platform destinations are the primary actions. */
.featured-shelf-actions .platform-pill:not(.is-disabled) {
  order: 1;
  border-color: transparent;
  background: var(--primary);
  color: var(--bg);
  box-shadow: 0 10px 24px color-mix(in srgb, var(--primary) 20%, transparent);
}

.featured-shelf-actions .featured-details-link {
  order: 2;
  border-color: var(--border);
  background: var(--surface-soft);
  color: var(--text);
}

.featured-shelf-actions .platform-pill.is-disabled {
  order: 3;
  background: transparent;
}

.platform-pill,
.featured-details-link {
  gap: 9px;
}

.platform-pill .platform-icon,
.featured-details-link .platform-icon {
  inline-size: 19px;
  block-size: 19px;
}

.featured-shelf-actions a:hover {
  transform: translateY(-1px);
}

/* Compact app cards keep details as the main surface and expose direct platform destinations below. */
.store-card {
  display: flex;
  flex-direction: column;
}

.store-card-hit {
  position: relative;
  z-index: 1;
  flex: 1;
  cursor: pointer;
}

.store-card-quick-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 0 18px 18px;
}

.store-card-quick-actions:not(:has(.store-card-action:not([hidden]))) {
  display: none;
}

.store-card-quick-actions:has(.store-card-action[hidden]) .store-card-action:not([hidden]) {
  grid-column: 1 / -1;
}

.store-card-action {
  min-block-size: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  text-align: center;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 850;
  line-height: 1.2;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.store-card-action.store {
  border-color: transparent;
  background: var(--primary);
  color: var(--bg);
}

.store-card-action.web {
  border-color: color-mix(in srgb, var(--accent) 48%, var(--border));
  background: color-mix(in srgb, var(--accent-soft) 74%, var(--surface));
  color: var(--text);
}

.store-card-action:not(.is-disabled):hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(18, 48, 74, 0.12);
}

.store-card-action[hidden] {
  display: none;
}

.store-card:has(.store-card-action.web:not([hidden])) {
  border-color: color-mix(in srgb, var(--accent) 44%, var(--border));
}

.store-card-footer {
  color: var(--muted);
  font-size: 0.9rem;
}

.store-card-footer-icon {
  inline-size: 18px;
  block-size: 18px;
}

/* Product actions use the same icon language; iPhone guidance is explicit only when Web exists. */
.choice-icon {
  display: grid;
  place-items: center;
}

.choice-icon .platform-icon {
  inline-size: 25px;
  block-size: 25px;
}

.choice-cta-icon {
  inline-size: 18px;
  block-size: 18px;
}

.iphone-shortcut-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-block-start: 15px;
  padding: 12px 13px;
  border: 1px solid color-mix(in srgb, var(--border) 88%, transparent);
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface-soft) 76%, transparent);
}

.iphone-shortcut-note p {
  margin: 0;
}

.iphone-shortcut-note strong,
.iphone-shortcut-note span {
  display: block;
}

.iphone-shortcut-note strong {
  margin-block-end: 3px;
  color: var(--text);
}

.iphone-shortcut-note span {
  color: var(--muted);
  font-size: .86rem;
  line-height: 1.55;
}

.iphone-shortcut-icon {
  inline-size: 24px;
  block-size: 24px;
  color: var(--accent);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.back-link-icon {
  inline-size: 18px;
  block-size: 18px;
}

[dir="ltr"] .back-link-icon {
  transform: rotate(180deg);
}

@media (max-width: 980px) {
  .storefront-access {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .storefront-access-item.iphone {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .hero-showcase-caption {
    max-inline-size: none;
    padding: 11px 12px;
  }

  .storefront-count {
    justify-self: start;
  }

  .storefront-access {
    grid-template-columns: 1fr;
    margin-block-start: 19px;
  }

  .storefront-access-item.iphone {
    grid-column: 1;
  }

  .store-card-quick-actions {
    grid-template-columns: 1fr;
    padding: 0 16px 16px;
  }

  .store-card-action,
  .store-card-quick-actions:has(.store-card-action[hidden]) .store-card-action:not([hidden]) {
    grid-column: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-showcase-media .hero-showcase-image,
  .store-card-action,
  .featured-shelf-actions a {
    transition: none;
  }
}
