/* =========================================================
   OneToolBox — PDF TO WORD FULL PAGE
   Header/Footer are loaded by the existing site placeholders.
   ========================================================= */

main.page{
  background:#f8fafc;
}

/* HERO */
.tool-hero{
  padding:30px 0 24px;
  text-align:center;
}
.tool-badge{
  display:inline-flex;
  align-items:center;
  gap:7px;
  padding:7px 13px;
  border-radius:999px;
  background:#eff6ff;
  color:#2563eb;
  font-size:12px;
  font-weight:800;
}
.tool-hero h1{
  margin:10px 0 7px;
  color:#0f172a;
  font-size:38px;
  line-height:1.15;
  font-weight:800;
}
.tool-hero p{
  max-width:720px;
  margin:0 auto;
  color:#64748b;
  font-size:15px;
  line-height:1.6;
}

/* MAIN TOOL */
.tool-grid{
  display:grid !important;
  grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  gap:18px !important;
  align-items:stretch !important;
}
.tool-card{
  min-width:0 !important;
  min-height:460px;
  padding:20px !important;
  box-sizing:border-box;
  display:flex;
  flex-direction:column;
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:18px;
  box-shadow:0 7px 24px rgba(15,23,42,.06);
}
.tool-card h2{
  margin:0 0 18px !important;
  color:#0f172a;
  font-size:20px !important;
  font-weight:800;
}

/* UPLOAD */
.upload{
  position:relative;
  flex:1;
  min-height:275px;
  padding:20px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  border:2px dashed #93c5fd;
  border-radius:16px;
  background:#f8fbff;
  cursor:pointer;
  transition:.2s;
  box-sizing:border-box;
}
.upload:hover,
.upload.dragging{
  border-color:#2563eb;
  background:#eff6ff;
}
.upload-icon{
  width:62px;
  height:62px;
  display:flex;
  align-items:center;
  justify-content:center;
  margin-bottom:13px;
  border-radius:16px;
  background:#dbeafe;
  color:#2563eb;
  font-size:28px;
}
.upload h3{
  max-width:90%;
  margin:0 0 8px;
  color:#0f172a;
  font-size:19px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.upload p{
  margin:0 0 16px;
  color:#64748b;
  font-size:13px;
  line-height:1.7;
}
.choose{
  position:relative;
  z-index:5;
  display:inline-flex !important;
  align-items:center;
  justify-content:center;
  gap:7px;
  min-height:44px;
  padding:0 20px;
  border:0 !important;
  border-radius:10px;
  background:#2563eb !important;
  color:#fff !important;
  font-size:13px;
  font-weight:800;
  cursor:pointer !important;
}
.choose:hover{
  background:#1d4ed8 !important;
}
.choose input{
  position:absolute !important;
  width:1px !important;
  height:1px !important;
  opacity:0 !important;
  pointer-events:none !important;
}

/* INFO */
.info{
  min-height:44px;
  margin-top:10px;
  padding:0 13px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  border-radius:10px;
  background:#eff6ff;
  color:#64748b;
  font-size:12px;
  box-sizing:border-box;
}
.info b{
  color:#2563eb;
  font-weight:800;
}

/* SETTINGS */
.safe-note{
  margin:15px 0 4px;
  padding:12px;
  display:flex;
  align-items:flex-start;
  gap:9px;
  border-radius:10px;
  background:#f8fafc;
  color:#64748b;
  font-size:12px;
  line-height:1.5;
}
.safe-note i{
  margin-top:2px;
  color:#16a34a;
}
.status{
  margin:12px 0;
  color:#64748b;
  font-size:13px;
  line-height:1.55;
  text-align:center;
}

/* BUTTONS */
.btn{
  width:100% !important;
  min-height:48px !important;
  margin-top:14px !important;
  padding:0 15px;
  display:flex !important;
  align-items:center;
  justify-content:center;
  gap:8px;
  border:0 !important;
  border-radius:11px !important;
  font-size:13px !important;
  font-weight:800 !important;
  cursor:pointer !important;
}
.btn:disabled{
  opacity:.5;
  cursor:not-allowed !important;
}
.btn.primary{
  background:#2563eb !important;
  color:#fff !important;
}
.btn.primary:hover:not(:disabled){
  background:#1d4ed8 !important;
}
.btn.success{
  background:#86d6a8 !important;
  color:#fff !important;
}
.btn.success:hover:not(:disabled){
  background:#65c992 !important;
}
.btn.danger{
  background:#fee2e2 !important;
  color:#dc2626 !important;
}
.btn.danger:hover{
  background:#fecaca !important;
}

/* PROGRESS */
.progress{
  display:flex;
  align-items:center;
  gap:9px;
  margin-top:14px;
}
.progress .track{
  flex:1;
  height:9px;
  overflow:hidden;
  border-radius:999px;
  background:#e2e8f0;
}
#bar{
  width:0;
  height:100%;
  border-radius:999px;
  background:#2563eb;
  transition:width .2s;
}
#pct{
  min-width:34px;
  color:#2563eb;
  font-size:11px;
  text-align:right;
}
.library-status{
  margin-top:12px;
  padding:9px 11px;
  border-radius:9px;
  background:#f1f5f9;
  color:#64748b;
  font-size:11px;
  text-align:center;
}
.library-status.ok{
  background:#ecfdf5;
  color:#047857;
}
.library-status.error{
  background:#fef2f2;
  color:#b91c1c;
}

/* RESULT */
.preview{
  flex:1;
  min-height:275px;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:auto;
  border-radius:15px;
  background:#f1f5f9;
  color:#94a3b8;
}
.result-empty,
.result-summary{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:8px;
  text-align:center;
}
.result-empty i{
  font-size:40px;
  color:#94a3b8;
}
.result-summary i{
  font-size:40px;
  color:#16a34a;
}
.result-summary strong{
  color:#334155;
  font-size:14px;
}
.result-summary small{
  color:#64748b;
  font-size:12px;
}

/* SECTION HEADINGS */
.section-heading{
  margin:0 auto 22px;
  max-width:760px;
  text-align:center;
}
.section-heading>span{
  display:inline-block;
  margin-bottom:6px;
  color:#2563eb;
  font-size:12px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.06em;
}
.section-heading h2{
  margin:0 0 8px;
  color:#0f172a;
  font-size:28px;
  line-height:1.25;
  font-weight:800;
}
.section-heading p{
  margin:0;
  color:#64748b;
  font-size:14px;
  line-height:1.6;
}

/* FEATURES */
.feature-section{
  padding-top:34px;
}
.feature-grid{
  display:grid !important;
  grid-template-columns:repeat(4,minmax(0,1fr)) !important;
  gap:15px !important;
}
.feature{
  min-height:165px;
  padding:20px;
  box-sizing:border-box;
  border:1px solid #e5e7eb;
  border-radius:16px;
  background:#fff;
  box-shadow:0 5px 18px rgba(15,23,42,.05);
}
.feature-icon{
  width:44px;
  height:44px;
  margin-bottom:12px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:12px;
  background:#eff6ff;
  color:#2563eb;
  font-size:18px;
}
.feature h3{
  margin:0 0 7px;
  color:#0f172a;
  font-size:16px;
}
.feature p{
  margin:0;
  color:#64748b;
  font-size:13px;
  line-height:1.55;
}

/* HOW TO */
.how-section{
  padding-top:34px;
}
.steps-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:15px;
}
.step{
  padding:20px;
  text-align:center;
  border:1px solid #e5e7eb;
  border-radius:16px;
  background:#fff;
}
.step-number{
  width:42px;
  height:42px;
  margin:0 auto 12px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  background:#2563eb;
  color:#fff;
  font-size:16px;
  font-weight:800;
}
.step h3{
  margin:0 0 7px;
  color:#0f172a;
  font-size:16px;
}
.step p{
  margin:0;
  color:#64748b;
  font-size:13px;
  line-height:1.55;
}

/* FAQ */
.faq-section{
  padding-top:34px;
  padding-bottom:45px;
}
.faq{
  max-width:920px !important;
  margin:0 auto;
}
.faq-list{
  display:flex;
  flex-direction:column;
  gap:10px;
}
.faq-list details{
  border:1px solid #e5e7eb;
  border-radius:13px;
  background:#fff;
  overflow:hidden;
  box-shadow:0 3px 12px rgba(15,23,42,.035);
}
.faq-list summary{
  min-height:56px;
  padding:0 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:15px;
  box-sizing:border-box;
  cursor:pointer;
  color:#0f172a;
  font-size:14px;
  font-weight:800;
  list-style:none;
}
.faq-list summary::-webkit-details-marker{
  display:none;
}
.faq-list summary i{
  color:#64748b;
  transition:transform .2s;
}
.faq-list details[open] summary i{
  transform:rotate(180deg);
  color:#2563eb;
}
.faq-list details p{
  margin:0;
  padding:0 18px 17px;
  color:#64748b;
  font-size:13px;
  line-height:1.65;
}

/* RESPONSIVE */
@media(max-width:950px) and (min-width:701px){
  .tool-grid{
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
    gap:11px !important;
  }
  .tool-card{
    min-height:420px;
    padding:14px !important;
  }
  .tool-card h2{
    font-size:17px !important;
  }
  .upload,.preview{
    min-height:225px;
  }
  .feature-grid{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  }
}
@media(max-width:700px){
  .tool-grid{
    grid-template-columns:1fr !important;
  }
  .feature-grid,
  .steps-grid{
    grid-template-columns:1fr 1fr !important;
  }
}
@media(max-width:480px){
  .tool-hero h1{
    font-size:30px;
  }
  .feature-grid,
  .steps-grid{
    grid-template-columns:1fr !important;
  }
}


/* User-facing UI: technical implementation details are hidden. */
.library-status,
.safe-note{
  display:none !important;
}
