/* PureTrace public site.
 *
 * One stylesheet for every page. Served from S3 as a same-origin object, which
 * is why the CloudFront CSP carries style-src 'self' rather than 'unsafe-inline':
 * no page may declare a <style> block or a style="" attribute.
 *
 * The design system is recorded in docs/design.md. Read it before adding a
 * component, and add a token before restating a raw value. Every colour, size,
 * space and radius a component uses should trace to the token block below.
 *
 * Palette is the 2026 brand set, aligned to brand/logo-on-navy.svg.
 * Four contrast rules are load-bearing and must not be "tidied":
 *   --cyan  fails WCAG AA on white (3.1:1). Decoration only, never text.
 *   --green fails as text. Use --green-text for marks and captions.
 *   --muted is for light backgrounds only. On navy use --sky-muted.
 *   --blue  fails on navy (3.15:1). Links and secondary CTAs on navy use --sky.
 */

/* ---- Tokens ---- */

:root {
  /* Colour: brand set */
  --navy: #151947;
  --navy-deep: #0d1030;
  --cyan: #1c9cd8;
  --blue: #396cb3;
  --blue-dark: #2e5892;
  --green: #6dae44;
  --green-text: #4c7a2c;
  --sky: #b1e2f9;
  --sky-muted: #9fc4de;

  /* Colour: neutrals and tints */
  --ink: #12152b;
  --muted: #5b6472;
  --dim: #7d8595; /* second line of a two-tone display heading, large text only */
  --fog: #f5f6f8;
  --wash: #e9ecf2; /* the grey-blue ground behind a product panel */
  --line: #dfe4ec;
  --line-navy: #2b3068;
  --cyan-wash: #e8f5fc;
  --green-wash: #eef6e8;
  --navy-wash: #eceef7;

  /* Type. Outfit is a variable face, so the display weights are light and the
     body sits at regular. The display scale follows a fluid slope. */
  --font-stack: "Outfit", "Segoe UI", Calibri, Arial, sans-serif;
  --font-display: "Outfit", "Segoe UI", Calibri, Arial, sans-serif;
  --text-xs: 12px;
  --text-sm: 14px;
  --text-nav: 15px;
  --text-card: 15.5px;
  --text-base: 17px;
  --text-lead: clamp(19px, 1rem + 0.6vw, 23px);
  --text-pull: 22px;
  --text-h3: 22px;
  --text-h2: clamp(34px, 1.3rem + 2.4vw, 56px);
  --text-h1: clamp(42px, 1.6rem + 3vw, 68px);
  --text-display: clamp(50px, 1.8rem + 4.4vw, 84px);
  --leading-body: 1.6;
  --leading-tight: 1.04;

  /* Space */
  --space-2xs: 6px;
  --space-xs: 10px;
  --space-sm: 18px;
  --space-md: 28px;
  --space-lg: 48px;
  --space-xl: 72px;
  --section-y: clamp(72px, 40px + 5vw, 120px);
  --hero-y: clamp(64px, 30px + 6vw, 128px);

  /* Shape */
  --radius: 14px;
  --radius-sm: 8px;
  --radius-pill: 999px;

  /* Measure and layout */
  --measure: 62ch;
  --measure-wide: 74ch;
  --wrap-max: 1240px;
  --wrap-narrow: 860px;
  --wrap-pad: clamp(20px, 3vw, 32px);
  --nav-h: 80px;
}

@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/outfit-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---- Base ---- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  color-scheme: light;
  scroll-padding-top: calc(var(--nav-h) + 12px);
  /* Nothing scrolls sideways at page level; drawings and tables scroll
     inside their own containers. Clip, not hidden, so the sticky bar keeps
     working. */
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font-stack);
  font-weight: 400;
  color: var(--ink);
  background: #fff;
  line-height: var(--leading-body);
  font-size: var(--text-base);
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--navy);
  text-wrap: balance;
}

p,
li,
dd,
figcaption {
  text-wrap: pretty;
}

table,
.glance .num {
  font-variant-numeric: tabular-nums;
}

h1,
h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-optical-sizing: auto;
  line-height: var(--leading-tight);
  letter-spacing: -0.02em;
}

h1 {
  font-size: var(--text-h1);
}

/* A lead set directly under a page heading (the eight core pages) gets a
   step of air, because headings carry no bottom margin of their own. */
h1 + .lead {
  margin-top: var(--space-sm);
}

h2 {
  font-size: var(--text-h2);
  margin-bottom: var(--space-md);
  max-width: 22ch;
}

h3 {
  font-family: var(--font-display);
  font-size: var(--text-h3);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0;
  margin-bottom: var(--space-2xs);
}

/* The second clause of a heading drops to weight 400 and slants rather than
   changing colour, so the contrast is untouched. Outfit has no italic face,
   so the slant is the browser's synthetic oblique, kept on purpose (see
   docs/design.md, Type). On navy it also softens to sky-muted, which passes
   at heading sizes. */
.dim {
  font-style: italic;
  font-weight: 400;
  color: inherit;
}

.navy .dim,
header .dim {
  color: var(--sky);
}

p {
  margin: 0 0 var(--space-sm);
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

a:hover {
  color: var(--blue-dark);
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

::selection {
  background: var(--sky);
  color: var(--navy);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #fff;
  color: var(--blue);
  padding: 12px 18px;
  z-index: 40;
}

.skip:focus {
  left: 12px;
  top: 12px;
}

/* ---- Layout ---- */

.wrap {
  max-width: var(--wrap-max);
  margin: 0 auto;
  padding: 0 var(--wrap-pad);
}

.wrap-narrow {
  max-width: var(--wrap-narrow);
  margin: 0 auto;
  padding: 0 var(--wrap-pad);
}

/* A narrow page is a document (the privacy notice, an article), so its
   section headings step down from the display scale. */
.wrap-narrow h2 {
  font-size: clamp(26px, 1.2rem + 1.2vw, 34px);
  margin-top: var(--space-lg);
}

section {
  padding: var(--section-y) 0;
}

.alt {
  background: var(--fog);
}

/* Navy surfaces. `header` is grouped in on purpose: the hero lives inside
   <header>, and the heading colour must flip with the ground. */
.navy,
header {
  background: var(--navy-deep);
  color: var(--sky);
}

header {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(60% 70% at 78% 40%, rgba(28, 156, 216, 0.22), rgba(28, 156, 216, 0) 70%),
    var(--navy-deep);
}

.navy h1,
.navy h2,
.navy h3,
header h1,
header h2,
header h3 {
  color: #fff;
}

.navy p,
header p {
  color: var(--sky);
}

/* The wash: a navy band behind a product plate, so the drawing sits on the
   brand ground with the cyan glow behind it. */
.wash {
  background: var(--navy-deep);
  color: var(--sky);
}

.wash p {
  color: var(--sky-muted);
}

/* ---- Nav bar ----
   White, sticky, hairline underneath. A direct child of <body> so it sticks
   for the whole page. */

.nav-bar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(13, 16, 48, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-navy);
}

.nav {
  display: flex;
  gap: 14px 28px;
  justify-content: space-between;
  align-items: center;
  min-height: var(--nav-h);
  padding: 12px 0;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  text-decoration: none;
}

.nav-logo img {
  height: 26px;
  width: auto;
}

/* The strapline beside the logo at desktop, as the product itself carries it. */
.nav-tag {
  display: none;
  margin-left: 14px;
  padding-left: 14px;
  border-left: 1px solid rgba(255, 255, 255, 0.28);
  font-size: 12.5px;
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: var(--sky-muted);
  white-space: nowrap;
}

@media (min-width: 1180px) {
  .nav-tag {
    display: inline-block;
  }
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  align-items: center;
}

.nav-links a {
  color: var(--sky);
  text-decoration: none;
  font-size: var(--text-nav);
  font-weight: 500;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover {
  color: #fff;
  border-bottom-color: var(--line-navy);
}

.nav-links a[aria-current] {
  color: #fff;
  border-bottom-color: var(--cyan);
}

.nav-cta {
  display: inline-block;
  background: transparent;
  color: #fff;
  font-weight: 600;
  font-size: var(--text-sm);
  text-decoration: none;
  padding: 9px 18px;
  border: 1.5px solid var(--cyan);
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.nav-cta:hover {
  background: var(--cyan);
  color: var(--navy-deep);
}

/* The mobile menu is a checkbox and a label, so it opens without script and
   the keyboard reaches it: the checkbox is visually hidden but focusable, and
   the label draws the three bars. Below 860px the links collapse under it. */
.nav-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.nav-burger {
  display: none;
}

/* Above the collapse point the burger is not drawn, so its checkbox must not
   be a tab stop either. */
@media (min-width: 861px) {
  .nav-toggle {
    display: none;
  }
}

@media (max-width: 860px) {
  .nav {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 12px;
  }

  .nav-logo {
    margin-right: auto;
  }

  .nav-cta {
    order: 2;
  }

  .nav-burger {
    order: 3;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: var(--text-sm);
    color: #fff;
    padding: 9px 14px;
    border: 1px solid var(--line-navy);
    border-radius: var(--radius-pill);
  }

  .nav-burger::before {
    content: "";
    width: 16px;
    height: 2px;
    background: #fff;
    box-shadow: 0 -5px 0 #fff, 0 5px 0 #fff;
  }

  .nav-links {
    display: none;
    order: 4;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding: 6px 0 14px;
    border-top: 1px solid var(--line-navy);
  }

  .nav-links a {
    font-size: 17px;
    padding: 10px 0;
    border-bottom: 0;
  }

  .nav-toggle:checked ~ .nav-links {
    display: flex;
  }

  .nav-toggle:checked ~ .nav-burger {
    background: var(--line-navy);
  }

  .nav-toggle:focus-visible ~ .nav-burger {
    outline: 3px solid var(--blue);
    outline-offset: 3px;
  }
}

/* ---- Hero ----
   White, left-aligned, the one place the display size is used. */

.hero {
  padding: var(--hero-y) 0 calc(var(--hero-y) * 0.3);
}

.hero h1 {
  font-size: var(--text-display);
  max-width: 14ch;
  margin: 0 0 var(--space-md);
}

/* On a short laptop screen the hero gives up height rather than pushing the
   buttons below the fold. */
@media (min-width: 900px) and (max-height: 820px) {
  .hero {
    padding-top: calc(var(--hero-y) * 0.55);
  }

  .hero h1 {
    font-size: clamp(44px, 7.5vh + 8px, 72px);
    margin-bottom: var(--space-sm);
  }
}

.hero .lede {
  font-size: var(--text-lead);
  max-width: 44ch;
  color: #fff;
}

.hero .cta-note {
  color: var(--sky-muted);
}

.hero .cta-row {
  margin-top: var(--space-md);
}

/* The homepage hero pairs the words with the ring: the six stages around one
   record, which is the idea the whole site is built on. Stacks below 900px. */
.hero-split {
  display: grid;
  gap: var(--space-lg);
  align-items: center;
}

.hero-art {
  position: relative;
}

.hero-art svg {
  display: block;
  width: 100%;
  max-width: 440px;
  height: auto;
  margin: 0 auto;
}

@media (min-width: 900px) {
  .hero-split {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  }

  .hero-art svg {
    max-width: 540px;
  }
}

/* ---- Typography helpers ---- */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 var(--space-sm);
}

/* The brand's cyan dash leads every eyebrow. It is the one place cyan sits
   next to text, and it is a mark rather than text. */
.eyebrow::before {
  content: "";
  flex: 0 0 auto;
  width: 28px;
  height: 3px;
  border-radius: 2px;
  background: var(--cyan);
}

.eyebrow .badge {
  margin-left: 2px;
}

.navy .eyebrow,
header .eyebrow {
  color: var(--sky-muted);
}

.eyebrow a {
  color: inherit;
  text-decoration: none;
}

.eyebrow a:hover {
  text-decoration: underline;
}

.lead {
  max-width: var(--measure);
  font-size: var(--text-lead);
  font-weight: 400;
  color: var(--ink);
}

.navy .lead {
  color: var(--sky);
}

.body {
  max-width: var(--measure);
}

.muted {
  color: var(--muted);
}

.navy .muted,
.wash .muted,
header .muted,
.sky-muted {
  color: var(--sky-muted);
}

/* The section opener: a full-width hairline with air beneath it, so each
   section reads as a chapter. Markup is unchanged from the first system. */
.rule {
  width: 56px;
  height: 3px;
  border-radius: 2px;
  background: var(--cyan);
  border: 0;
  margin: 0 0 var(--space-md);
}

.navy .rule {
  background: var(--cyan);
}

/* A section head with the eyebrow and heading on the left and a lead on the
   right at desktop, which keeps the big heading short and the prose readable. */
.head {
  display: grid;
  gap: var(--space-sm) var(--space-xl);
  align-items: start;
}

/* The notes beside the contact address: what to tell us and how pricing
   works, set a step smaller than body copy so the address stays the main thing. */
.contact-guide {
  display: grid;
  gap: var(--space-sm);
  margin-top: var(--space-md);
  max-width: 34rem;
  font-size: var(--text-sm);
}

.contact-guide p {
  margin: 0;
}

/* The sales address, set large while the enquiry form is switched off. */
.email-line {
  margin: 0 0 var(--space-sm);
  font-family: var(--font-display);
  font-size: clamp(26px, 2vw + 16px, 38px);
  font-weight: 600;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

/* Page intro: the heading on the left, the lead on the right behind a
   hairline, so the first screen is composed rather than half empty. */
.intro {
  display: grid;
  gap: var(--space-sm) var(--space-xl);
  align-items: start;
}

.intro > div:first-child h1 {
  margin-bottom: 0;
}

.intro + .dock,
.intro + .stub {
  margin-top: var(--space-lg);
}

.head-prose .rule {
  margin-bottom: var(--space-sm);
}

.head-prose figure {
  margin-top: var(--space-md);
}

.head-prose .grab {
  max-width: none;
}

.head-prose .body-wide .glossary,
.head-prose .body-wide .steps,
.head-prose .body-wide .rules {
  margin-top: 0;
  max-width: none;
}

.head-prose + .compare,
.head-prose + figure,
.head-prose + .stub {
  margin-top: var(--space-lg);
}

/* The first section of a page sits close under the navigation, and the wash
   band beneath it does the same, so the first screen carries the heading and
   the product rather than air. */
main > section:first-child {
  padding-top: var(--space-lg);
  padding-bottom: var(--space-lg);
}

/* Under the homepage hero the wash starts at once, so the top of the product
   is in the first screen and the page invites the scroll. */
header + main > .wash:first-child {
  padding-top: 0;
}

.wash {
  padding-top: var(--space-lg);
}

.wash .device {
  margin-top: 0;
}

@media (min-width: 900px) {
  .intro {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  }

  .intro > .body {
    padding-top: calc(var(--text-xs) + var(--space-sm) + 14px);
    padding-left: var(--space-md);
    border-left: 1px solid var(--line);
  }
}

@media (min-width: 900px) {
  .head {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  }

  /* A prose section composed as a label column beside a text column, so a
     long section never leaves the right half of the screen empty. The rule,
     heading and any small figure sit on the left; the prose sits on the right
     at a comfortable measure. */
  .head-prose {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  }

  .head-prose > .body {
    max-width: 66ch;
  }

  .head-prose > .body-wide {
    max-width: none;
  }

  .head h2 {
    margin-bottom: 0;
  }

  /* The lead starts level with the heading's cap height rather than the
     eyebrow above it. */
  .head > .lead,
  .head > .body,
  .head > div:last-child {
    padding-top: calc(var(--text-xs) + var(--space-sm) + 10px);
    padding-left: var(--space-md);
    border-left: 1px solid var(--line);
  }

  .navy .head > .lead,
  .navy .head > .body {
    border-left-color: var(--line-navy);
  }
}

/* ---- Cards ---- */

.grid {
  display: grid;
  gap: 18px;
  margin-top: var(--space-lg);
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

/* Keeps a hyphenated name such as Third-Party on one line. */
.nw {
  white-space: nowrap;
}

/* Five cards (the module line-up): one row of five on a wide screen and
   three then two in between, so no card is left alone on a row. */
@media (min-width: 720px) {
  .grid-five {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1140px) {
  .grid-five {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 28px 30px;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.card:hover {
  border-color: transparent;
  box-shadow: 0 18px 44px rgba(21, 25, 71, 0.1);
}

.card p {
  font-size: var(--text-card);
  color: var(--muted);
}

.card h3 {
  margin-top: 6px;
}

.navy .card {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line-navy);
}

.navy .card h3 {
  color: #fff;
}

.navy .card p {
  color: var(--sky-muted);
}

.navy .card a {
  color: var(--sky);
}

.num {
  display: block;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.12em;
  margin-bottom: 8px;
}

/* ---- Bordered emphasis block ---- */

.note {
  border: 1px solid var(--line);
  border-left: 3px solid var(--cyan);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 24px 28px;
  margin-top: var(--space-md);
  background: #fff;
  max-width: 72ch;
}

/* ---- Enforced-control rows ---- */

.rules {
  list-style: none;
  padding: 0;
  margin: var(--space-md) 0 0;
  max-width: var(--measure-wide);
}

.rules li {
  position: relative;
  padding: 18px 0 18px 42px;
  border-bottom: 1px solid var(--line);
  font-size: var(--text-base);
}

.rules li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 25px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 2.5px solid var(--green-text);
}

.rules li::after {
  content: "";
  position: absolute;
  left: 10px;
  top: 29px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--green-text);
  opacity: 0.22;
}

.plain {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  max-width: 72ch;
}

.plain li {
  padding: 9px 0 9px 22px;
  position: relative;
}

.plain li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
}

.steps {
  margin: 22px 0 0;
  padding-left: 22px;
  max-width: 70ch;
}

.steps li {
  padding: 6px 0;
}

/* ---- Diagrams ---- */

figure {
  margin: var(--space-lg) 0 0;
}

.fig-scroll {
  overflow-x: auto;
}

.fig-scroll svg {
  display: block;
  width: 100%;
  min-width: 580px;
  max-width: 840px;
  height: auto;
  margin: 0 auto;
}

.fig-sm svg {
  min-width: 340px;
  max-width: 560px;
}

figcaption {
  max-width: var(--measure);
  margin: 16px auto 0;
  font-size: var(--text-sm);
  color: var(--muted);
  text-align: center;
}

/* SVG text inherits the page face. */
svg text {
  font-family: var(--font-stack);
}

/* ---- Device: the framed product panel ----
   A dark bezel with a soft shadow, the way a product is shown rather than a
   diagram. Holds a composed SVG or a large grab. */

.device {
  position: relative;
  margin: var(--space-lg) auto 0;
  max-width: 1120px;
}

/* A soft cyan wash sits behind the plate rather than a bezel around it. It
   bleeds past the plate, so the band it sits in clips at its own edges. */
.wash,
.tour-step {
  overflow-x: clip;
}

.device::before {
  content: "";
  position: absolute;
  inset: 10% -6% -12% -6%;
  background: radial-gradient(55% 55% at 50% 60%, rgba(28, 156, 216, 0.45), rgba(28, 156, 216, 0) 72%);
  filter: blur(18px);
  z-index: 0;
}

.device-screen {
  position: relative;
  z-index: 1;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.45);
}

.device-screen svg,
.device-screen img {
  display: block;
  width: 100%;
  height: auto;
}

/* ---- Product grabs ---- */

.shot {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(21, 25, 71, 0.1);
  margin: 30px 0 0;
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
}

.grab {
  margin: var(--space-lg) 0 0;
}

.grab .shot {
  display: block;
  max-width: 100%;
  margin: 0;
}

.grab-s .shot {
  max-width: 300px;
}

.grab-m .shot {
  max-width: 380px;
}

.grab-l .shot {
  max-width: 580px;
}

.grab figcaption {
  text-align: left;
  margin-left: 0;
}

/* ---- Split: a visual beside a short block of text ---- */

.split {
  display: grid;
  gap: var(--space-md) var(--space-xl);
  align-items: center;
  margin-top: var(--space-lg);
}

.split > * {
  min-width: 0;
}

.split figure {
  margin: 0;
}

.split .body {
  max-width: var(--measure);
}

@media (min-width: 860px) {
  .split {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  }
}

/* ---- Status badge ---- */

.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  line-height: 1.4;
  vertical-align: middle;
}

.badge-live {
  background: var(--green-wash);
  color: var(--green-text);
}

.badge-roadmap {
  background: var(--navy-wash);
  color: var(--navy);
}

.stub {
  border: 1px dashed var(--muted);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  color: var(--muted);
  font-size: var(--text-sm);
  background: #fff;
  margin-top: var(--space-md);
  max-width: var(--measure-wide);
}

/* ---- Tiles ---- */

.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
  margin-top: var(--space-lg);
}

.tile {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 22px 24px;
  color: var(--ink);
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.tile h3 {
  margin: 10px 0 6px;
  font-size: 18px;
}

.tile p {
  font-size: var(--text-sm);
  color: var(--muted);
  margin: 0;
}

a.tile:hover {
  border-color: transparent;
  box-shadow: 0 18px 44px rgba(21, 25, 71, 0.1);
  transform: translateY(-2px);
}

/* ---- Spine and dock: the modular system drawn as one record ----
   The core is one continuous bar with a segment per part, because it is one
   record rather than eight tools. Modules dock beneath it as dashed pills.
   Inside .config the segments and pills are the labels of a CSS-only
   selector; on the homepage they are plain links. */

.spine {
  display: flex;
  flex-wrap: wrap;
  margin-top: var(--space-md);
  border: 1.5px solid var(--navy);
  border-radius: var(--radius-pill);
  overflow: hidden;
  background: #fff;
}

.seg {
  flex: 1 1 0;
  min-width: 118px;
  min-height: 76px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  padding: 14px 10px;
  border-right: 1.5px solid var(--navy);
  color: var(--navy);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  line-height: 1.2;
}

.seg:last-child {
  border-right: 0;
}

.seg small {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 5px;
}

.seg-core {
  background: var(--navy-wash);
  flex-basis: 150px;
}

span.seg,
span.pill {
  cursor: default;
}

.dock {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 18px;
  border: 1.5px solid var(--muted);
  border-radius: var(--radius-pill);
  color: var(--navy);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  background: #fff;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.dock-label {
  text-align: center;
  margin: var(--space-md) 0 0;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.dock-label + .dock {
  margin-top: 12px;
}

label.pill:hover,
a.pill:hover {
  border-style: solid;
  border-color: var(--navy);
}

.spine-note {
  text-align: center;
  margin-top: 14px;
  font-size: var(--text-sm);
  color: var(--muted);
}

@media (max-width: 720px) {
  .spine {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-radius: var(--radius);
  }

  .seg {
    border-bottom: 1.5px solid var(--navy);
  }

  .seg:nth-child(2n) {
    border-right: 0;
  }

  .seg:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .seg-core {
    grid-column: 1 / -1;
    border-right: 0;
  }
}

/* Two columns from 640px: the core and its parts on the left, the modules on
   the right, so every option shows without scrolling. */

@media print {
  .foot-col {
    display: none;
  }
}

/* ---- Facts: expanding rows ----
   Native details and summary, so a row opens without script. A chevron on
   the right turns when the row is open. Used for the who-we-are rows and the
   assurance questions. */

.facts {
  margin-top: var(--space-lg);
  border-top: 1px solid var(--line);
  max-width: 78ch;
}

.wrap > .facts:first-child {
  margin-top: 0;
}

.facts details {
  border-bottom: 1px solid var(--line);
}

.facts summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 22px 0;
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 400;
  color: var(--navy);
}

.facts summary::-webkit-details-marker {
  display: none;
}

.facts summary::after {
  content: "";
  flex: 0 0 auto;
  width: 11px;
  height: 11px;
  margin-right: 8px;
  border-right: 2px solid var(--navy);
  border-bottom: 2px solid var(--navy);
  transform: rotate(45deg);
  transition: transform 200ms ease;
}

.facts details[open] summary::after {
  transform: rotate(-135deg);
}

.facts details p {
  max-width: var(--measure-wide);
  padding: 0 0 24px;
  color: var(--ink);
}

.navy .facts,
.navy .facts details {
  border-color: var(--line-navy);
}

.navy .facts summary {
  color: #fff;
}

.navy .facts summary::after {
  border-color: var(--sky);
}

.navy .facts details p {
  color: var(--sky);
}

/* ---- Slot: capacity for content that does not exist yet ----
   A real component with nothing in it. It renders the shape of a download,
   an entry or a case study so the page is finished before the facts arrive,
   and it is plain about that. */

.slot {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 28px;
  background: #fff;
  max-width: 72ch;
  margin-top: var(--space-lg);
}

.slot .badge {
  justify-self: start;
}

.slot-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.slot-btn {
  display: inline-block;
  padding: 11px 20px;
  border: 1.5px dashed var(--muted);
  border-radius: var(--radius-pill);
  color: var(--muted);
  font-weight: 600;
  font-size: var(--text-sm);
}

/* ---- Chain: one risk followed through ---- */

.chain {
  list-style: none;
  margin: var(--space-lg) 0 0;
  padding: 0;
  position: relative;
  max-width: var(--measure-wide);
}

.chain::before {
  content: "";
  position: absolute;
  left: 21px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: var(--cyan);
  opacity: 0.5;
}

.chain li {
  position: relative;
  padding: 0 0 var(--space-lg) 68px;
}

.chain li:last-child {
  padding-bottom: 0;
}

.chain .dot {
  position: absolute;
  left: 0;
  top: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-weight: 600;
  font-size: var(--text-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.chain h3 {
  font-size: 27px;
  font-weight: 400;
  margin-bottom: 10px;
}

.chain p {
  max-width: var(--measure);
}

/* ---- People ---- */

/* One, two or four across, never three, so no card sits alone on a row. */
.people {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: var(--space-lg);
}

@media (min-width: 640px) {
  .people { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1140px) {
  .people { grid-template-columns: repeat(4, 1fr); }
}

.person {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 26px 28px;
  background: #fff;
}

.avatar {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  background: var(--navy-wash);
  overflow: hidden;
  margin-bottom: 16px;
}

.avatar svg,
.avatar img {
  display: block;
  width: 100%;
  height: 100%;
}

.avatar img {
  object-fit: cover;
}

/* The photographs are on white, so a hairline ring keeps the circle visible
   on a white card. */
.avatar:has(img) {
  box-shadow: 0 0 0 1px var(--line);
}

/* The LinkedIn link sits at the foot of every card, so the four line up
   whatever the length of the biography. */
.person .person-link {
  margin: auto 0 0;
  padding-top: 14px;
}

.person-link a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
}

.person-link a:hover span,
.person-link a:focus-visible span {
  text-decoration: underline;
}

.li-icon {
  width: 20px;
  height: 20px;
  color: #0a66c2;
  flex: none;
}

.person h3 {
  margin-bottom: 2px;
}

.person .bio {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.55;
}

.person .cta-note {
  margin-top: 10px;
}

.person .role {
  color: var(--muted);
  font-size: var(--text-sm);
  margin-bottom: 10px;
}

.person p {
  font-size: var(--text-card);
}

/* ---- Glossary ---- */

.glossary {
  max-width: var(--measure-wide);
  margin: var(--space-md) 0 0;
}

.glossary dt {
  font-weight: 600;
  color: var(--navy);
  margin-top: var(--space-sm);
}

.glossary dd {
  margin: 4px 0 0;
}

/* ---- Pager ---- */

.pager {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: var(--space-lg);
  padding-top: var(--space-sm);
  border-top: 1px solid var(--line);
  font-weight: 500;
}

/* ---- Mini: a small drawing inside a tile or a card ----
   The thing itself rather than an icon of it, at card scale. */

.mini {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.mini text {
  font-family: var(--font-stack);
}

/* ---- Journey: the four onboarding steps ---- */

.journey {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
  margin: var(--space-lg) 0 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.journey li {
  position: relative;
  padding: 26px 0 0;
  border-top: 3px solid var(--navy);
}

.journey li::after {
  content: "";
  position: absolute;
  top: -3px;
  right: -18px;
  width: 18px;
  height: 3px;
  background: var(--cyan);
}

.journey li:last-child::after {
  display: none;
}

.journey h3 {
  font-size: 22px;
  margin: 8px 0 10px;
}

.journey p {
  font-size: var(--text-card);
  color: var(--muted);
}

/* A hover bridge over the gap between the link and the panel. */

/* ---- Buttons and CTAs ---- */

.btn {
  display: inline-block;
  background: var(--navy);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  transition: background 160ms ease, transform 160ms ease;
}

.btn:hover {
  background: var(--blue);
  color: #fff;
  transform: translateY(-1px);
}

.navy .btn,
header .btn {
  background: #fff;
  color: var(--navy);
}

.navy .btn:hover,
header .btn:hover {
  background: var(--sky);
  color: var(--navy);
}

.card .btn {
  display: block;
  text-align: center;
  font-size: var(--text-sm);
  padding: 12px 16px;
  margin-top: 6px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  align-items: center;
  margin-top: var(--space-md);
}

.cta-secondary {
  font-weight: 500;
  font-size: 16px;
  text-decoration: none;
  color: var(--navy);
}

.cta-secondary::after {
  content: " \2192";
}

.cta-secondary:hover {
  text-decoration: underline;
}

.navy .cta-secondary,
header .cta-secondary {
  color: var(--sky);
}

.cta-note {
  margin-top: 14px;
  font-size: var(--text-sm);
}

.cta-note-small {
  margin-top: 4px;
  font-size: 13px;
}

/* An arrow link at the foot of a card or a figure. */
.more {
  font-weight: 500;
  text-decoration: none;
}

.navy .more,
.wash .more,
.navy figcaption a,
.wash figcaption a {
  color: var(--sky);
}

.more::after {
  content: " \2192";
}

.more:hover {
  text-decoration: underline;
}

/* ---- Module capability lists ----
   The labels the product itself uses, as chips under a module's description. */
.includes {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: var(--space-sm) 0 0;
}

.includes li {
  font-size: 13px;
  line-height: 1.3;
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  color: var(--ink);
  background: #fff;
}

/* ---- Enquiry form ----
   A native POST and no script. The honeypot is moved off screen rather than
   hidden, so a bot fills it and a person never meets it. */
.form {
  display: grid;
  gap: var(--space-sm);
}

.form-row {
  display: grid;
  gap: var(--space-sm);
}

@media (min-width: 640px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

.field {
  display: grid;
  gap: 6px;
  margin: 0;
}

.field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.field input,
.field select,
.field textarea {
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  width: 100%;
  box-sizing: border-box;
}

.field textarea {
  resize: vertical;
  min-height: 140px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--cyan);
  outline-offset: 1px;
  border-color: var(--cyan);
}

.hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form .cta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin: var(--space-xs) 0 0;
}

.form button.btn {
  font: inherit;
  font-weight: 600;
  font-size: 15px;
  border: 0;
  cursor: pointer;
}

/* ---- Footer ---- */

footer {
  background: var(--navy-deep);
  color: var(--sky-muted);
  padding: 64px 0 44px;
  font-size: var(--text-sm);
}

.foot-top {
  display: grid;
  gap: 32px 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line-navy);
}

@media (min-width: 760px) {
  .foot-top {
    grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr));
  }
}

.foot-logo img {
  height: 26px;
  width: auto;
  display: block;
}

.foot-tag {
  margin-top: 12px;
  color: var(--sky-muted);
}

.foot-col h2 {
  color: var(--sky-muted);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.foot-col a {
  display: block;
  color: var(--sky);
  text-decoration: none;
  padding: 4px 0;
}

.foot-col a:hover {
  text-decoration: underline;
}

.fine {
  margin-top: 24px;
  font-size: var(--text-xs);
  color: var(--sky-muted);
  max-width: 84ch;
}

.fine p {
  margin-bottom: 8px;
}

/* ---- Site map ----
   Every page in the groups the menus use, one column per group, with a line
   under each link on what the page is for. */
.sitemap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
}

.sitemap h2 {
  font-size: 26px;
}

.sitemap .rule {
  margin-bottom: var(--space-sm);
}

.sitemap .plain {
  margin-top: 12px;
  max-width: none;
}

.sitemap .plain li {
  padding: 7px 0 7px 20px;
}

.sitemap .plain li::before {
  top: 16px;
}

.sitemap .plain a {
  font-weight: 500;
}

.sitemap .plain span {
  display: block;
  color: var(--muted);
  font-size: var(--text-sm);
  margin-top: 2px;
}

/* ---- Motion ----
   Purposeful and switched off under reduced motion. Pages crossfade into
   each other, sections rise as they enter the viewport, the chain's arrows
   flow and a comet runs the chain, the hero rises in and hovers lift. Every
   one of these is CSS or SVG; none needs script. */

@view-transition {
  navigation: auto;
}

.nav-bar {
  view-transition-name: nav;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }

  ::view-transition-old(root) {
    animation: 200ms ease-out both fade-out;
  }

  ::view-transition-new(root) {
    animation: 260ms ease-in both fade-in;
  }

  /* Sections rise as they scroll into view, where the browser supports a
     scroll-driven timeline. Elsewhere they are simply there. */
  @supports (animation-timeline: view()) {
    main > section > .wrap {
      animation: reveal both linear;
      animation-timeline: view();
      animation-range: entry 0% entry 35%;
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  @view-transition {
    navigation: none;
  }
}

@keyframes fade-out {
  to {
    opacity: 0;
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
}

@keyframes reveal {
  from {
    transform: translateY(22px);
  }

  to {
    transform: none;
  }
}

/* ---- Stepper: the one-risk walk as a click-through ----
   Radios first, a progress row of labels, then one panel per step. The
   panel carries its own next and previous labels, so the walk can be taken
   like a story. In print every panel shows in order. */

.stepper {
  position: relative;
  margin-top: var(--space-md);
}

.stepper > input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.steps-nav {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
}

.steps-nav label {
  display: block;
  padding: 12px 6px 10px;
  border-top: 4px solid var(--line);
  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 160ms ease, color 160ms ease;
}

.steps-nav label span {
  display: block;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--navy);
  margin-top: 2px;
}

.steps-nav label:hover {
  border-top-color: var(--sky-muted);
}

.step {
  display: none;
  margin-top: var(--space-md);
}

.step-body {
  display: grid;
  gap: var(--space-md) var(--space-xl);
  align-items: start;
}

@media (min-width: 860px) {
  .step-body {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  }
}

.step h3 {
  font-size: 30px;
  font-weight: 400;
  margin-bottom: 12px;
}

.step figure {
  margin: 0;
}

.step-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: var(--space-sm);
}

.step-actions label {
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  color: var(--navy);
  padding: 12px 22px;
  border: 1.5px solid var(--navy);
  border-radius: var(--radius-pill);
  transition: background 160ms ease, color 160ms ease;
}

.step-actions label:hover {
  background: var(--navy);
  color: #fff;
}

.step-actions .prev {
  border-color: var(--line);
  color: var(--muted);
}

#s1:checked ~ .step-panels .step-1,
#s2:checked ~ .step-panels .step-2,
#s3:checked ~ .step-panels .step-3,
#s4:checked ~ .step-panels .step-4,
#s5:checked ~ .step-panels .step-5,
#s6:checked ~ .step-panels .step-6 {
  display: block;
}

#s1:checked ~ .steps-nav [for="s1"],
#s2:checked ~ .steps-nav [for="s2"],
#s3:checked ~ .steps-nav [for="s3"],
#s4:checked ~ .steps-nav [for="s4"],
#s5:checked ~ .steps-nav [for="s5"],
#s6:checked ~ .steps-nav [for="s6"] {
  border-top-color: var(--cyan);
  color: var(--navy);
}

/* Steps already passed are marked navy, so the row reads as progress. */
#s2:checked ~ .steps-nav [for="s1"],
#s3:checked ~ .steps-nav [for="s1"],
#s3:checked ~ .steps-nav [for="s2"],
#s4:checked ~ .steps-nav [for="s1"],
#s4:checked ~ .steps-nav [for="s2"],
#s4:checked ~ .steps-nav [for="s3"],
#s5:checked ~ .steps-nav [for="s1"],
#s5:checked ~ .steps-nav [for="s2"],
#s5:checked ~ .steps-nav [for="s3"],
#s5:checked ~ .steps-nav [for="s4"],
#s6:checked ~ .steps-nav [for="s1"],
#s6:checked ~ .steps-nav [for="s2"],
#s6:checked ~ .steps-nav [for="s3"],
#s6:checked ~ .steps-nav [for="s4"],
#s6:checked ~ .steps-nav [for="s5"] {
  border-top-color: var(--navy);
}

#s1:focus-visible ~ .steps-nav [for="s1"],
#s2:focus-visible ~ .steps-nav [for="s2"],
#s3:focus-visible ~ .steps-nav [for="s3"],
#s4:focus-visible ~ .steps-nav [for="s4"],
#s5:focus-visible ~ .steps-nav [for="s5"],
#s6:focus-visible ~ .steps-nav [for="s6"] {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

@media (max-width: 640px) {
  .steps-nav {
    grid-template-columns: repeat(3, 1fr);
  }

  .steps-nav label span {
    font-size: 15px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .rise > * {
    animation: rise 700ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }

  .rise > :nth-child(2) {
    animation-delay: 80ms;
  }

  .rise > :nth-child(3) {
    animation-delay: 160ms;
  }

  .rise > :nth-child(4) {
    animation-delay: 240ms;
  }

  .rise > :nth-child(5) {
    animation-delay: 320ms;
  }

  .device {
    animation: rise 900ms 200ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }

  .pulse {
    animation: pulse 3s ease-in-out infinite;
    transform-origin: center;
    transform-box: fill-box;
  }

  /* The dashed ring in the hero turns once every two minutes. */
  .orbit {
    animation: orbit 120s linear infinite;
    transform-origin: center;
    transform-box: fill-box;
  }

  .device-screen {
    transform: perspective(1800px) rotateX(3deg);
    transform-origin: 50% 100%;
    transition: transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1);
  }

  .device:hover .device-screen {
    transform: none;
  }
}

@keyframes orbit {
  to {
    transform: rotate(360deg);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes flow {
  to {
    stroke-dashoffset: -28;
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(1);
  }

  50% {
    opacity: 0.9;
    transform: scale(1.06);
  }
}

/* ---- Compare: a workbook beside the platform ----
   Two columns, hairlines, no competitor named. The left column is the way
   most functions we have worked in ran; the right is what changes. */

.compare {
  width: 100%;
  border-collapse: collapse;
  margin-top: var(--space-lg);
  font-size: var(--text-card);
}

.compare th,
.compare td {
  text-align: left;
  vertical-align: top;
  padding: 18px 20px 18px 0;
  border-bottom: 1px solid var(--line);
}

.compare th {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 12px;
}

.compare td:first-child {
  font-weight: 500;
  color: var(--navy);
  width: 22%;
}

.compare td:nth-child(2) {
  color: var(--muted);
}

.compare td:nth-child(3) {
  color: var(--ink);
}

/* ---- At a glance: short facts as a grid of small cards ---- */

.glance {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 14px;
  margin-top: var(--space-lg);
  padding: 0;
  list-style: none;
}

/* Nine cards read as a three by three block at desktop width, and the tenth
   (the penetration test) runs the full width beneath them. */
@media (min-width: 900px) {
  .glance {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .glance .glance-wide {
    grid-column: 1 / -1;
  }
}

.glance li {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  background: #fff;
  font-size: var(--text-card);
  color: var(--ink);
}

.glance .num {
  margin-bottom: 10px;
}

.glance li a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 3px;
}

.glance li a:hover,
.glance li a:focus-visible {
  text-decoration-color: currentColor;
}

.glance .badge {
  display: block;
  width: fit-content;
  margin: -4px 0 12px;
}

/* ---- Responsive ---- */

@media (max-width: 720px) {
  .nav-cta {
    font-size: 13px;
    padding: 9px 14px;
  }

  .device {
    border-radius: 16px;
    padding: 8px;
  }

  .device-screen {
    border-radius: 10px;
  }
}

/* ---- Print ---- */

@media print {
  .nav-bar,
.skip,
.btn,
.nav-cta,
.cta-row,
.foot-col,
.stub {
    display: none;
  }

  body {
    font-size: 12pt;
    line-height: 1.5;
    color: #000;
    background: #fff;
  }

  section {
    padding: 18pt 0;
  }

  .alt,
  .wash {
    background: #fff;
  }

  .navy,
header,
footer {
    background: #fff;
    color: var(--ink);
    border-top: 1pt solid var(--line);
  }

  .navy h1,
.navy h2,
.navy h3,
.navy p,
header h1,
header h2,
header h3,
header p,
footer,
.foot-tag,
.fine,
.navy .muted,
.sky-muted,
.navy .lead,
.facts details p {
    color: var(--ink);
  }

  .eyebrow,
.navy .eyebrow {
    color: var(--muted);
  }

  h1,
  h2,
  h3 {
    break-after: avoid;
    color: #000;
  }

  .card,
.note,
figure,
.rules li,
.tile,
.person {
    break-inside: avoid;
  }

  a {
    color: var(--ink);
    text-decoration: none;
  }

  .fig-scroll {
    overflow: visible;
  }

  .fig-scroll svg {
    min-width: 0;
  }

  .device {
    box-shadow: none;
    background: #fff;
    padding: 0;
    border: 1pt solid var(--line);
  }

  .step {
    display: block;
    margin-top: 12pt;
  }

  .steps-nav,
  .step-actions {
    display: none;
  }

  .facts details p {
    display: block;
  }

  .device::before {
    display: none;
  }

}

/* Text for assistive technology only. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---- The tour: eight screens that stack as the reader scrolls ---- */

/* Each step is a full-width card pinned below the navigation bar. The next
   step slides up over it, so the screens replace each other without a line of
   script. On small screens the steps simply stack. */
.tour-section {
  padding: 0;
  background: var(--navy-deep);
}

.tour-step {
  position: sticky;
  top: var(--nav-h);
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
  padding: var(--space-xl) 0;
  background: var(--navy-deep);
  border-top: 1px solid var(--line-navy);
  box-shadow: 0 -24px 60px rgba(0, 0, 0, 0.35);
}

.tour-step:nth-child(even) {
  background: var(--navy);
}

.tour-step:nth-child(1) { z-index: 1; }
.tour-step:nth-child(2) { z-index: 2; }
.tour-step:nth-child(3) { z-index: 3; }
.tour-step:nth-child(4) { z-index: 4; }
.tour-step:nth-child(5) { z-index: 5; }
.tour-step:nth-child(6) { z-index: 6; }
.tour-step:nth-child(7) { z-index: 7; }
.tour-step:nth-child(8) { z-index: 8; }

.tour-grid {
  display: grid;
  gap: var(--space-lg) var(--space-xl);
  align-items: center;
  width: 100%;
}

.tour-text .eyebrow {
  color: var(--sky-muted);
}

.tour-text h2 {
  color: #fff;
  margin-bottom: var(--space-sm);
}

.tour-text h2 .dim {
  color: var(--sky);
}

.tour-text p {
  color: var(--sky);
  max-width: 34ch;
}

.tour-text .more {
  color: var(--sky);
}

.tour-step .device {
  margin: 0;
  max-width: none;
}

@media (min-width: 900px) {
  .tour-grid {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  }
}

@media (max-width: 899px) {
  .tour-step {
    position: static;
    min-height: 0;
    box-shadow: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .tour-step .device {
      animation: tour-in both linear;
      animation-timeline: view();
      animation-range: entry 0% entry 45%;
    }
  }
}

@keyframes tour-in {
  from {
    transform: translateY(28px) scale(0.97);
  }

  to {
    transform: none;
  }
}

@media print {
  .tour-step {
    position: static;
    min-height: 0;
    background: #fff;
    box-shadow: none;
    border-top: 1px solid var(--line);
  }

  .tour-text h2,
  .tour-text p,
  .tour-text .more {
    color: var(--ink);
  }
}

/* ---- On this page: a section bar that stays under the navigation ---- */
.pagenav {
  position: sticky;
  top: var(--nav-h);
  z-index: 20;
  background: rgba(245, 246, 248, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.pagenav .wrap {
  display: flex;
  align-items: center;
  gap: 4px 26px;
  overflow-x: auto;
  padding-top: 10px;
  padding-bottom: 10px;
  scrollbar-width: none;
}

.pagenav .wrap::-webkit-scrollbar {
  display: none;
}

.pagenav-label {
  flex: none;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-right: 6px;
}

.pagenav a {
  flex: none;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--navy);
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}

.pagenav a:hover,
.pagenav a:focus-visible {
  border-bottom-color: var(--cyan);
}

@media print {
  .pagenav {
    display: none;
  }
}

/* ---- Review copy banner ----
   Stamped onto every page of the preview build only (scripts/preview-build.mjs)
   and never present in dist/. */
.preview-note {
  margin: 0;
  padding: 8px var(--wrap-pad);
  background: var(--cyan-wash);
  color: var(--navy);
  font-size: var(--text-sm);
  text-align: center;
  border-bottom: 1px solid var(--line);
}

@media print {
  .preview-note {
    display: none;
  }
}

/* ---- High contrast and forced colours ----
   Under a high-contrast preference the greys step up and the dotted rule
   under a defined term becomes solid. Under forced colours (the contrast
   themes on Windows) every filled surface loses its fill, so pills, badges
   and buttons draw a border, the configurator marks its chosen step with an
   outline rather than a background, and the current page is underlined in
   the navigation. The drawings keep their own colours, as inline SVG does. */
@media (prefers-contrast: more) {
  :root {
    --muted: #3f4756;
    --dim: #4a5160;
    --line: #b9c1cd;
    --sky-muted: #cfe7f6;
  }

}

@media (forced-colors: active) {
  .btn,
.nav-cta,
.badge,
.includes li,
.slot-btn,
.pill,
.card,
.note,
.person,
.tour-step,
.device,
.stub {
    border: 1px solid;
  }

  .nav a[aria-current],
  .pagenav a:hover,
  .pagenav a:focus-visible {
    text-decoration: underline;
  }
}

@media print {
  /* Closed answers print open where the browser exposes the details content
     (Chrome 131, Safari 18.4 and later); elsewhere the closed ones stay closed. */
  details::details-content {
    content-visibility: visible;
  }

  .facts summary::after {
    display: none;
  }

}

/* ---- Review pass, September 2026 ---- */

/* The hero's second call to action is a button rather than a text link. */
.btn-ghost,
header .btn.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  padding: 12.5px 24px;
}

.btn-ghost:hover,
header .btn.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: #fff;
}

/* Cards in a row share a height and pin their button to the bottom edge, so
   the buttons line up whatever the text above them runs to. */
.grid-even .card {
  display: flex;
  flex-direction: column;
}

.grid-even .card > p:last-child {
  margin-top: auto;
}

/* The enquiry form gets the wider column, so the dropdown text shows in full. */
@media (min-width: 900px) {
  #enquiry .head {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  }
}

.checks {
  border: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.checks legend {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  padding: 0;
  margin-bottom: 4px;
}

.checks label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: var(--ink);
}

.checks input {
  width: 16px;
  height: 16px;
  accent-color: var(--navy);
}

@media (min-width: 640px) {
  .checks {
    grid-template-columns: 1fr 1fr;
  }

  .checks legend {
    grid-column: 1 / -1;
  }
}

/* ---- Where is the evidence: three questions, one answer panel ----
   A radio group and labels, so it works without script and the keyboard
   reaches every question. The chosen question's panel is the only one shown. */
.evidence {
  position: relative;
  margin-top: var(--space-md);
}

.ev-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.ev-tabs {
  display: grid;
  gap: 10px;
}

.ev-tabs label {
  display: block;
  padding: 14px 18px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--navy);
  font-weight: 500;
  font-size: 15.5px;
  line-height: 1.35;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.ev-tabs label:hover {
  border-color: var(--navy);
}

#ev-1:checked ~ .ev-tabs label[for="ev-1"],
#ev-2:checked ~ .ev-tabs label[for="ev-2"],
#ev-3:checked ~ .ev-tabs label[for="ev-3"] {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.ev-input:focus-visible ~ .ev-tabs label[for] {
  outline: none;
}

#ev-1:focus-visible ~ .ev-tabs label[for="ev-1"],
#ev-2:focus-visible ~ .ev-tabs label[for="ev-2"],
#ev-3:focus-visible ~ .ev-tabs label[for="ev-3"] {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.ev-panels {
  margin-top: var(--space-sm);
}

.ev-panel {
  display: none;
  gap: var(--space-md);
  align-items: center;
}

#ev-1:checked ~ .ev-panels .ev-p1,
#ev-2:checked ~ .ev-panels .ev-p2,
#ev-3:checked ~ .ev-panels .ev-p3 {
  display: grid;
}

.ev-text h3 {
  margin-top: 0;
}

.ev-text p {
  color: var(--muted);
  font-size: var(--text-card);
}

.ev-art {
  display: block;
  width: 100%;
  max-width: 560px;
  height: auto;
  filter: drop-shadow(0 18px 44px rgba(21, 25, 71, 0.1));
}

@media (min-width: 900px) {
  .ev-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ev-panel {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  }
}

/* Certification badges in the footer: markup prepared, switched on only when
   the certificates are held. */
.certs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.cert {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--sky);
}

/* The four names under who we are, one line, muted. */
.people-line {
  margin-top: var(--space-sm);
  font-size: var(--text-sm);
  color: var(--muted);
}

/* Links inside the small notes on navy sections read in sky, not the page
   link blue, so they pass contrast against the navy ground. */
.navy .cta-note a,
.navy .cta-note-small a,
header .cta-note a {
  color: var(--sky);
}
