/* App detail pages, apps archive and legal pages. */
.app-hero { padding: 40px 0 60px; }
.app-hero-card { display: grid; grid-template-columns: 460px 500px; justify-content: space-between; align-items: center; gap: 30px; padding: 20px 20px 20px 40px; background: #fff; border-radius: 10px; box-shadow: 0 0 30px rgba(0, 0, 0, .1); }
.app-hero-copy h1 { font: 600 36px/1.2 var(--font-alt); color: #000; }
.stars { color: var(--blue); font-size: 18px; letter-spacing: 2px; margin: 12px 0 8px; }
.app-stats { list-style: none; margin: 0 0 20px; padding: 0; font-size: 16px; line-height: 28px; color: #000; }
.app-stats li { display: flex; align-items: center; gap: 8px; }
.app-stats svg, .stat-icon-spacer { width: 14px; height: 14px; flex: none; color: var(--blue); }
.app-hero-img { width: 100%; border-radius: 16px; }
.app-hero-video { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.app-hero-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.app-body { padding-bottom: 60px; }
.app-description { color: rgb(122, 122, 122); font: 400 16px/28px var(--font-alt); margin-bottom: 50px; }
.app-description p { margin: 0 0 14px; }

.screenshots { background: #e3f0fc; border-radius: 10px; padding: 20px 60px 16px; margin-bottom: 50px; }
.screenshots .shot img { width: 100%; max-width: 170px; margin: 0 auto; border-radius: 16px; aspect-ratio: 169 / 300; object-fit: cover; }
.screenshots .carousel-dots { margin-top: 14px; }
.carousel-nav { position: absolute; top: 45%; z-index: 2; width: 32px; height: 32px; padding: 0; border: 0; background: none; color: #000; cursor: pointer; }
.carousel-nav svg { width: 100%; height: 100%; }
.carousel-nav.prev { left: 14px; }
.carousel-nav.next { right: 14px; }

.underlined { font: 700 22px/28.6px var(--font-head); margin-bottom: 40px; position: relative; padding-bottom: 14px; }
.underlined::after { content: ""; position: absolute; left: 0; bottom: 0; width: 40px; height: 3px; background: var(--blue); }
.feature-list { list-style: none; margin: 0 0 50px; padding: 0; }
.feature-list li { position: relative; padding-left: 26px; margin-bottom: 6px; font-size: 16px; font-weight: 400; line-height: 28px; }
.feature-list li::before { content: "✓"; position: absolute; left: 0; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: #6c4cf4; color: #fff; font-size: 10px; line-height: 16px; text-align: center; }
.related-apps .app-card img { border-radius: 10px; }

/* Apps archive (paginated, 6 per page) */
.apps-archive { padding: 30px 0 80px; }
.app-tile-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.app-tile { position: relative; overflow: hidden; }
.app-tile-img img { width: 100%; aspect-ratio: 550 / 626; object-fit: cover; transition: transform .5s; }
.app-tile:hover .app-tile-img img { transform: scale(1.05); }
.app-tile-overlay { position: absolute; left: 20px; right: 20px; bottom: 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; background: #fff; border-radius: 8px; opacity: 0; transform: translateY(20px); transition: .35s; }
.app-tile:hover .app-tile-overlay { opacity: 1; transform: none; }
.app-tile-overlay h3 { font: 600 20px/1.3 var(--font-head); }
.app-tile-overlay h3 a:hover { color: var(--blue); }
.app-tile-arrow { flex: none; width: 40px; height: 40px; line-height: 40px; text-align: center; border-radius: 50%; background: var(--blue); color: #fff; font-size: 18px; }
.pagination { display: flex; justify-content: center; gap: 10px; list-style: none; margin: 50px 0 0; padding: 0; }
.pagination a { display: block; width: 48px; height: 48px; line-height: 48px; text-align: center; border-radius: 50%; background: #f4f4f4; color: #000; font-weight: 600; transition: .2s; }
.pagination li.active a, .pagination a:hover { background: var(--blue); color: #fff; }

/* Legal pages */
.legal { padding: 40px 0 80px; }
.legal-body { color: #000; }
.legal-body h1, .legal-body h2 { font-size: 36px; line-height: 46.8px; font-weight: 700; margin: 30px 0 14px; }
.legal-body h1 { margin-top: 0; }
.legal-body p { margin: 0 0 20px; }
.legal-body a { color: var(--blue); }

@media (max-width: 1100px) {
  .app-hero-card { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767px) {
  .app-hero-card { grid-template-columns: 1fr; padding: 0; gap: 36px; box-shadow: none; border-radius: 0; }
  .app-hero-img, .app-hero-video { order: -1; }
  .app-hero-copy h1 { font-size: 36px; }
  .screenshots { padding: 20px 40px 16px; }
  .app-tile-grid { grid-template-columns: 1fr; }
  .app-tile-overlay { opacity: 1; transform: none; }
  .legal-body h1, .legal-body h2 { font-size: 28px; line-height: 36px; }
}
