/* App previews are static examples, independent of calculator results. */
.app-section-nav{display:flex;flex-wrap:wrap;gap:.6rem 1.2rem;margin:1.3rem 0;font-size:.9rem}
.app-section-nav a{min-height:44px;display:inline-flex;align-items:center}
.app-hero{grid-template-columns:minmax(0,1fr);align-items:start}
.app-hero .hero-icon{width:60px;height:60px;margin-bottom:1rem}
.app-hero .hero-name{font-size:1.55rem;line-height:1.25}
.app-hero .hero-lead{margin-top:1rem}
.app-example-note{font-size:.8rem;color:#6b5530;line-height:1.5;margin-top:.5rem}
.app-hero .cta-row{margin-top:1rem}
.app-hero .cta-btn{font-size:.85rem;padding:.65rem .8rem}
.app-hero .cta-note{display:block;margin-top:.5rem}
.app-workflow{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.8rem;list-style:none;margin:1.2rem 0;padding:0;counter-reset:workflow}
.app-workflow li{counter-increment:workflow;background:#fff;border:1px solid #e8d5a3;border-top:3px solid #b8860b;border-radius:5px;padding:1rem;margin:0;font-size:.85rem}
.app-workflow li::before{content:counter(workflow,decimal-leading-zero);display:block;font-family:'Courier New',monospace;color:#6b4c0a;font-size:.8rem;margin-bottom:.4rem}
.app-workflow strong{display:block;color:#4a3000;margin-bottom:.3rem;font-size:1rem}
.app-cycle-note{border-left:3px solid #b8860b;padding:.7rem 1rem;background:#fbf3e0}
.app-detail{margin:.7rem 0;border:1px solid #e8d5a3;border-radius:5px;background:#fff;padding:0 1rem}
.app-detail summary{cursor:pointer;padding:.8rem 0;font-size:.95rem;font-weight:bold;color:#4a3000;min-height:44px}
.app-detail p{margin:.1rem 0 1rem}
.app-detail[open] summary{margin-bottom:.3rem}
.shot a[data-app-image]{display:block;border:0;cursor:zoom-in}
.app-image-hint{font-size:.8rem;color:#6b5530;margin-bottom:.6rem}
.app-preview{grid-column:1 / -1;display:grid;grid-template-columns:160px minmax(0,1fr);gap:1rem;align-items:center;border-top:1px solid #e8d5a3;padding-top:1rem;margin-top:.4rem;text-align:left}
.app-preview figure{margin:0}
.app-preview a[data-app-image]{display:block;border:0;cursor:zoom-in}
.app-preview img{width:100%;height:auto;display:block;border:1px solid #e8d5a3;border-radius:5px}
.app-preview figcaption{font-size:.75rem;color:#6b5530;line-height:1.5;margin-top:.4rem}
.app-preview p{font-size:.88rem;line-height:1.65;margin:.5rem 0}
.app-preview strong{color:#4a3000}
.app-preview a{color:#795600;text-underline-offset:3px}
.app-image-dialog{padding:0;border:1px solid #b8860b;border-radius:8px;background:#fff8f0;color:#2a1800;width:min(780px,calc(100vw - 1.5rem));max-width:none;max-height:90vh;margin:auto;overflow:auto}
.app-image-dialog::backdrop{background:rgba(28,18,0,.78)}
.app-image-toolbar{position:sticky;top:0;display:flex;justify-content:space-between;align-items:center;gap:1rem;background:#fff8f0;border-bottom:1px solid #e8d5a3;padding:.65rem 1rem;z-index:1}
.app-image-toolbar h2{font:700 1rem Georgia,serif;color:#4a3000;margin:0;padding:0;border:0}
.app-image-close{font:inherit;background:#4a3000;color:#fff8f0;border:1px solid #4a3000;border-radius:4px;padding:.5rem 1rem;min-height:44px;cursor:pointer}
.app-image-dialog figure{margin:1rem}
.app-image-dialog img{display:block;width:100%;height:auto}
.app-image-dialog figcaption{font:.9rem/1.6 Georgia,serif;margin-top:.7rem}
a[data-app-image]:focus-visible,.app-detail summary:focus-visible,.app-image-close:focus-visible,.app-section-nav a:focus-visible{outline:3px solid #795600;outline-offset:4px}
@media(max-width:600px){
  .app-hero{grid-template-columns:1fr;text-align:left;justify-items:stretch}
  .app-hero .cta-row{justify-content:flex-start}
  .app-workflow{grid-template-columns:repeat(2,minmax(0,1fr))}
  .app-preview{grid-template-columns:115px minmax(0,1fr)}
}
@media(max-width:380px){.app-workflow{grid-template-columns:1fr}.app-preview{grid-template-columns:1fr}.app-preview figure{max-width:180px;justify-self:center}}

/* Optional deeper examples keep the main page concise. */
.app-tour-step{display:grid;grid-template-columns:minmax(0,260px) minmax(0,1fr);gap:1.3rem;align-items:start;margin:1.1rem 0 1.5rem}
.app-tour-step h3{font-size:1.05rem;line-height:1.4;color:#4a3000;margin:0 0 .7rem}
.app-tour-step .shot{margin:0}
.app-tour-step .shot img{aspect-ratio:1080/2086}
.app-diagram{margin:1rem auto;max-width:650px}
.app-diagram a[data-app-image]{display:block;border:0;cursor:zoom-in}
.app-diagram img{display:block;width:100%;height:auto;border:1px solid #e8d5a3;border-radius:6px}
.app-diagram figcaption{font-size:.8rem;color:#6b5530;line-height:1.5;margin:.6rem 0}
@media(max-width:600px){.app-tour-step{grid-template-columns:1fr}.app-tour-step .shot{max-width:280px;justify-self:center}.app-tour-step>div{grid-row:1}}
