:root {
  --ink: #172033;
  --muted: #62708a;
  --line: #d9e0ea;
  --panel: #fff;
  --soft: #f5f7fb;
  --blue: #2557d6;
  --blue-dark: #173b9f;
  --green: #117c55;
  --red: #b42318;
  --amber: #a15c07;
  --shadow: 0 18px 48px rgba(23, 32, 51, .12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { background: #f7f9fc; color: var(--ink); }
body { margin: 0; line-height: 1.55; }
a { color: inherit; }
.topbar { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid rgba(217,224,234,.85); background: rgba(255,255,255,.92); backdrop-filter: blur(16px); }
.nav { width: min(1120px, calc(100% - 32px)); margin: 0 auto; min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 760; text-decoration: none; }
.brand-mark { width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; background: var(--blue); color: white; font-size: 18px; }
.nav-links { display: flex; align-items: center; gap: 18px; color: var(--muted); font-size: 14px; }
.nav-links a { text-decoration: none; }
.nav-links a:hover { color: var(--ink); }
.section { padding: 72px 0; }
.section.compact { padding: 44px 0; }
.container { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.hero { display: grid; grid-template-columns: minmax(0,.95fr) minmax(360px,1.05fr); gap: 34px; align-items: start; padding-top: 48px; }
.eyebrow { margin: 0 0 14px; color: var(--green); font-weight: 720; font-size: 13px; text-transform: uppercase; letter-spacing: 0; }
h1,h2,h3 { line-height: 1.12; letter-spacing: 0; }
h1 { margin: 0; font-size: clamp(42px, 6vw, 66px); max-width: 760px; }
h2 { margin: 0 0 18px; font-size: 34px; }
h3 { margin: 0 0 10px; font-size: 20px; }
.lead { margin: 20px 0 0; color: var(--muted); font-size: 19px; max-width: 680px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.pill { display: inline-flex; align-items: center; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; background: white; color: #33415f; font-size: 14px; }
.tool-panel { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); overflow: hidden; }
.dropzone { padding: 28px; border-bottom: 1px solid var(--line); }
.drop-target { min-height: 240px; border: 2px dashed #aebbd0; border-radius: 8px; display: grid; place-items: center; text-align: center; padding: 28px; background: #fbfcff; transition: border-color .16s ease, background .16s ease; cursor: pointer; }
.drop-target.is-dragging { border-color: var(--blue); background: #eef4ff; }
.upload-icon { width: 62px; height: 62px; border-radius: 16px; display: grid; place-items: center; margin: 0 auto 16px; background: #eaf2ff; color: var(--blue); font-size: 30px; }
.file-input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 18px; }
.button, button { border: 0; border-radius: 8px; min-height: 44px; padding: 0 18px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; background: var(--blue); color: white; font: inherit; font-weight: 720; text-decoration: none; cursor: pointer; }
.button:hover, button:hover { background: var(--blue-dark); }
.button.secondary, button.secondary { color: var(--ink); background: #eef2f7; }
.button.secondary:hover, button.secondary:hover { background: #dde5f0; }
.tool-status { padding: 18px 28px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.tool-status.error { color: var(--red); background: #fff5f3; }
.tool-status.success { color: var(--green); background: #f0fbf6; }
.tool-status.warning { color: var(--amber); background: #fff9eb; }
.results { padding: 24px 28px 28px; display: none; }
.results.is-visible { display: block; }
.result-header { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.downloads { display: flex; flex-wrap: wrap; gap: 10px; }
.table-preview { overflow: auto; border: 1px solid var(--line); border-radius: 8px; max-height: 380px; }
.preview-note { margin-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fbfcff; color: var(--muted); font-size: 13px; }
.preview-toggle { min-height: 36px; padding: 0 12px; white-space: nowrap; }
table { width: 100%; border-collapse: collapse; min-width: 520px; background: white; }
td,th { border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); padding: 9px 10px; text-align: left; font-size: 13px; vertical-align: top; }
tr:first-child td { background: #eef4ff; font-weight: 720; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.card { border: 1px solid var(--line); border-radius: 8px; background: white; padding: 22px; }
.card p, .article p, .article li { color: var(--muted); }
.feedback-panel { display: grid; grid-template-columns: minmax(0, .9fr) minmax(320px, 1fr); gap: 28px; align-items: start; border-top: 1px solid var(--line); padding-top: 44px; }
.feedback-panel p { color: var(--muted); }
.feedback-email { display: inline-flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: white; }
.feedback-email a { color: var(--blue); font-weight: 720; }
.feedback-form { display: grid; gap: 14px; border: 1px solid var(--line); border-radius: 8px; background: white; padding: 20px; }
.feedback-form label { display: grid; gap: 7px; color: #33415f; font-weight: 700; font-size: 14px; }
.feedback-form input, .feedback-form textarea { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 11px 12px; color: var(--ink); font: inherit; resize: vertical; }
.feedback-form input:focus, .feedback-form textarea:focus { outline: 2px solid rgba(37,87,214,.2); border-color: var(--blue); }
.feedback-help { margin: -4px 0 0; color: var(--muted); font-size: 13px; }
.article { width: min(820px, calc(100% - 32px)); margin: 0 auto; padding: 56px 0 80px; }
.article h1 { font-size: clamp(34px, 5vw, 54px); }
.article h2 { margin-top: 42px; }
.article ul { padding-left: 22px; }
.callout { border-left: 4px solid var(--blue); padding: 16px 18px; background: #eef4ff; border-radius: 0 8px 8px 0; color: #26395f; }
.footer { border-top: 1px solid var(--line); padding: 32px 0; color: var(--muted); background: white; }
.footer-inner { width: min(1120px, calc(100% - 32px)); margin: 0 auto; display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; font-size: 14px; }
.footer a { color: var(--muted); margin-left: 14px; }
@media (max-width: 860px) {
  .nav { align-items: flex-start; flex-direction: column; padding: 14px 0; }
  .nav-links { width: 100%; overflow-x: auto; padding-bottom: 4px; }
  .hero, .grid { grid-template-columns: 1fr; }
  .feedback-panel { grid-template-columns: 1fr; }
  .section { padding: 48px 0; }
  .result-header { align-items: flex-start; flex-direction: column; }
  .preview-note { align-items: flex-start; flex-direction: column; }
}
