/* LingerLens design system: shared by the landing page and the client portal.
   Concept: an instrument that reads attention as heat. Warm carbon and paper neutrals, one signal colour
   (heat) reserved for data and the primary action, Archivo at a semi-expanded width for display,
   Martian Mono for live numbers. Radii by role, hairlines instead of shadows. */

@font-face {
  font-family: 'Archivo LL';
  src: url('/assets/fonts/archivo.woff2') format('woff2-variations'), url('/assets/fonts/archivo.woff2') format('woff2');
  font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
}
@font-face {
  font-family: 'Martian LL';
  src: url('/assets/fonts/martian-mono.woff2') format('woff2-variations'), url('/assets/fonts/martian-mono.woff2') format('woff2');
  font-weight: 100 800; font-stretch: 75% 112.5%; font-display: swap;
}

:root {
  /* neutrals */
  --carbon: #0E0F0D;
  --carbon-2: #161714;
  --carbon-3: #1F201C;
  --carbon-line: #2B2C27;
  --bone: #ECE9E2;
  --bone-2: #9A988F;
  --bone-3: #8A887F;          /* quiet text on carbon (5:1 or better on every dark surface) */
  --paper: #F2F1EC;
  --paper-2: #E7E5DE;
  --paper-line: #D6D4CB;
  --ink: #121311;
  --ink-2: #5A5A53;
  --white: #FFFFFF;

  /* signal: attention as heat */
  --heat: #F5622D;
  --heat-ink: #B9410F;          /* heat as text on paper (4.85:1) */
  --heat-light: #E0531C;        /* chart mark on light surfaces */
  --cool: #6592F2;              /* second series, dark */
  --cool-light: #2F6BD6;        /* second series, light */
  --thermal: linear-gradient(90deg, #2A0E05 0%, #7A1E08 22%, #C9370E 45%, #F5622D 62%, #FFA45C 80%, #FFE3B3 100%);

  /* type */
  --sans: 'Archivo LL', 'Archivo', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'Martian LL', 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  /* modular scale, ratio 1.25 from 17px */
  --t-xs: 13px; --t-sm: 14.5px; --t-md: 17px; --t-lg: 21px; --t-xl: 26.5px; --t-2xl: 33px; --t-3xl: 41.5px; --t-4xl: 52px; --t-5xl: 65px;
  --display-stretch: 112%;

  /* radii by role */
  --r-input: 5px; --r-btn: 6px; --r-panel: 10px; --r-sheet: 18px; --r-pill: 999px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --fast: 140ms; --mid: 240ms;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: var(--t-md); line-height: 1.55; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
::selection { background: var(--heat); color: var(--carbon); }

.display {
  font-family: var(--sans); font-stretch: var(--display-stretch); font-weight: 700; letter-spacing: -0.022em; line-height: 1.02;
  text-wrap: balance;
}
.mono { font-family: var(--mono); font-stretch: 92%; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* logo */
.wordmark { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-weight: 700; font-stretch: 112%; letter-spacing: -0.015em; font-size: 18px; }
.wordmark svg { width: 24px; height: 24px; flex: none; }

/* buttons: one primary, one secondary, one quiet */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px;
  border-radius: var(--r-btn); border: 1px solid transparent; font-weight: 600; font-size: 16px; text-decoration: none;
  cursor: pointer; transition: background-color var(--fast) var(--ease), border-color var(--fast) var(--ease), color var(--fast) var(--ease);
  white-space: nowrap;
}
.btn-primary { background: var(--heat); color: var(--carbon); }
.btn-primary:hover { background: #FF7A4A; }
.btn-primary:active { background: #E2541F; }
.btn-secondary { border-color: currentColor; background: transparent; }
.btn-quiet { padding: 0 4px; min-height: 44px; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; font-weight: 500; }
.btn-quiet:hover { text-decoration-thickness: 2px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0ms !important; animation-duration: 0ms !important; scroll-behavior: auto !important; }
}
