:root {
  --bg: #ffffff;
  --bg-soft: #f6f8f7;
  --bg-softer: #eef2f0;
  --text: #1c2b26;
  --text-muted: #5b6d66;
  --text-faint: #8a978f;
  --accent: #0f6e56;
  --accent-dark: #0b5643;
  --accent-soft: #e1f5ee;
  --border: #dce5e1;
  --danger: #b3261e;
  --radius: 12px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 960px; margin: 0 auto; padding: 0 20px; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 19px;
  color: var(--text);
  text-decoration: none;
}

.logo:hover { text-decoration: none; }

.logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
}

nav.main-nav { display: flex; gap: 22px; }

nav.main-nav a {
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 500;
}

nav.main-nav a:hover { color: var(--accent); text-decoration: none; }

.hero { padding: 48px 0 8px; text-align: center; }

.hero h1 {
  font-size: 34px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.hero p.sub {
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 17px;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 18px;
}

.badge {
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
}

.tool-card {
  margin-top: 28px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}

.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: flex-end;
  margin-bottom: 16px;
}

.control { display: flex; flex-direction: column; gap: 4px; }

.control label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.control select, .control input[type="number"] {
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  padding: 0 10px;
  font-size: 15px;
  font-family: var(--font);
  color: var(--text);
  min-width: 140px;
}

.control input[type="range"] { width: 160px; accent-color: var(--accent); }

.dropzone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  background: #fff;
  padding: 44px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.dropzone:hover, .dropzone.drag {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.dropzone .dz-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 10px;
  border-radius: 14px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}

.dropzone h2 { font-size: 18px; font-weight: 600; }

.dropzone p { color: var(--text-muted); font-size: 14px; margin-top: 4px; }

.file-list { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }

.file-row {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
}

.file-thumb {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--bg-softer);
  flex-shrink: 0;
}

.file-info { flex: 1; min-width: 0; }

.file-name {
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-meta { font-size: 13px; color: var(--text-muted); margin-top: 2px; }

.file-meta .saved { color: var(--accent); font-weight: 600; }

.file-status { font-size: 13px; color: var(--text-faint); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  border-radius: 8px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  padding: 10px 18px;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); text-decoration: none; }

.btn-small { padding: 7px 14px; font-size: 13.5px; }

.progress-bar {
  height: 6px;
  border-radius: 999px;
  background: var(--bg-softer);
  overflow: hidden;
  margin-top: 6px;
}

.progress-bar > div {
  height: 100%;
  width: 0%;
  background: var(--accent);
  transition: width 0.15s;
}

.notice {
  margin-top: 14px;
  font-size: 13.5px;
  color: var(--text-muted);
  text-align: center;
}

.section { padding: 44px 0; }

.section.soft { background: var(--bg-soft); }

.section h2 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin-bottom: 14px;
}

.section h3 { font-size: 19px; font-weight: 600; margin: 22px 0 8px; }

.section p { color: var(--text); margin-bottom: 12px; max-width: 720px; }

.section ul, .section ol { margin: 0 0 14px 22px; color: var(--text); }
.section li { margin-bottom: 6px; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }

.step {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px;
}

.step .num {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.step h3 { font-size: 16px; margin: 0 0 6px; }

.step p { font-size: 14px; color: var(--text-muted); margin: 0; }

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}

.faq-item h3 {
  font-size: 16.5px;
  margin: 0;
  font-weight: 600;
}

.faq-item p { margin: 8px 0 0; color: var(--text-muted); font-size: 15px; }

.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  background: var(--bg-soft);
  color: var(--text-muted);
  font-size: 14px;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  align-items: center;
  justify-content: space-between;
}

.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }

.article-header { padding: 40px 0 6px; }

.article-header .crumb { font-size: 13.5px; color: var(--text-faint); margin-bottom: 10px; }

.article-header h1 {
  font-size: 30px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.4px;
  max-width: 720px;
}

.article-header .meta { margin-top: 10px; color: var(--text-muted); font-size: 14px; }

.article-body { padding-bottom: 40px; }

.article-body h2 { font-size: 22px; font-weight: 700; margin: 30px 0 10px; }

.article-body h3 { font-size: 17px; font-weight: 600; margin: 22px 0 8px; }

.article-body p { margin-bottom: 13px; max-width: 720px; }

.article-body table {
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 14.5px;
}

.article-body th, .article-body td {
  border: 1px solid var(--border);
  padding: 8px 14px;
  text-align: left;
}

.article-body th { background: var(--bg-soft); font-weight: 600; }

.cta-box {
  background: var(--accent-soft);
  border: 1px solid #c9e8db;
  border-radius: var(--radius);
  padding: 22px;
  margin: 26px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.cta-box p { margin: 0; font-size: 15.5px; }

.page-title { padding: 40px 0 6px; }
.page-title h1 { font-size: 28px; font-weight: 700; }

.page-body { padding-bottom: 44px; }
.page-body p { margin-bottom: 13px; max-width: 720px; }
.page-body h2 { font-size: 20px; margin: 26px 0 10px; }
.page-body ul { margin: 0 0 14px 22px; }

@media (max-width: 640px) {
  .hero h1 { font-size: 26px; }
  nav.main-nav { gap: 14px; }
  nav.main-nav a { font-size: 14px; }
  .file-row { flex-wrap: wrap; }
  .file-info { flex-basis: 100%; order: -1; }
}
