: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; }
.pj-hero { background: linear-gradient(120deg, #0f6efc, #5b1bff); color: #fff; padding: 56px 0 48px; }
.pj-hero-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 28px; align-items: center; }
.pj-subtitle { margin: 0 0 12px; opacity: 0.95; font-size: 1.15rem; }
.wc-eyebrow { letter-spacing: 0.2em; text-transform: uppercase; font-size: 0.78rem; margin: 0 0 8px; }
.wc-bullets { display: flex; gap: 10px; flex-wrap: wrap; 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.14); 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.22); padding: 6px 12px; border-radius: 12px; font-weight: 700; }

.pj-main { padding: 44px 0 64px; }
.pj-grid { display: grid; gap: 20px; }
.card { background: #fff; border-radius: 20px; padding: 24px; border: 1px solid #e2e8f0; box-shadow: 0 20px 60px rgba(15,23,42,0.08); }
.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.muted { color: #64748b; }
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { padding: 6px 10px; border-radius: 999px; background: #eef2ff; color: #1d4ed8; font-weight: 700; font-size: 0.9rem; }

.pj-tool { display: flex; flex-direction: column; gap: 16px; }
.pj-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 16px; align-items: stretch; }
.pj-upload-col { display: flex; flex-direction: column; gap: 14px; }
.pj-settings-col { display: flex; }
.pj-settings-card { background: #f8fafc; }

.pj-dropzone { border: 1.5px dashed #94a3b8; border-radius: 16px; padding: 24px; text-align: center; background: #f8fafc; display: grid; gap: 8px; justify-items: center; transition: border-color 0.2s ease, background 0.2s ease; }
.pj-dropzone.dragging { border-color: #2563eb; background: #eef2ff; }
.pj-dropzone input[type="file"] { display: none; }
.pj-drop-icon { width: 54px; height: 54px; border-radius: 14px; background: #eef2ff; color: #1d4ed8; display: grid; place-items: center; font-size: 1.5rem; font-weight: 700; }
.drop-title { margin: 0; font-size: 1.05rem; font-weight: 700; }
.pj-dropzone .secondary-btn { width: 100%; max-width: 280px; margin-top: 6px; border: none; color: #fff; background: linear-gradient(135deg, #1d4ed8, #2563eb); box-shadow: 0 15px 40px rgba(37,99,235,0.35); font-weight: 700; padding: 15px; border-radius: 10px; cursor: pointer; }
.pj-dropzone .secondary-btn:hover { transform: translateY(-1px); }

.pj-file-meta { border-radius: 14px; padding: 12px 14px; background: rgba(15,23,42,0.05); font-size: 0.95rem; }
.pj-notice { border-radius: 14px; padding: 12px 14px; background: #fff7ed; color: #b45309; border: 1px solid #fed7aa; font-weight: 600; }
.pj-notice[hidden] { display: none !important; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.stack-on-mobile { flex-wrap: wrap; }
.primary-btn, .ghost-btn { border: none; border-radius: 12px; padding: 12px 16px; font-weight: 700; 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 15px 40px rgba(37,99,235,0.35); }
.primary-btn:disabled { opacity: 0.55; cursor: not-allowed; }
.ghost-btn { background: #fff; border: 1px solid #dbeafe; color: #1d4ed8; }
.primary-btn:hover, .ghost-btn:hover { transform: translateY(-1px); }

.pj-progress { border-radius: 14px; border: 1px solid #dbeafe; padding: 12px; background: #fff; display: grid; gap: 6px; }
.pj-progress[hidden] { display: none !important; }
.pj-progress-track { width: 100%; height: 8px; border-radius: 999px; background: #e2e8f0; overflow: hidden; }
.pj-progress-bar { width: 0%; height: 100%; background: linear-gradient(135deg, #1d4ed8, #8b5cf6); border-radius: inherit; transition: width 0.35s ease; }
.pj-alert { border-radius: 14px; padding: 12px; background: #fee2e2; color: #b91c1c; font-weight: 700; }
.pj-alert[hidden] { display: none !important; }
.pj-helper { font-size: 0.92rem; color: #475569; }

.pj-setting { display: grid; gap: 6px; margin-bottom: 10px; }
.pj-setting input[type="range"] { width: 100%; }
.pj-setting input[type="text"], .pj-setting input[type="number"] { border: 1px solid #cbd5e1; border-radius: 12px; padding: 10px 12px; font-size: 1rem; background: #fff; }
.pj-checkbox { display: flex; align-items: center; gap: 8px; font-weight: 600; }

.pj-result-card { display: grid; gap: 14px; }
.pj-result-card[hidden] { display: none !important; }
.pj-summary { margin: 0; color: #475569; }
.pj-thumbs { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; }
.pj-thumb { border: 1px solid #e2e8f0; border-radius: 16px; padding: 12px; background: #f8fafc; display: grid; gap: 8px; }
.pj-thumb img { width: 100%; border-radius: 12px; object-fit: cover; background: #fff; border: 1px solid #e2e8f0; }
.pj-thumb strong { font-size: 0.95rem; }
.pj-thumb .muted { font-size: 0.85rem; }

.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.info-card { border-radius: 16px; background: #fff; border: 1px solid #e2e8f0; padding: 18px; box-shadow: 0 12px 34px rgba(15,23,42,0.06); }
.info-card ul, .info-card ol { margin: 10px 0 0; padding-left: 18px; color: #475569; line-height: 1.7; }

.pj-faq-card { }
.pj-faq-list { display: grid; gap: 10px; }
.pj-faq-item { border: 1px solid #e2e8f0; border-radius: 12px; padding: 12px; background: #f8fafc; }
.pj-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; }
.pj-faq-question::after { content: '▾'; font-size: 0.9rem; color: #475569; transition: transform 0.2s ease; }
.pj-faq-item.open .pj-faq-question::after { transform: rotate(180deg); }
.pj-faq-answer { margin-top: 8px; color: #475569; display: none; }
.pj-faq-item.open .pj-faq-answer { display: block; }

.related-links { display: flex; gap: 10px; flex-wrap: wrap; }
.related-links a { padding: 8px 14px; border-radius: 999px; border: 1px solid #dbeafe; background: #eef2ff; color: #1d4ed8; text-decoration: none; font-weight: 700; }

@media (max-width: 960px) {
  .pj-hero-grid { grid-template-columns: 1fr; }
  .pj-hero { padding: 36px 0; }
  .pj-layout { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .card { padding: 18px; }
  .pj-dropzone { padding: 18px; }
  .cta-row { flex-direction: column; }
  .pj-result-card .ghost-btn { width: 100%; }
  .pj-result-card .primary-btn, .pj-result-card .ghost-btn { text-align: center; }
}
