:root {
  --bg: #f7f7fb; --surface: #fff; --text: #1d1d2b; --muted: #555570; --border: #e3e3ee;
  --accent: #4f46e5; --accent-hover: #4338ca; --accent-soft: #eef0ff; --on-accent: #fff;
  --ok: #0f7a4b; --warn: #8a4b00; --warn-soft: #fff4e5; --err: #b42318;
  --radius: 14px; --shadow: 0 1px 2px rgba(20,20,50,.05), 0 6px 24px rgba(20,20,50,.06);
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #111118; --surface: #1b1b25; --text: #ececf3; --muted: #b0b0c4; --border: #2e2e3d;
    --accent: #8b85ff; --accent-hover: #a29dff; --accent-soft: #24233f; --on-accent: #111118;
    --ok: #4ade80; --warn: #fbbf24; --warn-soft: #3a2d10; --err: #f87171; --shadow: none; }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); line-height: 1.6; overflow-x: hidden;
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
img, svg { max-width: 100%; height: auto; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.01em; overflow-wrap: anywhere; }
h1 { font-size: clamp(1.8rem, 4.5vw, 2.7rem); margin: 0 0 .5rem; }
h2 { font-size: clamp(1.35rem, 3vw, 1.6rem); margin: 2.2rem 0 .75rem; }
h3 { font-size: 1.12rem; margin: 1.2rem 0 .5rem; }
p, li { overflow-wrap: anywhere; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.narrow-p { max-width: 760px; }
.small { font-size: .88rem; color: var(--muted); }
.center { text-align: center; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--surface); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }

/* header / footer */
.site-header { background: var(--surface); border-bottom: 1px solid var(--border); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; min-height: 60px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1.15rem; color: var(--text); text-decoration: none; min-height: 44px; }
.site-header nav { display: flex; gap: 0 6px; flex-wrap: wrap; font-size: .95rem; }
.site-header nav a { color: var(--muted); text-decoration: none; padding: 10px 6px; min-height: 44px; display: inline-flex; align-items: center; }
.site-header nav a:hover { color: var(--text); }
.site-footer { margin-top: 64px; padding: 32px 0; border-top: 1px solid var(--border); background: var(--surface); }
.footer-cols { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-bottom: 16px; font-size: .95rem; }
.footer-cols a { display: block; padding: 6px 0; color: var(--muted); text-decoration: none; }
.footer-cols a:hover { color: var(--text); text-decoration: underline; }
.footer-h { font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 6px; color: var(--text); }
.crumbs { font-size: .88rem; color: var(--muted); padding-top: 14px; }
.crumbs a { color: var(--muted); }

/* hero */
.hero { padding: 40px 16px 16px; text-align: center; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 800px; margin: 0 auto; }
.trust { list-style: none; padding: 8px 16px 0; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 8px 28px; justify-content: center; font-size: .95rem; color: var(--muted); }
.trust li { display: flex; align-items: flex-start; gap: 8px; }
.trust li svg { margin-top: 4px; }
.trust svg { color: var(--ok); flex: none; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--accent);
  background: var(--accent); color: var(--on-accent); font: inherit; font-weight: 600; padding: 10px 18px;
  border-radius: 10px; cursor: pointer; text-decoration: none; min-height: 44px; }
.btn:hover { background: var(--accent-hover); color: var(--on-accent); }
.btn.ghost { background: transparent; color: var(--accent); }
.btn.ghost:hover { background: var(--accent-soft); }
.btn[disabled] { opacity: .55; cursor: default; }
.small-btn { padding: 6px 14px; }
.linkish { background: none; border: 0; color: var(--accent); text-decoration: underline; font: inherit; cursor: pointer; padding: 10px 0; min-height: 44px; }

/* uploader */
.uploader { padding: 20px; margin: 16px auto 8px; max-width: 920px; }
.drop { border: 2px dashed var(--border); border-radius: 12px; padding: 28px 16px; text-align: center; color: var(--muted);
  transition: border-color .15s, background .15s; cursor: pointer; }
.drop:hover, .drop.over { border-color: var(--accent); background: var(--accent-soft); }
.drop svg { color: var(--accent); }
.drop-title { color: var(--text); font-size: 1.1rem; margin: 8px 0; }
.drop-buttons { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.drop-free { color: var(--text); margin: 10px 0 0; font-weight: 600; font-size: .95rem; }
.limits { text-align: center; margin: 10px 0 0; }
.uploader.has-job .drop, .uploader.has-job .limits { display: none; }
body.has-job .hero, body.has-job .hero-side, body.has-job .trust { display: none; }
.check { display: inline-flex; align-items: flex-start; gap: 10px; cursor: pointer; min-height: 44px; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--accent); flex: none; }
.status { margin: 12px 0 0; min-height: 1.4em; font-weight: 500; }
.status.error { color: var(--err); }
.progress-wrap progress { width: 100%; height: 10px; accent-color: var(--accent); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 12px 0 8px; }
.actions .note { flex-basis: 100%; margin: 0; }
.offer { flex-basis: 100%; border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; background: var(--bg); }
.offer .rec { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.offer .rec-text { margin: 0; font-weight: 600; }
.offer .rec-text span { display: block; font-weight: 400; color: var(--muted); font-size: .9rem; }
.offer .others { margin: 10px 0 0; font-size: .88rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 14px; }
.offer .others button { font-size: .88rem; min-height: 32px; padding: 4px 8px; }
.word-note { margin: 0 0 12px; }
.grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.tile { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: var(--bg); display: flex; flex-direction: column; }
.thumb { aspect-ratio: 3 / 4; display: flex; align-items: center; justify-content: center; background: #fff; border-bottom: 1px solid var(--border); overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: contain; }
.thumb .ph { font-size: .85rem; color: #666; padding: 8px; text-align: center; }
.meta { padding: 8px 10px; font-size: .82rem; display: flex; flex-direction: column; gap: 6px; }
.meta .name { font-weight: 600; overflow-wrap: anywhere; color: var(--text); }
.badge { display: inline-block; font-size: .75rem; font-weight: 600; }
.badge.ok { color: var(--ok); } .badge.failed { color: var(--err); } .badge.queued, .badge.converting { color: var(--warn); }
.badge.check { color: var(--warn); background: var(--warn-soft); border-radius: 6px; padding: 2px 6px; cursor: help; align-self: flex-start; }
.badge.check[title] { text-decoration: underline dotted; }
.dl { display: flex; gap: 6px; flex-wrap: wrap; }
.dl a, .dl span, .dl button { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 4px 6px; white-space: nowrap; border-radius: 8px;
  border: 1px solid var(--accent); color: var(--accent); text-decoration: none; font-weight: 600; flex: 1 1 60px; }
.dl a:hover { background: var(--accent-soft); }
.dl .locked { background: var(--surface); color: var(--muted); border-color: var(--border); font: inherit; font-size: inherit; font-weight: 600; cursor: pointer; }
.dl .locked:hover { border-color: var(--accent); color: var(--accent); }
.dl .locked svg { width: 12px; height: 12px; margin-left: 4px; }
.dl .na { color: var(--muted); border-color: var(--border); font-weight: 400; cursor: not-allowed; }
.options { margin-top: 10px; font-size: .92rem; }
.options summary { cursor: pointer; color: var(--muted); padding: 8px 0; min-height: 44px; display: flex; align-items: center; gap: 6px; list-style: none; }
.options summary::-webkit-details-marker { display: none; }
.options summary::before { content: ''; width: 0; height: 0; border: 5px solid transparent; border-left: 7px solid var(--muted); transition: transform .15s; }
.options[open] summary::before { transform: rotate(90deg); }
.options-body { display: flex; flex-direction: column; gap: 12px; padding: 4px 0 8px; }
.options .inline-form { align-items: center; margin: 0; }
.options .inline-form label { flex-basis: 100%; }
.inline-form { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.inline-form input, .email-form input { flex: 1 1 220px; font: inherit; padding: 9px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--text); min-height: 44px; }

/* content blocks */
.cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.feature { padding: 18px 20px; }
.feature h3 { margin: 8px 0 4px; font-size: 1.05rem; }
.feature svg { color: var(--accent); display: block; }
.feature p { margin: 0; color: var(--muted); font-size: .95rem; }
.steps { list-style: none; counter-reset: step; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); padding: 0; margin: 0; }
.steps li { counter-increment: step; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; position: relative; }
.steps li::before { content: counter(step); position: absolute; top: 14px; right: 16px; width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent); font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: .9rem; }
.steps svg { color: var(--accent); display: block; margin-bottom: 8px; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.compare { border-collapse: collapse; width: 100%; min-width: 640px; font-size: .93rem; }
.compare th, .compare td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.compare thead th { background: var(--bg); }
.compare tbody th { font-weight: 600; width: 28%; }
.compare td.yes { color: var(--ok); font-weight: 600; }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
.examples { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); align-items: start; }
.examples figure { margin: 0; }
.examples img { display: block; border: 1px solid var(--border); border-radius: 8px; background: #fff; box-shadow: var(--shadow); }
.examples figcaption { font-size: .88rem; color: var(--muted); margin-top: 8px; }
.plans { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.plan { padding: 20px; position: relative; }
.plan h3 { margin-top: 0; }
.plan.featured { border-color: var(--accent); border-width: 2px; }
.ribbon { position: absolute; top: -12px; left: 16px; margin: 0; background: var(--accent); color: var(--on-accent); font-size: .75rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; letter-spacing: .03em; }
.price { font-size: 2rem; font-weight: 700; margin: 0; }
.price span { font-size: .9rem; font-weight: 400; color: var(--muted); }
.plan ul { padding-left: 1.1rem; margin-bottom: 0; }
.prose { margin-top: 24px; }
.prose li { margin-bottom: .4rem; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 4px 16px; margin-bottom: 8px; }
.faq summary { cursor: pointer; font-weight: 600; padding: 10px 0; min-height: 44px; display: flex; align-items: center; }
.faq .answer { margin: 0 0 12px; color: var(--muted); }
.related ul, .link-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.related li a, .link-list li a { display: inline-flex; align-items: center; min-height: 44px; padding: 6px 14px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); text-decoration: none; }
.related li a:hover, .link-list li a:hover { border-color: var(--accent); }
.success { padding: 24px; margin-top: 16px; }
.success h1 { margin-top: 0; }
.pass-code { font: 600 1.4rem ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--accent-soft); padding: 12px; border-radius: 10px; overflow-wrap: anywhere; user-select: all; }
.legal h2 { font-size: 1.2rem; }
code { background: var(--accent-soft); padding: 1px 5px; border-radius: 5px; font-size: .92em; }
@media (max-width: 600px) {
  body { font-size: 16px; }
  .hero { padding-top: 24px; }
  .actions .btn { flex: 1 1 100%; }
  .drop-buttons .btn { flex: 1 1 100%; }
  .trust { flex-direction: column; align-items: flex-start; gap: 6px; }
  .site-header nav { width: 100%; justify-content: space-between; }
  .site-header nav a { padding: 10px 4px; font-size: .9rem; }
}

/* hero: two columns on desktop */
.hero-grid { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: flex-start; }
.hero-main { flex: 1 1 560px; min-width: 0; }
.hero-main .uploader { margin: 16px 0 8px; max-width: none; }
.hero-main .trust { padding: 8px 0 0; justify-content: flex-start; }
.hero-side { flex: 0 1 280px; margin-top: 16px; display: flex; flex-direction: column; gap: 12px; }
.hero-side figure { margin: 0; }
.hero-side img { display: block; border: 1px solid var(--border); border-radius: 8px; background: #fff; box-shadow: var(--shadow); }
.hero-side figcaption { font-size: .82rem; color: var(--muted); margin-top: 6px; }
.ex-small { display: flex; gap: 10px; align-items: center; }
.ex-small img { width: 96px; height: auto; }
.ex-small figcaption { margin: 0; }
.ex-link { display: block; cursor: zoom-in; }
.h1-short { display: none; }
@media (max-width: 900px) {
  .hero-side { flex-basis: 100%; flex-direction: row; align-items: flex-start; gap: 16px; }
  .ex-main { flex: 0 0 200px; }
  .hero-side .ex-main img { width: 200px; }
}
/* locked downloads -> plan box highlight */
.offer.flash { animation: flash 1.2s ease-out 2; }
@keyframes flash { 0% { box-shadow: 0 0 0 0 rgba(79,70,229,.6); border-color: var(--accent); } 100% { box-shadow: 0 0 0 10px rgba(79,70,229,0); } }
/* tiles */
.thumb-btn { display: block; width: 100%; padding: 0; border: 0; background: #fff; cursor: zoom-in; font: inherit; }
.thumb-btn img { display: block; }
.note-line { font-size: .75rem; color: var(--warn); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ph.err { color: var(--err); }
.retry { font-size: .8rem; min-height: 36px; padding: 4px 10px; align-self: flex-start; }
/* email me the link */
.email-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 14px 0 4px; }
.email-label { font-weight: 600; flex-basis: 100%; }
.email-form input { flex: 1 1 200px; }
/* lightbox */
.lb { position: fixed; inset: 0; z-index: 100; background: #0c0c16; color: #fff; display: flex; flex-direction: column; }
.lb[hidden] { display: none; }
.lb-bar { display: flex; align-items: center; gap: 8px 12px; padding: 8px 12px; flex-wrap: wrap; }
.lb-name { font-weight: 600; flex: 1 1 200px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-count { font-variant-numeric: tabular-nums; color: #cfcfe0; }
.lb-bar .dl { flex: 0 0 auto; }
.lb-bar .dl a, .lb-bar .dl button { color: #fff; border-color: #777; flex: none; }
.lb-bar .dl .locked { background: transparent; }
.lb-x, .lb-prev, .lb-next { background: rgba(255,255,255,.1); color: #fff; border: 0; border-radius: 10px; min-width: 44px; min-height: 44px; font: inherit; font-size: 1.4rem; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.lb-x:hover, .lb-prev:hover, .lb-next:hover { background: rgba(255,255,255,.22); }
.lb-stage { flex: 1 1 auto; min-height: 0; position: relative; display: flex; align-items: center; justify-content: center; padding: 0 56px 34px; touch-action: pan-y; }
.lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; background: #fff; box-shadow: 0 0 40px rgba(0,0,0,.5); }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); }
.lb-prev { left: 8px; } .lb-next { right: 8px; }
.lb-prev[disabled], .lb-next[disabled] { opacity: .3; cursor: default; }
.lb-prev[hidden], .lb-next[hidden] { display: none; }
.lb-msg { position: absolute; bottom: 12px; left: 0; right: 0; text-align: center; font-size: .85rem; color: #cfcfe0; }
@media (max-width: 480px) {
  .grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .lb-stage { padding: 0 4px 56px; }
  .lb-prev, .lb-next { top: auto; bottom: 8px; transform: none; }
  .lb-prev { left: 8px; } .lb-next { right: 8px; }
}
@media (max-width: 600px) {
  .h1-long { display: none; }
  .h1-short { display: inline; }
  h1 { font-size: 1.6rem; }
  .lead { font-size: 1rem; }
  .hero { padding: 14px 16px 2px; }
  .hero-main .uploader { margin-top: 8px; padding: 12px; }
  .drop { padding: 14px 10px; }
  .drop svg { width: 30px; height: 30px; }
  .drop-title { font-size: 1rem; margin: 4px 0 8px; }
  .drop-buttons { gap: 8px; }
  .hero-side { flex-direction: column; }
  .ex-main { flex: none; }
  .hero-side .ex-main img { width: 100%; }
}

/* Same file, three results */
.vs-row { display: grid; gap: 20px; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; margin-top: 16px; }
.vs-item { margin: 0; }
.vs-item figcaption { margin-bottom: 8px; }
.vs-item img { display: block; width: 100%; height: auto; border: 1px solid var(--border); border-radius: 8px; background: #fff; box-shadow: var(--shadow); }
.vs-item .small { color: var(--muted); margin-top: 8px; }
.vs-ours img { outline: 3px solid var(--accent); outline-offset: 2px; }
.vs-more { color: var(--muted); margin-top: 12px; }
@media (max-width: 720px) {
  .vs-row { grid-template-columns: repeat(3, minmax(220px, 1fr)); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
  .vs-item { scroll-snap-align: start; }
}
.vs-more a.ex-link { display: inline; }
