/* ─── Public app pages (/apps/<id>) ───
   Rendered by src/app-page.js on top of style.css: same tokens, same
   .btn-primary / .btn-ghost / .landing-app cards, one primary per view. */

.ap-topbar { padding: 0.85rem 1.5rem; }
.ap-topbar .btn-ghost { text-decoration: none; }

.ap-main { max-width: 960px; margin: 0 auto; padding: 2rem 1.5rem 3rem; }

.ap-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}
.ap-crumbs a { color: var(--text-muted); text-decoration: none; }
.ap-crumbs a:hover { color: var(--primary); }
.ap-crumbs [aria-current] { color: var(--text); }

.ap-hero { max-width: 44rem; margin-bottom: 3rem; }
.ap-name {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 1rem;
}
.ap-name .card-icon { margin: 0; }
.ap-hero h1 {
  font-size: clamp(1.75rem, 3.6vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin-bottom: 1rem;
  text-wrap: balance;
}
.ap-lead { color: var(--text-muted); font-size: 1.05rem; line-height: 1.6; margin-bottom: 1.5rem; }
.ap-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.ap-actions .btn-primary { width: auto; padding: 0.75rem 1.4rem; text-decoration: none; display: inline-block; }
.ap-actions .btn-ghost { padding: 0.72rem 1.2rem; font-size: 0.95rem; text-decoration: none; }
.ap-free, .ap-note { margin-top: 0.9rem; font-size: 0.85rem; color: var(--text-muted); line-height: 1.5; }
.ap-note { color: var(--warning-text); }

.ap-shots { display: grid; gap: 1rem; margin: -1rem 0 1rem; }
.ap-shot {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--surface);
}
.ap-shot img { display: block; width: 100%; height: auto; }

.ap-section { margin-top: 3rem; }
.ap-section h2 { font-size: 1.35rem; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 1rem; }
.ap-section-hint { color: var(--text-muted); font-size: 0.875rem; margin: -0.6rem 0 1rem; }

.ap-features {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.9rem;
}
.ap-features li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.1rem;
}
.ap-features h3 { font-size: 0.95rem; font-weight: 600; margin-bottom: 0.35rem; }
.ap-features p { color: var(--text-muted); font-size: 0.88rem; line-height: 1.5; }

.ap-steps { counter-reset: step; list-style: none; display: grid; gap: 0.75rem; max-width: 40rem; }
.ap-steps li {
  counter-increment: step;
  position: relative;
  padding-left: 2.5rem;
  line-height: 1.75rem;
}
.ap-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 600;
  font-size: 0.85rem;
  text-align: center;
}

.ap-faq { display: grid; gap: 0.6rem; max-width: 44rem; }
.ap-faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.9rem 1.1rem;
}
.ap-faq summary { cursor: pointer; font-weight: 600; font-size: 0.95rem; }
.ap-faq summary:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: var(--radius-sm); }
.ap-faq p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.55; margin-top: 0.6rem; }

.ap-suite { margin-top: 1.25rem; color: var(--text-muted); font-size: 0.9rem; line-height: 1.55; max-width: 44rem; }
.ap-suite strong { color: var(--text); }
.ap-suite a { color: var(--primary); text-decoration: none; white-space: nowrap; }
.ap-suite a:hover { text-decoration: underline; }

@media (max-width: 640px) {
  .ap-topbar { padding: 0.75rem 1rem; }
  .ap-main { padding: 1.25rem 1rem 2rem; }
  .ap-crumbs { margin-bottom: 1.25rem; }
  .ap-hero { margin-bottom: 2rem; }
  .ap-section { margin-top: 2.25rem; }
  .ap-actions .btn-primary { flex: 1 1 100%; text-align: center; }
  .ap-actions .btn-ghost { flex: 1 1 100%; display: flex; justify-content: center; }
}
