/* =========================================================
   ConvertMyPDF.in — Global Stylesheet
   Professional PDF tools theme (crimson / slate)
========================================================= */
:root{
  --red:#e5322d;
  --red-dark:#b91c1c;
  --red-light:#fff1f0;
  --ink:#1b2430;
  --slate:#4b5768;
  --slate-light:#7c8898;
  --border:#e6e9ee;
  --bg:#f7f8fa;
  --white:#ffffff;
  --green:#16a34a;
  --amber:#d97706;
  --radius:14px;
  --shadow:0 4px 18px rgba(20,25,35,.06);
  --shadow-lg:0 12px 34px rgba(20,25,35,.10);
  --maxw:1180px;
  font-size:16px;
}
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;font-family:"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  color:var(--ink);background:var(--bg);line-height:1.6;
}
img{max-width:100%;display:block}
a{color:var(--red);text-decoration:none}
a:hover{text-decoration:underline}
.wrap{max-width:var(--maxw);margin:0 auto;padding:0 20px}
h1,h2,h3,h4{line-height:1.25;font-weight:800;color:var(--ink);margin:0 0 .6em}
h1{font-size:2.3rem}
h2{font-size:1.7rem}
h3{font-size:1.25rem}
p{margin:0 0 1em}
ul,ol{margin:0 0 1em;padding-left:1.3em}
.section{padding:64px 0}
.section-tight{padding:36px 0}
.center{text-align:center}
.muted{color:var(--slate)}
.small{font-size:.9rem}

/* Buttons */
.btn{display:inline-flex;align-items:center;gap:8px;padding:13px 26px;border-radius:10px;
  font-weight:700;font-size:.98rem;border:2px solid transparent;cursor:pointer;transition:.15s;text-decoration:none}
.btn:hover{text-decoration:none}
.btn-primary{background:var(--red);color:#fff}
.btn-primary:hover{background:var(--red-dark)}
.btn-outline{background:#fff;color:var(--red);border-color:var(--red)}
.btn-outline:hover{background:var(--red-light)}
.btn-block{width:100%;justify-content:center}
.btn-lg{padding:16px 34px;font-size:1.05rem}
.btn:disabled{opacity:.5;cursor:not-allowed}

/* Header */
.site-header{position:sticky;top:0;z-index:100;background:#fff;border-bottom:1px solid var(--border)}
.nav{display:flex;align-items:center;justify-content:space-between;padding:14px 0}
.logo{display:flex;align-items:center;gap:10px;font-weight:800;font-size:1.32rem;color:var(--ink)}
.logo:hover{text-decoration:none}
.logo .mark{width:38px;height:38px;border-radius:9px;background:linear-gradient(135deg,var(--red),#ff6b5e);
  display:flex;align-items:center;justify-content:center;color:#fff;font-weight:900;font-size:1.05rem}
.logo .dotin{color:var(--red)}
.nav-links{display:flex;align-items:center;gap:28px}
.nav-links a{color:var(--ink);font-weight:600;font-size:.96rem}
.nav-links a:hover{color:var(--red);text-decoration:none}
.nav-cta{background:var(--red);color:#fff!important;padding:10px 20px;border-radius:8px}
.nav-cta:hover{background:var(--red-dark)!important}
.burger{display:none;background:none;border:none;font-size:1.6rem;cursor:pointer;color:var(--ink)}
@media(max-width:900px){
  .nav-links{position:fixed;top:68px;left:0;right:0;background:#fff;flex-direction:column;
    align-items:flex-start;padding:18px 24px;gap:16px;border-bottom:1px solid var(--border);
    transform:translateY(-130%);transition:.25s;box-shadow:var(--shadow-lg);max-height:75vh;overflow:auto}
  .nav-links.open{transform:translateY(0)}
  .burger{display:block}
}

/* Hero */
.hero{background:linear-gradient(180deg,#fff 0%,var(--red-light) 100%);padding:60px 0 40px;text-align:center}
.hero .eyebrow{display:inline-block;background:#fff;border:1px solid var(--border);color:var(--red);
  font-weight:700;font-size:.82rem;padding:6px 14px;border-radius:20px;margin-bottom:18px}
.hero h1{font-size:2.6rem;max-width:820px;margin:0 auto .5em}
.hero p.lead{font-size:1.12rem;color:var(--slate);max-width:640px;margin:0 auto 28px}
.hero-search{max-width:560px;margin:0 auto}
.hero-search input{width:100%;padding:15px 18px;border-radius:10px;border:1.5px solid var(--border);font-size:1rem}

/* Tool grid */
.tool-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin-top:10px}
@media(max-width:980px){.tool-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:560px){.tool-grid{grid-template-columns:1fr}}
.tool-card{background:#fff;border:1px solid var(--border);border-radius:var(--radius);padding:22px;
  transition:.15s;display:flex;flex-direction:column;gap:10px}
.tool-card:hover{box-shadow:var(--shadow-lg);transform:translateY(-3px);border-color:#f2c9c7}
.tool-card .icon{width:46px;height:46px;border-radius:10px;display:flex;align-items:center;justify-content:center;
  font-size:1.4rem;color:#fff}
.tool-card h3{font-size:1.05rem;margin-bottom:2px}
.tool-card p{font-size:.9rem;color:var(--slate);margin-bottom:0;flex:1}
.tool-card a.card-link{font-weight:700;font-size:.88rem;color:var(--red)}
.cat-filters{display:flex;flex-wrap:wrap;gap:10px;margin:28px 0}
.cat-chip{border:1.5px solid var(--border);background:#fff;padding:8px 16px;border-radius:20px;
  font-weight:600;font-size:.86rem;cursor:pointer;color:var(--slate)}
.cat-chip.active,.cat-chip:hover{border-color:var(--red);color:var(--red)}

/* Icon color variants */
.ic-merge{background:#e5322d}.ic-split{background:#f97316}.ic-compress{background:#0891b2}
.ic-rotate{background:#7c3aed}.ic-organize{background:#0ea5e9}.ic-extract{background:#059669}
.ic-jpg{background:#16a34a}.ic-word{background:#2563eb}.ic-excel{background:#15803d}
.ic-ppt{background:#dc2626}.ic-watermark{background:#9333ea}.ic-pagenum{background:#0d9488}
.ic-unlock{background:#ca8a04}.ic-image{background:#db2777}

/* Tool workspace page */
.tool-hero{background:#fff;border-bottom:1px solid var(--border);padding:38px 0 30px;text-align:center}
.tool-hero .icon-lg{width:64px;height:64px;border-radius:14px;margin:0 auto 16px;display:flex;
  align-items:center;justify-content:center;color:#fff;font-size:1.9rem}
.tool-hero h1{font-size:1.9rem;margin-bottom:.3em}
.tool-hero p{color:var(--slate);max-width:600px;margin:0 auto}
.dropzone{max-width:720px;margin:26px auto 0;border:2.5px dashed #f2b8b5;background:#fff;
  border-radius:18px;padding:46px 26px;text-align:center;cursor:pointer;transition:.15s}
.dropzone:hover,.dropzone.drag{border-color:var(--red);background:var(--red-light)}
.dropzone .dz-icon{font-size:2.6rem;margin-bottom:10px}
.dropzone h3{margin-bottom:4px}
.dropzone p{color:var(--slate-light);font-size:.9rem;margin-bottom:16px}
.file-list{max-width:720px;margin:20px auto 0;display:flex;flex-direction:column;gap:10px}
.file-item{display:flex;align-items:center;gap:12px;background:#fff;border:1px solid var(--border);
  border-radius:10px;padding:12px 14px}
.file-item .fi-icon{width:34px;height:34px;border-radius:8px;background:var(--red-light);color:var(--red);
  display:flex;align-items:center;justify-content:center;font-size:1rem;flex-shrink:0}
.file-item .fi-name{flex:1;font-weight:600;font-size:.92rem;word-break:break-all}
.file-item .fi-size{color:var(--slate-light);font-size:.82rem;white-space:nowrap}
.file-item .fi-remove{background:none;border:none;color:var(--slate-light);cursor:pointer;font-size:1.1rem}
.file-item .fi-remove:hover{color:var(--red)}
.file-item.dragging{opacity:.4}
.tool-options{max-width:720px;margin:22px auto 0;background:#fff;border:1px solid var(--border);
  border-radius:var(--radius);padding:22px}
.tool-options label{display:block;font-weight:700;font-size:.88rem;margin-bottom:6px}
.tool-options input[type=text],.tool-options input[type=number],.tool-options input[type=password],
.tool-options select{width:100%;padding:10px 12px;border:1.5px solid var(--border);border-radius:8px;font-size:.95rem}
.opt-row{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:14px}
@media(max-width:560px){.opt-row{grid-template-columns:1fr}}
.radio-group{display:flex;gap:16px;flex-wrap:wrap}
.radio-group label{display:flex;align-items:center;gap:6px;font-weight:600;font-size:.9rem}
.action-bar{max-width:720px;margin:24px auto 0;text-align:center}
.progress-wrap{max-width:720px;margin:20px auto 0}
.progress-bar{height:10px;border-radius:6px;background:var(--border);overflow:hidden}
.progress-bar > div{height:100%;background:linear-gradient(90deg,var(--red),#ff6b5e);width:0%;transition:width .2s}
.status-msg{text-align:center;margin-top:10px;font-weight:600;color:var(--slate)}
.result-box{max-width:720px;margin:24px auto 0;background:#fff;border:1px solid var(--border);border-radius:var(--radius);
  padding:30px;text-align:center}
.result-box .check{width:56px;height:56px;border-radius:50%;background:#dcfce7;color:var(--green);
  display:flex;align-items:center;justify-content:center;font-size:1.8rem;margin:0 auto 14px}
.privacy-strip{max-width:720px;margin:26px auto 0;display:flex;gap:12px;align-items:flex-start;
  background:#f0fdf4;border:1px solid #bbf7d0;border-radius:12px;padding:16px 18px;font-size:.88rem;color:#166534}

/* Steps / how it works */
.steps{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;margin-top:30px}
@media(max-width:800px){.steps{grid-template-columns:1fr}}
.step{background:#fff;border:1px solid var(--border);border-radius:var(--radius);padding:24px;text-align:center}
.step .num{width:38px;height:38px;border-radius:50%;background:var(--red);color:#fff;font-weight:800;
  display:flex;align-items:center;justify-content:center;margin:0 auto 12px}

/* Content cards */
.info-card{background:#fff;border:1px solid var(--border);border-radius:var(--radius);padding:26px;box-shadow:var(--shadow)}
.grid-2{display:grid;grid-template-columns:1fr 1fr;gap:24px}
@media(max-width:800px){.grid-2{grid-template-columns:1fr}}
.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
@media(max-width:800px){.grid-3{grid-template-columns:1fr}}

/* FAQ */
.faq-item{border-bottom:1px solid var(--border);padding:16px 0}
.faq-item summary{font-weight:700;cursor:pointer;list-style:none;display:flex;justify-content:space-between;gap:10px}
.faq-item summary::-webkit-details-marker{display:none}
.faq-item summary::after{content:"+";font-size:1.3rem;color:var(--red)}
.faq-item[open] summary::after{content:"−"}
.faq-item p{margin-top:10px;color:var(--slate)}

/* Blog */
.blog-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px;margin-top:10px}
@media(max-width:900px){.blog-grid{grid-template-columns:1fr}}
.blog-card{background:#fff;border:1px solid var(--border);border-radius:var(--radius);overflow:hidden;
  display:flex;flex-direction:column;box-shadow:var(--shadow)}
.blog-card .thumb{height:150px;background:linear-gradient(135deg,var(--red),#ff8b7e);display:flex;
  align-items:center;justify-content:center;color:#fff;font-size:2.4rem}
.blog-card .body{padding:18px;flex:1;display:flex;flex-direction:column}
.blog-card .tag{color:var(--red);font-weight:700;font-size:.78rem;text-transform:uppercase;letter-spacing:.03em}
.blog-card h3{font-size:1.05rem;margin:8px 0}
.blog-card p{font-size:.88rem;color:var(--slate);flex:1}
.article-body{max-width:760px;margin:0 auto}
.article-body h2{margin-top:1.4em}
.article-body ul{margin-bottom:1.3em}
.byline{color:var(--slate-light);font-size:.88rem;margin-bottom:2em}

/* Table */
table.spec{width:100%;border-collapse:collapse;margin:1.2em 0}
table.spec th,table.spec td{border:1px solid var(--border);padding:10px 12px;text-align:left;font-size:.92rem}
table.spec th{background:#fafafa}

/* Trust bar */
.trust-bar{display:flex;flex-wrap:wrap;justify-content:center;gap:40px;padding:26px 0;color:var(--slate);font-weight:600;font-size:.88rem}
.trust-bar span{display:flex;align-items:center;gap:8px}

/* Footer */
.site-footer{background:#151b26;color:#c7ccd6;padding:52px 0 26px;margin-top:60px}
.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:30px}
@media(max-width:800px){.footer-grid{grid-template-columns:1fr 1fr}}
.footer-grid h4{color:#fff;font-size:.95rem;margin-bottom:14px}
.footer-grid ul{list-style:none;padding:0;margin:0}
.footer-grid li{margin-bottom:9px}
.footer-grid a{color:#c7ccd6;font-size:.9rem}
.footer-grid a:hover{color:#fff}
.footer-bottom{border-top:1px solid #2a3242;margin-top:34px;padding-top:20px;display:flex;
  justify-content:space-between;flex-wrap:wrap;gap:10px;font-size:.83rem;color:#8b93a3}
.footer-logo{color:#fff;font-weight:800;font-size:1.2rem;margin-bottom:12px;display:block}

/* Breadcrumb */
.breadcrumb{font-size:.85rem;color:var(--slate-light);padding:14px 0}
.breadcrumb a{color:var(--slate-light)}
.breadcrumb .sep{margin:0 6px}

.badge{display:inline-block;background:var(--red-light);color:var(--red);font-weight:700;
  font-size:.72rem;padding:3px 10px;border-radius:12px;margin-bottom:10px}

.legal h2{margin-top:1.5em}
.legal{max-width:800px;margin:0 auto}
