/* Percepta: shared brand tokens for the site, sign-in, app, share pages and exports.
   Voice: plain, direct, second person. Terms: Mentioned, Cited, AI perception, Share of voice. */
@import url('https://fonts.googleapis.com/css2?family=Schibsted+Grotesk:wght@500;600;700;800&family=Onest:wght@400;500;600;700&display=swap');

:root {
  /* Percepta brand: Neel (indigo) carries structure, Marigold means "you were mentioned". */
  --neel: #222B6B;          /* primary: buttons, active states, cited */
  --neel-deep: #161B45;     /* sidebar, dark bands */
  --neel-soft: #E9EBF8;
  --marigold: #F2A20F;      /* brand accent + the Mentioned colour */
  --mark: #FFCF4A;          /* highlighter behind a mentioned brand */
  --mark-soft: #FFF3CF;
  --paper: #F7F8FB;
  --panel: #FFFFFF;
  --ink: #171A2E;
  --slate: #565D77;
  --faint: #8A90A6;
  --rule: #E3E5EE;
  --wash: #F0F2F8;
  --good: #1B8452; --good-bg: #E4F4EB;
  --bad: #CC4429;  --bad-bg: #FCEAE5;
  --warn: #946200; --warn-bg: #FFF3D6;
  --focus: #4656D6;
  /* data colours, used the same way on every page */
  --c-mentioned: #F2A20F; --c-cited: #3B4BC8; --c-considered: #B7BEEC;
  --c-positive: #1B8452; --c-neutral: #B4B9CB; --c-negative: #CC4429; --c-track: #E6E8F1;
  --display: 'Schibsted Grotesk', 'Segoe UI', sans-serif;
  --body: 'Onest', 'Segoe UI', system-ui, sans-serif;
  --r-sm: 7px; --r: 12px; --r-lg: 18px;
}
* { box-sizing: border-box }
html { -webkit-text-size-adjust: 100% }
body { margin: 0; font: 15px/1.55 var(--body); color: var(--ink); background: var(--paper); }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; margin: 0; line-height: 1.15 }
a { color: inherit }
p { margin: 0 0 1em }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px }
::selection { background: var(--mark) }

.mark { background: linear-gradient(transparent 12%, var(--mark) 12%, var(--mark) 88%, transparent 88%); padding: 0 .18em; border-radius: 3px; box-decoration-break: clone; -webkit-box-decoration-break: clone }

.btn { display: inline-flex; align-items: center; gap: 8px; font: 600 14.5px/1 var(--body); padding: 12px 18px; border-radius: var(--r);
  border: 1px solid var(--neel); background: var(--neel); color: #fff; text-decoration: none; cursor: pointer; transition: transform .12s ease }
.btn:hover { background: var(--neel-deep) }
.btn:active { transform: translateY(1px) }
.btn.ghost { background: var(--panel); color: var(--neel); border-color: var(--rule) }
.btn.ghost:hover { border-color: var(--neel); background: var(--panel) }
.btn.small { padding: 8px 12px; font-size: 13.5px; border-radius: var(--r-sm) }
.btn.danger, .btn.danger:hover { background: transparent; color: var(--bad); border-color: var(--rule) }
.btn:disabled { opacity: .45; cursor: default }

input, textarea, select { font: inherit; color: var(--ink); border: 1px solid var(--rule); border-radius: var(--r-sm); padding: 10px 12px; width: 100%; background: #fff }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--focus); outline-offset: -1px; border-color: transparent }
textarea { min-height: 90px; resize: vertical }
label { display: block; font-weight: 600; font-size: 14px; margin: 16px 0 6px }
label small, .hint { font-weight: 400; color: var(--slate); font-size: 13px }
.muted { color: var(--slate) }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important } }

/* logo: a lens with a marigold spot, the moment a brand gets seen */
.logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--neel); font: 800 22px/1 var(--display); letter-spacing: -0.035em }
.logo svg { width: 24px; height: 24px; flex: none }
.logo .ring { fill: none; stroke: currentColor; stroke-width: 3 }
.logo .spot { fill: var(--marigold) }
.logo.light { color: #fff }
