/* vectacle.css — Vectacle's own look on top of tools.css (copied unchanged from Scaylr): brand colours,
   header, footer and the landing sections. Theme = <html data-theme="light|dark"> (light by default). */
:root {
  --accent: #2dd4bf; --accent-hover: #5eead4; --accent-soft: rgba(45,212,191,.12); --accent-line: rgba(45,212,191,.32);
  --on-accent: #042f2c;
}
[data-theme="light"] {
  --accent: #0f766e; --accent-hover: #115e59; --accent-soft: rgba(15,118,110,.08); --accent-line: rgba(15,118,110,.30);
  --on-accent: #ffffff;
}
.vc-head { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.vc-head-in, .vc-foot-in { max-width: 1180px; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; gap: 16px; }
.vc-head-in { height: 60px; }
.vc-logo { display: inline-flex; align-items: center; gap: 9px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 19px; letter-spacing: -.01em; }
.vc-logo svg { flex: none; }
.vc-nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.vc-nav a { color: var(--text-2); text-decoration: none; font-size: 15px; font-weight: 500; padding: 8px 10px; border-radius: 8px; }
.vc-nav a:hover { color: var(--text); background: var(--surface-2); }
.vc-nav .theme-btn { margin-left: 4px; }
@media (max-width: 640px) { .vc-nav a.vc-hide-sm { display: none; } }

.vc-hero { text-align: center; max-width: 760px; margin: 0 auto; padding: 8px 0 4px; }
.vc-hero h1 { font-size: clamp(30px, 5vw, 46px); line-height: 1.08; letter-spacing: -.025em; margin: 0 0 12px; }
.vc-hero h1 em { font-style: normal; color: var(--accent); }
.vc-hero p { font-size: 18px; color: var(--text-2); margin: 0 auto 14px; max-width: 620px; line-height: 1.5; }
.vc-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 22px; padding: 0; list-style: none; }
.vc-pills li { font-size: 14px; color: var(--text-2); padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); }

.vc-sec { margin-top: 64px; }
.vc-sec h2 { font-size: clamp(24px, 3.4vw, 32px); letter-spacing: -.02em; margin: 0 0 8px; }
.vc-sec > p.vc-lead { color: var(--text-2); font-size: 17px; margin: 0 0 22px; max-width: 680px; line-height: 1.55; }
.vc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.vc-card { padding: 20px; border: 1px solid var(--border); border-radius: var(--r); background: var(--surface); }
.vc-card h3 { font-size: 17px; margin: 0 0 6px; }
.vc-card p { margin: 0; color: var(--text-2); font-size: 15px; line-height: 1.55; }
.vc-num { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 14px; margin-bottom: 10px; }
.vc-faq details { border-bottom: 1px solid var(--border); padding: 14px 0; }
.vc-faq summary { cursor: pointer; font-weight: 600; font-size: 16px; list-style: none; }
.vc-faq summary::-webkit-details-marker { display: none; }
.vc-faq summary::after { content: '+'; float: right; color: var(--text-3); font-weight: 400; }
.vc-faq details[open] summary::after { content: '–'; }
.vc-faq details p { margin: 10px 0 0; color: var(--text-2); line-height: 1.6; }

.vc-foot { margin-top: 80px; border-top: 1px solid var(--border); padding: 28px 0 40px; color: var(--text-3); font-size: 14px; }
.vc-foot-in { flex-wrap: wrap; justify-content: space-between; }
.vc-foot a { color: var(--text-2); text-decoration: none; margin-right: 14px; }
.vc-foot a:hover { color: var(--text); }

/* ── Top of the homepage: copy + drop zone left, before/after demo right ── */
.vc-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; padding: 8px 0 8px; }
.vc-top h1 { font-size: clamp(32px, 4.4vw, 50px); line-height: 1.06; letter-spacing: -.03em; margin: 0 0 14px; }
.vc-top h1 em { font-style: normal; color: var(--accent); }
.vc-sub { font-size: 18px; color: var(--text-2); margin: 0 0 22px; line-height: 1.5; max-width: 540px; }
.vc-top .dz { margin: 0; }
.vc-top .vc-pills { justify-content: flex-start; margin: 18px 0 0; }
.vc-try { display: flex; align-items: center; gap: 10px; margin-top: 12px; color: var(--text-3); font-size: 14px; }
.vc-try-btn { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; font-weight: 600; cursor: pointer; }
.vc-try-btn:hover { border-color: var(--accent-line); color: var(--accent); }
.vc-try-btn img { width: 32px; height: 32px; object-fit: cover; border-radius: 7px; }
@media (max-width: 900px) { .vc-top { grid-template-columns: 1fr; gap: 28px; } }

.vc-demo { position: relative; margin: 0; aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; border: 1px solid var(--border);
  box-shadow: var(--shadow); background: #fff; --cut: 50%; user-select: none; -webkit-user-select: none; touch-action: pan-y; }
.vc-demo-img { position: absolute; inset: 0; overflow: hidden; }
.vc-demo-img img { position: absolute; width: 400%; max-width: none; left: -152%; top: -38%; pointer-events: none; }
.vc-demo-o img { image-rendering: pixelated; }
.vc-demo-s { clip-path: inset(0 0 0 var(--cut)); }
.vc-demo-h { position: absolute; top: 0; bottom: 0; left: var(--cut); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.15); pointer-events: none; }
.vc-demo-h span, .vc-handle span { position: absolute; top: 50%; left: 50%; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%;
  background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.25); }
.vc-demo-h span::before, .vc-handle span::before { content: '‹ ›'; position: absolute; inset: 0; display: grid; place-items: center; color: #0f766e; font-weight: 700; font-size: 18px; letter-spacing: 2px; }
.vc-demo-tag { position: absolute; top: 12px; padding: 5px 11px; border-radius: 999px; background: rgba(0,0,0,.66); color: #fff; font-size: 13px; font-weight: 700; pointer-events: none; }
.vc-demo-tag.vc-l { left: 12px; } .vc-demo-tag.vc-r { right: 12px; background: #0f766e; }
.vc-demo { cursor: grab; touch-action: none; }
.vc-demo.vc-grabbing { cursor: grabbing; }
.vc-demo.vc-near { cursor: ew-resize; }
.vc-demo-range { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.vc-demo:focus-within { outline: 2px solid var(--accent); outline-offset: 3px; }
.vc-demo-zoom { position: absolute; right: 12px; bottom: 12px; display: flex; gap: 6px; }
.vc-demo-zoom button { width: 36px; height: 36px; border-radius: 10px; border: 0; background: rgba(255,255,255,.92); color: #16181d; font: 600 20px/1 inherit; cursor: pointer; box-shadow: 0 1px 6px rgba(0,0,0,.2); }
.vc-demo-zoom button:hover { background: #fff; }
.vc-demo-zoom button:disabled { opacity: .45; cursor: default; }
.vc-demo figcaption { position: absolute; bottom: 20px; left: 12px; right: 100px; text-align: left; font-size: 13px; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.6); pointer-events: none; }

/* ── Working mode: once an image is in, the converter takes the page ── */
body.vc-working .vc-top { grid-template-columns: 1fr; padding: 0; }
body.vc-working .vc-top h1, body.vc-working .vc-sub, body.vc-working .vc-pills, body.vc-working .vc-try, body.vc-working .vc-demo,
body.vc-working .vc-sec, body.vc-working .vc-foot { display: none; }
body.vc-working main.tw { padding-top: 16px; }
body.vc-working .pv-panes { height: calc(100vh - 230px); min-height: 360px; max-height: none; }

/* ── Viewer: Slider mode stacks the SVG over the original, cut at the handle ── */
.vc-modes { display: inline-flex; }
.vc-modes button { padding: 6px 12px; font-size: 14px; }
.pv.vc-slider .pv-panes { gap: 0; }
.pv.vc-slider #pane-s { position: absolute; inset: 0; height: auto; clip-path: inset(0 0 0 var(--cut, 50%)); }
.pv.vc-slider .vc-handle { display: block; }
.vc-handle { display: none; position: absolute; top: 0; bottom: 0; left: var(--cut, 50%); width: 24px; margin-left: -12px; z-index: 3; cursor: ew-resize; touch-action: none; }
.vc-handle::before { content: ''; position: absolute; top: 0; bottom: 0; left: 11px; width: 2px; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.18); }
.pv.vc-slider #pane-s .pv-tag { left: auto; right: 10px; background: #0f766e; }
@media (max-width: 700px) { .pv.vc-slider #pane-o { height: 52vh; } body.vc-working .pv-panes { height: auto; } }
#out-lines { position: absolute; inset: 0; }
.pv.vc-lines #out { opacity: .18; }
.pv.vc-lines #pane-s { background: #fff; }

/* ── Wider pages: designs need room. Homepage 1440 px; while converting, the full window (up to 2200 px) ── */
.tw, .vc-head-in, .vc-foot-in { max-width: 1440px; }
body.vc-working .tw, body.vc-working .vc-head-in { max-width: 2200px; }
body.vc-working main.tw { padding-left: 20px; padding-right: 20px; }
.vc-top { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
@media (max-width: 900px) { .vc-top { grid-template-columns: 1fr; } }
.pv-panes:has(.vz-busy:not([hidden])) .vc-handle { display: none; }
