:root{--bg:#fbf7f1;--surface:#fff;--surface-2:#fdf1e8;--ink:#241f1c;--muted:#6b5d52;--line:#ece3d8;--line-2:#f3d9c6;--brand:#fb7a3c;--brand-dark:#e85f1f;--brand-soft:#ffe7d6;--accent:#19a974;--accent-soft:#d6f3e6;--radius:16px;--radius-sm:11px;--shadow:0 1px 2px rgba(60,40,25,.05),0 18px 38px -20px rgba(120,70,30,.30);--shadow-sm:0 1px 2px rgba(60,40,25,.06),0 8px 18px -12px rgba(120,70,30,.22);--max:1140px;--font:"Nunito",system-ui,-apple-system,"Segoe UI",Roboto,Helvetica,Arial,sans-serif}
*{box-sizing:border-box}
body{margin:0;font-family:var(--font);color:var(--ink);background:var(--bg);line-height:1.65;-webkit-font-smoothing:antialiased}
a{color:var(--brand-dark);text-decoration:none}a:hover{text-decoration:underline}
h1,h2,h3{line-height:1.18;margin:0}
.wrap{max-width:var(--max);margin:0 auto;padding:0 20px}.narrow{max-width:760px}
header.site{position:sticky;top:0;z-index:40;background:rgba(251,247,241,.92);backdrop-filter:saturate(180%) blur(10px);border-bottom:1px solid var(--line)}
header.site .wrap{display:flex;align-items:center;gap:22px;height:66px}
.brand{display:flex;align-items:center;gap:10px;font-weight:900;font-size:1.22rem;color:var(--ink)}
.brand:hover{text-decoration:none}.brand img{display:block}.brand b{color:var(--brand-dark)}
.spacer{flex:1}.ghost{font-weight:800;color:var(--ink)}
.crumb{color:var(--muted);font-weight:700;font-size:.9rem;padding-top:22px}
.tool-head{text-align:center;padding:26px 0 8px}
.tool-head .ico{width:62px;height:62px;border-radius:16px;display:grid;place-items:center;font-size:1.9rem;margin:0 auto 14px;background:var(--accent-soft)}
.tool-head h1{font-size:clamp(1.7rem,3.6vw,2.5rem);font-weight:900;letter-spacing:-.02em}
.tool-head p{max-width:560px;margin:12px auto 0;color:var(--muted);font-weight:600;font-size:1.06rem}
.drop{margin:26px auto 0;max-width:760px;background:var(--surface);border:2.5px dashed var(--line-2);border-radius:var(--radius);padding:46px 24px;text-align:center;transition:.16s;box-shadow:var(--shadow-sm)}
.drop.drag{border-color:var(--brand);background:var(--surface-2)}
/* once a file is loaded, collapse the drop zone so the file + controls are front and centre (auto-reverses on remove) */
section:has(.files .file) .drop,
section:has(.thumbs .thumb) .drop{display:none}
/* gentle entrance so the upload registers visually */
@keyframes pqIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
.files .file,.thumbs .thumb,.result{animation:pqIn .22s ease both}
.files .file{border-left:3px solid var(--brand)}
.drop .big{font-size:1.18rem;font-weight:800;margin-bottom:6px}.drop .sub{color:var(--muted);font-weight:600;font-size:.95rem}
.btn{display:inline-flex;align-items:center;gap:9px;font-family:inherit;font-weight:800;font-size:1.02rem;color:#fff;background:var(--brand);border:none;border-radius:999px;padding:14px 28px;cursor:pointer;box-shadow:var(--shadow-sm);transition:.15s}
.btn:hover{background:var(--brand-dark)}.btn:disabled{opacity:.5;cursor:not-allowed}
.btn.lg{font-size:1.1rem;padding:16px 34px}.btn.sec{background:var(--surface);color:var(--ink);border:1px solid var(--line)}.btn.sec:hover{background:var(--surface-2)}
.mt{margin-top:16px}.hidden{display:none!important}
.opts{max-width:760px;margin:20px auto 0;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:20px;box-shadow:var(--shadow-sm)}
.opts label{font-weight:700;display:block;margin-bottom:8px}
.opts input[type=text],.opts input[type=number]{font-family:inherit;font-size:1rem;font-weight:600;padding:11px 13px;border:1px solid var(--line-2);border-radius:var(--radius-sm);width:100%;color:var(--ink)}
.opts .hint{color:var(--muted);font-weight:600;font-size:.88rem;margin-top:7px}
.opts input[type=range]{width:100%;accent-color:var(--brand)}
.radio{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:6px}
.radio button{font-family:inherit;font-weight:800;font-size:.92rem;color:var(--muted);background:var(--bg);border:1px solid var(--line);padding:9px 15px;border-radius:999px;cursor:pointer}
.radio button.on{background:var(--brand);border-color:var(--brand);color:#fff}
.files{max-width:760px;margin:20px auto 0;display:flex;flex-direction:column;gap:10px}
.file{display:flex;align-items:center;gap:13px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-sm);padding:12px 14px;box-shadow:var(--shadow-sm)}
.file .fico{font-size:1.3rem}.file .nm{flex:1;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.file .sz{color:var(--muted);font-weight:600;font-size:.85rem}.file .ord{display:flex;gap:4px}
.iconbtn{font-family:inherit;border:1px solid var(--line);background:var(--surface);border-radius:8px;width:30px;height:30px;cursor:pointer;font-weight:800;color:var(--muted)}
.iconbtn:hover{color:var(--ink);border-color:var(--line-2)}
.thumbs{max-width:760px;margin:20px auto 0;display:grid;grid-template-columns:repeat(auto-fill,minmax(110px,1fr));gap:12px}
.thumb{position:relative;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-sm);padding:8px;box-shadow:var(--shadow-sm)}
.thumb img,.thumb canvas{width:100%;height:90px;object-fit:cover;border-radius:7px;display:block}
.thumb .x{position:absolute;top:4px;right:4px;background:rgba(0,0,0,.6);color:#fff;border:none;border-radius:7px;width:24px;height:24px;cursor:pointer;font-weight:800}
.thumb .nm{font-size:.72rem;color:var(--muted);font-weight:700;margin-top:5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.thumb.sel{outline:3px solid var(--brand);outline-offset:1px}
.actions{max-width:760px;margin:22px auto 0;display:flex;justify-content:center;gap:12px;flex-wrap:wrap}
.note{max-width:760px;margin:14px auto 0;text-align:center;color:var(--muted);font-weight:600;font-size:.9rem}.note b{color:var(--accent)}
.result{max-width:760px;margin:24px auto 0;text-align:center;background:var(--accent-soft);border:1px solid #bfe9d4;border-radius:var(--radius);padding:26px}
.result h3{font-size:1.2rem;font-weight:900;color:#0e7a52}.result .dls{display:flex;flex-direction:column;gap:10px;align-items:center;margin-top:14px}
.err{color:#c0392b;font-weight:700;margin-top:10px}
.steps{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:18px;margin-top:18px}
.step{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:20px}
.step .n{width:32px;height:32px;border-radius:999px;background:var(--brand);color:#fff;font-weight:900;display:grid;place-items:center;margin-bottom:10px}
.step h3{font-size:1.02rem;font-weight:800}.step p{margin:5px 0 0;color:var(--muted);font-weight:600;font-size:.92rem}
.block{padding:42px 0}.block h2{font-size:1.5rem;font-weight:900;letter-spacing:-.01em}
.privacy{background:var(--surface);border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.privacy .row{display:flex;align-items:center;gap:16px;max-width:760px;margin:0 auto}.privacy .e{font-size:2.2rem}
.faq details{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-sm);padding:4px 18px;margin-bottom:12px}
.faq summary{font-weight:800;cursor:pointer;padding:14px 0;list-style:none}.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"+";float:right;color:var(--brand);font-weight:900}.faq details[open] summary::after{content:"\2013"}
.faq details p{margin:0 0 14px;color:var(--muted);font-weight:600}
.related .grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px;margin-top:14px}
.related .card{display:flex;align-items:center;gap:12px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-sm);padding:15px}
.related .card:hover{border-color:var(--line-2);text-decoration:none}.related .card .e{font-size:1.4rem}.related .card b{color:var(--ink)}
footer.site{background:#2a231f;color:#e9ddd2;padding:46px 0 30px;margin-top:30px}
footer.site a{color:#d9c8b9}
footer.site .cols{display:grid;grid-template-columns:1.4fr repeat(3,1fr);gap:26px}
footer.site h4{font-size:.82rem;text-transform:uppercase;letter-spacing:.1em;color:#b39e8c;margin:0 0 12px}
footer.site ul{list-style:none;margin:0;padding:0}footer.site li{margin:0 0 9px}
footer.site .brand{color:#fff}footer.site .brand b{color:var(--brand)}
footer .fnote{display:flex;flex-wrap:wrap;justify-content:space-between;gap:10px;border-top:1px solid #43382f;margin-top:30px;padding-top:18px;color:#b39e8c;font-size:.86rem;font-weight:600}
@media(max-width:760px){footer.site .cols{grid-template-columns:1fr 1fr}}
@media(max-width:560px){
  header.site .wrap{gap:12px;height:60px}
  .brand{font-size:1.12rem}
  .tool-head{padding:18px 0 4px}
  .tool-head p{font-size:1rem}
  .drop{padding:34px 18px}
  .btn{padding:13px 22px}
  .btn.lg{padding:15px 26px}
  .steps,.related .grid{grid-template-columns:1fr}
  .privacy .row{flex-direction:column;text-align:center}
  .radio{justify-content:center}
}
