/* info4human/tools — ported from the Claude Design mockup (LocalConvert.dc.html) */

/* Self-hosted IBM Plex (OFL) — no third-party font requests, strict CSP compatible */
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/IBMPlexMono-400-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/IBMPlexMono-400-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/IBMPlexMono-500-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/IBMPlexMono-500-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/IBMPlexSans-400-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/IBMPlexSans-400-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/IBMPlexSans-500-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/IBMPlexSans-500-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/IBMPlexSans-600-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/IBMPlexSans-600-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/IBMPlexSans-700-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/IBMPlexSans-700-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }


* { box-sizing: border-box; }
body {
  margin: 0;
  background: #fafbfa;
  color: #16211b;
  font-family: 'IBM Plex Sans', -apple-system, 'Segoe UI', sans-serif;
  line-height: 1.5;
}
a { color: #1a7a4f; text-decoration: none; }
a:hover { color: #0f5c39; text-decoration: underline; }
.mono { font-family: 'IBM Plex Mono', ui-monospace, monospace; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes slide { from { transform: translateX(-100%); } to { transform: translateX(320%); } }

/* header */
.site-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 40px; border-bottom: 1px solid #e4e9e5; background: #fff;
  flex-wrap: wrap; gap: 10px;
}
.brand { display: flex; align-items: baseline; gap: 10px; }
.brand-name { font-weight: 700; font-size: 17px; letter-spacing: -0.02em; color: #16211b; }
.brand-name:hover { text-decoration: none; color: #16211b; }
.brand-name span { color: #1a7a4f; }
.brand-slug { font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: #7a8880; }
.site-nav { display: flex; gap: 24px; font-size: 14px; font-weight: 500; }
.site-nav a { color: #40514a; }
.site-nav a:hover { color: #1a7a4f; text-decoration: none; }

main { width: 100%; max-width: 880px; margin: 0 auto; padding: 48px 24px 80px; }

/* hero */
.hero { text-align: center; margin-bottom: 36px; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: #1a7a4f;
  background: #e7f3ec; border: 1px solid #cbe5d6;
  padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
}
.badge::before { content: ''; width: 7px; height: 7px; background: #1a7a4f; border-radius: 50%; }
.hero h1 { margin: 0 0 12px; font-size: 42px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.15; text-wrap: pretty; }
.hero .sub { margin: 0 auto; max-width: 560px; font-size: 17px; line-height: 1.6; color: #4d5c54; text-wrap: pretty; }

.answer {
  margin: 14px auto 0; max-width: 62ch; font-size: 15px; line-height: 1.65;
  color: #2c3a33; background: #eef3ef; border: 1px solid #e4e9e5;
  border-radius: 12px; padding: 12px 18px; text-align: left; text-wrap: pretty;
}
.tested { margin: 12px 0 0; font-size: 11.5px; color: #1a7a4f; }
.hub-cards { margin-bottom: 40px; }
.tool-group h2 a { color: inherit; }
.tool-group h2 a:hover { color: #1a7a4f; text-decoration: none; }

/* tabs */
.tabs { display: flex; justify-content: center; align-items: center; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.tabs .tab-label { font-size: 12px; color: #7a8880; font-family: 'IBM Plex Mono', monospace; margin-right: 2px; }
.tab {
  font-family: 'IBM Plex Mono', monospace; font-size: 13px; font-weight: 500;
  padding: 9px 20px; border-radius: 8px; border: 1px solid #dfe6e1;
  background: #fff; color: #40514a; cursor: pointer;
  display: inline-block; text-decoration: none;
}
.tab:hover { border-color: #1a7a4f; color: #1a7a4f; text-decoration: none; }
.tab.active { border-color: #1a7a4f; background: #e7f3ec; color: #1a7a4f; }

/* dropzone */
.dropzone {
  border: 2px dashed #cfd8d2; background: #fff; border-radius: 16px;
  padding: 52px 24px; text-align: center; cursor: pointer;
  transition: all 0.15s ease; margin-bottom: 14px;
}
.dropzone.drag { border-color: #1a7a4f; background: #e7f3ec; }
.dropzone .dz-icon { font-size: 34px; margin-bottom: 10px; color: #1a7a4f; }
.dropzone .dz-title { font-size: 18px; font-weight: 600; margin-bottom: 6px; }
.dropzone .dz-hint { font-size: 13px; color: #7a8880; font-family: 'IBM Plex Mono', monospace; }

/* jobs */
.jobs { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.job {
  display: flex; align-items: center; gap: 16px;
  background: #fff; border: 1px solid #e4e9e5; border-radius: 12px; padding: 14px 18px;
}
.job-badge {
  width: 42px; height: 42px; flex-shrink: 0; background: #eef3ef; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'IBM Plex Mono', monospace; font-size: 10px; font-weight: 500; color: #1a7a4f;
}
.job-mid { flex: 1; min-width: 0; }
.job-name { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.job-status { font-size: 12px; color: #7a8880; }
.job-right { display: flex; align-items: center; gap: 10px; }
.job-progress { display: none; width: 120px; height: 6px; background: #e4e9e5; border-radius: 3px; overflow: hidden; }
.job-progress-bar { width: 40%; height: 100%; background: #1a7a4f; border-radius: 3px; animation: slide 1.1s ease-in-out infinite; }
.spinner { display: none; width: 18px; height: 18px; border: 2px solid #cbe5d6; border-top-color: #1a7a4f; border-radius: 50%; animation: spin 0.7s linear infinite; }
.job.working .job-progress, .job.working .spinner { display: block; }
.btn-download {
  font-size: 13px; font-weight: 600; background: #1a7a4f; color: #fff;
  padding: 9px 16px; border-radius: 8px; white-space: nowrap;
}
.btn-download:hover { background: #0f5c39; color: #fff; text-decoration: none; }
.job-error { font-size: 12px; color: #b23b2e; max-width: 260px; }
.job-remove { border: none; background: none; color: #a8b3ac; font-size: 16px; cursor: pointer; padding: 4px; }
.job-remove:hover { color: #16211b; }
.verified {
  text-align: center; font-size: 12px; color: #7a8880;
  font-family: 'IBM Plex Mono', monospace; padding-top: 4px;
}

.zip-all-wrap { text-align: center; padding-top: 10px; }
.zip-all-btn {
  font-size: 13px; font-weight: 600; background: #1a7a4f; color: #fff;
  padding: 9px 16px; border-radius: 8px; border: none; cursor: pointer;
  font-family: 'IBM Plex Mono', monospace;
}
.zip-all-btn:hover { background: #0f5c39; }
.zip-all-btn:disabled { opacity: 0.6; cursor: wait; }
input[type="range"][data-quality] { accent-color: #1a7a4f; width: 180px; vertical-align: middle; }
.wm-input { width: 220px; }
.num-input {
  font-size: 13px; padding: 8px 12px; border-radius: 8px; border: 1px solid #dfe6e1;
  background: #fff; color: #16211b; width: 110px;
}

/* value cards */
.values { margin-top: 56px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.value-card { padding: 20px; background: #eef3ef; border-radius: 12px; }
.value-card .k { font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: #1a7a4f; margin-bottom: 8px; }
.value-card .v { font-size: 14px; line-height: 1.6; color: #2c3a33; }

/* article content */
.content { margin-top: 56px; max-width: 680px; }
.content h2 { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; margin: 32px 0 10px; }
.content h2:first-child { margin-top: 0; }
.content p { font-size: 15px; line-height: 1.7; color: #4d5c54; margin: 0 0 14px; text-wrap: pretty; }
.content ul, .content ol { font-size: 15px; line-height: 1.7; color: #4d5c54; margin: 0 0 14px; padding-left: 20px; }
.content li { margin-bottom: 6px; }
.content strong { color: #2c3a33; }

/* spec table */
.spec-wrap { overflow-x: auto; margin: 18px 0 6px; }
table.spec { border-collapse: collapse; width: 100%; font-size: 14px; background: #fff; border: 1px solid #e4e9e5; border-radius: 10px; }
table.spec caption { caption-side: bottom; font-size: 12px; color: #7a8880; text-align: left; padding: 8px 2px; }
table.spec th, table.spec td { border-bottom: 1px solid #e4e9e5; padding: 10px 14px; text-align: left; vertical-align: top; }
table.spec th { font-weight: 600; font-size: 13px; background: #eef3ef; color: #2c3a33; white-space: nowrap; }
table.spec td:first-child { font-weight: 600; color: #2c3a33; white-space: nowrap; }
table.spec tr:last-child td { border-bottom: none; }

/* FAQ */
.faq h3 { font-size: 16px; font-weight: 600; margin: 22px 0 6px; }
.faq p { margin-bottom: 0; }

/* related chips */
.related { margin-top: 56px; }
.related h2 { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  font-family: 'IBM Plex Mono', monospace; font-size: 13px; padding: 9px 16px;
  background: #fff; border: 1px solid #e4e9e5; border-radius: 999px; color: #40514a;
}
.chip:hover { border-color: #1a7a4f; color: #1a7a4f; text-decoration: none; }

/* ad slots — keep ads ≥150px away from any interactive control (AdSense policy) */
.ad-slot { margin: 48px 0; min-height: 0; }

/* index page */
.tool-groups { margin-top: 40px; }
.tool-group h2 { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; margin: 36px 0 14px; }
.tool-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tool-card {
  display: block; padding: 18px; background: #fff; border: 1px solid #e4e9e5;
  border-radius: 12px; color: inherit;
}
.tool-card:hover { border-color: #1a7a4f; text-decoration: none; color: inherit; }
.tool-card .t { font-weight: 600; font-size: 15px; margin-bottom: 4px; font-family: 'IBM Plex Mono', monospace; color: #16211b; }
.tool-card .d { font-size: 13px; color: #7a8880; line-height: 1.5; }

/* footer */
.site-footer {
  border-top: 1px solid #e4e9e5; padding: 22px 40px;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-size: 13px; color: #7a8880; background: #fff;
}
.site-footer .links { display: flex; gap: 16px; flex-wrap: wrap; }
.site-footer a { color: #7a8880; }
.site-footer a:hover { color: #1a7a4f; }
.tagline { font-family: 'IBM Plex Mono', monospace; }

.page-shell { min-height: 100vh; display: flex; flex-direction: column; }
.page-shell main { flex: 1; }

@media (max-width: 720px) {
  .site-header { padding: 14px 20px; }
  .site-nav { gap: 16px; }
  main { padding: 32px 16px 60px; }
  .hero h1 { font-size: 32px; }
  .values, .tool-cards { grid-template-columns: 1fr; }
  .job { flex-wrap: wrap; }
  .job-right { width: 100%; justify-content: flex-end; }
  .site-footer { padding: 18px 20px; }
}

/* unzip per-file list */
.unzip-list { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 4px; margin-top: 10px; border-top: 1px solid var(--line); padding-top: 10px; max-height: 300px; overflow-y: auto; }
.unzip-item { font-size: 12.5px; color: var(--accent); text-decoration: none; padding: 3px 6px; border-radius: 6px; word-break: break-all; }
.unzip-item:hover { background: var(--surface-2); text-decoration: underline; }

/* @font-face snippet on font tools */
.css-snippet-wrap { grid-column: 1 / -1; position: relative; margin-top: 10px; }
.css-snippet { font-size: 12px; line-height: 1.6; background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; overflow-x: auto; white-space: pre; color: var(--text-2); }
.snippet-copy { position: absolute; top: 6px; right: 6px; font-size: 11px; padding: 3px 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--text-2); cursor: pointer; }
.snippet-copy:hover { color: var(--text); border-color: var(--accent); }

/* EXIF keep toggle */
.exif-label { display: flex; align-items: center; gap: 7px; cursor: pointer; }
.exif-label input { accent-color: var(--accent); }
.exif-hint { color: var(--text-3, var(--text-2)); font-size: 11.5px; text-transform: none; letter-spacing: 0; }

/* consent banner (only rendered when analytics is configured) */
.consent-banner { position: fixed; left: 16px; bottom: 16px; z-index: 60; max-width: 340px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; box-shadow: 0 8px 30px rgba(0,0,0,.25); }
.consent-banner p { margin: 0 0 10px; font-size: 13px; line-height: 1.55; color: var(--text); }
.consent-state { font-size: 11px; color: var(--text-2); margin-bottom: 8px; }
.consent-actions { display: flex; gap: 8px; }
.consent-actions button { font-size: 12.5px; padding: 6px 12px; border-radius: 8px; border: 1px solid var(--line); cursor: pointer; }
.consent-allow { background: var(--accent); color: #fff; border-color: var(--accent); }
.consent-reject { background: var(--surface); color: var(--text-2); }
.consent-reject:hover, .consent-allow:hover { filter: brightness(1.08); }
@media (max-width: 480px) { .consent-banner { left: 10px; right: 10px; bottom: 10px; max-width: none; } }
