/* EditMorph brand and home page */
:root{--om:#4f46e5;--om-dark:#3730a3;--om-soft:#eef2ff;--om-ink:#111827;--om-muted:#5b6478;--om-line:#e6e8f0}
body{background:#fff;color:var(--om-ink)}
body[data-tool] .home{display:none}
body[data-tool]{background:#f7f8fc}

/* Header */
.om-header{position:sticky;top:0;z-index:30;background:#ffffffeb;backdrop-filter:saturate(1.4) blur(10px);border-bottom:1px solid var(--om-line)}
.om-header .header-inner{gap:28px}
.om-header nav{margin-left:auto;gap:22px}
.om-brand{display:inline-flex;align-items:center;gap:10px;font-size:22px;font-weight:800;letter-spacing:-.6px;color:var(--om-ink);text-decoration:none}
.om-mark{width:36px;height:36px;border-radius:10px;background:linear-gradient(135deg,#6366f1,#4338ca);display:grid;place-items:center;box-shadow:0 4px 12px #4f46e540}
.om-mark svg{width:26px;height:26px}
.om-cta{background:var(--om)!important;color:#fff!important;padding:9px 16px;border-radius:10px;font-weight:700}
.om-cta:hover{background:var(--om-dark)!important}

/* Hero */
.om-hero{position:relative;overflow:hidden;background:radial-gradient(900px 420px at 15% -10%,#e0e7ff,transparent 70%),radial-gradient(800px 420px at 95% 10%,#fce7f3,transparent 65%),linear-gradient(#fafbff,#fff);border-bottom:1px solid var(--om-line)}
.om-hero-inner{max-width:980px;margin:0 auto;padding:64px 24px 56px;text-align:center}
.om-eyebrow{display:inline-block;margin:0 0 18px;padding:6px 14px;border-radius:999px;background:#fff;border:1px solid var(--om-line);color:var(--om-muted);font-size:13px;font-weight:600}
.om-hero h1{font-size:clamp(34px,6vw,60px);line-height:1.05;letter-spacing:-.045em;margin:0 0 16px;font-weight:850}
.om-hero h1 em{font-style:normal;background:linear-gradient(90deg,#4f46e5,#db2777);-webkit-background-clip:text;background-clip:text;color:transparent}
.om-lead{max-width:680px;margin:0 auto 30px;color:var(--om-muted);font-size:18px;line-height:1.55}
.om-drop{position:relative;display:flex;flex-direction:column;align-items:center;gap:12px;max-width:760px;margin:0 auto;padding:40px 24px 30px;border-radius:24px;background:#fff;border:2.5px dashed #c7d2fe;box-shadow:0 20px 50px #4f46e51a;cursor:pointer;transition:.18s}
.om-drop:hover,.om-drop.over{border-color:var(--om);background:#fbfbff;transform:translateY(-2px);box-shadow:0 26px 60px #4f46e52b}
.om-drop input{position:absolute;opacity:0;width:1px;height:1px}
.om-drop-art{display:flex;gap:10px;margin-bottom:6px}
.om-drop-art .f{width:46px;height:56px;border-radius:9px;display:grid;place-items:center;color:#fff;font-weight:800;font-size:15px;box-shadow:0 6px 14px #0002;transition:.2s}
.om-drop-art .f:nth-child(1){transform:rotate(-8deg)}.om-drop-art .f:nth-child(4){transform:rotate(8deg)}
.om-drop:hover .f:nth-child(1){transform:rotate(-14deg) translateY(-4px)}.om-drop:hover .f:nth-child(4){transform:rotate(14deg) translateY(-4px)}
.f-w,.b-w,.nw-w b,.ed-w .ic{background:#185abd}.f-x,.b-x,.nw-x b,.ed-x .ic{background:#107c41}.f-p,.b-p,.nw-p b,.ed-p .ic{background:#c43e1c}
.f-pdf,.b-pdf,.nw-pdf b,.ed-pdf .ic{background:#e11d48}.b-img,.ed-img .ic{background:#7c3aed}.ed-vid .ic{background:#db2777}.ed-aud .ic{background:#0e7490}.b-txt,.ed-txt .ic{background:#475569}
.om-drop-art .f-pdf{font-size:12px}
.om-drop-btn{background:linear-gradient(135deg,#6366f1,#4338ca);color:#fff;padding:14px 30px;border-radius:14px;font-size:17px;box-shadow:0 8px 20px #4f46e54d}
.om-drop-note{color:var(--om-muted);font-size:14px}
.om-formats{color:#8a92a6;font-size:11.5px;letter-spacing:.4px;max-width:560px;line-height:1.6}
.om-lock{margin:14px auto 0;color:var(--om-muted);font-size:14px}
.om-lock summary{cursor:pointer}
.om-lock input{margin:10px 8px 0 0;height:40px;width:240px;border:1px solid #d6dae6;border-radius:9px;padding:0 12px}
.om-lock span{font-size:12px;color:#8a92a6}
.om-status{min-height:1.4em;margin:14px 0 0;color:var(--om-muted);font-weight:600}
.om-status.error{color:#be123c}
.om-new{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:10px;margin-top:6px;color:var(--om-muted);font-size:14px}
.nw{display:inline-flex;align-items:center;gap:8px;padding:7px 14px 7px 7px;border-radius:11px;background:#fff;border:1px solid var(--om-line);font-weight:650;color:var(--om-ink);text-decoration:none}
.nw:hover{border-color:#c7d2fe;box-shadow:0 4px 12px #0000000f}
.nw b{min-width:26px;height:26px;padding:0 5px;border-radius:6px;display:grid;place-items:center;color:#fff;font-size:11px}

/* Stats */
.om-stats{max-width:980px;margin:-1px auto 0;display:grid;grid-template-columns:repeat(4,1fr);gap:1px;background:var(--om-line);border:1px solid var(--om-line);border-top:0;border-radius:0 0 18px 18px;overflow:hidden}
.om-stats div{background:#fff;padding:18px;text-align:center}
.om-stats strong{display:block;font-size:26px;letter-spacing:-.5px;color:var(--om)}
.om-stats span{color:var(--om-muted);font-size:13px}

/* Sections */
.om-section{max-width:1200px;margin:0 auto;padding:72px 24px}
.om-tint{max-width:none;background:#f7f8fc;border-block:1px solid var(--om-line)}
.om-tint>*{max-width:1152px;margin-inline:auto}
.om-head{margin-bottom:28px}
.om-head h2{font-size:clamp(26px,3.6vw,36px);letter-spacing:-.03em;margin:0 0 8px}
.om-head p{color:var(--om-muted);margin:0;font-size:16px}

.om-editors{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:18px}
.ed{display:flex;flex-direction:column;gap:8px;padding:22px;border-radius:18px;border:1px solid var(--om-line);background:#fff;color:var(--om-ink);text-decoration:none;transition:.18s}
.ed:hover{transform:translateY(-3px);box-shadow:0 16px 36px #0f172a14;border-color:#d4d8e6}
.ed .ic{width:46px;height:46px;border-radius:12px;display:grid;place-items:center;color:#fff;font-weight:800;font-size:15px;margin-bottom:6px}
.ed h3{margin:0;font-size:19px}
.ed p{margin:0;color:var(--om-muted);line-height:1.5;font-size:14.5px;flex:1}
.ed .fmt{font-size:11.5px;color:#8a92a6;letter-spacing:.3px}
.ed .go{font-weight:700;color:var(--om);font-size:14px;margin-top:4px}

.om-convert{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:12px}
.om-convert a{display:grid;grid-template-columns:auto auto auto 1fr;align-items:center;gap:8px;padding:14px 16px;border-radius:14px;background:#fff;border:1px solid var(--om-line);color:var(--om-ink);text-decoration:none;transition:.15s}
.om-convert a:hover{border-color:#c7d2fe;box-shadow:0 8px 20px #4f46e514}
.om-convert .b{padding:4px 7px;border-radius:6px;color:#fff;font-size:11px;font-weight:800;letter-spacing:.3px}
.om-convert i{font-style:normal;color:#9aa3b8}
.om-convert em{font-style:normal;font-weight:650;justify-self:end;font-size:14px}
.om-more{color:var(--om-muted);font-size:14px;margin-top:18px}

/* Tools catalog (cards rendered by studio.js) */
#tools .om-head{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;flex-wrap:wrap}
.om-search{display:flex;align-items:center;gap:12px}
.om-search input{width:min(320px,70vw);height:44px;border:1px solid #d6dae6;border-radius:12px;padding:0 14px;font-size:15px;background:#fff}
.om-search input:focus{outline:2px solid var(--om);outline-offset:1px}
.om-search #count{color:var(--om-muted);font-size:13px;white-space:nowrap}
.om-noresults{color:var(--om-muted)}

.om-steps{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:repeat(3,1fr);gap:18px;counter-reset:s}
.om-steps li{padding:24px;border-radius:18px;border:1px solid var(--om-line);background:#fff}
.om-steps b{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:var(--om-soft);color:var(--om);font-size:17px;margin-bottom:12px}
.om-steps h3{margin:0 0 6px}.om-steps p{margin:0;color:var(--om-muted);line-height:1.5}

.om-why{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.om-why div{padding:22px;border-radius:18px;background:#fff;border:1px solid var(--om-line)}
.om-why .wi{font-size:26px}
.om-why h3{margin:10px 0 6px}.om-why p{margin:0;color:var(--om-muted);line-height:1.5;font-size:14.5px}

.om-faq{display:grid;gap:10px;max-width:860px}
.om-faq details{border:1px solid var(--om-line);border-radius:14px;padding:0 18px;background:#fff}
.om-faq summary{cursor:pointer;padding:16px 0;font-weight:700;list-style-position:outside}
.om-faq p{margin:0 0 16px;color:var(--om-muted);line-height:1.6}

/* Footer */
.om-footer{display:block;max-width:none;background:#0f172a;color:#cbd5e1;padding:56px 24px 26px;margin:0}
body[data-tool] .om-footer{margin-top:60px}
.om-footer-inner{max-width:1152px;margin:0 auto;display:grid;grid-template-columns:1.6fr 1fr 1fr 1fr 1fr;gap:28px}
/* Crawlable "how to" text on each tool page. */
.seo-howto{max-width:1152px;margin:34px auto 0;padding:24px 26px;border:1px solid #e2e8f0;border-radius:18px;background:#fff;color:#334155;line-height:1.6}
.seo-howto h2{margin:0 0 10px;font-size:22px;color:#0f172a}
.seo-howto h3{margin:18px 0 6px;font-size:17px;color:#0f172a}
.seo-howto ol{margin:0;padding-left:22px}
.seo-howto li{margin:4px 0}
.seo-howto p{margin:0}
.seo-links{display:flex;flex-wrap:wrap;gap:8px}
.seo-links a{border:1px solid #e2e8f0;border-radius:10px;padding:6px 12px;color:#4338ca;text-decoration:none;font-size:14px;font-weight:600}
.seo-links a:hover{border-color:#a5b4fc;background:#eef2ff}
.om-footer .om-brand{color:#fff}
.om-foot-brand p{color:#94a3b8;margin:12px 0}
#processing-detail{font-size:12.5px;color:#94a3b8}
.om-footer nav{display:flex;flex-direction:column;gap:9px}
.om-footer h4{margin:0 0 6px;color:#fff;font-size:14px}
.om-footer nav a{color:#cbd5e1;text-decoration:none;font-size:14px}
.om-footer nav a:hover{color:#fff}
.om-copy{max-width:1152px;margin:34px auto 0;padding-top:18px;border-top:1px solid #1e293b;color:#64748b;font-size:13px}

/* Drop anywhere */
.om-dropveil{position:fixed;inset:0;z-index:100;background:#4f46e5d9;display:grid;place-items:center;pointer-events:none}
.om-dropveil div{color:#fff;font-size:28px;font-weight:800;padding:40px 60px;border:3px dashed #ffffffaa;border-radius:24px}

@media (max-width:900px){
  .om-header nav .nav-quick{display:none}
  .om-why,.om-steps{grid-template-columns:1fr 1fr}
  .om-footer-inner{grid-template-columns:1fr 1fr}
  .om-stats{grid-template-columns:repeat(2,1fr);margin-inline:16px}
}
@media (max-width:560px){
  .om-hero-inner{padding:40px 16px 40px}
  .om-lead{font-size:16px}
  .om-drop{padding:30px 16px 24px}
  .om-why,.om-steps{grid-template-columns:1fr}
  .om-section{padding:52px 16px}
  .om-footer-inner{grid-template-columns:1fr}
  .om-header .header-inner{padding:0 16px;gap:10px}
}

/* ---------- Tool pages (e.g. /tools/pdf-to-word) ---------- */
body[data-tool]{background:radial-gradient(900px 360px at 10% -5%,#e0e7ff,transparent 70%),radial-gradient(700px 320px at 100% 0,#fce7f3,transparent 65%),#f7f8fc}
body[data-tool] .tool-page{max-width:1100px;padding-top:28px}
body[data-tool] .breadcrumbs a{color:var(--om)}
body[data-tool] .tool-header{gap:20px;margin:10px 0 28px}
body[data-tool] .tool-header .tile{width:64px;height:64px;border-radius:18px;box-shadow:0 8px 22px #4f46e522}
body[data-tool] .tool-header h1{font-size:clamp(2rem,4.6vw,3rem);letter-spacing:-.04em}
body[data-tool] #tool-description{font-size:16px;color:var(--om-muted)}
body[data-tool] .tool-layout{gap:20px;grid-template-columns:minmax(0,1.6fr) minmax(280px,1fr)}
body[data-tool] .tool-box{border:1px solid var(--om-line);border-radius:22px;padding:24px;box-shadow:0 10px 30px #0f172a0d}
body[data-tool] .tool-box h2{font-size:18px;margin-bottom:14px}
body[data-tool] .tool-box .drop{min-height:250px;border:2.5px dashed #c7d2fe;border-radius:18px;background:linear-gradient(180deg,#fbfbff,#f3f4ff);color:var(--om-ink);transition:.18s}
body[data-tool] .tool-box .drop:hover,body[data-tool] .drop.dragging{border-color:var(--om);background:#eef2ff;transform:translateY(-1px)}
body[data-tool] .drop .drop-icon{width:56px;height:56px;border-radius:16px;background:linear-gradient(135deg,#6366f1,#4338ca);color:#fff;box-shadow:0 8px 18px #4f46e540}
body[data-tool] .drop strong{font-size:18px;color:var(--om)}
body[data-tool] .drop-note{color:var(--om-muted)}
.drop-accept{font-size:11.5px;letter-spacing:.4px;color:#8a92a6;max-width:90%;text-align:center}
.drop-accept:empty{display:none}
body[data-tool] #file-list li{gap:10px;padding:10px 12px;margin-top:8px;border:1px solid var(--om-line);border-radius:12px;background:#fff}
.file-badge{min-width:38px;height:38px;padding:0 4px;border-radius:9px;display:grid;place-items:center;background:#eef2ff;color:var(--om);font-size:10.5px;letter-spacing:.3px}
body[data-tool] #file-list .file-name{display:flex;flex-direction:column;font-weight:600;font-size:14px}
.file-name small{font-weight:400;color:var(--om-muted);font-size:12px}
body[data-tool] #file-list .file-action{width:34px;min-height:34px;height:34px;padding:0;border-radius:9px;border:1px solid var(--om-line);background:#fff;color:var(--om-muted);font-size:14px}
body[data-tool] #file-list .file-action:hover{border-color:#c7d2fe;color:var(--om)}
.secure-note{display:flex;align-items:center;gap:8px;margin:14px 0 0;padding:10px 12px;border-radius:12px;background:#ecfdf5;color:#065f46;font-size:13px;font-weight:600}
.secure-note svg{width:17px;height:17px;flex:none}
body[data-tool] #options label{font-size:13.5px;color:var(--om-ink)}
body[data-tool] #options :is(input,select,textarea){border:1px solid #d6dae6;border-radius:11px;background:#fff}
body[data-tool] #options :is(input,select,textarea):focus{outline:2px solid var(--om);outline-offset:1px;border-color:transparent}
#password-field{padding:12px;border-radius:12px;background:#fff7ed;border:1px solid #fed7aa}
.no-settings{margin:0;color:var(--om-muted);font-size:14px}
.progress{height:8px;border-radius:99px;background:#eef2ff;overflow:hidden;margin-top:16px}
.progress span{display:block;height:100%;width:0;border-radius:99px;background:linear-gradient(90deg,#6366f1,#db2777);transition:width .2s}
.progress.busy span{animation:fm-slide 1.1s ease-in-out infinite}
@keyframes fm-slide{0%{transform:translateX(-100%)}100%{transform:translateX(300%)}}
body[data-tool] #status{font-weight:600;color:var(--om-muted)}
body[data-tool] #status.ok{color:#047857}
body[data-tool] #status.bad{color:#be123c}
body[data-tool] .tool-actions .primary{background:linear-gradient(135deg,#6366f1,#4338ca);border-radius:13px;font-size:16px;box-shadow:0 8px 20px #4f46e540}
body[data-tool] .tool-actions .primary:disabled{background:#c7cbe0;box-shadow:none;opacity:1}
body[data-tool] .tool-actions .download{background:linear-gradient(135deg,#10b981,#047857);border-radius:13px;font-size:15px;box-shadow:0 8px 20px #04785740}
body[data-tool] #related-links a{border-radius:12px;border-color:var(--om-line)}
body[data-tool] #related-links a:hover{border-color:#c7d2fe;color:var(--om)}
@media (max-width:740px){body[data-tool] .tool-layout{grid-template-columns:1fr}body[data-tool] .tool-box .drop{min-height:170px}}
