/* DocSwiftly — shared stylesheet (original) */
:root {
  --navy: #0b1220;
  --ink: #16213a;
  --muted: #5b6b82;
  --line: #e2e8f0;
  --bg: #f8fafc;
  --card: #ffffff;
  --blue: #2563eb;
  --cyan: #06b6d4;
  --grad: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
  --green: #16a34a;
  --amber: #b45309;
  --red: #dc2626;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(11, 18, 32, .08);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
.container { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* ---------- header ---------- */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.site-header .container { display: flex; align-items: center; gap: 24px; height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; color: var(--navy); letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 10px; flex: none;
  background: var(--grad); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 800;
}
.brand-mark span.dot { color: #fde68a; }
.main-nav { display: flex; gap: 4px; margin-left: auto; }
.main-nav a { color: var(--muted); font-weight: 600; font-size: 14.5px; padding: 8px 12px; border-radius: 8px; }
.main-nav a:hover { color: var(--navy); background: #f1f5f9; text-decoration: none; }
.main-nav a.active { color: var(--blue); background: #eff6ff; }
.nav-cta {
  background: var(--grad); color: #fff !important; font-weight: 700;
  padding: 9px 16px; border-radius: 9px; font-size: 14.5px; white-space: nowrap;
}
.nav-cta:hover { text-decoration: none; opacity: .92; }
@media (max-width: 720px) {
  .main-nav a:not(.nav-cta) { display: none; }
}

/* ---------- hero ---------- */
.hero { text-align: center; padding: 72px 20px 56px; }
.hero h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.12; letter-spacing: -.03em; color: var(--navy); font-weight: 800; }
.hero h1 .grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lede { max-width: 640px; margin: 18px auto 0; font-size: 18px; color: var(--muted); }
.hero .hero-cta { margin-top: 28px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 13px 24px; border-radius: 10px; font-weight: 700; font-size: 16px;
  border: 1px solid transparent; cursor: pointer; transition: opacity .15s, transform .1s;
}
.btn:hover { text-decoration: none; opacity: .92; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--grad); color: #fff; }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--navy); }
.btn-sm { padding: 9px 16px; font-size: 14.5px; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.hero .trust { margin-top: 16px; font-size: 13.5px; color: var(--muted); }
.hero .trust b { color: var(--green); }

/* ---------- tool grid ---------- */
.section { padding: 44px 0; }
.section h2 { font-size: 26px; letter-spacing: -.02em; color: var(--navy); text-align: center; margin-bottom: 8px; }
.section .sub { text-align: center; color: var(--muted); max-width: 620px; margin: 0 auto 28px; }
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.tool-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow); display: block; color: inherit; position: relative;
}
.tool-card:hover { text-decoration: none; border-color: #bfdbfe; transform: translateY(-2px); transition: transform .15s, border-color .15s; }
.tool-card .icon { font-size: 30px; line-height: 1; }
.tool-card h3 { font-size: 17.5px; margin: 12px 0 6px; color: var(--navy); }
.tool-card p { font-size: 14px; color: var(--muted); }
.tool-card .tag {
  position: absolute; top: 14px; right: 14px; font-size: 11px; font-weight: 800; letter-spacing: .04em;
  background: #eff6ff; color: var(--blue); padding: 3px 8px; border-radius: 20px; text-transform: uppercase;
}
.tool-card .tag.star { background: #fef3c7; color: #92400e; }

/* ---------- how it works ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; text-align: center; }
.step .num {
  width: 40px; height: 40px; margin: 0 auto 12px; border-radius: 50%;
  background: var(--grad); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center;
}
.step h3 { font-size: 16.5px; color: var(--navy); margin-bottom: 6px; }
.step p { font-size: 14px; color: var(--muted); }

/* ---------- pricing ---------- */
.pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; max-width: 720px; margin: 0 auto; }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.plan.pro { border: 2px solid var(--blue); position: relative; }
.plan h3 { font-size: 18px; color: var(--navy); }
.plan .price { font-size: 34px; font-weight: 800; color: var(--navy); margin: 10px 0 2px; }
.plan .price span { font-size: 15px; font-weight: 600; color: var(--muted); }
.plan ul { list-style: none; margin: 16px 0; }
.plan li { font-size: 14.5px; color: var(--muted); padding: 5px 0 5px 26px; position: relative; }
.plan li::before { content: "✓"; position: absolute; left: 2px; color: var(--green); font-weight: 800; }
.badge-soon {
  display: inline-block; background: #fef3c7; color: #92400e; font-size: 12px; font-weight: 800;
  padding: 3px 10px; border-radius: 20px; text-transform: uppercase; letter-spacing: .04em;
}

/* ---------- tool pages ---------- */
.page-head { padding: 52px 0 8px; text-align: center; }
.page-head h1 { font-size: clamp(28px, 4vw, 40px); letter-spacing: -.02em; color: var(--navy); }
.page-head p { color: var(--muted); max-width: 640px; margin: 12px auto 0; font-size: 16.5px; }
.workbench {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 26px; margin: 28px auto; max-width: 920px;
}
.dropzone {
  border: 2px dashed #cbd5e1; border-radius: 12px; padding: 38px 20px; text-align: center;
  cursor: pointer; transition: border-color .15s, background .15s;
}
.dropzone:hover, .dropzone.drag { border-color: var(--blue); background: #eff6ff; }
.dropzone .dz-icon { font-size: 34px; }
.dropzone p { color: var(--muted); margin-top: 8px; font-size: 14.5px; }
.dropzone strong { color: var(--navy); }
.file-list { margin-top: 16px; }
.file-row {
  display: flex; align-items: center; gap: 10px; background: #f8fafc; border: 1px solid var(--line);
  border-radius: 9px; padding: 9px 12px; margin-top: 8px; font-size: 14px;
}
.file-row .name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-row .size { color: var(--muted); font-size: 12.5px; }
.file-row button { background: none; border: none; cursor: pointer; font-size: 15px; color: var(--red); }
.actions { margin-top: 18px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.status { margin-top: 14px; font-size: 14.5px; min-height: 22px; }
.status.ok { color: var(--green); font-weight: 600; }
.status.err { color: var(--red); font-weight: 600; }
.status.info { color: var(--muted); }
.progress { height: 8px; background: #e2e8f0; border-radius: 6px; overflow: hidden; margin-top: 14px; display: none; }
.progress > div { height: 100%; background: var(--grad); width: 0%; transition: width .2s; }
.field { margin-top: 14px; }
.field label { display: block; font-size: 13.5px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.field input[type="text"], .field input[type="number"], .field select, .field textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; font-size: 15px; font-family: inherit;
}
.field textarea { min-height: 110px; resize: vertical; }
.hint { font-size: 13px; color: var(--muted); margin-top: 6px; }
.note {
  border-left: 4px solid var(--blue); background: #eff6ff; border-radius: 0 10px 10px 0;
  padding: 14px 16px; font-size: 14px; margin-top: 20px;
}
.note.warn { border-left-color: #d97706; background: #fffbeb; }
.note.err { border-left-color: var(--red); background: #fef2f2; }
.note.ok { border-left-color: var(--green); background: #f0fdf4; }
.note strong { color: var(--navy); }

/* preview table */
.table-wrap { overflow-x: auto; margin-top: 20px; border: 1px solid var(--line); border-radius: 10px; }
table.preview { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 620px; }
table.preview th, table.preview td { padding: 9px 12px; text-align: left; border-bottom: 1px solid var(--line); }
table.preview th { background: #f8fafc; color: var(--navy); font-size: 12.5px; text-transform: uppercase; letter-spacing: .03em; }
table.preview td.num, table.preview th.num { text-align: right; font-variant-numeric: tabular-nums; }
table.preview tr:last-child td { border-bottom: none; }
.summary-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-top: 20px; }
.sum-card { background: #f8fafc; border: 1px solid var(--line); border-radius: 10px; padding: 14px; }
.sum-card .lbl { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 700; }
.sum-card .val { font-size: 19px; font-weight: 800; color: var(--navy); margin-top: 4px; font-variant-numeric: tabular-nums; }
.sum-card .val.good { color: var(--green); }
.sum-card .val.bad { color: var(--red); }
.usage { font-size: 13.5px; color: var(--muted); margin-top: 12px; }

/* ---------- content pages ---------- */
.prose { max-width: 760px; margin: 0 auto; padding: 44px 20px 64px; }
.prose h1 { font-size: 32px; color: var(--navy); letter-spacing: -.02em; margin-bottom: 6px; }
.prose h2 { font-size: 21px; color: var(--navy); margin: 28px 0 8px; }
.prose p, .prose li { color: var(--muted); font-size: 15.5px; }
.prose p { margin-bottom: 12px; }
.prose ul { padding-left: 22px; margin-bottom: 12px; }
.prose .updated { font-size: 13px; color: var(--muted); margin-bottom: 20px; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy); color: #94a3b8; margin-top: 64px; }
.site-footer .container { padding: 44px 20px 28px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 28px; }
@media (max-width: 640px) { .foot-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: 14px; margin-bottom: 12px; }
.site-footer a { color: #94a3b8; display: block; padding: 3px 0; font-size: 14px; }
.site-footer a:hover { color: #fff; text-decoration: none; }
.site-footer .brand { color: #fff; }
.site-footer p { font-size: 14px; }
.foot-bottom { border-top: 1px solid #1e293b; margin-top: 32px; padding-top: 18px; font-size: 13px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* ---------- cookie banner ---------- */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 100;
  background: var(--navy); color: #e2e8f0; border-radius: 12px; padding: 16px 18px;
  display: none; box-shadow: 0 16px 40px rgba(0,0,0,.35); max-width: 640px; margin: 0 auto;
}
.cookie-banner.show { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.cookie-banner p { font-size: 13.5px; flex: 1; min-width: 220px; }
.cookie-banner a { color: #7dd3fc; }
.cookie-banner .btn { padding: 9px 18px; font-size: 14px; }
