/* LinkScope — premium clean theme. One accent color, system font stack, no external assets. */
:root {
  --accent: #1a56db;
  --accent-dark: #1748b5;
  --accent-tint: #e8effc;
  --ink: #17202b;
  --muted: #5b6b7d;
  --line: #dbe2ea;
  --bg: #ffffff;
  --bg-alt: #f6f8fb;
  --radius: 6px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  font-size: 16px;
}
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.wrap-narrow { max-width: 820px; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 12px; }
h2 { font-size: 1.7rem; margin-bottom: 8px; }
h3 { font-size: 1.08rem; }
p { margin: 0 0 12px; }
a { color: var(--accent); }

/* ---------- buttons: solid filled, small radius (never pills) ---------- */
.btn {
  display: inline-block;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  border: 1px solid var(--accent);
  padding: 9px 18px;
  cursor: pointer;
  background: var(--accent);
  color: #fff;
  white-space: nowrap;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-secondary { background: #fff; color: var(--accent); }
.btn-secondary:hover { background: var(--accent-tint); color: var(--accent-dark); }
.btn-large { padding: 13px 28px; font-size: 1.05rem; }

/* ---------- header ---------- */
.site-header {
  border-bottom: 1px solid var(--line);
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 20;
}
.header-inner { display: flex; align-items: center; gap: 24px; padding-top: 12px; padding-bottom: 12px; }
.brand { font-weight: 800; font-size: 1.25rem; color: var(--ink); text-decoration: none; }
.main-nav { display: flex; gap: 20px; margin-left: auto; }
.main-nav a { color: var(--ink); text-decoration: none; font-weight: 500; }
.main-nav a:hover { color: var(--accent); }
.header-inner .btn { margin-left: 4px; }

/* ---------- hero ---------- */
.hero { padding: 64px 0 48px; text-align: center; background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.hero h1 { font-size: 2.4rem; max-width: 760px; margin: 0 auto 16px; }
.hero-sub { max-width: 720px; margin: 0 auto 24px; color: var(--muted); font-size: 1.08rem; }
.hero-cta { margin-bottom: 10px; }
.hero-note { color: var(--muted); font-size: 0.92rem; margin: 0; }

/* ---------- sections ---------- */
.section { padding: 56px 0; }
.section-alt { background: var(--bg-alt); }
.section-lede { color: var(--muted); max-width: 760px; }
.steps, .features { display: grid; gap: 20px; margin-top: 24px; }
.steps { grid-template-columns: repeat(3, 1fr); }
.features { grid-template-columns: repeat(2, 1fr); }
.step, .feature {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.section-alt .feature { background: #fff; }
.step-num {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  border-radius: var(--radius);
  padding: 2px 12px;
  margin-bottom: 12px;
}
.faq-item { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq-item:last-child { border-bottom: none; }
.faq-item p { color: var(--muted); margin: 0; }

/* ---------- tool ---------- */
.tool-section { padding: 56px 0; }
.dropzone {
  border: 2px dashed var(--accent);
  border-radius: var(--radius);
  background: var(--accent-tint);
  text-align: center;
  padding: 36px 20px;
  margin-top: 20px;
  outline: none;
}
.dropzone.dragover { background: #d7e4fb; }
.dz-title { font-size: 1.25rem; font-weight: 700; margin-bottom: 6px; }
.dz-sub { color: var(--muted); margin-bottom: 18px; }
.dropzone .btn { margin: 0 4px; }
.status-line { min-height: 1.4em; color: var(--accent-dark); font-weight: 500; margin-top: 12px; }

.file-list { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 4px; }
.file-chip {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; padding: 7px 12px; font-size: 0.92rem;
}
.file-chip .role { font-weight: 700; color: var(--accent-dark); }
.file-chip button {
  font: inherit; font-size: 0.85rem; cursor: pointer;
  background: var(--ink); color: #fff; border: none; border-radius: var(--radius); padding: 3px 10px;
}

.workspace { margin-top: 24px; }
.view-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.tab-btn {
  font: inherit; font-weight: 600; cursor: pointer;
  background: #fff; color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 8px 16px;
}
.tab-btn:hover { border-color: var(--accent); color: var(--accent); }
.tab-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---------- filters ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 14px; align-items: flex-end; }
.filter-group { display: flex; flex-direction: column; gap: 4px; }
.filter-group label, .filter-set legend { font-size: 0.85rem; font-weight: 600; color: var(--muted); }
.filter-group input[type="number"], .filter-group select {
  font: inherit; padding: 7px 10px; border: 1px solid var(--line); border-radius: var(--radius); width: 130px; background: #fff;
}
.filter-checks { flex-direction: row; align-items: center; gap: 16px; padding-bottom: 8px; }
.check { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; color: var(--ink); font-size: 0.95rem; cursor: pointer; }
.filter-set { border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; margin: 0; flex: 1 1 320px; }
.check-list { display: flex; flex-wrap: wrap; gap: 6px 16px; max-height: 118px; overflow-y: auto; }
.check-list .check { font-size: 0.9rem; }

.table-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 6px 0 10px; flex-wrap: wrap; }
.row-count { font-weight: 600; margin: 0; }
.hint { color: var(--muted); font-size: 0.92rem; }
.table-note { color: var(--muted); font-size: 0.9rem; }

/* ---------- tables ---------- */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.data-table { border-collapse: collapse; width: 100%; font-size: 0.9rem; background: #fff; }
.data-table th, .data-table td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table thead th { background: var(--bg-alt); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.03em; color: var(--muted); white-space: nowrap; }
.data-table tbody tr:hover { background: var(--bg-alt); }
.data-table td.url-cell { max-width: 340px; overflow-wrap: anywhere; }
.data-table td.num, .data-table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.sortable { cursor: pointer; }
.sortable:hover { color: var(--accent); }

.type-btn {
  font: inherit; font-size: 0.88rem; font-weight: 600; cursor: pointer;
  background: var(--accent-tint); color: var(--accent-dark);
  border: 1px solid var(--accent); border-radius: var(--radius); padding: 3px 10px; white-space: nowrap;
}
.type-btn:hover { background: var(--accent); color: #fff; }
.type-select { font: inherit; font-size: 0.88rem; padding: 3px 6px; border: 1px solid var(--accent); border-radius: var(--radius); }
.badge {
  display: inline-block; font-size: 0.72rem; font-weight: 700;
  border-radius: var(--radius); padding: 1px 7px; margin-left: 6px;
  background: var(--ink); color: #fff; vertical-align: middle; white-space: nowrap;
}
.tag {
  display: inline-block; font-size: 0.75rem; font-weight: 600;
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0 7px; margin: 0 4px 4px 0; background: var(--bg-alt); white-space: nowrap;
}
.tag-authority { background: var(--accent); border-color: var(--accent); color: #fff; }
.conf-high { font-weight: 700; }
.conf-low { color: var(--muted); }
tr.trailing td { background: var(--accent-tint); }
tr.trailing:hover td { background: #d7e4fb; }
.gap-num { font-weight: 700; color: var(--accent-dark); }

.bar { background: var(--line); border-radius: 3px; height: 8px; width: 110px; margin-top: 5px; overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--accent); }
.pct { font-weight: 700; font-variant-numeric: tabular-nums; }
.cnt { color: var(--muted); font-size: 0.82rem; }

.roadmap-table td.week-cell { text-align: center; font-variant-numeric: tabular-nums; }
.empty-note { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; background: var(--bg-alt); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-alt); padding: 32px 0; margin-top: 0; }
.site-footer p { margin-bottom: 6px; }
.privacy-note { color: var(--muted); font-size: 0.92rem; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.8rem; }
  .main-nav { display: none; }
  .header-inner .btn { margin-left: auto; }
  .filter-group input[type="number"], .filter-group select { width: 110px; }
  .bar { width: 70px; }
}
