/* KITZLABS V4 – unified business navigation & motion, test-only, 2026-11-22.
   One header across all routes. One lightweight IntersectionObserver. No glowing frames. */
:root{--v4-ink:#f0f6ff;--v4-muted:#adc3dc;--v4-ease:cubic-bezier(.22,.73,.22,1);--v4-header-h:76px}
html{scroll-padding-top:96px}
html body{font-family:Sora,Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
html body h1,html body h2,html body h3,html body h4{font-weight:500!important;letter-spacing:-.032em}
html body strong,html body b{font-weight:550!important}
html body .kitz-header-spacer{display:none!important}
.v4-header-spacer{height:var(--v4-header-h);pointer-events:none}
#site-v4-header,#site-v4-header *{box-sizing:border-box}
#site-v4-header{
  height:var(--v4-header-h);position:fixed;inset:0 0 auto;z-index:10050;
  width:100%;border:0!important;box-shadow:none!important;outline:0!important;
  background:transparent!important;background-color:transparent!important;
  -webkit-backdrop-filter:none!important;backdrop-filter:none!important;
  transition:height .32s var(--v4-ease)!important;will-change:height;
  color:var(--v4-ink);font-family:Sora,Inter,system-ui,sans-serif;
}
#site-v4-header.v4-scrolled{height:57px}
#site-v4-header .v4-header-inner{width:min(1360px,calc(100% - 52px));height:100%;
  margin:auto;display:flex;align-items:center;gap:clamp(14px,2.4vw,38px);min-width:0}
#site-v4-header .v4-brand{display:inline-flex;align-items:center;gap:10px;white-space:nowrap;
  flex:0 0 auto;color:#f3f7fe!important;text-decoration:none!important;
  font:500 14px/1.1 Sora,Inter,sans-serif!important;letter-spacing:-.035em;
  background:none!important;border:0!important;border-radius:0!important;box-shadow:none!important;
  padding:0!important;text-shadow:none!important}
#site-v4-header .v4-brand-image{width:35px;height:35px;object-fit:contain;
  transition:width .32s var(--v4-ease),height .32s var(--v4-ease)}
#site-v4-header.v4-scrolled .v4-brand-image{width:28px;height:28px}
#site-v4-header .v4-navigation{display:flex;gap:clamp(16px,2vw,32px);align-items:center;
  justify-content:center;flex:1 1 auto;min-width:0}
#site-v4-header .v4-nav-link{position:relative;white-space:nowrap;display:inline-flex;align-items:center;
  color:#d4e2f2!important;background:none!important;text-shadow:0 1px 8px rgba(3,12,25,.37);
  border:0!important;padding:8px 0!important;box-shadow:none!important;
  font:400 12px/1.2 Sora,Inter,sans-serif!important;text-decoration:none!important;
  transition:color .25s ease!important}
#site-v4-header .v4-nav-link:after{content:"";position:absolute;bottom:0;left:0;width:100%;height:1px;
 background:#a1c4f2;transform:scaleX(0);transform-origin:left;transition:transform .28s var(--v4-ease)}
#site-v4-header .v4-nav-link:hover,#site-v4-header .v4-nav-link:focus-visible,
#site-v4-header .v4-nav-link[aria-current="page"]{color:#fff!important}
#site-v4-header .v4-nav-link:hover:after,#site-v4-header .v4-nav-link:focus-visible:after,
#site-v4-header .v4-nav-link[aria-current="page"]:after{transform:scaleX(1)}
#site-v4-header .v4-header-right{display:flex;align-items:center;gap:clamp(10px,1.4vw,20px);flex:0 0 auto}
#site-v4-header .v4-languages{display:flex;align-items:center;gap:10px}
#site-v4-header .v4-languages a{font:400 10px/1.5 Sora,Inter,sans-serif!important;text-decoration:none!important;
  color:#a4b9d0!important;white-space:nowrap;border:0!important;background:none!important;padding:4px 0!important}
#site-v4-header .v4-languages a[aria-current="page"]{color:#f4f8ff!important;
  box-shadow:inset 0 -1px 0 #b1d4ff!important}
#site-v4-header .v4-primary-action{display:inline-flex;align-items:center;justify-content:center;
  gap:12px;padding:0 18px!important;min-height:40px;white-space:nowrap;
  background:linear-gradient(105deg,#b8daff,#e4ecfa)!important;color:#0a1a2c!important;
  border:0!important;border-radius:999px!important;box-shadow:none!important;
  text-decoration:none!important;font:500 11px/1.2 Sora,Inter,sans-serif!important;
  transition:background .24s ease,transform .24s var(--v4-ease)!important}
#site-v4-header .v4-primary-action:hover{background:#f0f6fe!important;transform:translateY(-1px)}
#site-v4-header .v4-menu-toggle{display:none;width:42px;height:42px;flex:0 0 42px;
  padding:0;border:0!important;border-radius:10px!important;background:transparent!important;
  box-shadow:none!important;color:#e6f0fb!important;cursor:pointer;
  align-items:center;justify-content:center;flex-direction:column;gap:5px}
#site-v4-header .v4-menu-toggle span{width:21px;height:1px;background:#e6f0fb;
  transition:transform .25s ease,opacity .25s ease}
#site-v4-header .v4-menu-toggle[aria-expanded=true] span:first-child{transform:translateY(3px) rotate(45deg)}
#site-v4-header .v4-menu-toggle[aria-expanded=true] span:last-child{transform:translateY(-3px) rotate(-45deg)}
/* Under-header fade only. The navigation itself stays transparent and does not fade. */
body.v4-scrolled::before{opacity:1}
body::before{content:"";position:fixed;z-index:10040;top:0;left:0;right:0;height:114px;
  pointer-events:none;opacity:0;transition:opacity .26s ease;
  background:linear-gradient(to bottom,rgba(6,17,33,.98) 0%,rgba(6,17,33,.93) 40%,rgba(6,17,33,.45) 70%,rgba(6,17,33,0) 100%)}
/* No frames behind editorial content: use tonal contrast, whitespace and typography. */
main section,main article,main figure,
main .v3-card,main .v3-home-strip,main .v3-cta,
main [class*="card"],main [class*="Card"],main [class*="tile"],main [class*="Tile"],
main [class*="panel"],main [class*="Panel"],main .bs-step,
main #kl-business-flow,main .hero-v6,main .v7-solutions,
main .kl4-service,main .kl9-card{
  border:none!important;outline:none!important;box-shadow:none!important;
}
/* Preserve input, tab focus and form borders for usability. */
main :is(a,button,input,select,textarea,summary):focus-visible{outline:2px solid #9bcaff!important;outline-offset:3px}
main .v3-card,main .v3-home-strip,main .v3-cta{background:linear-gradient(145deg,rgba(15,35,59,.9),rgba(9,25,45,.86))!important}
main [class*="card"], main [class*="tile"],main [class*="panel"]{transition:transform .4s var(--v4-ease), background-color .35s ease}
@media(hover:hover) and (prefers-reduced-motion:no-preference){
 main a.v3-card:hover,main a[class*="card"]:hover,main a[class*="tile"]:hover{transform:translateY(-3px)}
}
/* On-scroll fade-in / fade-out: applies to individual content blocks, never header or nav. */
@media(prefers-reduced-motion:no-preference){
 html.v4-motion-ready .v4-reveal:not(.v4-visible):not(:focus-within){opacity:0!important;
   transform:translate3d(0,18px,0);transition:opacity .6s var(--v4-ease),transform .75s var(--v4-ease)!important;
   transition-delay:0ms!important}
 html.v4-motion-ready .v4-reveal.v4-exit-top:not(:focus-within){opacity:0!important;
   transform:translate3d(0,-12px,0)!important}
 html.v4-motion-ready .v4-reveal.v4-visible,
 html.v4-motion-ready .v4-reveal:focus-within{opacity:1!important;transform:translate3d(0,0,0)!important;
   transition:opacity .66s var(--v4-ease),transform .77s var(--v4-ease)!important;
   transition-delay:var(--v4-delay,0ms)!important}
}
@media(max-width:1200px){
 #site-v4-header .v4-header-inner{width:calc(100% - 36px)}
 #site-v4-header .v4-navigation{gap:15px}
 #site-v4-header .v4-header-right{gap:12px}
}
@media(max-width:1020px){
 #site-v4-header .v4-menu-toggle{display:inline-flex}
 #site-v4-header .v4-navigation{display:none;position:absolute;left:14px;right:14px;top:calc(100% + 5px);
   background:#0a1b30!important;padding:19px 22px!important;border:0!important;border-radius:14px!important;
   box-shadow:0 18px 34px rgba(2,9,19,.25)!important;
   flex-direction:column;align-items:stretch;gap:0;max-height:calc(100vh - 96px);overflow-y:auto}
 #site-v4-header .v4-navigation.is-open{display:flex}
 #site-v4-header .v4-nav-link{font-size:14px!important;min-height:44px}
 #site-v4-header .v4-header-right{margin-left:auto}
 #site-v4-header .v4-languages{gap:9px}
}
@media(max-width:540px){
 :root{--v4-header-h:68px}
 #site-v4-header.v4-scrolled{height:53px}
 #site-v4-header .v4-header-inner{width:calc(100% - 28px);gap:9px}
 #site-v4-header .v4-brand{font-size:12px!important;gap:7px}
 #site-v4-header .v4-brand-image{width:32px;height:32px}
 #site-v4-header.v4-scrolled .v4-brand-image{width:26px;height:26px}
 #site-v4-header .v4-languages{display:none}
 #site-v4-header .v4-primary-action{min-height:34px;padding:0 13px!important;font-size:10px!important}
 #site-v4-header .v4-menu-toggle{width:36px;flex-basis:36px}
 #site-v4-header .v4-navigation .v4-mobile-languages{display:flex;gap:20px;padding-top:12px}
}
@media(min-width:541px){#site-v4-header .v4-mobile-languages{display:none}}
@media(prefers-reduced-motion:reduce){
 html .v4-reveal{opacity:1!important;transform:none!important;transition:none!important}
 #site-v4-header *, #site-v4-header{animation:none!important;transition:none!important}
 body::before{transition:none!important}
}
@media print{
 #site-v4-header{position:relative;height:auto}
 .v4-header-spacer{display:none}
 body::before{display:none}
 html .v4-reveal{opacity:1!important;transform:none!important}
}

/* Harden against the six product pages' generic "header" element styles. */
header#site-v4-header{position:fixed!important;top:0!important;left:0!important;right:0!important;
  width:100%!important;max-width:none!important;margin:0!important;padding:0!important;
  display:block!important;overflow:visible!important;
  transform:none!important;filter:none!important;z-index:10050!important}
header#site-v4-header .v4-header-inner{padding:0!important}
header#site-v4-header .v4-navigation{max-width:none!important}
header#site-v4-header .v4-header-right .v4-primary-action{max-width:max-content!important}
@media(max-width:1020px){
 header#site-v4-header .v4-navigation{max-width:none!important}
}

/* Local user preference: explicit opt-in can enable scroll motion on systems that request reduced motion. */
@media(prefers-reduced-motion:reduce){
 html.v4-force-motion.v4-motion-ready .v4-reveal:not(.v4-visible):not(:focus-within){
  opacity:0!important;transform:translate3d(0,18px,0)!important;
  transition:opacity .6s var(--v4-ease),transform .75s var(--v4-ease)!important}
 html.v4-force-motion.v4-motion-ready .v4-reveal.v4-exit-top:not(:focus-within){
  opacity:0!important;transform:translate3d(0,-12px,0)!important}
 html.v4-force-motion.v4-motion-ready .v4-reveal.v4-visible,
 html.v4-force-motion.v4-motion-ready .v4-reveal:focus-within{
  opacity:1!important;transform:translate3d(0,0,0)!important;
  transition:opacity .66s var(--v4-ease),transform .77s var(--v4-ease)!important;
  transition-delay:var(--v4-delay,0ms)!important}
}
html.v4-no-motion .v4-reveal{opacity:1!important;transform:none!important;transition:none!important}
.v4-motion-control{
 display:block;margin:20px auto 5px;padding:8px 12px!important;
 background:transparent!important;color:#9fb6cf!important;
 border:0!important;border-radius:0!important;box-shadow:none!important;
 font:400 11px/1.4 Sora,Inter,sans-serif!important;text-decoration:underline;
 text-decoration-color:rgba(161,195,228,.45);text-underline-offset:5px;cursor:pointer}
.v4-motion-control:hover{color:#e9f4ff!important}
.v4-motion-control:focus-visible{outline:2px solid #a3c9f6!important;outline-offset:3px}

/* Visual refinements after browser QA: no card outlines, predictable tablet typography. */
main.hero,main#main.hero,main.hero-copy,main .hero-copy,main .v3-quicklinks>a,
main .v7-solution-group,main .kl9-footer-top,
main .kl4-services-grid>a,main .v3-actions>a:not(.v3-button){
 border:0!important;box-shadow:none!important;outline:none!important}
main .v3-quicklinks>a{background:rgba(21,46,78,.48)!important;border-radius:14px!important}
main .v3-quicklinks>a:hover{background:rgba(31,61,94,.72)!important}
@media(max-width:960px){
 body:not(.v3-site) main section.hero-section > .container{
   padding-inline:clamp(18px,4vw,38px)!important;
   box-sizing:border-box!important}
 .roi-page main.roi-main .roi-hero h1{
   font-size:clamp(30px,5.1vw,60px)!important;
   overflow-wrap:anywhere!important;max-width:100%!important}
}
@media(max-width:540px){
 body:not(.v3-site) main section.hero-section > .container{padding-inline:18px!important}
 .roi-page main.roi-main .roi-hero h1{font-size:clamp(26px,7vw,38px)!important}
}

/* Consistent edge-safe spacing on legacy article headers at every breakpoint. */
body:not(.v3-site) main section.hero-section > .container{
  padding-inline:clamp(18px,3vw,44px)!important;
  box-sizing:border-box!important;
}
