/* =====================================================================
   Meterless — colors_and_type.css
   ---------------------------------------------------------------------
   Drop this into any HTML file and you get the full Meterless token
   system plus the semantic classes (.display, .section-h, .btn-dark,
   .pill, .mono-label, etc) used across the marketing site.

   Geist and Geist Mono are VENDORED (css/fonts/), not pulled from Google
   Fonts. The remote @import broke twice over: the app's CSP does not allow
   fonts.googleapis.com in style-src, so the webview refused it outright,
   and a desktop app that must work offline cannot depend on a CDN — nor
   should a process holding API keys announce every launch to one.
   ===================================================================== */

@import url('fonts/geist.css');
/* The Nightshift type stack (R4 §3.2), vendored the same way. */
@import url('fonts/nightshift.css');

:root {
  /* ---------- Achromatic core ---------- */
  --black: #171717;
  --true-black: #000000;
  --white: #ffffff;

  --gray-900: #171717;
  --gray-800: #262626;
  --gray-700: #333333;
  --gray-600: #4d4d4d;
  --gray-500: #666666;
  --gray-400: #808080;
  --gray-300: #a3a3a3;
  --gray-200: #d1d1d1;
  --gray-100: #ebebeb;
  --gray-50:  #fafafa;

  /* ---------- Workflow accents (Develop / Preview / Ship) ----------
     Used contextually, never decoratively.                           */
  --develop: #0a72ef;  /* primary accent — links, focus, "develop" */
  --preview: #de1d8d;  /* preview / staging moments */
  --ship:    #ff5b4f;  /* ship / destructive moments */

  /* ---------- Console / code accents ---------- */
  --console-blue:   #0070f3;
  --console-purple: #7928ca;
  --console-pink:   #eb367f;
  --console-green:  #2bbc8a;

  /* ---------- Extended UI accents (used sparingly) ---------- */
  --amber:  #f59e0b;
  --violet: #7c3aed;
  --cyan:   #06b6d4;

  /* ---------- Interactive ---------- */
  --link:       #0072f5;
  --focus:      hsla(212, 100%, 48%, 1);
  --badge-bg:   #ebf5ff;
  --badge-text: #0068d6;

  /* ---------- Semantic foreground / background ---------- */
  --fg-primary:   var(--gray-900);
  --fg-secondary: var(--gray-600);
  --fg-muted:     var(--gray-500);
  --fg-disabled:  var(--gray-400);
  --fg-on-dark:   var(--white);

  --bg-primary:   var(--white);
  --bg-alt:       var(--gray-50);
  --bg-dark:      var(--gray-900);
  --bg-dark-alt:  var(--true-black);

  --border-subtle: var(--gray-100);
  --border-strong: var(--gray-200);

  /* ---------- Shadows ---------- */
  --ring:        rgba(0, 0, 0, 0.08) 0 0 0 1px;
  --ring-strong: rgba(0, 0, 0, 0.16) 0 0 0 1px;
  --ring-light:  rgb(235, 235, 235) 0 0 0 1px;

  --card-shadow:
    rgba(0, 0, 0, 0.08) 0 0 0 1px,
    rgba(0, 0, 0, 0.04) 0 2px 2px,
    rgba(0, 0, 0, 0.04) 0 8px 8px -8px;

  --card-shadow-hover:
    rgba(0, 0, 0, 0.12) 0 0 0 1px,
    rgba(0, 0, 0, 0.06) 0 4px 4px,
    rgba(0, 0, 0, 0.06) 0 16px 24px -8px;

  --shadow-accent: 0 4px 20px rgba(10, 114, 239, 0.3);

  /* ---------- Radii ---------- */
  --radius-xs:  4px;
  --radius-sm:  6px;
  --radius:     8px;
  --radius-md: 10px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 20px;
  --radius-pill: 9999px;

  /* ---------- Spacing scale (8-point) ---------- */
  --space-1:  4px;
  --space-2:  8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 28px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-14: 56px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
  --space-30: 120px;

  /* ---------- Motion ---------- */
  --dur-fast: 150ms;
  --dur:      200ms;
  --dur-slow: 350ms;
  --ease:        cubic-bezier(.16, 1, .3, 1);
  --ease-linear: linear;

  /* ---------- Fonts ----------
     Nightshift type stack (R4 §3.2): Inter Tight body, JetBrains Mono
     for every measured value. Geist stays as the vendored fallback. */
  --font:
    'Inter Tight', 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial,
    'Apple Color Emoji', 'Segoe UI Emoji', sans-serif;
  --mono:
    'JetBrains Mono', 'Geist Mono', ui-monospace, SFMono-Regular, 'Roboto Mono', Menlo,
    Monaco, 'Liberation Mono', 'Courier New', monospace;

  /* ---------- Layout ---------- */
  --container: 1200px;
  --container-wide: 1320px;
  --container-pad: 32px;
  --section-pad: 120px;
  --section-pad-tight: 80px;
}

/* =========================================================
   BASE
   ========================================================= */
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-feature-settings: "liga";
  font-size: 16px;
  line-height: 1.5;
  color: var(--fg-primary);
  background: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; transition: color var(--dur-fast) ease, opacity var(--dur-fast) ease; }
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; font-feature-settings: "liga"; cursor: pointer; }
input { font-family: inherit; }

*:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: var(--radius-xs);
}

::selection { background: hsla(0, 0%, 90%, 1); color: var(--gray-900); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* =========================================================
   TYPOGRAPHY — raw scale
   ---------------------------------------------------------
   Fixed values used across the landing page (desktop).
   Product pages often wrap in clamp() for fluidity.
   ========================================================= */

.display {
  font-family: var(--font);
  font-feature-settings: "liga";
  font-size: 72px;
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -3.6px;
  color: var(--fg-primary);
}

.display-fluid {
  font-size: clamp(44px, 5.8vw, 80px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.section-h {
  font-size: 48px;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -2.4px;
  color: var(--fg-primary);
}

.section-h-fluid {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

h1, .h1 { font-size: 56px; font-weight: 600; line-height: 1.05; letter-spacing: -2.24px; color: var(--fg-primary); }
h2, .h2 { font-size: 40px; font-weight: 600; line-height: 1.08; letter-spacing: -1.6px; color: var(--fg-primary); }
h3, .h3 { font-size: 28px; font-weight: 600; line-height: 1.2;  letter-spacing: -1.12px; color: var(--fg-primary); }
h4, .h4 { font-size: 22px; font-weight: 600; line-height: 1.25; letter-spacing: -0.88px; color: var(--fg-primary); }
h5, .h5 { font-size: 16px; font-weight: 600; line-height: 1.3;  letter-spacing: -0.32px; color: var(--fg-primary); }

.card-t {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.96px;
  color: var(--fg-primary);
}

.lead {
  font-size: 20px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--fg-secondary);
  letter-spacing: -0.4px;
}

p, .body {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--fg-primary);
}

.small { font-size: 14px; line-height: 1.5; color: var(--fg-secondary); }
.tiny  { font-size: 12px; line-height: 1.4; color: var(--fg-muted); }

.mono, code, kbd, samp, pre {
  font-family: var(--mono);
  font-feature-settings: "liga", "tnum";
}

.mono-label {
  font-family: var(--mono);
  font-feature-settings: "liga", "tnum";
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0;
  color: var(--fg-muted);
}

@media (max-width: 880px) {
  .display   { font-size: 44px; letter-spacing: -2.2px; line-height: 1.05; }
  .section-h { font-size: 34px; letter-spacing: -1.7px; }
  .card-t    { font-size: 22px; letter-spacing: -0.88px; }
  .lead      { font-size: 17px; letter-spacing: -0.34px; }
  h1,.h1     { font-size: 40px; letter-spacing: -1.6px; }
  h2,.h2     { font-size: 32px; letter-spacing: -1.28px; }
  h3,.h3     { font-size: 24px; letter-spacing: -0.96px; }
}

/* =========================================================
   BUTTONS
   ========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--font);
  font-feature-settings: "liga";
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  height: 40px;
  padding: 0 16px;
  border-radius: var(--radius);
  cursor: pointer;
  border: none;
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--dur-fast) ease,
              color var(--dur-fast) ease,
              box-shadow var(--dur-fast) ease,
              transform var(--dur-fast) ease;
}

.btn-dark  { background: var(--gray-900); color: var(--white); }
.btn-dark:hover  { background: var(--true-black); color: var(--white); transform: translateY(-1px); }

.btn-ghost { background: var(--white); color: var(--gray-900); box-shadow: var(--ring-light); }
.btn-ghost:hover { background: var(--gray-50); box-shadow: var(--ring-strong); }

.btn-accent { background: var(--develop); color: var(--white); }
.btn-accent:hover { background: #0862d0; transform: translateY(-1px); box-shadow: var(--shadow-accent); }

.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; border-radius: var(--radius-sm); }
.btn-lg { height: 48px; padding: 0 20px; font-size: 15px; border-radius: var(--radius); }
.btn-xl { height: 52px; padding: 0 24px; font-size: 16px; font-weight: 600; border-radius: var(--radius-md); }

/* =========================================================
   PILLS / BADGES
   ========================================================= */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 10px;
  background: var(--badge-bg);
  color: var(--badge-text);
  border-radius: var(--radius-pill);
  font-family: var(--font);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}

.pill-neutral {
  background: var(--gray-50);
  color: var(--gray-600);
  box-shadow: var(--ring-light);
}

.pill-dark {
  background: var(--gray-900);
  color: var(--white);
}

.pill .dot,
.pill-neutral .dot,
.pill-dark .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.proof-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: var(--gray-50);
  box-shadow: var(--ring-light);
  color: var(--gray-700);
}
.proof-chip::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
  background: currentColor;
}
.proof-chip.blue::before   { background: var(--develop); }
.proof-chip.pink::before   { background: var(--preview); }
.proof-chip.coral::before  { background: var(--ship); }
.proof-chip.green::before  { background: var(--console-green); }
.proof-chip.violet::before { background: var(--violet); }
.proof-chip.amber::before  { background: var(--amber); }

/* =========================================================
   LAYOUT PRIMITIVES
   ========================================================= */

.container       { max-width: var(--container);      margin: 0 auto; padding: 0 var(--container-pad); }
.container-wide  { max-width: var(--container-wide); margin: 0 auto; padding: 0 var(--container-pad); }

.section        { padding: var(--section-pad) 0; }
.section-tight  { padding: var(--section-pad-tight) 0; }
.section-divider{ border-top: 1px solid var(--border-subtle); }

.band-muted {
  background: var(--bg-alt);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

@media (max-width: 768px) {
  .container, .container-wide { padding: 0 20px; }
  .section       { padding: 80px 0; }
  .section-tight { padding: 56px 0; }
}

/* =========================================================
   CARDS
   ========================================================= */

.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--ring);
  transition: box-shadow var(--dur-fast) ease, transform var(--dur-fast) ease;
}
.card:hover {
  box-shadow: var(--card-shadow-hover);
}

.card-elevated {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--card-shadow);
}

.card-dark {
  background: var(--gray-900);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
}

/* =========================================================
   FORM ELEMENTS
   ========================================================= */

.input {
  height: 40px;
  padding: 0 14px;
  font-family: var(--font);
  font-size: 14px;
  color: var(--gray-900);
  background: var(--white);
  border: none;
  border-radius: var(--radius);
  box-shadow: var(--ring-light);
  transition: box-shadow var(--dur-fast) ease;
}
.input::placeholder { color: var(--gray-400); }
.input:hover { box-shadow: var(--ring); }
.input:focus { outline: none; box-shadow: 0 0 0 2px var(--focus); }

/* =========================================================
   CODE / TERMINAL
   ========================================================= */

.code-block {
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.65;
  background: var(--gray-900);
  color: var(--white);
  padding: 16px 18px;
  border-radius: var(--radius-md);
  overflow-x: auto;
}

.inline-code {
  font-family: var(--mono);
  font-size: 0.92em;
  padding: 2px 6px;
  background: var(--gray-50);
  box-shadow: var(--ring-light);
  border-radius: var(--radius-xs);
  color: var(--gray-800);
}

/* Terminal token colors — use inside .code-block or .term-overlay */
.tok-prompt  { color: var(--console-green); }
.tok-cmd     { color: var(--white); }
.tok-comment { color: var(--gray-400); }
.tok-key     { color: #ff7ac6; }
.tok-fn      { color: #82aaff; }
.tok-str     { color: #ffbc6e; }
.tok-var     { color: #c3e88d; }
.tok-ok      { color: var(--console-green); }

/* =========================================================
   BRAND MARK
   ========================================================= */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.32px;
  color: var(--gray-900);
}
.brand-mark {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: var(--gray-900);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--ring);
}
.brand-mark svg { width: 14px; height: 14px; color: var(--white); }

/* =========================================================
   ENTRY ANIMATION
   ========================================================= */

.fade-up {
  animation: fade-up 0.8s var(--ease) both;
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.delay-1 { animation-delay: .08s; }
.delay-2 { animation-delay: .16s; }
.delay-3 { animation-delay: .24s; }
.delay-4 { animation-delay: .32s; }

/* Breathing dot pulse — for status indicators */
@keyframes breathe {
  0%,100% { opacity: 1;   box-shadow: 0 0 0 3px rgba(10,114,239,0.18); }
  50%     { opacity: 0.7; box-shadow: 0 0 0 6px rgba(10,114,239,0.08); }
}
.dot-breathe {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--develop);
  box-shadow: 0 0 0 3px rgba(10,114,239,0.18);
  animation: breathe 2.4s ease-in-out infinite;
}

/* ═══════════════════════════════════════════════════════════════════
   NIGHTSHIFT (R4 §3.1) — the night-sky long-exposure palette.
   Deep blue-violet base, never pure black: pure black kills the
   atmosphere that makes trails read. Lane colors are weight-class
   mapped (heavy/slow warm → light/fast cool); the verifier is red
   because it judges rather than competes and must not read as a lane.
   The monospace rule (§3.2): every measured value — tokens, latency,
   coherence, receipt ids, timestamps, counts, $ — renders in
   .ns-mono. If it is measured, it is monospace. No exceptions.
   ═══════════════════════════════════════════════════════════════════ */
:root {
  --night: #0B0E1A;
  --night-raised: #151A2E;
  --haze: #7C8BB5;
  --bone: #E8E4DA;
  --ns-rule: #232A44;
  /* the six real lanes */
  --lane-workhorse: #F2A65A;
  --lane-anchor: #E9C46A;
  --lane-reasoner: #B57EDC;
  --lane-generalist: #5FBFA8;
  --lane-swift: #6FA8DC;
  --lane-verifier: #D4576B;
  /* verdicts — used ONLY on the verifier sweep and the morning card.
     --verdict-split is deliberately distinct from --lane-anchor. */
  --verdict-supported: #5FBFA8;
  --verdict-split: #E0B450;
  --verdict-contradicted: #D4576B;
  /* the type stack (§3.2), vendored in fonts/nightshift.css */
  --font-display: 'Archivo Expanded', 'Archivo', var(--font, sans-serif);
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}
.ns-mono { font-family: var(--font-mono, ui-monospace, 'JetBrains Mono', monospace); }
.ns-panel { background: var(--night-raised); border: 1px solid var(--ns-rule); color: var(--bone); }
