/* OfferProof AI design tokens: Bright Growth, the theme lab's "Designer's pick" (owner, 2026-11-21). The only source of
   brand values for the website, dashboard, emails and PDF reports. The app imports this file, build-site.mjs copies it to
   website/assets/css/tokens.css, and shared/src/brand.ts repeats the colours for emails and PDFs (which can't read CSS);
   brand.test.ts fails if the two drift. Token names are roles, so a component works on any surface; only the values carry
   the theme.
   The look: a bright, light base (white and soft mint), vivid emerald for growth, bright blue for trust, links and data,
   and a sunny orange used only on buy and main call-to-action buttons. One bold emerald-to-blue gradient appears only in
   the hero, the final call to action and the executive summary. Dark mode keeps the same hues on deep green-black. */
:root {
  /* Surfaces. Light is the default everywhere: page, bands, cards and the app's sidebar. The dark surface tokens (ink,
     slate) are for dark mode and the rare dark element (the phone frame, a code block). */
  --op-ink: #0d1614;
  --op-slate: #15201d;
  --op-slate-2: #1c2a26;
  --op-line-dark: #2b3c36;
  --op-paper: #f6faf8;
  --op-white: #ffffff;
  --op-line: #e2ece7;

  /* Text */
  --op-text: #0f1b2d;
  --op-text-2: #536173;
  /* Secondary strong text: between the text and the muted grey (labels, table heads, sub-headings) */
  --op-text-strong: #3a4757;
  --op-text-inv: #ffffff;
  --op-text-inv-2: #eefaf5;

  /* Brand: emerald is growth (the logo), blue is trust, links and data. */
  --op-emerald: #00b37e;
  --op-emerald-bright: #3ee6a8;
  --op-emerald-deep: #00704f;
  --op-teal: #0b7a8a;
  --op-teal-bright: #5ad7e6;
  --op-blue: #2563eb;
  --op-blue-bright: #8ab4ff;
  --op-blue-deep: #1d4ed8;
  --op-proof-gradient: linear-gradient(90deg, #00a372 0%, #1d6fe0 100%);
  /* The one bold gradient: hero, final call to action, executive summary. White text on every stop passes AA (≥ 4.97). */
  --op-aurora: linear-gradient(125deg, #007a57 0%, #0b7a8a 48%, #1d4ed8 100%);
  --op-sky: #eef4ff;
  --op-mint: #f2fbf7;
  --op-mint-2: #e3f8ef;
  --op-proof-tint: #e3f8ef;
  --op-data-tint: #e8efff;
  --op-line-input: #8a97a8;
  /* Input and ghost-button borders: stronger than a card's line, softer than --op-line-input */
  --op-line-strong: #c3d1ca;
  --op-ink-glass: rgb(255 255 255 / 86%);
  --op-glow-emerald: rgb(0 179 126 / 24%);
  --op-glow-blue: rgb(37 99 235 / 18%);

  /* Hero and highlight roles (website hero, final CTA band, executive summary) */
  --op-hero-gradient: var(--op-aurora);
  --op-hero-ink: #ffffff;
  --op-hero-muted: #eefaf5;
  --op-hero-highlight: linear-gradient(90deg, #b6f7dc 0%, #ffd2ad 100%);
  /* Dark glass, not white: white words on a white glass over the gradient's teal middle fall under AA (3.8); on this they pass (≥ 6). */
  --op-hero-chip: rgb(0 30 40 / 20%);
  --op-blob-a: #3ff0b5;
  --op-blob-b: #7cc4ff;

  /* App sidebar: light, with an emerald active state */
  --op-sidebar-bg: #ffffff;
  --op-sidebar-ink: #0f1b2d;
  --op-sidebar-muted: #536173;
  --op-sidebar-active-bg: #e3f8ef;
  --op-sidebar-active-ink: #00704f;

  /* Data colours for charts on light surfaces */
  --op-data-1: #2563eb;
  --op-data-2: #00b37e;
  --op-data-3: #ff7a1a;
  --op-data-4: #8b5cf6;
  --op-data-track: #e6eee9;

  /* Card families on the website (2026-11-21): a card's colour follows what it is about. Emerald, blue and teal reuse the
     brand tokens above; these add a tint for teal and violet, amber and rose sets. Each -ink passes AA on white and on its
     own tint. Orange is never a family colour: it stays for buy buttons. */
  --op-teal-tint: #e9f7f9;
  --op-violet: #8b5cf6;
  --op-violet-ink: #6d28d9;
  --op-violet-tint: #f1ecff;
  --op-amber: #f5a524;
  --op-amber-ink: #8a4b00;
  --op-amber-tint: #fff5de;
  --op-rose: #ec4d84;
  --op-rose-ink: #be185d;
  --op-rose-tint: #fdedf3;

  /* Proof Map statuses. These colours carry meaning; don't use them for decoration. */
  --op-sourced: #12b76a;
  --op-vendor: #f59e0b;
  --op-unsupported: #f04438;
  --op-missing: #98a2b3;

  /* Status text and tints that pass WCAG AA. Light surfaces first, then the same four for dark surfaces. */
  --op-good-ink: #05603a;
  --op-good-fill: #12b76a;
  --op-good-tint: #e6f7ee;
  --op-warn-ink: #8a4b00;
  --op-warn-fill: #f79009;
  --op-warn-tint: #fff4e0;
  --op-bad-ink: #b42318;
  --op-bad-fill: #f04438;
  --op-bad-tint: #ffecec;
  --op-info-ink: #1d4ed8;
  --op-info-tint: #e8efff;
  --op-neutral-tint: #f2f5f4;
  --op-good-ink-dark: #6fe0a5;
  --op-good-tint-dark: #0f2e20;
  --op-warn-ink-dark: #ffc46b;
  --op-warn-tint-dark: #3a2a10;
  --op-bad-ink-dark: #ff9b8f;
  --op-bad-tint-dark: #3b1515;
  --op-info-ink-dark: #a8c1ff;
  --op-info-tint-dark: #18254a;

  /* Sunny orange: reserved for buy buttons and the main call to action, so the next click is always obvious.
     Dark text on orange (AA ≥ 7); white text on this orange would fail AA. */
  --op-buy: #ff7a1a;
  --op-buy-2: #ff5c00;
  --op-buy-hover: #ff8f3d;
  --op-buy-ink: #1d0d00;
  --op-buy-gradient: linear-gradient(180deg, #ff8f3d 0%, #ff7a1a 45%, #ff5c00 100%);
  --op-buy-glow: 0 0 0 1px rgb(255 92 0 / 35%), 0 12px 30px rgb(255 92 0 / 30%);
  --op-buy-tint: #fff0e4;
  --op-buy-text: #b84300;

  /* Action buttons (not buy buttons) and the keyboard focus ring, the same in the app, on the website and in emails */
  --op-btn: #00855e;
  --op-btn-hover: #00704f;
  --op-btn-ink: #ffffff;
  --op-link: #1d4ed8;
  --op-focus: #2563eb;
  --op-focus-on-dark: #8ab4ff;
  --op-focus-width: 3px;

  /* The logo's colours (shape unchanged): tile gradient, mark ink, the mark's dots, and the "AI" badge */
  --op-logo-gradient: linear-gradient(135deg, #3ee6a8 0%, #00b37e 45%, #1d4ed8 100%);
  --op-logo-ink: #0f1b2d;
  --op-logo-dot: #ffd2ad;
  --op-logo-badge: #ff6a10;
  --op-logo-badge-ink: #1d0d00;

  /* Type and shape. Inter Tight for headings, Inter for everything else; both self-hosted. */
  --op-font: Inter, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --op-font-display: 'Inter Tight', Inter, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --op-radius-s: 8px;
  --op-radius-control: 12px;
  --op-radius: 14px;
  --op-radius-card: 18px;
  --op-radius-l: 24px;
  --op-radius-pill: 999px;
  --op-shadow: 0 1px 2px rgb(16 24 40 / 5%), 0 12px 32px rgb(16 24 40 / 8%);
  --op-shadow-dark: 0 16px 40px rgb(0 0 0 / 35%);

  /* Scales. Spacing steps by 4 px; the app's six type sizes. The website's marketing headings are larger on purpose,
     but its body copy, labels, pills and notes use these. */
  --op-space-1: 4px;
  --op-space-2: 8px;
  --op-space-3: 12px;
  --op-space-4: 16px;
  --op-space-5: 24px;
  --op-space-6: 32px;
  --op-space-7: 48px;
  --op-fs-xs: 0.75rem;
  --op-fs-sm: 0.8125rem;
  --op-fs-md: 0.9375rem;
  --op-fs-lg: 1.125rem;
  --op-fs-xl: 1.5rem;
  --op-fs-display: clamp(1.6rem, 1.3rem + 1.3vw, 2.15rem);
}

/* Dark mode values for the same roles, used by the app's dark theme (frontend/src/lib/theme.ts sets data-theme on <html>).
   The website is light-only and never sets it. */
html[data-theme='dark'] {
  --op-paper: #0b1311;
  --op-white: #15201d;
  --op-line: #25352f;
  --op-line-strong: #3a4d46;
  --op-text: #eaf4f0;
  --op-text-2: #9fb3ab;
  --op-text-strong: #c5d6cf;
  --op-emerald: #2fd69a;
  --op-emerald-deep: #5be3b0;
  --op-blue: #6f9bff;
  --op-link: #9dbbff;
  --op-focus: #8ab4ff;
  --op-btn: #2fd69a;
  --op-btn-hover: #5be3b0;
  --op-btn-ink: #04150e;
  --op-mint: #13211d;
  --op-mint-2: #123327;
  --op-sky: #101a33;
  --op-proof-tint: #123327;
  --op-data-tint: #18254a;
  --op-aurora: linear-gradient(125deg, #006b4c 0%, #0a5d6a 48%, #1a3fae 100%);
  --op-hero-gradient: var(--op-aurora);
  --op-sidebar-bg: #0f1917;
  --op-sidebar-ink: #eaf4f0;
  --op-sidebar-muted: #9fb3ab;
  --op-sidebar-active-bg: #123327;
  --op-sidebar-active-ink: #5be3b0;
  --op-data-1: #6f9bff;
  --op-data-2: #2fd69a;
  --op-data-3: #ff8a33;
  --op-data-4: #b39bff;
  --op-data-track: #22322d;
  --op-buy: #ff8a33;
  --op-buy-2: #ff6a10;
  --op-buy-hover: #ffa15c;
  --op-buy-gradient: linear-gradient(180deg, #ffa15c 0%, #ff8a33 45%, #ff6a10 100%);
  --op-buy-tint: #3a2312;
  --op-buy-text: #ffad70;
  --op-neutral-tint: #18241f;
  --op-shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 16px 40px rgb(0 0 0 / 35%);
}
