/* Shared header + footer chrome for every page under /docs/ (used alone by the
   legacy docs pages, imported by site.css). */
:root {
  --bg: #f6f8fb; --panel: #ffffff; --line: #e4e8ee; --line-2: #d3d9e1;
  --ink: #0b0f14; --ink-2: #4a5866; --ink-3: #7b8794;
  --blue: #355df9; --blue-soft: rgba(53, 93, 249, .10); --blue-ink: #2547d6;
  --emerald: #1f8a5b; --amber: #b7791f; --rose: #c2413b; --violet: #6d5bd0;
  --sans: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --face: Manrope, "IBM Plex Sans", sans-serif;
  --wrap: 1280px;
}

.site-header *, footer.site * { box-sizing: border-box; }
.site-header .wrap, footer.site .wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.site-header a, footer.site a { text-decoration: none; }
/* header ------------------------------------------------------------------- */
/* No page may scroll sideways. site.css carries the same guard, but the legacy
   pages (features · use-cases · knowledge-fabric) link this file on its own.
   `clip` rather than `hidden` so it never becomes a scroll container and the
   sticky header keeps working. */
body { overflow-x: clip; }

.site-header { position: sticky; top: 0; z-index: 40; background: rgba(246, 248, 251, .86); backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 18px; height: 62px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand svg { flex-shrink: 0; }
.brand .word { font: 800 21px/1 var(--face); letter-spacing: -.02em; color: var(--ink); }
.brand .word sup { font-size: .42em; font-weight: 600; margin-left: .1em; }
.brand .intro { font: 500 10.5px/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); margin-left: 6px; padding-left: 12px; border-left: 1px solid var(--line-2); }
.brand .intro .ai { color: var(--blue); } .brand .intro .st { color: var(--ink); }
nav.main { margin-left: auto; display: flex; align-items: center; gap: 4px; }
nav.main a { padding: 8px 9px; border-radius: 6px; font-size: 14px; color: var(--ink-2); white-space: nowrap; }
nav.main a:hover { color: var(--ink); text-decoration: none; }
nav.main a.on { color: var(--blue-ink); }
.site-header .wrap > a.cta { margin-left: 10px; padding: 8px 14px; border-radius: 6px; font-size: 14px; font-weight: 500; white-space: nowrap; background: var(--blue); color: #fff; }
.site-header .wrap > a.cta:hover { background: var(--blue-ink); }
/* the dossier sits beside Sign in, so it is never footer-only */
.site-header .wrap > a.cta2 { margin-left: 10px; padding: 7px 13px; border-radius: 6px; font-size: 14px; font-weight: 500; white-space: nowrap; color: var(--blue-ink); border: 1px solid var(--blue); background: transparent; }
.site-header .wrap > a.cta2:hover { background: var(--blue-soft); }
/* the closing band above the footer: book a session · get the dossier */
.book-band { border-top: 1px solid var(--line); background: var(--panel); padding: 44px 0; }
.book-band .wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between; }
.book-band h2 { margin: 0 0 6px; font-size: clamp(22px, 2.4vw, 30px); }
.book-band p { margin: 0; color: var(--ink-2); max-width: 620px; }
.book-band .acts { display: flex; gap: 10px; flex-wrap: wrap; }
.book-band .btn { display: inline-flex; align-items: center; padding: 11px 18px; border-radius: 8px; font-weight: 500; font-size: 15px; text-decoration: none; border: 1px solid var(--blue); }
.book-band .btn.primary { background: var(--blue); color: #fff; }
.book-band .btn.primary:hover { background: var(--blue-ink); }
.book-band .btn.ghost { color: var(--blue-ink); background: transparent; }
.book-band .btn.ghost:hover { background: var(--blue-soft); }
.nav-toggle { display: none; width: 40px; height: 40px; border: 1px solid var(--line-2); border-radius: 6px; background: var(--panel); color: var(--ink); font-size: 18px; }
nav.main a .sm { display: none; }
/* The six full labels plus the button need ~1250px next to the wordmark. Below
   that the "introduces AIState" line goes, then the links use their short
   labels — a label never breaks in half, and the menu only takes over when
   even the short row would not fit. */
@media (max-width: 1040px) { .brand .intro { display: none; } }
@media (max-width: 1600px) {
  nav.main a { padding: 8px 9px; font-size: 13.5px; }
  nav.main a .lg { display: none; } nav.main a .sm { display: inline; }
  .site-header .wrap > a.cta { margin-left: 6px; padding: 8px 12px; }
  .site-header .wrap > a.cta2 { margin-left: 6px; padding: 7px 11px; }
}
@media (max-width: 1180px) {
  .site-header .wrap > a.cta2 { margin-left: auto; }
  .site-header .wrap > a.cta2 + a.cta { margin-left: 8px; }
  .site-header .wrap > a.cta { margin-left: auto; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; margin-left: 10px; }
  nav.main a .lg { display: inline; } nav.main a .sm { display: none; }
  nav.main { display: none; position: absolute; left: 0; right: 0; top: 62px; background: var(--panel); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 10px 16px 16px; gap: 2px; }
  nav.main.open { display: flex; }
  /* comfortable touch targets once the links become a stacked menu */
  nav.main a { padding: 13px 16px; font-size: 15px; min-height: 44px; display: flex; align-items: center; }
  .nav-toggle { width: 44px; height: 44px; }
}

footer.site { border-top: 1px solid var(--line); padding: 36px 0 48px; font-size: 13.5px; color: var(--ink-2); }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 24px 40px; align-items: flex-start; }
footer.site .cols { display: flex; gap: 40px; flex-wrap: wrap; }
footer.site .cols div { display: flex; flex-direction: column; gap: 6px; min-width: 130px; }
footer.site .cols b { font: 500 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 4px; }
footer.site .cols a { color: var(--ink-2); }
footer.site .legal { margin-left: auto; font: 12px/1.7 var(--mono); color: var(--ink-3); max-width: 360px; }

/* certification strip — public site only */


/* brand lockup — the product leads, the company qualifies it */
.brand .word .ai { color: var(--blue); }
.brand .word .st { color: var(--ink); }
.brand .intro { font: 500 11px/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); border-left: 1px solid var(--line-2); padding-left: 10px; margin-left: 2px; }
.brand .intro sup { font-size: .72em; }


/* ── header motion ────────────────────────────────────────────────────────────
   Three movements, all small: the bar settles on load, condenses once the page
   scrolls, and answers the pointer. Everything is transform/opacity so it stays
   on the compositor, and all of it is off under prefers-reduced-motion. */
.site-header { transition: height .25s ease, background-color .25s ease, box-shadow .25s ease, border-color .25s ease; }
.site-header .wrap { transition: height .25s cubic-bezier(.2,.7,.3,1); }
.site-header.scrolled { background: rgba(246,248,251,.94); box-shadow: 0 1px 14px rgba(11,15,20,.06); }
.site-header.scrolled .wrap { height: 48px; }
.brand .word { transition: font-size .25s cubic-bezier(.2,.7,.3,1); }
.site-header.scrolled .brand .word { font-size: 18px; }
.site-header.scrolled nav.main a { font-size: 13.5px; }
.site-header.scrolled .brand .intro { opacity: 0; transform: translateX(-4px); }
.brand .intro { transition: opacity .25s ease, transform .25s ease; }

/* entrance — the lockup first, then the links in sequence */
@keyframes kf-bar-in { from { opacity: 0; transform: translateY(-18px); } to { opacity: 1; transform: none; } }
@keyframes kf-item-in { from { opacity: 0; transform: translateY(-10px) scale(.985); } to { opacity: 1; transform: none; } }
.site-header { animation: kf-bar-in .6s cubic-bezier(.2,.7,.3,1) both; }
.site-header .brand { animation: kf-item-in .5s cubic-bezier(.2,.7,.3,1) both .06s; }
nav.main a { animation: kf-item-in .5s cubic-bezier(.2,.7,.3,1) both; }
nav.main a:nth-child(1) { animation-delay: .10s; }
nav.main a:nth-child(2) { animation-delay: .15s; }
nav.main a:nth-child(3) { animation-delay: .20s; }
nav.main a:nth-child(4) { animation-delay: .25s; }
nav.main a:nth-child(5) { animation-delay: .30s; }
nav.main a:nth-child(6) { animation-delay: .35s; }
.site-header .trust { animation: kf-item-in .5s cubic-bezier(.2,.7,.3,1) both .34s; }
.site-header .wrap > a.cta { animation: kf-item-in .5s cubic-bezier(.2,.7,.3,1) both .40s; }

/* links — a rule that grows from the left, and holds under the current page */
nav.main a { position: relative; transition: color .18s ease; }
nav.main a::after { content: ""; position: absolute; left: 9px; right: 9px; bottom: 3px; height: 2px; background: var(--blue); border-radius: 2px; transform: scaleX(0); transform-origin: left; transition: transform .22s cubic-bezier(.2,.7,.3,1); }
nav.main a:hover::after, nav.main a:focus-visible::after { transform: scaleX(1); }
nav.main a.on::after { transform: scaleX(1); opacity: .55; }

/* the mark answers the pointer — the blue square steps out, the ink follows */
.brand svg rect { transition: transform .3s cubic-bezier(.2,.7,.3,1); transform-box: fill-box; transform-origin: center; }
.brand:hover svg rect:nth-of-type(2) { transform: translate(1.1px, -1.1px); }
.brand:hover svg rect:nth-of-type(3) { transform: translate(-1.1px, 1.1px); }
.brand:hover svg rect:nth-of-type(4) { transform: translate(1.1px, 1.1px); }

/* the one action on the bar */
.site-header .wrap > a.cta { transition: background-color .2s ease, transform .2s cubic-bezier(.2,.7,.3,1), box-shadow .2s ease; }
.site-header .wrap > a.cta:hover { transform: translateY(-1px); box-shadow: 0 6px 16px -6px rgba(53,93,249,.55); }
.site-header .wrap > a.cta:active { transform: translateY(0); }

/* the menu unrolls rather than appearing */
@keyframes kf-menu-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
nav.main.open { animation: kf-menu-in .22s cubic-bezier(.2,.7,.3,1) both; }

@media (prefers-reduced-motion: reduce) {
  .site-header, .site-header .brand, nav.main a, .site-header .trust, .site-header .wrap > a.cta, nav.main.open { animation: none !important; }
  .site-header *, .site-header { transition: none !important; }
}

@media (max-width: 1180px) {
  nav.main a::after { display: none; }
  nav.main a:hover, nav.main a.on { background: var(--panel-2, #eef1f5); border-radius: 6px; }
}

/* the bar carries the reading position — the one motion that is always visible */
.site-header .progress { position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; transform: scaleX(var(--kf-progress, 0)); transform-origin: left; background: linear-gradient(90deg, var(--blue), #7d9bff); opacity: .9; transition: transform .08s linear; }
@media (prefers-reduced-motion: reduce) { .site-header .progress { display: none; } }

/* certification ribbon — under the bar, so it never competes for width */
.site-header .trustbar { display: flex; justify-content: center; gap: 26px; flex-wrap: wrap; padding: 5px 24px; border-top: 1px solid var(--line); background: rgba(255,255,255,.55); font: 500 10px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); overflow: hidden; max-height: 26px; transition: max-height .25s ease, opacity .2s ease, padding .25s ease; }
.site-header .trustbar sup { text-transform: none; letter-spacing: 0; }
.site-header.scrolled .trustbar { max-height: 0; opacity: 0; padding-top: 0; padding-bottom: 0; }
@media (max-width: 900px) { .site-header .trustbar span:nth-child(4) { display: none; } }
@media (max-width: 620px) { .site-header .trustbar { gap: 12px; font-size: 10.5px; padding-inline: 16px; } .site-header .trustbar span:nth-child(3) { display: none; } }
@media (max-width: 430px) { .site-header .trustbar span:nth-child(2) { display: none; } }
.brand .intro { white-space: nowrap; }

/* an existing customer signs in; a new one starts a deployment */

/* trademark mark — small, raised, and weightless in the line box */

/* The category mark: A, a mirrored P, I. Flipped in CSS because the reversed-P
   codepoint is missing from most faces; inline-block is what makes the flip
   apply to the glyph rather than the whole line box. */
nav.main a .mp { display: inline-block; transform: scaleX(-1); }
.tm { font-size: .6em; vertical-align: super; line-height: 0; margin-left: .5px; }

/* ── dropdown under a top link: the sections of that page ─────────────── */
.has-drop { position: relative; display: flex; }
.drop { position: absolute; left: 50%; top: 100%; padding-top: 8px; z-index: 40; transform: translate(-50%, -4px); opacity: 0; visibility: hidden; transition: opacity .15s ease, transform .15s ease, visibility 0s linear .15s; }
.has-drop.open .drop { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition: opacity .15s ease, transform .15s ease; }
nav.main .drop-in { position: relative; min-width: 200px; padding: 6px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 18px 40px -20px rgba(11, 15, 20, .28), 0 2px 6px rgba(11, 15, 20, .05); }
nav.main .drop-in::before { content: ""; position: absolute; top: -6px; left: 50%; width: 10px; height: 10px; margin-left: -5px; background: var(--panel); border-left: 1px solid var(--line); border-top: 1px solid var(--line); transform: rotate(45deg); }
nav.main .drop a { display: block; padding: 8px 12px; border-radius: 6px; font-size: 14px; color: var(--ink-2); animation: none; }
nav.main .drop a::after { display: none; }
nav.main .drop a:hover, nav.main .drop a:focus-visible { background: var(--blue-soft); color: var(--blue-ink); text-decoration: none; }
nav.main .has-drop.open > a { color: var(--blue-ink); }
@media (max-width: 1180px) { .drop { display: none; } .has-drop { display: contents; } }

/* lifecycle cost bands — the Compliance page's figures, shared by home, Platform and Risk */
.lc-cost { list-style: none; margin: 26px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; counter-reset: lc; }
@media (max-width: 900px) { .lc-cost { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .lc-cost { grid-template-columns: minmax(0, 1fr); } }
.lc-cost li { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px; }
.lc-cost h3 { margin: 0 0 8px; font-size: 15px; font-weight: 500; color: var(--ink-2); }
.lc-cost b { display: block; font: 500 26px/1.1 var(--mono); letter-spacing: -.02em; color: var(--blue-ink); margin-bottom: 8px; }
.lc-cost p { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--ink-2); }
.lc-note { margin-top: 14px; font-size: 12.5px; color: var(--ink-3); }
/* outcome figures — the Compliance page's, shared by Risk */
.lc-facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 10px; background: var(--panel); overflow: hidden; }
@media (max-width: 760px) { .lc-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.lc-facts li { padding: 18px 20px; border-left: 1px solid var(--line); }
.lc-facts li:first-child { border-left: 0; }
@media (max-width: 760px) { .lc-facts li:nth-child(3) { border-left: 0; } .lc-facts li:nth-child(n+3) { border-top: 1px solid var(--line); } }
.lc-facts b { display: block; font: 500 24px/1.1 var(--mono); letter-spacing: -.02em; color: var(--ink); }
.lc-facts span { display: block; margin-top: 6px; font-size: 13px; line-height: 1.45; color: var(--ink-2); }
/* the dossier link inside the phone menu only; on the bar it is the outlined button */
nav.main a.menu-only { display: none; }
@media (max-width: 560px) {
  .site-header .wrap > a.cta2 { display: none; }
  .site-header .wrap > a.cta, .site-header .wrap > a.cta2 + a.cta { margin-left: auto; }
  nav.main.open a.menu-only { display: flex; }
}
