/* Contents
   1. Tokens and fonts
   2. Base and type
   3. Site shell: header and nav
   4. Site shell: footer
   5. Shared components: status pills, cards, tables
   6. Shared components: page column, sections, buttons (the shared patterns)
   7. Home: hero, sample chat and pill, agent cards and checks, steps, light band, before/with cards
   8. Site shell: CTA band
   9. Motion
   10. Agent pages
   11. Pricing
   12. Platform pages and Integrations
   13. Solutions, segment pages, About and For AI assistants
   14. Free tools
   15. Book a call
   16. AI Visibility Check: hero and form card on the shared patterns
   17. AI Visibility Check request page: pillar offer list, form fields, side cards
   18. Platform Changes Tracker
   19. Legal pages
   20. Responsive rules (last)
   Moving a rule between sections can change which of two equal-specificity rules wins: keep their relative order.
   Tests in tests/site/ slice this file at the "/* ---- " comments (the area notes and these headings), which is why
   the shared patterns, Home and the CTA band sit together before the Agent pages. Check: tools/css_snapshot.js. */

/* ---- 1. Tokens and fonts ---- */
/* Mobile first; wider layouts from 48rem. Self-hosted fonts only, no external assets.
   Design tokens (B-35, from design/stitch/DESIGN.md). Every colour lives in this :root block;
   rules below use var(--...) only (enforced by tests/site/test_tokens.py). */
:root {
  /* Colour: Direction B (D-183, D-185). The site is always dark; dark is the only theme. */
  color-scheme: dark;
  /* Colour: brand. #3B82F6 is the mark (links, borders, icons only: white on it is 3.7:1);
     any fill that carries text uses the brand fill #2563EB (white on it is 5.2:1). */
  --color-primary: #3B82F6;
  --color-primary-dark: #93C5FD;        /* link hover text on dark */
  --color-on-primary: #FFFFFF;
  --color-brand-fill: #2563EB;
  --color-brand-fill-hover: #1D4ED8;
  --color-accent-agent: #A78BFA;
  /* Colour: neutrals */
  --color-bg: #0A1022;
  --color-surface: #121A33;
  --color-border: #222C4C;
  --color-text: #EEF1F7;
  --color-text-muted: #B4BCCE;
  --color-light-band: #F4F6FB;          /* light band (DB-2..DB-5) and the white button's hover */
  --color-focus: #93C5FD;               /* focus ring: 10.5:1 on #0A1022, 9.5:1 on #121A33 */
  /* Colour: status (semantic only; always with a text label). Each pairs >=4.5:1 with its tint and the card. */
  --color-status-good: #4ADE80;
  --color-status-good-tint: #0F2E1C;
  --color-status-warning: #FBBF24;
  --color-status-warning-tint: #33260A;
  --color-status-problem: #F87171;
  --color-status-problem-tint: #3B1518;
  --color-status-neutral: #B4BCCE;
  --color-status-neutral-tint: #222C4C;
  /* Colour: shell bands. The old navy names now carry the dark Direction B values. */
  --color-navy: #0A1022;
  --color-sky: #7CC4FF;
  --color-on-navy: #B4BCCE;       /* light text and links on the dark shell */
  --color-navy-line: #222C4C;     /* dividers on the dark shell */
  --color-focus-on-navy: #93C5FD; /* focus ring in the header and footer */
  /* Colour: agents (agent elements only). Helm's mark is violet #7C3AED (fills, borders); as text on dark it
     is too dim (3.3:1), so --color-helm is the lighter violet used for text and icons. */
  --color-helm-mark: #7C3AED;
  --color-helm: #A78BFA;
  --color-helm-tint: #2A1F4A;
  --color-lookout-mark: #14B8A6;
  --color-lookout: #14B8A6;
  --color-lookout-tint: #0E2F38;
  --color-purser: #C4B5FD;
  --color-purser-tint: #2A1F4A;
  --color-herald: #F49AC1;
  --color-herald-tint: #3A1428;
  --color-steward: #FDA574;
  --color-steward-tint: #3A1E0E;
  /* Card fill */
  --color-card: #121A33;
  /* Home (DB-2, S40): soft text, strong pill border, the hero glow, agent marks and the light chat and table. */
  --color-text-soft: #C9D0E0;
  --color-border-strong: #39446A;
  --color-hero-glow: #1C2A70;          /* S40's #2B3FAF glow at 55% over #0A1022 */
  --color-helm-on-mark: #FFFFFF;       /* text on Helm's violet mark (5.7:1) */
  --color-lookout-on-mark: #04221F;    /* text on Lookout's teal mark */
  --color-helm-ink: #5B21B6;           /* Helm's chat label on white */
  --color-lookout-ink: #0E6B62;        /* Lookout's chat label on white */
  --color-paper: #FFFFFF;
  --color-ink: #101828;
  --color-ink-muted: #475467;
  --color-ink-faint: #667085;
  --color-paper-line: #EEF1F7;
  --color-paper-border: #D0D5DD;
  --color-band-border: #DCE1EB;
  --color-band-accent: #3730A3;
  --color-chat-ask: #E8EEFC;
  --color-chat-source: #F2F4F7;
  --color-approval-wait: #B54708;
  /* White button on dark ("Book a call" pill): #0A1022 on #FFFFFF. */
  --color-on-navy-strong: #FFFFFF;      /* headings, white text and white button fill on dark */
  --color-navy-raised: #121A33;        /* panels, hover fills and hero gradient end on dark */
  --color-on-navy-link: #0A1022;       /* text on a white button */
  --color-on-navy-button-text: #0A1022;/* text on a white button (hover) */
  --color-on-navy-button-hover: #F4F6FB;/* white button hover */
  /* Pricing price card (DB-3, S41): a white card on the dark hero. Names and values as DB-2 (#140). */
  --color-paper: #FFFFFF;
  --color-ink: #101828;                 /* text on paper: 18.0:1 */
  --color-ink-muted: #475467;           /* muted text on paper: 7.6:1 */
  --color-helm-ink: #5B21B6;            /* Helm's name on white */
  --color-lookout-ink: #0E6B62;         /* Lookout's name on white */

  /* Type */
  --font-sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Space Grotesk", "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --font-weight-bold: 700;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --font-size-display: 2.5rem;          /* 40px */
  --line-height-display: 3rem;          /* 48px */
  --letter-spacing-display: -0.02em;
  --font-size-display-mobile: 1.875rem; /* 30px */
  --line-height-display-mobile: 2.25rem;/* 36px */
  --letter-spacing-display-mobile: -0.015em;
  --font-size-h2: 1.5rem;               /* 24px */
  --line-height-h2: 2rem;               /* 32px */
  --letter-spacing-h2: -0.01em;
  --font-size-h3: 1.125rem;             /* 18px */
  --line-height-h3: 1.625rem;           /* 26px */
  --font-size-body-site: 1rem;          /* 16px */
  --line-height-body-site: 1.625rem;    /* 26px */
  --font-size-label: 0.75rem;           /* 12px */
  --line-height-label: 1rem;            /* 16px */
  --font-size-code: 0.8125rem;          /* 13px */
  --line-height-code: 1.125rem;         /* 18px */
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-size-small: 0.875rem;          /* 14px: nav, footer, table text (DESIGN.md body-app) */
  --line-height-small: 1.25rem;         /* 20px */

  /* Shape */
  --radius-button: 6px;
  --radius-card: 8px;
  --radius-pill: 999px;

  /* Spacing: 8px grid */
  --space-1: 0.5rem;  /* 8px */
  --space-2: 1rem;    /* 16px */
  --space-3: 1.5rem;  /* 24px */
  --space-4: 2rem;    /* 32px */
  --space-5: 2.5rem;  /* 40px */
  --space-6: 3rem;    /* 48px */
  --space-half: 0.25rem; /* 4px (DESIGN.md space-xs) */

  /* Layout */
  --width-content: 60rem;   /* 960px: page content (DESIGN.md) */
  --width-shell: 75rem;     /* 1200px: header bar */
  --header-height: 4rem;    /* 64px */
  --tap-target: 2.75rem;    /* 44px: minimum height of a nav link and a button */
  --border-width: 1px;
  --border-width-strong: 2px;
  --border-width-accent: 4px;  /* status panel left border */
  --focus-ring-width: 3px;
  --icon-size: 0.875rem;
  --icon-size-small: 0.4rem;
  --width-dropdown: 14rem;
  --space-quarter: 0.125rem; /* 2px: pill padding */
  --letter-spacing-label: 0.05em;
  --width-prose: 40rem;
  --width-hero: 42rem;      /* hero text column on Home */
  --width-compare: 68.75rem; /* 1100px: Home comparison band (S40) */
  --size-mark: 2.75rem;     /* 44px: Home hero agent marks */
  --size-tile: 3.75rem;     /* 60px: Home crew card mark tile */
  --border-width-mark: 3px;
  --radius-panel: 1.5rem;   /* Home cards, chat and table (S40) */
  --radius-tile: 1.125rem;
  --radius-bubble: 1rem;
  --font-size-hero: 4.5rem; /* 72px: Home h1 from 64rem */
  --line-height-hero: 4.5rem;
  --font-size-section: 3rem;/* 48px: Home section h2 from 64rem */
  --line-height-section: 3.25rem;
  --font-size-lede: 1.25rem;
  --line-height-lede: 1.9375rem;
  --width-reading: 45rem;   /* 720px: legal page reading column (.lgl-body) */
  --width-toc: 14rem;       /* 224px: legal page "On this page" column (.lgl-grid) */
  --icon-box: 2rem;         /* 32px: benefit-card icon box */
  --shadow-raised: 0 1px 2px rgb(0 0 0 / 0.05);
  --shadow-float: 0 24px 48px rgb(3 24 44 / 0.4); /* Home sample card on the navy hero (B-47 S1) */
  --shadow-lifted: 0 12px 32px rgb(3 24 44 / 0.16); /* Helm page sample card on a light band (B-47 S2) */

  /* Aliases for the pre-B-35 names (kept until S0b rewrites the rules that use them) */
  --text: var(--color-text);
  --muted: var(--color-text-muted);
  --bg: var(--color-bg);
  --panel: var(--color-surface);
  --accent: var(--color-primary);
  --accent-dark: var(--color-primary-dark);
  --border: var(--color-border);
  /* B-47 MWG (D-259): values the Modern Web Guidance mockup adds to the palette. */
  --color-raised: #16203D;              /* raised surface on dark (step cards, menu hover) */
  --color-paper-divider: #E4E7EC;       /* hairline on light islands */
  --color-text-faint: #8A93A8;          /* captions on dark: 6.1:1 on #0A1022 */
  --color-wait-tint-light: #FEF3C7;     /* "Waiting for your approval" pill on a light island */
  --color-compare-with: #BFD3FB;        /* the "With Helm and Lookout" card's border */
  --shadow-menu: 0 16px 40px rgb(0 0 0 / 0.45);
  --shadow-chat: 0 30px 80px rgb(0 0 0 / 0.5), 0 0 0 1px rgb(255 255 255 / 0.06);
  --shadow-compare: 0 10px 30px rgb(37 99 235 / 0.08);
  /* Scheme-aware tones: light-dark() of the palette above, not registered, so they re-resolve inside each light
     island (an element with color-scheme: only light). The dark side equals the old dark tokens. */
  --tone-bg: light-dark(var(--color-paper), var(--color-bg));
  --tone-card: light-dark(var(--color-paper), var(--color-card));
  --tone-raised: light-dark(var(--color-light-band), var(--color-raised));
  --tone-line: light-dark(var(--color-paper-divider), var(--color-border));
  --tone-line-strong: light-dark(var(--color-paper-border), var(--color-border-strong));
  --tone-text: light-dark(var(--color-ink), var(--color-text));
  --tone-muted: light-dark(var(--color-ink-muted), var(--color-text-muted));
  --tone-faint: light-dark(var(--color-ink-faint), var(--color-text-faint));
  --tone-focus: light-dark(var(--color-brand-fill-hover), var(--color-focus));
  --tone-kicker: light-dark(var(--color-brand-fill-hover), var(--color-sky));
  --tone-helm: light-dark(var(--color-helm-ink), var(--color-helm));
  --tone-lookout: light-dark(var(--color-lookout-ink), var(--color-lookout));
  --tone-wait: light-dark(var(--color-approval-wait), var(--color-status-warning));
  --tone-wait-tint: light-dark(var(--color-wait-tint-light), var(--color-status-warning-tint));
  /* Fluid layout and type (clamp) for the shared patterns. */
  --width-wrap: 72rem;
  --gutter: clamp(1rem, 0.5rem + 2.5vw, 2rem);
  --radius-section: 0.75rem;
  --space-section: clamp(3.5rem, 2.5rem + 4vw, 6rem);
  --font-size-hero-fluid: clamp(2.25rem, 1.4rem + 3.6vw, 4rem);
  --font-size-section-fluid: clamp(1.75rem, 1.3rem + 1.8vw, 2.5rem);
  --font-size-lede-fluid: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem);
}
/* Self-hosted fonts (latin subset, from @fontsource 5.3.0; OFL licences in fonts/). Space Grotesk is for headings and the wordmark. */
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/fonts/inter-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("/fonts/inter-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("/fonts/inter-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Space Grotesk"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("/fonts/space-grotesk-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Space Grotesk"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("/fonts/space-grotesk-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Space Grotesk"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("/fonts/space-grotesk-latin-700-normal.woff2") format("woff2");
}

/* ---- 2. Base and type ---- */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--font-size-body-site);
  line-height: var(--line-height-body-site);
  /* Only 400/500/600 faces ship: bold (700) text uses the 600 face instead of a faked bold. */
  font-synthesis-weight: none;
  color: var(--color-text);
  background: var(--color-bg);
}
code { font-family: var(--font-mono); font-size: var(--font-size-code); line-height: var(--line-height-code); }
a { color: var(--color-primary); }
a:hover, a:focus { color: var(--color-primary-dark); }
:focus-visible { outline: var(--focus-ring-width) solid var(--color-focus); outline-offset: var(--border-width-strong); }
.skip { position: absolute; left: -999px; top: 0; z-index: 60; background: var(--color-bg); padding: var(--space-1) var(--space-2); }
.skip:focus { left: 0; }
summary { cursor: pointer; }
/* ---- Page content and type scale ---- */
main { padding: var(--space-3) var(--space-2) var(--space-6); max-width: var(--width-content); margin: 0 auto; }
h1, h2, h3 { font-family: var(--font-display); font-weight: var(--font-weight-semibold); color: var(--color-text); }
h1 {
  font-size: var(--font-size-display-mobile); line-height: var(--line-height-display-mobile);
  letter-spacing: var(--letter-spacing-display-mobile); margin: var(--space-1) 0 var(--space-2);
}
h2 { font-size: var(--font-size-h2); line-height: var(--line-height-h2); letter-spacing: var(--letter-spacing-h2); margin: var(--space-5) 0 var(--space-2); }
h3 { font-size: var(--font-size-h3); line-height: var(--line-height-h3); margin: 0 0 var(--space-1); }
.lead { font-size: var(--font-size-h3); line-height: var(--line-height-h3); color: var(--color-text-muted); }

/* ---- 3. Site shell: header and nav ---- */
/* ---- SiteShell (B-47 MWG, design/stitch/screens/B-47-home-mwg.*; flat header D-265): one <nav> whose list is a
   plain flex row, left-aligned 2rem after the wordmark; Log in and Book a call sit at the far right. No Menu, no
   popover, no JavaScript. At 56rem (896px) and below the links wrap onto a second row under the logo row. ---- */
.site-header {
  position: sticky; inset-block-start: 0; z-index: 40;
  background: color-mix(in srgb, var(--color-bg) 88%, transparent); backdrop-filter: blur(10px);
  border-block-end: 1px solid var(--tone-line);
}
.header-inner {
  display: flex; align-items: center; gap: .75rem; min-block-size: var(--header-height);
  max-inline-size: var(--width-wrap); margin-inline: auto; padding-inline: var(--gutter); overflow: hidden;
}
.header-inner > * { flex-shrink: 0; white-space: nowrap; }
.brand {
  display: inline-flex; align-items: center; gap: .5rem; color: var(--tone-text); text-decoration: none;
  font-family: var(--font-display); font-size: 1.125rem; line-height: 1; font-weight: var(--font-weight-bold);
}
.brand:hover, .brand:focus { color: var(--tone-text); }
/* The wordmark's mark: a blue rounded square with a white "L" stroke. */
.brand-mark { flex: none; inline-size: 1.5rem; block-size: 1.5rem; }
.brand-mark rect { fill: var(--color-brand-fill); }
.brand-mark path { fill: none; stroke: var(--color-on-primary); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.site-nav { margin-inline-start: 2rem; margin-inline-end: auto; display: flex; align-items: center; }
.header-actions { display: flex; align-items: center; gap: .75rem; }
.header-actions .login { color: var(--tone-muted); text-decoration: none; font-weight: var(--font-weight-medium); }
.header-actions .login:hover { color: var(--tone-text); }
.site-menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .25rem; }
.site-menu a {
  display: flex; align-items: center; min-block-size: var(--tap-target); padding: .5rem .625rem;
  text-decoration: none; color: var(--tone-muted); font-weight: var(--font-weight-medium);
}
.site-menu a:hover { color: var(--tone-text); }
.site-menu a[aria-current="page"], .site-menu a[aria-current="true"] { color: var(--tone-text); box-shadow: inset 0 -2px 0 var(--color-sky); }
/* Phones and tablets: logo, Log in and Book a call on row 1; the nav takes row 2 and its links wrap. 56rem, not
   760px: the one-row header needs about 877px, so between 761 and 877px Book a call was clipped. */
@media (max-width: 56rem) {
  .header-inner { flex-wrap: wrap; row-gap: 0; }
  .header-actions { margin-inline-start: auto; }
  .header-actions .btn { padding-inline: .875rem; }
  .site-nav { order: 3; flex-basis: 100%; margin-inline-start: 0; }
  .site-menu { flex-wrap: wrap; gap: 0 .25rem; margin-inline-start: -.625rem; }
}
@media (forced-colors: active) { .site-menu a[aria-current="page"] { text-decoration: underline; } }

/* ---- 4. Site shell: footer ---- */
/* ---- SiteShell: footer (four labelled groups and the legal row) ---- */
.site-footer { margin-block-start: var(--space-6); border-block-start: 1px solid var(--tone-line); color: var(--tone-muted); font-size: .875rem; line-height: 1.5; }
.site-footer > .wrap { padding-block: 2.5rem; }
.footer-blurb { margin: 0 0 2rem; max-inline-size: 36rem; color: var(--tone-text); font-weight: var(--font-weight-medium); }
.footer-groups { display: grid; gap: 1.5rem 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); }
.footer-group h2 {
  margin: 0 0 .5rem; font-family: var(--font-sans); color: var(--tone-text); font-size: .75rem; line-height: 1.2;
  font-weight: var(--font-weight-semibold); letter-spacing: .08em; text-transform: uppercase;
}
.footer-group ul, .footer-legal-links { list-style: none; margin: 0; padding: 0; }
.footer-group a, .footer-legal-links a { display: inline-block; padding: .25rem 0; color: var(--tone-muted); text-decoration: none; }
.footer-group a:hover, .footer-group a:focus, .footer-legal-links a:hover, .footer-legal-links a:focus { color: var(--tone-text); text-decoration: underline; }
.footer-bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem;
  margin-block-start: 2rem; padding-block-start: 1.5rem; border-block-start: 1px solid var(--tone-line);
}
.footer-legal { margin: 0; font-size: .75rem; color: var(--tone-faint); }
.footer-legal-links { display: flex; gap: 1.25rem; }

/* ---- 5. Shared components: status pills, cards, tables ---- */
/* ---- StatusPill: always a text label; Planned / Coming / In development use .neutral ---- */
.status-pill {
  display: inline-flex; align-items: center; padding: 0 var(--space-1); border-radius: var(--radius-pill);
  font-size: var(--font-size-label); line-height: var(--line-height-label); font-weight: var(--font-weight-medium);
  padding-top: var(--space-quarter); padding-bottom: var(--space-quarter);
}
.status-pill.neutral { background: var(--color-status-neutral-tint); color: var(--color-status-neutral); }
/* ---- Cards: existing .card, and BenefitCard (.benefit-card) ---- */
.status { background: var(--color-surface); border-left: var(--border-width-accent) solid var(--color-primary); padding: var(--space-1) var(--space-2); margin: var(--space-3) 0; }
/* ---- Tables (and the status table) ---- */
table { width: 100%; border-collapse: collapse; margin: var(--space-2) 0; font-size: var(--font-size-small); line-height: var(--line-height-small); }
caption { text-align: left; font-weight: var(--font-weight-semibold); margin-bottom: var(--space-1); }
th, td { text-align: left; vertical-align: top; padding: var(--space-1); border-bottom: var(--border-width) solid var(--color-border); }
thead th { background: var(--color-surface); font-weight: var(--font-weight-semibold); }
.status-table { border: var(--border-width) solid var(--color-border); border-radius: var(--radius-button); border-collapse: separate; border-spacing: 0; overflow: hidden; }
.status-table th, .status-table td { padding: var(--space-2); vertical-align: middle; }
.status-table tbody tr:last-child > * { border-bottom: 0; }
.status-table tbody td { color: var(--color-text-muted); }
.status-table tbody th { font-weight: var(--font-weight-medium); }

/* ---- 6. Shared components: page column, sections, buttons (the shared patterns) ---- */
/* ---- Shared patterns (B-47 MWG, D-259; Home first, the other pages move onto these in slices 2/5-5/5).
   Tokens: the --tone-* light-dark() tokens resolve per element, so a light island (.chat, .band: color-scheme only
   light, with its own background and color) re-themes everything inside it. .wrap is the page column; .section a
   band; .kicker the small label over a heading; .btn.primary/.ghost the buttons; .head a section heading block;
   .agents/.agent the agent card (article, stretched h3 link, subgrid rows, container query); .steps numbered cards;
   .band the light band; .compare the before/with cards; .cta .panel the closing panel; .reveal the scroll-driven
   entrance (motion only with no-preference and animation-timeline support; the final state is the default). ---- */
main:has(> .hero) { max-width: none; padding: 0; }
.chat :focus-visible, .band :focus-visible, .site-header :focus-visible, .site-footer :focus-visible { outline-color: var(--tone-focus); }
.wrap { max-inline-size: var(--width-wrap); margin-inline: auto; padding-inline: var(--gutter); }
.kicker { margin: 0; font-family: var(--font-sans); font-size: .8125rem; line-height: 1.2; font-weight: var(--font-weight-semibold); letter-spacing: .08em; text-transform: uppercase; color: var(--tone-kicker); }
.btn {
  display: inline-flex; align-items: center; gap: .5rem; min-block-size: var(--tap-target); padding: .625rem 1.125rem;
  border: 1px solid transparent; border-radius: .5rem; font-weight: var(--font-weight-semibold); line-height: 1.25; text-decoration: none;
}
.btn.primary, .btn.primary:hover, .btn.primary:focus { color: var(--color-on-primary); }
.btn.primary { background: var(--color-brand-fill); }
.btn.primary:hover { background: var(--color-brand-fill-hover); }
.btn.ghost, .btn.ghost:hover, .btn.ghost:focus { color: var(--tone-text); }
.btn.ghost { border-color: var(--tone-line-strong); }
.btn.ghost:hover { border-color: var(--tone-muted); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.section { padding-block: var(--space-section); }
.head { max-inline-size: 40rem; margin-block-end: clamp(2rem, 1.5rem + 2vw, 3rem); }
.head:last-child { margin-block-end: 0; }
.head h2 { font-size: var(--font-size-section-fluid); line-height: 1.15; letter-spacing: -.015em; margin: .625rem 0 .875rem; text-wrap: balance; }
.head h2:first-child { margin-block-start: 0; }
.head h2:last-child { margin-block-end: 0; }
.head p { margin: 0; }
.head p:last-child:not(.kicker) { color: var(--tone-muted); font-size: 1.0625rem; text-wrap: pretty; }

/* ---- 7. Home: hero, sample chat and pill, agent cards and checks, steps, light band, before/with cards ---- */
/* Hero: text beside the sample chat from 60rem; a soft blue glow behind. */
.hero { position: relative; isolation: isolate; padding-block: clamp(3rem, 2rem + 5vw, 6.5rem) clamp(3rem, 2rem + 4vw, 5.5rem); overflow: clip; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto 30%; block-size: 70%; z-index: -1; background: radial-gradient(closest-side, var(--color-hero-glow), transparent); }
/* Two columns once both fit (about 60rem), one below: auto-fit, no breakpoint. */
.hero-grid { display: grid; gap: clamp(2rem, 1rem + 4vw, 4rem); align-items: center; grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr)); }
.hero h1 { font-size: var(--font-size-hero-fluid); line-height: 1.05; letter-spacing: -.02em; margin: .875rem 0 1.25rem; text-wrap: balance; }
.lede { margin: 0 0 2rem; max-inline-size: 34rem; font-size: var(--font-size-lede-fluid); color: var(--tone-muted); text-wrap: pretty; }
/* Sample chat: a light island and a picture, not a control (Approve and Reject are spans). */
.chat {
  color-scheme: only light; background: var(--tone-card); color: var(--tone-text); accent-color: var(--color-brand-fill);
  border-radius: 1rem; box-shadow: var(--shadow-chat); margin: 0; overflow: hidden;
}
.chat p { margin: 0; }
.chat-bar { display: flex; align-items: center; gap: .5rem; padding: .875rem 1.125rem; border-block-end: 1px solid var(--tone-line); font-size: .875rem; color: var(--tone-muted); }
.chat-bar strong { color: var(--tone-text); }
.chat-bar .dots { display: inline-flex; gap: .3rem; margin-inline-end: .375rem; }
.chat-bar .dots i { inline-size: .5rem; block-size: .5rem; border-radius: 50%; background: var(--tone-line-strong); }
.chat-body { display: grid; gap: 1rem; padding: 1.25rem 1.125rem; font-size: .9375rem; line-height: 1.55; }
.ask { justify-self: end; max-inline-size: 85%; background: var(--color-brand-fill); color: var(--color-on-primary); padding: .625rem .875rem; border-radius: 1rem 1rem .25rem 1rem; }
.reply { display: grid; grid-template-columns: 2rem 1fr; gap: .75rem; }
.mark { display: grid; place-items: center; inline-size: 2rem; block-size: 2rem; border-radius: .5rem; font-family: var(--font-display); font-size: .875rem; line-height: 1; font-weight: var(--font-weight-bold); }
.reply.helm .mark, .agent.helm .mark { background: var(--color-helm-mark); color: var(--color-helm-on-mark); }
.reply.lookout .mark, .agent.lookout .mark { background: var(--color-lookout-mark); color: var(--color-lookout-on-mark); }
.who { font-weight: var(--font-weight-semibold); font-size: .8125rem; margin-block-end: .125rem; }
.reply.helm .who { color: var(--tone-helm); }
.reply.lookout .who { color: var(--tone-lookout); }
.chat .source { font-size: .75rem; color: var(--tone-faint); margin-block-start: .375rem; }
.approval { margin-block-start: .75rem; border: 1px solid var(--tone-line); border-radius: .625rem; padding: .75rem; background: var(--tone-raised); display: grid; gap: .625rem; }
.pill { justify-self: start; display: inline-flex; align-items: center; gap: .375rem; font-size: .75rem; line-height: 1; font-weight: var(--font-weight-semibold); padding: .3rem .5rem; border-radius: var(--radius-pill); background: var(--tone-wait-tint); color: var(--tone-wait); }
.pill::before { content: ""; inline-size: .4rem; block-size: .4rem; border-radius: 50%; background: currentColor; }
.change { font-size: .875rem; }
.change code { font-size: .8125rem; line-height: 1; font-weight: var(--font-weight-medium); }
.decide { display: flex; gap: .5rem; }
.decide span { font-weight: var(--font-weight-semibold); font-size: .8125rem; padding: .4rem .75rem; border-radius: .375rem; }
.decide .yes { background: var(--color-brand-fill); color: var(--color-on-primary); }
.decide .no { border: 1px solid var(--tone-line-strong); }
.composer { display: flex; align-items: center; justify-content: space-between; margin: 0 1.125rem 1.125rem; padding: .625rem .625rem .625rem .875rem; border: 1px solid var(--tone-line-strong); border-radius: .75rem; color: var(--tone-faint); font-size: .9375rem; }
.composer i { display: grid; place-items: center; inline-size: 2rem; block-size: 2rem; border-radius: .5rem; background: var(--color-brand-fill); }
.composer svg { inline-size: 1rem; block-size: 1rem; stroke: var(--color-on-primary); fill: none; stroke-width: 2; }
.chat figcaption { padding: .625rem 1.125rem; font-size: .75rem; color: var(--tone-faint); border-block-start: 1px solid var(--tone-line); background: var(--tone-raised); }
/* Agent cards: the article is the card; the h3 link is stretched over it; rows line up across cards (subgrid). */
.agents { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); list-style: none; padding: 0; margin: 0; }
.agents > li { display: grid; grid-row: span 4; grid-template-rows: subgrid; }
.agent {
  grid-row: span 4; display: grid; grid-template-rows: subgrid; gap: 1rem; container-type: inline-size; position: relative;
  padding: 1.5rem; background: var(--tone-card); border: 1px solid var(--tone-line); border-radius: var(--radius-section);
}
.agent p { margin: 0; }
.agent header { display: flex; align-items: center; gap: .875rem; }
.agent hgroup { margin: 0; }
.agent .mark { inline-size: 3rem; block-size: 3rem; border-radius: .75rem; font-size: 1.25rem; }
.agent h3 { margin: 0; font-size: 1.375rem; line-height: 1.15; }
.agent h3 a { color: var(--tone-text); text-decoration: none; }
.agent h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.agent h3 a:focus-visible { outline: none; }
.agent:has(a.card-link:focus-visible) { outline: 2px solid var(--tone-focus); outline-offset: 3px; }
.agent:has(a.card-link:hover) { border-color: var(--tone-line-strong); }
.agent.helm:has(a.card-link:hover) { border-color: var(--tone-helm); }
.agent.lookout:has(a.card-link:hover) { border-color: var(--tone-lookout); }
.agent .role { font-size: .875rem; color: var(--tone-muted); }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.checks li { display: flex; gap: .625rem; color: var(--tone-muted); }
.agent.helm .checks svg { stroke: var(--tone-helm); }
.agent.lookout .checks svg { stroke: var(--tone-lookout); }
.agent footer { align-self: end; font-weight: var(--font-weight-semibold); font-size: .9375rem; }
.agent.helm footer { color: var(--tone-helm); }
.agent.lookout footer { color: var(--tone-lookout); }
@container (min-width: 40rem) { .checks { grid-template-columns: 1fr 1fr; } }
.more-note { margin: 1.25rem 0 0; color: var(--tone-faint); font-size: .9375rem; }
/* Numbered step cards (the request page's own .steps list keeps its rules). */
.steps:not(.request-page .steps) { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); counter-reset: step; }
.steps:not(.request-page .steps) li { counter-increment: step; padding: 1.5rem; border-radius: var(--radius-section); background: var(--tone-raised); border: 1px solid var(--tone-line); }
.steps:not(.request-page .steps) li::before {
  content: counter(step); display: grid; place-items: center; inline-size: 2.25rem; block-size: 2.25rem; border-radius: 50%;
  border: 1px solid var(--tone-line-strong); font-family: var(--font-display); font-size: 1rem; line-height: 1; font-weight: var(--font-weight-bold); color: var(--color-sky); margin-block-end: 1rem;
}
.steps:not(.request-page .steps) h3 { margin: 0 0 .375rem; font-size: 1.125rem; }
.steps:not(.request-page .steps) p { margin: 0; color: var(--tone-muted); }
/* Light band (an island) and the before/with cards. */
.band { color-scheme: only light; background: var(--color-light-band); color: var(--tone-text); }
/* Headings take the island's own text tone (the global h1-h3 colour is the dark-scheme one). */
.band :is(h2, h3), .chat :is(h2, h3) { color: var(--tone-text); }
.compare { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); }
.compare article { background: var(--tone-card); border: 1px solid var(--tone-line); border-radius: var(--radius-section); padding: 1.5rem; }
.compare article.with { border-color: var(--color-compare-with); box-shadow: var(--shadow-compare); }
.compare h3 { margin: 0 0 1rem; font-size: 1.125rem; }
.compare dl { margin: 0; display: grid; gap: .875rem; }
.compare dt { font-size: .75rem; line-height: 1.2; font-weight: var(--font-weight-semibold); text-transform: uppercase; letter-spacing: .06em; color: var(--tone-faint); }
.compare dd { margin: .2rem 0 0; }
.compare .without dd { color: var(--tone-muted); }

/* ---- 8. Site shell: CTA band ---- */
/* Closing call to action: a panel on a deep blue glow. */
.cta { text-align: center; }
.cta .panel {
  padding: clamp(2.5rem, 2rem + 3vw, 4rem) var(--gutter); border-radius: 1.25rem; border: 1px solid var(--tone-line);
  background: radial-gradient(120% 140% at 50% 0%, var(--color-hero-glow) 0%, var(--color-card) 60%);
}
.cta h2 { margin: 0 0 .875rem; font-size: var(--font-size-section-fluid); line-height: 1.15; }
.cta .panel p { margin: 0 auto 1.75rem; max-inline-size: 34rem; color: var(--tone-muted); }
.cta .actions { justify-content: center; }
.section.cta + * { margin-block-start: 0; }
body:has(main > .hero) .site-footer { margin-block-start: 0; }

/* ---- 9. Motion ---- */
/* Motion: opt-in, non-essential; with reduced motion nothing animates or transitions (scroll reveal also needs support). */
@media (prefers-reduced-motion: no-preference) {
  .btn { transition: background-color .15s, border-color .15s; }
  .agent { transition: border-color .15s; }
  @supports (animation-timeline: view()) {
    .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 55%; }
  }
}
@keyframes rise { from { opacity: 0; translate: 0 24px; } }

/* ---- 10. Agent pages ---- */
/* ---- Agent pages and Pricing on the shared patterns (B-47 MWG 2/5, P-0520, D-259; /agents/helm.html,
   /agents/lookout.html, /pricing.html). Only what the shared patterns above lack: .split (head beside a sample),
   .kicker.id (the agent identity row), .agents.items (two-row article cards: the 'What <agent> does' steps and
   Pricing's included items), .diff/.meter/.title inside a sample .chat, .compare > section (the band's two cards),
   .agent.plan (the plan cards; the Book a call / Talk to us button is the card's one stretched a.card-link), .faq.
   Agent colour only on the name, the mark and the checks. ---- */
.split { display: grid; gap: clamp(2rem, 1rem + 4vw, 4rem); align-items: center; grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr)); }
.split > .head { margin-block-end: 0; }
.kicker.id { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; margin-block-end: 1.5rem; }
.kicker.id .mark { inline-size: 2.5rem; block-size: 2.5rem; border-radius: .625rem; font-size: 1.125rem; letter-spacing: 0; }
.kicker.id.helm .mark { background: var(--color-helm-mark); color: var(--color-helm-on-mark); }
.kicker.id.lookout .mark { background: var(--color-lookout-mark); color: var(--color-lookout-on-mark); }
.kicker.id .name { font-family: var(--font-display); font-size: 1.25rem; letter-spacing: 0; text-transform: none; }
.kicker.id.helm .name { color: var(--tone-helm); }
.kicker.id.lookout .name { color: var(--tone-lookout); }
.agents.items { grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); }
.agents.items > li, .agent.item { grid-row: span 2; }
.agent.item { gap: .75rem; }
.agent.item header { flex-direction: column; align-items: flex-start; gap: .75rem; }
.agent.item h3 { font-size: 1.125rem; }
.agent.item p { color: var(--tone-muted); }
.agent:is(.item, .tool) .mark { inline-size: 2.5rem; block-size: 2.5rem; border-radius: .625rem; border: 1px solid var(--tone-line); background: var(--tone-raised); color: var(--tone-kicker); }
.agent:is(.item, .tool) .mark svg { inline-size: 1.25rem; block-size: 1.25rem; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.chat .decide { flex-wrap: wrap; }
.chat .decide span { white-space: nowrap; }
.reply .pill { margin-block: .25rem .5rem; }
.chat .title { font-family: var(--font-display); font-weight: var(--font-weight-semibold); font-size: 1.125rem; line-height: 1.3; }
.diff { margin: 0; display: grid; gap: .5rem; }
.diff dt { font-size: .75rem; line-height: 1.2; font-weight: var(--font-weight-semibold); text-transform: uppercase; letter-spacing: .06em; color: var(--tone-muted); }
.diff dd { margin: .125rem 0 0; font-weight: var(--font-weight-medium); }
.meter { display: grid; gap: .25rem; }
.meter .count { font-family: var(--font-display); font-size: 1.75rem; line-height: 1.1; font-weight: var(--font-weight-bold); }
.meter .count span { font-size: 1rem; color: var(--tone-muted); }
.meter .bar { block-size: .5rem; border-radius: var(--radius-pill); background: var(--tone-line); overflow: hidden; }
.meter .bar span { display: block; block-size: 100%; inline-size: 35%; background: var(--color-brand-fill); }
.compare > section { background: var(--tone-card); border: 1px solid var(--tone-line); border-radius: var(--radius-section); padding: 1.5rem; }
.compare h2 { margin: 0 0 1rem; font-size: 1.25rem; line-height: 1.2; }
.compare > section > p { margin: 0; }
.compare .more-note { margin-block-start: 1.25rem; color: var(--tone-muted); }
.status-table.where { margin: 0; }
.checks svg { flex: none; inline-size: 1.125rem; block-size: 1.125rem; margin-block-start: .2rem; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; stroke: var(--tone-kicker); }
.checks .helm svg, .compare .helm .checks svg { stroke: var(--tone-helm); }
.checks .lookout svg, .compare .lookout .checks svg { stroke: var(--tone-lookout); }
.checks .helm strong { color: var(--tone-helm); }
.checks .lookout strong { color: var(--tone-lookout); }

/* ---- 11. Pricing ---- */
.assure { margin-block-start: -.75rem; }
.agent.plan { grid-row: auto; grid-template-rows: none; gap: 1.25rem; padding: clamp(1.5rem, 1rem + 2vw, 2.25rem); }
.agent.plan h2 { margin: 0; font-size: 1.375rem; line-height: 1.15; }
.price { margin: .5rem 0 0; color: var(--tone-muted); }
.price strong { font-family: var(--font-display); font-size: clamp(2.5rem, 2rem + 2vw, 3.5rem); line-height: 1; letter-spacing: -.02em; color: var(--tone-text); }
.agent.plan .content { display: grid; gap: 1rem; }
.agent.plan footer { display: grid; gap: .75rem; justify-items: start; font-weight: var(--font-weight-regular); }
.agent.plan a.card-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.agent.plan a.card-link:focus-visible { outline: none; }
.agent.plan.wide header { display: grid; gap: .75rem; }
@container (min-width: 56rem) { .agent.plan.wide .checks { grid-template-columns: repeat(3, 1fr); } }
.faq { display: grid; gap: .75rem; }
.faq details { background: var(--tone-card); border: 1px solid var(--tone-line); border-radius: .75rem; padding-inline: 1.25rem; }
.faq summary { display: flex; align-items: center; min-block-size: var(--tap-target); padding-block: .75rem; cursor: pointer; font-weight: var(--font-weight-semibold); color: var(--tone-text); }
.faq details p { margin: 0 0 1rem; color: var(--tone-muted); }

/* ---- 12. Platform pages and Integrations ---- */
/* ---- Platform pages, Integrations, Free tools, AI Visibility Check and Book a call on the shared patterns
   (B-47 MWG 3/5, P-0521, D-259). Only what the shared patterns lack: .agents.items.wide (six item cards, three to a
   row), .agent.tool (Free tools: mark, Coming soon pill and title in the header; the AI Visibility Check card's
   footer link is its one stretched a.card-link), the status table inside a light band, .tagrow (kicker beside a
   pill), .link-row, and the request page's hero and form in the shared tones. ---- */
.agents.items.wide { grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }
/* The status table inside a light band takes the island's tones; its caption repeats the h2, so it is for screen
   readers only. */
.band .status-table { margin: 0; border-color: var(--tone-line); background: var(--tone-card); }
.band .status-table :is(th, td) { border-color: var(--tone-line); color: var(--tone-text); }
.band .status-table thead th { background: var(--tone-raised); }
.band .status-table tbody td { color: var(--tone-muted); }
.status-table.platforms tbody th { font-weight: var(--font-weight-semibold); }
.status-table.platforms caption { position: absolute; inline-size: 1px; block-size: 1px; margin: 0; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

/* ---- 13. Solutions, segment pages, About and For AI assistants ---- */
/* ---- Solutions, the four segment pages, About and For AI assistants on the shared patterns (B-47 MWG 4/5, P-0522,
   D-259). Only what the shared patterns lack: .agent.item.link (an item card with one destination: the h3's stretched
   a.card-link, then an aria-hidden footer line; three subgrid rows), .list-title over a .link-row.chips list (About's
   "Who it is for"), and .reading (llm-info: a plain page at reading width, no reveal motion). ---- */
.agents.items.links > li, .agent.item.link { grid-row: span 3; }
.agent.item.link footer { color: var(--tone-kicker); }
.agent.item.link footer span { display: inline-flex; align-items: center; gap: .375rem; }
.agent.item.link footer .icon { inline-size: 1rem; block-size: 1rem; margin: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.list-title { margin: 2rem 0 .75rem; font-size: .75rem; line-height: 1.2; font-weight: var(--font-weight-semibold); text-transform: uppercase; letter-spacing: .06em; color: var(--tone-muted); }
.link-row.chips { gap: .5rem; }
.link-row.chips a { padding-inline: 1rem; border: 1px solid var(--tone-line); border-radius: var(--radius-pill); background: var(--tone-card); color: var(--tone-text); text-decoration: none; }
.link-row.chips a:hover { border-color: var(--tone-line-strong); }
.band .status-table.where th:first-child { inline-size: 30%; }
.reading { max-inline-size: var(--width-reading); margin-inline: auto; }
.reading :is(h1, h2) { text-wrap: balance; }
.reading :is(p, li) { color: var(--tone-muted); }
.reading a { color: var(--tone-text); }

/* ---- 14. Free tools ---- */
.agent.tool header { flex-wrap: wrap; justify-content: space-between; }
.agent.tool h3 { flex-basis: 100%; }
.agent.tool .intro { color: var(--tone-muted); }
.agent.tool .checks li { color: var(--tone-text); }
.agent.tool footer { display: grid; gap: .5rem; padding-block-start: 1rem; border-block-start: 1px solid var(--tone-line); font-weight: var(--font-weight-regular); color: var(--tone-muted); }
.agent footer a.card-link { font-weight: var(--font-weight-semibold); }
.agent footer a.card-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.agent footer a.card-link:focus-visible { outline: none; }
.agent:has(footer a.card-link:hover) { border-color: var(--tone-line-strong); }

/* ---- 15. Book a call ---- */
.tagrow { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; }
.link-row { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; list-style: none; margin: 0; padding: 0; }
.link-row a { display: inline-flex; align-items: center; min-block-size: var(--tap-target); font-weight: var(--font-weight-semibold); }

/* ---- 16. AI Visibility Check: hero and form card on the shared patterns ---- */
/* AI Visibility Check: the back link sits in the hero; the form is a card on the page's dark tones with labels above
   inputs and the shared focus ring (the closed-until-public behaviour is build.py's). */
.request-page.hero .back-link { margin-block-end: 1rem; }
.request-page.hero h1 { margin-block-start: 0; }
.request-page .wrap.request-layout { margin: 0 auto; }
.request-page.hero { padding-block-end: 0; }
.request-page input:focus-visible { outline: 2px solid var(--tone-focus); outline-offset: 2px; }
.request-page .request-form .btn { inline-size: 100%; justify-content: center; }
.request-page .request-form .btn:disabled { cursor: not-allowed; }
.request-page .request-form .btn:disabled:hover { background: var(--color-brand-fill); }

/* ---- 17. AI Visibility Check request page: pillar offer list, form fields, side cards ---- */
/* ---- Pillar page template (B-35 S2). A page opts in by wrapping its content in .pillar:
   .pillar-eyebrow, .pillar-hero, .offer-cards > .offer-card (pill, h2, sentence, .offer-list, .card-action),
   .feature-rows > ul > .feature-row (h3, pill, p), the shared .status panel and an optional .cta-band.primary.
   A card title may be h2 or h3. A page with a single offer may use one .offer-card directly inside .pillar.
   Unused until the pillar word-limit decision (PM, 2026-10-31): .pillar-eyebrow and .cta-band.primary; no page
   renders them yet. .pillar-hero .button was used by the segment template's hero "Book a call" (B-35 S3b) until
   P-0237; no page uses it now. ---- */
.offer-list { list-style: none; margin: 0; padding: 0; font-size: var(--font-size-small); line-height: var(--line-height-small); }
.offer-list li { position: relative; padding-left: var(--space-3); }
.offer-list li + li { margin-top: var(--space-1); }
/* Check mark drawn with two borders (no icon font, no image); decorative, so not a status colour. */
.offer-list li::before {
  content: ""; position: absolute; left: var(--space-half); top: var(--space-half);
  width: var(--icon-size-small); height: calc(var(--icon-size-small) * 1.75);
  border-right: var(--border-width-strong) solid var(--color-primary); border-bottom: var(--border-width-strong) solid var(--color-primary);
  transform: rotate(45deg);
}
/* Title links stay recognisable at rest (WCAG 1.4.1): link colour and underline. */
.status-pill strong { font-weight: inherit; }
/* ---- AI Visibility Check request page (B-02 S1). The page opts in with <div class="pillar request-page">: a back
   link to Free tools, h1 + lead, one slate "Coming soon" pill, then .request-layout: the form card
   (.request-form: labelled .field inputs, the competitors fieldset, .form-note, the submit button and, while
   build.REQUEST_FORM_ACTION is empty, the .form-closed line) and .request-side ("What you will see" check list,
   "What happens next" numbered .steps, the shared Status panel). One column below 48rem, two from 48rem. ---- */
.request-page .back-link { margin: 0; font-size: var(--font-size-small); line-height: var(--line-height-small); }
.request-page .back-link a { display: inline-flex; align-items: center; gap: var(--space-1); min-height: var(--tap-target); text-decoration: none; font-weight: var(--font-weight-medium); }
.request-page .back-link a:hover, .request-page .back-link a:focus { text-decoration: underline; }
/* Chevron drawn with borders; decorative. */
.request-page .back-link a::before {
  content: ""; width: var(--icon-size-small); height: var(--icon-size-small);
  border-left: var(--border-width-strong) solid currentColor; border-bottom: var(--border-width-strong) solid currentColor;
  transform: rotate(45deg);
}
.request-page h1 { margin-top: var(--space-1); }
.request-page .request-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-3); margin: var(--space-4) 0 0; }
.request-page .request-form, .request-page .side-card {
  padding: var(--space-3); background: var(--color-card); border: var(--border-width) solid var(--color-border); border-radius: var(--radius-card);
}
.request-page .request-form h2, .request-page .side-card h2 { margin: 0 0 var(--space-2); font-size: var(--font-size-h3); line-height: var(--line-height-h3); letter-spacing: normal; }
.request-page .request-form h2 { margin-bottom: var(--space-3); }
.request-page .field { margin: 0 0 var(--space-3); padding: 0; border: 0; min-width: 0; }
.request-page .field label, .request-page .field legend {
  display: block; margin: 0 0 var(--space-1); padding: 0;
  font-size: var(--font-size-small); line-height: var(--line-height-small); font-weight: var(--font-weight-medium); color: var(--color-text);
}
/* Inputs: 16px text, at least 44px high; the border and placeholder use the muted text colour so both pass
   WCAG AA (non-text 3:1, text 4.5:1). */
.request-page input {
  display: block; width: 100%; min-height: var(--tap-target); margin: 0; padding: var(--space-1) var(--space-2);
  font-family: inherit; font-size: var(--font-size-body-site); line-height: var(--line-height-body-site);
  color: var(--color-text); background: var(--color-card);
  border: var(--border-width) solid var(--color-text-muted); border-radius: var(--radius-button);
}
.request-page input::placeholder { color: var(--color-text-muted); opacity: 1; }
.request-page .competitors input + label + input { margin-top: var(--space-1); }
.request-page .field-help, .request-page .form-note, .request-page .form-closed {
  margin: var(--space-1) 0 0; color: var(--color-text-muted); font-size: var(--font-size-small); line-height: var(--line-height-small);
}
.request-page .form-note { margin: 0 0 var(--space-3); }
.request-page .form-closed { text-align: center; }
.request-page .visually-hidden {
  position: absolute; width: var(--border-width); height: var(--border-width); margin: 0; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.request-page .request-side { display: grid; gap: var(--space-3); align-content: start; }
.request-page .side-card .offer-list { font-size: var(--font-size-small); line-height: var(--line-height-small); }
/* Number badges: a CSS counter in a small round badge on the surface colour. */
.request-page .steps { list-style: none; margin: 0; padding: 0; counter-reset: step; font-size: var(--font-size-small); line-height: var(--line-height-small); }
.request-page .steps li { position: relative; padding-left: var(--space-4); counter-increment: step; }
.request-page .steps li + li { margin-top: var(--space-2); }
.request-page .steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  display: flex; align-items: center; justify-content: center; width: var(--space-3); height: var(--space-3);
  border: var(--border-width) solid var(--color-border); border-radius: var(--radius-pill); background: var(--color-surface);
  color: var(--color-text); font-size: var(--font-size-label); line-height: var(--line-height-label); font-weight: var(--font-weight-medium);
}
.request-page .request-side .status { margin: 0; }
.request-page .request-side .status p + p { margin-top: var(--space-1); }

/* ---- 18. Platform Changes Tracker ---- */
/* ---- Platform Changes Tracker on the shared patterns (B-47 MWG 5/5, P-0523, D-259). Generated by
   build.tracker_page() from entries.json: the shared .hero (h1, .lede, the muted .tracker-updated line with a
   decorative calendar icon, nav.tracker-jump: pill links to the groups that exist), then one .section per group (every
   second one on the light .band) with a .head and ul.agents.items.tracker of article.agent.item.tracker-entry cards:
   header (h3), the change paragraph, and a dl (Date, Status, What to do, Sources) below a divider. Two cards to a row
   once both fit, rows lined up by the shared subgrid; the dl's labels sit in a narrow column once the card is 28rem
   wide (container query). The Status value (the dl's second dd) is drawn as a neutral pill; sources are underlined
   host links that wrap. No stretched link: a card has several sources, not one destination. ---- */
.date-note { color: var(--tone-muted); }
/* Inline flow, not flex: flex would turn the text runs around <time> into separate items with gaps. */
.tracker-updated { margin: 0; color: var(--tone-muted); }
.tracker-updated .tracker-icon {
  inline-size: 1.125rem; block-size: 1.125rem; vertical-align: -.2em;
  fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}
.tracker-jump { margin-block-start: 1.5rem; }
.tracker-jump ul { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 0; padding: 0; }
.tracker-jump a {
  display: inline-flex; align-items: center; min-block-size: var(--tap-target); padding-inline: 1rem;
  border: 1px solid var(--tone-line); border-radius: var(--radius-pill); background: var(--tone-card); color: var(--tone-text);
  text-decoration: none; font-size: .9375rem; font-weight: var(--font-weight-medium);
}
.tracker-jump a:hover { border-color: var(--tone-line-strong); }
.agents.items.tracker { grid-template-columns: repeat(auto-fit, minmax(min(100%, 30rem), 1fr)); }
.agents.items.tracker > li, .agent.item.tracker-entry { grid-row: span 3; }
.agent.item.tracker-entry > :is(p, dl) { align-self: start; }
.agent.item.tracker-entry > p { color: var(--tone-text); }
.tracker-entry dl { margin: 0; padding-block-start: 1rem; border-block-start: 1px solid var(--tone-line); font-size: .9375rem; line-height: 1.5; }
.tracker-entry dt {
  margin-block-start: .875rem; color: var(--tone-faint); text-transform: uppercase; letter-spacing: .06em;
  font-size: .75rem; line-height: 1.2; font-weight: var(--font-weight-semibold);
}
.tracker-entry dt:first-child { margin-block-start: 0; }
.tracker-entry dd { margin: .25rem 0 0; min-inline-size: 0; overflow-wrap: anywhere; color: var(--tone-muted); }
.tracker-entry dd > time { font-weight: var(--font-weight-medium); color: var(--tone-text); }
.tracker-entry dd:nth-of-type(2) {
  inline-size: fit-content; padding: .2rem .625rem; border: 1px solid var(--tone-line); border-radius: var(--radius-pill);
  background: var(--tone-raised); color: var(--tone-text); font-size: .75rem; line-height: 1.2; font-weight: var(--font-weight-semibold);
}
.tracker-entry dd ul { display: flex; flex-wrap: wrap; gap: .25rem 1rem; list-style: none; margin: 0; padding: 0; }
.tracker-entry dd li { min-inline-size: 0; }
.tracker-entry dd a { color: var(--tone-text); text-decoration: underline; overflow-wrap: anywhere; }
.tracker-entry dd a:hover { color: var(--tone-kicker); }
@container (min-width: 28rem) {
  .tracker-entry dl { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: .625rem 1.25rem; align-items: baseline; }
  .tracker-entry dt, .tracker-entry dd { margin: 0; }
  .tracker-entry dd:nth-of-type(2) { justify-self: start; }
}

/* ---- 19. Legal pages ---- */
/* ---- Legal pages on the shared patterns (B-47 MWG 5/5, P-0523, D-259; first built as B-47 S21 Privacy, S22 Terms
   in P-0242), .lgl-*. A short shared .hero (.kicker "Legal", the h1 and .lgl-meta: the draft line and the neutral
   Draft pill, the only status colour), then section.lgl-main with .lgl-grid: details.lgl-toc ("On this page": a closed
   no-JS <details> card above the body below 61.25rem (980px); from there a sticky side card that ::details-content
   keeps open, where the summary gives way to the non-interactive .lgl-toc-heading), and article.lgl-body at reading
   width: the .lgl-draft notice card (info icon, neutral left border, muted text), one <section> per h2 with an id that
   the card links to, brand-blue dot bullets, and .lgl-ph dashed chips round each bracketed placeholder (brackets
   kept). The page's dark tones only; no reveal motion, no agent colour, no CTA panel. ---- */
.lgl-hero { padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem) clamp(1.5rem, 1rem + 2vw, 2.5rem); }
.lgl-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 0; color: var(--tone-muted); font-size: .9375rem; }
.lgl-ph { padding: 0 .25rem; background: var(--tone-raised); border: 1px dashed var(--tone-muted); border-radius: .25rem; color: var(--tone-muted); font-style: italic; }
.section.lgl-main { padding-block-start: 0; }
.lgl-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; align-items: start; }
.lgl-toc { background: var(--tone-card); border: 1px solid var(--tone-line); border-radius: var(--radius-section); }
.lgl-toc > summary, .lgl-toc-heading {
  color: var(--tone-muted); font-size: .75rem; line-height: 1.2; font-weight: var(--font-weight-semibold);
  letter-spacing: .06em; text-transform: uppercase;
}
.lgl-toc > summary {
  display: flex; align-items: center; justify-content: space-between; gap: .5rem; list-style: none;
  min-block-size: var(--tap-target); padding: 0 1rem; border-radius: var(--radius-section);
}
.lgl-toc > summary::-webkit-details-marker { display: none; }
.lgl-toc .icon, .lgl-draft .icon {
  flex: none; inline-size: 1.25rem; block-size: 1.25rem; margin: 0;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.lgl-toc[open] > summary .icon { rotate: 180deg; }
.lgl-toc-heading { display: none; }
.lgl-toc ul { display: grid; gap: .125rem; list-style: none; margin: 0; padding: 0 .5rem 1rem; }
.lgl-toc a {
  display: flex; align-items: center; min-block-size: var(--tap-target); padding: 0 .5rem; border-radius: .375rem;
  color: var(--tone-text); font-size: .9375rem; text-decoration: none;
}
.lgl-toc a:hover { background: var(--tone-raised); text-decoration: underline; }
.lgl-body { min-width: 0; max-width: var(--width-reading); }
.lgl-draft {
  display: flex; align-items: flex-start; gap: 1rem; padding: 1rem 1.5rem; background: var(--tone-card);
  border: 1px solid var(--tone-line); border-inline-start: 4px solid var(--tone-muted); border-radius: var(--radius-section);
}
.lgl-draft .icon { color: var(--tone-muted); }
.lgl-draft p { margin: 0; color: var(--tone-muted); }
.lgl-body section { margin-block-start: 2rem; padding-block-start: 2rem; border-block-start: 1px solid var(--tone-line); }
.lgl-body section:first-of-type { padding-block-start: 0; border-block-start: 0; }
.lgl-body h2 { margin: 0; font-size: 1.5rem; line-height: 1.25; text-wrap: balance; scroll-margin-block-start: 1.5rem; }
.lgl-body section p { margin: .75rem 0 0; color: var(--tone-muted); }
.lgl-body ul { display: grid; gap: .5rem; list-style: none; margin: 1rem 0 0; padding: 0; }
.lgl-body li { position: relative; padding-inline-start: 1.5rem; color: var(--tone-muted); }
.lgl-body li::before {
  content: ""; position: absolute; inset-inline-start: .25rem; inset-block-start: calc((var(--line-height-body-site) - .5rem) / 2);
  inline-size: .5rem; block-size: .5rem; border-radius: var(--radius-pill); background: var(--color-brand-fill);
}
.lgl-body a { color: var(--tone-text); font-weight: var(--font-weight-medium); }
.lgl-body .lgl-strong { font-weight: var(--font-weight-semibold); color: var(--tone-text); }

/* ---- 20. Responsive rules (last) ---- */
/* ---- Wider than 640px: footer columns, display type, two-up cards ---- */
@media (min-width: 40.0625rem) {
  main { padding: var(--space-5) var(--space-3) var(--space-6); }
  h1 { font-size: var(--font-size-display); line-height: var(--line-height-display); letter-spacing: var(--letter-spacing-display); }

  

}
/* From 768px. */
@media (min-width: 48rem) {
  .request-page .request-layout { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-4); align-items: start; }
  .request-page .request-form { padding: var(--space-4); }

}
/* Legal pages from 980px, where ::details-content keeps the "On this page" card open (P-0242). */
@supports selector(::details-content) {
  @media (min-width: 61.25rem) {
    .lgl-grid { grid-template-columns: var(--width-toc) minmax(0, var(--width-reading)); gap: 4rem; }
    .lgl-toc { position: sticky; inset-block-start: 1.5rem; padding: 1rem 0 0; }
    .lgl-toc::details-content { content-visibility: visible; }
    .lgl-toc > summary { display: none; }
    .lgl-toc-heading { display: block; margin: 0 0 .5rem; padding: 0 1rem; }
    .lgl-toc a { min-block-size: 0; padding: .5rem; }
  }
}
