/* Public previews share the existing warm canvas, ink, accent and type tokens. */
.app-eyebrow { font-size:12px; font-weight:700; letter-spacing:.09em; text-transform:uppercase; color:var(--fg-secondary); margin-bottom:16px; }
.app-gallery-heading { display:flex; justify-content:space-between; align-items:end; gap:32px; margin-bottom:44px; }
.app-gallery-heading > div:first-child { max-width:700px; }
.app-gallery-heading .section-title,.app-gallery-heading .section-desc { text-align:left; }
.app-gallery-heading .section-desc { margin-left:0; margin-right:0; }
.app-demo-note { font-size:12px; color:var(--fg-secondary); flex-shrink:0; line-height:1.7; }
.app-demo-note span { color:var(--accent); }
.app-gallery-actions { display:flex; flex-direction:column; align-items:flex-end; gap:16px; }
.app-gallery-controls { display:flex; gap:10px; flex-shrink:0; }
.app-gallery-controls[hidden] { display:none; }
.app-gallery-controls button { display:grid; place-items:center; width:48px; height:48px; border:1px solid var(--border-subtle); border-radius:50%; background:var(--bg-paper); color:var(--fg-primary); font:inherit; font-size:22px; cursor:pointer; }
.app-gallery-controls button:disabled { opacity:.35; cursor:default; }
.app-gallery-hint { font-size:12px; color:var(--fg-secondary); margin-bottom:14px; }
.app-gallery-status { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.app-gallery-track { position:relative; display:flex; align-items:flex-start; gap:24px; overflow-x:auto; overscroll-behavior-x:contain; scroll-snap-type:x mandatory; scrollbar-width:thin; scrollbar-color:var(--border-default) transparent; padding:6px 6px 18px; margin:0 -6px; scroll-padding:6px; }
.app-shot { min-width:0; flex:0 0 calc((100% - 72px)/4); scroll-snap-align:start; }
.app-shot-image { display:block; position:relative; padding:7px; background:var(--bg-paper); border:1px solid var(--border-subtle); border-radius:24px; box-shadow:0 12px 36px rgba(32,21,21,.06); overflow:hidden; color:var(--fg-primary); transition:transform .2s; }
.app-shot-image img { width:100%; height:auto; display:block; border-radius:18px; }
.app-shot-zoom { display:flex; justify-content:center; gap:6px; padding:10px 4px 4px; font-size:11px; font-weight:600; }
.app-shot figcaption { padding:20px 2px 0; }
.app-shot-role { font-size:11px; color:var(--fg-secondary); }
.app-shot h3 { font-size:18px; letter-spacing:-.02em; margin:5px 0 8px; }
.app-shot p { font-size:13px; line-height:1.65; color:var(--fg-secondary); }
.app-shot-wide { flex-basis:calc((100% - 24px)/2); }
.app-shot-wide .app-shot-image { border-radius:16px; }
.app-shot-wide img { border-radius:10px; }
.app-text-link { display:inline-flex; gap:12px; align-items:center; color:#ae3d20!important; font-size:14px; font-weight:600; text-underline-offset:5px; }
.app-preview-dialog { margin:auto; width:min(1100px,calc(100% - 32px)); max-height:calc(100dvh - 32px); border:1px solid var(--border-subtle); border-radius:20px; background:var(--bg-canvas); color:var(--fg-primary); padding:0; overflow:auto; }
.app-preview-dialog::backdrop { background:rgba(32,21,21,.7); backdrop-filter:blur(5px); }
.app-preview-toolbar { position:sticky; top:0; z-index:1; display:flex; align-items:center; justify-content:space-between; gap:16px; background:var(--bg-canvas); padding:16px 24px; border-bottom:1px solid var(--border-subtle); }
.app-preview-toolbar h2 { font-size:17px; line-height:1.4; }
.app-preview-toolbar p { font-size:12px; color:var(--fg-secondary); }
.app-preview-toolbar button { width:44px; height:44px; border:1px solid var(--border-subtle); border-radius:10px; background:var(--bg-paper); color:var(--fg-primary); cursor:pointer; font-size:18px; }
.app-preview-content { padding:24px; display:flex; justify-content:center; }
.app-preview-content img { display:block; max-width:100%; height:auto; max-height:none; width:auto; object-fit:contain; }
.app-preview-content img[src*="/warga.webp"],.app-preview-content img[src*="/pembayaran.webp"],.app-preview-content img[src*="/pengaduan.webp"],.app-preview-content img[src*="/surat.webp"] { width:390px; }
.app-preview-open { overflow:hidden; }
[data-app-preview]:focus-visible,.app-text-link:focus-visible,.app-preview-toolbar button:focus-visible,.app-gallery-controls button:focus-visible,.app-gallery-track:focus-visible { outline:3px solid var(--accent); outline-offset:3px; }
.app-start-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:36px; }
.app-start-step { border-top:1px solid var(--border-subtle); padding-top:24px; }
.app-start-step > span { font-size:13px; font-weight:700; color:var(--accent); }
.app-start-step h3 { font-size:20px; margin:14px 0 10px; letter-spacing:-.02em; }
.app-start-step p { font-size:14px; color:var(--fg-secondary); }
@media(hover:hover) { .app-shot-image:hover { transform:translateY(-3px); } }
@media(max-width:940px) {
  .app-gallery-heading { align-items:start; flex-direction:column; gap:20px; }
  .app-gallery-actions { flex-direction:row; align-items:center; justify-content:space-between; width:100%; }
  .app-gallery-actions .app-demo-note { flex-shrink:1; }
  .app-gallery-track { gap:20px; }
  .app-shot { flex-basis:calc((100% - 40px)/3); }
  .app-shot-wide { flex-basis:calc((100% - 20px)*2/3); }
  .app-start-grid { gap:24px; }
}
@media(max-width:768px) {
  .app-gallery-heading { margin-bottom:24px; }
  .app-gallery-track { gap:16px; }
  .app-shot { flex-basis:calc((100% - 16px)/2); }
  .app-shot-wide { flex-basis:92%; }
  .app-shot-image { padding:4px; border-radius:18px; }
  .app-shot-image img { border-radius:14px; }
  .app-shot h3 { font-size:16px; }
  .app-shot p { font-size:12px; }
  .app-shot-zoom { font-size:10px; padding:8px 2px 4px; }
  .app-start-grid { grid-template-columns:1fr; }
  .app-preview-toolbar { padding:12px 16px; }
  .app-preview-content { padding:12px; }
}
@media(max-width:600px) {
  .app-shot { flex-basis:84%; }
  .app-shot-wide { flex-basis:96%; }
}
@media(prefers-reduced-motion:reduce) { .app-shot-image { transition:none; } .app-shot-image:hover { transform:none; } }
