/* PDF → JPG (page-specific) */

.tool-hero {
  padding: 44px 0 24px;
  background: linear-gradient(180deg, #f7faff, transparent);
  border-bottom: 1px solid var(--border);
}

.crumbs {
  display: flex; gap: 8px; align-items: center;
  font-size: 14px; margin-bottom: 8px;
}
.crumbs a { color: var(--blue); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

h1 {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 800;
  margin: 0 0 6px;
  color: var(--ink);
}
.muted { color: var(--muted); }

.uploader { margin-top: 16px; }

.uploader-zone {
  border: 2px dashed var(--border);
  border-radius: 14px;
  background: #fff;
  padding: 24px;
}
.uploader-inner {
  display: grid;
  place-items: center;
  gap: 10px;
  min-height: 180px;
  text-align: center;
}
.uploader-icon { font-size: 26px; }
.uploader-text strong { display: block; color: var(--ink); }
.uploader .hint { font-size: 12px; color: var(--muted); }

/* Options */
.options { display: grid; gap: 12px; margin-top: 14px; }
.option-row { display: grid; gap: 8px; }
.option-row > label { font-weight: 600; color: var(--ink); }
.opts { display: flex; gap: 8px; flex-wrap: wrap; }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 10px; border: 1px solid var(--border);
  border-radius: 999px; cursor: pointer; background: #fff;
  user-select: none;
}
.chip input { accent-color: var(--blue); }

.cta-row {
  display: flex; align-items: center; gap: 10px;
  margin-top: 14px; flex-wrap: wrap;
}
.convert-btn[disabled] { opacity: .6; cursor: not-allowed; }
.small { font-size: 13px; }

/* Preview */
.preview { margin-top: 14px; }
.preview-header { display:flex; justify-content:space-between; align-items:center; margin-bottom:8px; }
.preview-box {
  border:1px dashed var(--border);
  border-radius:12px;
  height:220px;
  display:grid;
  place-items:center;
  background:#fff;
}
.preview-box .ph {
  width: 60%;
  height: 70%;
  border-radius: 12px;
  background: repeating-linear-gradient(45deg, #f3f6ff, #f3f6ff 10px, #e8efff 10px, #e8efff 20px);
  opacity: .7;
}

/* Layout sections */
.three-cols { display: grid; gap: 14px; grid-template-columns: repeat(3, 1fr); }
.seo-grid { display: grid; gap: 16px; grid-template-columns: 1.1fr .9fr; }

.prose h2 { margin: 0 0 10px; }
.prose h3 { margin: 14px 0 8px; }
.prose ol, .prose ul { padding-left: 18px; margin: 0 0 10px; }
.faq details + details { margin-top: 8px; }

@media (max-width: 900px) {
  .three-cols, .seo-grid { grid-template-columns: 1fr; }
}


/* === PDF → JPG: Range input polish === */

.options .option-row .opts {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem .75rem;
  align-items: center;
}

/* Compact text box that visually pairs with the radio chips */
.range-input {
  display: inline-block;
  width: 220px;               /* roomy but not huge; shrinks on small screens */
  max-width: 100%;
  height: 2.25rem;
  padding: 0 .75rem;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: .6rem;
  background: #fff;
  color: var(--text, #111827);
  font: 500 0.95rem/1.2 system-ui, -apple-system, Segoe UI, Roboto, Inter, "Helvetica Neue", Arial, sans-serif;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.range-input::placeholder {
  color: #9ca3af;
}

.range-input:focus {
  outline: none;
  border-color: var(--primary, #2563eb);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--primary, #2563eb) 20%, transparent);
}

/* Subtle disabled state (if you ever toggle it from JS) */
.range-input:disabled {
  background: #f8fafc;
  color: #9ca3af;
  cursor: not-allowed;
}

/* Keep alignment tight when chips wrap */
.option-row .chip + .range-input {
  margin-left: .25rem;
}

/* Dragging state on the drop zone (already used elsewhere) */
.uploader-zone .dragging .uploader-inner,
#dropZone.dragging {
  border-color: var(--primary, #2563eb);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--primary, #2563eb) 18%, transparent);
}

/* Progress bar polish (if not already present) */
.progress-wrap {
  margin-top: 1rem;
}
.progress-bar {
  position: relative;
  height: .5rem;
  background: #eef2f7;
  border-radius: .5rem;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary, #2563eb), color-mix(in oklab, var(--primary, #2563eb) 70%, #60a5fa));
  border-radius: .5rem;
  transition: width .15s ease;
}

/* Result area small touches */
.result-wrap .result-badge {
  background: color-mix(in oklab, var(--primary, #2563eb) 14%, #e0f2fe);
  color: var(--primary, #2563eb);
  border-radius: .5rem;
  padding: .15rem .5rem;
  font-weight: 600;
  font-size: .85rem;
}

/* Mobile tweaks */
@media (max-width: 640px) {
  .range-input {
    width: 100%;
    margin-top: .35rem;
  }
}

.range-input.is-disabled {
  background: #f3f4f6;
  color: #9ca3af;
}
