/* Shared styles for per-format landing pages */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --indigo:#6366f1; --indigo-d:#4f46e5; --green:#10b981; --red:#ef4444; --amber:#f59e0b;
  --text:#0f172a; --muted:#64748b; --border:#e2e8f0; --bg:#f8fafc; --card:#fff;
  --radius:12px; --shadow:0 1px 3px rgba(0,0,0,.08),0 4px 16px rgba(0,0,0,.06);
}
body { font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif; background:var(--bg); color:var(--text); line-height:1.6; }

/* Nav */
nav { background:var(--card); border-bottom:1px solid var(--border); position:sticky; top:0; z-index:50; }
.nav-inner { max-width:1100px; margin:0 auto; padding:0 24px; height:88px; display:flex; align-items:center; justify-content:space-between; }
.logo { display:flex; align-items:center; text-decoration:none; }
.logo img { height:64px; width:auto; display:block; }
.nav-links { display:flex; align-items:center; gap:24px; }
.nav-links a { font-size:14px; color:var(--muted); text-decoration:none; font-weight:500; }
.nav-links a:hover { color:var(--indigo); }
.nav-links a.cta { background:var(--indigo); color:#fff; padding:10px 18px; border-radius:8px; font-weight:600; }
.nav-links a.cta:hover { background:var(--indigo-d); }
@media (max-width: 700px) { .nav-inner { height:72px; padding:0 14px; } .logo img { height:48px; } .nav-links a:not(.cta) { display:none; } }

/* Hero */
.hero { background:linear-gradient(135deg,#eef2ff 0%,#f5f3ff 50%,#ecfdf5 100%); border-bottom:1px solid var(--border); padding:56px 24px 40px; text-align:center; }
.hero .eyebrow { font-size:13px; font-weight:700; color:var(--indigo); text-transform:uppercase; letter-spacing:0.1em; margin-bottom:10px; }
.hero h1 { font-size:clamp(30px,5vw,48px); font-weight:800; letter-spacing:-1px; color:var(--text); margin-bottom:14px; line-height:1.15; }
.hero h1 span { color:var(--indigo); }
.hero p { font-size:clamp(15px,2vw,18px); color:var(--muted); max-width:640px; margin:0 auto 24px; }
.hero-badges { display:flex; flex-wrap:wrap; gap:8px; justify-content:center; }
.hbadge { display:flex; align-items:center; gap:6px; padding:6px 14px; background:#fff; border:1px solid var(--border); border-radius:20px; font-size:13px; font-weight:500; color:var(--muted); }

/* Main */
.main { max-width:1100px; margin:0 auto; padding:32px 24px 56px; }

/* Drop zone */
.drop-zone { background:var(--card); border:2px dashed var(--border); border-radius:var(--radius); padding:52px 32px; text-align:center; cursor:pointer; transition:border-color .2s, background .2s, transform .15s; position:relative; margin-bottom:20px; box-shadow:var(--shadow); }
.drop-zone:hover, .drop-zone:focus-within { border-color:var(--indigo); background:#fafbff; }
.drop-zone.drag-active { border-color:var(--indigo); background:#eef2ff; transform:scale(1.01); }
.drop-zone input[type=file] { position:absolute; inset:0; opacity:0; cursor:pointer; width:100%; height:100%; }
.drop-icon { width:72px; height:72px; margin:0 auto 18px; }
.drop-icon img { width:100%; height:100%; }
.drop-zone h2 { font-size:20px; font-weight:700; margin-bottom:6px; color:var(--text); }
.drop-zone p { color:var(--muted); font-size:14px; margin-bottom:18px; }
.browse-btn { display:inline-flex; align-items:center; gap:8px; padding:10px 22px; background:var(--indigo); color:#fff; border-radius:8px; font-weight:600; font-size:14px; pointer-events:none; }

/* Settings bar */
.settings-bar { display:flex; gap:16px; align-items:center; flex-wrap:wrap; background:var(--card); border:1px solid var(--border); border-radius:var(--radius); padding:14px 18px; margin-bottom:20px; box-shadow:var(--shadow); font-size:13px; }
.setting-group { display:flex; align-items:center; gap:8px; }
.setting-label { font-size:11px; font-weight:600; text-transform:uppercase; letter-spacing:.6px; color:var(--muted); }
.quality-wrap { display:flex; align-items:center; gap:10px; }
.quality-wrap input[type=range] { -webkit-appearance:none; width:120px; height:4px; border-radius:2px; background:var(--border); outline:none; cursor:pointer; }
.quality-wrap input[type=range]::-webkit-slider-thumb { -webkit-appearance:none; width:16px; height:16px; border-radius:50%; background:var(--indigo); cursor:pointer; box-shadow:0 1px 4px rgba(99,102,241,.4); }
.quality-val { font-weight:700; color:var(--indigo); font-size:14px; min-width:36px; }
.setting-select { padding:6px 10px; border:1.5px solid var(--border); border-radius:6px; background:var(--bg); font-weight:600; font-size:13px; color:var(--text); cursor:pointer; }
.setting-check { display:flex; align-items:center; gap:6px; cursor:pointer; user-select:none; }

/* File grid + convert */
#file-section { display:none; margin-bottom:24px; }
.section-head { display:flex; align-items:center; justify-content:space-between; margin-bottom:12px; flex-wrap:wrap; gap:8px; }
.section-head h3 { font-size:15px; font-weight:700; }
.head-actions { display:flex; gap:8px; }
.btn { display:inline-flex; align-items:center; gap:8px; border:none; padding:8px 14px; border-radius:8px; font-weight:600; font-size:13px; cursor:pointer; transition:all .15s; }
.btn-primary { background:var(--indigo); color:#fff; }
.btn-primary:hover { background:var(--indigo-d); }
.btn-outline { background:transparent; border:1.5px solid var(--border); color:var(--text); }
.btn-outline:hover { border-color:var(--indigo); color:var(--indigo); }
.btn-green { background:var(--green); color:#fff; padding:12px 24px; font-size:15px; }
.btn-green:disabled { background:#94a3b8; cursor:not-allowed; }
.btn-sm { padding:6px 12px; font-size:12px; }

.progress-bar-wrap { display:none; background:var(--border); border-radius:99px; height:4px; overflow:hidden; margin-bottom:12px; }
.progress-bar-wrap.show { display:block; }
.progress-bar { height:100%; background:var(--indigo); transition:width .3s; }

.file-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(160px, 1fr)); gap:12px; margin-bottom:16px; }
.file-card { position:relative; background:var(--card); border:2px solid var(--border); border-radius:10px; overflow:hidden; }
.file-card.selected { border-color:var(--indigo); }
.card-check { position:absolute; top:8px; left:8px; z-index:2; width:18px; height:18px; cursor:pointer; }
.card-status { position:absolute; top:8px; right:8px; z-index:2; font-size:10px; font-weight:700; padding:3px 8px; border-radius:12px; }
.s-ready { background:#e0e7ff; color:var(--indigo); }
.s-loading, .s-converting { background:#fef3c7; color:var(--amber); }
.s-queued { background:#f1f5f9; color:var(--muted); }
.s-done { background:#d1fae5; color:var(--green); }
.s-error { background:#fee2e2; color:var(--red); }
.card-img { width:100%; height:100px; object-fit:cover; display:block; background:#f1f5f9; }
.card-img-placeholder { width:100%; height:100px; display:flex; align-items:center; justify-content:center; font-size:32px; background:#f1f5f9; color:var(--muted); }
.card-body { padding:8px 10px; }
.card-name { font-size:11px; font-weight:600; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.card-meta { font-size:10px; color:var(--muted); margin-top:2px; }
.spin { display:inline-block; width:8px; height:8px; border:1.5px solid #fff; border-top-color:transparent; border-radius:50%; animation:spin .8s linear infinite; margin-right:4px; vertical-align:middle; }
@keyframes spin { to { transform:rotate(360deg); } }

.convert-bar { display:flex; justify-content:space-between; align-items:center; padding:14px 16px; background:var(--card); border:1px solid var(--border); border-radius:var(--radius); }
.convert-bar p { font-size:13px; color:var(--muted); }

#results-section { display:none; margin-top:24px; }
.result-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(220px, 1fr)); gap:14px; }
.result-card { background:var(--card); border:1px solid var(--border); border-radius:10px; overflow:hidden; }
.result-card img { width:100%; height:140px; object-fit:cover; display:block; background:#f1f5f9; }
.result-svg-preview { width:100%; height:140px; display:flex; align-items:center; justify-content:center; font-size:44px; background:#f1f5f9; color:var(--muted); }
.result-body { padding:12px 14px; }
.result-name { font-size:13px; font-weight:600; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.result-meta { font-size:11px; color:var(--muted); margin:4px 0 10px; }
.result-actions { display:flex; gap:6px; }

/* Long content sections */
.content-section { max-width:820px; margin:56px auto; padding:0 24px; }
.content-section h2 { font-size:28px; font-weight:800; letter-spacing:-.5px; margin-bottom:16px; color:var(--text); }
.content-section h3 { font-size:20px; font-weight:700; margin:32px 0 12px; }
.content-section p { color:#334155; margin-bottom:14px; font-size:16px; }
.content-section ul { margin:0 0 16px 22px; }
.content-section li { color:#334155; margin-bottom:6px; }
.callout { background:#f0fdf4; border-left:4px solid var(--green); padding:14px 18px; border-radius:8px; margin:20px 0; font-size:15px; color:#065f46; }

/* Comparison table */
.compare-table { width:100%; border-collapse:collapse; margin:16px 0; background:var(--card); border:1px solid var(--border); border-radius:8px; overflow:hidden; }
.compare-table th, .compare-table td { padding:12px 14px; text-align:left; font-size:14px; border-bottom:1px solid var(--border); }
.compare-table th { background:#f8fafc; font-weight:700; }
.compare-table tr:last-child td { border-bottom:none; }
.pos { color:var(--green); font-weight:700; }
.neg { color:var(--red); font-weight:700; }

/* FAQ */
.faq { max-width:820px; margin:56px auto; padding:0 24px; }
.faq h2 { font-size:28px; font-weight:800; letter-spacing:-.5px; margin-bottom:20px; }
.faq-item { background:var(--card); border:1px solid var(--border); border-radius:10px; margin-bottom:10px; overflow:hidden; }
.faq-q { width:100%; text-align:left; background:none; border:none; padding:16px 20px; font-size:15px; font-weight:600; color:var(--text); cursor:pointer; display:flex; justify-content:space-between; align-items:center; gap:12px; }
.faq-a { padding:0 20px 18px; color:#475569; font-size:14px; line-height:1.65; display:none; }
.faq-item.open .faq-a { display:block; }
.faq-item.open .faq-q svg { transform:rotate(180deg); }

/* Related links */
.related { max-width:1100px; margin:56px auto; padding:0 24px; }
.related h2 { font-size:22px; font-weight:800; margin-bottom:14px; text-align:center; }
.related-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(220px, 1fr)); gap:12px; }
.related a { background:var(--card); border:1px solid var(--border); border-radius:10px; padding:14px 16px; text-decoration:none; color:var(--text); font-weight:600; font-size:14px; display:block; transition:all .15s; }
.related a:hover { border-color:var(--indigo); color:var(--indigo); transform:translateY(-2px); }

/* Footer */
footer { background:var(--card); border-top:1px solid var(--border); padding:40px 24px 24px; margin-top:56px; }
.footer-inner { max-width:1100px; margin:0 auto; }
.footer-grid { display:grid; grid-template-columns:repeat(4, 1fr); gap:28px; margin-bottom:28px; }
.footer-col h4 { font-size:13px; font-weight:700; text-transform:uppercase; letter-spacing:.5px; margin-bottom:12px; }
.footer-col a { display:block; font-size:13px; color:var(--muted); text-decoration:none; margin-bottom:8px; }
.footer-col a:hover { color:var(--indigo); }
.footer-bottom { border-top:1px solid var(--border); padding-top:18px; text-align:center; font-size:12px; color:var(--muted); }
@media (max-width:700px) { .footer-grid { grid-template-columns:1fr 1fr; } }

/* Toast */
.toast { position:fixed; bottom:24px; right:24px; padding:12px 20px; border-radius:10px; font-weight:600; font-size:14px; color:#fff; box-shadow:0 4px 14px rgba(0,0,0,.15); z-index:200; transform:translateY(80px); opacity:0; transition:all .3s; max-width:320px; }
.toast.show { transform:translateY(0); opacity:1; }
.toast.success { background:var(--green); }
.toast.error { background:var(--red); }
.toast.info { background:var(--indigo); }

/* EXIF panel */
.card-exif-toggle { position:absolute; bottom:32px; right:6px; background:rgba(255,255,255,.9); border:1px solid var(--border); border-radius:4px; padding:2px 6px; font-size:10px; cursor:pointer; }
.card-exif { padding:6px 10px; background:#f8fafc; border-top:1px solid var(--border); font-size:10px; color:var(--muted); line-height:1.4; display:none; }
.card-exif.open { display:block; }
.card-exif b { color:var(--text); }
