/* KneuraLens™ — Design System v3.0 | World-Class Animations */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* Responsive baseline — mobile/tablet/laptop/desktop, portrait & landscape */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html, body { max-width: 100%; overflow-x: hidden; }
img, svg, video, canvas { max-width: 100%; height: auto; }

/* Base font */
body { font-family: 'Inter', sans-serif; }
h1, h2, h3, h4, h5, h6,
p, span, a, div, li, td, th, label, button, input, select, textarea, nav, footer, header, section, article, aside {
  font-family: 'Inter', sans-serif;
}
code, pre, .mono { font-family: 'Courier New', monospace !important; }
.kn-logo-name { font-family: 'Inter', sans-serif !important; }

/* ── Font Awesome icon font guard — must come AFTER Inter rules ── */
.fa, .fas, .far, .fal, .fad, .fa-solid, .fa-regular, .fa-light,
i.fa, i.fas, i.far, i.fal, i.fad, i.fa-solid, i.fa-regular, i.fa-light {
  font-family: "Font Awesome 6 Free" !important;
  font-display: block;
}
.fab, .fa-brands, i.fab, i.fa-brands {
  font-family: "Font Awesome 6 Brands" !important;
  font-display: block;
}

/* ── Colorful icons ── */
/* Dark mode toggle */
#darkIcon.fa-moon  { color: #818CF8; }
#darkIcon.fa-sun   { color: #FBBF24; }

/* Bottom nav per-section colors */
.kn-bottom-nav-item[href="index.html"] i            { color: #3B82F6; }
.kn-bottom-nav-item[href="questionnaires.html"] i   { color: #00D4FF; }
.kn-bottom-nav-item[href="tasks.html"] i            { color: #10B981; }
.kn-bottom-nav-item[href="it-modernization.html"] i { color: #A78BFA; }
.kn-bottom-nav-item[href="dashboard.html"] i        { color: #F59E0B; }
.kn-bottom-nav-item.active[href="index.html"] i            { color: #2563EB; }
.kn-bottom-nav-item.active[href="questionnaires.html"] i   { color: #00B8E6; }
.kn-bottom-nav-item.active[href="tasks.html"] i            { color: #059669; }
.kn-bottom-nav-item.active[href="it-modernization.html"] i { color: #7C3AED; }
.kn-bottom-nav-item.active[href="dashboard.html"] i        { color: #D97706; }

/* Drawer nav per-section colors */
.kn-drawer-link[href="index.html"] i            { color: #3B82F6; }
.kn-drawer-link[href="questionnaires.html"] i   { color: #00D4FF; }
.kn-drawer-link[href="tasks.html"] i            { color: #10B981; }
.kn-drawer-link[href="it-modernization.html"] i { color: #A78BFA; }
.kn-drawer-link[href="dashboard.html"] i        { color: #F59E0B; }

/* Hamburger & close */
.kn-hamburger i { color: var(--kn-text-2); }
.kn-drawer-close i { color: var(--kn-text-3); }

/* ── Design Tokens ── */
:root {
  --kn-bg:      #F5F5F3;
  --kn-surface: #FFFFFF;
  --kn-border:  #E8E8E4;
  --kn-divider: #F0F0EC;
  --kn-text:    #1A1A1A;
  --kn-text-2:  #6C6C68;
  --kn-text-3:  #9A9A96;
  --kn-accent:  #1A1A1A;
  --kn-cyan:       #00F0FF;
  --kn-cyan-dim:   #00B8C9;
  --kn-cyan-ghost: rgba(0,240,255,.07);
  --kn-navy:       #204376;
  --kn-near-black: #0A141F;
  --kn-charcoal:   #141414;
  --kn-teal:       #468DA3;
  --kn-teal-ghost: #EAF5F9;
  --kn-teal-light: #5BAEC6;
  --kn-steel:      #9A9A96;
  --kn-smoke:      #F5F5F3;
  --kn-crimson:    #C5062A;
  --kn-electric:   #0A98D9;
  --kn-emerald:  #00B871;
  --kn-alert:    #E53E3E;
  --kn-amber:    #F6A623;
  --kn-font: 'Inter', sans-serif;
  --kn-mono: 'Courier New', monospace;
  --kn-logo-nav:    38px;
  --kn-logo-mobile: 28px;
  --kn-shadow-sm: 0 1px 3px rgba(0,0,0,.04);
  --kn-shadow-md: 0 2px 8px rgba(0,0,0,.06);
  --kn-shadow-lg: 0 4px 20px rgba(0,0,0,.08);
  --kn-shadow-xl: 0 8px 40px rgba(0,0,0,.12);
  --donut-track: #E8E8E4;
  /* Animation */
  --ease-spring: cubic-bezier(.16,1,.3,1);
  --ease-out: cubic-bezier(.22,1,.36,1);
  --ease-bounce: cubic-bezier(.34,1.56,.64,1);
}

html.dark {
  color-scheme: dark;
  --kn-bg:      #111110;
  --kn-surface: #1C1C1B;
  --kn-border:  #2E2E2C;
  --kn-divider: #242422;
  --kn-text:    #F0F0EE;
  --kn-text-2:  #8A8A86;
  --kn-text-3:  #5C5C58;
  --kn-accent:  #F0F0EE;
  --kn-smoke:   #1C1C1B;
  --kn-steel:   #8A8A86;
  --kn-teal-ghost: rgba(70,141,163,.08);
  --donut-track: #2E2E2C;
}

/* ══════════════════════════════════════
   WORLD-CLASS ANIMATION SYSTEM
══════════════════════════════════════ */

/* ── Core keyframes ── */
@keyframes reveal {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes revealLeft {
  from { opacity: 0; transform: translateX(-20px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes revealRight {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes revealScale {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes heroIn {
  from { opacity: 0; transform: translateY(40px); filter: blur(8px); }
  to   { opacity: 1; transform: translateY(0); filter: blur(0); }
}
@keyframes shimmer {
  from { background-position: -200% center; }
  to   { background-position:  200% center; }
}
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0,240,255,.3); }
  50% { box-shadow: 0 0 0 12px rgba(0,240,255,0); }
}
@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes badge-pop {
  0%   { transform: scale(0.5); opacity: 0; }
  65%  { transform: scale(1.12); }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes btn-shimmer {
  0%       { left: -100%; opacity: 0; }
  5%       { opacity: 1; }
  50%, 100% { left: 150%; opacity: 0; }
}
@keyframes blink {
  50% { opacity: 0; }
}
@keyframes count-up {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes navIn {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes drawerSlide {
  from { transform: translateX(100%); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}
@keyframes toastIn {
  from { opacity: 0; transform: translateX(20px) scale(0.95); }
  to   { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes progressFill {
  from { width: 0%; }
}
@keyframes scanline {
  from { transform: translateY(-100%); }
  to   { transform: translateY(100vh); }
}
@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ── Scroll-reveal system ── */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-spring), transform 0.7s var(--ease-spring);
}
[data-reveal="left"]  { transform: translateX(-24px); }
[data-reveal="right"] { transform: translateX(24px); }
[data-reveal="scale"] { transform: scale(0.9); opacity: 0; }
[data-reveal="fade"]  { transform: none; opacity: 0; }
[data-reveal].is-visible             { opacity: 1; transform: translateY(0); }
[data-reveal="left"].is-visible      { transform: translateX(0); }
[data-reveal="right"].is-visible     { transform: translateX(0); }
[data-reveal="scale"].is-visible     { transform: scale(1); }
[data-reveal="fade"].is-visible      { opacity: 1; }

/* Stagger delays for children */
[data-stagger] > *:nth-child(1) { transition-delay: 0ms; }
[data-stagger] > *:nth-child(2) { transition-delay: 70ms; }
[data-stagger] > *:nth-child(3) { transition-delay: 140ms; }
[data-stagger] > *:nth-child(4) { transition-delay: 210ms; }
[data-stagger] > *:nth-child(5) { transition-delay: 280ms; }
[data-stagger] > *:nth-child(6) { transition-delay: 350ms; }

/* ── Existing reveal class (backward compat) ── */
.reveal { animation: reveal .45s var(--ease-spring) both; }

/* ── Skeleton loader ── */
.skeleton {
  background: linear-gradient(90deg, var(--kn-divider) 25%, var(--kn-border) 50%, var(--kn-divider) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.6s ease-in-out infinite;
  border-radius: 4px;
}

/* ── Floating elements ── */
.float-anim { animation: float 4s ease-in-out infinite; }
.float-anim-slow { animation: float 6s ease-in-out infinite; }

/* ── Gradient text ── */
.gradient-text {
  background: linear-gradient(135deg, var(--kn-text) 0%, var(--kn-cyan-dim) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
html.dark .gradient-text {
  background: linear-gradient(135deg, #fff 0%, var(--kn-cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

/* ── Shimmer button ── */
.btn-shimmer {
  position: relative;
  overflow: hidden;
}
.btn-shimmer::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 55%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.22), transparent);
  transform: skewX(-15deg);
  animation: btn-shimmer 3.5s ease-in-out infinite;
}

/* ── Glow effects ── */
.glow-cyan {
  box-shadow: 0 0 24px rgba(0,240,255,.18), 0 0 48px rgba(0,240,255,.07);
}
.glow-on-hover { transition: box-shadow .3s ease; }
.glow-on-hover:hover { box-shadow: 0 0 20px rgba(0,240,255,.2); }

/* ── Card interactions ── */
.card-hover { transition: transform .22s var(--ease-spring), border-color .22s ease, box-shadow .22s ease; }
.card-hover:hover { transform: translateY(-3px); border-color: var(--kn-text-3) !important; box-shadow: var(--kn-shadow-lg); }

.card-lift { transition: transform .25s var(--ease-spring), box-shadow .25s ease; }
.card-lift:hover { transform: translateY(-5px); box-shadow: var(--kn-shadow-xl); }

/* ── Animated underline ── */
.link-line {
  position: relative;
  text-decoration: none;
}
.link-line::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0;
  width: 0; height: 1px;
  background: currentColor;
  transition: width .3s var(--ease-spring);
}
.link-line:hover::after { width: 100%; }

/* ── Progress bar animated ── */
.prog-track { background: var(--kn-border); border-radius: 99px; height: 5px; overflow: hidden; }
.prog-bar {
  height: 5px; border-radius: 99px;
  transition: width .6s var(--ease-spring);
  position: relative;
  overflow: hidden;
}
.prog-bar::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.4), transparent);
  animation: btn-shimmer 2s ease-in-out infinite;
}

/* ── Badge pop ── */
.badge-pop { animation: badge-pop 0.4s var(--ease-bounce) both; }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 99px; font-size: 11px; font-weight: 500; }

/* ── TM superscript (legacy compat) ── */
.sup-tm { font-size: .42em; vertical-align: super; line-height: 0; margin-left: 1px; font-weight: 700; }

/* ══════════════════════════════════════
   NAVIGATION
══════════════════════════════════════ */
.kn-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--kn-border);
  transition: box-shadow .25s ease, background .25s ease;
  animation: navIn .4s var(--ease-spring) both;
}
html.dark .kn-nav {
  background: rgba(28,28,27,.92);
}
.kn-nav.scrolled { box-shadow: 0 1px 20px rgba(0,0,0,.08); }
html.dark .kn-nav.scrolled { box-shadow: 0 1px 20px rgba(0,0,0,.35); }

/* Progress bar in nav */
.kn-nav-progress {
  position: absolute;
  bottom: 0; left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--kn-cyan-dim), var(--kn-cyan));
  transition: width .1s linear;
  border-radius: 0 2px 2px 0;
}

.kn-nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 28px);
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
@media (max-width: 768px)  { .kn-nav-inner { height: 70px; } }
@media (max-width: 480px)  { .kn-nav-inner { height: 62px; } }
@media (max-width: 360px)  { .kn-nav-inner { height: 56px; } }

/* ── Logo ── */
.kn-logo {
  display: flex;
  align-items: center;
  gap: 0;
  text-decoration: none;
  flex-shrink: 0;
  transition: opacity .2s ease;
}
.kn-logo:hover { opacity: .85; }
.kn-logo-img {
  height: 52px;
  width: auto;
  object-fit: contain;
  transition: transform .3s var(--ease-spring);
  display: block;
  /* PNG has 23.9% transparent padding on left; compensate so the K artwork
     aligns with the left edge of the KNEURALENS™ text below it.
     52px height → display width ≈ 51.5px → 23.9% × 51.5 ≈ 12px offset. */
  margin-left: -12px;
}
.kn-logo:hover .kn-logo-img { transform: scale(1.06); }
@media (max-width: 768px) { .kn-logo-img { height: 40px; margin-left: -10px; } }
@media (max-width: 480px) { .kn-logo-img { height: 34px; margin-left: -8px; } }
.kn-logo-text { line-height: 1; display: flex; flex-direction: column; gap: 2px; }

/* Brand name — KNEURALENS™ — H1-scale */
.kn-logo-name {
  font-size: 32px;
  font-weight: 900;
  color: var(--kn-text);
  letter-spacing: .06em;
  text-transform: uppercase;
  display: block;
  line-height: 1;
  white-space: nowrap;
}
/* ™ sits tight — no extra space */
.kn-logo-name .kn-tm {
  font-size: .42em;
  vertical-align: super;
  line-height: 0;
  letter-spacing: 0;
  margin-left: 1px;
  font-weight: 700;
}
@media (max-width: 768px) { .kn-logo-name { font-size: 24px; } }
@media (max-width: 480px) { .kn-logo-name { font-size: 20px; } }
@media (max-width: 360px) { .kn-logo-name { font-size: 17px; } }

/* Powered-by line */
.kn-logo-sub {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-top: 1px;
}
.kn-logo-sub-pre {
  font-size: 8.5px;
  font-weight: 400;
  letter-spacing: .04em;
  color: var(--kn-text-3);
  font-style: italic;
  font-family: var(--kn-font) !important;
  text-transform: none;
}
.kn-logo-sub-brand {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--kn-text-2);
  text-transform: uppercase;
  font-family: var(--kn-font) !important;
}
html.dark .kn-logo-sub-brand { color: var(--kn-text-3); }

/* ── Desktop nav links ── */
.kn-desktop-nav {
  display: none;
  align-items: center;
  gap: 2px;
}
@media (min-width: 768px) { .kn-desktop-nav { display: flex; } }

.kn-nav-link {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 11px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--kn-text-3);
  border-radius: 7px;
  text-decoration: none;
  transition: color .15s ease, background .15s ease;
  white-space: nowrap;
  position: relative;
}
.kn-nav-link:hover { color: var(--kn-text); background: rgba(0,0,0,.04); }
html.dark .kn-nav-link:hover { background: rgba(255,255,255,.05); }
.kn-nav-link.active { color: var(--kn-text); font-weight: 600; }
.kn-nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 8px; right: 8px;
  height: 2px;
  background: var(--kn-text);
  border-radius: 1px;
}

.kn-nav-controls { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.kn-dark-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--kn-bg);
  border: 1px solid var(--kn-border);
  display: flex; align-items: center; justify-content: center;
  color: var(--kn-text-3);
  cursor: pointer;
  transition: color .2s ease, background .2s ease, transform .2s var(--ease-spring);
  font-size: 13px;
}
.kn-dark-btn:hover { color: var(--kn-text); background: var(--kn-divider); transform: rotate(20deg); }

.kn-hamburger {
  display: flex;
  align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-radius: 7px;
  background: var(--kn-bg);
  border: 1px solid var(--kn-border);
  color: var(--kn-text-3);
  cursor: pointer;
  font-size: 13px;
  transition: color .15s, background .15s;
}
.kn-hamburger:hover { color: var(--kn-text); background: var(--kn-divider); }
@media (min-width: 768px) { .kn-hamburger { display: none; } }

.kn-nav-cta {
  display: none;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--kn-text);
  color: var(--kn-surface);
  font-size: 12.5px;
  font-weight: 700;
  border-radius: 7px;
  text-decoration: none;
  transition: opacity .15s, transform .2s var(--ease-spring);
  white-space: nowrap;
  letter-spacing: .01em;
}
.kn-nav-cta:hover { opacity: .85; transform: translateY(-1px); }
@media (min-width: 768px) { .kn-nav-cta { display: flex; } }

/* ── Mobile Drawer ── */
.kn-drawer-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 60;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity .25s ease;
}
.kn-drawer-overlay.open { display: block; opacity: 1; }

.kn-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(78vw, 300px);
  background: var(--kn-surface);
  border-left: 1px solid var(--kn-border);
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform .28s var(--ease-spring);
  z-index: 61;
  box-shadow: -8px 0 40px rgba(0,0,0,.12);
}
.kn-drawer-overlay.open .kn-drawer { transform: translateX(0); }

.kn-drawer-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--kn-border);
}
.kn-drawer-title { font-size: 13px; font-weight: 700; color: var(--kn-text); letter-spacing: .02em; }
.kn-drawer-close {
  width: 30px; height: 30px;
  border-radius: 6px;
  background: var(--kn-bg);
  border: 1px solid var(--kn-border);
  color: var(--kn-text-3);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 11px;
  transition: color .15s, background .15s;
}
.kn-drawer-close:hover { color: var(--kn-text); background: var(--kn-divider); }

.kn-drawer-links { flex: 1; padding: 12px; display: flex; flex-direction: column; gap: 2px; overflow-y: auto; }
.kn-drawer-link {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--kn-text-2);
  text-decoration: none;
  transition: background .15s, color .15s, transform .15s;
}
.kn-drawer-link:hover { background: var(--kn-bg); color: var(--kn-text); transform: translateX(2px); }
.kn-drawer-link.active { background: var(--kn-bg); color: var(--kn-text); font-weight: 600; }
.kn-drawer-link i { width: 16px; text-align: center; font-size: 12px; color: var(--kn-text-3); }

.kn-drawer-footer { padding: 16px; border-top: 1px solid var(--kn-border); }
.kn-drawer-cta {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 12px;
  background: var(--kn-text);
  color: var(--kn-surface);
  font-size: 13.5px; font-weight: 700;
  border-radius: 8px;
  text-decoration: none;
  transition: opacity .15s, transform .2s var(--ease-spring);
  letter-spacing: .01em;
}
.kn-drawer-cta:hover { opacity: .85; transform: translateY(-1px); }

/* ── Legacy nav compat ── */
.nav-active { color: var(--kn-text) !important; border-bottom: 2px solid var(--kn-text) !important; font-weight: 600 !important; }
.nav-inactive { color: var(--kn-text-3) !important; border-bottom: 2px solid transparent; }
.nav-inactive:hover { color: var(--kn-text) !important; }
.bottom-nav-active   { color: var(--kn-text) !important; }
.bottom-nav-inactive { color: var(--kn-text-3) !important; }

/* ══════════════════════════════════════
   BOTTOM NAV (mobile)
══════════════════════════════════════ */
.kn-bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 40;
  background: var(--kn-surface);
  border-top: 1px solid var(--kn-border);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 -4px 24px rgba(0,0,0,.07);
  display: flex;
}
.kn-bottom-nav-item {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px;
  padding: 10px 0;
  min-height: 56px;
  text-decoration: none;
  color: var(--kn-text-3);
  font-size: 9px; font-weight: 600;
  transition: color .2s ease, transform .2s var(--ease-spring);
  position: relative;
}
.kn-bottom-nav-item:active { transform: scale(.9); }
.kn-bottom-nav-item.active { color: var(--kn-text); }
.kn-bottom-nav-item i { font-size: 16px; }
.kn-bottom-nav-item .kn-nav-dot {
  position: absolute;
  top: 7px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--kn-alert);
  opacity: 0;
  transition: opacity .2s;
}
.kn-bottom-nav-item.active .kn-nav-dot { opacity: 1; }
/* Hide bottom nav in landscape on very short screens */
@media (max-height: 420px) and (orientation: landscape) {
  .kn-bottom-nav { display: none !important; }
}

/* ══════════════════════════════════════
   COMPONENTS
══════════════════════════════════════ */

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

/* Scrollbars */
.slim-scroll::-webkit-scrollbar { width: 4px; height: 4px; }
.slim-scroll::-webkit-scrollbar-track { background: transparent; }
.slim-scroll::-webkit-scrollbar-thumb { background: var(--kn-border); border-radius: 99px; }
.no-scrollbar { scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.no-scrollbar::-webkit-scrollbar { display: none; }

/* Ring / Donut */
.ring { width: 120px; height: 120px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.donut { width:100px;height:100px;border-radius:50%;display:flex;align-items:center;justify-content:center;position:relative; }
.donut-hole { width:66px;height:66px;border-radius:50%;position:absolute;display:flex;flex-direction:column;align-items:center;justify-content:center; }
.donut-container { width:100px;height:100px; }
@media (min-width:640px) {
  .donut { width:130px;height:130px; }
  .donut-hole { width:88px;height:88px; }
  .donut-container { width:130px;height:130px; }
}

/* Buttons */
.kn-btn-primary {
  background: var(--kn-text);
  color: var(--kn-surface);
  border: none;
  font-weight: 700;
  transition: opacity .15s, transform .2s var(--ease-spring);
  position: relative; overflow: hidden;
}
.kn-btn-primary:hover { opacity: .85; transform: translateY(-1px); }
.kn-btn-primary:active { transform: translateY(0); }
.kn-btn-accent {
  background: var(--kn-text);
  color: var(--kn-surface);
  font-weight: 700;
  border: none;
  transition: opacity .15s, transform .2s var(--ease-spring);
}
.kn-btn-accent:hover { opacity: .85; transform: translateY(-1px); }

/* Focus */
button:focus-visible { outline: 2px solid var(--kn-text); outline-offset: 2px; border-radius: 4px; }
input:focus, select:focus { outline: none; border-color: var(--kn-text) !important; }

/* Native pickers dark */
html.dark input[type="date"], html.dark select { color-scheme: dark; }
html.dark select { background-color: var(--kn-surface); color: var(--kn-text); }
html.dark input  { color: var(--kn-text); }

/* Phase disclosure */
.phase-panel { display: none; }
.phase-panel.open { display: flex; flex-wrap: wrap; gap: 6px; }
.phase-chevron { transition: transform .2s ease; display: inline-block; }

/* IT Modernization */
.itm-item { transition: background .15s; }
.itm-item:hover { background: var(--kn-divider); }
.itm-category-header { border-left: 3px solid var(--kn-text); }
.itm-progress-bar { background: var(--kn-text); }
.itm-progress-track { background: var(--kn-border); border-radius: 99px; height: 4px; overflow: hidden; }

/* Mobile nav legacy */
.mobile-nav-link { color: var(--kn-text-2); }
.mobile-nav-link:hover { background: var(--kn-bg); color: var(--kn-text); }
.mobile-nav-link.active { background: var(--kn-bg); color: var(--kn-text); font-weight: 600; }

/* Autosave toast */
.kn-toast {
  animation: toastIn 0.3s var(--ease-spring) both;
}

/* Stacked bar */
.stacked-bar { display:flex;height:8px;border-radius:4px;overflow:hidden;background:#f1f5f9; }
.stacked-bar .seg-complex { background:#f59e0b; }
.stacked-bar .seg-simple  { background:#6366f1; }

/* Priority row */
.priority-row { display:flex;align-items:flex-start;gap:10px;padding:10px 0;border-bottom:1px solid rgba(0,0,0,.04); }
.priority-row:last-child { border-bottom:none; }
.sk-row { display:flex;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid rgba(0,0,0,.04); }
.sk-row:last-child { border-bottom:none; }

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */

/* ── Responsive Breakpoints (full coverage) ── */

/* Landscape phones — relative nav to save vertical space */
@media (max-height: 480px) and (orientation: landscape) {
  .kn-nav { position: relative; }
  .kn-nav-inner { height: 52px; }
  .kn-logo-img { height: 26px; }
}

/* ══════════════════════════════════════
   ANIMATED WORKFLOW
══════════════════════════════════════ */
@keyframes flowPulse {
  0%, 100% { opacity: 1; transform: scaleX(1); }
  50% { opacity: .6; transform: scaleX(.97); }
}
@keyframes nodePop {
  0%   { transform: scale(0); opacity: 0; }
  60%  { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes lineGrow {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}
@keyframes arrowFade {
  from { opacity: 0; transform: translateX(-6px); }
  to   { opacity: 1; transform: translateX(0); }
}

.wf-track {
  display: flex;
  align-items: flex-start;
  gap: 0;
  position: relative;
  padding: 12px 0;
}
.wf-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .5s var(--ease-spring), transform .5s var(--ease-spring);
}
.wf-step.wf-visible { opacity: 1; transform: translateY(0); }
.wf-step:nth-child(1) { transition-delay: 0ms; }
.wf-step:nth-child(3) { transition-delay: 120ms; }
.wf-step:nth-child(5) { transition-delay: 240ms; }
.wf-step:nth-child(7) { transition-delay: 360ms; }

.wf-node {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--kn-surface);
  border: 1.5px solid var(--kn-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  color: var(--kn-text-2);
  margin-bottom: 16px;
  position: relative;
  z-index: 2;
  transition: border-color .3s ease, color .3s ease, box-shadow .3s ease, transform .3s var(--ease-spring);
}
.wf-step.wf-active .wf-node {
  border-color: var(--kn-text);
  color: var(--kn-text);
  box-shadow: 0 0 0 6px var(--kn-bg);
}
.wf-step.wf-done .wf-node {
  background: var(--kn-text);
  color: var(--kn-surface);
  border-color: var(--kn-text);
}
.wf-step:hover .wf-node { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.1); }

.wf-num {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--kn-text-3);
  margin-bottom: 6px;
}
.wf-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--kn-text);
  margin-bottom: 6px;
  letter-spacing: -.01em;
}
.wf-desc {
  font-size: 11.5px;
  color: var(--kn-text-3);
  line-height: 1.6;
  max-width: 140px;
}
.wf-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 10px;
  font-size: 11px;
  font-weight: 700;
  color: var(--kn-text);
  text-decoration: none;
  letter-spacing: .02em;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .3s ease, transform .3s ease, color .2s;
}
.wf-step.wf-visible .wf-link { opacity: 1; transform: translateY(0); transition-delay: .3s; }
.wf-link:hover { color: var(--kn-cyan-dim); }

.wf-connector {
  flex: 0 0 auto;
  width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 26px;
  position: relative;
  overflow: hidden;
}
.wf-connector::before {
  content: '';
  display: block;
  width: 100%;
  height: 1px;
  background: var(--kn-border);
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform .5s var(--ease-out);
}
.wf-connector.wf-visible::before { transform: scaleX(1); }
.wf-connector::after {
  content: '›';
  position: absolute;
  font-size: 14px;
  color: var(--kn-text-3);
  opacity: 0;
  transition: opacity .3s ease .4s;
}
.wf-connector.wf-visible::after { opacity: 1; }

@media (max-width: 700px) {
  .wf-track {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .wf-step {
    flex-direction: row;
    text-align: left;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 0;
  }
  .wf-node {
    width: 44px; height: 44px;
    flex-shrink: 0;
    margin-bottom: 0;
    font-size: 16px;
  }
  .wf-desc { max-width: none; }
  .wf-connector {
    width: 44px;
    height: 28px;
    padding-top: 0;
    align-items: flex-start;
    padding-left: 20px;
  }
  .wf-connector::before {
    width: 1px;
    height: 100%;
    transform-origin: top center;
  }
  .wf-connector::after { content: ''; }
}

/* ══════════════════════════════════════
   DASHBOARD — ULTRA MINIMAL
══════════════════════════════════════ */
.db-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 48px 32px 112px;
}
@media (min-width: 1024px) { .db-wrap { padding: 64px 48px 80px; } }
@media (max-width: 480px) { .db-wrap { padding: 32px 20px 96px; } }

.db-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.db-company-name {
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 800;
  letter-spacing: -.025em;
  color: var(--kn-text);
  line-height: 1.1;
}
.db-meta-line {
  font-size: 12px;
  color: var(--kn-text-3);
  margin-top: 4px;
  font-weight: 400;
}
.db-download-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  background: var(--kn-text);
  color: var(--kn-surface);
  font-size: 12.5px;
  font-weight: 700;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: opacity .15s, transform .2s var(--ease-spring);
  white-space: nowrap;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
.db-download-btn:hover { opacity: .85; transform: translateY(-1px); }

/* Score bar */
.db-score-section {
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--kn-border);
}
.db-score-status {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--kn-text-3);
  margin-bottom: 10px;
}
.db-score-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
}
.db-score-number {
  font-size: clamp(40px, 7vw, 64px);
  font-weight: 200;
  letter-spacing: -.04em;
  color: var(--kn-text);
  line-height: 1;
  flex-shrink: 0;
  width: 120px;
}
.db-score-track-wrap { flex: 1; }
.db-score-track {
  height: 6px;
  background: var(--kn-border);
  border-radius: 3px;
  overflow: hidden;
}
.db-score-bar {
  height: 100%;
  border-radius: 3px;
  transition: width 1.2s var(--ease-spring);
  width: 0%;
}
.db-score-caption {
  font-size: 12px;
  color: var(--kn-text-2);
  margin-top: 8px;
  line-height: 1.6;
}

/* Stats strip */
.db-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--kn-border);
  border: 1px solid var(--kn-border);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 40px;
}
.db-stat {
  background: var(--kn-surface);
  padding: 20px 16px;
  text-align: center;
}
.db-stat-val {
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 200;
  letter-spacing: -.03em;
  color: var(--kn-text);
  line-height: 1;
}
.db-stat-label {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--kn-text-3);
  margin-top: 5px;
}
@media (max-width: 580px) {
  .db-stats { grid-template-columns: repeat(2, 1fr); }
}

/* Section */
.db-section {
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--kn-border);
}
.db-section:last-of-type { border-bottom: none; }
.db-section-eyebrow {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--kn-text-3);
  margin-bottom: 6px;
}
.db-section-title {
  font-size: clamp(17px, 3vw, 22px);
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--kn-text);
  margin-bottom: 6px;
  line-height: 1.2;
}
.db-section-sub {
  font-size: 13px;
  color: var(--kn-text-2);
  line-height: 1.7;
  margin-bottom: 24px;
  max-width: 600px;
}

/* Framework rows */
.db-fw-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--kn-divider);
}
.db-fw-row:last-child { border-bottom: none; }
.db-fw-name {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--kn-text);
  min-width: 160px;
  flex-shrink: 0;
}
.db-fw-bar-wrap {
  flex: 1;
  height: 4px;
  background: var(--kn-border);
  border-radius: 2px;
  overflow: hidden;
}
.db-fw-bar {
  height: 100%;
  border-radius: 2px;
  transition: width 1s var(--ease-spring) .3s;
  width: 0;
}
.db-fw-pct {
  font-size: 11px;
  font-weight: 700;
  color: var(--kn-text-2);
  width: 36px;
  text-align: right;
  flex-shrink: 0;
}
.db-fw-badge {
  font-size: 9px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  flex-shrink: 0;
  letter-spacing: .04em;
}
.db-fw-active { background: rgba(0,184,113,.12); color: #00875A; }
.db-fw-inactive { background: var(--kn-divider); color: var(--kn-text-3); }
html.dark .db-fw-active { background: rgba(0,184,113,.18); color: #00B871; }

/* Gap rows */
.db-gap-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--kn-divider);
}
.db-gap-item:last-child { border-bottom: none; }
.db-gap-rank {
  font-size: 10px;
  font-weight: 800;
  color: var(--kn-text-3);
  width: 20px;
  flex-shrink: 0;
  padding-top: 2px;
  text-align: right;
}
.db-gap-body { flex: 1; min-width: 0; }
.db-gap-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--kn-text);
  line-height: 1.4;
  margin-bottom: 4px;
}
.db-gap-meta {
  font-size: 11px;
  color: var(--kn-text-3);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.db-badge-complex {
  background: rgba(245,158,11,.12);
  color: #D97706;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: .04em;
}
.db-badge-simple {
  background: rgba(99,102,241,.1);
  color: #6366F1;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: .04em;
}
html.dark .db-badge-complex { background: rgba(245,158,11,.18); color: #F59E0B; }
html.dark .db-badge-simple  { background: rgba(99,102,241,.18); color: #818CF8; }

/* IT Mod grid */
.db-itm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1px;
  background: var(--kn-border);
  border: 1px solid var(--kn-border);
  border-radius: 8px;
  overflow: hidden;
}
.db-itm-cell {
  background: var(--kn-surface);
  padding: 16px;
}
.db-itm-label { font-size: 11px; font-weight: 600; color: var(--kn-text-2); margin-bottom: 8px; }
.db-itm-pct { font-size: 18px; font-weight: 200; color: var(--kn-text); letter-spacing: -.02em; }
.db-itm-bar-wrap { height: 3px; background: var(--kn-border); border-radius: 2px; overflow: hidden; margin-top: 8px; }
.db-itm-bar { height: 100%; border-radius: 2px; transition: width 1s var(--ease-spring) .4s; width: 0; }

/* Action plan */
.db-action-week {
  margin-bottom: 24px;
}
.db-action-week-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--kn-text-3);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.db-action-week-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--kn-border);
}
.db-action-task {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  font-size: 12.5px;
  color: var(--kn-text-2);
  border-bottom: 1px solid var(--kn-divider);
}
.db-action-task:last-child { border-bottom: none; }
.db-action-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Response dist bars */
.db-dist-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.db-dist-label { font-size: 11.5px; color: var(--kn-text-2); width: 160px; flex-shrink: 0; }
.db-dist-bar-wrap { flex: 1; height: 4px; background: var(--kn-border); border-radius: 2px; overflow: hidden; }
.db-dist-bar { height: 100%; border-radius: 2px; transition: width 1s var(--ease-spring) .2s; width: 0; }
.db-dist-count { font-size: 11px; font-weight: 700; color: var(--kn-text-2); width: 40px; text-align: right; flex-shrink: 0; }

/* Empty state */
.db-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 80px 20px;
  text-align: center;
}
.db-empty-icon { font-size: 36px; opacity: .2; color: var(--kn-text); }
.db-empty-title { font-size: 16px; font-weight: 600; color: var(--kn-text-2); }
.db-empty-sub { font-size: 13px; color: var(--kn-text-3); }
.db-empty-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background: var(--kn-text);
  color: var(--kn-surface);
  font-size: 12.5px;
  font-weight: 700;
  border-radius: 6px;
  text-decoration: none;
  transition: opacity .15s;
}
.db-empty-cta:hover { opacity: .85; }

/* Tablet portrait 640–1023 */
@media (min-width: 640px) and (max-width: 1023px) {
  .kn-nav-inner { height: 76px; }
}

/* Large desktop 1440+ */
@media (min-width: 1440px) {
  .kn-nav-inner { max-width: 1100px; }
  .kn-logo-name { font-size: 34px; }
}

/* Ultra-wide 1920+ — keep aligned with 1100px content container */
@media (min-width: 1920px) {
  .kn-nav-inner { max-width: 1100px; }
}

/* ── Logo-only nav: centre-align image when no text present ── */
.kn-logo-img-only { margin: 0; }

/* ── Mobile bottom-nav body offset ──
   Prevents bottom nav from overlapping page content on mobile.
   Applied automatically via body class on pages that show bottom nav. */
@media (max-width: 767px) {
  body { padding-bottom: calc(56px + env(safe-area-inset-bottom, 8px)); }
  .site-footer { padding-bottom: calc(72px + env(safe-area-inset-bottom, 8px)) !important; }
}

/* ── Small phone content padding ── */
@media (max-width: 420px) {
  .kn-inner-pad { padding-left: 16px !important; padding-right: 16px !important; }
}

/* ── Responsive section containers ── */
.kn-section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 28px);
}
.kn-section-inner-md {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 28px);
}

/* ── Fix: hero brand sub on landscape phone ── */
@media (max-height: 500px) and (orientation: landscape) {
  .hero-sub { display: none; }
  .hero-cta-row { margin-bottom: 20px; }
}

/* ══════════════════════════════════════
   HERO BRAND DISPLAY
══════════════════════════════════════ */
.hero-brand-name {
  font-size: clamp(32px, 6vw, 72px);
  font-weight: 900;
  letter-spacing: -.03em;
  line-height: 1;
  color: var(--kn-text);
  display: block;
}
.hero-brand-name sup {
  font-size: .34em;
  vertical-align: super;
  line-height: 0;
  margin-left: 2px;
  font-weight: 700;
}
.hero-brand-sub {
  font-size: clamp(9px, 1vw, 12px);
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--kn-text-3);
  margin-top: 6px;
  display: block;
}

/* ══════════════════════════════════════
   PROCESS PIPELINE (workflow)
══════════════════════════════════════ */
.pipe {
  position: relative;
}

/* Horizontal track line — centered at node midpoint (48px = 96px node / 2) */
.pipe-rail {
  position: absolute;
  top: 48px;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  background: var(--kn-border);
  border-radius: 1px;
  z-index: 0;
  overflow: hidden;
}
.pipe-rail-fill {
  position: absolute;
  top: 0; left: 0;
  height: 100%;
  width: 0%;
  background: var(--kn-text);
  border-radius: 1px;
  transition: width 1.8s var(--ease-out) .35s;
}

/* Steps grid — 4 equal columns */
.pipe-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  position: relative;
  z-index: 2;
  gap: 8px;
}

/* Individual step */
.pipe-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .55s var(--ease-spring), transform .55s var(--ease-spring);
}
.pipe-step.pipe-visible { opacity: 1; transform: translateY(0); }
.pipe-step:nth-child(1) { transition-delay: 0ms; }
.pipe-step:nth-child(2) { transition-delay: 180ms; }
.pipe-step:nth-child(3) { transition-delay: 360ms; }
.pipe-step:nth-child(4) { transition-delay: 540ms; }

/* Circular icon node */
.pipe-node {
  width: 96px; height: 96px;
  border-radius: 50%;
  background: var(--kn-surface);
  border: 1.5px solid var(--kn-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  color: var(--kn-text-3);
  margin-bottom: 24px;
  position: relative;
  z-index: 3;
  transform: scale(.6);
  transition:
    transform .5s var(--ease-bounce),
    border-color .4s ease,
    background .4s ease,
    color .4s ease,
    box-shadow .4s ease;
}
.pipe-step.pipe-visible .pipe-node { transform: scale(1); }
.pipe-step.pipe-done .pipe-node {
  background: var(--kn-text);
  color: var(--kn-surface);
  border-color: var(--kn-text);
  box-shadow: 0 0 0 6px var(--kn-bg), 0 0 0 8px rgba(0,0,0,.06);
}
.pipe-step:hover .pipe-node {
  transform: scale(1.07);
  box-shadow: 0 10px 32px rgba(0,0,0,.1);
  border-color: var(--kn-text-2);
}
.pipe-step.pipe-done:hover .pipe-node { transform: scale(1.07); box-shadow: 0 10px 32px rgba(0,0,0,.18), 0 0 0 6px var(--kn-bg); }

/* Step label block */
.pipe-step-num {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--kn-text-3);
  margin-bottom: 5px;
}
.pipe-step-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--kn-text);
  margin-bottom: 8px;
  letter-spacing: -.01em;
}
.pipe-step-desc {
  font-size: 12px;
  color: var(--kn-text-3);
  line-height: 1.65;
  max-width: 160px;
}
.pipe-step-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 16px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--kn-text);
  text-decoration: none;
  letter-spacing: .02em;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity .4s ease .6s, transform .4s ease .6s, color .2s;
  border-bottom: 1px solid transparent;
  transition: opacity .4s ease .6s, transform .4s ease .6s, color .2s, border-color .2s;
}
.pipe-step.pipe-visible .pipe-step-link { opacity: 1; transform: translateY(0); }
.pipe-step-link:hover { color: var(--kn-cyan-dim); border-color: var(--kn-cyan-dim); }

/* Mobile: vertical timeline */
@media (max-width: 700px) {
  .pipe-rail { display: none; }
  .pipe-steps {
    grid-template-columns: 1fr;
    gap: 0;
    margin-left: 36px;
  }
  .pipe-step {
    flex-direction: row;
    text-align: left;
    align-items: flex-start;
    gap: 20px;
    padding-bottom: 32px;
    border-left: 2px solid var(--kn-border);
    padding-left: 24px;
    position: relative;
  }
  .pipe-step:last-child { border-left-color: transparent; padding-bottom: 0; }
  .pipe-node {
    width: 68px; height: 68px;
    font-size: 20px;
    flex-shrink: 0;
    margin-bottom: 0;
    margin-left: -56px;
    position: relative;
    z-index: 2;
  }
  .pipe-step-desc { max-width: none; }
}
