/* ══════════════════════════════════════════════════════════════════
   pdf-to-jpg.html — page-specific styles (loaded after base.css).
   Currently just the bespoke upload-zone visual below.
   ══════════════════════════════════════════════════════════════════ */

/* ── Bespoke upload-zone visual: a PDF page transforming into a JPG
   image (and the mirror direction), with what carries over floating
   alongside — same visual grammar as the PDF⇄Word scenes, applied to
   this tool's own story. Dot travels via CSS @keyframes, not SVG
   <animateMotion>, since Chrome doesn't reliably animate SMIL motion
   paths under a non-uniformly-scaled viewBox (renders fine in Safari,
   freezes in Chrome). ── */
.p2j-scene {
    position: relative;
    max-width: 26rem;
    margin: 0 auto 1.75rem;
    height: 7rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 .5rem;
}

.p2j-node {
    position: relative;
    z-index: 2;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 1.125rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 8px 20px -6px rgba(15, 23, 42, .25);
}

.p2j-node-label {
    position: absolute;
    bottom: -1.35rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: .625rem;
    font-weight: 700;
    letter-spacing: .04em;
    color: var(--slate-500, #64748b);
    white-space: nowrap;
}

.p2j-path {
    position: relative;
    flex: 1;
    height: 2.5rem;
    margin: 0 .25rem;
}

.p2j-dot {
    position: absolute;
    top: 50%;
    left: 3.6%;
    width: 7px;
    height: 7px;
    margin: -3.5px 0 0 -3.5px;
    border-radius: 50%;
    background: #000;
    box-shadow: 0 0 4px rgba(0, 0, 0, .6);
    animation: p2jTravel 2.6s linear infinite;
}

@keyframes p2jTravel {
    0% { left: 3.6%; }
    100% { left: 96.4%; }
}

.p2j-badge {
    position: absolute;
    top: -.5rem;
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    background: #fff;
    border: 1px solid var(--slate-200, #e2e8f0);
    border-radius: 9999px;
    padding: .3rem .6rem .3rem .5rem;
    font-size: .6875rem;
    font-weight: 600;
    color: var(--slate-700, #334155);
    box-shadow: 0 4px 12px -4px rgba(15, 23, 42, .18);
    animation: p2jFloat 3.6s ease-in-out infinite;
}

.p2j-badge-1 { left: 30%; animation-delay: 0s; }
.p2j-badge-2 { left: 62%; animation-delay: .6s; }

@keyframes p2jFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

@media (max-width: 560px) {
    .p2j-scene { max-width: 18rem; height: 6rem; }
    .p2j-badge { font-size: .625rem; padding: .25rem .5rem .25rem .4rem; }
}
