/* ===== TOOL PAGE LAYOUT ===== */
main { max-width: 660px; margin: 0 auto; padding: 3rem 1.5rem 6rem; }

.page-tag {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.72rem; font-weight: 600; color: var(--accent); background: var(--accent-bg);
  border: 1px solid var(--accent-border, transparent);
  padding: 0.25rem 0.75rem; border-radius: 999px; margin-bottom: 1rem;
}
h1 { font-family: var(--display); font-size: clamp(1.9rem,4vw,2.8rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1.0; margin-bottom: 0.5rem; }
.subtitle { font-size: 0.88rem; color: var(--sub); margin-bottom: 2rem; line-height: 1.5; }

/* ===== DROPZONE ===== */
.dropzone {
  border: 2px dashed var(--border); border-radius: var(--radius);
  padding: 3rem 2rem; text-align: center; cursor: pointer;
  background: var(--white); position: relative;
  transition: border-color 0.2s, background 0.2s; margin-bottom: 1rem;
}
.dropzone:hover, .dropzone.over { border-color: var(--accent); background: var(--accent-bg); }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.drop-icon { font-size: 2.5rem; margin-bottom: 0.8rem; }
.drop-title { font-family: var(--display); font-size: 1.05rem; font-weight: 700; margin-bottom: 0.3rem; }
.drop-sub { font-size: 0.78rem; color: var(--sub); }

/* ===== FILE BAR ===== */
.file-bar { display: none; align-items: center; gap: 0.8rem; background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 1rem 1.2rem; margin-bottom: 1rem; }
.file-bar.show { display: flex; }
.file-meta { flex: 1; }
.file-name { font-size: 0.88rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 360px; }
.file-size { font-size: 0.72rem; color: var(--sub); margin-top: 0.15rem; }
.del-btn { font-size: 0.78rem; color: var(--sub); background: none; border: 1px solid var(--border); border-radius: 8px; padding: 0.35rem 0.7rem; cursor: pointer; font-family: var(--body); transition: all 0.15s; }
.del-btn:hover { border-color: #ef4444; color: #ef4444; }

/* ===== CARD ===== */
.card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.4rem 1.5rem; margin-bottom: 1rem; }
.card-label { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sub); margin-bottom: 1rem; }

/* ===== GO BUTTON ===== */
.go-btn {
  width: 100%; background: var(--text); color: white; border: none;
  border-radius: 12px; padding: 1rem; font-family: var(--display);
  font-size: 1rem; font-weight: 700; cursor: pointer; letter-spacing: -0.02em;
  transition: all 0.2s; margin-bottom: 1rem;
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
}
.go-btn:hover { opacity: 0.85; transform: translateY(-1px); }
.go-btn:disabled { opacity: 0.35; cursor: not-allowed; transform: none; }

/* ===== PROGRESS ===== */
.progress-card { display: none; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.4rem 1.5rem; margin-bottom: 1rem; }
.progress-card.show { display: block; }
.prog-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.7rem; }
.prog-label { font-size: 0.88rem; font-weight: 600; }
.prog-pct { font-size: 0.82rem; color: var(--accent); font-weight: 700; }
.prog-bar { height: 6px; background: var(--off); border-radius: 3px; overflow: hidden; margin-bottom: 0.5rem; }
.prog-fill { height: 100%; background: var(--accent); border-radius: 3px; width: 0%; transition: width 0.3s; }
.prog-status { font-size: 0.75rem; color: var(--sub); }

/* ===== RESULT ===== */
.result-card { display: none; background: var(--accent-bg); border: 1px solid var(--accent-border, transparent); border-radius: var(--radius); padding: 1.4rem 1.5rem; margin-bottom: 1rem; }
.result-card.show { display: block; }
.result-title { font-family: var(--display); font-size: 1rem; font-weight: 700; color: var(--accent); margin-bottom: 1rem; display: flex; align-items: center; gap: 0.4rem; }
.dl-btn { display: flex; align-items: center; justify-content: center; gap: 0.5rem; width: 100%; background: var(--text); color: white; border: none; border-radius: 10px; padding: 0.85rem; font-family: var(--display); font-size: 0.95rem; font-weight: 700; cursor: pointer; text-decoration: none; transition: opacity 0.2s; }
.dl-btn:hover { opacity: 0.85; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  nav { padding: 0 1.2rem; }
  main { padding: 2rem 1rem 4rem; }
}

/* ===== FAQ ===== */
.faq { margin-top: 3rem; border-top: 1px solid var(--border); padding-top: 2rem; }
.faq h2 { font-family: var(--display); font-size: 1.2rem; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 1.2rem; }
.faq-item { border-bottom: 1px solid var(--border); padding: 1rem 0; }
.faq-q { font-size: 0.9rem; font-weight: 600; margin-bottom: 0.3rem; }
.faq-a { font-size: 0.82rem; color: var(--sub); line-height: 1.6; }
