/* FleetCommando User Manual — minimal, fast, mobile-first.
 * Same colour palette as the dashboard so users moving from app →
 * manual feel they're in the same product. Dark theme, subtle gold
 * accents, no client-side JS needed for navigation. */

:root {
  --bg: #0a1e28;
  --bg-2: #0d2833;
  --card: #132f3d;
  --card-hi: #173646;
  --border: #1d3d4f;
  --text: #e8e0d4;
  --muted: #8b9daa;
  --primary: #d4890a;
  --primary-soft: rgba(212, 137, 10, 0.18);
  --accent: #7dd3fc;
  --accent-soft: rgba(125, 211, 252, 0.14);
  --safe: #22c55e;
  --warn: #f59e0b;
  --danger: #ef4444;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, "Inter", sans-serif;
  background: var(--bg);
  background-image:
    radial-gradient(1200px 600px at 80% -10%, rgba(212,137,10,0.08), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(125,211,252,0.06), transparent 60%);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Layout ───────────────────────────────────────────── */

.shell {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 16px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 30, 40, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 10px 16px;
}
.topbar-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
}
.topbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
  letter-spacing: 0.3px;
}
.topbar-brand img {
  height: 32px;
  width: 32px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(212, 137, 10, 0.35));
}
.topbar-brand strong { color: var(--primary); }
.topbar-nav { margin-left: auto; display: flex; gap: 4px; flex-wrap: wrap; }
.topbar-nav a {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
}
.topbar-nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  text-decoration: none;
}
.topbar-nav a.back {
  color: var(--primary);
}

main { padding: 32px 16px 64px; }

@media (max-width: 640px) {
  main { padding: 16px 4px 64px; }
  .topbar-nav { gap: 2px; }
  .topbar-nav a { padding: 4px 8px; font-size: 11px; }
}

/* ── Hero / page heading ──────────────────────────────── */

.hero {
  position: relative;
  padding: 36px 0 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
}
.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--primary);
  margin-bottom: 10px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--primary-soft);
  border: 1px solid rgba(212, 137, 10, 0.3);
}
.hero .eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 8px var(--primary);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}
.hero h1 {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #ffffff 0%, var(--primary) 80%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 16px;
  max-width: 720px;
}

@media (max-width: 640px) {
  .hero h1 { font-size: 26px; }
  .hero { padding: 24px 0 16px; }
  .hero p { font-size: 14px; }
}

/* ── Section / card ───────────────────────────────────── */

section { margin-bottom: 32px; }
section h2 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.3px;
  color: #ffffff;
}
section h2::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 18px;
  background: var(--primary);
  margin-right: 10px;
  vertical-align: -2px;
  border-radius: 2px;
}
section h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  margin: 18px 0 6px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
section p { margin-bottom: 8px; color: var(--text); }
section ul, section ol { margin: 8px 0 8px 22px; }
section li { margin-bottom: 4px; }
section ul li::marker { color: var(--primary); }

.card {
  background: linear-gradient(180deg, var(--card) 0%, rgba(13,40,51,0.6) 100%);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 16px;
  transition: border-color 0.2s, transform 0.2s;
}
.card:hover { border-color: rgba(212, 137, 10, 0.35); }
.card-title {
  font-weight: 700;
  font-size: 14px;
  color: var(--primary);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── TOC grid for the index ───────────────────────────── */

.toc {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
  margin-top: 20px;
}
@media (min-width: 640px) { .toc { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .toc { grid-template-columns: 1fr 1fr 1fr; } }

.toc a {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--text);
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}
.toc a::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--primary);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.2s;
}
.toc a:hover {
  border-color: rgba(212, 137, 10, 0.5);
  transform: translateY(-3px);
  text-decoration: none;
  background: var(--card-hi);
  box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.4);
}
.toc a:hover::before { transform: scaleY(1); }

.toc .toc-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 16px;
  margin-bottom: 4px;
  border: 1px solid rgba(212, 137, 10, 0.25);
}
.toc .toc-title {
  font-weight: 700;
  font-size: 15px;
  color: #ffffff;
}
.toc .toc-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
}
.toc .toc-arrow {
  margin-top: auto;
  font-size: 12px;
  color: var(--primary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ── Callouts ─────────────────────────────────────────── */

.callout {
  position: relative;
  padding: 12px 14px 12px 38px;
  border-radius: 10px;
  border-left: 3px solid var(--primary);
  background: var(--primary-soft);
  margin: 14px 0;
  font-size: 14px;
  color: var(--text);
}
.callout::before {
  content: '✦';
  position: absolute;
  left: 12px;
  top: 12px;
  color: var(--primary);
  font-size: 14px;
}
.callout.tip { border-left-color: var(--accent); background: var(--accent-soft); }
.callout.tip::before { content: '💡'; color: var(--accent); }
.callout.warn { border-left-color: var(--warn); background: rgba(245, 158, 11, 0.10); }
.callout.warn::before { content: '⚠'; color: var(--warn); }
.callout.danger { border-left-color: var(--danger); background: rgba(239, 68, 68, 0.10); }
.callout.danger::before { content: '⛔'; color: var(--danger); }
.callout strong { color: #ffffff; }

/* ── Steps ────────────────────────────────────────────── */

ol.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}
ol.steps li {
  position: relative;
  padding: 12px 14px 12px 50px;
  margin-bottom: 10px;
  background: rgba(255, 255, 255, 0.025);
  border-radius: 12px;
  border: 1px solid var(--border);
  counter-increment: step;
  transition: border-color 0.15s;
}
ol.steps li:hover { border-color: rgba(212, 137, 10, 0.3); }
ol.steps li::before {
  content: counter(step);
  position: absolute;
  left: 12px;
  top: 11px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #b97107);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 12px;
  box-shadow: 0 4px 12px -2px rgba(212, 137, 10, 0.4);
}

/* ── Inline code ──────────────────────────────────────── */

code, em {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.92em;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(125, 211, 252, 0.12);
  color: var(--accent);
  font-style: normal;
}

/* ── Footer ───────────────────────────────────────────── */

.footer {
  margin-top: 56px;
  border-top: 1px solid var(--border);
  background:
    linear-gradient(180deg, transparent 0%, rgba(13, 40, 51, 0.6) 100%);
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 36px 16px 24px;
  display: grid;
  gap: 28px;
  grid-template-columns: 1.5fr repeat(3, 1fr);
}
@media (max-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 24px 20px;
    padding: 28px 16px 20px;
  }
}
@media (max-width: 480px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 16px;
  color: var(--text);
  letter-spacing: 0.2px;
}
.footer-brand img {
  height: 30px;
  width: 30px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(212, 137, 10, 0.35));
}
.footer-brand strong { color: var(--primary); }
.footer-tagline {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  max-width: 300px;
}

.footer-heading {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: var(--primary);
  margin-bottom: 4px;
}
.footer-col a {
  font-size: 13px;
  color: var(--muted);
  padding: 2px 0;
  transition: color 0.15s, transform 0.15s;
  display: inline-block;
  width: fit-content;
}
.footer-col a:hover {
  color: var(--text);
  text-decoration: none;
  transform: translateX(3px);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 16px 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 11px;
  color: var(--muted);
  align-items: center;
  justify-content: space-between;
}
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  align-items: center;
}
.footer-legal a {
  color: var(--muted);
  transition: color 0.15s;
}
.footer-legal a:hover {
  color: var(--accent);
  text-decoration: none;
}
