/* COPY. Do not edit. Source: journify/brand/tokens.css at journify-core commit 11718b0, synced 2026-11-10.
 * Change the source in the core repo, then run journify/brand/sync-tokens.sh. */

/* Journify brand tokens, version 2.
 *
 * THE SINGLE SOURCE for journify.ai (journify-site), the Journify ICP plugin (journify-icp)
 * and the DM app (journify-dms/webapp). Edit this file only, in the journify core repo, then
 * run brand/sync-tokens.sh to copy it into the three repos. Never edit a copy.
 * What each token means, the contrast table and how a repo consumes this file: brand/README.md.
 * Decided by JC on 2026-10-10. The look: the canvas "Journify type directions".
 *
 * BANS, on every surface the brand touches (site, plugin, DM app, emails, documents):
 *   NO SHADOWS. Depth comes from the grey block, the white card and the hairline, nothing else.
 *   NO UPPERCASE TRACKED LABELS. A label is a plain sentence in --ink-2, normal case.
 *   NO PILLS. Chips have 6px corners, buttons and inputs 8px, cards 12px, blocks 18px.
 *   NO ARROWS on buttons or links. The verb is the arrow. (A select's chevron is a control, not an arrow.)
 *   NO CREAM. The page is #FFFFFF. The only greys are --block, --cell and --hairline.
 *   ONE HUE, ONE MEANING. Oxblood is an action. Ember is a recording. Pink is only a failure. A signal
 *   is a dot and a word, never a filled chip. An error is never the Hot red. A hue never carries
 *   a meaning on its own: the word next to it does.
 */

:root {
  /* ---------- Ground: what things sit on ---------- */
  --ground:        #FFFFFF;   /* the page */
  --block:         #F3F2F0;   /* a large grey panel, 18px corners */
  --card:          #FFFFFF;   /* a white card with a hairline, 12px corners, on the page or inside a block */
  --cell:          #F6F5F3;   /* a grey cell inside a card, 8px corners */
  --hairline:      #E4E2DE;   /* every 1px line: card borders, list dividers, input borders */
  --row-selected:  var(--block);   /* the selected row in a list */

  /* ---------- Ink: what text is ---------- */
  --ink:           #16181B;   /* headings, body, the words in chips */
  --ink-2:         #6B6F76;   /* secondary text, labels, meta lines, placeholders */
  --ink-3:         #A3A7AD;   /* disabled text ONLY. A disabled control is exempt from the contrast rule. Never a placeholder. */

  /* ---------- Action: oxblood is what you click (and, on journify.ai and score.journify.ai, the recording: below) ---------- */
  --action:        #7A1A2A;   /* primary button fill, the booked dot */
  --action-hover:  #5A1220;
  --on-action:     #FFFFFF;   /* text on a primary button */
  --link:          var(--action);
  --link-hover:    var(--action-hover);
  --focus-ring:    var(--action);   /* 2px outline, 2px offset, on :focus-visible */

  /* ---------- The sales call recording (JC, 2026-10-13 and 2026-11-05) ----------
     On journify.ai and score.journify.ai a recording's bars go from oxblood into ember as they get taller.
     Ember is 3.4 to 1 on white, so it is never words and never a button. Nowhere in the plugin or the DM app.
     The rule, and every place ember and flare appear: brand/README.md section 2. */
  --ember:         #FF4A1C;   /* the tall bars of a recording */
  --flare:         #FFB21C;   /* the yellow end of the recording's heat; with ember and oxblood it is the border that
                                 travels around the How it works card (JC, 2026-11-10). Never words, never a button */
  --glare-yellow:  #E9B43A;   /* the yellow glare at the foot of a card: the Post journey card, the Booked Sprint card
                                 (JC, 2026-11-10). Never words, never a button */
  --band-light:    #9A2438;   /* the hero band on the five pages in the site's nav, with --ember at its warm end; the Luma covers */
  --band:          #7A1A2A;   /* its middle: the oxblood value, here a ground, not an action */
  --band-deep:     #4E0F1B;   /* its far end */
  --on-band:       #FFFFFF;   /* the heading on the band */
  --on-band-2:     #E8D4D8;   /* the band's lead and timeline words (the logo's white-version dot) */
  --mark-w:        4px;       /* the oxblood underline under heading words that name the recording */
  --mark-offset:   7px;       /* its distance under the words. Ink words with an oxblood bar, never a link. */

  /* ---------- Signals: the lead verdict. A dot and a word. ---------- */
  --keep:          #4F7A3F;
  --hot:           #B33A22;   /* vermilion. Never a button, never an error. */
  --warm:          #8F6214;
  --cold:          #4E6F85;
  --skip:          #9A9387;   /* a dot only. The word Skip is written in --ink-2. */

  /* ---------- Stages of a conversation: a scale from pale to ink ---------- */
  --stage-started:    #C8CDD6;
  --stage-replied:    #C9BA98;
  --stage-chatting:   #5A4E8C;
  --stage-qualified:  var(--keep);   /* same meaning as Keep: a yes */
  --stage-booked:     #16181B;       /* the end state, solid ink with white text */
  --on-stage-booked:  #FFFFFF;
  --stage-inactive:   #E4E2DE;

  /* ---------- Status of the system: text on a tint, no border ---------- */
  --status-ok:        #2F5A26;   /* Keep's hue, two steps darker so it reads on its tint */
  --status-ok-bg:     #E5EFE1;
  --status-warn:      #6B4A0F;   /* Warm's hue, two steps darker so it reads on its tint */
  --status-warn-bg:   #F4E8D2;
  --status-error:     #6E2E38;   /* the dark wine. Never the Hot red. */
  --status-error-bg:  #F6DEE3;   /* the only pink: it means something failed, and nothing else (JC, 2026-10-11) */

  /* ---------- Accounts: one list for the DM app and the plugin ---------- */
  --account-teal:     #2F6B6B;
  --account-plum:     #6B3F6B;
  --account-indigo:   #3B4C8C;
  --account-moss:     #5E6E2F;
  --account-cocoa:    #6B4A2E;
  --account-petrol:   #2F5A7A;
  --account-charcoal: #4A4A4A;
  --account-band-w:   3px;       /* the stripe on the left edge of the plugin and the DM app shell */

  /* ---------- Kept from the DM app as they are ---------- */
  --conf-certain:  #2F6B47;   /* confidence: a dot next to an ink word, never the word's colour */
  --conf-high:     #4A7A5F;
  --conf-medium:   #B98A2E;
  --conf-low:      #9A6B3F;
  --conf-unknown:  #9A9387;
  --glow-1:  rgba(220, 170, 60, 0.13);   /* a row unanswered 1 to 3 days */
  --glow-2:  rgba(210, 110, 40, 0.16);   /* 3 to 7 days */
  --glow-3:  rgba(180, 50, 50, 0.14);    /* 7 days and more */
  --ghost:   rgba(0, 0, 0, 0.025);       /* an outbound row 7 days and more, muted */

  /* ---------- Inputs: white in both themes, so these are literal, never var() ---------- */
  --input-bg:           #FFFFFF;
  --input-ink:          #16181B;
  --input-placeholder:  #6B6F76;
  --input-border:       #E4E2DE;
  --input-border-focus: #7A1A2A;   /* plus a 1px outline of the same, offset 0: a 2px ring, no layout shift */
  --input-border-error: #6E2E38;
  --input-error-ink:    #6E2E38;   /* the line under an input that says what is wrong */

  /* ---------- Type: Archivo for everything, IBM Plex Mono for ids and times ---------- */
  --font-text:     'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display:  'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;   /* with --stretch-display */
  --font-mono:     'IBM Plex Mono', 'SF Mono', Menlo, Consolas, monospace;
  --stretch-display: 100%;   /* font-stretch on display, h1, section, h2, h3; normal width since 2026-11-08, 115% before (the logo is a file, not type) */
  --stretch-text:    100%;
  --w-regular:   400;
  --w-medium:    500;   /* a standalone link, a chip word, a secondary button */
  --w-semibold:  600;   /* every button, a card title */
  --w-heading:   800;   /* every heading: display, h1, section, h2, h3 (JC, 2026-11-08; 600 before) */
  --w-bold:      700;   /* the wordmark and the plugin's verdict word only */

  /* The scale. Size, line height, letter spacing. */
  --fs-display: 56px;  --lh-display: 1;     --ls-display: -0.03em;   /* the homepage hero headline */
  --fs-h1:      42px;  --lh-h1:      1.06;  --ls-h1:      -0.02em;
  --fs-section: 34px;  --lh-section: 1.1;   --ls-section: -0.02em;   /* a section heading on the site; 28px on a phone */
  --fs-h2:      24px;  --lh-h2:      1.2;   --ls-h2:      -0.02em;
  --fs-h3:      18px;  --lh-h3:      1.3;   --ls-h3:      -0.01em;
  --fs-body:    16px;  --lh-body:    1.6;                            /* a paragraph on the site */
  --fs-control: 15px;  --lh-control: 1;                              /* buttons, inputs, selects */
  --fs-small:   14px;  --lh-small:   1.5;                            /* a row in the DM app, a card line, a nav link */
  --fs-meta:    13px;  --lh-meta:    1.45;                           /* a label, a caption, the plugin's base size */
  --fs-mono:    12.5px; --lh-mono:   1.45;                           /* a timestamp, an id, a score */

  /* ---------- Shapes ---------- */
  --r-block:     18px;
  --r-card:      12px;
  --r-cell:      8px;
  --r-control:   8px;    /* buttons, inputs, selects, textareas */
  --r-chip:      6px;
  --r-check:     3px;    /* a checkbox */
  --r-round:     50%;    /* dots, avatars, radios */
  --hairline-w:  1px;
  --control-h:   42px;   /* buttons and inputs */
  --control-px:  18px;   /* button side padding */
  --text-button-px: 10px; /* a text-only button's side padding, so its focus ring has air (JC, 2026-10-10) */
  --input-px:    12px;   /* input side padding */
  --chip-py:     4px;
  --chip-px:     9px;
  --dot:         8px;    /* a signal, stage, account or booked dot */
  --check:       18px;   /* a checkbox or radio */
  --avatar:      32px;
  --icon:        20px;   /* an icon's box; stroke 1.5px, round caps and joins, currentColor */
  --icon-stroke: 1.5px;

  /* ---------- Spacing, four-step ---------- */
  --s-1:  4px;
  --s-2:  8px;
  --s-3:  12px;
  --s-4:  16px;
  --s-5:  20px;
  --s-6:  24px;
  --s-8:  32px;
  --s-10: 40px;
  --s-12: 48px;
  --s-16: 64px;

  /* ---------- Motion: one easing, three durations ---------- */
  --ease:    cubic-bezier(0.2, 0.8, 0.3, 1);
  --t-micro: 120ms;   /* a hover, a focus ring */
  --t-std:   240ms;   /* a panel opening, a row expanding */
  --t-fade:  600ms;   /* a call line fading in on the hero card */
  --t-reveal: 320ms;  /* a row, a calendar slot or a picture appearing (JC, 2026-11-10) */
  --t-card:  560ms;   /* the journey cards widening (JC, 2026-11-10) */
}

/* The dark version: the ink as the ground, for a surface that cannot be white (the Luma event
 * page in its dark theme, a dark panel). JC picked it on 2026-10-10 over two burgundy grounds
 * (board P8 on the canvas): a whole screen of burgundy was too bright, and on burgundy the
 * oxblood button cannot exist. The burgundy stays on the two Luma covers and the burgundy Kit
 * page, which are posters rendered from their own HTML, not this theme.
 * Signals, stages, statuses, accounts and confidence are not redefined: no dark surface shows
 * them. The status chips carry their own tint and read on either ground. Inputs stay white. */
[data-theme="dark"] {
  --ground:        #16181B;   /* the light version's ink */
  --block:         #222428;
  --card:          #26282C;
  --cell:          #2C2F34;
  --hairline:      #3A3D43;
  --ink:           #FFFFFF;
  --ink-2:         #B3B7BE;
  --ink-3:         #6B6F76;   /* disabled text only */
  --action:        #7A1A2A;   /* the same oxblood button as in light; its white text carries it */
  --action-hover:  #9A2438;   /* hover goes lighter on a dark ground, never darker */
  --on-action:     #FFFFFF;
  --link:          #FFFFFF;   /* text that is an action is white and underlined: oxblood text on ink reads 1.7 to 1, and pink means only that something failed */
  --link-hover:    #FFFFFF;
  --focus-ring:    #FFFFFF;
  --input-error-ink: #F6DEE3; /* the input itself stays white; only the line under it changes */
}

/* Reduced motion shows the finished state. */
@media (prefers-reduced-motion: reduce) {
  :root {
    --t-micro: 0ms;
    --t-std:   0ms;
    --t-fade:  0ms;
    --t-reveal: 0ms;
    --t-card:  0ms;
  }
}
