:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --accent: #2563eb;
  --accent-dark: #1d4ed8;
  --accent-soft: #eff6ff;
  --success: #15803d;
  --radius: 22px;
  --shadow: 0 20px 60px rgba(15, 23, 42, .10);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}
button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.site-header {
  max-width: 1180px; margin: auto; padding: 22px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 900; letter-spacing: -.04em; font-size: 1.2rem; }
.brand span span { color: var(--accent); }
.brand-mark {
  display: grid; place-items: center; width: 34px; height: 34px;
  border-radius: 10px; background: var(--ink); color: #fff; font-size: 1.1rem;
}
.site-header nav { display: flex; gap: 28px; color: var(--muted); font-size: .95rem; }
.site-header nav a:hover { color: var(--ink); }

.hero {
  max-width: 1180px; margin: 0 auto; padding: 74px 24px 54px;
  display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center;
}
.eyebrow { margin: 0 0 14px; font-size: .75rem; font-weight: 800; letter-spacing: .16em; color: var(--accent); }
.hero h1 { margin: 0; font-size: clamp(2.8rem, 6vw, 5.3rem); line-height: .98; letter-spacing: -.065em; }
.hero h1 span { color: var(--accent); }
.hero-text { max-width: 570px; margin: 26px 0 0; color: var(--muted); font-size: 1.12rem; }

.converter-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; box-shadow: var(--shadow);
}
.drop-zone {
  min-height: 390px; padding: 48px 24px; border: 2px dashed #cbd5e1;
  border-radius: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; transition: .2s ease; outline: none;
}
.drop-zone:hover, .drop-zone:focus-visible, .drop-zone.dragging { border-color: var(--accent); background: var(--accent-soft); }
.upload-icon {
  width: 66px; height: 66px; display: grid; place-items: center; border-radius: 18px;
  background: var(--accent-soft); color: var(--accent); font-size: 2rem; font-weight: 700; margin-bottom: 20px;
}
.drop-zone h3 { margin: 0; font-size: 1.4rem; letter-spacing: -.025em; }
.drop-zone p { margin: 7px 0 20px; color: var(--muted); }
.file-hint { margin-top: 17px !important; margin-bottom: 0 !important; font-size: .78rem; }

.primary-btn, .download-all {
  border: 0; border-radius: 12px; padding: 13px 20px; color: #fff; background: var(--accent);
  font-weight: 750; transition: .18s ease;
}
.primary-btn:hover, .download-all:hover:not(:disabled) { background: var(--accent-dark); transform: translateY(-1px); }
.primary-btn:focus-visible, .download-all:focus-visible, .text-btn:focus-visible { outline: 3px solid #93c5fd; outline-offset: 3px; }

.queue { padding: 18px 4px 4px; }
.queue-head { display: flex; align-items: center; justify-content: space-between; margin: 0 4px 14px; }
.queue-head h3 { margin: 0; font-size: 1rem; }
.queue-head span { color: var(--muted); font-size: .82rem; }
.text-btn { border: 0; background: transparent; color: var(--accent); font-weight: 700; padding: 8px; }
.file-list { display: grid; gap: 9px; max-height: 300px; overflow: auto; padding-right: 3px; }
.file-row {
  display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center;
  padding: 10px; border: 1px solid var(--line); border-radius: 13px;
}
.thumb { width: 52px; height: 52px; object-fit: cover; border-radius: 9px; background: #f1f5f9; }
.file-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .9rem; font-weight: 650; }
.file-meta { color: var(--muted); font-size: .75rem; }
.row-status { font-size: .78rem; color: var(--success); font-weight: 700; }
.download-one { border: 1px solid var(--line); background: #fff; border-radius: 9px; padding: 8px 10px; font-weight: 700; color: var(--ink); }
.download-one:hover { border-color: #94a3b8; }
.download-all { width: 100%; margin-top: 14px; }
.download-all:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.status { min-height: 20px; text-align: center; font-size: .82rem; color: var(--muted); padding: 4px 0 2px; }

.trust-row {
  max-width: 1132px; margin: 0 auto 80px; padding: 22px 28px; background: #fff;
  border: 1px solid var(--line); border-radius: 16px; display: grid; grid-template-columns: repeat(3,1fr);
}
.trust-row div { display: flex; flex-direction: column; align-items: center; text-align: center; }
.trust-row div + div { border-left: 1px solid var(--line); }
.trust-row span { color: var(--muted); font-size: .82rem; }

.content-section { max-width: 1132px; margin: 0 auto; padding: 70px 24px; }
.light-section { max-width: none; padding-left: max(24px, calc((100vw - 1132px)/2)); padding-right: max(24px, calc((100vw - 1132px)/2)); background: #fff; }
.section-heading { max-width: 700px; margin-bottom: 38px; }
.section-heading h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.05; letter-spacing: -.05em; }
.section-heading > p:last-child { color: var(--muted); margin-top: 15px; }
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.steps article { padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: 18px; }
.steps span { color: var(--accent); font-size: .75rem; font-weight: 900; letter-spacing: .1em; }
.steps h3 { margin: 25px 0 8px; }
.steps p { color: var(--muted); margin: 0; font-size: .93rem; }
.faq-list { display: grid; gap: 10px; }
details { border-bottom: 1px solid var(--line); padding: 6px 0; }
summary { cursor: pointer; list-style: none; font-weight: 750; padding: 15px 0; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; float: right; color: var(--muted); font-size: 1.3rem; }
details[open] summary::after { content: "−"; }
details p { margin: 0 35px 18px 0; color: var(--muted); }

.site-footer {
  max-width: 1180px; margin: auto; padding: 34px 24px 45px;
  display: flex; justify-content: space-between; gap: 30px; color: var(--muted); font-size: .85rem;
}
.site-footer div { display: flex; flex-direction: column; }
.site-footer strong { color: var(--ink); }

@media (max-width: 850px) {
  .site-header nav { display: none; }
  .hero { grid-template-columns: 1fr; gap: 35px; padding-top: 45px; }
  .hero h1 { font-size: clamp(3rem, 13vw, 5rem); }
  .trust-row { margin: 0 24px 45px; grid-template-columns: 1fr; gap: 16px; }
  .trust-row div + div { border-left: 0; border-top: 1px solid var(--line); padding-top: 16px; }
  .steps { grid-template-columns: 1fr; }
  .site-footer { flex-direction: column; }
}
@media (max-width: 520px) {
  .hero, .content-section { padding-left: 16px; padding-right: 16px; }
  .converter-card { padding: 10px; }
  .drop-zone { min-height: 340px; padding: 35px 15px; }
  .trust-row { margin-left: 16px; margin-right: 16px; }
  .file-row { grid-template-columns: 45px 1fr; }
  .thumb { width: 45px; height: 45px; }
  .download-one { grid-column: 2; justify-self: start; }
}


.completion-message {
  margin-top: 5px;
  color: var(--success);
  font-size: .84rem;
  font-weight: 750;
}
.file-row.converted {
  border-color: #bbf7d0;
  background: #f0fdf4;
}
.file-row.converted .row-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
