/* The website of Fleetscope (FLEET-527), in the colours of the app ("Signal Ink"). Built pages come from build.mjs. */
:root {
  --bg: #f6f7f9; --surface: #ffffff; --ink: #0b1020; --ink-2: #141a2e; --text: #14171c; --soft: #3a424f; --muted: #5b6472;
  --border: #e3e6eb; --accent: #2b50d8; --accent-2: #1e3ba8; --accent-soft: #eaf0ff; --code: #0d1222; --code-text: #d8deea;
  --mimir: #e8590c; --loki: #2f9e44; --radius: 12px; --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 4px 16px rgba(16, 24, 40, .04);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0b0e16; --surface: #121723; --text: #e7eaf0; --soft: #c3c9d4; --muted: #8b93a3; --border: #232a3a;
    --accent: #6d8cf0; --accent-2: #8fa8ff; --accent-soft: #1a2442; --shadow: none; color-scheme: dark; }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 Geist, system-ui, -apple-system, sans-serif; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-2); }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { text-wrap: balance; letter-spacing: -0.02em; line-height: 1.15; margin: 0; }
h1 { font-size: clamp(34px, 6vw, 60px); }
h2 { font-size: clamp(26px, 3.4vw, 38px); }
h3 { font-size: 18px; letter-spacing: -0.01em; }
code, pre { font-family: "Geist Mono", ui-monospace, monospace; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 16px; }
.wrap { max-width: 1160px; margin: 0 auto; padding-inline: 24px; }
.muted { color: var(--muted); }
.eyebrow { margin: 0 0 12px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.lead { font-size: 19px; color: var(--soft); max-width: 66ch; margin: 18px 0 0; }

/* Bar and footer */
.bar { background: var(--ink); position: sticky; top: 0; z-index: 5; }
.bar-in { max-width: 1160px; margin: 0 auto; padding: 14px 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 18px; }
.brand:hover { color: #fff; }
.bar-links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px; }
.bar-links a:not(.btn) { color: #c4cbd8; font-size: 15px; }
.bar-links a:not(.btn):hover, .bar-links a[aria-current="page"] { color: #fff; }
.foot { background: var(--ink); color: #aab2c2; margin-top: 96px; }
.foot-in { max-width: 1160px; margin: 0 auto; padding: 40px 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.foot-brand p { margin: 10px 0 0; font-size: 14px; max-width: 40ch; }
.foot-links { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: flex-start; }
.foot-links a { color: #c4cbd8; font-size: 15px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 20px; border-radius: 10px; background: var(--accent);
  color: #fff; font-weight: 600; font-size: 15px; border: 1px solid transparent; }
.btn:hover { color: #fff; background: var(--accent-2); }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 14px; }
.btn-ghost { background: transparent; border-color: rgba(255, 255, 255, .28); }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); }

/* Home */
.hero { background: radial-gradient(1200px 500px at 70% -10%, #1d2a5c 0%, transparent 60%), var(--ink); color: #fff; padding: 72px 0 0; overflow: hidden; }
.hero .eyebrow { color: #8fb0ff; }
.hero .lead { color: #c4cbd8; }
.hero b { color: #fff; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 48px; }
.shot { display: block; border-radius: var(--radius); border: 1px solid var(--border); box-shadow: 0 20px 60px rgba(11, 16, 32, .18); background: var(--surface); }
.shot-hero { border-color: #2a3350; margin-bottom: -2px; border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.block { padding-top: 88px; }
.block-sm { padding-top: 48px; }
.block > h2 + *, .block-sm > h2 + * { margin-top: 28px; }
.sub { color: var(--soft); font-size: 18px; margin: 12px 0 28px; max-width: 66ch; }
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.steps li { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.steps p, .card p { color: var(--soft); margin: 8px 0 0; }
.step-n { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 700; margin-bottom: 14px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.cards-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-top: 24px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow); }
.card-link { color: inherit; display: flex; flex-direction: column; }
.card-link:hover { border-color: var(--accent); color: inherit; }
.more { margin-top: auto; padding-top: 14px; color: var(--accent); font-weight: 600; font-size: 14px; }
.band { margin-top: 88px; padding-bottom: 8px; background: linear-gradient(var(--surface), var(--bg)); border-top: 1px solid var(--border); }
.band .block { padding-top: 72px; }
.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; margin-top: 24px; }
figure { margin: 0; }
figcaption { color: var(--muted); font-size: 14px; margin-top: 10px; text-align: center; }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 40px; align-items: center; }
.split p { color: var(--soft); }
.ticks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 8px; }
.ticks li::before { content: "✓"; color: var(--loki); font-weight: 700; margin-right: 10px; }

/* Code */
.code-card { background: var(--code); border-radius: var(--radius); overflow: hidden; border: 1px solid #1d2438; min-width: 0; margin: 16px 0; }
.code-head { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px 8px 16px; border-bottom: 1px solid #1d2438;
  color: #8b93a3; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.code-card pre { margin: 0; padding: 16px; overflow-x: auto; color: var(--code-text); font-size: 13.5px; line-height: 1.6; }
.code-foot { margin: 0; padding: 12px 16px; border-top: 1px solid #1d2438; color: #aab2c2; font-size: 14px; }
.code-foot a { color: #8fb0ff; }
.copy { font: inherit; font-size: 12px; text-transform: none; letter-spacing: 0; color: #d8deea; background: #1d2438; border: 0; border-radius: 6px; padding: 4px 10px; cursor: pointer; }
.copy:hover { background: #2a3350; }
.code-sm pre { font-size: 12.5px; }

/* Catalog */
.page-head { padding-top: 64px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th, .table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
.table thead th { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.table tbody tr:last-child > * { border-bottom: 0; }
.table td.num { font-variant-numeric: tabular-nums; text-align: right; }
.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 24px 0 8px; position: sticky; top: 64px; z-index: 3; background: var(--bg); padding: 10px 0; }
.input { flex: 1 1 260px; min-height: 42px; padding: 0 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--text); font: inherit; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { min-height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--soft); font: inherit; font-size: 14px; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.group-h { font-size: 22px; margin: 40px 0 16px; }
.group-h .muted { font-size: 14px; font-weight: 400; letter-spacing: 0; display: block; margin-top: 6px; }
.rules { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 14px; align-items: start; }
.rule { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); min-width: 0; }
.rule p { margin: 6px 0 0; color: var(--soft); font-size: 15px; }
.rule-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.rule-when { font-family: "Geist Mono", ui-monospace, monospace; font-size: 13px !important; color: var(--text) !important; }
.rule details { margin-top: 10px; }
.rule summary { cursor: pointer; font-size: 14px; color: var(--accent); }
.tag { flex: 0 0 auto; font-size: 11.5px; font-weight: 600; padding: 3px 8px; border-radius: 6px; white-space: nowrap; }
.tag-mimir { background: color-mix(in srgb, var(--mimir) 14%, transparent); color: var(--mimir); }
.tag-loki { background: color-mix(in srgb, var(--loki) 14%, transparent); color: var(--loki); }

/* Docs */
.doc { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 48px; padding-top: 56px; }
.doc-nav { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 4px; }
.doc-nav a { color: var(--soft); padding: 6px 10px; border-radius: 8px; font-size: 15px; }
.doc-nav a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.prose { max-width: 820px; min-width: 0; }
.prose h1 { font-size: clamp(32px, 4vw, 44px); margin-bottom: 8px; }
.prose h2 { font-size: 26px; margin: 48px 0 12px; }
.prose h3 { margin: 32px 0 8px; }
.prose p, .prose li { color: var(--soft); }
.prose li { margin: 4px 0; }
.prose :not(pre) > code { font-size: .9em; background: var(--accent-soft); color: var(--text); padding: 1px 6px; border-radius: 5px; overflow-wrap: anywhere; }
.prose .table-wrap { margin: 18px 0; }
.prose pre.mermaid { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; text-align: center; overflow-x: auto; }
@media (max-width: 860px) {
  .doc { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .doc-nav { position: static; flex-direction: row; flex-wrap: wrap; }
  .filters { top: 0; position: static; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
