/* Mipp marketing site: shared tokens, self-hosted fonts and the shared focus ring and cookie banner.
 *
 * B Tally with the Stages mark (12 Nov 2026), from Pam's handoff pack (design-tokens.css, fonts.md).
 * Visual only: colour, type, spacing, radius, fonts. No copy, URL, structure, title, meta or schema changes.
 *
 * Fonts: Outfit (headings, numbers, labels) and Figtree (everything else), both SIL Open Font License 1.1,
 * self-hosted from /fonts (WOFF2, licence texts in /fonts/licences). Nothing loads from Google Fonts.
 *
 * THE MEANING RULE: ink and greys by default. Red only for overdue, lost or failed. Green only for won, done
 * or healthy. Never decorative. The public site uses green once (the Won Revenue figure) and red nowhere.
 *
 * The old palette names (--p, --s, --g, --primary, --text and the rest) are kept so every page that still
 * names them restyles at once. They now point at ink and greys: no purple, teal, pink, orange or yellow.
 * Pages that use this file: /, the /crm pages, the /vs pages, /demo, the blog, privacy, terms and 404.
 * index.html (the app) and admin/index.html are not restyled here.
 */

@font-face{font-family:"Outfit";font-weight:600;font-style:normal;font-display:swap;src:url("/fonts/Outfit-600.woff2") format("woff2")}
@font-face{font-family:"Outfit";font-weight:700;font-style:normal;font-display:swap;src:url("/fonts/Outfit-700.woff2") format("woff2")}
@font-face{font-family:"Figtree";font-weight:400;font-style:normal;font-display:swap;src:url("/fonts/Figtree-400.woff2") format("woff2")}
@font-face{font-family:"Figtree";font-weight:500;font-style:normal;font-display:swap;src:url("/fonts/Figtree-500.woff2") format("woff2")}
@font-face{font-family:"Figtree";font-weight:600;font-style:normal;font-display:swap;src:url("/fonts/Figtree-600.woff2") format("woff2")}
@font-face{font-family:"Figtree";font-weight:700;font-style:normal;font-display:swap;src:url("/fonts/Figtree-700.woff2") format("woff2")}

:root {
  /* Colour */
  --mipp-white: #FFFFFF;      /* page background, cards, table surface, text on ink */
  --mipp-soft: #F3F4F6;       /* soft surface: feature cards, stats, comparison and FAQ bands, footer, the Sorted. pill */
  --mipp-wash: #F9FAFB;       /* alternate row tint inside white cards. Decorative */
  --mipp-line: #E5E7EB;       /* hairlines, pill and chip fill, check and cross fill. Decorative, never the only boundary of a control */
  --mipp-edge: #D1D5DB;       /* card edges and the footer rule. Decorative only, the content inside always has its own contrast */
  --mipp-field: #6B7280;      /* border of form fields and controls (UI part, needs 3:1). white 4.83; soft 4.39 */
  --mipp-ink: #0F1115;        /* headings, primary text, primary buttons, plan buttons, logo tile, closing panel, cookie banner. white 18.9; soft 17.17 */
  --mipp-body: #374151;       /* body copy. white 10.31; soft 9.37 */
  --mipp-grey: #4B5563;       /* secondary text: captions, notes, labels, stats labels. white 7.56; soft 6.87 */
  --mipp-green: #16794A;      /* MEANING: won or healthy only (Won Revenue figure, WON chip, healthy status). white 5.43; soft 4.93 */
  --mipp-red: #B42318;        /* MEANING: overdue or lost only. Not used on the public site today (nothing there is overdue or lost). white 6.57; soft 5.97 */
  --mipp-green-tint: #E7F4EC; /* chip fill behind green text (app) */
  --mipp-red-tint: #FDECEA;   /* chip fill behind red text (app) */
  --mipp-on-ink-2: #E5E7EB;   /* secondary text on ink (closing panel, cookie banner) */
  --mipp-on-ink-3: #D1D5DB;   /* tertiary text on ink (only used by the optional dark Growth card variant) */

  /* Dark mode, for the signed in app later. Not used on the public site */
  --mipp-dark-bg: #0F1115;    /* page background */
  --mipp-dark-surface: #171A21;/* cards, tables, nav */
  --mipp-dark-raised: #1F232B;/* menus, hovered rows */
  --mipp-dark-line: #2B303A;  /* hairlines. Decorative */
  --mipp-dark-text: #F3F4F6;  /* text */
  --mipp-dark-muted: #A8B0BD; /* secondary text */
  --mipp-dark-field: #8B94A3; /* field and control borders (3:1) */
  --mipp-dark-green: #5FD38D; /* won or healthy on dark */
  --mipp-dark-red: #FF8A80;   /* overdue or lost on dark */

  /* Logo: ink only. Tile ink with a white mark on light, tile soft with an ink mark on dark. No colour accent ever */
  --mipp-logo-tile: var(--mipp-ink);
  --mipp-logo-tile-on-dark: var(--mipp-soft);

  /* Type (see fonts.md). Outfit for headings and numbers, Figtree for everything else */
  --mipp-display: "Outfit", Arial, sans-serif;
  --mipp-sans: "Figtree", Arial, sans-serif;
  --mipp-weight-regular: 400;
  --mipp-weight-medium: 500;
  --mipp-weight-semibold: 600;
  --mipp-weight-bold: 700;
  --mipp-text-h1: 68px;       /* mobile 40px. Outfit 700, line height 1.04 (1.08 mobile), tracking -0.035em. 56px between 769 and 1024px */
  --mipp-text-h2: 46px;       /* mobile 32px. Outfit 700, line height 1.1, tracking -0.03em. Closing panel h2 52px (34px mobile) */
  --mipp-text-h3: 22px;       /* mobile 22px. Outfit 600, line height 1.25, tracking -0.015em (feature card title) */
  --mipp-text-lede: 20px;     /* mobile 17.5px. Figtree 400, line height 1.6 (hero paragraph). Section header paragraph 19px (17px mobile) */
  --mipp-text-body: 17px;     /* mobile 17px. Figtree 400, line height 1.65 */
  --mipp-text-md: 16px;       /* mobile 16px. buttons 16 to 16.5px 600, list items, card copy */
  --mipp-text-sm: 15px;       /* mobile 15px. nav links 15.5px 500, footer links, notes */
  --mipp-text-xs: 14px;       /* mobile 14px. trial note 14.5px, stat label, VAT tag 700, footer small print */
  --mipp-text-2xs: 13px;      /* mobile 13px. smallest text anywhere (stage chips, stat labels on mobile, mobile compare table). Never below 13px */
  --mipp-text-price: 60px;    /* mobile 60px. Outfit 700, line height 1.05, tracking -0.04em */
  --mipp-text-stat: 28px;     /* mobile 20px. Outfit 600 (hero stat number) */
  --mipp-text-amount: 34px;   /* mobile 28px. Outfit 600 (hero panel figures) */
  --mipp-leading-body: 1.65;
  --mipp-tracking-h1: -0.035em;
  --mipp-tracking-h2: -0.03em;

  /* Spacing: 4px base */
  --mipp-space-1: 4px;
  --mipp-space-2: 8px;
  --mipp-space-3: 12px;
  --mipp-space-4: 16px;
  --mipp-space-5: 20px;
  --mipp-space-6: 24px;
  --mipp-space-7: 32px;
  --mipp-space-8: 40px;
  --mipp-space-9: 48px;
  --mipp-space-10: 56px;
  --mipp-space-11: 64px;
  --mipp-space-12: 72px;
  --mipp-space-13: 96px;
  --mipp-wrap: 1200px;      /* content width, as live */
  --mipp-gutter: 32px;      /* 20px under 769px, as live */
  --mipp-section-y: 96px;   /* 60px under 769px */
  --mipp-nav-h: 76px;       /* 64px under 769px */

  /* Radius */
  --mipp-radius-xs: 8px;
  --mipp-radius-sm: 12px;
  --mipp-radius-md: 16px;
  --mipp-radius-lg: 24px;
  --mipp-radius-xl: 28px;
  --mipp-radius-2xl: 36px;
  --mipp-radius-pill: 999px;
  /* xs 8 focus ring, sm 12 table rows, md 16 feature icon, lg 24 cards and hero panel, xl 28 pricing cards, 2xl 36 closing panel (28 mobile), pill 999 buttons, chips and pills. Logo tile 24% of its width */

  /* Shadow */
  --mipp-shadow-panel: 0 30px 70px -20px rgba(15,17,21,.18);/* hero panel only (the one soft shadow on the site) */
  --mipp-shadow-pop: 0 12px 32px -12px rgba(15,17,21,.28);/* DESIGN PROPOSAL for the app: menus and popovers. Not used on the public site */

  /* Focus, motion, targets */
  --mipp-focus: 3px solid var(--mipp-ink);
  --mipp-focus-offset: 3px;
  --mipp-focus-on-ink: 3px solid var(--mipp-white);
  --mipp-tap-min: 44px;
  --mipp-border-card: 2px solid var(--mipp-edge);
  --mipp-border-button: 2px solid var(--mipp-ink);
}

/* Compatibility: names the live stylesheet already defines, pointed at the new values (the live --mipp-radius stays as live: radius is set per component, see CHANGES.md) */
:root {
  --mipp-paper: var(--mipp-white);  /* was #FAFAF7 (page background) */
  --mipp-muted: var(--mipp-grey);   /* was #5C5B55 */
  --mipp-rule: var(--mipp-line);    /* was #DDDAD0 */
  --mipp-hl: var(--mipp-soft);      /* was #FFE45C, the yellow highlighter (the Sorted. pill becomes soft grey) */
  --mipp-mono: var(--mipp-display); /* was a system monospace stack (numbers and labels now use Outfit) */
  --mipp-rule-hair: 1px solid var(--mipp-line);/* was 1px solid #DDDAD0 */
  --mipp-rule-ink: 1px solid var(--mipp-line);/* was 1px solid ink: ruled ink frames soften to hairlines */
  --mipp-rule-double: 1px solid var(--mipp-line);/* was a 6px double ink rule: removed */
  --mipp-border: 2px solid var(--mipp-ink);/* unchanged */
  --mipp-focus-width: 3px;          /* was 2px */
  --mipp-focus-offset: 3px;         /* was 2px */
  --mipp-focus-color: var(--mipp-ink);/* unchanged */
}

/* Old palette names, kept so every page restyles at once. Ink and greys only. */
:root {
  /* Short names: landing.html, landing/*.html, demo.html */
  --p: var(--mipp-ink);
  --pl: var(--mipp-grey);
  --pd: var(--mipp-body);
  --s: var(--mipp-ink);
  --g: var(--mipp-ink);
  --pk: var(--mipp-grey);
  --o: var(--mipp-ink);
  --r: var(--mipp-ink);
  --bg: var(--mipp-soft);
  --bw: var(--mipp-white);
  --tp: var(--mipp-ink);
  --ts: var(--mipp-grey);
  --tl: var(--mipp-grey);
  --bd: var(--mipp-line);

  /* Long names: vs-*.html, privacy.html, terms.html */
  --primary: var(--mipp-ink);
  --secondary: var(--mipp-ink);
  --green: var(--mipp-ink);
  --text: var(--mipp-body);
  --text-light: var(--mipp-grey);
  --border: var(--mipp-line);

  /* Font stacks. Both old names now give the self-hosted Figtree. */
  --font-inter: var(--mipp-sans);
  --font-system: var(--mipp-sans);
}

/* Keyboard focus ring: 3px ink, 3px offset. Follows each control's own radius. White on dark surfaces. */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: var(--mipp-focus);
  outline-offset: var(--mipp-focus-offset);
}
section.cta :focus-visible,
#cookie-banner :focus-visible {
  outline: var(--mipp-focus-on-ink) !important;
}

/* Cookie banner. Built by script (public/mipp-tracking.js and an inline script on some pages) with inline
   styles, so these rules use !important to restyle it without touching the script or its words.
   Ink bar, light text, underlined policy link, Accept and Decline as 44px pills of equal weight. */
#cookie-banner {
  background: var(--mipp-ink) !important;
  color: var(--mipp-on-ink-2) !important;
  font-family: var(--mipp-sans) !important;
  font-size: 14px !important;
  line-height: 1.5;
  padding: 16px 20px !important;
  box-shadow: none !important;
  border-top: 1px solid var(--mipp-field);
}
#cookie-banner a {
  color: var(--mipp-white) !important;
  text-decoration: underline !important;
  text-underline-offset: 3px;
}
#cookie-accept,
#cookie-decline {
  min-height: var(--mipp-tap-min) !important;
  min-width: var(--mipp-tap-min);
  padding: 0 22px !important;
  border: 2px solid var(--mipp-white) !important;
  border-radius: var(--mipp-radius-pill) !important;
  font: 600 14px var(--mipp-sans) !important;
}
#cookie-accept {
  background: var(--mipp-white) !important;
  color: var(--mipp-ink) !important;
}
#cookie-decline {
  background: transparent !important;
  color: var(--mipp-white) !important;
}

/* Motion stops when the visitor asks for less of it. */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
