/* App Store–style detail/listing pages — builds on ../styles.css tokens.
   Used by both project pages (work/*.html) and app pages (apps/*.html). */

.listing {
  position: relative;
  z-index: 2;
  max-width: 980px;
  margin: 0 auto;
  padding: 0 28px 120px;
}

/* top bar */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 0;
}

.topbar__brand {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: var(--ink);
}

.topbar__back {
  text-decoration: none;
  color: var(--ink-55);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

.topbar__back:hover { color: var(--ink); }

/* hero */
.listing-hero {
  display: flex;
  gap: 28px;
  align-items: center;
  padding: 32px 0 36px;
  border-bottom: 1px solid var(--hairline);
}

.listing-hero__icon {
  flex: none;
  width: 116px;
  height: 116px;
  border-radius: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 52px;
  font-weight: 700;
  color: #fff;
  overflow: hidden;
  background: linear-gradient(150deg,
    color-mix(in srgb, var(--accent) 88%, #fff),
    var(--accent));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    0 18px 40px -16px color-mix(in srgb, var(--accent) 55%, transparent);
}

.listing-hero__meta { min-width: 0; }

.listing-hero__title {
  margin: 10px 0 0;
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1;
  color: var(--ink-strong);
}

.listing-hero__tagline {
  margin: 12px 0 0;
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink-58);
  max-width: 52ch;
}

.listing-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 22px;
}

.listing-hero__actions .btn { padding: 12px 22px; font-size: 15px; }

/* screenshot gallery */
.gallery {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 32px 0 8px;
  margin: 0 -28px;
  padding-left: 28px;
  padding-right: 28px;
  -webkit-overflow-scrolling: touch;
}

.gallery::-webkit-scrollbar { height: 8px; }

.shot {
  flex: none;
  width: 260px;
  aspect-ratio: 9 / 19.5;
  border-radius: 28px;
  scroll-snap-align: start;
  background:
    linear-gradient(160deg,
      color-mix(in srgb, var(--accent) 16%, #fff),
      color-mix(in srgb, var(--accent) 4%, #fff));
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 18px 44px -24px rgba(30, 30, 40, 0.4);
  position: relative;
  overflow: hidden;
}

/* faux notch + caption for the placeholder frames */
.shot::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 84px;
  height: 22px;
  border-radius: 100px;
  background: rgba(26, 26, 23, 0.18);
}

.shot__label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 26px;
  text-align: center;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.5px;
  color: var(--ink-45);
}

.gallery--wide .shot { width: 420px; aspect-ratio: 16 / 10; }

/* real screenshots */
.shot--img { background: #000; }
.shot--img::before { display: none; }
.shot--img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  display: block;
}

/* sections */
.listing-section { padding: 44px 0 0; }

.listing-section__title {
  margin: 0 0 18px;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--ink-strong);
}

.prose {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-62);
  max-width: 68ch;
}

.prose p { margin: 0 0 14px; }

/* feature highlights */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.feature {
  padding: 24px;
  border-radius: 20px;
  background: var(--glass);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 10px 28px -18px rgba(30, 30, 40, 0.24);
}

.feature__icon {
  font-size: 22px;
  line-height: 1;
}

.feature__title {
  margin: 14px 0 0;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink-strong);
}

.feature__text {
  margin: 8px 0 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-58);
}

/* information table (App Store "Information" block) */
.info {
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.info__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 22px;
  border-bottom: 1px solid rgba(26, 26, 23, 0.08);
  font-size: 15px;
}

.info__row:last-child { border-bottom: none; }

.info__key { color: var(--ink-55); }

.info__val {
  color: var(--ink-strong);
  font-weight: 500;
  text-align: right;
}

.info__val a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
}

.info__val a:hover { border-bottom-color: var(--accent); }

/* template note */
.tpl-note {
  margin: 28px 0 0;
  padding: 16px 20px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.6;
  background: rgba(26, 26, 23, 0.04);
  border: 1px solid rgba(26, 26, 23, 0.08);
  color: var(--ink-58);
}

.tpl-note strong { color: var(--ink); }

/* footer */
.listing-footer {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink-45);
}

@media (max-width: 720px) {
  .listing-hero { flex-direction: column; align-items: flex-start; gap: 18px; }
  .listing-hero__icon { width: 88px; height: 88px; border-radius: 20px; font-size: 40px; }
  .feature-grid { grid-template-columns: 1fr; }
}
