/* Shared public-site refinements. The applications keep their own UI. */
.home nav { min-height:80px; height:auto; gap:18px; }
.home .navlinks a { min-height:44px; display:inline-flex; align-items:center; text-underline-offset:4px; }
.home .hero { padding-top:40px; padding-bottom:56px; }
.home .hero h1 { font-size:clamp(2.8rem,5.2vw,4.6rem); }
.home .hero .lead { margin-bottom:18px; }
.home .product-description { margin-top:14px; }
.app-hero { max-width:800px; }
.app-hero h1 { font-size:clamp(2.6rem,4.3vw,3.8rem); line-height:1.08; margin:16px 0 20px; }
.app-hero .lead { font-size:18px; line-height:1.6; }
.app-hero .note { margin-bottom:0; }
.app-hero .actions { flex-wrap:wrap; }
.contact-help { margin:16px 0 0; font-size:14px; line-height:1.6; color:#476067; }
.contact-help summary { cursor:pointer; min-height:44px; display:flex; align-items:center; text-decoration:underline; text-underline-offset:4px; }
.contact-help p { margin:10px 0; }
.contact-email { overflow-wrap:anywhere; user-select:all; }
.copy-email { font:inherit; min-height:44px; border:1px solid #bacbd0; border-radius:10px; background:white; color:#0c4351; padding:8px 12px; cursor:pointer; margin:6px 8px 6px 0; }
.copy-status { display:block; min-height:1.6em; }
.workflow-results { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; padding:0; list-style:none; }
.workflow-results li { padding:16px; border:1px solid #dce3e4; border-radius:12px; background:white; }
.workflow-results strong { display:block; margin-bottom:6px; }
.workflow-results span { font-size:15px; line-height:1.6; color:#476067; }
.image-viewer { width:min(1200px,calc(100% - 24px)); max-width:none; max-height:calc(100dvh - 24px); padding:16px; border:1px solid #b7cbd0; border-radius:18px; background:#fbfaf7; color:#0c4351; }
.image-viewer::backdrop { background:#082c36d9; }
body:has(.image-viewer[open]) { overflow:hidden; }
.image-viewer[open] { animation:viewer-in 140ms ease-out; }
@keyframes viewer-in { from { opacity:0; transform:translateY(4px); } to { opacity:1; transform:none; } }
.image-viewer-header { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:12px; }
.image-viewer h2 { font-size:18px; margin:0; letter-spacing:0; }
.image-viewer button { font:inherit; min-height:44px; min-width:44px; border:1px solid #b7cbd0; background:white; color:#0c4351; border-radius:10px; padding:8px 12px; cursor:pointer; }
.image-viewer figure { margin:0; }
.image-viewer img { display:block; width:100%; height:calc(100dvh - 200px); object-fit:contain; }
.image-viewer figcaption { line-height:1.5; font-size:14px; margin:12px 0; }
.image-viewer-controls { display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.image-viewer-controls a { margin-left:auto; text-underline-offset:4px; }
.image-viewer-error { color:#9e3026; }
button:focus-visible, .contact-help summary:focus-visible, .image-viewer a:focus-visible { outline:3px solid #7155a6; outline-offset:3px; }
@media(max-width:760px) {
  .home nav { padding:16px 0 8px; gap:6px; }
  .home .navlinks { width:100%; justify-content:space-between; gap:8px; flex-wrap:nowrap; }
  .home .navlinks a:not(.button) { display:inline-flex; font-size:13px; }
  .home .hero { padding-top:24px; gap:28px; }
  .home .hero h1 { font-size:clamp(2.6rem,10vw,3.5rem); }
  .home .hero .lead { font-size:17px; line-height:1.55; }
  .app-hero h1 { font-size:clamp(2.3rem,9vw,3.2rem); }
  .app-hero .lead { font-size:17px; }
  .workflow-results { grid-template-columns:1fr; }
  .image-viewer { padding:12px; }
  .image-viewer-controls a { margin-left:0; }
}
@media(prefers-reduced-motion:reduce) { .product { transition:none!important; } .product:hover { transform:none!important; } .image-viewer[open] { animation:none; } }
