/* Klipper hub — MIK 2025 brand system.
   Base grounds: FORGE #000 + PAGE #F4F1EC. One accent per surface: MIK Red. */
:root {
  --forge: #000000;
  --page: #F4F1EC;
  --accent: #EA4619;        /* MIK Red — the single highlight on this surface */
  --ash-700: #2a2724;
  --ash-500: #6b655d;
  --ash-300: #cfc9bf;
  --radius: 14px;
  --font: "Denim Ink", "Inter", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
}

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

body {
  font-family: var(--font);
  background: var(--page);
  color: var(--forge);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.wrap { max-width: 880px; margin: 0 auto; padding: 0 24px; }

/* ── Top bar ── */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 24px; max-width: 880px; margin: 0 auto;
}
.wordmark { font-weight: 700; letter-spacing: -0.02em; font-size: 20px; }
.wordmark .dot { color: var(--accent); }
.whoami { font-size: 13px; color: var(--ash-500); display: flex; gap: 12px; align-items: center; }
.whoami a { color: var(--ash-500); text-decoration: none; border-bottom: 1px solid var(--ash-300); }
.whoami a:hover { color: var(--forge); }

/* ── Hero (FORGE ground) ── */
.hero { background: var(--forge); color: var(--page); padding: 64px 0 72px; }
.hero .wrap { }
.eyebrow { color: var(--accent); font-weight: 600; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }
.hero h1 { font-size: clamp(34px, 6vw, 56px); line-height: 1.04; letter-spacing: -0.03em; margin: 14px 0 18px; font-weight: 700; }
.hero p.lead { font-size: 19px; color: var(--ash-300); max-width: 56ch; }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--accent); color: #fff; text-decoration: none;
  font-weight: 600; font-size: 15px; padding: 13px 22px; border-radius: 999px;
  border: 0; cursor: pointer; transition: transform .08s ease, opacity .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--page); border: 1px solid var(--ash-700); }
.btn.ghost:hover { border-color: var(--page); }
.btn small { font-weight: 400; opacity: .8; }

/* ── Sections ── */
section.block { padding: 56px 0; border-bottom: 1px solid var(--ash-300); }
section.block:last-of-type { border-bottom: 0; }
h2 { font-size: 26px; letter-spacing: -0.02em; margin-bottom: 8px; }
.sub { color: var(--ash-500); margin-bottom: 26px; max-width: 60ch; }

/* tabs/features grid */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
  background: #fff; border: 1px solid var(--ash-300); border-radius: var(--radius);
  padding: 22px;
}
.card .tag { font-size: 12px; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: .06em; }
.card h3 { font-size: 18px; margin: 8px 0 6px; letter-spacing: -0.01em; }
.card p { font-size: 14px; color: var(--ash-700); }

/* steps */
ol.steps { list-style: none; counter-reset: step; display: grid; gap: 16px; }
ol.steps li { counter-increment: step; display: grid; grid-template-columns: 38px 1fr; gap: 14px; align-items: start; }
ol.steps li::before {
  content: counter(step); background: var(--forge); color: var(--page);
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 700; font-size: 14px; margin-top: 2px;
}
ol.steps h4 { font-size: 16px; margin-bottom: 3px; }
ol.steps p { font-size: 14px; color: var(--ash-700); }
code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px;
  background: #fff; border: 1px solid var(--ash-300); border-radius: 7px; padding: 2px 7px; }
pre.cmd { background: var(--forge); color: var(--page); padding: 14px 16px; border-radius: 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; overflow-x: auto; margin-top: 8px; }

.req { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 28px; }
.req div { display: flex; gap: 10px; font-size: 14px; padding: 8px 0; border-bottom: 1px solid var(--ash-300); }
.req b { min-width: 120px; }

.note { background: #fff; border: 1px solid var(--ash-300); border-left: 3px solid var(--accent);
  border-radius: 10px; padding: 14px 16px; font-size: 14px; color: var(--ash-700); margin-top: 18px; }

footer { padding: 40px 0 64px; color: var(--ash-500); font-size: 13px; }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ── Login page ── */
.login-shell { min-height: 100vh; display: grid; place-items: center; background: var(--forge); color: var(--page); text-align: center; padding: 24px; }
.login-card { max-width: 380px; }
.login-card .eyebrow { display: block; }
.login-card h1 { font-size: 34px; letter-spacing: -0.02em; margin: 12px 0 10px; }
.login-card p { color: var(--ash-300); margin-bottom: 26px; }
.gbtn-host { display: flex; justify-content: center; }
.login-err { color: var(--accent); font-size: 14px; margin-top: 16px; min-height: 20px; }

/* status line under hero */
.status-line { display: flex; align-items: center; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.pill { display: inline-block; background: var(--accent); color: #fff; font-size: 12px; font-weight: 600;
  padding: 4px 11px; border-radius: 999px; letter-spacing: .02em; }
.status-note { color: var(--ash-300); font-size: 13px; }

/* sticky in-page nav */
.tocbar { position: sticky; top: 0; z-index: 10; background: var(--page);
  border-bottom: 1px solid var(--ash-300); }
.toc { display: flex; flex-wrap: wrap; gap: 10px 18px; padding: 12px 24px; max-width: 100%; }
.toc a { white-space: nowrap; text-decoration: none; color: var(--ash-500); font-size: 14px; font-weight: 600; }
.toc a:hover { color: var(--forge); }

/* nested bullets inside steps */
ul.bullets { margin: 8px 0 0; padding-left: 18px; }
ul.bullets li { font-size: 14px; color: var(--ash-700); margin-bottom: 5px; }

/* inline "coming soon" tag next to a heading */
.tag-inline { display: inline-block; vertical-align: middle; font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .06em; color: var(--accent);
  border: 1px solid var(--accent); border-radius: 999px; padding: 2px 9px; margin-left: 8px; }

/* troubleshooting list */
dl.faq { display: grid; gap: 0; }
dl.faq dt { font-weight: 600; font-size: 15px; padding: 16px 0 4px; border-top: 1px solid var(--ash-300); }
dl.faq dt:first-child { border-top: 0; }
dl.faq dd { margin: 0 0 12px; font-size: 14px; color: var(--ash-700); }

html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; max-width: 100%; }

@media (max-width: 680px) {
  .cards { grid-template-columns: 1fr; }
  .req { grid-template-columns: 1fr; }
}
