/* /tools/image-to-zpl: How it works scene (logo.png with a dark mark and a pale ring, a white/black split at middle grey, the mark turning into printer dots on a 4 x 2 label, a ^GFA line). */
.hub-anim.ha-image-to-zpl .ha-stage { min-height: 0; border: 1px solid #d9cdf6; background: linear-gradient(180deg, #faf8ff 0%, #ece6fb 100%); }
.hub-anim.ha-image-to-zpl .sc { display: flex; align-items: center; justify-content: center; gap: 1.1rem; min-height: 280px; }
.hub-anim.ha-image-to-zpl .sc-arrow { color: #4c1d95; flex: 0 0 auto; } .hub-anim.ha-image-to-zpl .sc-arrow svg { width: 54px; height: 28px; display: block; }
.hub-anim.ha-image-to-zpl .iz-file { position: relative; width: 130px; flex: 0 0 auto; padding: 30px 12px 12px; background: #fff; border: 1px solid #ddd6fe; border-radius: 12px; box-sizing: border-box; box-shadow: 0 14px 24px -16px rgba(76, 29, 149, .45); }
.hub-anim.ha-image-to-zpl .iz-name { position: absolute; left: 10px; top: 8px; font: 700 .62rem/1 Inter, system-ui, sans-serif; color: #4c1d95; }
.hub-anim.ha-image-to-zpl .iz-art { position: relative; height: 104px; border-radius: 8px; background: #f5f3ff; }
.hub-anim.ha-image-to-zpl .iz-ring { position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px; border: 8px solid #cbd5e1; border-radius: 50%; box-sizing: border-box; }
.hub-anim.ha-image-to-zpl .iz-mark { position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; background: #3b1a7a; border-radius: 10px 22px 10px 22px; }
.hub-anim.ha-image-to-zpl .iz-mid { width: 200px; flex: 0 0 auto; }
.hub-anim.ha-image-to-zpl .iz-scale { display: flex; align-items: center; gap: 6px; margin: 0 0 10px; font: 700 .58rem/1 Inter, system-ui, sans-serif; letter-spacing: .04em; text-transform: uppercase; color: #5b21b6; }
.hub-anim.ha-image-to-zpl .iz-scale b { position: relative; flex: 1; height: 10px; border-radius: 999px; background: linear-gradient(90deg, #fff, #000); border: 1px solid #c4b5fd; }
.hub-anim.ha-image-to-zpl .iz-scale b::after { content: ""; position: absolute; left: 50%; top: -4px; bottom: -4px; width: 2px; margin-left: -1px; background: #7c3aed; }
.hub-anim.ha-image-to-zpl .iz-lab { position: relative; height: 100px; background: #fff; border: 2px solid #0f172a; border-radius: 6px; overflow: hidden; }
.hub-anim.ha-image-to-zpl .iz-dots { position: absolute; left: 14px; top: 26px; width: 46px; height: 46px; border-radius: 10px 23px 10px 23px; background: radial-gradient(circle, #0f172a 0 1.6px, transparent 1.9px) 0 0 / 4px 4px; }
.hub-anim.ha-image-to-zpl .iz-txt { position: absolute; left: 74px; top: 40px; font: 900 .82rem/1 Manrope, Inter, sans-serif; letter-spacing: .08em; color: #0f172a; }
.hub-anim.ha-image-to-zpl .iz-size { position: absolute; right: 8px; bottom: 6px; font: 700 .52rem/1 Inter, system-ui, sans-serif; color: #64748b; }
.hub-anim.ha-image-to-zpl .iz-zpl { display: flex; flex-direction: column; gap: 4px; width: 190px; flex: 0 0 auto; padding: 14px 12px; background: #1e1035; border-radius: 12px; box-sizing: border-box; box-shadow: 0 16px 28px -18px rgba(30, 16, 53, .7); }
.hub-anim.ha-image-to-zpl .iz-zpl b { display: block; overflow: hidden; white-space: nowrap; font: 600 .68rem/1.3 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: #ede9fe; }
.hub-anim.ha-image-to-zpl .iz-zpl .iz-gf { color: #c4b5fd; }
@media (max-width: 640px) {
 .hub-anim.ha-image-to-zpl .sc { flex-direction: column; gap: .8rem; } .hub-anim.ha-image-to-zpl .sc-arrow { transform: rotate(90deg); } .hub-anim.ha-image-to-zpl .ha-stage { padding-bottom: 3.4rem; }
}
/* Reduced motion: the finished scene (logo shown, the dots on the label, the ZPL written). */
@media (prefers-reduced-motion: no-preference) {
 .hub-anim.ha-image-to-zpl .iz-file { animation: iz-file 9s ease infinite both; }
 .hub-anim.ha-image-to-zpl .iz-scale b::after { animation: iz-cut 9s ease infinite both; }
 .hub-anim.ha-image-to-zpl .iz-dots { animation: iz-dots 9s ease infinite both; } .hub-anim.ha-image-to-zpl .iz-txt { animation: iz-txt 9s ease infinite both; }
 .hub-anim.ha-image-to-zpl .iz-zpl { animation: iz-zpl 9s ease infinite both; }
 @keyframes iz-file { 0% { opacity: 0; transform: translateY(-18px) rotate(-5deg); } 8%, 94% { opacity: 1; transform: none; } 99%, 100% { opacity: 0; } }
 @keyframes iz-cut { 0%, 14% { left: 10%; } 30%, 100% { left: 50%; } }
 @keyframes iz-dots { 0%, 30% { opacity: 0; transform: scale(.85); } 40%, 94% { opacity: 1; transform: none; } 99%, 100% { opacity: 0; } }
 @keyframes iz-txt { 0%, 36% { opacity: 0; } 44%, 94% { opacity: 1; } 99%, 100% { opacity: 0; } }
 @keyframes iz-zpl { 0%, 56% { opacity: 0; transform: translateX(-16px); } 66%, 94% { opacity: 1; transform: none; } 99%, 100% { opacity: 0; transform: none; } }
}
/* Tool card: a violet stage with one button. */
body.article-page.bk-chapters.bk-chapters article.blog-content > .zpl-app { --tool-tint: #f5f3ff; --tool-accent: #6d28d9; }
body.article-page.bk-chapters.bk-chapters article.blog-content > .zpl-app .zpl-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 18px; background: var(--tool-tint); border: 1px solid color-mix(in srgb, var(--tool-accent) 22%, #e7e9ee); border-radius: 18px; }
body.article-page.bk-chapters.bk-chapters article.blog-content > .zpl-app .zpl-actions .buy-button { display: inline-flex; align-items: center; justify-content: center; width: 100%; padding: 13px 22px; background: #6d28d9; border: 1px solid #6d28d9; border-radius: 12px; font-size: 15px; color: #fff; text-decoration: none; box-sizing: border-box; }
body.article-page.bk-chapters.bk-chapters article.blog-content > .zpl-app .zpl-actions .buy-button:hover { background: #5b21b6; border-color: #5b21b6; color: #fff; }
/* The ^GFA sample in a monospace card. */
body.article-page.bk-chapters article.blog-content pre.zpl-sample { margin: 12px 0 16px; padding: 14px 16px; overflow-x: auto; background: #f5f3ff; border: 1px solid #ddd6fe; border-radius: 12px; font: 13px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre-wrap; word-break: break-all; text-align: left; }
body.article-page.bk-chapters article.blog-content pre.zpl-sample code { background: none; border: 0; padding: 0; font: inherit; }
