/* ═══════════════════════════════════════════════════════════════════════════════════════════════
   brand.css — the Scaylr brand in one file ("Market" look, Nov 2026; spec: REBRAND.md)

   Loaded LAST in the <head> of every public page (after the page's own styles), so the values here
   win. It does three things:
     1. fonts      — Bricolage Grotesque (headlines) + Plus Jakarta Sans (everything else), hosted
                     on our own site in /fonts/. Older rules that ask for 'Inter' get Plus Jakarta
                     Sans too (the 'Inter' alias below), so no page keeps the old typeface.
     2. colours    — the shared colour names every page already uses (--bg, --surface, --text,
                     --accent …) get the brand values. Light is the brand; a dark set exists only
                     for <html data-theme="dark"> (the studio's optional dark mode).
     3. components — small ready-made pieces with the `sb-` prefix (buttons, tiles, chips, logo).
   Nothing ever sets the class `rd0`; `:not(.rd0)` only raises priority over older page rules.
   ═══════════════════════════════════════════════════════════════════════════════════════════════ */

/* ── 1. Fonts (self-hosted, OFL licence) ── */
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(/fonts/plus-jakarta-sans-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(/fonts/plus-jakarta-sans-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: italic; font-weight: 400 800; font-display: swap;
  src: url(/fonts/plus-jakarta-sans-italic-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: italic; font-weight: 400 800; font-display: swap;
  src: url(/fonts/plus-jakarta-sans-italic-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 400 800; font-stretch: 100%; font-display: swap;
  src: url(/fonts/bricolage-grotesque-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 400 800; font-stretch: 100%; font-display: swap;
  src: url(/fonts/bricolage-grotesque-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
/* 'Inter' alias: every older `font-family: 'Inter'` rule now renders in Plus Jakarta Sans */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(/fonts/plus-jakarta-sans-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(/fonts/plus-jakarta-sans-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: italic; font-weight: 100 900; font-display: swap;
  src: url(/fonts/plus-jakarta-sans-italic-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ── 2. Colours ── */
/* Light = the brand (every page, and the studio by default) */
html:root:not(.rd0) {
  /* brand names */
  --ink: #17161C;  --ink-2: #4A4852;  --ink-3: #6B6874;
  --paper: #FFFFFF;  --soft: #F7F5F0;
  --line: #E7E4DE;  --line-2: #D9D5CD;
  --butter: #FBE29A;  --butter-2: #FDF3D2;
  --lilac: #DCD4FB;   --lilac-2: #F1EEFE;
  --mint: #C9EBD6;    --mint-2: #E9F7EE;
  --cobalt: #2443E6;  --cobalt-d: #1A33BF;
  --good: #1F7A45;  --warn: #9A6400;  --bad: #C0362C;
  --display: 'Bricolage Grotesque', ui-sans-serif, system-ui, sans-serif;
  --ui: 'Plus Jakarta Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --r-xl: 28px;  --r-lg: 22px;  --r-md: 16px;  --pill: 999px;
  /* the shared names older page styles already use */
  --bg: var(--paper);  --bg-2: var(--soft);
  --surface: var(--paper);  --surface-hi: var(--soft);  --surface-2: var(--soft);  --surface2: var(--soft);
  --border: var(--line);  --border-hi: var(--line-2);  --border2: var(--line);
  --text: var(--ink);  --text-2: var(--ink-2);  --text-3: var(--ink-3);  --text2: var(--ink-2);  --text3: var(--ink-3);
  --accent: var(--cobalt);  --accent-2: var(--cobalt);  --accent-warm: var(--cobalt);
  --accent-hi: var(--cobalt-d);  --accent-hover: var(--cobalt-d);
  --accent-soft: rgba(36,67,230,0.08);  --accent-dim: rgba(36,67,230,0.08);  --accent-line: rgba(36,67,230,0.30);
  --accent-glow: rgba(36,67,230,0.08);  --accent-glow2: rgba(36,67,230,0.08);
  --on-accent: #ffffff;
  --r: 22px;  --r-sm: 12px;
  --shadow: 0 18px 50px rgba(23,22,28,0.12);  --card-shadow: none;
  color-scheme: light;
}
/* Dark = only where <html data-theme="dark"> is set (the studio's optional dark mode) */
html:root[data-theme="dark"]:not(.rd0) {
  --ink: #F6F4EF;  --ink-2: rgba(246,244,239,0.80);  --ink-3: rgba(246,244,239,0.62);
  --paper: #131217;  --soft: #1B1A21;
  --line: rgba(255,255,255,0.11);  --line-2: rgba(255,255,255,0.20);
  --butter: #4A411F;  --butter-2: #2C2817;
  --lilac: #3A335F;   --lilac-2: #25223A;
  --mint: #24442F;    --mint-2: #1A2A20;
  --cobalt: #4F68F7;  --cobalt-d: #6C82FF;
  --good: #6FD39A;  --warn: #F2C14E;  --bad: #FF8A80;
  --surface: #1B1A21;  --surface-hi: #25242C;  --surface-2: #25242C;  --surface2: #25242C;
  --accent-soft: rgba(108,130,255,0.16);  --accent-dim: rgba(108,130,255,0.16);  --accent-line: rgba(108,130,255,0.40);
  --accent-glow: rgba(108,130,255,0.16);  --accent-glow2: rgba(108,130,255,0.16);
  --shadow: 0 18px 50px rgba(0,0,0,0.5);
  color-scheme: dark;
}

/* ── Base type (safe on every page) ── */
html:not(.rd0) body { font-family: var(--ui); -webkit-font-smoothing: antialiased; }
html:not(.rd0) h1, html:not(.rd0) h2, html:not(.rd0) h3 { font-family: var(--display); letter-spacing: -0.03em; }
html:not(.rd0) h1 { font-weight: 800; }
html:not(.rd0) :focus-visible { outline: 3px solid var(--cobalt); outline-offset: 2px; }
html:not(.rd0) ::selection { background: var(--lilac); color: var(--ink); }

/* ── 3. Components (use these in new markup; prefix sb-) ── */
.sb-wrap { max-width: 1320px; margin: 0 auto; padding: 0 40px; }
@media (max-width: 1000px) { .sb-wrap { padding: 0 24px; } }
@media (max-width: 700px)  { .sb-wrap { padding: 0 16px; } }

/* logo mark: the Scaylr "S" (owner, 16 Nov 2026: keep the established logo). `.sb-mark` shows /favicon.svg,
   so every page that uses the class follows the favicon; the inner <i> elements are unused. */
.sb-mark { position: relative; display: inline-block; width: 32px; height: 32px; flex: none; border-radius: 26%;
  background: url(/favicon.svg) center / cover no-repeat; }
.sb-mark i { display: none; }
.sb-logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-size: 27px;
  letter-spacing: -0.045em; line-height: 1; color: var(--ink); text-decoration: none; text-transform: lowercase; }

/* type */
.sb-display { font-family: var(--display); font-weight: 800; letter-spacing: -0.022em; line-height: 0.98; font-size: clamp(44px, 6.1vw, 90px); }
.sb-h2 { font-family: var(--display); font-weight: 800; font-size: clamp(34px, 4.4vw, 60px); letter-spacing: -0.04em; line-height: 1; }
.sb-h3 { font-family: var(--display); font-weight: 700; font-size: 26px; letter-spacing: -0.03em; line-height: 1.1; }
.sb-lead { font-size: 19px; line-height: 1.55; color: var(--ink-2); }
.sb-eyebrow { font-weight: 700; font-size: 14px; letter-spacing: 0.01em; color: var(--ink-2); }

/* buttons: pills */
.sb-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 26px; border: 0;
  border-radius: var(--pill); font: 700 16px/1 var(--ui); white-space: nowrap; text-decoration: none; cursor: pointer;
  transition: background .18s, color .18s, box-shadow .18s, transform .18s; }
.sb-btn svg { width: 18px; height: 18px; flex: none; }
.sb-btn-primary { background: var(--cobalt); color: #fff; }
.sb-btn-primary:hover { background: var(--cobalt-d); }
.sb-btn-primary:active { transform: translateY(1px); }
.sb-btn-dark { background: var(--ink); color: var(--paper); }
.sb-btn-dark:hover { background: var(--cobalt); color: #fff; }
.sb-btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.sb-btn-ghost:hover { background: var(--ink); color: var(--paper); }
.sb-btn-quiet { background: var(--soft); color: var(--ink); }
.sb-btn-quiet:hover { background: var(--line); }
.sb-btn-sm { height: 44px; padding: 0 20px; font-size: 15px; }
.sb-btn[disabled], .sb-btn.is-disabled { background: var(--soft); color: var(--ink-3); box-shadow: none; cursor: not-allowed; }
.sb-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink); text-decoration: none;
  border-bottom: 2px solid currentColor; padding-bottom: 2px; }
.sb-link:hover { color: var(--cobalt); }

/* tiles and cards: flat colour blocks, big radius, no shadows */
.sb-tile { border-radius: var(--r-xl); overflow: hidden; position: relative; }
.sb-butter { background: var(--butter); }  .sb-butter-2 { background: var(--butter-2); }
.sb-lilac  { background: var(--lilac); }   .sb-lilac-2  { background: var(--lilac-2); }
.sb-mint   { background: var(--mint); }    .sb-mint-2   { background: var(--mint-2); }
.sb-soft   { background: var(--soft); }
.sb-card { background: var(--paper); border-radius: var(--r-lg); box-shadow: inset 0 0 0 1.5px var(--line); }
.sb-card-hover { transition: box-shadow .18s; }
.sb-card-hover:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }

/* chips, pills, badges */
.sb-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border: 0; border-radius: var(--pill);
  background: var(--soft); color: var(--ink); font: 600 15px/1 var(--ui); text-decoration: none; cursor: pointer; transition: background .18s, color .18s; }
.sb-chip:hover { background: var(--line); }
.sb-chip.is-on, .sb-chip[aria-pressed="true"], .sb-chip[aria-selected="true"] { background: var(--ink); color: var(--paper); }
.sb-badge { display: inline-flex; align-items: center; height: 26px; padding: 0 11px; border-radius: var(--pill);
  background: var(--lilac-2); color: var(--ink); font: 700 12.5px/1 var(--ui); letter-spacing: 0.01em; }
.sb-badge-accent { background: var(--cobalt); color: #fff; }

/* numbered step tile (01 / 02 / 03) */
.sb-num { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px; flex: none;
  font: 800 17px/1 var(--display); letter-spacing: -0.02em; color: #17161C; background: #FBE29A; }
.sb-num.is-2 { background: #DCD4FB; }  .sb-num.is-3 { background: #C9EBD6; }

/* fields */
.sb-field { width: 100%; min-height: 48px; padding: 0 16px; border: 0; border-radius: var(--r-sm); background: var(--paper); color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--line-2); font: 500 16px/1.4 var(--ui); outline: none; transition: box-shadow .18s; }
.sb-field::placeholder { color: var(--ink-3); }
.sb-field:focus { box-shadow: inset 0 0 0 2px var(--cobalt); }

/* dashed drop area */
.sb-drop { border: 2px dashed var(--line-2); border-radius: var(--r-lg); background: var(--paper); transition: border-color .18s, background .18s; }
.sb-drop:hover, .sb-drop.is-over { border-color: var(--cobalt); background: var(--lilac-2); }

@media (prefers-reduced-motion: reduce) { .sb-btn, .sb-chip, .sb-card-hover, .sb-drop, .sb-field { transition: none; } }
