/* Detail pages for the featured apps. Screenshot files already contain their
   device or window presentation, so these rails never add another frame. */

.app-page-main { padding-bottom: 30px; }
.app-hero {
  position: relative;
  overflow: hidden;
  padding: 76px 0 64px;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(700px 420px at 82% 8%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 70%),
    radial-gradient(540px 360px at 8% 30%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 70%);
}
.app-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(320px, 1.08fr);
  gap: 56px;
  align-items: center;
}
.app-hero-copy { min-width: 0; }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-dim);
  font-size: 14px;
  margin-bottom: 32px;
}
.back-link:hover { color: var(--text); }
.app-page .app-eyebrow { margin-bottom: 24px; }
.app-page .app-eyebrow img { width: 74px; height: 74px; border-radius: 18px; }
.app-page .app-eyebrow .name { font-size: 1rem; color: var(--text-dim); font-weight: 600; }
.app-hero h1 {
  max-width: 11ch;
  margin: 0 0 20px;
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 1.02;
  letter-spacing: -.045em;
}
.app-hero .lede {
  max-width: 54ch;
  color: var(--text-dim);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.55;
  margin: 0 0 28px;
}
.platform-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0 0 30px;
}
.platform-list span {
  padding: 7px 11px;
  border: 1px solid color-mix(in srgb, var(--accent) 34%, var(--border));
  border-radius: 999px;
  color: color-mix(in srgb, var(--accent) 86%, var(--text));
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  font-size: 13px;
  font-weight: 650;
}
.app-hero-art { min-width: 0; }
.app-hero-art .hero-shot {
  width: min(420px, 90%);
  margin: 0 auto;
}
.app-hero-art .hero-shot.wide { width: min(620px, 100%); }
.app-hero-art img { width: 100%; height: auto; }

.app-detail-section { padding: 74px 0 24px; }
.app-detail-section .section-head { margin-bottom: 34px; }
.app-detail-section .section-head h2 { max-width: 16ch; }
.app-detail-section .section-head p { max-width: 58ch; }
.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.detail-card {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
}
.detail-card h3 { margin: 0 0 7px; font-size: 1rem; }
.detail-card p { margin: 0; color: var(--text-dim); font-size: 14px; line-height: 1.55; }

.gallery-section { padding: 48px 0 92px; }
.gallery-group + .gallery-group { margin-top: 56px; }
.gallery-group-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}
.gallery-group h2 { margin: 0; font-size: 1.35rem; letter-spacing: -.02em; }
.gallery-group-head p { margin: 0; color: var(--text-faint); font-size: 14px; }
.app-page .shots { gap: 18px; padding: 4px 2px 16px; }
.app-page .shots .phone { width: clamp(220px, 24vw, 280px); }
.app-page .shots .mac { width: min(560px, 82vw); }
.app-page .shots .mac img { width: 100%; height: auto; }
.app-page .tablet-shot {
  flex: none;
  width: min(570px, 78vw);
  scroll-snap-align: center;
}
.app-page .tablet-shot img { width: 100%; height: auto; }
.gallery-note {
  margin: 20px 0 0;
  color: var(--text-faint);
  font-size: 13px;
}

.scan-release-section { padding-top: 20px; }
.scan-release-card { display: flex; align-items: center; gap: 18px; padding: 22px; border: 1px solid color-mix(in srgb, var(--accent) 25%, var(--border)); border-radius: var(--radius-sm); background: color-mix(in srgb, var(--bg-card) 90%, var(--accent) 10%); }
.scan-release-icon { display: grid; place-items: center; width: 52px; height: 52px; flex: none; border-radius: 14px; color: #06111c; background: linear-gradient(145deg, #d9f2ff, #56b4ff); font-size: 15px; font-weight: 850; letter-spacing: -.08em; }
.scan-release-card strong { display: block; margin-bottom: 4px; font-size: 1rem; }
.scan-release-card p { margin: 0; color: var(--text-dim); font-size: 14px; line-height: 1.5; }
.scan-release-card .link-src { margin-left: auto; flex: none; }

@media (max-width: 860px) {
  .app-hero-grid { grid-template-columns: 1fr; gap: 38px; }
  .app-hero-art { order: -1; }
  .app-hero-art .hero-shot { width: min(360px, 82vw); }
  .app-hero-art .hero-shot.wide { width: min(620px, 100%); }
  .detail-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .app-hero { padding: 52px 0 48px; }
  .app-page .app-eyebrow img { width: 62px; height: 62px; }
  .app-hero h1 { font-size: clamp(2.5rem, 13vw, 4rem); }
  .gallery-group-head { display: block; }
  .gallery-group-head p { margin-top: 5px; }
  .scan-release-card { align-items: flex-start; flex-wrap: wrap; }
  .scan-release-card .link-src { margin-left: 70px; }
}
