# MetricBridge brand kit v2 (2026-10-29)

A small, coherent system so every agent ships the same identity. One mark that is also the app icon,
one wordmark, two colours, and a handful of rules. Files live in `site/assets/brand/` and are
generated, not hand-drawn: `python3 scripts/build-brand-kit.py` (add `--png` for the raster copies,
including every app icon; `--check` fails on drift).

## The mark: the spark heart

A **white heart with a four-point spark**, on the violet tile of the app icon. The heart is care and
health; the spark is the AI that reads your own data. It is the same artwork on the App Store, the
home screen, the website, the favicon and inside the app, so a person who taps an ad lands on the
icon they then install.

It replaced two marks on 2026-10-29 (founder decision):

- the app's original **heart with a lightning bolt**. Heart plus bolt is the defibrillator sign
  (ISO 7010 E010), it reads as energy or emergency rather than insight, and the bolt turned into a
  squiggle at 32 px;
- the site's **pulse between two nodes** (2026-10-20 to 2026-10-29), which never reached the app, so
  the site and the App Store showed two different brands.

The heart and violet were kept on purpose: existing users know the icon by them. The gradient ends
are sampled from the old icon.

Geometry: the heart is two semicircles on a square turned 45 degrees with a filleted point; the
spark is a concave four-point star on the heart's optical centre. The exact numbers are the constants
at the top of `scripts/build-brand-kit.py` (`HEART_A`, `HEART_FILLET`, `SPARK_RV`, `SPARK_RH`,
`SPARK_PINCH`, `ICON_A`). That file is the source of truth; do not copy numbers out of here.

**At 16 px the spark reads as a plus sign** (a pharmacy cross), so at 16 px the favicon is the heart
alone: `favicon-16.png`, and a size media query inside `favicon.svg` (a resolution query does not
apply inside an SVG image, so a tab shows the heart alone at every pixel density). The spark appears
from 32 px up. Every page links all four: `favicon.svg`, `favicon-32.png`, `favicon-16.png` and
`apple-touch-icon.png`.

If a proposed mark needs a third element, it is not this mark. No pulse lines, ECG traces or bolts
inside the heart: the ECG heart is the most-used health cliché and implies a medical measurement the
app does not make.

## Files

`light` / `dark` name the **surface the file is drawn for**, not the ink colour. Pick the file for
the surface; never recolour one.

| File | Use |
|---|---|
| `mark.svg` | Colour: violet `#5A50E0` heart, white spark. The default on any surface. |
| `mark-ink.svg` | Ink `#0D0F14` heart, spark cut out. Light surfaces where colour is not wanted. |
| `mark-knockout.svg` | Paper `#F4F1FA` heart, teal `#1AC9CB` spark. On the violet tile, photos or dark fields. |
| `mark-mono.svg` | `currentColor` heart, spark cut out. Inline SVG only (see the caveat below). |
| `wordmark.svg` | "MetricBridge" outline, ink. |
| `wordmark-knockout.svg` | "MetricBridge" outline, paper. |
| `wordmark-mono.svg` | "MetricBridge" outline, `currentColor`. |
| `lockup.svg` | Colour mark plus ink wordmark, for light surfaces. |
| `lockup-knockout.svg` | Colour mark plus paper wordmark, for dark surfaces. |
| `lockup-mono.svg` | Mark plus wordmark, `currentColor`. |
| `favicon.svg` | Colour mark on transparent, 64 px grid. Also the site favicon (`site/favicon.svg`, byte-identical). Browsers prefer it over the PNGs, so it carries the 16 px rule itself: a size media query hides the spark when it is drawn at 24 px or less (a tab). |
| `favicon-16.svg` | Heart only. Source of `site/favicon-16.png`. |
| `favicon-tile.svg` | The app icon, full bleed. Source of `site/apple-touch-icon.png` (iOS rounds the corners). |
| `favicon-ink.svg` | Ink mark on transparent, for light browser chrome. |
| `favicon-mono.svg` | `currentColor` mark, for a themed host. |
| `app-icon.svg` | The app icon: violet gradient, white heart, teal spark. Source of the iPhone and Watch icons and the press kit icons. |
| `app-icon-dark.svg` | iOS dark appearance: deep indigo `#120E2B` field, same heart and spark. |
| `app-icon-tinted.svg` | iOS tinted appearance: white heart with the spark cut out, on black. iOS applies the tint. |
| `app-icon-mac.svg` | macOS icon with the 824 px tile, 185 px corner and margin baked in (macOS 14 and 15 do not mask). |
| `og-platforms.svg` | The 1200 x 630 `/platforms/` social card. Source of `site/platforms/assets/og-platforms.png`. |

The main site social card (`og:image` on every page) is generated too, but lives at the site
root: `site/og.svg` → `site/og.png` (the "Ask your health data anything." card).

Raster copies the generator owns: `site/favicon-16.png`, `site/favicon-32.png`,
`site/apple-touch-icon.png`, `site/platforms/assets/og-platforms.png`, `site/og.png`,
`site/press/metricbridge-app-icon-1024.png` and `-256.png`, `docs/appstore-assets/app-icon-1024.png`, every PNG in
`App/Assets.xcassets/AppIcon.appiconset`, `Watch/App/Assets.xcassets/AppIcon.appiconset` and
`Mac/Assets.xcassets/AppIcon.appiconset`, and the in-app logo
`App/Assets.xcassets/BrandMark.imageset/brand-mark.svg` (drawn by `App/BrandMark.swift`). iOS and
watchOS icons are written as RGB: App Store Connect rejects an alpha channel.

Every glyph is **outlined from the self-hosted `site/fonts/inter.woff2` and
`site/fonts/jetbrains-mono.woff2`** (the same files the pages load), so the kit is reproducible and
font-independent: an SVG that leans on a system font silently changes shape on a machine without it.

> Colour is baked into each file on purpose. Do **not** use `currentColor` in a file loaded through
> `<img>`: it does not inherit CSS colour, so it renders black. Either pick the file for the surface,
> or inline `mark-mono.svg` / `wordmark-mono.svg` and set `color`.

## Colour

Violet is the brand (the icon and its tile). Teal is the spot colour of the website (links, one CTA
fill) and the spark. Everything else is achromatic; hierarchy comes from alpha and hairlines.

| Token | Value | Use |
|---|---|---|
| Icon violet, high | `#7E7BFE` | Gradient start of the app icon and the header tile (`--icon-tile` in `styles.css`). |
| Icon violet, low | `#4233C4` | Gradient end. |
| Violet | `#5A50E0` | Flat violet for the mark where a gradient would not show. |
| Spark teal | `#1AC9CB` | The spark on the icon and the knockout mark. |
| `--teal-bright` | `#12A3A5` | The site's accent: links, one CTA fill. |
| `--teal` | `#0B7A7C` | Hover / active on the accent, and teal text on light. |
| Ink | `#0D0F14` | Text on light surfaces; dark canvas. |
| Paper | `#F4F1FA` | Text on dark surfaces. |
| Muted | `#71757F` | Mono chrome labels on dark. |
| Hairline (dark) | `rgba(255,255,255,.12)` | Borders and rules on dark. |
| Hairline (light) | `rgba(13,15,20,.14)` | Borders and rules on light. |

## Type

- **Text and UI:** Inter, weight 400/600/700 (system fallback first: `-apple-system, BlinkMacSystemFont, "Inter", system-ui`).
- **Code and chrome:** JetBrains Mono (`--mono`) for labels, endpoints and metric names, weight 400/600.
- No third face. Headings get weight from size, not from a different family.

## Rules

- **Clear space:** keep a margin equal to the mark's width on all sides. Never crowd it.
- **Minimum size:** 16 px for the heart; 32 px for the heart with its spark.
- **Do not** recolour, rotate, skew, stretch or add shadows or glows to the mark or the app icon. Do
  not rebuild the wordmark in another typeface. Do not bring back the bolt or the pulse.
- **Put the mark on the surface it was drawn for:** colour or ink on light, knockout on the violet
  tile or dark. Never violet on violet.

## Usage in the site today

- Every page header and footer that shows the mark inside a tile (`.brand .mark`: the home page,
  `/methods/`, `/reports/`, `/compare/`, `/changelog/` and the blog) uses `mark-knockout.svg` on the
  violet icon gradient (`--icon-tile`), so the header reads as a small copy of the app icon. Pages
  that show the mark as a plain `<img>` on a light header with no tile (`/platforms/`, `/register/`
  nav, `/partners/`) use the colour `mark.svg`.
- The site favicon is `favicon.svg` (with the 16 px heart-only PNG); Apple's home-screen icon is the
  app icon in `apple-touch-icon.png`.
- The waitlist pages rendered by `functions/register/_waitlist.js` load `mark-knockout.svg` on the
  same violet tile, and its confirmation email shows `site/assets/email/metricbridge-icon-44.png`.
  That folder alone is served with a cross-origin CORP header (`site/_headers`); the site-wide
  same-origin policy would leave a broken image in mail clients. Never inline a copy of the mark
  anywhere: inline copies are how the retired bolt survived the 2026-10-29 refresh.
- The `/platforms/` hero diagram is `site/platforms/assets/device-to-endpoint.svg`, drawn from the
  generator, with the mark sitting on the wire.
- Inside the app, `BrandMark` replaces the `bolt.heart.fill` SF Symbol wherever the UI shows the logo
  (dashboard summary card, permissions screen, setup wizard welcome). `bolt.heart.fill` stays only as
  the metric icon for physical effort, which is not the logo.

## Known follow-ups

- **Store and press screenshots** captured before 2026-10-29 show the old `bolt.heart.fill` glyph in
  the dashboard card. They are dated captures; recapture them from the first build with this icon.
- **Versions 1.21 and earlier** ship the heart-and-bolt icon. The spark heart reaches the App Store
  with the next binary. Until then, the site and the store icon differ; do not "fix" that by
  reverting the site.
- **Icon test:** the next binary should carry the old icon as an alternate so App Store product page
  optimization can test it against the spark heart.
