/* ============================================================
   Visitor Management — landing & docs styles
   Neutral slate palette with a single swappable accent.
   Change --accent to match your company brand.
   ============================================================ */
:root {
  --bg: #f8fafc;
  --bg-alt: #f1f5f9;
  --surface: #ffffff;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --muted: #64748b;
  --ink: #0f172a;
  --ink-soft: #334155;
  --accent: #4f46e5;        /* swap to your brand colour */
  --accent-soft: #eef2ff;
  --accent-ink: #ffffff;
  --ok: #15803d;
  --ok-soft: #dcfce7;
  --warn: #b45309;
  --warn-soft: #fef3c7;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(15,23,42,.06);
  --shadow: 0 4px 16px rgba(15,23,42,.08);
  --shadow-lg: 0 24px 60px rgba(15,23,42,.14);
  --maxw: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section.tight { padding: 56px 0; }
.bg-alt { background: var(--bg-alt); }
.center { text-align: center; }

h1,h2,h3,h4 { line-height: 1.2; margin: 0 0 .5em; color: var(--ink); letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 4.5vw, 3.3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1rem; }
.lead { font-size: 1.18rem; color: var(--ink-soft); }
.muted { color: var(--muted); }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--accent);
  background: var(--accent-soft); padding: 5px 12px; border-radius: 999px; margin-bottom: 16px;
}

/* ---- Nav ---- */
header.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(248,250,252,.85); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--ink); font-size: 1.05rem; }
.brand:hover { text-decoration: none; }
.brand .logo {
  width: 30px; height: 30px; border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), #6366f1);
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 15px;
}
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: var(--ink-soft); font-weight: 600; font-size: .95rem; }
.nav-links a:hover { color: var(--ink); text-decoration: none; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  padding: 11px 20px; border-radius: var(--radius-sm); font-weight: 700; font-size: .95rem;
  border: 1px solid transparent; background: var(--accent); color: var(--accent-ink);
  transition: transform .06s ease, box-shadow .2s ease;
}
.btn:hover { text-decoration: none; box-shadow: var(--shadow); transform: translateY(-1px); }
.btn.secondary { background: var(--surface); color: var(--ink-soft); border-color: var(--border-strong); }
.btn.ghost { background: transparent; color: var(--ink-soft); border-color: var(--border); }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---- Hero ---- */
.hero { padding: 72px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 22px; }
.pill { font-size: .8rem; font-weight: 600; color: var(--ink-soft);
  background: var(--surface); border: 1px solid var(--border); padding: 6px 12px; border-radius: 999px; }

/* ---- Feature grid ---- */
.grid { display: grid; gap: 20px; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.feature {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow-sm);
}
.feature .ico {
  width: 42px; height: 42px; border-radius: 10px; background: var(--accent-soft);
  display: grid; place-items: center; margin-bottom: 14px;
}
.feature h3 { margin-bottom: 6px; }
.feature p { margin: 0; color: var(--muted); font-size: .95rem; }

/* ---- Showcase (mockups) ---- */
.showcase { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.showcase.rev .copy { order: 2; }
.showcase .copy h2 { margin-bottom: 12px; }
.showcase ul { margin: 14px 0 0; padding: 0; list-style: none; }
.showcase li { position: relative; padding-left: 26px; margin-bottom: 8px; color: var(--ink-soft); }
.showcase li::before {
  content: "✓"; position: absolute; left: 0; top: 0; color: var(--accent); font-weight: 800;
}

/* ---- Browser + phone frames ---- */
.frame {
  background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: 14px; box-shadow: var(--shadow-lg); overflow: hidden;
}
.frame .titlebar {
  display: flex; align-items: center; gap: 7px; padding: 11px 14px;
  background: var(--bg-alt); border-bottom: 1px solid var(--border);
}
.dot { width: 11px; height: 11px; border-radius: 50%; background: #cbd5e1; }
.dot.r { background: #f87171; } .dot.y { background: #fbbf24; } .dot.g { background: #34d399; }
.frame .urlbar {
  margin-left: 10px; flex: 1; font-size: .78rem; color: var(--muted);
  background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 4px 10px;
}
.screen { padding: 18px; }

.phone {
  width: 300px; max-width: 100%; margin: 0 auto;
  border: 10px solid #0f172a; border-radius: 38px; background: #0f172a;
  box-shadow: var(--shadow-lg);
}
.phone .notch { height: 22px; display: grid; place-items: center; }
.phone .notch::after { content: ""; width: 90px; height: 6px; border-radius: 4px; background: #1e293b; }
.phone .screen { background: var(--bg); border-radius: 26px; padding: 16px; }

/* ---- Mini UI atoms used inside mockups ---- */
.ui-h { font-weight: 800; font-size: 1.05rem; margin-bottom: 2px; }
.ui-sub { color: var(--muted); font-size: .82rem; margin-bottom: 14px; }
.ui-label { font-size: .72rem; font-weight: 700; color: var(--ink-soft); margin-bottom: 4px; }
.ui-input {
  background: var(--surface); border: 1px solid var(--border); border-radius: 8px;
  padding: 9px 11px; font-size: .82rem; color: var(--ink-soft); margin-bottom: 12px;
}
.ui-btn { background: var(--accent); color: #fff; text-align: center; border-radius: 8px;
  padding: 10px; font-weight: 700; font-size: .85rem; }
.ui-btn.sec { background: var(--surface); color: var(--ink-soft); border: 1px solid var(--border); }
.ui-steps { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.chip { font-size: .66rem; font-weight: 700; padding: 4px 9px; border-radius: 999px;
  background: var(--border); color: var(--ink-soft); }
.chip.on { background: var(--ok-soft); color: var(--ok); }
.chip.warn { background: var(--warn-soft); color: var(--warn); }
.chip.acc { background: var(--accent-soft); color: var(--accent); }
.ui-card { background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  padding: 12px; margin-bottom: 10px; box-shadow: var(--shadow-sm); }
.ui-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tabs { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.tab { font-size: .74rem; font-weight: 700; padding: 6px 11px; border-radius: 8px; color: var(--muted); }
.tab.on { background: var(--accent); color: #fff; }
.tbl { width: 100%; font-size: .76rem; border-collapse: collapse; }
.tbl th { text-align: left; color: var(--muted); font-weight: 600; padding: 6px 8px; border-bottom: 1px solid var(--border); }
.tbl td { padding: 7px 8px; border-bottom: 1px solid var(--border); color: var(--ink-soft); }

/* ---- Steps / journey ---- */
.journey { counter-reset: step; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.jstep { position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px 18px; }
.jstep .n {
  counter-increment: step; width: 34px; height: 34px; border-radius: 9px;
  background: var(--accent); color: #fff; font-weight: 800; display: grid; place-items: center; margin-bottom: 12px;
}
.jstep .n::before { content: counter(step); }
.jstep h4 { margin: 0 0 4px; font-size: 1rem; }
.jstep p { margin: 0; font-size: .87rem; color: var(--muted); }

/* ---- Docs / guide ---- */
.doc-grid { display: grid; grid-template-columns: 240px 1fr; gap: 48px; align-items: start; }
.toc { position: sticky; top: 88px; }
.toc ul { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--border); }
.toc li a { display: block; padding: 6px 0 6px 16px; color: var(--muted); font-size: .9rem; font-weight: 600;
  margin-left: -2px; border-left: 2px solid transparent; }
.toc li a:hover { color: var(--ink); text-decoration: none; }
.toc li a.active {
  color: var(--accent); font-weight: 700;
  border-left-color: var(--accent); background: var(--accent-soft);
}
.toc .premium {
  margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--border);
}
.btn.whatsapp { background: #25d366; color: #063; width: 100%; justify-content: center; }
.btn.whatsapp:hover { background: #1ebe5b; }
.toc .premium .hint { font-size: .78rem; color: var(--muted); margin: 8px 2px 0; }
.prose h2 { margin-top: 8px; padding-top: 8px; }
.prose h3 { margin-top: 32px; }
.prose ol, .prose ul { padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.step-block {
  border: 1px solid var(--border); border-left: 4px solid var(--accent);
  background: var(--surface); border-radius: 10px; padding: 18px 20px; margin: 18px 0;
}
.step-block .k { font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); }
pre {
  background: #0f172a; color: #e2e8f0; border-radius: 10px; padding: 16px 18px;
  overflow-x: auto; font-size: .84rem; line-height: 1.55; margin: 14px 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
pre .c { color: #94a3b8; }
code.inline { background: var(--bg-alt); border: 1px solid var(--border); border-radius: 6px;
  padding: 1px 6px; font-size: .86em; font-family: ui-monospace, Menlo, Consolas, monospace; color: var(--ink-soft); }
.note { background: var(--accent-soft); border: 1px solid #c7d2fe; border-radius: 10px; padding: 14px 16px; margin: 16px 0; font-size: .92rem; color: var(--ink-soft); }
.note.warn { background: var(--warn-soft); border-color: #fde68a; }
.callout-ok { background: var(--ok-soft); border: 1px solid #bbf7d0; border-radius: 10px; padding: 14px 16px; font-size: .92rem; }

/* ---- Gate pass mockup ---- */
.pass { border-radius: 14px; overflow: hidden; border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow); }
.pass .top { background: linear-gradient(135deg, var(--accent), #6366f1); color: #fff; padding: 14px 16px; font-weight: 800; letter-spacing: .04em; display: flex; justify-content: space-between; align-items: center; }
.pass .body { padding: 16px; display: flex; gap: 14px; }
.pass .photo { width: 74px; height: 74px; border-radius: 10px; background: var(--bg-alt); display: grid; place-items: center; color: var(--muted); font-size: 26px; flex: none; }
.pass .qr { width: 74px; height: 74px; margin-left: auto; flex: none; }
.pass .meta { font-size: .82rem; color: var(--ink-soft); }
.pass .meta b { color: var(--ink); }

/* ---- Stat tiles + chart ---- */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 14px; }
.tile { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 12px; }
.tile .v { font-size: 1.5rem; font-weight: 800; }
.tile .l { font-size: .72rem; color: var(--muted); }
.bars { display: flex; align-items: flex-end; gap: 10px; height: 120px; padding: 10px 4px 0; }
.bar { flex: 1; background: var(--accent); border-radius: 6px 6px 0 0; opacity: .85; }

/* ---- Footer ---- */
footer { background: #0f172a; color: #cbd5e1; padding: 48px 0 32px; }
footer a { color: #cbd5e1; }
footer .cols { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 32px; }
footer h4 { color: #fff; font-size: .95rem; }
footer .muted { color: #64748b; }
.hr { height: 1px; background: #1e293b; margin: 28px 0; border: 0; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .hero-grid, .showcase, .doc-grid { grid-template-columns: 1fr; }
  .showcase.rev .copy { order: 0; }
  .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr 1fr; }
  .journey { grid-template-columns: 1fr 1fr; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .toc { display: none; }
  footer .cols { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .grid.cols-3, .grid.cols-4, .journey, .tiles { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
}
