/* K-Scan Analyzer website - style.css
   v2.1 2026-11-19 - Manual / tutorial links on the download page (.grid.cards.docs, .card .links).
   v2.0 2026-11-04 - Name only (K-Scan Analyzer, folder k-scan).
   v1.6 2026-10-28 - Classes mt-14, mt-28 and disclaimer (were inline styles in download.html; the site's
                     Content-Security-Policy blocks inline styles).
   v1.3 2026-10-27 - Name only (no style change).
   v1.0 2026-10-24 - Shared styles for index.html and download.html (light + dark, responsive). */

:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --text: #1c2430;
  --muted: #5b6676;
  --line: #dde2e8;
  --accent: #0f7c8c;
  --accent-ink: #ffffff;
  --accent-soft: #e2f3f5;
  --code-bg: #eef1f4;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 4px 16px rgba(16, 24, 40, .06);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12161c;
    --surface: #1a2029;
    --text: #e6eaf0;
    --muted: #9aa5b4;
    --line: #2c3440;
    --accent: #3cc1d1;
    --accent-ink: #0b1a1d;
    --accent-soft: #15333a;
    --code-bg: #232b36;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 16px rgba(0, 0, 0, .3);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); }
code, kbd {
  font-family: Consolas, "Cascadia Mono", Menlo, monospace;
  font-size: .92em;
  background: var(--code-bg);
  padding: .1em .35em;
  border-radius: 4px;
}

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

/* header */
header.top {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
header.top .wrap { display: flex; align-items: center; gap: 24px; min-height: 60px; flex-wrap: wrap; }
.brand { font-weight: 700; color: var(--text); text-decoration: none; letter-spacing: .2px; display: flex; align-items: center; gap: 10px; }
.brand svg { width: 26px; height: 26px; }
nav { display: flex; gap: 18px; flex-wrap: wrap; margin-left: auto; }
nav a { color: var(--muted); text-decoration: none; font-size: .95rem; }
nav a:hover, nav a.active { color: var(--text); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: 8px; font-weight: 600; text-decoration: none;
  border: 1px solid var(--accent);
}
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.07); }
.btn.ghost { color: var(--accent); background: transparent; }
.btn svg { width: 18px; height: 18px; }

/* hero */
.hero { padding: 64px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.eyebrow { color: var(--accent); font-weight: 600; font-size: .9rem; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 8px; }
.hero h1 { font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1.15; margin: 0 0 16px; }
.hero p.lead { color: var(--muted); font-size: 1.1rem; margin: 0 0 24px; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .meta { color: var(--muted); font-size: .88rem; margin-top: 14px; }
.shot { border-radius: 10px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--surface); }

/* sections */
section.block { padding: 48px 0; }
section.block h2 { font-size: 1.7rem; margin: 0 0 8px; }
section.block p.sub { color: var(--muted); margin: 0 0 28px; max-width: 760px; }

.grid { display: grid; gap: 18px; }
.grid.cards { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  padding: 20px; box-shadow: var(--shadow);
}
.card h3 { margin: 0 0 8px; font-size: 1.08rem; }
.card p, .card ul { margin: 0; color: var(--muted); font-size: .95rem; }
.card ul { padding-left: 18px; }
.card .ico {
  width: 36px; height: 36px; border-radius: 8px; background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; margin-bottom: 12px;
}
.card .ico svg { width: 20px; height: 20px; }

/* steps */
ol.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; grid-template-columns: repeat(4, 1fr); counter-reset: s; }
ol.steps li {
  counter-increment: s; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 18px;
}
ol.steps li::before {
  content: counter(s); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink); font-weight: 700; margin-bottom: 10px;
}
ol.steps b { display: block; margin-bottom: 4px; }
ol.steps span { color: var(--muted); font-size: .95rem; }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
figure { margin: 0; }
figcaption { color: var(--muted); font-size: .92rem; padding: 10px 2px 0; }

/* download page */
.dl-box {
  display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 24px; box-shadow: var(--shadow);
}
.dl-box h2 { margin: 0 0 4px; }
.dl-box dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; margin: 12px 0 0; color: var(--muted); font-size: .95rem; }
.dl-box dt { font-weight: 600; color: var(--text); }
.dl-box dd { margin: 0; word-break: break-all; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
ol.plain { padding-left: 20px; margin: 0; }
ol.plain li { margin-bottom: 8px; }
.note {
  border-left: 4px solid var(--accent); background: var(--accent-soft); padding: 14px 16px; border-radius: 0 8px 8px 0;
  font-size: .95rem;
}

footer { border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; padding: 24px 0 40px; margin-top: 32px; }
footer .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* responsive */
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .grid.cards { grid-template-columns: repeat(2, 1fr); }
  ol.steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid.cards, ol.steps, .gallery, .two { grid-template-columns: 1fr; }
  .dl-box { grid-template-columns: 1fr; }
  nav { margin-left: 0; }
  .hero { padding-top: 36px; }
}

/* v1.6 2026-10-28 - were inline styles in download.html */
.mt-14 { margin-top: 14px; }
.mt-28 { margin-top: 28px; }
.disclaimer { color: var(--muted); font-size: .9rem; margin-top: 24px; }

/* v2.1 2026-11-19 - Manual and tutorial links on the download page */
.grid.cards.docs { grid-template-columns: repeat(3, 1fr); }
.card .links { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 10px; }
.card .links a { font-weight: 600; }
@media (max-width: 900px) { .grid.cards.docs { grid-template-columns: 1fr; } }
