/* Replicord design system core - shared by the landing page, login and the admin panel.
   Visual language modeled on ramp.com: warm off-white canvas, near-black ink,
   chartreuse accent, tight grotesk headlines (Lausanne -> Inter Tight as the free
   stand-in) + IBM Plex Mono labels. Page-specific styles live in landing.css /
   admin/assets/panel.css, loaded after this file. */

:root {
  --bg: #f4f2ef;
  --bg-alt: #ebe8e3;
  --surface: #ffffff;
  --ink: #17120e;
  --ink-2: #5b554f;
  --ink-3: #8a837c;
  --line: #ddd8d1;
  --dark: #1f1f1d;
  --dark-2: #2b2a27;
  --dark-line: #3a3935;
  --on-dark: #f4f2ef;
  --on-dark-2: #a9a49c;
  --accent: #e4f222;
  --accent-ink: #17120e;
  --radius: 14px;
  --radius-sm: 10px;
  --font: 'Inter Tight', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Consolas, monospace;
  --wrap: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; letter-spacing: -0.03em; }
p { margin: 0; }
code, .mono { font-family: var(--mono); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--ink-3); font-size: 14px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px;
  border-radius: 999px; border: 1.5px solid transparent;
  font: 500 16px/1 var(--font); letter-spacing: -0.01em;
  cursor: pointer; transition: background .15s, color .15s, border-color .15s, transform .15s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-sm { height: 40px; padding: 0 18px; font-size: 15px; }
.btn-dark { background: var(--ink); color: var(--bg); }
.btn-dark:hover { background: #000; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { background: #d6e41a; }
.btn-ghost-dark { background: transparent; color: var(--on-dark); border-color: var(--dark-line); }
.btn-ghost-dark:hover { border-color: var(--on-dark); }

/* Outline drawn around the element on hover, like a marker stroke - starts at
   the bottom centre and travels round to meet itself (path built by drawOutline.js).
   Draws only on the way in; on mouse-out it disappears instantly. */
.draw-outline { position: relative; }
.btn-draw.btn-ghost:hover { border-color: var(--line); }
.btn-draw.btn-ghost-dark:hover { border-color: var(--dark-line); }
/* Hidden until hover: even a fully offset dash leaves a dot where the round line cap starts. */
.draw-outline > svg { position: absolute; overflow: visible; pointer-events: none; opacity: 0; }
.draw-outline:hover > svg, .btn-draw:focus-visible > svg { opacity: 1; }
.draw-outline > svg path {
  fill: none; stroke: var(--ink); stroke-linecap: round;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  transition: none;
}
.btn-ghost-dark.draw-outline > svg path { stroke: var(--on-dark); }
.draw-outline:hover > svg path, .btn-draw:focus-visible > svg path {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset .7s cubic-bezier(.65,0,.35,1);
}
@media (prefers-reduced-motion: reduce) { .draw-outline:hover > svg path { transition: none; } }

/* ---------- brand primitives ---------- */
.logo { display: inline-flex; align-items: center; font-weight: 600; font-size: 22px; letter-spacing: -0.045em; }
.eyebrow {
  font-family: var(--mono); font-size: 13px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-2); margin-bottom: 20px;
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ''; width: 8px; height: 8px; background: var(--accent); border-radius: 2px; box-shadow: 0 0 0 1px rgba(23,18,14,.15); }
.eyebrow-on-dark { color: var(--on-dark-2); }
.badge { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; padding: 4px 8px; border-radius: 6px; }
.badge-live { background: var(--accent); color: var(--accent-ink); }
.badge-soon { background: var(--bg-alt); color: var(--ink-2); }
