:root { color-scheme: only light; --bg: #fff; --soft: #f5f5f7; --line: #e6e6e6; --ink: #000; --ink-2: #333; --ink-3: #6e6e6e; --green: #279200; --green-text: #1f7a00; --fill-on: #d4ecc9; --blue: #0a66d8; --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 18px/1.55 var(--sans); -webkit-text-size-adjust: 100%; }
main { max-width: 880px; margin: 0 auto; padding: 32px 16px 80px; }
h1 { font-size: clamp(40px, 9vw, 60px); line-height: 1.02; letter-spacing: -0.025em; margin: 0 0 8px; font-weight: 600; }
.lede { color: var(--ink-2); margin: 0 0 28px; max-width: 34em; }
.apps { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.apps > *, .hero > * { min-width: 0; }
.empty { color: var(--ink-3); }
img.icon { border-radius: 22.5%; box-shadow: 0 2px 10px rgba(20, 24, 60, .18); flex: none; display: block; }

/* Featured banner */
.hero { position: relative; overflow: hidden; border-radius: 28px; color: #fff; padding: 32px; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center;
  background: radial-gradient(120% 140% at 85% 10%, #e08a6a 0%, #5a3d7a 45%, #1a1f45 100%); }
.hero::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(1.5px 1.5px at 12% 20%, #fff8 50%, transparent 51%), radial-gradient(1.5px 1.5px at 40% 12%, #fff6 50%, transparent 51%), radial-gradient(1.5px 1.5px at 28% 62%, #fff5 50%, transparent 51%), radial-gradient(1.5px 1.5px at 8% 80%, #fff6 50%, transparent 51%); pointer-events: none; }
.hero-text { position: relative; z-index: 1; display: grid; gap: 14px; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #ffd6c4; }
.hero-id { display: flex; align-items: center; gap: 16px; }
.hero h2 { margin: 0; font-size: clamp(32px, 6vw, 44px); line-height: 1; letter-spacing: -0.02em; font-weight: 650; }
.hero .maker { color: #e6dcff; }
.hero-tag { margin: 0; font-size: 21px; line-height: 1.35; max-width: 20em; font-weight: 500; }
.hero-cta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.hero-shot { position: relative; z-index: 1; }
img.phone, video.phone { display: block; width: 210px; height: auto; border-radius: 26px; border: 6px solid #0d0f1f; box-shadow: 0 24px 60px rgba(0,0,0,.45); transform: rotate(3deg); }

/* Buttons and badges */
.get { display: inline-flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 700; text-decoration: none; border-radius: 999px; padding: 10px 22px; background: var(--blue); color: #fff; white-space: nowrap; }
.get.light { background: #fff; color: #1a1f45; }
.get:hover { filter: brightness(1.08); }
.badge { display: inline-block; font-size: 13px; font-weight: 600; border-radius: 999px; padding: 3px 10px; background: rgba(255,255,255,.18); color: inherit; white-space: nowrap; }
.listing .badge { background: var(--soft); color: var(--ink-2); }
.badge.live, .listing .badge.live { background: var(--fill-on); color: var(--green-text); }

/* Listing */
.listing { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 4px 2px; }
.listing-head { display: flex; align-items: center; gap: 16px; }
.listing-id { flex: 1; min-width: 0; display: grid; gap: 2px; justify-items: start; }
.listing h3 { margin: 0; font-size: 26px; line-height: 1.1; letter-spacing: -0.01em; font-weight: 650; }
.maker { color: var(--ink-3); font-size: 15px; }
.facts { list-style: none; margin: 0; padding: 12px 0; display: flex; flex-wrap: wrap; gap: 8px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts li { font-size: 14px; font-weight: 600; color: var(--ink-2); padding: 0 14px; border-left: 1px solid var(--line); }
.facts li:first-child { padding-left: 0; border-left: 0; }
.shots { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 10px; -webkit-overflow-scrolling: touch; }
.shots:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 12px; }
img.shot, video.shot { flex: none; width: 220px; height: auto; border-radius: 18px; scroll-snap-align: start; box-shadow: 0 2px 10px rgba(0,0,0,.12); }
.about { margin: 0; color: var(--ink-2); max-width: 40em; }
.note { margin: 0; font-size: 15px; color: var(--ink-3); }
.how { border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; }
.how summary { cursor: pointer; font-weight: 600; }
.how p { margin: 10px 0; color: var(--ink-2); font-size: 16px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin: 4px 0 10px; }
.chip { font-size: 13px; background: var(--soft); border-radius: 8px; padding: 3px 8px; color: var(--ink-2); }
.chip b { font-weight: 600; color: var(--ink); }
.src { font-size: 15px; }

.more { margin-top: 36px; color: var(--ink-2); }
a { color: var(--ink); text-underline-offset: 3px; }
footer { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 15px; }

@media (max-width: 640px) {
  .hero { grid-template-columns: 1fr; padding: 24px 22px 0; }
  .hero-shot { justify-self: center; margin-bottom: -60px; }
  img.phone { width: 190px; transform: rotate(0); }
  .hero-tag { font-size: 19px; }
  img.shot { width: 170px; }
  .listing-head img.icon { width: 72px; height: 72px; }
}
@media (max-width: 640px) {
  .listing-head { gap: 12px; }
  .listing-head .maker { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  .listing-id { overflow: hidden; }
  .listing-head .get { padding: 9px 16px; font-size: 15px; }
}

/* Screenshot strip: each shot is a button that opens the viewer */
.shot-btn { flex: none; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 18px; scroll-snap-align: start; position: relative; }
.shot-btn:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.shot-btn img.shot, .shot-btn video.shot { display: block; aspect-ratio: 2 / 3; object-fit: cover; }
.shot-btn.is-video::after { content: ""; position: absolute; left: 12px; bottom: 12px; width: 28px; height: 28px; border-radius: 999px; background: rgba(0,0,0,.45) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E") center / 16px no-repeat; }
video.phone { aspect-ratio: 2 / 3; object-fit: cover; background: #1a1f45; }

/* Full-screen viewer */
dialog.viewer { position: fixed; inset: 0; width: auto; height: auto; max-width: 100%; max-height: 100%; margin: 0; padding: 0; box-sizing: border-box; border: 0; background: rgba(10, 10, 14, .94); color: #fff; overflow: hidden; }
dialog.viewer::backdrop { background: rgba(10, 10, 14, .94); }
.viewer-track { display: flex; width: 100%; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior: contain; }
.viewer-track::-webkit-scrollbar { display: none; }
.viewer-item { flex: none; width: 100%; height: 100%; min-width: 0; min-height: 0; box-sizing: border-box; display: flex; align-items: center; justify-content: center; scroll-snap-align: center; padding: 68px 72px 56px; cursor: zoom-out; }
@media (hover: none), (max-width: 640px) { .viewer-item { padding: 64px 12px 52px; } }
.viewer-item img, .viewer-item video { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; cursor: default; border-radius: 22px; box-shadow: 0 20px 60px rgba(0,0,0,.5); background: #1a1f45; }
.viewer-close, .viewer-nav { position: absolute; border: 0; color: #fff; background: rgba(255,255,255,.14); border-radius: 999px; width: 44px; height: 44px; font: 400 28px/1 var(--sans); display: grid; place-items: center; cursor: pointer; }
.viewer-close { top: 14px; right: 14px; }
.viewer-nav { top: 50%; transform: translateY(-50%); font-size: 34px; padding-bottom: 4px; }
.viewer-nav.prev { left: 14px; } .viewer-nav.next { right: 14px; }
.viewer-nav:disabled { opacity: 0; pointer-events: none; }
.viewer-close:hover, .viewer-nav:hover { background: rgba(255,255,255,.24); }
.viewer-count { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; font-size: 14px; color: rgba(255,255,255,.7); }
@media (hover: none) { .viewer-nav { display: none; } }

/* Store listing: the app's cover behind the featured banner, and computer screenshots shown whole. */
.hero.has-cover::after { display: none; }
.hero-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero.has-cover::before { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(90deg, rgba(8, 8, 14, .82) 0%, rgba(8, 8, 14, .55) 45%, rgba(8, 8, 14, .1) 100%); }
/* Screenshots keep their own shape (a phone's tall screen, a computer's wide one), all the same height. */
.shot-btn img.shot { aspect-ratio: auto; width: auto; height: 420px; object-fit: contain; }
@media (max-width: 640px) { .shot-btn img.shot { height: 360px; } }
.shot-btn.wide img.shot { aspect-ratio: auto; width: auto; }
.viewer-item video { aspect-ratio: 390 / 844; height: 100%; }
.shot-btn video.shot { aspect-ratio: 390 / 844; width: auto; height: 420px; object-fit: cover; }
@media (max-width: 640px) { .shot-btn video.shot { height: 360px; } }
html.viewing { overflow: hidden; }
