/* Vectorizer Lab guide (/tools/vectorizer-lab): derived from pixel-lab-guide.css (prefix vlg-). */
/* ============================================================================
   PIXEL LAB GUIDE — /tools/pixel-lab (prefix vlg-)
   Built on mono-getillustrations.css the way /tools/ai-generator-guide is:
   one 1200px rail, centred hero with a stat row, hairline separators, white
   cards on the 16px radius, lime only as the accent. The studio itself
   (/tools/pixel-lab/app) has its own stylesheet; nothing here reaches it.
   ============================================================================ */

.vlg .mono-container { max-width: 1200px; }
.vlg .mono-section { padding: clamp(40px, 6vw, 72px) 0; }
.vlg .mono-section-head { max-width: 760px; }
.vlg .mono-section-head .mono-lead { margin-top: 12px; }

/* hairline above container-less sections, on the rail so it matches 1200px */
.vlg .mono-section.vlg-sep { padding-top: 0; }
.vlg .mono-section.vlg-sep > .mono-container {
    border-top: 1px solid var(--mono-border);
    padding-top: clamp(40px, 6vw, 72px);
}

/* ---- hero -------------------------------------------------------------- */
.vlg-hero { text-align: center; }
.vlg-mark {
    display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 20px;
    background: var(--mono-ink); box-shadow: 0 12px 30px rgba(17,24,39,.18);
}
.vlg-mark svg { width: 40px; height: 40px; fill: var(--mono-lime, #ccea4a); }
.vlg-hero .vlg-h1 {
    margin: 14px auto 0;
    max-width: 22ch;
    font-family: var(--mono-font-display);
    font-size: clamp(1.9rem, 4vw, 3rem);
    font-weight: var(--mono-w-extrabold, 800);
    line-height: 1.06;
    letter-spacing: -0.02em;
    color: var(--mono-ink);
}
.vlg-hero .mono-lead { max-width: 64ch; margin: 18px auto 0; }
.vlg-cta-row {
    display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
    gap: 12px 20px; margin: 24px 0 0;
}
.vlg-cta-row--left { justify-content: flex-start; }
.vlg-cta-row .mono-link svg { margin-right: 2px; }
.vlg-note { font-size: 13px; color: var(--mono-text-muted); }
.vlg-hero .vlg-cta-row { margin-top: 26px; }

/* the stage: the original with the pixel version wiping across it, on a loop */
.vlg-stage { margin: 44px auto 0; max-width: 1100px; }
.vlg-stage__frame {
    position: relative; aspect-ratio: 1200 / 514; overflow: hidden;
    border-radius: 20px; border: 1px solid var(--mono-border);
    background: var(--mono-gray-50); box-shadow: var(--mono-shadow-card, 0 18px 50px rgba(17,17,17,.05));
}
/* Three bands: the original, then the poster export from --a, then the grey export from --b.
   The two lines are draggable (pointer) and keyboard sliders; scroll drives them until then. */
.vlg-stage__frame { --a: 34%; --b: 67%; cursor: ew-resize; user-select: none; -webkit-user-select: none; }
.vlg-stage__frame.is-dragging { cursor: grabbing; }
.vlg-stage__before, .vlg-stage__layer { position: absolute; inset: 0; pointer-events: none; }
.vlg-stage__before { width: 100%; height: 100%; object-fit: cover; display: block; }
.vlg-stage__layer img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vlg-stage__layer--a { clip-path: inset(0 0 0 var(--a)); }
.vlg-stage__layer--b { clip-path: inset(0 0 0 var(--b)); }
.vlg-stage__bar {
    position: absolute; top: 0; bottom: 0; width: 3px; margin-left: -1.5px; touch-action: none; outline: none;
    background: var(--mono-lime, #ccea4a); box-shadow: 0 0 0 1px rgba(17,24,39,.25), 0 0 18px rgba(204,234,74,.8);
}
.vlg-stage__bar--a { left: var(--a); }
.vlg-stage__bar--b { left: var(--b); }
.vlg-stage__bar::before { content: ''; position: absolute; top: 0; bottom: 0; left: -14px; right: -14px; }
.vlg-stage__bar::after {
    content: '\2194'; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
    background: var(--mono-lime, #ccea4a); color: var(--mono-ink); font-size: 16px; font-weight: 800;
    box-shadow: 0 6px 18px rgba(17,24,39,.25); transition: transform .15s ease;
}
.vlg-stage__bar:hover::after, .vlg-stage__bar:focus-visible::after { transform: translate(-50%, -50%) scale(1.12); }
.vlg-stage__bar:focus-visible::after { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--mono-ink), 0 6px 18px rgba(17,24,39,.25); }
.vlg-stage__bar--b::after { top: calc(50% + 56px); }
.vlg-stage__tag {
    position: absolute; top: 14px; padding: 6px 12px; border-radius: 999px; white-space: nowrap; pointer-events: none;
    font-size: 12px; font-weight: 700; letter-spacing: -0.005em;
    background: rgba(255,255,255,.92); color: var(--mono-ink); backdrop-filter: blur(6px);
    box-shadow: 0 1px 2px rgba(0,0,0,.08);
}
.vlg-stage__tag--o { left: 14px; }
.vlg-stage__tag--a { left: calc(var(--a) + 14px); background: var(--mono-lime, #ccea4a); }
.vlg-stage__tag--b { left: calc(var(--b) + 14px); background: var(--mono-ink); color: #fff; }
.vlg-stage__tag[hidden] { display: none; }

.vlg-stats {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px;
    max-width: 1100px; margin: 18px auto 0; padding: 0; list-style: none;
}
.vlg-stats li {
    display: flex; align-items: center; gap: 10px; min-width: 0; text-align: left;
    padding: 10px 14px; background: var(--mono-white);
    border: 1px solid var(--mono-border); border-radius: 12px;
    font-size: 12.5px; line-height: 1.35; color: var(--mono-text-muted);
}
.vlg-stats li > svg { flex: 0 0 auto; width: 30px; height: 30px; padding: 6px; border-radius: 9px; background: var(--mono-ink); color: var(--mono-lime, #ccea4a); }
.vlg-stats li > span { min-width: 0; }
.vlg-stats strong { display: block; font-family: var(--mono-font-display); font-size: 13.5px; font-weight: 800; letter-spacing: -0.01em; color: var(--mono-ink); }

/* ---- before / after gallery: two big pairs a row, the pointer zooms both on one spot ---- */
.vlg-pairs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.vlg-pair {
    display: grid; gap: 12px; margin: 0; padding: 16px 16px 14px; background: var(--mono-white);
    border: 1px solid var(--mono-border); border-radius: 20px;
    transition: box-shadow var(--mono-dur, .2s) ease, border-color var(--mono-dur, .2s) ease;
}
.vlg-pair:hover, .vlg-pair.is-zoom { box-shadow: var(--mono-shadow-hover, 0 16px 40px rgba(17,24,39,.09)); border-color: var(--mono-lime, #ccea4a); }
.vlg-pair__head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: 0; }
.vlg-pair__title { font-family: var(--mono-font-display); font-size: 17px; font-weight: 800; letter-spacing: -0.01em; color: var(--mono-ink); }
.vlg-pair__kind { font-size: 12.5px; font-weight: 600; color: var(--mono-text-muted); text-align: right; }
.vlg-pair__imgs { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; cursor: zoom-in; }
.vlg-pair.is-zoom .vlg-pair__imgs { cursor: crosshair; }
.vlg-pair__img { position: relative; aspect-ratio: 1 / 1; border-radius: 14px; overflow: hidden; background: #fff; border: 1px solid var(--mono-border); }
.vlg-pair__img img {
    width: 100%; height: 100%; object-fit: contain; display: block; background: #fff;
    transform-origin: var(--zx, 50%) var(--zy, 50%); transition: transform .28s var(--mono-ease, ease);
}
.vlg-pair.is-zoom .vlg-pair__img img { transform: scale(2.6); transition: transform .28s var(--mono-ease, ease); }
.vlg-pair__img--after img { image-rendering: auto; }
.vlg-pair.is-zoom .vlg-pair__img:not(.vlg-pair__img--after) img { image-rendering: pixelated; } /* the PNG shows its pixels, the SVG stays a curve */
.vlg-pair__lbl {
    position: absolute; left: 10px; top: 10px; z-index: 2; padding: 4px 9px; border-radius: 999px;
    font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
    background: rgba(255,255,255,.92); color: var(--mono-ink); box-shadow: 0 1px 2px rgba(0,0,0,.08);
}
.vlg-pair__lbl--lime { background: var(--mono-lime, #ccea4a); }
.vlg-pair__lens {
    position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); z-index: 2;
    display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px;
    background: rgba(17,24,39,.82); color: #fff; font-size: 11.5px; font-weight: 600; white-space: nowrap; pointer-events: none;
    opacity: .92; transition: opacity .2s ease;
}
.vlg-pair.is-zoom .vlg-pair__lens { opacity: 0; }
.vlg-pair__meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.vlg-pair__auto { font-size: 11.5px; font-weight: 600; color: var(--mono-text-muted); }
.vlg-recipe {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 11px; border-radius: 999px;
    background: var(--mono-surface-subtle, #f9fafb); border: 1px solid var(--mono-border); color: var(--mono-gray-700);
    font-family: var(--mono-font-mono, 'JetBrains Mono', Menlo, monospace);
    font-size: 11.5px; letter-spacing: 0;
}

/* ---- what it does: the lime shell, an intro, then a bento of feature cards ---- */
.vlg-cap {
    display: grid; gap: 28px;
    background: var(--mono-lime, #CCEA4A);
    border-radius: var(--mono-radius-xl, 24px);
    padding: clamp(24px, 4vw, 48px);
    color: #111;
}
.vlg-cap__intro { max-width: 760px; }
.vlg-cap__intro .mono-eyebrow { color: #111; opacity: .7; }
.vlg-cap__h2 { margin: 8px 0 0; font-family: var(--mono-font-display); font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.vlg-cap__body { margin: 12px 0 0; font-size: var(--mono-fs-lead); line-height: 1.55; }
.vlg-feat { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.vlg-feat__card {
    display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; align-items: start;
    padding: 18px; border-radius: 18px; background: rgba(255,255,255,.92); border: 1px solid rgba(17,17,17,.06);
    font-size: 13.5px; line-height: 1.5; color: #111;
    transition: transform var(--mono-dur, .2s) ease, box-shadow var(--mono-dur, .2s) ease, background var(--mono-dur, .2s) ease;
}
.vlg-feat__card:hover { background: #fff; transform: translateY(-3px); box-shadow: 0 14px 30px rgba(17,24,39,.12); }
.vlg-feat__card--wide { grid-column: span 2; grid-template-columns: 44px minmax(0, 1fr) 220px; align-items: center; }
.vlg-feat__i { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: #111; color: var(--mono-lime, #ccea4a); }
.vlg-feat__card strong { display: block; font-family: var(--mono-font-display); font-size: 15px; font-weight: 800; letter-spacing: -0.01em; margin-bottom: 4px; }
.vlg-feat__card--wide strong { font-size: 17px; }
.vlg-feat__card p { margin: 0; color: #2a2a2a; }
.vlg-feat__art { width: 220px; height: 80px; display: block; overflow: hidden; }

/* ---- one photo, twelve looks ------------------------------------------ */
.vlg-looks-head { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 20px; align-items: center; }
.vlg-looks-head img { width: 96px; height: 96px; border-radius: 14px; border: 1px solid var(--mono-border); background: var(--mono-gray-50); object-fit: cover; }
.vlg-looks { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin-top: 26px; }
.vlg-look {
    display: grid; gap: 8px; margin: 0; padding: 8px; background: var(--mono-white);
    border: 1px solid var(--mono-border); border-radius: 14px; overflow: hidden;
    transition: transform var(--mono-dur, .2s) var(--mono-ease, ease), box-shadow var(--mono-dur, .2s) ease, border-color var(--mono-dur, .2s) ease;
}
.vlg-look:hover { transform: translateY(-3px); box-shadow: var(--mono-shadow-hover, 0 12px 28px rgba(17,24,39,.08)); border-color: var(--mono-lime, #ccea4a); }
.vlg-look img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 8px; display: block; background: var(--mono-gray-50); transition: transform .35s var(--mono-ease, ease); }
.vlg-look:hover img { transform: scale(1.06); }
.vlg-look img.is-pixel { image-rendering: auto; }
.vlg-look span { font-size: 12px; font-weight: 700; color: var(--mono-ink); text-align: center; }

/* ---- how it works: six steps on a lime track ------------------------- */
.vlg-flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 22px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.vlg-flow__step { position: relative; display: grid; grid-template-rows: auto 1fr; gap: 14px; }
.vlg-flow__step::before, .vlg-flow__step::after {
    content: ''; position: absolute; top: 19px; height: 2px; background: var(--mono-lime, #ccea4a); z-index: 0;
}
.vlg-flow__step::before { left: -22px; right: 50%; }      /* from the previous node */
.vlg-flow__step::after { left: 50%; right: -22px; }       /* to the next node */
.vlg-flow__step:nth-child(3n + 1)::before, .vlg-flow__step:nth-child(3n)::after, .vlg-flow__step:last-child::after { display: none; }
.vlg-flow__n {
    position: relative; z-index: 1; justify-self: center;
    display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
    background: var(--mono-ink); color: var(--mono-lime, #ccea4a);
    font-family: var(--mono-font-display); font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums;
    box-shadow: 0 0 0 6px #fff, 0 0 0 7px var(--mono-lime, #ccea4a);
}
.vlg-flow__card {
    min-width: 0; padding: 22px; background: var(--mono-white);
    border: 1px solid var(--mono-border); border-radius: 18px;
    transition: transform var(--mono-dur, .2s) var(--mono-ease, ease), box-shadow var(--mono-dur, .2s) ease, border-color var(--mono-dur, .2s) ease;
}
.vlg-flow__step:hover .vlg-flow__card { transform: translateY(-3px); box-shadow: var(--mono-shadow-hover, 0 12px 28px rgba(17,24,39,.08)); border-color: var(--mono-lime, #ccea4a); }
.vlg-flow__i { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--mono-lime-pale, #fbfde8); color: var(--mono-ink); }
.vlg-flow__t { display: block; margin-top: 14px; font-family: var(--mono-font-display); font-size: 16px; font-weight: 800; letter-spacing: -0.01em; color: var(--mono-ink); }
.vlg-flow__d { display: block; margin-top: 6px; font-size: var(--mono-fs-sm); color: var(--mono-text-muted); line-height: 1.55; }

/* ---- table shell (exports) -------------------------------------------- */
.vlg-tablewrap { margin: 0; overflow-x: auto; background: var(--mono-white); border: 1px solid var(--mono-border); border-radius: 16px; }
.vlg-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.vlg-table th {
    padding: 14px 18px; text-align: left;
    font-size: 11.5px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--mono-text-muted); border-bottom: 1px solid var(--mono-border);
}
.vlg-table td { padding: 14px 18px; text-align: left; vertical-align: top; color: var(--mono-text-muted); border-bottom: 1px solid var(--mono-border); line-height: 1.5; }
.vlg-table td:first-child { font-weight: 600; color: var(--mono-ink); white-space: nowrap; }
.vlg-table tbody tr { transition: background var(--mono-dur, .2s) ease; }
.vlg-table tbody tr:hover { background: var(--mono-lime-pale, #fbfde8); }
.vlg-table tbody tr:last-child td { border-bottom: 0; }
.vlg-table--exports th:nth-child(2), .vlg-table--exports td:nth-child(2) { background: #f6f6f7; }
.vlg-table--exports tbody tr:hover td:nth-child(2) { background: #f1f2ee; }
.vlg-table--exports th:first-child, .vlg-table--exports td:first-child { padding-right: 24px; }
.vlg-fmt { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.vlg-fmt > svg { flex: 0 0 auto; width: 34px; height: 34px; padding: 7px; border-radius: 10px; background: var(--mono-ink); color: var(--mono-lime, #ccea4a); }

/* ---- use cases 3x2 ----------------------------------------------------- */
.vlg-uses { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.vlg-uses__card {
    padding: 20px 22px; background: var(--mono-white); border: 1px solid var(--mono-border); border-radius: 16px;
    transition: transform var(--mono-dur, .2s) var(--mono-ease, ease), box-shadow var(--mono-dur, .2s) ease, border-color var(--mono-dur, .2s) ease;
}
.vlg-uses__card:hover { transform: translateY(-3px); box-shadow: var(--mono-shadow-hover, 0 12px 28px rgba(17,24,39,.08)); border-color: var(--mono-lime, #ccea4a); }
.vlg-uses__i { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--mono-lime-pale, #fbfde8); color: var(--mono-ink); margin-bottom: 12px; }
.vlg-uses__card h3 { margin: 0; font-family: var(--mono-font-display); font-size: 15.5px; font-weight: 700; color: var(--mono-ink); }
.vlg-uses__card p { margin: 6px 0 0; font-size: var(--mono-fs-sm); color: var(--mono-text-muted); line-height: 1.55; }
.vlg-uses__card a { color: var(--mono-ink); border-bottom: 2px solid var(--mono-lime); padding-bottom: 1px; text-decoration: none; }

/* ---- under the hood: four cards + a tech strip ------------------------- */
.vlg-hood { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.vlg-hood__card {
    display: flex; flex-direction: column; gap: 10px;
    padding: 22px; background: var(--mono-white); border: 1px solid var(--mono-border); border-radius: 16px;
    transition: transform var(--mono-dur, .2s) var(--mono-ease, ease), box-shadow var(--mono-dur, .2s) ease, border-color var(--mono-dur, .2s) ease;
}
.vlg-hood__card:hover { transform: translateY(-3px); box-shadow: var(--mono-shadow-hover, 0 12px 28px rgba(17,24,39,.08)); border-color: var(--mono-lime, #ccea4a); }
.vlg-hood__i { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--mono-ink); color: var(--mono-lime, #ccea4a); }
.vlg-hood__card h3 { margin: 4px 0 0; font-family: var(--mono-font-display); font-size: 16px; font-weight: 800; letter-spacing: -0.01em; color: var(--mono-ink); }
.vlg-hood__card p { margin: 0; font-size: var(--mono-fs-sm); color: var(--mono-text-muted); line-height: 1.6; }
.vlg-hood__card a { color: var(--mono-ink); border-bottom: 2px solid var(--mono-lime); padding-bottom: 1px; text-decoration: none; }
.vlg-tech { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; padding: 0; list-style: none; }
.vlg-tech li {
    padding: 6px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
    background: var(--mono-surface-subtle, #f9fafb); border: 1px solid var(--mono-border); color: var(--mono-gray-700);
}

/* ---- FAQ: the foundation accordion, centred ---------------------------- */
.vlg-faq .mono-section-head { margin-left: auto; margin-right: auto; text-align: center; }
.vlg-faq .mono-faq2 { grid-template-columns: 1fr; max-width: 860px; margin: 0 auto; }
.vlg-faq .vlg-cta-row { justify-content: center; margin-top: 32px; }

/* ---- motion ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
    .vlg-stage__bar::after { transition: none; }
    .vlg-pair, .vlg-look, .vlg-flow__card, .vlg-uses__card, .vlg-hood__card, .vlg-feat__card, .vlg-pair__img img, .vlg-look img { transition: none; }
}

/* ---- narrow ------------------------------------------------------------ */
@media (max-width: 979px) {
    .vlg-feat { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .vlg-feat__card--wide { grid-template-columns: 44px minmax(0, 1fr); }
    .vlg-feat__art { display: none; }
    .vlg-looks { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .vlg-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .vlg-flow__step:nth-child(3n + 1)::before, .vlg-flow__step:nth-child(3n)::after { display: block; }
    .vlg-flow__step:nth-child(2n + 1)::before, .vlg-flow__step:nth-child(2n)::after { display: none; }
    .vlg-uses { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .vlg-hood { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 719px) {
    .vlg-h1__br { display: none; }
}
@media (max-width: 620px) {
    .vlg-pairs { grid-template-columns: minmax(0, 1fr); }
    .vlg-looks { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .vlg-flow { grid-template-columns: minmax(0, 1fr); }
    .vlg-flow__step::before, .vlg-flow__step::after { display: none !important; }
    .vlg-feat { grid-template-columns: minmax(0, 1fr); }
    .vlg-feat__card--wide { grid-column: span 1; }
    .vlg-uses { grid-template-columns: minmax(0, 1fr); }
    .vlg-hood { grid-template-columns: minmax(0, 1fr); }
    .vlg-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .vlg-looks-head { grid-template-columns: 64px minmax(0, 1fr); }
    .vlg-looks-head img { width: 64px; height: 64px; }
    .vlg-stage { margin-top: 28px; }
    .vlg-stage__frame { border-radius: 14px; }
    .vlg-stage__tag { top: 10px; font-size: 11px; padding: 5px 10px; }
}
@media (max-width: 420px) {
    .vlg-looks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .vlg-stats { grid-template-columns: minmax(0, 1fr); }
}
