/* Klar marketing site — design tokens and components */

/* ---------- Fonts (self-hosted, Latin and Latin Extended; Latin Extended covers ₹) ----------
   Variable fonts from Google Fonts, served from our own domain so no visitor data goes to Google.
   The two files the top of each page needs are preloaded in layout.mjs. */
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400 600; font-display: swap; src: url(/assets/font-mono-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400 600; font-display: swap; src: url(/assets/font-mono-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; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/assets/font-sans-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/assets/font-sans-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; }
@font-face { font-family: 'Source Serif 4'; font-style: normal; font-weight: 500 700; font-display: swap; src: url(/assets/font-serif-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Source Serif 4'; font-style: normal; font-weight: 500 700; font-display: swap; src: url(/assets/font-serif-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; }
/* Fallbacks sized to match the web fonts, so text keeps its line breaks while the fonts load and the
   page does not jump when they arrive. Measured in Chrome against Georgia, Arial and Courier New:
   Source Serif 4 runs 80–87% of Georgia's width (narrower at large sizes); 82.5% fits the 40–60px
   headings, where a re-wrap moves the most content. */
@font-face { font-family: 'Source Serif 4 Fallback'; src: local('Georgia'); size-adjust: 82.5%; ascent-override: 126%; descent-override: 41.2%; line-gap-override: 0%; }
@font-face { font-family: 'Manrope Fallback'; src: local('Arial'); size-adjust: 100.7%; ascent-override: 106.3%; descent-override: 29.8%; line-gap-override: 0%; }
@font-face { font-family: 'JetBrains Mono Fallback'; src: local('Courier New'); size-adjust: 100%; ascent-override: 102%; descent-override: 30%; line-gap-override: 0%; }

:root {
  /* Color */
  --bg: #F4F8F5;
  --surface: #FFFFFF;
  --surface-2: #F0F3F1;
  --ink: #14212B;
  --ink-2: #52616B;
  --line: #D9E1E2;
  --line-strong: #B8C4C7;
  --blue: #175CFF;
  --blue-hover: #0D46D5;
  --teal: #007A72;
  --teal-tint: #E3F2F0;
  --teal-border: #B7DDD8;
  /* Tinted "positive / verified" surfaces (live badges, verified notes, AI answer cards, savings,
     plan credits, the after card). One trio so the colour can be changed in one place. */
  --tint-bg: #F6F1E7;
  --tint-border: #E5D9C2;
  --tint-ink: #7A5A14;
  --sample-bg: #FBF1E6;
  --sample-border: #EBCFB0;
  --sample-ink: #8F4E14;
  --vizbox-bg: #F2F1ED;
  --vizbox-border: #DFDBD2;
  --vizbox-ink: #545047;
  --proof-bg: #E6F3F8;
  --proof-border: #BFDEEA;
  --proof-ink: #0C6A86;
  --kpi-bg: #EDF2F5;
  --kpi-border: #D2DDE4;
  --kpi-ink: #3B5A68;
  --caution: #B96A23;          /* fills, borders, icons only */
  --caution-ink: #8F4E14;      /* AA text on light surfaces */
  --caution-tint: #FBF1E6;
  --hero-bg: #0E1B33;
  --hero-bg-rgb: 14, 27, 51;
  --dark: #12232D;
  --dark-2: #1B3240;
  --on-dark: #FFFFFF;
  --on-dark-2: #B4C3CB;
  --on-dark-link: #9DBBFF;

  /* Type */
  --f-display: 'Source Serif 4', 'Source Serif 4 Fallback', Georgia, 'Times New Roman', ui-serif, serif;
  --f-body: 'Manrope', 'Manrope Fallback', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --f-mono: 'JetBrains Mono', 'JetBrains Mono Fallback', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;

  /* Compact scale (27 Sep 2026): sized for laptop screens at 125% Windows scaling. */
  --t-h1: clamp(2.25rem, 1.3rem + 3vw, 3.75rem);
  --t-h2: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem);
  --t-h3: clamp(1.25rem, 1.15rem + .35vw, 1.5rem);
  --t-lead: clamp(1.0625rem, 1rem + .2vw, 1.1875rem);
  --t-body: clamp(.9375rem, .92rem + .1vw, 1rem);
  --t-small: .875rem;
  --t-data: 0.8125rem;

  /* Layout */
  --maxw: 1240px;
  --gutter: clamp(20px, 4.2vw, 64px);
  --section: clamp(12px, .625rem + .75vw, 24px);
  --radius: 10px;
  --radius-lg: 14px;
  --shadow: 0 1px 2px rgba(20, 33, 43, .04), 0 8px 24px -12px rgba(20, 33, 43, .12);
  --header-h: 60px;

  /* Selected state for toggles, filters and chips */
  --sel-bg: #3E30D3; --sel-fg: #fff; --sel-border: #3E30D3;   /* Klar indigo (chosen 29 Sep 2026) */
  --sel-save-bg: rgba(255,255,255,.18); --sel-save-fg: #fff;

  /* Motion */
  --ease: cubic-bezier(.2, .7, .2, 1);
  --d-fast: 180ms;
  /* Indigo: logo mark, the Connects-to diagram, pack board, panels. */
  --indigo: #3E30D3;
  --indigo-strong: #2A2090;
  --indigo-border: #C9C3F5;
  --indigo-tint: #F1EFFD;
  --indigo-tint-2: #E6E2FC;
  /* Borders inside .section--dark. */
  --dark-line: #2B4656;
  /* Form and value errors. */
  --error: #B42318;
  --error-ink: #7A271A;
  --error-border: #FECDCA;
  --error-tint: #FEF3F2;
  /* The mint accent used only on dark grounds. */
  --on-dark-accent: #7FD6CC;
  /* Completes the caution trio, which already has -tint and -ink. */
  --caution-border: #EBCFB0;
}

@media (prefers-reduced-motion: reduce) {
  :root { --d-fast: 0ms; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0ms !important; animation-duration: 0ms !important; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--f-body); font-size: var(--t-body); line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--blue); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--blue-hover); }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-family: var(--f-display); font-weight: 600; color: var(--ink); text-wrap: balance; }
code { font-family: var(--f-mono); font-size: .92em; }
button { font: inherit; color: inherit; }
main:focus { outline: none; }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.on-dark :focus-visible, .final :focus-visible, .footer :focus-visible { outline-color: #fff; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: #fff;
  padding: 10px 16px; border-radius: 8px; font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; color: #fff; }

.icon { flex: none; width: 20px; height: 20px; }
.icon--sm { width: 16px; height: 16px; }
.icon--xs { width: 14px; height: 14px; }

/* ---------- Type ---------- */
.h1 { font-size: var(--t-h1); line-height: 1.08; letter-spacing: -0.014em; }
.h2 { font-size: var(--t-h2); line-height: 1.16; letter-spacing: -0.011em; }
.h3 { font-size: var(--t-h3); line-height: 1.26; letter-spacing: -0.005em; }
.h4 { font-size: 1.1875rem; line-height: 1.32; letter-spacing: 0; }
.lead { font-size: var(--t-lead); line-height: 1.45; color: var(--ink-2); max-width: 40em; }
.eyebrow {
  font-family: var(--f-mono); font-size: var(--t-data); font-weight: 500; letter-spacing: .06em;
  text-transform: uppercase; color: var(--teal); margin-bottom: 18px;
}
.muted { color: var(--ink-2); }
.small { font-size: var(--t-small); }
.num { font-family: var(--f-mono); font-feature-settings: 'tnum' 1; }
.prose { max-width: 68ch; }
.prose p { color: var(--ink-2); }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: calc(var(--maxw) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--tight { padding-block: calc(var(--section) * .6); }
.section--surface { background: var(--surface); border-block: 1px solid var(--line); }
.section + .section:not(.section--surface):not(.section--dark) { border-top: 1px solid var(--line); }
.section--dark { background: var(--dark); color: var(--on-dark); }
.section--dark h2, .section--dark h3 { color: var(--on-dark); }
.section--dark .lead, .section--dark p { color: var(--on-dark-2); }
.section--dark .eyebrow { color: var(--on-dark-accent); }
.section--dark a:not(.btn) { color: var(--on-dark-link); }

.grid { display: grid; gap: 24px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (min-width: 720px) { .grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 28px; } }
@media (min-width: 1040px) { .grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px; } }
.span-all { grid-column: 1 / -1; }
@media (min-width: 720px) { .t-3 { grid-column: span 3; } .t-6 { grid-column: span 6; } }
@media (min-width: 1040px) {
  .d-3 { grid-column: span 3; } .d-4 { grid-column: span 4; } .d-5 { grid-column: span 5; }
  .d-6 { grid-column: span 6; } .d-7 { grid-column: span 7; } .d-8 { grid-column: span 8; }
  .d-start-7 { grid-column-start: 7; } .d-start-8 { grid-column-start: 8; }
}
.cols-2, .cols-3, .cols-4 { display: grid; gap: 24px; }
@media (min-width: 720px) { .cols-2, .cols-3, .cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .cols-3 { grid-template-columns: repeat(3, 1fr); gap: 32px; } .cols-4 { grid-template-columns: repeat(4, 1fr); } .cols-2 { gap: 32px; } }

.section-head { margin-bottom: clamp(28px, 3vw, 44px); max-width: 52rem; }
.section-head .lead { margin-top: 20px; margin-bottom: 0; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .lead { margin-inline: auto; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px; border-radius: 8px; border: 1px solid transparent;
  font-family: var(--f-body); font-size: .9375rem; font-weight: 600; line-height: 1.2; text-decoration: none;
  transition: background-color var(--d-fast) var(--ease), border-color var(--d-fast) var(--ease), color var(--d-fast) var(--ease);
  cursor: pointer; white-space: nowrap;
}
.btn[data-size="sm"] { min-height: 36px; padding: 6px 14px; font-size: .875rem; }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-hover); color: #fff; }
.btn--secondary { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn--secondary:hover { border-color: var(--ink); color: var(--ink); }
.btn--ghost { background: transparent; color: var(--blue); padding-inline: 4px; }
.btn--ghost:hover { color: var(--blue-hover); text-decoration: underline; }
.btn--link { background: none; padding: 0; min-height: 44px; color: var(--blue); }
.btn--on-dark { background: #fff; color: var(--ink); }
.btn--on-dark:hover { background: #E4ECFF; color: var(--ink); }
.btn--outline-dark { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn--outline-dark:hover { border-color: #fff; color: #fff; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; }
@media (max-width: 479px) { .cta-row .btn:not(.btn--ghost) { width: 100%; } }

.tlink { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; min-height: 44px; }
.tlink:hover { text-decoration: underline; }
.tlink .icon { transition: transform var(--d-fast) var(--ease); }
.tlink:hover .icon { transform: translateX(2px); }

/* ---------- Badges & tags ---------- */
.sample-tag {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border-radius: 999px;
  font-family: var(--f-mono); font-size: .75rem; font-weight: 500; letter-spacing: .02em;
  color: var(--sample-ink); background: var(--sample-bg); border: 1px solid var(--sample-border); white-space: nowrap;
}
.badge {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px;
  font-size: .8125rem; font-weight: 600; line-height: 1.4; white-space: nowrap; border: 1px solid;
}
.badge--live { color: var(--teal); background: var(--teal-tint); border-color: var(--teal-border); }
.badge--soon { color: var(--caution-ink); background: var(--caution-tint); border-color: var(--caution-border); }
.badge--contact { color: var(--ink-2); background: var(--surface-2); border-color: var(--line); }
.mode {
  display: inline-flex; align-items: center; gap: 5px; font-family: var(--f-mono); font-size: .75rem;
  color: var(--ink-2); white-space: nowrap;
}
.mode--query { color: var(--teal); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: var(--surface);
  border-bottom: 1px solid transparent; transition: border-color var(--d-fast) var(--ease), background-color var(--d-fast);
}
@supports (backdrop-filter: blur(8px)) { .site-header { backdrop-filter: saturate(1.4) blur(8px); } }
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header__inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
/* The desktop nav switches on at 1140px with little room to spare: tighten it until 1200px. */
@media (min-width: 1140px) and (max-width: 1199px) {
  .site-header__inner { gap: 16px; }
  .site-header .nav__link { padding-inline: 9px; }
}
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo:hover { color: var(--ink); }
.logo__mark { color: var(--indigo); width: 26px; height: 26px; flex: none; }
.logo__word { font-family: var(--f-display); font-weight: 600; font-size: 1.25rem; letter-spacing: -.02em; }
.nav { margin-inline: auto; }
.nav__list { display: flex; list-style: none; gap: 2px; }
.nav__item { position: relative; }
.nav__link {
  display: inline-flex; align-items: center; gap: 4px; padding: 8px 12px; border-radius: 6px; min-height: 40px;
  /* Small capitals: sharp by spacing rather than a new typeface, so no extra font request. */
  font-size: .78125rem; font-weight: 600; text-transform: uppercase; letter-spacing: .09em;
  white-space: nowrap; color: var(--ink); text-decoration: none; background: none; border: 0; cursor: pointer;
}
.nav__link:hover { background: rgba(20, 33, 43, .05); color: var(--ink); }
.nav__link.is-active { color: var(--ink); box-shadow: inset 0 -2px 0 var(--blue); border-radius: 6px 6px 0 0; }
.nav__trigger .icon { transition: transform var(--d-fast) var(--ease); }
.nav__trigger[aria-expanded="true"] .icon { transform: rotate(180deg); }
.nav__panel {
  position: absolute; top: calc(100% + 8px); left: -12px; width: 320px; padding: 8px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow);
}
.nav__panel ul { list-style: none; }
.nav__panel a { display: block; padding: 10px 12px; border-radius: 8px; text-decoration: none; color: var(--ink); }
.nav__panel a:hover, .nav__panel a[aria-current] { background: var(--surface-2); }
.nav__panel-t { display: block; font-weight: 600; font-size: .9375rem; }
.nav__panel-n { display: block; font-size: .8125rem; color: var(--ink-2); }
.site-header__actions { display: flex; align-items: center; gap: 10px; }
.nav__signin { margin-right: 2px; }
.menu-btn {
  display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--surface); align-items: center; justify-content: center; cursor: pointer;
}
.menu-btn__close { display: none; }
.menu-btn[aria-expanded="true"] .menu-btn__open { display: none; }
.menu-btn[aria-expanded="true"] .menu-btn__close { display: block; }
.mnav { border-top: 1px solid var(--line); background: var(--bg); max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
.mnav nav { padding: 12px var(--gutter) 28px; }
.mnav__list { list-style: none; }
.mnav__list > li { border-bottom: 1px solid var(--line); }
.mnav__list a { display: flex; align-items: center; min-height: 52px; font-size: 1.0625rem; font-weight: 500; color: var(--ink); text-decoration: none; }
.mnav__list a[aria-current] { color: var(--blue); font-weight: 600; }
.mnav__list ul { list-style: none; padding: 0 0 8px 14px; border-left: 2px solid var(--line); margin-bottom: 8px; }
.mnav__list ul a { min-height: 44px; font-size: 1rem; }
.mnav__group { margin: 14px 0 4px; font-family: var(--f-mono); font-size: var(--t-data); color: var(--ink-2); text-transform: uppercase; letter-spacing: .06em; }
.mnav__cta { display: grid; gap: 12px; margin-top: 24px; }
.mnav__cta .btn { width: 100%; }

@media (max-width: 1139px) {
  .nav, .site-header__actions { display: none; }
  .menu-btn { display: inline-flex; }
}
@media (min-width: 1140px) { .mnav { display: none !important; } }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(40px, 6vw, 96px) var(--section); }
.hero__grid { display: grid; gap: 48px; align-items: start; }
@media (min-width: 1040px) { .hero__grid { grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: 56px; } }
.hero__copy .lead { margin: 28px 0 36px; }
.hero__proof { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 28px; list-style: none; font-size: var(--t-small); color: var(--ink-2); }
.hero__proof li { display: inline-flex; align-items: center; gap: 6px; }
.hero__proof .icon { color: var(--teal); }
.page-hero { padding-block: clamp(40px, 3.4vw, 48px) var(--section); } /* top: same as the home hero */
/* The intro ends like every home page section; its last paragraph adds no extra space. */
.page-hero p:last-child { margin-bottom: 0; }
/* Intro followed directly by its controls on the same background (pricing switches, connector search):
   the same gap as a section heading to its content. */
.page-hero--lead-in { padding-bottom: clamp(28px, 3vw, 44px); }
.page-hero .lead { margin-top: 24px; }
.page-hero .cta-row { margin-top: 32px; }

/* ---------- Evidence trail ---------- */
.trail {
  margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); overflow: hidden; font-size: .9375rem;
}
.trail__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 10px 16px; border-bottom: 1px solid var(--line); background: var(--surface-2);
}
.trail__app { display: inline-flex; align-items: center; gap: 6px; font-family: var(--f-mono); font-size: .75rem; color: var(--ink-2); }
.trail__step { padding: 18px 20px; position: relative; }
.trail__step + .trail__step { border-top: 1px dashed var(--line); }
.trail__label {
  display: flex; align-items: center; gap: 8px; margin: 0 0 8px;
  font-family: var(--f-mono); font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2);
}
.step-n {
  display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%;
  /* flex: none — the circle is a flex item in .feat__steps li, so without this it is
     squeezed into an ellipse by longer step headings, differently on each tab. */
  flex: none;
  border: 1px solid var(--line-strong); font-size: .6875rem; color: var(--ink);
}
.trail__question { font-family: var(--f-display); font-size: clamp(1.25rem, 1.1rem + .5vw, 1.5rem); line-height: 1.25; letter-spacing: -.012em; }
.trail__metric { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-bottom: 6px; }
.trail__metric-name { width: 100%; font-size: .875rem; color: var(--ink-2); }
.trail__value {
  display: inline-flex; align-items: baseline; gap: 10px; padding: 2px 6px; margin-left: -6px; border: 0; border-radius: 6px;
  background: none; cursor: pointer; text-align: left;
}
.trail__value .num {
  font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.25rem); font-weight: 500; letter-spacing: -.02em; color: var(--ink);
  text-decoration: underline dotted var(--line-strong); text-decoration-thickness: 2px; text-underline-offset: 6px;
  transition: text-decoration-color var(--d-fast);
}
.trail__value:hover .num { text-decoration-color: var(--blue); }
.trail__delta { font-family: var(--f-mono); font-size: .8125rem; color: var(--ink-2); }
.trail__delta--up { color: var(--teal); }
.trail__hint { font-size: .75rem; color: var(--ink-2); font-family: var(--f-mono); }
.trail__summary { color: var(--ink); margin: 6px 0 14px; max-width: 60ch; }
.trail__chart { margin: 4px 0 8px; }
.trail__note { display: flex; gap: 8px; align-items: flex-start; font-size: .8125rem; color: var(--ink-2); margin: 10px 0 0; }
.trail__note .icon { margin-top: 3px; }
.trail__ev-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.trail__ev-head .trail__label { margin: 0; }
.trail__toggle {
  border: 0; background: none; color: var(--blue); font-weight: 600; font-size: .875rem; cursor: pointer;
  min-height: 44px; padding: 0 4px;
}
.trail__toggle:hover { text-decoration: underline; }
.trail__toggle [data-when="closed"] { display: none; }
.trail__toggle[aria-expanded="false"] [data-when="open"] { display: none; }
.trail__toggle[aria-expanded="false"] [data-when="closed"] { display: inline; }
.trail__ev { margin-top: 6px; }
.trail__ev.is-collapsed { display: none; }
.trail__without { display: none; align-items: center; gap: 8px; margin: 8px 0 0; font-size: .875rem; color: var(--caution-ink); }
.trail.is-bare .trail__without { display: flex; }
.trail.is-bare .trail__value .num { text-decoration-color: transparent; }
.trail.is-flash .trail__ev { animation: evflash 900ms var(--ease); }
@keyframes evflash { 0% { box-shadow: 0 0 0 0 rgba(23, 92, 255, .35); } 100% { box-shadow: 0 0 0 10px rgba(23, 92, 255, 0); } }
.trail__cap { padding: 10px 20px 14px; border-top: 1px solid var(--line); font-size: .75rem; color: var(--ink-2); background: var(--surface-2); }

.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs [role="tab"] {
  position: relative; flex: none; border: 0; background: none; padding: 10px 12px; min-height: 44px; cursor: pointer;
  font-size: .875rem; font-weight: 500; color: var(--ink-2); border-radius: 6px 6px 0 0;
  transition: color var(--d-fast);
}
.tabs [role="tab"]:hover { color: var(--ink); }
.tabs [role="tab"][aria-selected="true"] { color: var(--ink); font-weight: 600; }
.tabs [role="tab"][aria-selected="true"]::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; background: var(--teal); }
.tabpanel { padding: 14px 2px 2px; animation: fade var(--d-fast) var(--ease); }
.tabpanel:focus-visible { outline-offset: 2px; }
@keyframes fade { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }

.ev-list { list-style: none; display: grid; gap: 10px; }
.ev-list li { display: grid; gap: 2px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; }
.ev-src { font-weight: 600; }
.ev-detail { font-family: var(--f-mono); font-size: .8125rem; color: var(--ink-2); }
.ev-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 4px; }
.ev-fresh { display: inline-flex; align-items: center; gap: 5px; font-family: var(--f-mono); font-size: .75rem; color: var(--ink-2); }
.ev-metric { font-weight: 600; margin: 0 0 6px; }
.ev-formula { margin: 0 0 8px; }
.ev-formula code { display: inline-block; padding: 6px 10px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; font-size: .8125rem; line-height: 1.5; }
.ev-text { color: var(--ink-2); margin: 0; font-size: .875rem; }
.ev-kv { margin: 0; display: grid; gap: 0; }
.ev-kv div { display: grid; grid-template-columns: minmax(96px, 34%) 1fr; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.ev-kv div:last-child { border-bottom: 0; }
.ev-kv dt { font-family: var(--f-mono); font-size: .75rem; color: var(--ink-2); padding-top: 2px; }
.ev-kv dd { margin: 0; font-size: .875rem; }
.ev-counts { margin: 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.ev-counts div { padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; border-left: 3px solid var(--teal); }
.ev-counts dt { font-size: .8125rem; color: var(--ink-2); }
.ev-counts dd { margin: 2px 0 0; }
.ev-counts .num { font-size: 1.125rem; font-weight: 500; }
.ev-note { display: block; font-size: .75rem; color: var(--ink-2); margin-top: 2px; }

/* Charts */
.chart { width: 100%; height: auto; overflow: visible; }
.chart text { font-family: var(--f-mono); }
.ch-val { font-size: 12px; fill: var(--ink); font-weight: 500; }
.ch-lbl { font-size: 11.5px; fill: var(--ink-2); }
.ch-lbl--left { font-family: var(--f-body) !important; font-size: 14px; fill: var(--ink); font-weight: 600; }
.ch-sub { font-size: 11px; fill: var(--ink-2); }
.ch-axis { stroke: var(--line-strong); stroke-width: 1; }
.wf-total { fill: var(--ink); }
.wf-up { fill: var(--teal); }
.wf-down { fill: var(--caution); }
.wf-conn { stroke: var(--line-strong); stroke-dasharray: 3 3; }
.hb { fill: #9AAAB3; }
.hb-anchor { fill: var(--teal); }
.cohort-wrap { overflow-x: auto; }
.cohort { width: 100%; border-collapse: separate; border-spacing: 3px; font-family: var(--f-mono); font-size: .8125rem; }
.cohort th { font-weight: 500; color: var(--ink-2); text-align: left; padding: 4px 6px; white-space: nowrap; }
.cohort td {
  text-align: center; padding: 8px 4px; border-radius: 4px; color: var(--ink);
  background: color-mix(in srgb, var(--teal) calc(var(--v) * 34%), #fff);
}
.cohort td.c-hl { outline: 1.5px solid var(--ink); outline-offset: -1.5px; font-weight: 600; }
.cohort td.c-empty { background: repeating-linear-gradient(45deg, var(--surface-2) 0 4px, #fff 4px 8px); }

/* ---------- Content blocks ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 2.2vw, 30px); }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--ink-2); margin-bottom: 0; }
.card--flat { background: transparent; }
.card .card__icon { width: 40px; height: 40px; border-radius: 9px; display: grid; place-items: center; background: var(--tint-bg); color: var(--tint-ink); margin-bottom: 18px; }

.pillars { display: grid; gap: 0; border-top: 1px solid var(--ink); }
@media (min-width: 900px) { .pillars { grid-template-columns: repeat(3, 1fr); } }
.pillar { padding: 28px 0 8px; border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .pillar { padding: 32px 32px 8px 0; border-bottom: 0; } .pillar + .pillar { padding-left: 32px; border-left: 1px solid var(--line); } }
.pillar__n { font-family: var(--f-mono); font-size: var(--t-data); color: var(--teal); margin-bottom: 20px; display: block; }
.pillar h3 { margin-bottom: 12px; }
.pillar p { color: var(--ink-2); }

.ticks { list-style: none; display: grid; gap: 10px; margin: 18px 0 24px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks .icon { color: var(--teal); margin-top: 4px; }
.plain-list { list-style: none; display: grid; gap: 8px; }
.plain-list li { padding-left: 18px; position: relative; color: var(--ink-2); }
.plain-list li::before { content: ''; position: absolute; left: 2px; top: .7em; width: 6px; height: 1.5px; background: var(--ink-2); }

/* Walkthrough */
.walk { display: grid; gap: 24px; list-style: none; }
@media (min-width: 1040px) { .walk { grid-template-columns: repeat(3, 1fr); gap: 32px; } }
.walk__step { position: relative; }
.walk__step .walk__vis { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 22px; min-height: 216px; }
.walk__n { font-family: var(--f-mono); font-size: var(--t-data); color: var(--ink-2); display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.walk__n::after { content: ''; height: 1px; background: var(--line); flex: 1; }
.walk__step h3 { margin-bottom: 8px; }
.walk__step p { color: var(--ink-2); }

.mini { font-size: .8125rem; }
.mini__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 7px; margin-bottom: 8px; background: var(--surface); }
.mini__row:last-child { margin-bottom: 0; }
.mini__row strong { font-weight: 600; }
.mini__label { font-family: var(--f-mono); font-size: .6875rem; color: var(--ink-2); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 8px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.mini__kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mini__kpi { border: 1px solid var(--line); border-radius: 7px; padding: 8px 10px; }
.mini__kpi span { display: block; font-family: var(--f-mono); font-size: .6875rem; color: var(--ink-2); }
.mini__kpi strong { font-family: var(--f-mono); font-weight: 500; font-size: 1rem; }
.mini__lineage { display: grid; gap: 6px; }
.mini__lineage div { display: grid; grid-template-columns: 70px 1fr; gap: 8px; padding: 6px 10px; border-left: 2px solid var(--teal); background: var(--surface-2); border-radius: 0 6px 6px 0; }
.mini__lineage span { font-family: var(--f-mono); font-size: .6875rem; color: var(--ink-2); text-transform: uppercase; }
.mini__lineage code { font-size: .75rem; }

/* Roles */
.roles { display: grid; gap: 0; border-top: 1px solid var(--line); }
@media (min-width: 720px) { .roles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .roles { grid-template-columns: repeat(4, 1fr); } }
.role { padding: 28px 24px 28px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 1040px) { .role { border-bottom: 0; } .role + .role { padding-left: 24px; border-left: 1px solid var(--line); } }
.role__who { font-family: var(--f-mono); font-size: var(--t-data); color: var(--teal); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 14px; }
.role h3 { font-size: 1.3125rem; line-height: 1.3; margin-bottom: 12px; }
.role p { color: var(--ink-2); font-size: var(--t-small); }
.role .plain-list li { font-size: var(--t-small); }

/* Architecture diagram */
.arch { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(18px, 2.5vw, 32px); }
.section--dark .arch { background: var(--dark-2); border-color: var(--dark-line); }
.arch svg { width: 100%; height: auto; }
.arch-legend { display: grid; gap: 16px; margin-top: 24px; }
@media (min-width: 720px) { .arch-legend { grid-template-columns: 1fr 1fr; } }
.arch-legend > div { padding: 18px 20px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.section--dark .arch-legend > div { background: transparent; border-color: var(--dark-line); }
.arch-legend h3 { font-size: 1.125rem; display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.arch-legend p { font-size: var(--t-small); margin: 0; }

/* Trust grid */
.trust-grid { display: grid; gap: 0; border-top: 1px solid var(--line); }
@media (min-width: 720px) { .trust-grid { grid-template-columns: repeat(2, 1fr); column-gap: 48px; } }
@media (min-width: 1040px) { .trust-grid { grid-template-columns: repeat(3, 1fr); } }
.trust-item { padding: 24px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 24px 1fr; gap: 14px; }
.trust-item .icon { color: var(--teal); margin-top: 3px; }
.trust-item h3 { font-size: 1.125rem; margin-bottom: 6px; font-family: var(--f-body); }
.trust-item p { font-size: var(--t-small); color: var(--ink-2); margin: 0; }
.section--dark .trust-grid, .section--dark .trust-item { border-color: var(--dark-line); }
.section--dark .trust-item .icon { color: var(--on-dark-accent); }
.section--dark .trust-item p { color: var(--on-dark-2); }

.status-table { width: 100%; border-collapse: collapse; font-size: var(--t-small); }
.status-table th, .status-table td { text-align: left; padding: 14px 12px 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.status-table thead th { font-family: var(--f-mono); font-size: .75rem; font-weight: 500; color: var(--ink-2); text-transform: uppercase; letter-spacing: .05em; }
.status-table tbody th { font-weight: 600; }
.section--dark .status-table th, .section--dark .status-table td { border-color: var(--dark-line); }
.section--dark .status-table thead th { color: var(--on-dark-2); }
/* Narrowest phones (320px): let three-column tables fit without sideways scrolling. */
@media (max-width: 400px) {
  .status-table th, .status-table td { padding-right: 8px; overflow-wrap: anywhere; }
  .status-table thead th { letter-spacing: 0; }
  .status-table .badge { white-space: normal; }
}

/* Split paths */
.split { display: grid; gap: 24px; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 32px; } }
.path { padding: clamp(24px, 3vw, 40px); border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface); display: flex; flex-direction: column; }
.path--sales { border-top: 3px solid var(--blue); }
.path--trial { border-top: 3px solid var(--ink); }
.path__tag { display: flex; align-items: center; gap: 8px; font-size: var(--t-small); color: var(--ink-2); margin-bottom: 16px; }
.path h3 { margin-bottom: 12px; }
.path > p { color: var(--ink-2); }
.path .cta-row { margin-top: auto; }

/* Final CTA */
/* Same band rhythm as .cap and .cx; the old clamp(64px, 7vw, 120px) was 5x the section scale. */
.final { background: var(--dark); color: #fff; padding-block: clamp(40px, 4vw, 64px); }
.final__inner { display: grid; gap: 32px; align-items: end; }
@media (min-width: 1040px) { .final__inner { grid-template-columns: 1.4fr auto; gap: 64px; } }
.final h2 { color: #fff; max-width: 20ch; }
.final .lead { color: var(--on-dark-2); margin: 20px 0 0; }

/* Footer */
.footer { background: var(--dark); color: var(--on-dark-2); border-top: 1px solid var(--dark-line); padding-block: 48px 24px; font-size: .8125rem; }
.footer a { color: #E4ECF0; text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer .logo { color: #fff; margin-bottom: 16px; }
.footer .logo__mark { color: #fff; }
.footer__top { display: grid; gap: 36px; grid-template-columns: 1fr 1fr; }
@media (min-width: 1040px) { .footer__top { grid-template-columns: 1.6fr repeat(3, 1fr); gap: 48px; } }
.footer__brand { grid-column: 1 / -1; max-width: 34ch; }
@media (min-width: 1040px) { .footer__brand { grid-column: auto; } }
.footer__h { font-family: var(--f-body); font-size: .8125rem; font-weight: 600; text-transform: uppercase; color: #fff; margin-bottom: 8px; }
.footer__col ul { list-style: none; display: grid; gap: 4px; }
.footer__col a { display: inline-flex; min-height: 36px; align-items: center; }
/* The brand block sits one step above the link columns so it leads. */
.footer__brand p { font-size: .875rem; line-height: 1.6; }
.footer__contact { margin-top: 12px; }
.footer__base { display: flex; flex-wrap: wrap; gap: 8px 32px; justify-content: space-between; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--dark-line); font-size: .8125rem; }
.footer__base p { margin: 0; }
/* The 36px link rows are a touch target: tighten them where the pointer is a mouse.
   Declared after .footer__base so its margin-top is the one that applies. */
@media (min-width: 700px) {
  .footer__col a { min-height: 0; padding-block: 3px; }
  .footer__col ul { gap: 0; }
  .footer__top { gap: 28px; }
  .footer__base { margin-top: 40px; }
}

/* Breadcrumbs */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; font-size: .875rem; color: var(--ink-2); margin-bottom: 24px; }
.crumbs li + li::before { content: '/'; margin-right: 6px; color: var(--line-strong); }
.crumbs a { color: var(--ink-2); }

/* ---------- Accordion ---------- */
.acc { border-top: 1px solid var(--line); }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; min-height: 56px;
  cursor: pointer; list-style: none; font-weight: 600; font-size: 1.0625rem;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary .icon { transition: transform var(--d-fast) var(--ease); color: var(--ink-2); }
.acc details[open] summary .icon { transform: rotate(180deg); }
.acc__body { padding: 0 0 24px; max-width: 70ch; color: var(--ink-2); }
.acc__body p:last-child { margin-bottom: 0; }
.acc__plain { color: var(--ink); }
.acc__tech { margin-top: 14px; padding: 14px 16px; background: var(--surface-2); border-radius: 8px; font-size: var(--t-small); }
.acc__tech-h { font-family: var(--f-mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); margin-bottom: 8px; display: block; }

/* ---------- Platform capability rows ---------- */
.cap { display: grid; gap: 28px; padding-block: clamp(28px, 3vw, 44px); border-top: 1px solid var(--line); }
.cap:first-of-type { border-top: 0; padding-top: 0; }
.cap:last-of-type { padding-bottom: 0; } /* sections end like the home page: content, then the section padding */
@media (min-width: 1040px) { .cap { grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; } }
.cap__tag { font-family: var(--f-mono); font-size: var(--t-data); color: var(--teal); margin-bottom: 12px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.cap h3 { margin-bottom: 12px; }
.cap p { color: var(--ink-2); }
.cap__example { margin-top: 18px; padding: 14px 16px; border-left: 3px solid var(--ink); background: var(--surface); border-radius: 0 8px 8px 0; font-size: var(--t-small); }
.cap__example strong { display: block; font-family: var(--f-mono); font-size: .75rem; font-weight: 500; color: var(--ink-2); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px; }
.cap__plan { display: flex; gap: 6px; align-items: flex-start; font-size: .8125rem; color: var(--ink-2); margin-top: 12px; }
.cap__plan .icon { margin-top: 3px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.panel__bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 16px; background: var(--surface-2); border-bottom: 1px solid var(--line); font-family: var(--f-mono); font-size: .75rem; color: var(--ink-2); flex-wrap: wrap; }
.panel__body { padding: 20px; }

.stage-nav { position: sticky; top: var(--header-h); z-index: 20; background: rgba(244, 248, 245, .96); /* --bg at 96% */ border-bottom: 1px solid var(--line); }
.stage-nav ol { list-style: none; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding-block: 8px; }
.stage-nav a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 8px; text-decoration: none; color: var(--ink-2); font-weight: 500; white-space: nowrap; font-size: .9375rem; }
.stage-nav a span { font-family: var(--f-mono); font-size: .75rem; }
.stage-nav a:hover, .stage-nav a.is-current { color: var(--ink); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }

/* Open-evidence how-to */
.howto { display: grid; gap: 16px; counter-reset: how; list-style: none; }
@media (min-width: 900px) { .howto { grid-template-columns: repeat(4, 1fr); } }
.howto li { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); counter-increment: how; }
.howto li::before { content: counter(how, decimal-leading-zero); display: block; font-family: var(--f-mono); font-size: .8125rem; color: var(--teal); margin-bottom: 12px; }
.howto h3 { font-size: 1.125rem; margin-bottom: 6px; font-family: var(--f-body); }
.howto p { font-size: var(--t-small); color: var(--ink-2); margin: 0; }

/* ---------- Integrations directory ---------- */
.dir-controls { display: grid; gap: 16px; margin-bottom: 28px; }
.dir-controls .field { max-width: 440px; }
.field { display: grid; gap: 8px; }
.field label, .field legend { font-weight: 600; font-size: .9375rem; }
.field .hint { font-size: .875rem; color: var(--ink-2); }
/* Hints and errors are <p>: drop the paragraph margin so the field's gap is the only spacing. */
.field .hint, .field .error { margin: 0; }
.field .hint:empty { display: none; }
.input, .select, .textarea {
  width: 100%; min-height: 48px; padding: 11px 14px; border: 1px solid var(--line-strong); border-radius: 8px;
  background: var(--surface); color: var(--ink); font: inherit; font-size: 1rem;
  transition: border-color var(--d-fast), box-shadow var(--d-fast);
}
.textarea { min-height: 112px; resize: vertical; line-height: 1.5; }
/* After the shared rule above, whose background shorthand would otherwise drop the arrow. */
.select {
  appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%2352616B' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
.input:hover, .select:hover, .textarea:hover { border-color: var(--ink-2); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(23, 92, 255, .2); }
.input[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--error); }
.search-wrap { position: relative; }
.search-wrap .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--ink-2); pointer-events: none; }
.search-wrap .input { padding-left: 42px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0; }
.chips legend { margin-bottom: 8px; padding: 0; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip > span {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--surface); font-size: .9375rem; font-weight: 500; cursor: pointer;
  transition: background-color var(--d-fast), border-color var(--d-fast), color var(--d-fast);
}
.chip input:checked + span { background: var(--sel-bg); color: var(--sel-fg); border-color: var(--sel-border); }
.chip input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.chip .count { font-family: var(--f-mono); font-size: .75rem; opacity: .8; }
.dir-filters { display: grid; gap: 16px; }
.dir-meta { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; font-size: var(--t-small); color: var(--ink-2); }
.dir-group { margin-bottom: 40px; }
.dir-group__h { display: flex; align-items: baseline; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--ink); margin-bottom: 16px; }
.dir-group__h h2 { font-size: 1.375rem; }
.dir-group__h p { margin: 0; font-size: var(--t-small); color: var(--ink-2); }
.dir-list { display: grid; gap: 16px; list-style: none; }
@media (min-width: 720px) { .dir-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .dir-list { grid-template-columns: repeat(3, 1fr); } }
.conn { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 12px; height: 100%; }
.conn__top { display: flex; align-items: flex-start; gap: 12px; }
.conn__mark { flex: none; width: 40px; height: 40px; border-radius: 9px; display: grid; place-items: center; font-family: var(--f-mono); font-weight: 500; font-size: .875rem; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink); }
.conn h3 { font-size: 1.0625rem; font-family: var(--f-body); line-height: 1.3; }
.conn__badges { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin-top: 4px; }
.conn p { margin: 0; font-size: .9375rem; color: var(--ink-2); }
.conn details { border-top: 1px solid var(--line); padding-top: 10px; margin-top: auto; }
.conn summary { cursor: pointer; font-weight: 600; font-size: .9375rem; color: var(--blue); min-height: 36px; display: flex; align-items: center; gap: 6px; list-style: none; }
.conn summary::-webkit-details-marker { display: none; }
.conn summary .icon { transition: transform var(--d-fast); }
.conn details[open] summary .icon { transform: rotate(180deg); }
.conn dl { margin: 10px 0 0; display: grid; gap: 10px; font-size: .875rem; }
.conn dt { font-family: var(--f-mono); font-size: .6875rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); }
.conn dd { margin: 2px 0 0; }
.conn dd ul { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; }
.conn dd ul li { padding: 1px 8px; background: var(--surface-2); border-radius: 4px; font-family: var(--f-mono); font-size: .75rem; }
.conn dd ul.qs { display: grid; gap: 4px; }
.conn dd ul.qs li { background: none; padding: 0; font-family: var(--f-body); font-size: .875rem; }
.empty { padding: 40px 24px; text-align: center; border: 1px dashed var(--line-strong); border-radius: var(--radius); background: var(--surface); }
.empty h2 { font-size: 1.25rem; margin-bottom: 8px; }
.empty p { color: var(--ink-2); }

/* ---------- Pricing ---------- */
.toggles { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; margin-bottom: 32px; }
.seg { display: inline-flex; padding: 4px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); gap: 2px; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg label { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 14px; border-radius: 7px; cursor: pointer; font-weight: 500; font-size: .9375rem; color: var(--ink-2); }
.seg input:checked + label { background: var(--sel-bg); color: var(--sel-fg); box-shadow: inset 0 0 0 1px var(--sel-border); }
.seg input:focus-visible + label { outline: 2px solid var(--blue); outline-offset: 2px; }
.seg .save { font-family: var(--f-mono); font-size: .6875rem; padding: 1px 6px; border-radius: 4px; background: var(--teal-tint); color: var(--teal); }
.seg input:checked + label .save { background: var(--sel-save-bg); color: var(--sel-save-fg); }
.seg-group { border: 0; padding: 0; margin: 0; display: flex; align-items: center; gap: 12px; }
.seg-group legend { float: left; font-size: .875rem; color: var(--ink-2); margin-right: 4px; }
.plans { display: grid; gap: 16px; }
@media (min-width: 720px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1140px) { .plans { grid-template-columns: repeat(4, 1fr); } }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; display: flex; flex-direction: column; }
.plan--trial { border-color: var(--sel-border); box-shadow: inset 0 3px 0 var(--sel-border); }
.plan h3 { font-size: 1.375rem; display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.plan__fit { font-size: .9375rem; color: var(--ink-2); margin: 6px 0 20px; min-height: 3em; }
.plan__price { display: flex; align-items: baseline; gap: 6px; }
.plan__price .num { font-family: var(--f-display); font-size: 2.125rem; font-weight: 600; letter-spacing: -.03em; }
.plan__per { color: var(--ink-2); font-size: .9375rem; }
.plan__bill { font-size: .8125rem; color: var(--ink-2); min-height: 1.5em; margin: 4px 0 20px; }
.plan__credits { font-family: var(--f-mono); font-size: .8125rem; padding: 8px 10px; background: var(--teal-tint); color: var(--teal); border-radius: 6px; margin-bottom: 18px; }
.plan__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; margin: 0 0 18px; padding: 0 0 18px; border-bottom: 1px solid var(--line); }
.plan__stats div { display: grid; }
.plan__stats dt { font-size: .75rem; color: var(--ink-2); font-family: var(--f-mono); }
.plan__stats dd { margin: 0; font-weight: 600; }
.plan .ticks { margin: 0 0 24px; font-size: .9375rem; }
.plan .btn { margin-top: auto; width: 100%; }
.pill { font-family: var(--f-mono); font-size: .6875rem; font-weight: 500; padding: 3px 8px; border-radius: 999px; background: var(--sel-bg); color: var(--sel-fg); box-shadow: inset 0 0 0 1px var(--sel-border); letter-spacing: .03em; }

.cmp-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.cmp { width: 100%; min-width: 720px; border-collapse: collapse; font-size: .9375rem; }
.cmp caption { text-align: left; padding: 16px 20px; font-size: .875rem; color: var(--ink-2); caption-side: bottom; border-top: 1px solid var(--line); }
.cmp th, .cmp td { padding: 13px 16px; border-bottom: 1px solid var(--line); text-align: center; }
.cmp thead th { position: sticky; top: 0; background: var(--surface); font-family: var(--f-display); font-size: 1.0625rem; }
.cmp tbody th { text-align: left; font-weight: 500; }
.cmp .grp th { text-align: left; font-family: var(--f-mono); font-size: .75rem; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); background: var(--surface-2); }
.cmp td .icon { margin-inline: auto; }
.cmp .yes { color: var(--teal); }
.cmp .no { color: var(--line-strong); }
.cmp-mobile { display: none; }
@media (max-width: 719px) {
  .cmp-wrap { display: none; }
  .cmp-mobile { display: block; }
}
.cmp-plan-picker { margin-bottom: 16px; }
.cmp-list { list-style: none; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.cmp-list li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: .9375rem; }
.cmp-list li:last-child { border-bottom: 0; }
.cmp-list li.grp { background: var(--surface-2); font-family: var(--f-mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); }
.cmp-list .v { font-weight: 600; text-align: right; }
.cmp-show-all { margin-top: 12px; }

.credits { display: grid; gap: 24px; }
@media (min-width: 900px) { .credits { grid-template-columns: 1fr 1fr; gap: 48px; } }

/* ---------- Callouts ---------- */
.note {
  display: flex; gap: 12px; padding: 16px 18px; border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--surface); font-size: var(--t-small); color: var(--ink-2);
}
.note .icon { color: var(--ink-2); margin-top: 3px; }
.note strong { color: var(--ink); }
.note--caution { border-color: var(--caution-border); background: var(--caution-tint); }
.note--caution .icon { color: var(--caution); }
.note--verified { border-color: var(--proof-border); background: var(--proof-bg); }
.note--verified .icon { color: var(--proof-ink); }
.note p { margin: 0; }

.doc-links { display: grid; gap: 16px; }
@media (min-width: 720px) { .doc-links { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .doc-links { grid-template-columns: repeat(4, 1fr); } }
.doc-link { display: flex; flex-direction: column; gap: 8px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); text-decoration: none; color: var(--ink); transition: border-color var(--d-fast); }
.doc-link:hover { border-color: var(--ink); color: var(--ink); }
.doc-link .icon { color: var(--teal); }
.doc-link strong { font-size: 1.0625rem; }
.doc-link span { font-size: .875rem; color: var(--ink-2); }
.doc-link em { font-style: normal; margin-top: auto; font-size: .875rem; font-weight: 600; color: var(--blue); display: inline-flex; gap: 6px; align-items: center; }
.section--dark .doc-link { background: transparent; border-color: var(--dark-line); color: #fff; }
.section--dark .doc-link span { color: var(--on-dark-2); }
.section--dark .doc-link em { color: var(--on-dark-link); }
.section--dark .doc-link:hover { border-color: #fff; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 20px; }
.form__row { display: grid; gap: 20px; }
@media (min-width: 720px) { .form__row { grid-template-columns: 1fr 1fr; } }
.req { color: var(--ink-2); font-weight: 400; font-size: .875rem; }
.error { color: var(--error); font-size: .875rem; font-weight: 500; display: flex; gap: 6px; align-items: center; }
.error:empty { display: none; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0; }
.checks legend { font-weight: 600; font-size: .9375rem; margin-bottom: 8px; padding: 0; }
.form-status { padding: 16px 18px; border-radius: var(--radius); font-size: var(--t-small); }
.form-status[hidden] { display: none; }
.form-status--ok { background: var(--tint-bg); border: 1px solid var(--tint-border); color: var(--ink); }
.form-status--err { background: var(--error-tint); border: 1px solid var(--error-border); color: var(--error-ink); }
.form-status h3 { font-size: 1.0625rem; font-family: var(--f-body); margin-bottom: 6px; }
.form-status p { margin: 0 0 8px; }
.form-status p:last-child { margin: 0; }
.form-aside { font-size: .875rem; color: var(--ink-2); }
.demo { display: grid; gap: 40px; }
@media (min-width: 1040px) { .demo { grid-template-columns: 5fr 7fr; gap: 64px; } }
.demo__form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(22px, 3vw, 36px); }

/* ---------- Misc ---------- */
.kicker-list { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--line); }
.kicker-list li { display: grid; gap: 4px 24px; padding: 20px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .kicker-list li { grid-template-columns: 280px 1fr; } }
.kicker-list strong { font-family: var(--f-display); font-size: 1.1875rem; font-weight: 600; }
.kicker-list p { margin: 0; color: var(--ink-2); }
.qa { display: grid; gap: 20px; }
.q-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: grid; gap: 16px; }
@media (min-width: 900px) { .q-card { grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; } }
.q-card h3 { font-size: 1.1875rem; line-height: 1.35; }
.q-card .q-why { color: var(--ink-2); font-size: var(--t-small); margin: 8px 0 0; }
.q-card h4 { font-family: var(--f-mono); font-size: .75rem; font-weight: 500; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); margin-bottom: 8px; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { padding: 3px 9px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line); font-size: .8125rem; font-weight: 500; }
.tags li.is-soon { border-style: dashed; color: var(--caution-ink); }
.contact-grid { display: grid; gap: 16px; }
@media (min-width: 720px) { .contact-grid { grid-template-columns: repeat(2, 1fr); } }
.contact-card { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.contact-card h2 { font-size: 1.25rem; margin-bottom: 6px; }
.contact-card p { color: var(--ink-2); font-size: var(--t-small); }
.contact-card a.mail { font-family: var(--f-mono); font-size: .9375rem; font-weight: 500; display: inline-flex; min-height: 44px; align-items: center; word-break: break-all; }
.stat-line { display: flex; flex-wrap: wrap; gap: 24px 48px; padding-top: 24px; border-top: 1px solid var(--line); margin-top: 32px; }
.stat-line div { display: grid; }
.stat-line dt { font-family: var(--f-mono); font-size: .75rem; color: var(--ink-2); text-transform: uppercase; letter-spacing: .05em; }
.stat-line dd { margin: 4px 0 0; font-weight: 600; }
.anchor-offset { scroll-margin-top: calc(var(--header-h) + 72px); }
.mt-0 { margin-top: 0; } .mt-s { margin-top: 16px; } .mt-m { margin-top: 32px; } .mt-l { margin-top: 56px; }
.mb-0 { margin-bottom: 0; }
.center { text-align: center; }

/* ---------- Architecture diagram ---------- */
.arch__svg { display: none; }
@media (min-width: 640px) { .arch__svg { display: block; } }
@media (max-width: 639px) { .arch { display: none; } .arch-legend { margin-top: 0; } }
.a-box { fill: var(--surface); stroke: var(--line-strong); }
.a-box--q { stroke: var(--teal); }
.a-klar { fill: var(--surface-2); stroke: var(--ink); stroke-width: 1.5; }
.a-item rect { fill: var(--surface); stroke: var(--line); }
.a-item--sync rect { stroke-dasharray: 4 3; stroke: var(--ink-2); }
.a-pill-q { fill: var(--tint-bg); stroke: var(--tint-border); }
.a-pill { fill: var(--surface-2); stroke: var(--line); }
.a-h { font: 600 17px var(--f-display); fill: var(--ink); }
.a-s { font: 400 13px var(--f-body); fill: var(--ink-2); }
.a-strong { font: 600 14px var(--f-body); fill: var(--ink); }
.a-m { font: 400 12px var(--f-mono); fill: var(--ink-2); }
.a-lbl { font: 500 12px var(--f-mono); fill: var(--ink-2); }
.a-line { stroke: var(--ink-2); stroke-width: 1.5; stroke-dasharray: 5 4; }
.a-line-t { stroke: var(--teal); stroke-width: 1.8; }
.a-head { fill: var(--ink-2); }
.a-head-t { fill: var(--teal); }

/* ---------- Fixes ---------- */
.field { align-content: start; }
.form__row { align-items: start; }
.section--dark a.doc-link { color: #fff; }
.section--dark a.doc-link:hover { color: #fff; }

.chart-list { display: none; list-style: none; margin-top: 10px; border-top: 1px solid var(--line); }
.chart-list li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: .875rem; }
.chart-list .num { font-weight: 500; }
@media (max-width: 559px) {
  .chart-list { display: block; }
  .chart .ch-lbl, .chart .ch-val, .chart .ch-sub { display: none; }
}

/* ---------- Home: hero over a background video ---------- */
.hero--video {
  position: relative; isolation: isolate; overflow: hidden; background: var(--hero-bg); color: var(--on-dark);
  padding-block: clamp(40px, 3.4vw, 48px) 80px;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__video { width: 100%; height: 100%; object-fit: cover; }
/* Scrim keeps copy at AA contrast whatever frame is showing. */
.hero--video::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(var(--hero-bg-rgb), .93) 0%, rgba(var(--hero-bg-rgb), .85) 46%, rgba(var(--hero-bg-rgb), .45) 100%);
}
@media (max-width: 1039px) { .hero--video::before { background: rgba(var(--hero-bg-rgb), .87); } }
/* The hero keeps the original, larger type scale and buttons, and renders at 85% on
   laptop-size desktop screens (browsers without CSS zoom show it at full size). */
.hero--video {
  --t-h1: clamp(2.5rem, 1.15rem + 5.6vw, 5.25rem); --t-lead: clamp(1.125rem, 1.03rem + .4vw, 1.3125rem);
  --t-body: clamp(1rem, .96rem + .2vw, 1.0938rem); --t-small: .9375rem; font-size: var(--t-body);
}
.hero--video .btn { min-height: 48px; padding: 12px 22px; font-size: 1rem; }
@media (min-width: 1040px) and (max-width: 1679px), (min-width: 1040px) and (max-height: 820px) { .hero--video { zoom: .85; } }
.hero--video .hero__grid { align-items: center; }
.hero--video .h1 { color: #fff; font-size: clamp(2.25rem, 1.1rem + 3vw, 3.5rem); line-height: 1.05; }
.hero--video .hero__copy .lead { font-size: 1.125rem; margin: 18px 0 26px; }
.hero--video .hero__proof { margin-top: 20px; }
/* Compact evidence card in the hero. */
.hero--video .trail__bar { padding: 8px 14px; }
.hero--video .trail__step { padding: 12px 18px; }
.hero--video .trail__question { font-size: 1.25rem; }
.hero--video .trail__summary { margin: 4px 0 8px; }
.hero--video .trail__chart .chart { max-height: 96px; }
.hero--video .trail__cap { padding: 8px 14px; }
.hero--video .eyebrow, .hero__em { color: var(--on-dark-accent); }
.hero--video .lead, .hero--video .hero__proof { color: var(--on-dark-2); }
.hero--video .hero__proof .icon { color: var(--on-dark-accent); }
/* Brand name in the hero paragraph: larger and amber gold (#FFC857, 10.6:1 on the indigo hero). line-height 1 keeps
   the line box unchanged; the paragraph's slight negative tracking pays for the extra width so
   the line breaks stay exactly where they were (≈9 px spare on line 1 at 1280–2560 px). */
.hero--video .hero__copy .lead { letter-spacing: -.01em; }
.hero__brand { font-family: var(--f-display); font-size: 1.25em; font-weight: 600; line-height: 1; letter-spacing: -.02em; color: #FFC857; white-space: nowrap; }
/* Letter rise: K, l, a, r rise into place 3 times on load (2 s each: 0.8 s rise, then hold),
   ending visible. The hero's pause button stops it (app.js). Transform/opacity only. */
.hero__brand-l { display: inline-block; }
@media (prefers-reduced-motion: no-preference) {
  .hero__brand-l { animation: brand-rise 2s ease-in-out 3 both; animation-delay: calc(.35s + var(--i) * .12s); }
}
@keyframes brand-rise { 0% { opacity: 0; transform: translateY(.4em); } 40%, 100% { opacity: 1; transform: none; } }
.hero--video .trail { box-shadow: 0 28px 64px -24px rgba(0, 0, 0, .6); }
.hero__vctl {
  position: absolute; right: var(--gutter); bottom: 24px; z-index: 1; display: inline-grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .5);
  background: rgba(var(--hero-bg-rgb), .75); color: #fff; cursor: pointer; transition: border-color var(--d-fast) var(--ease);
}
.hero__vctl:hover { border-color: #fff; }
.hero__vctl[hidden] { display: none; }
.hero__vctl-pause, .hero__vctl-play { display: grid; }
.hero__vctl .hero__vctl-play, .hero__vctl.is-paused .hero__vctl-pause { display: none; }
.hero__vctl.is-paused .hero__vctl-play { display: grid; }

/* Why Klar visuals */
.wv-fid { border: 1px solid var(--line); border-radius: 7px; padding: 12px; }
.wv-fid svg { width: 100%; height: 80px; }
.wv-fid__sample { fill: none; stroke: var(--line-strong); stroke-width: 1.5; stroke-dasharray: 4 4; }
.wv-fid__full { fill: none; stroke: var(--teal); stroke-width: 2.2; stroke-linecap: round; }
.wv-fid__legend { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 8px; margin-top: 8px; font-family: var(--f-mono); font-size: .6875rem; color: var(--ink-2); }
.wv-fid__legend .is-full { color: var(--teal); }
.wv-ai { padding: 10px 12px; border: 1px solid var(--vizbox-border); background: var(--vizbox-bg); border-radius: 7px; line-height: 1.5; }
.wv-ai__tag { display: block; margin-bottom: 4px; font-family: var(--f-mono); font-size: .6875rem; text-transform: uppercase; letter-spacing: .05em; color: var(--vizbox-ink); }
.wv-attr { display: grid; gap: 12px; padding: 14px 12px; border: 1px solid var(--line); border-radius: 7px; }
.wv-attr__row { display: grid; grid-template-columns: 52px 1fr; align-items: center; gap: 8px; font-family: var(--f-mono); font-size: .6875rem; color: var(--ink-2); text-transform: uppercase; }
.wv-attr__row i { position: relative; display: block; height: 11px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
.wv-attr__row i b { position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: 3px; background: var(--ink-2); transform-origin: left center; }
.wv-attr__row.is-anchor i b { background: var(--teal); }
.wv-attr__v { display: none; font-style: normal; font-family: var(--f-mono); font-size: .6875rem; color: var(--ink); text-align: right; }
.wv-fid__legend b { font-weight: inherit; }
.walk .wv-attr__ok { display: flex; align-items: center; gap: 6px; margin: 10px 0 0; font-family: var(--f-mono); font-size: .6875rem; text-transform: uppercase; color: var(--teal); }

/* Product capability tabs */
.feat { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.feat__tabs { padding: 0 8px; background: var(--surface); scroll-snap-type: x proximity; }
.feat__tabs [role="tab"] { scroll-snap-align: start; }
.feat__panel { padding: clamp(18px, 2.4vw, 32px); }
.feat__grid { display: grid; gap: 32px; }
@media (min-width: 1040px) { .feat__grid { grid-template-columns: 1.1fr 1fr; gap: 56px; } }
.feat__copy .h3 { margin-bottom: 12px; }
.feat__sub { color: var(--ink-2); max-width: 52ch; }
.feat__points { list-style: none; display: grid; gap: 16px; margin-top: 24px; }
.feat__points li { display: flex; gap: 12px; }
.feat__points .icon { color: var(--teal); margin-top: 4px; }
.feat__points strong { display: block; font-weight: 600; }
.feat__points span { color: var(--ink-2); font-size: var(--t-small); }
.feat__side { display: grid; gap: 16px; align-content: start; }
.feat__ai, .feat__steps { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; font-size: var(--t-small); }
.feat__q { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 7px; font-family: var(--f-mono); font-size: .8125rem; }
.feat__ans { padding: 12px; border: 1px solid var(--vizbox-border); background: var(--vizbox-bg); border-radius: 7px; }
.feat__ans p { margin: 0 0 8px; }
.feat__ans .feat__tag { font-family: var(--f-mono); font-size: .6875rem; text-transform: uppercase; letter-spacing: .05em; color: var(--vizbox-ink); }
.feat__chips { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.feat__chips code { display: inline-block; padding: 2px 7px; border-radius: 5px; background: var(--surface); border: 1px solid var(--tint-border); font-size: .75rem; }
.feat__steps ol { list-style: none; display: grid; gap: 14px; }
.feat__steps li { display: flex; gap: 12px; }
.feat__steps .step-n { margin-top: 2px; }
.feat__steps strong { display: block; }
.feat__steps li span:not(.step-n) { color: var(--ink-2); }
.feat .note { margin: 0; }

/* Industry packs, pricing alignment */
.pack .path__tag { flex-wrap: wrap; justify-content: space-between; }
.pack__src { font-family: var(--f-mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; }
.path > .pack__pitch { font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.pack__h { font-family: var(--f-mono); font-size: .75rem; font-weight: 500; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); margin: 16px 0 8px; }
.pack .cta-row { padding-top: 24px; }
.pack--soon { background: var(--bg); border-style: dashed; }
.pack__road { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-weight: 500; color: var(--caution-ink); }
.toggles--center, .cta-row--center { justify-content: center; }
/* The evidence card is a light surface inside the dark hero: restore ink text and blue focus. */
.hero--video .trail { color: var(--ink); }
.hero--video .trail :focus-visible { outline-color: var(--blue); }

/* Feature call-to-action inside the proof note */
.feat .note p { margin: 0; }
.note--cta { align-items: center; flex-wrap: wrap; }
.note--cta p { flex: 1; min-width: 220px; }
.note--cta .btn { margin-left: auto; }
.note--cta .btn .icon { color: currentColor; margin-top: 0; }
.feat__grid > * { min-width: 0; }
.note--cta .btn { white-space: normal; text-align: left; max-width: 100%; }
@media (max-width: 559px) { .note--cta .btn { width: 100%; justify-content: space-between; } }

/* ---------- Home: interactive integrations (shared) ---------- */
.ic-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.ic-filter { min-height: 40px; padding: 6px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font-size: .9375rem; font-weight: 500; cursor: pointer; transition: border-color var(--d-fast), background-color var(--d-fast), color var(--d-fast); }
.ic-filter:hover { border-color: var(--ink-2); color: var(--ink); }
.ic-filter[aria-pressed="true"] { background: var(--sel-bg); border-color: var(--sel-border); color: var(--sel-fg); }
.ic-logo { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; background: var(--surface); border: 1px solid var(--line); }
.ic-logo img { width: 20px; height: 20px; object-fit: contain; }
.ic-logo--sm { width: 28px; height: 28px; border-radius: 7px; }
.ic-logo--sm img { width: 16px; height: 16px; }
.ic-logo--lg { width: 48px; height: 48px; border-radius: 11px; }
.ic-logo--lg img { width: 26px; height: 26px; }
.ic-logo--mono { background: var(--tint-bg); border-color: var(--tint-border); color: var(--tint-ink); font-family: var(--f-mono); font-size: .75rem; font-weight: 500; }
.ic-logo--lg.ic-logo--mono { font-size: 1rem; }
.ic-tile { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); text-align: left; cursor: pointer; transition: border-color var(--d-fast), box-shadow var(--d-fast); }
.ic-tile:hover { border-color: var(--ink-2); }
.ic-tile[aria-pressed="true"] { border-color: var(--teal); box-shadow: inset 0 0 0 1px var(--teal); }
.ic-tile[hidden] { display: none; }
.ic-tile__text { min-width: 0; flex: 1; }
.ic-tile__name { display: block; font-weight: 600; font-size: .9375rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ic-tile__cats { display: block; font-family: var(--f-mono); font-size: .6875rem; color: var(--ink-2); text-transform: uppercase; letter-spacing: .04em; }
.ic-soon { flex: none; font-family: var(--f-mono); font-size: .6875rem; font-weight: 500; color: var(--caution-ink); background: var(--caution-tint); border: 1px solid var(--caution-border); border-radius: 999px; padding: 1px 7px; }
.ic-request { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 62px; padding: 12px; border: 1px dashed var(--line-strong); border-radius: var(--radius); font-weight: 600; font-size: .9375rem; text-decoration: none; }
.ic-request:hover { border-color: var(--blue); }
.ic-detail { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow); }
.ic-detail[hidden] { display: none; }
.ic-detail__head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.ic-detail__title { flex: 1; min-width: 0; }
.ic-detail__name { font-size: 1.375rem; line-height: 1.2; }
.ic-detail__cats { margin: 2px 0 0; font-family: var(--f-mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); }
.ic-detail__desc { color: var(--ink-2); }
.ic-h { font-family: var(--f-mono); font-size: .75rem; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); margin: 0 0 8px; }
.ic-lists { display: grid; gap: 16px; margin-bottom: 18px; }
.ic-syncs, .ic-kpis { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.ic-syncs code { display: inline-block; padding: 3px 8px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line); font-size: .8125rem; }
.ic-kpis li { padding: 3px 10px; border-radius: 999px; background: var(--kpi-bg); border: 1px solid var(--kpi-border); color: var(--kpi-ink); font-size: .875rem; font-weight: 500; }
.ic-detail__foot { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0; padding-top: 14px; border-top: 1px solid var(--line); font-family: var(--f-mono); font-size: .75rem; color: var(--ink-2); }
.ic-detail__foot .mode { white-space: normal; } /* "Synced to Klar · syncs every 15 min" wraps on narrow phones */

/* Logo wall with inline detail */
.icat__wall { display: grid; gap: 10px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (min-width: 720px) { .icat__wall { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .icat__wall { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.ic-brick { flex-direction: column; justify-content: center; gap: 10px; min-height: 124px; padding: 16px 8px; text-align: center; position: relative; }
.ic-brick .ic-tile__name { font-size: .875rem; white-space: normal; }
.ic-brick .ic-soon { position: absolute; top: 8px; right: 8px; }
.ic-brick[aria-pressed="true"]::after { content: ""; position: absolute; left: 50%; bottom: -13px; width: 14px; height: 14px; background: var(--surface); border-left: 1px solid var(--teal); border-top: 1px solid var(--teal); transform: translateX(-50%) rotate(45deg); z-index: 2; }
.icat--wall.is-closed .ic-brick::after { display: none; }
.icat__wall .ic-brick--request { min-height: 124px; }
.icat__drawer { grid-column: 1 / -1; margin: 4px 0 6px; }
.icat__drawer[hidden] { display: none; }
.icat__drawer .ic-detail { position: relative; border-color: var(--teal); padding: 24px 56px 24px 24px; }
.ic-drawer__grid { display: grid; gap: 24px; }
.ic-drawer__grid > * { min-width: 0; } /* a wide header row (name + badge) must not push the column past the grid */
@media (min-width: 900px) { .ic-drawer__grid { grid-template-columns: 1.1fr 1fr; gap: 40px; } .icat--wall .ic-lists { margin: 0; } }
.ic-close { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; }
.ic-close:hover { border-color: var(--ink); }

/* ---------- "Connects to" band: sources → Klar lens → outputs ---------- */
.cx { background: var(--surface); border-bottom: 1px solid var(--line); padding-block: clamp(28px, 3vw, 44px); }
.cx-eyebrow { font-family: var(--f-mono); font-size: var(--t-data); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); margin-bottom: 18px; }
.cx-logo { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 7px; background: var(--surface); border: 1px solid var(--line); }
.cx-logo img { width: 16px; height: 16px; object-fit: contain; }

/* 5 · Flow */
.cx5__stage { position: relative; aspect-ratio: 1200 / var(--h); }
.cx5__svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.cx5__p { fill: none; stroke: var(--blue); stroke-width: 1.6; stroke-dasharray: 6 6; opacity: .75; }
.cx5__p.is-query { stroke: var(--teal); stroke-dasharray: none; }
.cx5__p.is-later { stroke: var(--caution); opacity: .5; }
.cx5__p.is-out { stroke: var(--indigo); stroke-dasharray: none; opacity: .5; }
.cx5__p.is-out.is-flow { stroke-dasharray: 6 6; opacity: .7; }
/* The dashes creep 12 px in 1.2 s, so 12 one-pixel steps look the same as a smooth run and
   repaint 10 times a second instead of 60. The SVG sits on its own layer so only the lines
   repaint, and app.js pauses them (and the Klar ring pulse) while the diagram is off screen (.is-armed without .is-live). */
@media (prefers-reduced-motion: no-preference) { .cx5__p:not(.is-query):not(.is-out), .cx5__p.is-flow { animation: cx-dash 1.2s steps(12) infinite; } }
.cx5__svg { will-change: transform; }
.cx5.is-armed:not(.is-live) .cx5__p, .cx5.is-armed:not(.is-live) .hl-ring { animation-play-state: paused; }
@keyframes cx-dash { to { stroke-dashoffset: -12; } }
.cx5__groups { position: absolute; left: 1.67%; top: 0; bottom: 0; width: 35.8%; list-style: none; display: flex; flex-direction: column; justify-content: center; }
.cx5__groups li { height: var(--rowh); display: flex; align-items: center; gap: 10px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); margin: 3px 0; }
.cx5__g { width: 86px; flex: none; font-family: var(--f-mono); font-size: .6875rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2); }
.cx5__logos { display: flex; flex-wrap: wrap; gap: 4px; }
.cx5__hub { position: absolute; top: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; gap: 2px; width: 100px; height: 100px; border-radius: 24px; background: var(--indigo); color: #fff; box-shadow: 0 12px 30px -10px rgba(62, 48, 211, .6); }
.cx5__hub b { font-family: var(--f-display); font-size: .9375rem; }
.cx5__groups li.is-soon { border-style: dashed; border-color: var(--caution-border); background: var(--caution-tint); }
.cx5__groups li.is-soon .cx5__g { color: var(--caution-ink); }
.cx5__key { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 12px 0 0; font-size: .8125rem; color: var(--ink-2); }
.cx5__key span::before { content: ""; display: inline-block; width: 22px; height: 0; margin-right: 6px; vertical-align: middle; border-top: 2px dashed var(--blue); }
.cx5__key .k-query::before { border-top: 2px solid var(--teal); }
.cx5__key .k-later::before { border-top: 2px dashed var(--caution); }
.cx5__mobile { display: none; list-style: none; }
@media (max-width: 1039px) {
  .cx5__stage, .cx5__key { display: none; }
  .cx5__mobile { display: grid; gap: 8px; font-size: .9375rem; }
  .cx5__mobile b { display: block; font-family: var(--f-mono); font-size: .75rem; font-weight: 500; text-transform: uppercase; color: var(--ink-2); }
}

/* Klar lens hub (overrides the base .cx5__hub box) */
.cx5__hub:where(.cx5__hub--a) { background: none; box-shadow: none; width: auto; height: auto; color: var(--ink); }
.cx5__hub b { font-family: var(--f-display); }

/* A · Lens: white disc with indigo ring, rings pulse outward */
.cx5__hub--a { width: 132px; height: 132px; }
.hl-disc { position: relative; z-index: 1; display: grid; place-items: center; width: 96px; height: 96px; border-radius: 50%; background: var(--surface); border: 2px solid var(--indigo); color: var(--indigo); box-shadow: 0 10px 30px -12px rgba(62, 48, 211, .55); }
.cx5__hub--a b { position: absolute; bottom: -26px; left: 50%; transform: translateX(-50%); font-size: 1rem; color: var(--indigo-strong); }
.hl-ring { position: absolute; left: 50%; top: 50%; width: 96px; height: 96px; margin: -48px 0 0 -48px; border-radius: 50%; border: 1.5px solid rgba(62, 48, 211, .35); }
@media (prefers-reduced-motion: no-preference) {
  .hl-ring { animation: hl-pulse 3s ease-out infinite; } .hl-ring--2 { animation-delay: 1.5s; }
}
@keyframes hl-pulse { from { transform: scale(1); opacity: 1; } to { transform: scale(1.7); opacity: 0; } }

/* Klar outputs on the right of the flow */
.cxo__ic { display: grid; place-items: center; flex: none; }
/* C · Output panel */
.cxo-panel { position: absolute; display: flex; flex-direction: column; border: 1px solid var(--indigo-border); border-radius: 14px; background: var(--surface); box-shadow: 0 16px 36px -20px rgba(62, 48, 211, .45); }
.cxo-panel__h { position: absolute; bottom: 100%; left: 0; margin: 0 0 8px; font-family: var(--f-mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); }
.cxo-panel ul { list-style: none; display: flex; flex-direction: column; height: 100%; }
.cxo-panel li { flex: 1; display: flex; align-items: center; gap: 12px; padding: 0 14px; }
.cxo-panel li + li { border-top: 1px solid var(--line); }
.cxo-panel .cxo__ic { width: 30px; height: 30px; border-radius: 8px; background: var(--indigo-tint); color: var(--indigo); }
.cxo-panel b { display: block; font-size: .9375rem; }
.cxo-panel small { display: block; font-size: .75rem; color: var(--ink-2); line-height: 1.3; }

/* Compact source boxes */
.cx5__groups li { gap: 8px; padding: 0 8px; margin: 2px 0; border-radius: 8px; }
.cx5__g { width: 78px; font-size: .625rem; }
.cx5__logos { gap: 3px; }
.cx5__groups .cx-logo { width: 24px; height: 24px; border-radius: 6px; }
.cx5__groups .cx-logo img { width: 14px; height: 14px; }

/* Source icons size from the box width so the 9 database icons always fit one row. */
.cx5__stage { container-type: inline-size; }
.cx5__groups li { container-type: inline-size; }
.cx5__groups .cx-logo { --ic: min(24px, calc((100cqw - 126px) / 9)); width: var(--ic); height: var(--ic); border-radius: 6px; }
.cx5__groups .cx-logo img { width: 60%; height: 60%; }
.cx5__groups .cx-logo--mono { font-size: calc(var(--ic) * .42); }
.cx5__groups li { flex-wrap: nowrap; }
.cx5__logos { flex-wrap: nowrap; }
/* Output panel: drop the one-line descriptions when the diagram is narrow. */
@container (max-width: 1080px) { .cxo-panel small { display: none; } .cxo-panel li { gap: 10px; padding: 0 12px; } }

/* Flow band: source group labels in bold; output text uses the same mono typeface as the
   source labels (size, weight, colour and case unchanged). */
.cx5__g { font-weight: 600; }
.cxo-panel b, .cxo-panel small { font-family: var(--f-mono); }
.cx5__g, .cx5__groups li.is-soon .cx5__g { color: var(--ink); }
/* Source labels one step bigger (10 → 12 px); label column widened to fit "COMING SOON". */
.cx5__g { font-size: .75rem; width: 96px; }
.cx5__groups .cx-logo { --ic: min(24px, calc((100cqw - 144px) / 9)); }

/* ---------- Why Klar charts: scanner reveal on scroll + hover to explore ---------- */
.why-charts .wv-fid { position: relative; cursor: crosshair; touch-action: pan-y; container-type: inline-size; }
.why-charts .wv-attr { position: relative; overflow: hidden; }
/* Held on the first frame until the charts scroll into view (app.js adds .is-armed / .is-play). */
.why-charts.is-armed:not(.is-play) *, .why-charts.is-armed:not(.is-play) *::after { animation-play-state: paused !important; }
@media (prefers-reduced-motion: no-preference) {
  @keyframes wa-clip { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
  /* Scanner and sweep move with transform (GPU, no relayout each frame). The line travels the chart's
     content width less its own 2 px (100cqw: .wv-fid is a size container); the sweep band sits at the
     top of a full-height layer that slides from -22px to 100% of the chart's height. */
  @keyframes wa-scan { from { transform: none; } to { transform: translateX(calc(100cqw - 2px)); } }
  @keyframes wa-sweep { from { transform: translateY(-22px); } to { transform: translateY(100%); } }
  @keyframes wa-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
  @keyframes wa-fade { from { opacity: 0; } to { opacity: 1; } }
  @keyframes wa-out { to { opacity: 0; } }
  /* Line chart: a scan line sweeps across, revealing both lines behind it. */
  .why-charts.is-armed .wv-fid__sample, .why-charts.is-armed .wv-fid__full { animation: wa-clip 1.6s .2s linear both; }
  .why-charts.is-armed .wv-fid::after { content: ""; position: absolute; top: 8px; bottom: 34px; left: 12px; width: 2px; border-radius: 2px; background: var(--teal); box-shadow: 0 0 10px 2px rgba(0, 122, 114, .35); pointer-events: none; animation: wa-scan 1.6s .2s linear both, wa-out .3s 1.8s forwards; }
  .why-charts.is-armed .wv-fid__legend { animation: wa-fade .4s 1.7s both; }
  /* Bar chart: a highlight sweeps down, filling each bar as it passes. */
  .why-charts.is-armed .wv-attr::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 100%; background: linear-gradient(180deg, rgba(0, 122, 114, 0), rgba(0, 122, 114, .16), rgba(0, 122, 114, 0)) no-repeat 0 0 / 100% 22px; pointer-events: none; animation: wa-sweep 1.2s .2s ease-in-out both; }
  .why-charts.is-armed .wv-attr__row b { animation: wa-grow .5s ease-out both; animation-delay: calc(.35s + var(--i) * .3s); }
  .why-charts.is-armed .wv-attr__ok { animation: wa-fade .4s 1.5s both; }
}
/* Hover to explore: crosshair with both values on the line chart; value on the hovered bar. */
.wa-x { position: absolute; top: 8px; bottom: 34px; width: 1px; background: var(--ink-2); opacity: 0; pointer-events: none; }
.wa-dot { position: absolute; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; opacity: 0; pointer-events: none; }
.wa-dot--s { background: var(--line-strong); } .wa-dot--f { background: var(--teal); }
.wa-tip { position: absolute; top: 4px; padding: 4px 8px; border-radius: 6px; background: var(--ink); color: #fff; font-family: var(--f-mono); font-size: .6875rem; white-space: nowrap; opacity: 0; pointer-events: none; transform: translateX(8px); }
.why-charts .wv-fid.is-hover .wa-x, .why-charts .wv-fid.is-hover .wa-dot, .why-charts .wv-fid.is-hover .wa-tip { opacity: 1; }
.why-charts .wv-attr__row { grid-template-columns: 52px 1fr 40px; transition: opacity var(--d-fast); }
.why-charts .wv-attr__v { display: block; opacity: 0; transition: opacity var(--d-fast); }
@media (hover: hover) {
  .why-charts .wv-attr:hover .wv-attr__row { opacity: .45; }
  .why-charts .wv-attr .wv-attr__row:hover { opacity: 1; }
  .why-charts .wv-attr__row:hover .wv-attr__v { opacity: 1; }
}
.why-charts .wv-attr__row.is-tapped .wv-attr__v { opacity: 1; }

/* ---------- Product tabs: per-feature demo visuals (sample data) ---------- */
.fv { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.fv__body { padding: 16px 18px 18px; font-size: var(--t-small); }
.fv .mini__label { margin-bottom: 12px; }
/* Auto-dashboards */
.fv-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.fv-kpi { padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); }
.fv-kpi span { display: block; font-family: var(--f-mono); font-size: .625rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); }
.fv-kpi b { display: block; font-family: var(--f-mono); font-size: 1.125rem; font-weight: 600; margin: 2px 0; }
.fv-kpi em { font-style: normal; font-family: var(--f-mono); font-size: .6875rem; color: var(--teal); }
.fv-kpis--rows .fv-kpi em { color: var(--ink-2); } /* row counts, not changes: grey, not green */
/* Six tiles in the hero card: compact, so the card is no taller than the other two. */
.fv-kpis--rows { gap: 6px; margin-bottom: 0; }
.fv-kpis--rows .fv-kpi { padding: 6px 8px; }
.fv-kpis--rows .fv-kpi b { font-size: 1rem; margin: 1px 0; }
.fv-bars { display: flex; align-items: flex-end; gap: 5px; height: 76px; padding-bottom: 1px; border-bottom: 1px solid var(--line); }
.fv-bars i { flex: 1; height: var(--h); border-radius: 3px 3px 0 0; background: rgba(62, 48, 211, .28); transform-origin: bottom; }
.fv-bars i.is-last { background: var(--indigo); }
/* Cohorts */
.fv-cohort { width: 100%; border-collapse: separate; border-spacing: 4px; font-family: var(--f-mono); font-size: .6875rem; }
.fv-cohort th { width: 30px; text-align: left; font-weight: 500; color: var(--ink-2); }
.fv-cohort td { height: 28px; border-radius: 5px; text-align: center; background: rgba(62, 48, 211, calc(var(--v) * .85 + .05)); color: var(--ink); }
.fv-cohort td.is-dark { color: #fff; }
.fv-cohort td.is-empty { background: none; }
/* Forecast */
.fv-forecast { display: block; width: 100%; height: auto; }
.fv-band { fill: rgba(62, 48, 211, .12); }
.fv-now { stroke: var(--line-strong); stroke-width: 1; stroke-dasharray: 2 3; }
.fv-actual, .fv-p50 { fill: none; stroke: var(--indigo); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.fv-p50 { stroke-dasharray: 5 5; }
.fv-dot { fill: var(--indigo); }
.fv-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; margin: 6px 0 0; font-family: var(--f-mono); font-size: .6875rem; color: var(--ink-2); }
.fv-legend span::before { content: ""; display: inline-block; width: 16px; margin-right: 5px; vertical-align: middle; border-top: 2.5px solid var(--indigo); }
.fv-legend .k-p50::before { border-top-style: dashed; }
.fv-legend .k-band::before { height: 8px; border: 0; background: rgba(62, 48, 211, .18); }
/* Goals */
.fv-goal__head, .fv-goal__foot { display: flex; justify-content: space-between; gap: 8px; margin: 0; }
.fv-goal__head b { font-size: .875rem; }
.fv-goal__head span, .fv-goal__foot span { font-family: var(--f-mono); font-size: .75rem; color: var(--ink-2); }
.fv-goal__foot .is-pace { color: var(--teal); }
.fv-goal__track { position: relative; height: 12px; margin: 8px 0 6px; border-radius: 999px; background: var(--surface-2); }
.fv-goal__track i { position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: 999px; background: var(--indigo); transform-origin: left; }
.fv-goal__pace { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--teal); }
.fv-prob { display: flex; align-items: baseline; justify-content: space-between; margin-top: 14px; padding: 10px 12px; border: 1px solid var(--vizbox-border); border-radius: 8px; background: var(--vizbox-bg); }
.fv-prob span { font-family: var(--f-mono); font-size: .6875rem; text-transform: uppercase; letter-spacing: .06em; color: var(--vizbox-ink); }
.fv-prob b { font-family: var(--f-mono); font-size: 1.375rem; }
/* Attribution */
.fv-cols { display: flex; align-items: flex-end; justify-content: center; gap: 22px; height: 150px; }
.fv-col { flex: 1; max-width: 76px; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 5px; }
.fv-col b { font-family: var(--f-mono); font-size: .75rem; }
.fv-col i { width: 100%; height: calc(var(--h) - 36px); min-height: 8px; border-radius: 5px 5px 0 0; background: rgba(62, 48, 211, .5); transform-origin: bottom; }
.fv-col.is-anchor i { background: var(--teal); }
.fv-col span { font-family: var(--f-mono); font-size: .6875rem; color: var(--ink-2); }
.fv-note { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 10px 0 0; font-family: var(--f-mono); font-size: .6875rem; color: var(--teal); }
/* Lineage */
.fv-metric { display: flex; align-items: baseline; justify-content: space-between; margin: 0 0 10px; }
.fv-metric b { font-size: .875rem; }
.fv-metric span { font-family: var(--f-mono); font-size: 1.0625rem; font-weight: 600; }
.fv-chain { list-style: none; display: grid; gap: 14px; counter-reset: none; }
.fv-chain li { position: relative; display: grid; grid-template-columns: 72px 1fr; align-items: center; gap: 8px; }
.fv-chain li + li::before { content: "↓"; position: absolute; left: 30px; top: -15px; font-size: .75rem; color: var(--indigo); }
.fv-chain span { font-family: var(--f-mono); font-size: .625rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); }
.fv-chain code { padding: 5px 9px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface-2); font-size: .75rem; }
/* AI features reuse the question/answer styles inside the card */
.fv .feat__q { margin-top: 0; }

/* Product panel: visual left, copy right, steps as a row below */
@media (min-width: 1040px) { .feat__grid--b { grid-template-columns: 1fr 1.1fr; align-items: center; } }
.feat__below { display: grid; gap: 16px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.feat__steps--row ol { display: grid; gap: 14px; }
@media (min-width: 900px) { .feat__steps--row ol { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- Product tabs: feature icon before each name ---------- */
.feat__tabs [role="tab"] { display: inline-flex; align-items: center; gap: 7px; }
.feat__tabs [role="tab"] .ft-ic { display: inline-grid; place-items: center; flex: none; color: var(--ink-2); }
.feat__tabs [role="tab"][aria-selected="true"] .ft-ic { color: var(--indigo); }
.feat__tabs [role="tab"][aria-selected="true"]::after { background: var(--indigo); }

/* ---------- Industry packs: sample board ---------- */
.pb { margin: 0; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.pb__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 12px; }
.pb__head b { font-size: .875rem; line-height: 1.3; }
.pb__kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-bottom: 12px; }
.pb__kpi { min-width: 0; padding: 7px 8px; border: 1px solid var(--line); border-radius: 7px; background: var(--bg); }
.pb__kpi span { display: block; font-family: var(--f-mono); font-size: .5625rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pb__kpi b { display: block; font-family: var(--f-mono); font-size: 1rem; font-weight: 600; margin: 2px 0 0; }
.pb__kpi em { font-style: normal; font-family: var(--f-mono); font-size: .625rem; }
.pb__kpi em.is-good { color: var(--teal); } .pb__kpi em.is-bad { color: var(--caution-ink); }
.pb__label { margin: 0 0 6px; font-family: var(--f-mono); font-size: .625rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); }
.pb-bars { display: flex; align-items: flex-end; gap: 4px; height: 52px; }
.pb-bars i { flex: 1; height: var(--h); border-radius: 2px; background: rgba(62, 48, 211, .28); }
.pb-bars i.is-last { background: var(--indigo); }
.pb-line { display: block; width: 100%; height: 52px; }
.pb-line__area { fill: rgba(0, 122, 114, .12); }
.pb-line__stroke { fill: none; stroke: var(--teal); stroke-width: 2.2; stroke-linejoin: round; }
.pb-moves { position: relative; display: flex; align-items: stretch; gap: 4px; height: 58px; }
.pb-moves::after { content: ""; position: absolute; left: 0; right: 0; top: var(--zero); border-top: 1px solid var(--line-strong); }
.pb-moves span { position: relative; flex: 1; }
.pb-moves i { position: absolute; left: 0; right: 0; height: var(--h); }
.pb-moves .m-new { bottom: calc(100% - var(--zero)); background: var(--indigo); border-radius: 2px 2px 0 0; }
.pb-moves .m-exp { bottom: calc(100% - var(--zero) + var(--hn, 0%)); background: rgba(62, 48, 211, .45); }
.pb-moves .m-churn { top: var(--zero); background: var(--caution); border-radius: 0 0 2px 2px; opacity: .75; }
.pb-key { display: flex; gap: 12px; margin: 6px 0 0; font-family: var(--f-mono); font-size: .625rem; color: var(--ink-2); }
.pb-key span::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 4px; border-radius: 2px; vertical-align: -1px; }
.pb-key .k-new::before { background: var(--indigo); } .pb-key .k-exp::before { background: rgba(62, 48, 211, .45); } .pb-key .k-churn::before { background: var(--caution); }
/* shared pack detail bits */
.pack__qs { list-style: none; display: grid; gap: 6px; font-size: var(--t-small); }
.pack__qs li { position: relative; padding-left: 16px; }
.pack__qs li::before { content: "›"; position: absolute; left: 2px; color: var(--indigo); font-weight: 600; }
.pack__sub { color: var(--ink-2); }
/* Board inside each pack card */
.packs .pb { margin: 4px 0 16px; box-shadow: none; }
/* "What's in the pack" details */
.pack__more { margin: 0 0 8px; border-top: 1px solid var(--line); }
.pack__more summary { display: flex; align-items: center; justify-content: space-between; min-height: 44px; font-weight: 600; font-size: var(--t-small); cursor: pointer; list-style: none; }
.pack__more summary::-webkit-details-marker { display: none; }
.pack__proof { display: flex; gap: 6px; align-items: flex-start; margin: 12px 0 0; font-size: .8125rem; color: var(--teal); }
.pack__proof .icon { margin-top: 3px; }
/* In the narrower pack cards, let long KPI labels wrap instead of being cut off. */
.packs .pb__kpi span { white-space: normal; overflow: visible; line-height: 1.25; min-height: 2.5em; }

/* ---------- "What's in the pack" toggle: tinted indigo bar, arrow in a white circle ---------- */
.pack__more summary { gap: 10px; padding: 0 8px 0 14px; border-radius: 8px; background: var(--indigo-tint); color: var(--indigo-strong); transition: background-color var(--d-fast); }
.pack__more summary:hover { background: var(--indigo-tint-2); }
.pack__more summary:focus-visible { outline-offset: 2px; }
.pack__more { border-top: 0; }
.pack__more[open] summary { margin-bottom: 8px; }
.pm-label { flex: 1; }
.pm-chev { display: inline-grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--surface); color: var(--indigo); box-shadow: 0 1px 3px rgba(62, 48, 211, .25); transition: transform var(--d-fast) var(--ease); }
.pack__more[open] .pm-chev { transform: rotate(180deg); }

/* ---------- Text animation on scroll (only when <html class="ta-on">, set before paint) ---------- */
.ta-w { display: inline-block; }
.ta-on .ta-s { opacity: 0; transform: translateY(12px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.ta-on .ta-s.is-in { opacity: 1; transform: none; }
.ta-on .eyebrow.ta-s { transition-delay: 0s; }
.ta-on .lead.ta-s { transition-delay: .25s; }
/* Home page (mask): heading words slide up from behind an invisible line */
[data-text-anim="mask"] .ta-h .ta-w { overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
[data-text-anim="mask"] .ta-h .ta-wi { display: inline-block; }
[data-text-anim="mask"].ta-on .ta-h .ta-wi { transform: translateY(105%); transition: transform 1s cubic-bezier(.2, .8, .2, 1); transition-delay: calc(var(--wi) * 65ms); }
[data-text-anim="mask"].ta-on .ta-h.is-in .ta-wi { transform: none; }
/* The hero headline stays hidden until app.js has prepared it (no flash), then plays on load. */
[data-text-anim="mask"].ta-on .hero--video .h1:not(.ta-h) { opacity: 0; }
/* Other pages (stagger): headings fade up; cards and blocks in a group come in one after another */
[data-text-anim="stagger"].ta-on .ta-h { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
[data-text-anim="stagger"].ta-on .ta-h.is-in { opacity: 1; transform: none; }
.ta-on .ta-b { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: calc(min(var(--bi), 6) * 90ms); }
.ta-on .ta-b.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .ta-on .ta-h, .ta-on .ta-s, .ta-on .ta-b, .ta-on .ta-w, .ta-on .ta-wi { opacity: 1 !important; transform: none !important; filter: none !important; } }

/* ---------- Legal documents (src/pages/legal.mjs) ---------- */
.page-hero--legal { padding-bottom: 0; }
.legal__nav ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; padding: 0; list-style: none; }
.legal__nav a { display: inline-block; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: .875rem; color: var(--ink-2); text-decoration: none; }
.legal__nav a:hover { color: var(--ink); border-color: var(--ink-2); }
.legal__nav a[aria-current="page"] { background: var(--sel-bg); border-color: var(--sel-border); color: var(--sel-fg); }
.section--legal { padding-top: 32px; }
.doc { max-width: 72ch; }
.doc h2 { font-size: 1.375rem; line-height: 1.25; margin: 2.25rem 0 .75rem; padding-bottom: .5rem; border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 16px); }
.doc h3 { font-size: 1.0625rem; margin: 1.5rem 0 .5rem; scroll-margin-top: calc(var(--header-h) + 16px); }
.doc p, .doc li { color: var(--ink-2); line-height: 1.7; }
.doc p, .doc ul, .doc ol { margin: 0 0 1rem; }
.doc ul, .doc ol { padding-left: 1.4rem; }
.doc li { margin-bottom: .375rem; }
.doc strong { color: var(--ink); font-weight: 600; }
.doc a { color: var(--teal); text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }
.doc code { font-family: var(--f-mono); font-size: .85em; padding: .1em .35em; border-radius: 4px; background: var(--surface-2); overflow-wrap: anywhere; }
.doc hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
.doc__table { overflow-x: auto; margin: 1rem 0 1.25rem; }
.doc table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: .5rem .75rem; border: 1px solid var(--line); color: var(--ink-2); }
.doc th { background: var(--surface-2); color: var(--ink); font-weight: 600; }
/* Standalone anchors in a document (e.g. /terms/#refunds) sit just below their heading: land with the heading in view. */
.doc a[id]:empty { display: block; scroll-margin-top: calc(var(--header-h) + 76px); }

/* ---------- Home: skip rendering sections far below the screen (content-visibility) ----------
   Measured on the home page: ~58% less paint and ~40% fewer janky frames while scrolling. Each section
   has an estimated height (measured at phone and desktop widths) so the scrollbar barely moves when a
   section is first drawn; "auto" then remembers the real height. Update the numbers if a section's
   content changes a lot. The text stays in the page for search, find-in-page and screen readers. */
:is(#product, #integrations, #packs, #pricing) { content-visibility: auto; }
#product { contain-intrinsic-size: auto 1765px; }
#integrations { contain-intrinsic-size: auto 2100px; }
#packs { contain-intrinsic-size: auto 2380px; }
#pricing { contain-intrinsic-size: auto 2946px; }
@media (min-width: 720px) {
  #product { contain-intrinsic-size: auto 1400px; }
  #integrations { contain-intrinsic-size: auto 1585px; }
  #packs { contain-intrinsic-size: auto 1625px; }
  #pricing { contain-intrinsic-size: auto 1712px; }
}
@media (min-width: 1040px) {
  #product { contain-intrinsic-size: auto 1080px; }
  #integrations { contain-intrinsic-size: auto 1136px; }
  #packs { contain-intrinsic-size: auto 1030px; }
  #pricing { contain-intrinsic-size: auto 1132px; }
}

/* ---------- Home: Questions (src/lib/homefaq.mjs): heading beside an accordion ---------- */
.hq { display: grid; gap: 24px; }
@media (min-width: 1040px) { .hq { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 48px; align-items: start; } .hq__side { position: sticky; top: calc(var(--header-h) + 24px); } }
.hq .section-head { margin-bottom: 0; }
.hq__more { margin-top: 20px; color: var(--ink-2); font-size: var(--t-small); }
.hq__more a { color: var(--teal); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Blog (src/pages/blog.mjs) ---------- */
.bl-card { padding: 24px 0; border-top: 1px solid var(--line); }
.bl-card .eyebrow { margin-bottom: 10px; }
.bl-card a { color: inherit; text-decoration: none; }
.bl-card a:hover { color: var(--teal); }
.bl-card p { color: var(--ink-2); margin: 10px 0 0; max-width: 68ch; }
.bl-card--lead { padding-top: 0; border-top: 0; }
.bl-card--lead p { font-size: var(--t-lead); line-height: 1.45; }
.bl-card__meta { font-family: var(--f-mono); font-size: .8125rem; color: var(--ink-2); }
.bl-grid { display: grid; gap: 0; margin-top: 32px; }
@media (min-width: 1040px) { .bl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; } }
.bl-head { max-width: 72ch; }
.bl-head .lead { margin-top: 16px; }
.bl-head .bl-card__meta { margin-top: 20px; }
.bl-faq { max-width: 72ch; margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); }
.bl-faq .h3 { margin-bottom: 16px; }
.bl-back { max-width: 72ch; margin-top: 40px; color: var(--ink-2); font-size: var(--t-small); }
.bl-back a { color: var(--teal); text-decoration: underline; text-underline-offset: 2px; }
.bl-back > a:first-child { display: inline-flex; gap: 6px; align-items: center; }
.bl-back .icon { transform: rotate(180deg); }
.contact-card { scroll-margin-top: calc(var(--header-h) + 24px); }

/* ---------- Before / after cards (src/pages/company.mjs, /customers/) ---------- */
.ba-card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; }
.ba-card--after { background: var(--tint-bg); border-color: var(--tint-border); }
.ba-card__h { font-family: var(--f-mono); font-size: .75rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 16px; }
.ba-card--after .ba-card__h { color: var(--tint-ink); }
.ba-card ul { list-style: none; display: grid; gap: 12px; }
.ba-card li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-2); line-height: 1.55; }
.ba-card li .icon { flex: none; margin-top: 3px; color: var(--ink-2); }
.ba-card--after li { color: var(--ink); }
.ba-card--after li .icon { color: var(--tint-ink); }
/* Directory badge in the footer base bar (image self-hosted so no request leaves for a third party). */
.footer__badge { display: block; line-height: 0; opacity: .9; transition: opacity var(--d-fast) var(--ease); }
.footer__badge:hover { opacity: 1; }
.footer__badge img { width: 122px; height: 40px; }

/* ---------- Profitability visuals (src/lib/featureviz.mjs) ---------- */
/* Waterfall: label, bar, value. Revenue and margin are the two totals. */
.fv-wf { list-style: none; display: grid; gap: 6px; }
.fv-wf li { display: grid; grid-template-columns: 7.5em minmax(0, 1fr) 8.5em; gap: 10px; align-items: center; color: var(--ink-2); }
.fv-wf i { height: 12px; border-radius: 3px; width: var(--w); background: rgba(180, 35, 24, .22); }
.fv-wf b { font-family: var(--f-mono); font-size: .75rem; font-weight: 500; white-space: nowrap; text-align: right; }
.fv-wf .is-total { color: var(--ink); font-weight: 600; }
.fv-wf .is-total i { background: rgba(62, 48, 211, .3); }
.fv-wf .is-margin i { background: var(--teal); }
.fv-wf .is-margin b { color: var(--teal); }
/* Margin by SKU: a centre line, losses to the left and profits to the right. */
.fv-sku { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.fv-sku:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.fv-sku__h { font-family: var(--f-mono); font-size: .6875rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); margin-bottom: 10px; }
.fv-sku ul { list-style: none; display: grid; gap: 6px; }
/* The value column is a fixed width so every row's centre line sits in the same place. */
.fv-sku li { display: grid; grid-template-columns: 7.5em minmax(0, 1fr) 8.5em; gap: 10px; align-items: center; color: var(--ink-2); }
.fv-sku li > span:first-child { font-family: var(--f-mono); font-size: .6875rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fv-sku__t { position: relative; height: 12px; }
.fv-sku__t::before { content: ""; position: absolute; left: 50%; top: -2px; bottom: -2px; width: 1px; background: var(--line); }
.fv-sku__t i { position: absolute; top: 0; height: 12px; width: var(--w); border-radius: 3px; }
.fv-sku .is-neg i { right: 50%; background: rgba(180, 35, 24, .5); }
.fv-sku .is-pos i { left: 50%; background: rgba(0, 122, 114, .45); }
.fv-sku b { font-family: var(--f-mono); font-size: .75rem; font-weight: 500; white-space: nowrap; text-align: right; }
.fv-sku .is-neg b { color: var(--error); }
.fv-sku b em { font-style: normal; color: var(--ink-2); }
.fv-sku__note { display: flex; gap: 6px; align-items: flex-start; margin-top: 12px; font-size: .75rem; color: var(--ink-2); }
.fv-sku__note .icon { flex: none; margin-top: 3px; color: var(--teal); }
/* Plan availability line under a feature's points. */
.feat__plan { display: flex; gap: 6px; align-items: baseline; margin-top: 16px; font-size: var(--t-small); color: var(--ink-2); }
.feat__plan .icon { flex: none; transform: translateY(1px); }
.feat__plan a { color: var(--teal); text-decoration: underline; text-underline-offset: 2px; }
/* Narrow screens: give the bars more room by tightening the label and value columns. */
@media (max-width: 560px) {
  .fv-wf li, .fv-sku li { grid-template-columns: 6em minmax(0, 1fr) 6.5em; gap: 8px; }
  .fv-wf b, .fv-sku b { font-size: .6875rem; }
}

/* ---------- "Connects to": hovering a source icon (CSS only — nothing runs while scrolling) ----------
   The logo scales, not the item: a transformed element becomes the anchor for anything inside it, which
   would scale the label text with it. Only transform and opacity animate and the label is out of flow,
   so hovering never moves the band. Below 1040px the band is replaced by a plain list. */
.cx5__item { position: relative; display: inline-grid; place-items: center; border-radius: 8px; cursor: default; }
.cx5__item:focus-visible { outline: 2px solid var(--sel-border); outline-offset: 3px; }
.cx5__item .cx-logo { transition: transform .18s var(--ease); }
.cx5__item:is(:hover, :focus-visible) .cx-logo { transform: scale(1.4); }
.cx5__item:is(:hover, :focus-visible) { z-index: 3; }
.cx5__groups li:has(.cx5__item:is(:hover, :focus-visible)) { z-index: 4; }
.cx5__name {
  position: absolute; bottom: calc(100% + 11px); left: 50%; transform: translateX(-50%);
  opacity: 0; visibility: hidden; pointer-events: none; white-space: nowrap;
  padding: 5px 11px; border-radius: 7px; background: var(--ink); color: #fff;
  font-size: .9375rem; font-weight: 600; line-height: 1.3; transition: opacity .16s var(--ease);
}
.cx5__item:is(:hover, :focus-visible) .cx5__name { opacity: 1; visibility: visible; }
@media (prefers-reduced-motion: reduce) { .cx5__item .cx-logo { transition: none; } .cx5__item:is(:hover, :focus-visible) .cx-logo { transform: none; } }

/* ---------- Hero: rotating evidence card (home) ---------- */
/* Slides share one grid cell so switching never changes the hero's height (app.js, [data-autoplay]). */
.hero-tabs__panels { display: grid; }
.hero-tabs__panels > [data-slide] { grid-area: 1 / 1; min-width: 0; }
.hero-tabs__panels > [data-slide][hidden] { display: block; visibility: hidden; }
@media (prefers-reduced-motion: no-preference) {
  .hero-tabs__panels > [data-slide]:not([hidden]) { animation: ht-in 240ms var(--ease); }
}
@keyframes ht-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
/* A thin line along the bottom edge of the visible card's top strip fills left to right over the
   countdown (--autoplay), freezing while it is paused (is-held) and restarting on each new card (is-ticking). */
.hero-tabs .trail__bar { position: relative; }
.hero-tabs .trail__bar::before {
  content: ''; position: absolute; inset: auto 0 -1px 0; height: 3px; z-index: 1; pointer-events: none;
  background: var(--blue); transform: scaleX(0); transform-origin: left center;
}
.hero-tabs.is-ticking [data-slide]:not([hidden]) .trail__bar::before { animation: hero-fill var(--autoplay, 4000ms) linear forwards; }
.hero-tabs.is-held [data-slide]:not([hidden]) .trail__bar::before { animation-play-state: paused; }
@keyframes hero-fill { to { transform: scaleX(1); } }
/* Each hero card's top strip in its own colour, set per slide as --strip in src/pages/home.mjs (option D,
   2026-10-07). White text on the six colours is 5.2:1 (teal) to 8.2:1 (indigo).
   Progress line (option 7): a rounded bar inside the strip, clear of the white card below, on a faint white
   track (::after), filling mint to the hero gold (#7FE3D2 to #FFC857: 3.4:1 to 5.4:1 against the strips). */
.hero-tabs [data-slide][style*="--strip"] .trail__bar { background: var(--strip); border-bottom-color: var(--strip); padding-bottom: 15px; }
.hero-tabs [data-slide][style*="--strip"] .trail__app { color: #fff; font-weight: 500; }
.hero-tabs [data-slide][style*="--strip"] .trail__bar::before,
.hero-tabs [data-slide][style*="--strip"] .trail__bar::after { inset: auto 14px 6px 14px; height: 3px; border-radius: 3px; }
.hero-tabs [data-slide][style*="--strip"] .trail__bar::before { background: linear-gradient(90deg, #7FE3D2, #FFC857); }
.hero-tabs [data-slide][style*="--strip"] .trail__bar::after { content: ''; position: absolute; background: rgba(255, 255, 255, .2); pointer-events: none; }

/* ---------- Profitability report (mirrors the app; home hero card) ---------- */
.pr .fv__body { display: grid; gap: 14px; }
.pr .mini__label { margin-bottom: 0; }
.pr-verdict { padding: 12px 14px; border-radius: 9px; background: var(--tint-bg); border: 1px solid var(--tint-border); }
.pr-verdict__h { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-weight: 700; color: var(--ink); }
.pr-verdict__h .icon { color: var(--tint-ink); }
.pr-verdict ul { list-style: none; display: grid; gap: 5px; }
.pr-verdict li { font-size: .8125rem; line-height: 1.5; color: var(--ink-2); }
.pr-verdict li.is-warn, .pr-verdict li.is-fix { display: flex; gap: 7px; align-items: flex-start; }
.pr-verdict li .icon { flex: none; margin-top: 3px; }
.pr-verdict li.is-warn .icon { color: var(--caution); }
.pr-verdict li.is-fix .icon { color: var(--teal); }
.pr-verdict b { color: var(--ink); }
.pr b.is-good, .pr .is-good { color: var(--teal); }
.pr b.is-bad, .pr .is-bad { color: var(--error); }

.pr-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 0; }
.pr-kpis div { padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.pr-kpis dt { font-family: var(--f-mono); font-size: .625rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pr-kpis dd { margin: 2px 0 0; font-weight: 700; font-size: 1.0625rem; color: var(--ink); font-variant-numeric: tabular-nums; }
@media (max-width: 559px) { .pr-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.pr-split { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.pr-sub { display: flex; align-items: baseline; gap: 8px; margin: 0 0 8px; font-family: var(--f-mono); font-size: .6875rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); }
.pr-sub span { text-transform: none; letter-spacing: 0; }

.pr-wf ul { list-style: none; display: grid; gap: 6px; }
.pr-wf li { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 8px; row-gap: 3px; font-size: .8125rem; color: var(--ink-2); }
.pr-wf li b { font-family: var(--f-mono); font-size: .75rem; font-weight: 500; color: var(--error); white-space: nowrap; }
.pr-wf li i { grid-column: 1 / -1; display: block; height: 6px; width: var(--w); border-radius: 3px; background: rgba(180, 35, 24, .55); }
.pr-wf li.is-total span, .pr-wf li.is-total b { color: var(--ink); font-weight: 600; }
.pr-wf li.is-total i { background: var(--indigo); }
.pr-wf li.is-margin span { color: var(--ink); font-weight: 600; }
.pr-wf li.is-margin b { color: var(--teal); font-weight: 700; }
.pr-wf li.is-margin i { background: var(--teal); }

.pr-sku ul { list-style: none; display: grid; gap: 7px; }
.pr-sku li { display: grid; grid-template-columns: 6.6em minmax(0, 1fr) 4.6em; column-gap: 8px; align-items: center; font-size: .75rem; }
.pr-sku li > span:first-child { font-family: var(--f-mono); font-size: .6875rem; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pr-sku__t { position: relative; height: 10px; }
.pr-sku__t::before { content: ""; position: absolute; left: 50%; top: -2px; bottom: -2px; width: 1px; background: var(--line-strong); }
.pr-sku__t i { position: absolute; top: 0; height: 10px; width: var(--w); border-radius: 3px; }
.pr-sku .is-neg i { right: 50%; background: rgba(180, 35, 24, .6); }
.pr-sku .is-pos i { left: 50%; background: rgba(0, 122, 114, .5); }
.pr-sku b { font-family: var(--f-mono); font-weight: 500; text-align: right; white-space: nowrap; }
.pr-sku .is-neg b { color: var(--error); }
.pr-sku em { grid-column: 2 / -1; font-style: normal; font-family: var(--f-mono); font-size: .625rem; text-align: right; color: var(--caution-ink); }
.pr-sku em:empty { display: none; }
.pr-foot { margin: 8px 0 0; font-size: .6875rem; color: var(--ink-2); }

/* Compact waterfall inside the hero evidence card. */
.pr--hero .pr-sub { display: none; }
.pr--hero .pr-wf ul { gap: 4px; }
.pr--hero .pr-wf li { font-size: .75rem; }


/* ====================================================================================
   STEP 2 (2026-10-05), see OPTIMIZATION-PLAN.md. Two independent blocks (B, the full-size hero card, was undone the same day): delete one
   block, from its START line to its END line, to undo just that change.
   ==================================================================================== */

/* ---- STEP 2 · A START: no label below 12px. Overrides the 9–11px sizes set above. ---- */
.step-n { font-size: .75rem; }
.mini__label { font-size: .75rem; }
.mini__kpi span { font-size: .75rem; }
.mini__lineage span { font-size: .75rem; }
.conn dt { font-size: .75rem; }
.seg .save { font-size: .75rem; }
.pill { font-size: .75rem; }
.wv-fid__legend { font-size: .75rem; }
.wv-ai__tag { font-size: .75rem; }
.wv-attr__row { font-size: .75rem; }
.wv-attr__v { font-size: .75rem; }
.walk .wv-attr__ok { font-size: .75rem; }
.feat__ans .feat__tag { font-size: .75rem; }
.ic-tile__cats { font-size: .75rem; }
.ic-soon { font-size: .75rem; }
.cx5__g { font-size: .75rem; }
.cx5__g { font-size: .75rem; }
.wa-tip { font-size: .75rem; }
.fv-kpi span { font-size: .75rem; }
.fv-kpi em { font-size: .75rem; }
.fv-cohort { font-size: .75rem; }
.fv-legend { font-size: .75rem; }
.fv-prob span { font-size: .75rem; }
.fv-col span { font-size: .75rem; }
.fv-note { font-size: .75rem; }
.fv-chain span { font-size: .75rem; }
.pb__kpi span { font-size: .75rem; }
.pb__kpi em { font-size: .75rem; }
.pb__label { font-size: .75rem; }
.pb-key { font-size: .75rem; }
.fv-sku__h { font-size: .75rem; }
.fv-sku li > span:first-child { font-size: .75rem; }
.fv-wf b, .fv-sku b { font-size: .75rem; }
.pr-kpis dt { font-size: .75rem; }
.pr-sub { font-size: .75rem; }
.pr-sku li > span:first-child { font-size: .75rem; }
.pr-sku em { font-size: .75rem; }
.pr-foot { font-size: .75rem; }
/* At 12px, long words ("SETTLEMENT", "ACTIVATION") only fit a third-width pack KPI box without
   letter spacing and with slimmer side padding ("Contribution mgn" was shortened to "Contrib. margin"
   in src/data/home.mjs for the same reason; the backup restores it). */
.pb__kpi { padding-inline: 6px; }
.pb__kpi span { letter-spacing: 0; white-space: normal; }
/* ---- STEP 2 · A END ---- */

/* ---- STEP 2 · C START: fade the edge of a sideways-scrolling strip that has more to show.
   app.js sets .scroll-fade and the --fl / --fr fade widths (STEP 2 · C block there too). ---- */
.scroll-fade {
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 var(--fl, 0px), #000 calc(100% - var(--fr, 0px)), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 var(--fl, 0px), #000 calc(100% - var(--fr, 0px)), transparent 100%);
}
/* ---- STEP 2 · C END ---- */

/* ---- PRICING CARDS · option A START (2026-10-05; Pricing page added 2026-10-07). Tighter cards whose rows line up across the
   row (name, description, price, billing, credits, list, button) via CSS subgrid. Home page and
   Pricing page. To undo the Pricing page part only, restore pricing.mjs.backup-before-trialtag-20261007
   (the home page part has no backup left since the clean-up on 2026-10-06). ---- */
.plans--tidy .plan--tidy { display: grid; grid-template-rows: subgrid; grid-row: span 7; row-gap: 0; padding: 20px; }
.plan--tidy h3 { font-size: 1.25rem; }
.plan--tidy .plan__fit { min-height: 0; margin: 4px 0 14px; font-size: .875rem; }
.plan--tidy .plan__price { align-self: end; }
.plan--tidy .plan__price .num { font-size: 1.875rem; }
.plan--tidy .plan__bill { margin: 2px 0 14px; }
.plan--tidy .ticks { margin: 0 0 18px; gap: 7px; font-size: .875rem; align-content: start; align-self: start; }
.plan--tidy .ticks .icon { margin-top: 3px; }
.plan--tidy .btn { align-self: end; }
/* Indigo text on a light indigo tint (6.9:1). */
.plan__tag { font-size: .75rem; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: #ECEAFD; color: var(--sel-bg); }
.plan__credits-line { display: flex; align-items: center; gap: 6px; margin: 0 0 14px; padding: 7px 10px; border: 1px solid var(--teal-border); border-radius: 6px; background: var(--teal-tint); font-family: var(--f-mono); font-size: .8125rem; color: var(--teal); }
.plan__credits-line .icon { color: var(--teal); }
/* Pricing page cards use the same look, with one more row (the limits grid), so they span 8 rows. */
.plans--tidy .plan--tidy.plan--stats { grid-row: span 8; }
.plan--tidy .plan__stats { margin: 0 0 14px; padding: 0 0 14px; align-self: start; }
/* ---- PRICING CARDS · option A END ---- */

/* ---------- Print (tracker #44): clean copies of the legal pages for procurement files ----------
   Only for printing or "Save as PDF"; nothing changes on screen. Site chrome is hidden, text is black on
   white, link addresses are printed after the link, and tables and headings are kept off page breaks. */
@media print {
  @page { margin: 18mm 16mm; }
  .site-header, .footer, .final, .skip, .mnav, .menu-btn, .stage-nav, .legal__nav, .hero__vctl, .cta-row, .btn, video { display: none !important; }
  html, body { background: #fff !important; color: #000 !important; }
  body { font-size: 11pt; line-height: 1.5; }
  *, *::before, *::after { box-shadow: none !important; text-shadow: none !important; animation: none !important; transition: none !important; }
  .ta-h, .ta-s, .ta-b, .ta-wi { opacity: 1 !important; transform: none !important; }
  .section, .page-hero { padding-block: 0 12pt !important; background: none !important; border: 0 !important; }
  .container { max-width: none; padding-inline: 0; }
  h1, h2, h3, h4 { color: #000 !important; break-after: avoid; }
  p, li { orphans: 3; widows: 3; }
  table, tr, figure, blockquote, pre { break-inside: avoid; }
  .doc__table, .cmp-wrap { overflow: visible !important; }
  a { color: #000 !important; text-decoration: underline; }
  main p, main li, main td, main th, main dd, main dt, .lead { color: #000 !important; }
  /* Print each link's address after it (relative links get the site domain). */
  main a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; word-break: break-all; }
  main a[href^="/"]::after { content: " (klar.aeye-on.com" attr(href) ")"; font-size: 9pt; }
}

/* Home pricing: Enterprise panel under the plans (neon, option C2, 2026-10-10). The glow pulses three
   times (1.6 s each, about 5 s) once the panel is on screen (app.js adds .is-live), then stays lit.
   No flashing, and no pulse with reduced motion (WCAG 2.2.2, 2.3.1). */
.ent-band { --neon: #3DF5D0; --neon-2: #8B7CFF; margin-top: 24px; display: grid; gap: 20px; padding: 24px; border: 1.5px solid var(--neon); border-radius: var(--radius-lg); background: #0B1220; color: #fff;
  box-shadow: 0 0 10px rgba(61, 245, 208, .45), 0 0 28px rgba(61, 245, 208, .22), inset 0 0 18px rgba(61, 245, 208, .08); }
@media (min-width: 900px) { .ent-band { grid-template-columns: 1.3fr 1.2fr auto; align-items: center; gap: 32px; padding: 28px 32px; } }
.ent-band.is-live { animation: ent-neon 1.6s ease-in-out 3; }
@keyframes ent-neon { 50% { box-shadow: 0 0 18px rgba(61, 245, 208, .85), 0 0 52px rgba(139, 124, 255, .45), inset 0 0 26px rgba(61, 245, 208, .16); border-color: #9BFFEA; } }
@media (prefers-reduced-motion: reduce) { .ent-band.is-live { animation: none; } }
/* Type matches the plan cards: name as .plan--tidy h3, fit line as .plan__fit, buttons as the plan buttons. */
.ent-band__h { margin: 0; font-size: 1.25rem; color: #fff; }
.ent-band__fit { margin: 6px 0 0; font-size: 1.125rem; font-weight: 600; line-height: 1.35; color: var(--neon); }
.ent-band__p { margin: 8px 0 0; font-size: .9375rem; color: #C9D6E2; }
.ent-band .ticks { margin: 0; gap: 8px; font-size: .875rem; color: #C9D6E2; }
.ent-band .ticks .icon { color: var(--neon); }
.ent-band__cta { display: flex; flex-wrap: wrap; gap: 10px; }
@media (min-width: 900px) { .ent-band__cta { flex-direction: column; } }
.ent-band :focus-visible { outline-color: #fff; }
@media print { .ent-band { box-shadow: none; background: #fff; color: #000; border-color: #000; } }

/* Small tags in a row (Enterprise "Evidence under every number" card). */
.chip-row { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chip-row li { padding: 3px 10px; border-radius: 999px; background: var(--indigo-tint); border: 1px solid var(--indigo-border); color: var(--indigo); font-size: .75rem; font-weight: 600; }

/* Profit and loss colors in small sample panels (Platform › Profitability): profit in teal, costs and losses in red. */
.mini__row--profit strong { color: var(--teal); }
.mini__row--profit.mini__row--total { background: var(--teal-tint); border-color: var(--teal-border); }
.mini__row--cost strong { color: var(--error); }
.mini__row--loss { background: var(--error-tint); border-color: var(--error-border); }
.mini__row--loss strong { color: var(--error); }
.mini__label--loss span { color: var(--error); }

/* Footer social icons (option A): outlined circles under the contact emails. An icon without a profile
   address yet is a <span>, shown slightly dimmer and without hover. */
.social-ic { width: 18px; height: 18px; display: block; }
.footer__social { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.footer__social a, .footer__social span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .28); color: #E4ECF0; }
.footer__social a { transition: border-color var(--d-fast) var(--ease), background var(--d-fast) var(--ease), color var(--d-fast) var(--ease); }
.footer__social a:hover { border-color: #fff; background: rgba(255, 255, 255, .08); color: #fff; text-decoration: none; }
.footer__social span { opacity: .75; }
@media print { .footer__social { display: none; } }

/* Footer "Recognition" row (client spec 2026-10-17): one quiet line between the link columns and the
   copyright bar. Muted on purpose; search engines need to see it, visitors barely should. */
.footer__recognition { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--dark-line); font-size: .8125rem; color: var(--on-dark-2); }
.footer__recognition-h { font-family: var(--f-mono); font-size: .6875rem; letter-spacing: .06em; text-transform: uppercase; }
.footer .footer__recognition a { color: var(--on-dark-2); text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .25); text-underline-offset: 3px; }
.footer .footer__recognition a:hover { color: #fff; text-decoration-color: #fff; }
.footer .footer__recognition .footer__nvidia { display: inline-block; line-height: 0; text-decoration: none; }
.footer__nvidia img { display: block; width: auto; height: 40px; }
/* AlternativeTo: its badge plus the words, one link (the image is decorative; the text is the link text). */
.footer .footer__recognition .footer__alt { display: inline-flex; align-items: center; gap: 10px; }
.footer__alt img { display: block; width: auto; height: 40px; }
.footer__recognition + .footer__base { margin-top: 20px; }
