/* Intrapuls website · site.css
   Light page in the reference register (layout and components after the pinned reference, own colours);
   product views in the app's own kit. Fonts are self-hosted (fonts.css). */

:root {
  color-scheme: light;

  --bg: #FFFFFF;
  --bg-2: #FFFFFF;
  --bg-tint: #F5F3FC;
  --tint-1: #F1EDFB;
  --tint-2: #EAF0FD;
  --tint-3: #F6ECF8;
  --stage: linear-gradient(135deg, #F3EEFF 0%, #ECE6FB 55%, #E8EDFC 100%);
  --stage-2: linear-gradient(135deg, #E9EFFD 0%, #EEEAFB 60%, #F5ECF8 100%);
  --stage-3: linear-gradient(135deg, #F7EDF8 0%, #EFE9FB 55%, #E9EEFC 100%);
  --ink: #15122E;
  --ink-2: #4A4766;
  --ink-3: #6E6B88;
  --line: #E7E5F1;
  --line-2: #D4D1E4;
  --line-3: #8E8BA8;
  --violet: #4B32BE;
  --violet-2: #3B269C;
  --violet-soft: #ECE8FB;
  --violet-line: #C9C0F0;
  --violet-text: #4B32BE;
  --on-violet: #FFFFFF;
  --brand-accent: #4B32BE;
  --mark-tile: #0E1630;
  --mark-dot: #FFFFFF;
  --mark-puls: #8F7AFF;
  --selection: #D9D2FA;
  --red: #B42318;
  --green: #0F7B4F;

  --band: #17123A;
  --band-2: #221B54;
  --band-text: #F6F5FD;
  --band-muted: #B8B3DA;
  --band-line: rgba(246, 245, 253, .14);
  --band-accent: #B4A7FF;
  --foot: #0F0D22;
  --foot-text: #C9C6E0;
  --foot-muted: #8C89AB;
  --foot-line: rgba(246, 245, 253, .12);
  --foot-mark: #2A2366;

  --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%234A4766' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  --control-h: 48px;

  --k-bg: #FFFFFF;
  --k-side: #FAFAFD;
  --k-panel: #F6F6FB;
  --k-card: #FFFFFF;
  --k-line: #E6E4F0;
  --k-line-2: #D3D0E4;
  --k-text: #15132B;
  --k-muted: #686686;
  --k-dim: #6E6C89;
  --k-violet: #4B32BE;
  --k-violet-deep: #3B269C;
  --k-violet-soft: #ECE8FB;
  --k-violet-text: #3B269C;
  --k-violet-line: #B8ADF5;
  --k-green: #0F7B4F;
  --k-green-bg: #DFF5E8;
  --k-red: #B42318;
  --k-red-bg: #FDE4E1;
  --k-amber: #8A6400;
  --k-amber-bg: #FBF0CC;
  --k-blue: #1B5FA6;
  --k-blue-bg: #DDEBFB;
  --k-app-bg: #F8F8FC;
  --k-top-bg: #FFFFFF;
  --k-chip-bg: #EEEDF5;
  --k-bar-bg: #E9E7F3;
  --k-seg-bg: #EEEDF5;
  --k-grid: rgba(21, 19, 43, .08);
  --k-datum-bg: #E4DEFB;
  --k-datum-text: #2E1F86;
  --k-on-primary: #FFFFFF;
  --k-blue-line: #B9D4F3;
  --k-blue-text: #1B4F8A;
  --k-amber-line: #EBD68A;
  --k-amber-text: #6B4E00;
  --k-violet-blk-line: #CFC6F2;
  --k-avatar-bg: #E4DEFB;
  --k-avatar-text: #3B269C;

  --font: 'Hanken Grotesk', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-app: 'Instrument Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --fs-display: clamp(2.5rem, 1.35rem + 3.3vw, 3.5rem);
  --fs-h2: clamp(1.875rem, 1.3rem + 1.9vw, 3rem);
  --fs-h2-sm: clamp(1.625rem, 1.2rem + 1.4vw, 2.25rem);
  --fs-h3: clamp(1.5rem, 1.25rem + 1vw, 2rem);
  --fs-h4: 1.125rem;
  --fs-lead: clamp(1.125rem, 1.05rem + .4vw, 1.3125rem);
  --fs-body: 1.0625rem;
  --fs-small: .9375rem;
  --fs-label: .8125rem;

  --container: 1240px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --gap: 24px;
  --section: clamp(4rem, 2.5rem + 4vw, 6.5rem);
  --r-sm: 8px;
  --r: 12px;
  --r-win: 20px;
  --r-lg: var(--r-win); /* product windows in the kit */
  --stage-hero: radial-gradient(ellipse 90% 60% at 50% 0%, #CFC3F7 0%, rgba(207, 195, 247, 0) 70%), linear-gradient(180deg, #DDD5FA 0%, #EAE5FB 55%, #F2EEFC 100%);
  --r-card: 24px;
  --r-stage: 32px;
  --r-pill: 999px;

  --shadow-frame: 0 32px 64px -32px rgba(21, 18, 46, .3), 0 2px 10px rgba(21, 18, 46, .06);
  --shadow-pop: 0 24px 48px -20px rgba(21, 18, 46, .22), 0 2px 8px rgba(21, 18, 46, .06);
  --shadow-btn: 0 1px 2px rgba(21, 18, 46, .16);

  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --t-fast: 160ms;
  --t: 240ms;
  --t-slow: 360ms;
  --header-h: 72px;
}

/* ---------- base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  scrollbar-color: #B8B5D6 var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 var(--fs-body)/1.55 var(--font);
  font-feature-settings: "kern" 1, "liga" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  caret-color: var(--violet);
  overflow-x: clip;
}

body.menu-open { overflow: hidden; }

::selection { background: var(--selection); color: var(--ink); }

:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; border-radius: 4px; }

a { color: var(--violet); text-underline-offset: .16em; text-decoration-thickness: 1px; }
a:hover { color: var(--violet-2); }

img, svg { display: block; max-width: 100%; }
svg { fill: none; }

h1, h2, h3, h4 { margin: 0; font-weight: 600; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; margin: 0; }
button { cursor: pointer; }
strong { font-weight: 600; }
abbr[title] { text-decoration: none; }
summary { cursor: pointer; }

:lang(de) p, :lang(de) li, :lang(de) dd { hyphens: auto; -webkit-hyphenate-limit-before: 6; -webkit-hyphenate-limit-after: 5; hyphenate-limit-chars: 14 6 5; }
h1, h2, h3, h4, :lang(de) .hero__sub, :lang(de) .section__lead, .hero__sub, .section__lead, .pillar__list li, .points__title { hyphens: manual; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap; border: 0;
}

.icon { width: 1.25em; height: 1.25em; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- layout ---------- */

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.grid-12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); align-items: start; }

.section { padding-block: var(--section); }
.section--tint { background: var(--bg-tint); }
.section__head { max-width: 840px; margin: 0 auto clamp(2.5rem, 1.75rem + 2.5vw, 4rem); text-align: center; }
.section__head--left { margin-inline: 0; text-align: left; }
.section__title { font-size: var(--fs-h2); line-height: 1.08; letter-spacing: -0.022em; }
.section__title--sm { font-size: var(--fs-h2-sm); letter-spacing: -0.018em; line-height: 1.12; }
.section__lead { margin: 18px auto 0; font-size: var(--fs-lead); line-height: 1.5; color: var(--ink-2); max-width: 64ch; }
.section__head--left .section__lead { margin-inline: 0; }
.section__head--split { display: grid; grid-template-columns: 5fr 7fr; gap: 24px 56px; max-width: none; text-align: left; align-items: end; }
.section__head--split .section__lead { margin: 0; max-width: 58ch; }
@media (max-width: 900px) { .section__head--split { grid-template-columns: 1fr; gap: 16px; } }

/* ---------- skip link, header, nav ---------- */

.skip-link {
  position: absolute; left: 16px; top: -120px; z-index: 100;
  background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: var(--r-pill);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }
.skip-link:hover, .skip-link:focus { color: var(--bg); }

.site-header {
  position: sticky; top: 0; z-index: 50;
  min-height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t) var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header__inner { min-height: var(--header-h); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; }
.site-header__tools { display: flex; align-items: center; gap: 8px; justify-self: end; }

.brand { display: inline-flex; align-items: center; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand__word { height: 34px; width: auto; flex: none; }
.brand__word--sm { height: 22px; }
.logo__ink { fill: currentColor; }
.logo__puls { fill: var(--brand-accent); }
.mark__tile { fill: var(--mark-tile); }
.mark__dot { fill: var(--mark-dot); }
.mark__puls { fill: var(--mark-puls); }
.brand--light, .brand--light:hover { color: var(--band-text); }

.nav { justify-self: center; }
.nav__list { display: flex; gap: 2px; }
.nav__link {
  display: inline-block; padding: 9px 14px; border-radius: var(--r-pill);
  color: var(--ink-2); text-decoration: none; font-size: var(--fs-small); font-weight: 500; white-space: nowrap;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.nav__link:hover { color: var(--ink); background: var(--bg-tint); }

.lang { display: inline-flex; border: 1px solid var(--line-2); border-radius: var(--r-pill); background: var(--bg-2); padding: 3px; }
.lang__link { padding: 6px 10px; border-radius: var(--r-pill); font-size: var(--fs-label); font-weight: 600; color: var(--ink-3); text-decoration: none; line-height: 1; }
.lang__link:hover { color: var(--ink); }
.lang__link[aria-current="page"] { color: var(--violet-text); background: var(--violet-soft); }
.lang__link:focus-visible { outline-offset: 1px; border-radius: var(--r-pill); }

.theme-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid var(--line-2); border-radius: 50%; background: var(--bg-2); color: var(--ink-2); transition: border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease); }
.theme-btn:hover { color: var(--ink); border-color: var(--ink-3); }
.theme-btn .icon { width: 18px; height: 18px; }
.theme-btn .icon-sun { display: none; }
[data-theme="dark"] .theme-btn .icon-sun { display: block; }
[data-theme="dark"] .theme-btn .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-btn .icon-sun { display: block; }
  :root:not([data-theme="light"]) .theme-btn .icon-moon { display: none; }
}

.nav__cta { margin-left: 6px; }

.menu-btn {
  display: none; width: 44px; height: 44px; flex: none;
  align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--line-2); border-radius: 50%; color: var(--ink);
}
.menu-btn .icon { width: 22px; height: 22px; }
.menu-btn .icon-close { display: none; }
.menu-btn.is-open .icon-menu { display: none; }
.menu-btn.is-open .icon-close { display: block; }

.nav-panel {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 49;
  background: var(--bg); padding: 16px var(--gutter) 40px;
  overflow: auto; display: flex; flex-direction: column; gap: 8px;
}
.nav-panel[hidden] { display: none; }
.nav-panel .nav__link { display: block; font-size: 1.375rem; font-weight: 600; padding: 16px 4px; border-bottom: 1px solid var(--line); border-radius: 0; }
.nav-panel .nav__link:hover { background: transparent; }
.nav-panel .btn { margin-top: 24px; align-self: flex-start; }
.nav-panel__row { display: flex; align-items: center; gap: 8px; margin-top: 20px; }

@media (max-width: 980px) {
  .site-header__inner { grid-template-columns: auto auto; justify-content: space-between; gap: 12px; }
  .nav, .site-header__tools .lang, .site-header__tools .theme-btn { display: none; }
  .site-header .nav__cta { margin-left: 0; height: 42px; padding: 0 16px; font-size: var(--fs-label); }
  .brand__word { height: 30px; }
  .menu-btn { display: inline-flex; }
}
@media (max-width: 360px) {
  .site-header .nav__cta { display: none; }
}

/* ---------- buttons ---------- */

.btn {
  -webkit-appearance: none; appearance: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--control-h); padding: 0 24px;
  border-radius: var(--r-pill); border: 1px solid transparent;
  font-weight: 600; font-size: var(--fs-small); line-height: 1; text-decoration: none; white-space: nowrap;
  transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.btn .icon { width: 18px; height: 18px; transition: transform var(--t) var(--ease); }
.btn:hover .icon-arrow { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--violet); color: var(--on-violet); box-shadow: var(--shadow-btn); }
.btn--primary:hover { background: var(--violet-2); color: var(--on-violet); }
.btn--ghost { background: var(--bg-2); color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--ink-3); color: var(--ink); }
.btn--light { background: var(--band-text); color: var(--band); }
.btn--light:hover { background: #fff; color: var(--band); }
.btn--sm { height: 40px; padding: 0 18px; font-size: var(--fs-label); }
.btn[disabled], .btn[aria-busy="true"] { opacity: .65; cursor: progress; transform: none; }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: var(--fs-small); color: var(--violet); text-decoration: none; }
.link-arrow .icon { width: 18px; height: 18px; transition: transform var(--t) var(--ease); }
.link-arrow:hover { color: var(--violet-2); text-decoration: underline; }
.link-arrow:hover .icon { transform: translateX(3px); }

/* ---------- fields ---------- */

.field { display: flex; flex-direction: column; gap: 0; min-width: 0; border: 0; padding: 0; margin: 0; }
.field__label { display: block; margin-bottom: 6px; }
legend.field__label { padding: 0; }
.field__label { font-size: var(--fs-label); font-weight: 600; color: var(--ink-2); }
.field__label .req { color: var(--violet); }
.field__input {
  width: 100%; height: var(--control-h); padding: 0 16px;
  border: 1px solid var(--line-2); border-radius: var(--r);
  background: var(--bg-2); color: var(--ink);
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
textarea.field__input { height: auto; min-height: 128px; padding: 12px 16px; resize: vertical; line-height: 1.5; }
.field__input::placeholder { color: var(--ink-3); opacity: 1; }
.field__input:hover { border-color: var(--line-3); }
.field__input:focus { border-color: var(--violet); }
.field__input:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; box-shadow: none; }
select.field__input {
  -webkit-appearance: none; appearance: none; padding-right: 40px;
  background-image: var(--chevron);
  background-repeat: no-repeat; background-position: right 12px center;
}
.field.is-invalid .field__input { border-color: var(--red); }
.field.is-invalid .field__input:focus-visible { outline-color: var(--red); }
.field__error { display: block; margin: 0; font-size: var(--fs-label); color: var(--red); }
.field__error:not(:empty) { margin-top: 6px; }
.field__hint { font-size: var(--fs-label); color: var(--ink-3); }
input[type=number] { -moz-appearance: textfield; }
input[type=number]::-webkit-inner-spin-button, input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

.radio-group { display: flex; gap: 8px; flex-wrap: wrap; }
.radio { position: relative; }
.radio input { position: absolute; inset: 0; opacity: 0; margin: 0; }
.radio span {
  display: inline-flex; align-items: center; height: 42px; padding: 0 16px;
  border: 1px solid var(--line-2); border-radius: var(--r-pill); background: var(--bg-2);
  font-weight: 500; font-size: var(--fs-small); cursor: pointer;
  transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.radio span:hover { border-color: var(--line-3); }
.radio input:checked + span { border-color: var(--violet); background: var(--violet-soft); color: var(--violet-text); }
.radio input:focus-visible + span { outline: 2px solid var(--violet); outline-offset: 2px; }

.form-msg { margin: 0; font-size: var(--fs-small); }
.form-msg:not(:empty) { margin-top: 10px; }
.form-msg--setup:not(:empty) { color: var(--ink-3); font-size: var(--fs-label); }
.form-msg--ok { color: var(--green); }
.form-msg--err { color: var(--red); }

/* ---------- hero ---------- */

.hero { padding-top: clamp(1.25rem, .75rem + 1.25vw, 2rem); padding-bottom: 0; text-align: center; }
.hero__copy { max-width: 900px; margin-inline: auto; }
.hero__title { font-size: var(--fs-display); line-height: 1.05; letter-spacing: -0.028em; font-weight: 600; }
@media (max-width: 400px) { .hero__title { font-size: 2.25rem; } }
.hero__sub { margin: 12px auto 0; font-size: var(--fs-lead); line-height: 1.5; color: var(--ink-2); max-width: 60ch; }
.hero__cta { margin-top: 26px; display: flex; justify-content: center; }
.btn--lg { height: 52px; padding: 0 28px; font-size: var(--fs-body); }
.hero__note { margin: 10px auto 0; font-size: var(--fs-label); line-height: 1.45; color: var(--ink-3); max-width: 70ch; }
@media (max-width: 560px) {
  .hero__cta .btn { width: 100%; }
}

/* ---------- proof: flow tabs over the chain stage ---------- */

.proof { margin-top: clamp(1.25rem, .75rem + 1vw, 1.75rem); }
.seg { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.seg__btn {
  -webkit-appearance: none; appearance: none;
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px 0 14px;
  border: 1px solid var(--line-2); border-radius: var(--r-pill); background: var(--bg-2);
  color: var(--ink-2); font: 500 var(--fs-small)/1 var(--font);
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.seg__btn .icon { width: 18px; height: 18px; color: var(--violet); transition: color var(--t-fast) var(--ease); }
.seg__btn:hover { background: var(--tint-1); color: var(--ink); border-color: var(--violet-line); }
.seg__btn[aria-selected="true"] { background: var(--violet); color: var(--on-violet); border-color: var(--violet); }
.seg__btn[aria-selected="true"] .icon { color: currentColor; }
.seg__short { display: none; }
@media (max-width: 560px) {
  .seg__full { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .seg__short { display: inline; }
  .seg__btn { white-space: nowrap; flex: 1; justify-content: center; }
}

.stage {
  background: var(--stage);
  border-radius: var(--r-stage);
  padding: clamp(12px, .6rem + 1.1vw, 26px);
}
.stage--2 { background: var(--stage-2); }
.stage--3 { background: var(--stage-3); }
.stage--hero { position: relative; padding: clamp(12px, .75rem + 1vw, 22px); background: var(--stage-hero); }

/* five tool cards slide together into one card with the wordmark; then the product window (every page load) */
.wins { --gap: 14px; position: absolute; inset: 0; z-index: 2; overflow: hidden; border-radius: inherit; pointer-events: none; container-type: inline-size; display: flex; align-items: center; justify-content: center; gap: var(--gap); }
.tool {
  --w: min(224px, calc((100cqw - 4 * var(--gap) - 40px) / 5));
  --h: 68px;
  width: var(--w); height: var(--h); flex: none; display: flex; align-items: center; justify-content: center; padding: 0 14px;
  background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 16px; box-shadow: 0 1px 2px rgba(21, 18, 46, .06);
  color: var(--ink); font: 600 clamp(14px, 1.42cqw, 17px)/1.2 var(--font); text-align: center; white-space: nowrap;
  opacity: 0; transform: translateY(8px);
  animation: tool-life 3600ms var(--ease) calc(200ms + var(--n) * 100ms) both;
}
.tool--one { --h: 84px; position: absolute; left: 50%; top: 50%; width: auto; padding: 0 30px; transform: translate(-50%, -50%); animation: one-life 1400ms var(--ease-out) 3300ms both; }
.tool__word { height: 38px; width: auto; }
@keyframes tool-life {
  0% { opacity: 0; transform: translateY(8px); }
  11% { opacity: 1; transform: translateY(0); }
  72% { opacity: 1; transform: translateY(0); }
  86% { opacity: 1; transform: translateX(calc((2 - var(--n)) * (100% + var(--gap)))); }
  100% { opacity: 0; transform: translateX(calc((2 - var(--n)) * (100% + var(--gap)))); }
}
@keyframes one-life {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.96); }
  30% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  70% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.02); }
}
.stage--hero .chain { animation: chain-in 560ms var(--ease-out) 4400ms both; }
@keyframes chain-in { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
/* with scripting the scene waits until the stage is in view */
.js .stage--hero:not(.is-live):not(.scene-done) .tool, .js .stage--hero:not(.is-live):not(.scene-done) .chain { animation-play-state: paused; }
.stage--hero.scene-done .wins { display: none; }
.stage--hero.scene-done .chain { animation: none; opacity: 1; transform: none; }
/* below 981px five cards no longer fit in a row at a readable size: they stack and slide vertically */
@media (max-width: 980px) {
  .wins { --gap: 10px; --top: 26px; flex-direction: column; justify-content: flex-start; padding-top: var(--top); }
  .tool { --w: min(300px, 78cqw); --h: 54px; font-size: 16px; }
  .tool--one { --h: 72px; top: calc(var(--top) + 2 * (54px + var(--gap)) - 9px); transform: translateX(-50%); padding: 0 26px; }
  .tool__word { height: 32px; }
  @keyframes tool-life {
    0% { opacity: 0; transform: translateY(8px); }
    11% { opacity: 1; transform: translateY(0); }
    72% { opacity: 1; transform: translateY(0); }
    86% { opacity: 1; transform: translateY(calc((2 - var(--n)) * (100% + var(--gap)))); }
    100% { opacity: 0; transform: translateY(calc((2 - var(--n)) * (100% + var(--gap)))); }
  }
  @keyframes one-life {
    0% { opacity: 0; transform: translateX(-50%) scale(.96); }
    30% { opacity: 1; transform: translateX(-50%) scale(1); }
    70% { opacity: 1; transform: translateX(-50%) scale(1); }
    100% { opacity: 0; transform: translateX(-50%) scale(1.02); }
  }
}
@media (prefers-reduced-motion: reduce) {
  .wins { display: none; }
  .stage--hero .chain { animation: none; opacity: 1; transform: none; }
}

/* ---------- chain (the first-viewport demonstration) ---------- */

.chain {
  position: relative;
  background: var(--k-bg); color: var(--k-text);
  border: 1px solid var(--k-line);
  border-radius: var(--r-win); box-shadow: var(--shadow-frame);
  padding: 0 22px 22px;
  font-family: var(--font-app); font-size: 13px; line-height: 1.4; text-align: left;
}
.chain__head { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; min-height: 44px; padding: 8px 0; margin: 0 -22px 14px; padding-inline: 22px; border-bottom: 1px solid var(--k-line); flex-wrap: wrap; }
.chain__crumb { display: flex; align-items: center; gap: 8px; color: var(--k-muted); font-size: 13px; }
.chain__crumb .brand-mini { width: 18px; height: 18px; flex: none; }
.chain__crumb strong { color: var(--k-text); font-weight: 600; }
.chain__crumb .sep { color: var(--k-dim); }

.tag {
  display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 10px;
  border-radius: 999px; border: 1px dashed var(--k-line-2); color: var(--k-muted);
  font: 500 12px/1 var(--font-app); letter-spacing: .01em; white-space: nowrap; background: var(--k-bg);
}
.tag::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #D4A017; }

.chain__panel[hidden] { display: none; }
.chain__caption { margin: 0 0 12px; color: var(--k-muted); font-size: 12.5px; line-height: 1.45; max-width: 96ch; }
.chain__track { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 44px; row-gap: 32px; }

.frag {
  position: relative;
  display: flex; flex-direction: column; gap: 8px;
  background: var(--k-panel); border: 1px solid var(--k-line); border-radius: 14px; padding: 13px 14px 12px;
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.frag:hover { border-color: var(--k-violet); }
.frag__head { display: flex; align-items: center; gap: 7px; color: var(--k-muted); font-size: 12px; font-weight: 500; }
.frag__head .icon { width: 15px; height: 15px; color: var(--k-violet); }
.frag__step { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--k-violet-line); color: var(--k-violet); font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; }
.frag__key { font-family: var(--font-mono); font-size: 12px; color: var(--k-muted); letter-spacing: .01em; }
.frag__title { font-size: 14.5px; font-weight: 600; line-height: 1.3; color: var(--k-text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.frag__line { font-size: 12.5px; color: var(--k-muted); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.frag__line strong { color: var(--k-text); font-weight: 600; }
.frag__foot { margin-top: auto; padding-top: 8px; display: flex; flex-direction: column; align-items: flex-start; gap: 7px; border-top: 1px solid var(--k-line); }
.frag__datum { font-size: 13px; font-weight: 600; color: var(--k-violet); line-height: 1.35; }
.frag__sep { color: var(--k-dim); font-weight: 400; }
.frag__foot .k-chip { max-width: 100%; white-space: normal; height: auto; line-height: 1.3; padding: 3px 8px; }

.datum {
  display: inline-block; font-variant-numeric: tabular-nums;
  border-radius: 4px; padding: 0 2px; margin: 0 -2px;
  transition: background 280ms var(--ease-out), box-shadow 280ms var(--ease-out), color 280ms var(--ease-out), transform 280ms var(--ease-out);
}
.frag__datum { cursor: default; }
/* on hover the shared value lights up card by card, from the ticket to the DATEV batch */
.chain.is-linked .datum, .chain:focus-within .datum { transition-delay: calc(var(--i, 0) * 90ms); }
.chain.is-linked .frag__datum .datum, .chain:focus-within .frag__datum .datum { transform: translateY(-1px); }
.frag__line .datum, .frag__title .datum { color: var(--k-text); font-weight: 600; }
.chain.is-linked .datum, .chain:focus-within .datum { background: var(--k-datum-bg); box-shadow: 0 0 0 2px var(--k-datum-bg); color: var(--k-datum-text); }
.chain.is-linked .frag__title, .chain.is-linked .frag__line, .chain.is-linked .frag__line strong, .chain:focus-within .frag__title, .chain:focus-within .frag__line, .chain:focus-within .frag__line strong { color: var(--k-dim); transition: color var(--t-fast) var(--ease); }
.chain.is-linked .frag__title .datum, .chain.is-linked .frag__line .datum, .chain:focus-within .frag__title .datum, .chain:focus-within .frag__line .datum { color: var(--k-datum-text); }

/* connectors between fragments */
.frag:not(:last-child)::after {
  content: ''; position: absolute; top: 50%; left: 100%;
  width: 44px; height: 2px; margin-top: -1px; background: var(--k-violet-line);
  transform: scaleX(0); transform-origin: left center;
}
.chain.is-linked .frag:not(:last-child)::after, .chain:focus-within .frag:not(:last-child)::after { background: var(--k-violet); }
.chain.is-linked .frag + .frag::before, .chain:focus-within .frag + .frag::before { transform: translate(-50%, -50%) scale(1.35); }
.frag + .frag::before {
  content: ''; position: absolute; top: 50%; left: 0; z-index: 1;
  width: 8px; height: 8px; border-radius: 50%; background: var(--k-violet); box-shadow: 0 0 0 3px var(--k-bg);
  transform: translate(-50%, -50%) scale(0);
}

/* entrance: played once when the strip comes into view */
.js .chain:not(.is-played) .frag { opacity: 0; }
.chain.is-played .frag { animation: rise var(--t-slow) var(--ease-out) both; animation-delay: calc(var(--i, 0) * 140ms); }
.chain.is-played .frag:not(:last-child)::after { transform: scaleX(1); transition: transform 380ms var(--ease) calc(var(--i, 0) * 140ms + 220ms), background 280ms var(--ease-out) calc(var(--i, 0) * 90ms + 60ms); }
.chain.is-played .frag + .frag::before { transform: translate(-50%, -50%) scale(1); transition: transform 240ms var(--ease-out) calc(var(--i, 0) * 90ms); }
.chain.is-played.is-linked .frag + .frag::before, .chain.is-played:focus-within .frag + .frag::before { transform: translate(-50%, -50%) scale(1.35); }

@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

@media (min-width: 721px) and (max-width: 1023px) {
  .chain__track { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .frag:nth-child(2)::after { display: none; }
  .frag:nth-child(3)::before { display: none; }
}
@media (max-width: 720px) {
  .chain { padding: 0 16px 18px; }
  .chain__head { margin-inline: -16px; padding-inline: 16px; }
  .chain__track { grid-template-columns: 1fr; row-gap: 20px; }
  .frag { padding: 11px 12px 10px; gap: 6px; }
  .frag__foot { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; }
  .frag:not(:last-child)::after { top: 100%; left: 50%; width: 2px; height: 20px; margin: 0 0 0 -1px; transform: scaleY(0); transform-origin: top center; }
  .chain.is-played .frag:not(:last-child)::after { transform: scaleY(1); }
  .frag + .frag::before { top: 0; left: 50%; }
}

/* ---------- product-view kit ---------- */

.app {
  position: relative;
  background: var(--k-bg); color: var(--k-text);
  border: 1px solid var(--k-line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-frame);
  font-family: var(--font-app); font-size: 13px; line-height: 1.4;
  overflow: hidden;
  font-variant-numeric: tabular-nums;
}
.app__top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; min-height: 44px; padding: 6px 14px; border-bottom: 1px solid var(--k-line); background: var(--k-top-bg); }
.app__crumb { display: flex; align-items: center; gap: 8px; color: var(--k-muted); font-size: 13px; flex: none; }
.app__crumb .brand-mini { width: 18px; height: 18px; flex: none; }
.app__crumb strong { color: var(--k-text); font-weight: 600; }
.app__crumb .sep { color: var(--k-dim); }
.app__actions { margin-left: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; flex: 1 1 auto; }
.app__btns { display: contents; }
.app { container-type: inline-size; }
.app__body { padding: 14px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; align-content: start; background: var(--k-app-bg); }
.app__body > * { min-width: 0; }
.app--side { display: grid; grid-template-columns: 172px minmax(0, 1fr); grid-template-rows: auto 1fr; }
.app--side .app__top { grid-column: 2; }
.app--side .app__body { grid-column: 2; grid-template-rows: auto auto 1fr; }
.app__side { grid-row: 1 / span 2; background: var(--k-side); border-right: 1px solid var(--k-line); padding: 10px 8px; display: flex; flex-direction: column; gap: 1px; }
.app__side-brand { display: flex; align-items: center; gap: 8px; padding: 4px 8px 8px; font-weight: 600; font-size: 14px; }
.app__side-brand .brand-mini { width: 22px; height: 22px; }
.app__side-group { font-size: 11.5px; color: var(--k-dim); padding: 7px 10px 2px; }
.app__side-item { display: flex; align-items: center; gap: 8px; padding: 4px 10px; border-radius: 8px; color: var(--k-muted); font-size: 12.5px; }
.app__side-item .icon { width: 15px; height: 15px; }
.app__side-item.is-active { background: var(--k-violet-soft); color: var(--k-violet-text); font-weight: 600; }

.k-h { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; }
.k-sub { color: var(--k-muted); font-size: 12.5px; margin-top: 2px; }
.k-title { font-size: 14px; font-weight: 600; }
.k-muted { color: var(--k-muted); }
.k-dim { color: var(--k-dim); }
.k-num { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.1; white-space: nowrap; }
.k-num--xl { font-size: 30px; }
.k-kpi .k-num--long { font-size: 15px; letter-spacing: 0; }
.k-panel { background: var(--k-card); border: 1px solid var(--k-line); border-radius: 14px; padding: 12px; min-width: 0; }
.k-card { background: var(--k-panel); border: 1px solid var(--k-line); border-radius: 12px; padding: 12px; min-width: 0; }
.k-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.k-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.k-span-2 { grid-column: span 2; }
.k-stack { display: flex; flex-direction: column; gap: 8px; }
.k-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--k-line); min-width: 0; }
.k-row:last-child { border-bottom: 0; }
.k-row:first-child { padding-top: 0; }
.k-row--plain, .k-row--plain:first-child { border-bottom: 0; padding: 0 0 8px; }
.k-row--head, .k-row--head:first-child { padding: 0 0 8px; }
.k-title--gap { margin: 0 0 8px; }
.k-row .grow { flex: 1; min-width: 0; }
.k-row .right { margin-left: auto; text-align: right; white-space: nowrap; flex-shrink: 0; }
.k-row .right.k-chip { max-width: 60%; white-space: normal; height: auto; line-height: 1.3; padding: 3px 8px; text-align: left; }
.k-ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.k-nowrap { white-space: nowrap; }

.k-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.k-kpi { background: var(--k-panel); border: 1px solid var(--k-line); border-radius: 12px; padding: 10px 12px; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 10px; row-gap: 1px; align-content: start; min-width: 0; }
.k-kpi > .k-kpi__icon { grid-row: 1 / span 3; margin: 1px 0 0; }
.k-kpi > :not(.k-kpi__icon) { grid-column: 2; }
.k-kpi__icon { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--k-violet-soft); color: var(--k-violet); margin-bottom: 8px; }
.k-kpi__icon .icon { width: 15px; height: 15px; }
.k-kpi__icon--warn { background: var(--k-red-bg); color: var(--k-red); }
.k-kpi__icon--ok { background: var(--k-green-bg); color: var(--k-green); }
.k-kpi .k-num { font-size: 19px; }
.k-kpi__label { color: var(--k-muted); font-size: 12px; line-height: 1.3; }
.k-kpi__note { font-size: 12px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.k-kpi__note--danger { color: var(--k-red); }
.k-kpi__note--ok { color: var(--k-green); }

.k-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px;
  border-radius: 999px; border: 1px solid var(--k-line-2); color: var(--k-text);
  font-size: 12.5px; font-weight: 600; background: var(--k-card); white-space: nowrap;
}
.k-btn .icon { width: 14px; height: 14px; }
.k-btn--primary { background: var(--k-violet); color: var(--k-on-primary); border-color: transparent; }
.k-btn--block { justify-content: center; height: 40px; }

.k-chip { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 12px; font-weight: 600; background: var(--k-chip-bg); color: var(--k-muted); white-space: nowrap; }
.k-chip--ok { background: var(--k-green-bg); color: var(--k-green); }
.k-chip--warn { background: var(--k-amber-bg); color: var(--k-amber); }
.k-chip--danger { background: var(--k-red-bg); color: var(--k-red); }
.k-chip--info { background: var(--k-violet-soft); color: var(--k-violet-text); }
.k-chip--blue { background: var(--k-blue-bg); color: var(--k-blue); }
.k-chip--ellipsis { max-width: 100%; overflow: hidden; text-overflow: ellipsis; display: inline-block; line-height: 22px; }
.k-badge { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border: 1px solid var(--k-line-2); border-radius: 5px; font-size: 11.5px; font-weight: 600; color: var(--k-muted); letter-spacing: .01em; white-space: nowrap; background: var(--k-card); }
.k-key { font-family: var(--font-mono); font-size: 12px; color: var(--k-muted); white-space: nowrap; }
.k-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: var(--k-dim); flex: none; }
.k-dot--blue { background: #3B82D6; }
.k-dot--amber { background: #D9A400; }
.k-dot--green { background: #22A06B; }
.k-dot--violet { background: var(--k-violet); }
.k-dot--red { background: #DC4A3B; }

.k-dash { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.5fr); gap: 10px; }
.k-dash > .k-panel { display: flex; flex-direction: column; justify-content: space-between; }
.k-dash .k-clock__time, .k-dash .k-goal__num { margin-block: 2px 8px; }
.k-ready { margin: 10px 0 6px; padding-top: 10px; border-top: 1px solid var(--k-line); }
.k-note { display: flex; gap: 10px; align-items: flex-start; }
.k-note .k-kpi__icon { margin: 0; flex: none; }
.k-note > span:last-child { min-width: 0; align-self: center; }
.k-note__text .k-key { display: block; }

.k-avatar { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 10.5px; font-weight: 700; background: var(--k-avatar-bg); color: var(--k-avatar-text); flex: none; letter-spacing: .02em; }
.k-avatar--teal { background: #D5F0EC; color: #11635C; }
.k-avatar--rose { background: #F9DDEB; color: #8A2C5E; }
.k-avatar--amber { background: #F7E9C4; color: #6B4E00; }
.k-avatar--blue { background: #D9E9FA; color: #1B4F8A; }
.k-avatar--sm { width: 22px; height: 22px; font-size: 9px; }

.k-bar { height: 6px; border-radius: 999px; background: var(--k-bar-bg); overflow: hidden; }
.k-bar > i { display: block; height: 100%; background: var(--k-violet); border-radius: 999px; }

.k-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.k-table th { text-align: left; font-weight: 500; color: var(--k-muted); padding: 6px 8px 8px; border-bottom: 1px solid var(--k-line); font-size: 12px; white-space: nowrap; }
.k-table td { padding: 8px; border-bottom: 1px solid var(--k-line); vertical-align: middle; white-space: nowrap; }
.k-table .k-td-grow { width: 100%; max-width: 0; white-space: normal; }
.k-booked { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.k-booked strong { white-space: nowrap; }
.k-booked .k-ellipsis { flex: 1; min-width: 0; }
.k-inv { display: flex; align-items: center; gap: 4px 8px; }
.k-req { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; }
.k-table tr:last-child td { border-bottom: 0; }
.k-table .num { text-align: right; white-space: nowrap; }

.k-kanban { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.k-col { background: var(--k-panel); border: 1px solid var(--k-line); border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 8px; min-height: 160px; min-width: 0; }
.k-col__head { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; padding: 2px 4px 6px; }
.k-col__count { margin-left: auto; color: var(--k-muted); font-weight: 500; }
.k-ticket { background: var(--k-card); border: 1px solid var(--k-line); border-radius: 10px; padding: 10px; display: flex; flex-direction: column; gap: 6px; }
.k-ticket__title { font-size: 13px; font-weight: 600; line-height: 1.3; }
.k-ticket__meta { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--k-muted); flex-wrap: wrap; }
.k-ticket__foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 2px; flex-wrap: wrap; }
.k-ticket--portal { border-color: var(--k-blue-line); }

.k-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; }
.k-split__head { display: flex; align-items: center; gap: 8px; padding-bottom: 10px; margin-bottom: 10px; border-bottom: 1px solid var(--k-line); font-size: 12px; color: var(--k-muted); }
.k-split__head .icon { width: 15px; height: 15px; color: var(--k-violet); }
.k-split__head strong { color: var(--k-text); white-space: nowrap; }
.k-comment { background: var(--k-panel); border: 1px solid var(--k-line); border-radius: 10px; padding: 10px 12px; font-size: 12.5px; line-height: 1.45; }
.k-comment--internal { border-style: dashed; }
.k-comment__meta { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--k-muted); margin-bottom: 4px; }
.k-comment__meta .icon { width: 13px; height: 13px; }
.k-hidden-note { display: flex; gap: 8px; align-items: flex-start; font-size: 12px; color: var(--k-muted); padding: 10px 12px; border: 1px dashed var(--k-line-2); border-radius: 10px; background: var(--k-card); }
.k-hidden-note .icon { width: 14px; height: 14px; color: var(--k-dim); margin-top: 1px; }

.k-week { display: grid; grid-template-columns: minmax(128px, 1.25fr) repeat(5, minmax(0, 1fr)); gap: 1px; background: var(--k-line); border: 1px solid var(--k-line); border-radius: 12px; overflow: hidden; font-size: 12px; }
.k-week > div { background: var(--k-card); padding: 7px; min-width: 0; min-height: 40px; display: flex; align-items: center; }
.k-week__head { color: var(--k-muted); font-weight: 500; background: var(--k-panel) !important; }
.k-week__head strong { color: var(--k-text); font-weight: 600; margin-left: 2px; }
.k-week__person { display: flex; align-items: center; gap: 8px; }
.k-week__person .k-dim { font-size: 11.5px; display: block; }
.k-week__block { display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background: var(--k-blue-bg); border: 1px solid var(--k-blue-line); color: var(--k-blue-text); border-radius: 6px; padding: 3px 5px; font-size: 11px; line-height: 1.25; }
.k-week__block--absence { background: var(--k-amber-bg); border-color: var(--k-amber-line); color: var(--k-amber-text); }
.k-week__block--fixe { background: var(--k-violet-soft); border-color: var(--k-violet-blk-line); color: var(--k-violet-text); }

.k-clock__time { font-size: 32px; font-weight: 600; letter-spacing: -0.02em; line-height: 1; margin: 6px 0 10px; }
.k-clock__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px 12px; flex-wrap: wrap; }
.k-goal__num { margin: 4px 0 10px; }
.k-goal__note { margin-top: 8px; }
.k-clock__time small { font-size: 15px; color: var(--k-muted); font-weight: 500; margin-left: 3px; }

.k-chart { width: 100%; height: auto; display: block; }
.k-chart .grid-line { stroke: var(--k-grid); stroke-dasharray: 2 4; }
.k-chart .area { fill: url(#areaFill); }
.k-chart .line { stroke: var(--k-violet); stroke-width: 2; fill: none; stroke-linejoin: round; }
.k-chart .label { fill: var(--k-dim); font-size: 10px; font-family: var(--font-app); }

.k-field { display: flex; flex-direction: column; gap: 3px; }
.k-field dt { color: var(--k-dim); font-size: 12px; }
.k-field dd { margin: 0; font-weight: 500; }

.chat { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.chat__msg { max-width: 94%; border-radius: 14px; padding: 9px 12px; font-size: 13px; line-height: 1.4; }
.chat__msg--q { align-self: flex-end; background: var(--k-violet-soft); color: var(--k-violet-text); border-bottom-right-radius: 4px; }
.chat__msg--a { align-self: flex-start; background: var(--k-card); border: 1px solid var(--k-line); border-bottom-left-radius: 4px; }
.chat__msg--a ul { margin: 6px 0 0; padding-left: 16px; list-style: disc; }
.chat__msg--a li { margin-top: 3px; }
.chat__src { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; align-items: center; }
.chat__src .k-badge { white-space: normal; height: auto; min-height: 20px; padding: 2px 7px; line-height: 1.3; }
.chat__input { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 9px 12px; border: 1px solid var(--k-line-2); border-radius: 999px; color: var(--k-dim); font-size: 12.5px; background: var(--k-card); }
.chat__input .icon { width: 16px; height: 16px; margin-left: auto; color: var(--k-violet); }
.chat__notice { margin: 0; font-size: 12px; color: var(--k-dim); text-align: center; }

@media (max-width: 760px) {
  .k-kanban { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .k-kanban .k-col:nth-child(3) { display: none; }
  .k-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hide-sm { display: none !important; }
}
.k-panel--table { padding: 4px 6px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: var(--k-line-2) transparent; }
@media (max-width: 640px) {
  .hide-xs { display: none !important; }
  .app__actions .k-btn:not(.k-btn--primary) { display: none; }
  .app__top { flex-wrap: wrap; }
  .k-ellipsis-xs { display: block !important; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 150px; }
  .k-table { min-width: 0; }
  .app--side { grid-template-columns: 1fr; }
  .app--side .app__top, .app--side .app__body { grid-column: 1; }
  .app__side { display: none; }
  .app__body { padding: 12px; }
  .k-grid-2, .k-split { grid-template-columns: 1fr; }
  .k-span-2 { grid-column: auto; }
}



/* ---------- platform: points row, showcase, pillar cards ---------- */

.points { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 32px; border-top: 1px solid var(--line); }
.points__item { padding: 28px 0 8px; display: grid; gap: 6px; align-content: start; }
.points__icon { width: 24px; height: 24px; color: var(--violet); margin-bottom: 8px; }
.points__title { font-weight: 600; font-size: var(--fs-body); }
.points__body { color: var(--ink-2); font-size: var(--fs-small); }
@media (max-width: 900px) { .points { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .points { grid-template-columns: 1fr; } .points__item { padding: 20px 0 4px; border-bottom: 1px solid var(--line); } }

.showcase { margin-top: clamp(2.5rem, 2rem + 2.5vw, 4rem); }
.view-caption { margin-top: 12px; font-size: var(--fs-label); color: var(--ink-3); }
.view-caption--center { text-align: center; max-width: 80ch; margin-inline: auto; }

.pillars__head { margin-top: var(--section); text-align: center; }
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: clamp(2rem, 1.5rem + 2vw, 3rem); }
.pillar { display: flex; flex-direction: column; background: var(--tint-1); border-radius: var(--r-card); padding: 32px 28px 28px; min-width: 0; }
.pillar--2 { background: var(--tint-2); }
.pillar--3 { background: var(--tint-3); }
.pillar__title { font-size: 1.5rem; letter-spacing: -0.016em; line-height: 1.15; }
.pillar__sub { margin-top: 8px; color: var(--ink-2); font-size: var(--fs-small); }
.pillar__list { margin-top: 24px; display: grid; gap: 4px; }
.pillar__list a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; margin-inline: -10px; border-radius: var(--r-sm); color: var(--ink); text-decoration: none; font-size: var(--fs-small); font-weight: 500; transition: background var(--t-fast) var(--ease); }
.pillar__list a:hover { background: rgba(255, 255, 255, .6); color: var(--violet-2); }
.pillar__list .icon { width: 18px; height: 18px; color: var(--violet); }
.pillar__link { margin-top: auto; padding-top: 28px; align-self: flex-start; }
@media (max-width: 900px) { .pillars { grid-template-columns: 1fr; } }

/* ---------- module stages ---------- */

.stages { display: flex; flex-direction: column; gap: clamp(3rem, 2rem + 3.2vw, 5.5rem); }
.stage-row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); align-items: start; }
.stage-row__text { grid-column: 1 / span 5; padding-top: 12px; }
.stage-row__view { grid-column: 6 / -1; min-width: 0; }
.stage-row--flip .stage-row__text { grid-column: 8 / -1; order: 2; }
.stage-row--flip .stage-row__view { grid-column: 1 / span 7; order: 1; }
.stage-row__title { font-size: var(--fs-h3); line-height: 1.15; letter-spacing: -0.018em; }
.stage-row__body { margin-top: 16px; color: var(--ink-2); }
.specifics { margin-top: 20px; display: grid; gap: 8px; }
.specifics li { display: flex; gap: 10px; font-size: var(--fs-small); color: var(--ink-2); }
.specifics .icon { width: 18px; height: 18px; color: var(--violet); margin-top: 2px; }
.specifics--facts { gap: 16px; }
.specifics--facts li > span { display: grid; gap: 3px; }
.specifics--facts .points__title { color: var(--ink); }
.specifics--facts .icon { margin-top: 3px; }
@media (min-width: 981px) {
  .stage-row__text { position: sticky; top: calc(var(--header-h) + 32px); }
}
@media (max-width: 980px) {
  .stage-row__text, .stage-row__view, .stage-row--flip .stage-row__text, .stage-row--flip .stage-row__view { grid-column: 1 / -1; order: 0; }
  .stage-row__text { position: static; padding-top: 0; }
}

/* ---------- data-control band ---------- */

.band { background: var(--band); color: var(--band-text); padding: var(--section) 0; }
.band .section__title { color: var(--band-text); }
.band .section__lead { color: var(--band-muted); }
.band a, .band a:hover, .band a:focus-visible { color: var(--band-accent); }
.band a:hover { text-decoration-thickness: 2px; }
.band__cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.band__card { background: var(--band-2); border: 1px solid var(--band-line); border-radius: var(--r-card); padding: 28px; display: grid; gap: 10px; align-content: start; }
.band__icon { width: 28px; height: 28px; color: var(--band-accent); margin-bottom: 10px; }
.band__card h3 { font-size: 1.25rem; letter-spacing: -0.012em; line-height: 1.2; }
.band__card p { color: var(--band-muted); font-size: var(--fs-small); }
.band__row { margin-top: 48px; padding-top: 36px; border-top: 1px solid var(--band-line); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; }
.band__row li { display: grid; gap: 6px; align-content: start; }
.band__row .icon { width: 20px; height: 20px; color: var(--band-accent); margin-bottom: 6px; }
.band__row-title { font-weight: 600; font-size: var(--fs-small); }
.band__row-body { color: var(--band-muted); font-size: var(--fs-label); line-height: 1.5; }
.band__note { margin: 40px auto 0; color: var(--band-muted); font-size: var(--fs-small); max-width: 76ch; text-align: center; }
.band ::selection { background: #3B2F8A; color: #fff; }
@media (max-width: 980px) { .band__row { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .band__cards { grid-template-columns: 1fr; }
  .band__row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) { .band__row { grid-template-columns: 1fr; } }

/* ---------- process steps ---------- */

.steps { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; counter-reset: step; }
.steps::before { content: ''; position: absolute; left: 20px; right: 20px; top: 19px; height: 2px; background: var(--line); }
.steps__item { position: relative; padding-top: 60px; }
.steps__item::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 0; left: 0;
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--violet); color: var(--on-violet); box-shadow: 0 0 0 6px var(--bg);
  font-size: var(--fs-small); font-weight: 600; font-variant-numeric: tabular-nums;
}
.steps__title { font-size: 1.25rem; letter-spacing: -0.012em; line-height: 1.2; }
@media (min-width: 901px) { .steps__title { min-height: 2.4em; } }
.steps__body { margin-top: 10px; color: var(--ink-2); font-size: var(--fs-small); }
@media (max-width: 900px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 32px; }
  .steps::before { display: none; }
}
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ---------- faq ---------- */

.faq__list { max-width: 860px; margin-inline: auto; border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding: 22px 0; font-size: var(--fs-h4); font-weight: 600; line-height: 1.35; list-style: none; color: var(--ink); }
.faq__q::-webkit-details-marker { display: none; }
.faq__q:hover { color: var(--violet-2); }
.faq__icon { width: 22px; height: 22px; margin-top: 2px; color: var(--violet); transition: transform var(--t) var(--ease); }
.faq__item[open] .faq__icon { transform: rotate(45deg); }
.faq__a { padding: 0 0 24px; color: var(--ink-2); font-size: var(--fs-small); max-width: 72ch; }

/* ---------- contact ---------- */

.contact { background: var(--stage); border-radius: var(--r-stage); padding: clamp(1.5rem, 1rem + 2.5vw, 3.5rem); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); align-items: start; }
.contact__text { grid-column: 1 / span 5; padding-top: 8px; }
.contact__steps { margin-top: 28px; display: grid; gap: 14px; counter-reset: cstep; }
.contact__steps li { position: relative; padding-left: 44px; font-size: var(--fs-small); color: var(--ink-2); min-height: 32px; display: flex; align-items: center; }
.contact__steps li::before { counter-increment: cstep; content: counter(cstep); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-2); color: var(--violet); font-weight: 600; font-size: var(--fs-label); border: 1px solid var(--violet-line); }
.contact__form { grid-column: 7 / -1; background: var(--bg-2); border-radius: var(--r-card); padding: 28px; box-shadow: var(--shadow-pop); }
@media (min-width: 1100px) { .contact__form { padding: 36px; } }
.form { display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form__note { font-size: var(--fs-label); color: var(--ink-3); }
.form__actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.form__success { display: none; padding: 8px 0; }
.form__success.is-shown { display: block; }
.form__success h3 { font-size: var(--fs-h3); }
.form__success p { margin-top: 10px; color: var(--ink-2); }
.form.is-done { display: none; }
@media (max-width: 980px) { .contact__text, .contact__form { grid-column: 1 / -1; } .contact { border-radius: var(--r-card); } }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } .contact__form { padding: 22px 18px; } }

/* ---------- footer ---------- */

.site-footer { position: relative; background: var(--foot); color: var(--foot-text); padding: clamp(3.5rem, 2.5rem + 3vw, 5.5rem) 0 0; font-size: var(--fs-small); overflow: hidden; }
.site-footer a { color: var(--foot-text); }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--gap); }
.footer__desc { margin-top: 18px; max-width: 38ch; color: var(--foot-muted); }
.footer__addr { margin-top: 16px; font-style: normal; color: var(--foot-text); line-height: 1.5; }
.footer__title { font-size: var(--fs-small); font-weight: 600; color: var(--band-text); margin: 0 0 14px; }
.footer__links li + li { margin-top: 10px; }
.footer__links a { color: var(--foot-text); text-decoration: none; }
.footer__links a:hover { color: #fff; text-decoration: underline; }
.footer__bottom { margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--foot-line); display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; font-size: var(--fs-label); color: var(--foot-muted); }
.footer__legal { display: flex; gap: 20px; }
.footer__legal a { color: var(--foot-muted); text-decoration: none; }
.footer__legal a:hover { color: #fff; text-decoration: underline; }
.footer__mark { margin-top: 40px; display: flex; justify-content: center; overflow: hidden; }
.footer__mark-svg { width: min(92vw, 1180px); height: auto; margin-bottom: -5.2%; }
.footer__mark-svg .logo__ink, .footer__mark-svg .logo__puls { fill: var(--foot-mark); }
.site-footer ::selection { background: #3B2F8A; color: #fff; }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---------- legal pages ---------- */

.legal { padding-block: clamp(3rem, 2rem + 4vw, 5.5rem); }
.legal__body { max-width: 72ch; }
.legal__body h1 { font-size: var(--fs-h2); letter-spacing: -0.022em; line-height: 1.08; }
.legal__body h2 { font-size: var(--fs-h4); margin-top: 36px; }
.legal__body p { margin-top: 12px; color: var(--ink-2); }
.legal__body .btn { margin-top: 8px; }
.notice { margin-top: 28px; padding: 16px 18px; border: 1px dashed var(--line-2); border-radius: var(--r); background: var(--bg-tint); color: var(--ink-2); font-size: var(--fs-small); }

/* ---------- reveal (windows only, once) ---------- */

@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(14px); filter: blur(6px); transition: opacity var(--t-slow) var(--ease-out), transform 480ms var(--ease-out), filter 420ms var(--ease-out); }
  .js [data-reveal].in { opacity: 1; transform: none; filter: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  .js .chain:not(.is-played) .frag { opacity: 1; }
  .frag:not(:last-child)::after { transform: none; }
  .frag + .frag::before { transform: translate(-50%, -50%); }
}

/* ---------- kit container queries (key the views on their own width) ---------- */

/* below 900px a KPI tile drops its icon and stacks number and label; the dashboard's chart moves under the two panels */
@container (max-width: 900px) {
  .k-kpi { grid-template-columns: minmax(0, 1fr); padding: 9px 10px; }
  .k-kpi > .k-kpi__icon { display: none; }
  .k-kpi > :not(.k-kpi__icon) { grid-column: 1; }
  .k-kpi__note.k-muted { display: none; }
  .k-dash { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .k-dash .k-panel--chart { grid-column: 1 / -1; }
}
/* the window is the query container, so its own grid cannot change here: the sidebar goes and the rest spans both columns */
@container (max-width: 720px) {
  .app--side .app__top, .app--side .app__body { grid-column: 1 / -1; }
  .app__side { display: none; }
  .k-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .k-table .hide-m { display: none; }
  .app__btns .k-btn:not(.k-btn--primary) { display: none; }
}
@container (max-width: 600px) {
  .k-table .hide-c { display: none; }
  .k-grid-2, .k-split { grid-template-columns: 1fr; }
  .k-span-2 { grid-column: auto; }
}
@container (max-width: 520px) {
  .app__body { padding: 12px; }
  .k-week { grid-template-columns: minmax(104px, 1.2fr) repeat(3, minmax(0, 1fr)); }
  .k-week > div[data-day="4"], .k-week > div[data-day="5"] { display: none; }
  .k-dash { grid-template-columns: minmax(0, 1fr); }
  .k-dash .k-panel--chart { display: none; }
  .k-split .k-field:nth-child(n + 3) { display: none; }
  .k-split .k-panel + .k-panel dl { display: none; }
  .k-inv { flex-wrap: wrap; }
  .app__btns, .k-panel--aux, .k-row--head > .right.k-muted { display: none; }
}
@container (max-width: 440px) {
  .k-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}


/* ---------- dark theme ---------- */

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0F0E1C;
    --bg-2: #171629;
    --bg-tint: #141327;
    --tint-1: #1C1934;
    --tint-2: #171B31;
    --tint-3: #1F1830;
    --stage: linear-gradient(135deg, #1D1839 0%, #171630 55%, #161B33 100%);
    --stage-2: linear-gradient(135deg, #161B33 0%, #1A1734 60%, #1F1830 100%);
    --stage-3: linear-gradient(135deg, #201831 0%, #1A1734 55%, #161B33 100%);
    --stage-hero: radial-gradient(ellipse 90% 60% at 50% 0%, #3A2F7A 0%, rgba(58, 47, 122, 0) 70%), linear-gradient(180deg, #2A2358 0%, #1B1838 55%, #14132A 100%);
    --ink: #F3F2FA;
    --ink-2: #C7C4DE;
    --ink-3: #A3A0C0;
    --line: #26253F;
    --line-2: #363554;
    --line-3: #7C7A9C;
    --violet: #8B7CF6;
    --violet-2: #A596FF;
    --violet-soft: #26224C;
    --violet-line: #4B3F99;
    --on-violet: #15123A;
    --violet-text: #CFC6FF;
    --brand-accent: #8F7AFF;
    --mark-tile: #FFFFFF;
    --mark-dot: #0E1630;
    --mark-puls: #4B32BE;
    --red: #F08A7E;
    --green: #4ED99A;
    --selection: #3B2F8A;
    --band: #171629;
    --band-2: #201F38;
    --band-text: #F3F2FA;
    --band-muted: #B9B6D8;
    --band-line: rgba(246, 246, 250, .14);
    --band-accent: #B4A7FF;
    --foot: #0A0914;
    --foot-text: #C9C6E0;
    --foot-muted: #8C89AB;
    --foot-line: rgba(246, 245, 253, .12);
    --foot-mark: #1E1A44;
    --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23C9C6E0' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    --shadow-frame: 0 32px 64px -32px rgba(0, 0, 0, .7), 0 2px 10px rgba(0, 0, 0, .3);
    --shadow-pop: 0 24px 48px -20px rgba(0, 0, 0, .55), 0 2px 8px rgba(0, 0, 0, .25);
    --shadow-btn: 0 1px 2px rgba(0, 0, 0, .3);
    --k-bg: #15142A;
    --k-side: #1A1930;
    --k-panel: #1B1A2F;
    --k-card: #121128;
    --k-line: rgba(255, 255, 255, .08);
    --k-line-2: rgba(255, 255, 255, .16);
    --k-text: #F3F2FA;
    --k-muted: #A5A2C1;
    --k-dim: #8785A6;
    --k-violet: #8B7CF6;
    --k-violet-deep: #4B32BE;
    --k-violet-soft: rgba(139, 124, 246, .16);
    --k-violet-text: #CFC6FF;
    --k-violet-line: #5A4FB8;
    --k-green: #4ED99A;
    --k-green-bg: rgba(78, 217, 154, .14);
    --k-red: #F08A7E;
    --k-red-bg: rgba(240, 138, 126, .16);
    --k-amber: #E9C46A;
    --k-amber-bg: rgba(233, 196, 106, .16);
    --k-blue: #6BB0F5;
    --k-blue-bg: rgba(107, 176, 245, .14);
    --k-app-bg: #0F0E1A;
    --k-top-bg: #15142A;
    --k-chip-bg: rgba(255, 255, 255, .07);
    --k-bar-bg: rgba(255, 255, 255, .1);
    --k-seg-bg: rgba(255, 255, 255, .06);
    --k-grid: rgba(255, 255, 255, .08);
    --k-datum-bg: rgba(139, 124, 246, .3);
    --k-datum-text: #FFFFFF;
    --k-on-primary: #15123A;
    --k-blue-line: rgba(107, 176, 245, .45);
    --k-blue-text: #CFE4FB;
    --k-amber-line: rgba(233, 196, 106, .45);
    --k-amber-text: #F3E0A0;
    --k-violet-blk-line: rgba(139, 124, 246, .45);
    --k-avatar-bg: #2E2A5A;
    --k-avatar-text: #CFC6FF;
  }
  :root:not([data-theme="light"]) .k-avatar--teal { background: #1C4746; color: #8BE3D9; }
  :root:not([data-theme="light"]) .k-avatar--rose { background: #4A2340; color: #F4B2D6; }
  :root:not([data-theme="light"]) .k-avatar--amber { background: #47391A; color: #F3D994; }
  :root:not([data-theme="light"]) .k-avatar--blue { background: #1E3A5C; color: #A9D3FA; }
  :root:not([data-theme="light"]) .k-chart .area { opacity: .8; }
  :root:not([data-theme="light"]) .band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  :root:not([data-theme="light"]) .pillar__list a:hover { background: rgba(255, 255, 255, .06); }
  :root:not([data-theme="light"]) .steps__item::before { box-shadow: 0 0 0 6px var(--bg); }
}
:root[data-theme="dark"] {
    --bg: #0F0E1C;
    --bg-2: #171629;
    --bg-tint: #141327;
    --tint-1: #1C1934;
    --tint-2: #171B31;
    --tint-3: #1F1830;
    --stage: linear-gradient(135deg, #1D1839 0%, #171630 55%, #161B33 100%);
    --stage-2: linear-gradient(135deg, #161B33 0%, #1A1734 60%, #1F1830 100%);
    --stage-3: linear-gradient(135deg, #201831 0%, #1A1734 55%, #161B33 100%);
    --stage-hero: radial-gradient(ellipse 90% 60% at 50% 0%, #3A2F7A 0%, rgba(58, 47, 122, 0) 70%), linear-gradient(180deg, #2A2358 0%, #1B1838 55%, #14132A 100%);
    --ink: #F3F2FA;
    --ink-2: #C7C4DE;
    --ink-3: #A3A0C0;
    --line: #26253F;
    --line-2: #363554;
    --line-3: #7C7A9C;
    --violet: #8B7CF6;
    --violet-2: #A596FF;
    --violet-soft: #26224C;
    --violet-line: #4B3F99;
    --on-violet: #15123A;
    --violet-text: #CFC6FF;
    --brand-accent: #8F7AFF;
    --mark-tile: #FFFFFF;
    --mark-dot: #0E1630;
    --mark-puls: #4B32BE;
    --red: #F08A7E;
    --green: #4ED99A;
    --selection: #3B2F8A;
    --band: #171629;
    --band-2: #201F38;
    --band-text: #F3F2FA;
    --band-muted: #B9B6D8;
    --band-line: rgba(246, 246, 250, .14);
    --band-accent: #B4A7FF;
    --foot: #0A0914;
    --foot-text: #C9C6E0;
    --foot-muted: #8C89AB;
    --foot-line: rgba(246, 245, 253, .12);
    --foot-mark: #1E1A44;
    --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23C9C6E0' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    --shadow-frame: 0 32px 64px -32px rgba(0, 0, 0, .7), 0 2px 10px rgba(0, 0, 0, .3);
    --shadow-pop: 0 24px 48px -20px rgba(0, 0, 0, .55), 0 2px 8px rgba(0, 0, 0, .25);
    --shadow-btn: 0 1px 2px rgba(0, 0, 0, .3);
    --k-bg: #15142A;
    --k-side: #1A1930;
    --k-panel: #1B1A2F;
    --k-card: #121128;
    --k-line: rgba(255, 255, 255, .08);
    --k-line-2: rgba(255, 255, 255, .16);
    --k-text: #F3F2FA;
    --k-muted: #A5A2C1;
    --k-dim: #8785A6;
    --k-violet: #8B7CF6;
    --k-violet-deep: #4B32BE;
    --k-violet-soft: rgba(139, 124, 246, .16);
    --k-violet-text: #CFC6FF;
    --k-violet-line: #5A4FB8;
    --k-green: #4ED99A;
    --k-green-bg: rgba(78, 217, 154, .14);
    --k-red: #F08A7E;
    --k-red-bg: rgba(240, 138, 126, .16);
    --k-amber: #E9C46A;
    --k-amber-bg: rgba(233, 196, 106, .16);
    --k-blue: #6BB0F5;
    --k-blue-bg: rgba(107, 176, 245, .14);
    --k-app-bg: #0F0E1A;
    --k-top-bg: #15142A;
    --k-chip-bg: rgba(255, 255, 255, .07);
    --k-bar-bg: rgba(255, 255, 255, .1);
    --k-seg-bg: rgba(255, 255, 255, .06);
    --k-grid: rgba(255, 255, 255, .08);
    --k-datum-bg: rgba(139, 124, 246, .3);
    --k-datum-text: #FFFFFF;
    --k-on-primary: #15123A;
    --k-blue-line: rgba(107, 176, 245, .45);
    --k-blue-text: #CFE4FB;
    --k-amber-line: rgba(233, 196, 106, .45);
    --k-amber-text: #F3E0A0;
    --k-violet-blk-line: rgba(139, 124, 246, .45);
    --k-avatar-bg: #2E2A5A;
    --k-avatar-text: #CFC6FF;
}
:root[data-theme="dark"] .k-avatar--teal { background: #1C4746; color: #8BE3D9; }
:root[data-theme="dark"] .k-avatar--rose { background: #4A2340; color: #F4B2D6; }
:root[data-theme="dark"] .k-avatar--amber { background: #47391A; color: #F3D994; }
:root[data-theme="dark"] .k-avatar--blue { background: #1E3A5C; color: #A9D3FA; }
:root[data-theme="dark"] .k-chart .area { opacity: .8; }
:root[data-theme="dark"] .band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
:root[data-theme="dark"] .pillar__list a:hover { background: rgba(255, 255, 255, .06); }
