/* Neku marketing site (neku.sh). Same Foundations tokens as the app, one size
   up (canvas nCopy: hero 72/76, section 40/46, lede 19/30). Static HTML, no
   build step. Copy rule: no invented numbers/quotes/logos/dates — bracketed
   placeholders only ([PRICE], [CUSTOMER QUOTE], [DATE], [SECURITY EMAIL]). */
:root {
  --ink-0: #0a0a0b; --ink-1: #111113; --ink-2: #16161a; --ink-3: #1d1d22;
  --line: #26262b; --line-2: #34343b;
  --tx-1: #eeeae3; --tx-2: #b4aea5; --tx-3: #8c867d;
  --ox-500: #b31217; --ox-300: #f0625a;
  --au-800: #3a2e12; --au-700: #8c6f2c; --au-500: #c8a24b; --au-300: #e6c260; --au-100: #f4e3b2;
  --ph-500: #4fd08a; --ph-300: #7fe0a8;
  --font-ui: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --maxw: 1120px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--ink-0); color: var(--tx-1);
  font-family: var(--font-ui); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--au-300); text-decoration: none; }
a:hover { color: var(--au-100); }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; font-weight: 600; line-height: 1.06; }
p { margin: 0; }
code, .mono { font-family: var(--font-mono); }
:focus-visible { outline: 2px solid var(--au-300); outline-offset: 2px; border-radius: 4px; }
::selection { background: rgba(200, 162, 75, 0.28); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.eyebrow { font: 500 12px/1 var(--font-mono); letter-spacing: 0.14em; color: var(--au-500); text-transform: uppercase; }
.lede { font-size: 19px; line-height: 30px; color: var(--tx-2); max-width: 60ch; }
.muted { color: var(--tx-3); }
.center { text-align: center; }

/* textures */
.gridtex { background-image:
  linear-gradient(rgba(200,162,75,0.05) 1px, transparent 1px),
  linear-gradient(90deg, rgba(200,162,75,0.05) 1px, transparent 1px);
  background-size: 32px 32px; }
.scan { background-image: repeating-linear-gradient(0deg, rgba(255,255,255,0.02) 0 1px, transparent 1px 3px); }

/* type scale, one size up from the app */
.h-hero { font-size: 72px; line-height: 76px; }
.h-section { font-size: 40px; line-height: 46px; }
.h-sub { font-size: 24px; line-height: 30px; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 20px; border-radius: 10px;
  font: 500 15px/1 var(--font-ui); cursor: pointer; border: 1px solid transparent; white-space: nowrap; }
.btn-gold { background: var(--au-500); color: var(--ink-0); font-weight: 600; }
.btn-gold:hover { background: var(--au-300); color: var(--ink-0); }
.btn-ghost { background: transparent; color: var(--tx-1); border-color: var(--line-2); }
.btn-ghost:hover { color: var(--tx-1); border-color: var(--tx-3); }
.btn-sm { height: 38px; padding: 0 14px; font-size: 14px; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(10,10,11,0.82);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: 0.28em; font-size: 15px; color: var(--tx-1); }
.brand .leaf { width: 26px; height: 26px; color: var(--au-300); }
.nav-links { display: flex; align-items: center; gap: 22px; margin-left: 12px; }
.nav-links a { color: var(--tx-2); font-size: 15px; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--tx-1); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; background: transparent; border: 1px solid var(--line-2); color: var(--tx-1); border-radius: 8px; width: 40px; height: 40px; cursor: pointer; }

/* sections */
section { padding: 88px 0; border-top: 1px solid var(--line); }
section:first-of-type { border-top: none; }
.section-head { max-width: 640px; margin-bottom: 40px; display: flex; flex-direction: column; gap: 14px; }

/* grid of cards */
.grid { display: grid; gap: 18px; }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--ink-1); border: 1px solid var(--line); border-radius: 14px; padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.card h3 { font-size: 19px; }
.card p { color: var(--tx-2); font-size: 15px; }
.card .n { font: 600 12px/1 var(--font-mono); color: var(--au-300); letter-spacing: 0.1em; }

/* hero */
.hero { padding: 96px 0 72px; }
.hero .row { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.hero-cta { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.hero-note { margin-top: 18px; font: 400 13px/1.5 var(--font-mono); color: var(--tx-3); }

/* device / app mock frame */
.mock { border: 1px solid var(--line-2); border-radius: 14px; background: var(--ink-1); overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,0.5); }
.mock-bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--line); font: 400 12px/1 var(--font-mono); color: var(--tx-3); }
.mock-bar .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); }
.mock-body { padding: 16px; font: 400 13px/1.5 var(--font-mono); color: var(--tx-2); }
.held { border: 1px solid var(--au-700); background: #140c0d; border-radius: 10px; padding: 14px; box-shadow: inset 0 1px 0 rgba(230,194,96,0.18); }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: 4px; font: 600 11px/1 var(--font-mono); letter-spacing: 0.06em; }
.chip-needs { color: var(--au-300); border: 1px solid var(--au-700); }

/* command block */
.cmd { display: flex; align-items: center; gap: 8px; background: var(--ink-0); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; font: 400 13px/1.4 var(--font-mono); color: var(--tx-1); overflow-x: auto; }
.cmd .p { color: var(--au-300); }

/* pricing */
.price { font: 600 34px/1 var(--font-ui); }
.price small { font: 400 14px/1 var(--font-mono); color: var(--tx-3); }
.feat { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--tx-2); }
.feat li::before { content: "✓ "; color: var(--ph-300); }
.tier-pop { border-color: var(--au-700); box-shadow: inset 0 1px 0 rgba(230,194,96,0.18); }

/* faq */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-size: 18px; font-weight: 500; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--tx-3); }
.faq details[open] summary::after { content: "–"; }
.faq p { margin-top: 12px; color: var(--tx-2); max-width: 70ch; }

/* final CTA */
.cta { text-align: center; }
.cta .btns { display: flex; gap: 14px; justify-content: center; margin-top: 24px; flex-wrap: wrap; }

/* footer */
.site-footer { border-top: 1px solid var(--line); background: var(--ink-1); padding: 56px 0 40px; }
.foot-cols { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; }
.foot-col h4 { font: 500 11px/1 var(--font-mono); letter-spacing: 0.14em; color: var(--tx-3); text-transform: uppercase; margin: 0 0 14px; }
.foot-col a, .foot-col span { display: block; color: var(--tx-2); font-size: 14px; margin-bottom: 8px; }
.foot-col span { color: var(--tx-3); }
.foot-bottom { display: flex; align-items: center; gap: 14px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font: 400 12px/1 var(--font-mono); color: var(--tx-3); }
.foot-bottom .brand { font-size: 13px; }

/* misc rows */
.logos { display: flex; gap: 28px; flex-wrap: wrap; align-items: center; font: 500 15px/1 var(--font-mono); color: var(--tx-2); }
.step-num { font: 600 13px/1 var(--font-mono); color: var(--au-300); letter-spacing: 0.1em; }
.quote { font-size: 26px; line-height: 1.35; color: var(--tx-1); max-width: 22ch; }

/* responsive */
@media (max-width: 900px) {
  .hero .row, .g-4, .g-3 { grid-template-columns: 1fr; }
  .g-2 { grid-template-columns: 1fr; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .h-hero { font-size: 48px; line-height: 52px; }
  .h-section { font-size: 30px; line-height: 36px; }
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav-links.open { display: flex; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; gap: 4px; background: var(--ink-1); border-bottom: 1px solid var(--line); padding: 12px 24px; margin: 0; }
  section { padding: 64px 0; }
}
@media (max-width: 560px) {
  .foot-cols { grid-template-columns: 1fr; }
  .h-hero { font-size: 38px; line-height: 42px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ============================================================
   Interactive layer + icon system (GitLab #20, increment 1)
   Vanilla, no build step. All behaviour is progressive
   enhancement: every control renders and reads without JS.
   ============================================================ */

/* icon system — inline sprite referenced with <use>; decorative
   by default (aria-hidden on each <svg class="ico">). Sized in em so
   an icon inherits its context's font-size and currentColor. */
/* [hidden] must beat the flex/grid display rules set on cards and panes, so
   JS can hide them by toggling the attribute. */
.os-pane[hidden], .card[hidden], article[hidden], .doc-entry[hidden], [hidden] { display: none !important; }

.ico { width: 1em; height: 1em; display: inline-block; vertical-align: -0.14em; flex-shrink: 0; }
.ico-sm { width: 0.9em; height: 0.9em; }
.ico-lg { width: 1.4em; height: 1.4em; }
.icon-badge { width: 36px; height: 36px; flex-shrink: 0; border-radius: 8px; background: var(--ink-3);
  display: inline-flex; align-items: center; justify-content: center; color: var(--au-300); font-size: 20px; }

/* OS install tabs (download.html) */
.os-panel { padding: 0; overflow: hidden; }
.os-tabs { display: flex; align-items: stretch; gap: 0; padding: 0 8px; min-height: 48px;
  border-bottom: 1px solid var(--line); background: var(--ink-1); flex-wrap: wrap; }
.os-tab { appearance: none; background: transparent; border: none; border-bottom: 2px solid transparent;
  color: var(--tx-2); font: 500 14px/1 var(--font-ui); padding: 0 14px; min-height: 44px; cursor: pointer; }
.os-tab:hover { color: var(--tx-1); }
.os-tab[aria-selected="true"] { color: var(--tx-1); font-weight: 600; border-bottom-color: var(--au-500); }
.os-arch { margin-left: auto; align-self: center; font: 400 11px/1 var(--font-mono); color: var(--tx-3); padding: 0 6px; }
.os-body { padding: 20px; }
.os-pane { display: flex; flex-direction: column; gap: 16px; }
.os-pane + .os-pane { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
/* when JS is active the panel hides the per-pane OS labels and the
   inactive panes; without JS none of this applies, so all panes show. */
.os-panel[data-enhanced] .os-pane-os { display: none; }
.os-panel[data-enhanced] .os-pane + .os-pane { margin-top: 0; padding-top: 0; border-top: none; }
.os-pane-os { font: 600 12px/1 var(--font-mono); letter-spacing: 0.1em; color: var(--au-300); text-transform: uppercase; }
.os-step-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.os-step-head .rule { flex: 1; height: 1px; background: var(--line); }

/* copy-to-clipboard button that sits inside a .cmd row */
.cmd { position: relative; }
.cmd.has-copy { padding-right: 44px; overflow: hidden; white-space: nowrap; }
.copy-btn { position: absolute; top: 50%; right: 6px; transform: translateY(-50%);
  width: 32px; height: 32px; border-radius: 6px; border: 1px solid transparent; background: transparent;
  color: var(--tx-3); display: inline-flex; align-items: center; justify-content: center;
  font-size: 15px; cursor: pointer; }
.copy-btn:hover { color: var(--tx-1); border-color: var(--line-2); }
.copy-btn.copied { color: var(--ph-300); }
.copy-live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* billing toggle (pricing.html) */
.bill-toggle { display: inline-flex; align-items: center; gap: 12px; margin-top: 20px; }
.bill-toggle .lbl { font-size: 14px; color: var(--tx-2); }
.bill-toggle .lbl.on { color: var(--tx-1); font-weight: 500; }
.switch { position: relative; width: 56px; height: 30px; border-radius: 999px; padding: 0;
  border: 1px solid var(--line-2); background: var(--ink-2); cursor: pointer; }
.switch .knob { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--tx-2); transition: transform 0.16s ease, background 0.16s ease; }
.switch[aria-checked="true"] { border-color: var(--au-700); background: var(--au-800); }
.switch[aria-checked="true"] .knob { transform: translateX(26px); background: var(--au-300); }
.bill-save { font: 500 12px/1 var(--font-mono); color: var(--ph-300); }

/* docs search + filtering (docs.html) */
.doc-search-wrap { position: relative; }
.doc-search-wrap .ico { position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  color: var(--tx-3); font-size: 18px; pointer-events: none; }
.doc-search-wrap input { padding-left: 44px !important; }
.doc-search-wrap kbd { position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  font: 500 11px/1 var(--font-mono); color: var(--tx-3); border: 1px solid var(--line-2);
  border-radius: 5px; padding: 4px 6px; background: var(--ink-1); }
.doc-noresults { margin-top: 20px; color: var(--tx-3); }

/* filter chips (changelog.html) — built on the existing .chip look */
.filter-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 24px; }
.chip-toggle { appearance: none; cursor: pointer; height: 30px; padding: 0 12px; border-radius: 6px;
  display: inline-flex; align-items: center; gap: 6px; font: 600 11px/1 var(--font-mono);
  letter-spacing: 0.06em; background: transparent; border: 1px solid var(--line-2); color: var(--tx-2); }
.chip-toggle:hover { color: var(--tx-1); border-color: var(--tx-3); }
.chip-toggle[aria-pressed="true"] { color: var(--au-100); border-color: var(--au-700); background: var(--au-800); }
.chip-toggle .ico { font-size: 13px; }

/* small state glyph colours reused across pages */
.g-run { color: var(--tx-3); }
.g-need { color: var(--au-300); }
.g-deny { color: var(--ox-300); }
.g-ok { color: var(--ph-300); }

@media (prefers-reduced-motion: reduce) {
  .switch .knob { transition: none; }
  .spin-ico { animation: none; }
}
@keyframes ico-spin { to { transform: rotate(360deg); } }
.spin-ico { transform-origin: 50% 50%; animation: ico-spin 1.4s linear infinite; }

/* ============================================================
   "What crosses the wire" flow diagram + icon polish
   (GitLab #20, increment 2). Vanilla, no build step. The
   diagram is one inline SVG (role="img" + <title>/<desc>); it
   scales to its container and never overflows a 360px viewport.
   All meaning also lives in the caption + legend text below it,
   so it reads with images or SVG support absent.
   ============================================================ */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.wire { margin: 0; }
.wire-svg { display: block; width: 100%; height: auto; max-width: 480px; margin: 0 auto; }
.wire-svg text { font-family: var(--font-mono); }
.wire-cap { margin: 22px auto 0; max-width: 600px; text-align: center; color: var(--tx-2); font-size: 15px; line-height: 24px; }
.wire-legend {
  list-style: none; margin: 18px auto 0; padding: 0; max-width: 720px;
  display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: center;
  font: 400 12px/1.5 var(--font-mono); color: var(--tx-3);
}
.wire-legend li { display: flex; align-items: center; gap: 9px; }
.wire-legend .sw { width: 24px; border-top: 2px solid currentColor; flex-shrink: 0; }
.wire-legend .sw-dash { border-top-style: dashed; }

/* honest trust points that double as the diagram's text fallback */
.trust-points { list-style: none; margin: 26px auto 0; padding: 0; max-width: 660px; display: grid; gap: 14px; }
.trust-points li { display: flex; gap: 12px; align-items: flex-start; color: var(--tx-2); font-size: 15px; line-height: 24px; }
.trust-points .ico { color: var(--au-300); font-size: 20px; margin-top: 2px; flex-shrink: 0; }
