:root { font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif; color: #0f172a; }
body { margin: 0; background: #f5f7fb; line-height: 1.7; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 18px; }
.pdfw-hero { background: linear-gradient(120deg, #0f6efc, #5b1bff); color: #fff; padding: 56px 0 48px; }
.pdfw-hero-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 26px; align-items: center; }
.pdfw-hero h1 { margin: 0 0 12px; font-size: clamp(2.1rem, 4vw, 3rem); }
.pdfw-subtitle { margin: 0 0 12px; opacity: 0.95; }
.wc-eyebrow { letter-spacing: 0.2em; text-transform: uppercase; font-size: 0.78rem; margin: 0 0 8px; }
.wc-bullets { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.wc-bullets span { padding: 8px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.16); font-weight: 700; }
.wc-hero-card { background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 20px; padding: 22px; box-shadow: 0 18px 44px rgba(0, 0, 0, 0.18); }
.wc-hero-badge { display: inline-block; background: rgba(255, 255, 255, 0.2); padding: 6px 12px; border-radius: 12px; font-weight: 700; }
.pdfw-main { padding: 40px 0 60px; }
.pdfw-grid { display: grid; gap: 18px; }
.card { background: #fff; border-radius: 18px; padding: 20px; box-shadow: 0 18px 44px rgba(15,23,42,0.08); border: 1px solid #e2e8f0; overflow: hidden; }
.card-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.card-head.small h3 { margin: 0; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 6px 10px; border-radius: 999px; background: #eef2ff; color: #1d4ed8; font-weight: 700; font-size: 0.9rem; }
.label-row { display: flex; justify-content: space-between; align-items: center; font-weight: 700; gap: 10px; }
.muted { color: #64748b; }
.tiny { font-size: 0.9rem; }
.primary-btn, .secondary-btn, .ghost-btn { border: none; border-radius: 12px; padding: 10px 14px; font-weight: 800; cursor: pointer; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.primary-btn { background: linear-gradient(135deg, #1d4ed8, #2563eb); color: #fff; box-shadow: 0 12px 30px rgba(37, 99, 235, 0.35); }
.secondary-btn { background: #f8fafc; border: 1px solid #dbeafe; color: #0f172a; }
.ghost-btn { background: #fff; border: 1px solid #dbeafe; color: #0f6efc; }
.ghost-btn.sm { padding: 8px 10px; font-size: 0.95rem; }
.ghost-btn:hover, .secondary-btn:hover, .primary-btn:hover { transform: translateY(-1px); }
.cta-row { margin-top: 10px; display: flex; gap: 10px; flex-wrap: wrap; }
.stack-on-mobile { display: flex; gap: 10px; }
.pdfw-tool { }
.pdfw-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr); gap: 14px; margin-top: 16px; align-items: start; }
.pdfw-dropzone { border: 1.5px dashed #94a3b8; border-radius: 14px; padding: 16px; text-align: center; background: #f8fafc; display: grid; gap: 6px; justify-items: center; }
.pdfw-dropzone.dragging { border-color: #2563eb; background: #eef2ff; }
.pdfw-dropzone input[type='file'] { display: none; }
.drop-title { margin: 0; font-weight: 800; }
.pdfw-queue { margin-top: 12px; display: grid; gap: 12px; }
.pdfw-queue.empty::before { content: "No PDFs added yet. Drop one above to begin."; display: block; color: #64748b; background: #f8fafc; border: 1px dashed #e2e8f0; border-radius: 12px; padding: 12px; text-align: center; }
.pdfw-queue-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; border: 1px solid #e2e8f0; border-radius: 12px; padding: 10px; background: #fff; }
.pdfw-queue-icon { width: 64px; height: 64px; border-radius: 12px; background: #eef2ff; display: grid; place-items: center; font-weight: 800; color: #1d4ed8; }
.pdfw-meta { display: grid; gap: 4px; }
.pdfw-meta strong { font-size: 1rem; }
.pdfw-queue-actions { display: grid; gap: 6px; justify-items: end; }
.pdfw-remove { background: transparent; border: none; color: #b91c1c; cursor: pointer; font-weight: 700; }
.pdfw-status { display: inline-flex; align-items: center; padding: 6px 10px; border-radius: 999px; font-weight: 800; font-size: 0.9rem; border: 1px solid #e2e8f0; color: #0f172a; }
.pdfw-status.uploading, .pdfw-status.converting { background: #eef2ff; color: #1d4ed8; border-color: #cbd5e1; }
.pdfw-status.done { background: #ecfdf3; color: #15803d; border-color: #bbf7d0; }
.pdfw-status.error { background: #fef2f2; color: #b91c1c; border-color: #fecdd3; }
.pdfw-settings-card { background: #f8fafc; }
.pdfw-list { margin: 0; padding-left: 18px; color: #475569; line-height: 1.6; }
.pdfw-note { margin-top: 8px; padding: 12px; border-radius: 12px; background: #eef2ff; color: #1e1b4b; }
.pdfw-progress { border-radius: 14px; border: 1px solid #dbeafe; padding: 12px; background: #fff; display: grid; gap: 6px; }
.pdfw-progress-track { width: 100%; height: 8px; background: #e2e8f0; border-radius: 999px; overflow: hidden; }
.pdfw-progress-bar { width: 0%; height: 100%; background: linear-gradient(135deg, #1d4ed8, #7c3aed); border-radius: inherit; transition: width 0.3s ease; }
.pdfw-alert { border-radius: 14px; padding: 12px; background: #fee2e2; color: #b91c1c; font-weight: 700; }
.pdfw-results { display: grid; gap: 14px; }
.pdfw-result-head { border: 1px solid #e2e8f0; border-radius: 12px; padding: 12px; background: #f8fafc; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; position: relative; overflow: hidden; }
.pdfw-result-head h4 { margin: 0; }
.pdfw-stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.pdfw-stat-grid article { border: 1px solid #e2e8f0; border-radius: 12px; padding: 12px; background: #fff; }
.pdfw-stat-grid .label { font-size: 0.85rem; color: #64748b; margin: 0 0 4px; }
.pdfw-stat-grid .value { font-size: 1.4rem; font-weight: 700; margin: 0; color: #0f172a; }
.pdfw-download-inline { display: inline-flex; align-items: center; gap: 8px; }
.pdfw-download-inline button { border-radius: 999px; padding: 8px 14px; border: none; color: #fff; background: linear-gradient(135deg, #1d4ed8, #2563eb); font-weight: 700; cursor: pointer; animation: pdfw-bounce 1.5s infinite; }
.pdfw-download-inline button:disabled { opacity: 0.5; cursor: not-allowed; animation: none; }

@keyframes pdfw-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.info-card { background: #fff; border-radius: 16px; padding: 16px; border: 1px solid #e2e8f0; box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06); }
.pdfw-steps { margin: 0; padding-left: 18px; display: grid; gap: 8px; }
.related-links { display: flex; flex-wrap: wrap; gap: 10px; }
.related-links a { padding: 8px 12px; border-radius: 999px; border: 1px solid #dbeafe; color: #1d4ed8; text-decoration: none; background: #eef2ff; font-weight: 700; }
.pdfw-faq-card { }
.pdfw-faq-list { display: grid; gap: 10px; }
.pdfw-faq-item { border: 1px solid #e2e8f0; border-radius: 12px; padding: 12px; background: #f8fafc; }
.pdfw-faq-question { width: 100%; border: none; background: none; text-align: left; font-weight: 700; display: flex; justify-content: space-between; align-items: center; cursor: pointer; font-size: 1rem; }
.pdfw-faq-question::after { content: "▾"; font-size: 0.9rem; color: #475569; transition: transform 0.2s ease; }
.pdfw-faq-item.open .pdfw-faq-question::after { transform: rotate(180deg); }
.pdfw-faq-answer { margin-top: 8px; color: #475569; display: none; }
.pdfw-faq-item.open .pdfw-faq-answer { display: block; }

@media (max-width: 960px) {
  .pdfw-hero-grid { grid-template-columns: 1fr; }
  .pdfw-hero { padding: 32px 0; }
  .pdfw-main { padding: 20px 0 36px; }
  .card { padding: 16px; border-radius: 16px; }
  .pdfw-layout { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .chip-row { gap: 6px; }
  .stack-on-mobile { flex-direction: column; width: 100%; }
  .pdfw-queue-item { grid-template-columns: 64px 1fr; grid-template-rows: auto auto; }
  .pdfw-queue-actions { grid-column: 1 / -1; justify-items: start; }
  #pdfw-download-btn { width: 100%; }
}
