/* Cognito Tech Media V18 — visual QA fixes. Loaded last to resolve V10–V17 style conflicts.
   Palette: ink #102047, mint #24b6ac, blue #2254d7, lavender #ebeaff, coral #ff7848. */
.ctm-v18{--ctm18-ink:#142144;--ctm18-muted:#526783;--ctm18-blue:#2456d7;--ctm18-teal:#0fa99f;--ctm18-card:#faffff;--ctm18-stroke:#dce8f9;color:var(--ctm18-ink)}
.ctm-v18 *, .ctm-v18 *::before,.ctm-v18 *::after{box-sizing:border-box}
.ctm-v18 img{max-width:100%;height:auto}
.ctm-v18 .ctm17-nav details.ctm17-dropdown:not([open])>.ctm17-mega-panel,.ctm-v18 .ctm17-nav details.ctm17-dropdown:not([open])>.ctm17-small-panel{display:none!important}
/* Mega menu stays on top of the page and stays opaque when opened. */
.ctm-v18 .site-header{z-index:1200!important;isolation:isolate;overflow:visible!important}
.ctm-v18 .main-nav.ctm17-nav{z-index:5}
.ctm-v18 .ctm17-explore{position:static}
.ctm-v18 .ctm17-mega-panel{top:calc(100% + 2px)!important;left:16px!important;right:16px!important;width:auto!important;padding:27px clamp(17px,2vw,31px) 23px!important;background:#f7fbff!important;opacity:1!important;border:1px solid #dfeafb!important;border-radius:22px!important;box-shadow:0 25px 75px rgba(17,37,81,.25)!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;z-index:1205!important;color:#182b4d!important;max-height:min(710px,calc(100dvh - 115px))!important;overflow-y:auto;overscroll-behavior:contain}
.ctm-v18 .ctm17-mega-header{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:20px;border-bottom:1px solid #d9e6f6}
.ctm-v18 .ctm17-mega-header h2,.ctm-v18 .ctm17-mega-header h2 *{color:#142449!important}
.ctm-v18 .ctm17-mega-header p{color:#59708d!important}
.ctm-v18 .ctm17-mega-groups{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px!important}
.ctm-v18 .ctm17-mega-group{background:#fff!important;border:1px solid #dfe9f9!important;box-shadow:0 8px 22px rgba(17,51,98,.04);min-width:0}
.ctm-v18 .ctm17-mega-group h3{color:#0a898c!important}
.ctm-v18 .ctm17-mega-group a{color:#1b335a!important}
.ctm-v18 .ctm17-mega-group a:hover{background:#e7f6fd!important;color:#134ebd!important}
.ctm-v18 .ctm17-industry-links a{background:#fff!important;border-color:#d5e5f5;color:#24416a!important}
.ctm-v18 .ctm17-dropdown .ctm17-small-panel,.ctm-v18 .ctm13-tools-nav .ctm13-tools-popover.ctm17-small-panel{background:#f8fbff!important;top:calc(100% + 2px)!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;border:1px solid #dce8f9!important;box-shadow:0 19px 48px rgba(17,37,81,.2)!important;color:#182b4d!important;opacity:1!important}
.ctm-v18 .ctm17-small-panel a{color:#1a2f55!important}
.ctm-v18 .ctm17-small-panel a small{color:#63748e!important}
/* Section typography: V10 changed old navy sections to light glass without resetting old white text. */
.ctm-v18 .v9-service-story{background:linear-gradient(124deg,#f4fffd,#f5f7ff 73%,#e9efff)!important;color:var(--ctm18-ink)!important}
.ctm-v18 .v9-service-story .v9-story-grid h2{color:#162449!important}
.ctm-v18 .v9-service-story .v9-story-grid h2 em{color:#2874c5!important}
.ctm-v18 .v9-service-story .v9-story-audience{color:#4d6282!important}
.ctm-v18 .v9-service-story .v9-small-label{color:#1b65bb!important}
.ctm-v18 .v9-service-story .v9-story-panel{background:rgba(255,255,255,.94)!important;color:#172a4e!important;border:1px solid #dce8fa!important;box-shadow:0 20px 52px rgba(24,55,103,.09)!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important}
.ctm-v18 .v9-service-story .v9-story-panel p{color:#192e55!important}
.ctm-v18 .v9-service-story .v9-story-panel a{color:#175ac3!important;border-bottom-color:#93b7e8!important}
.ctm-v18 .v9-service-story .v9-story-panel a span{color:#f27649!important}
.ctm-v18 .v9-expectation,.ctm-v18 .v9-industry-measure{background:linear-gradient(136deg,#fff,#f0f6ff)!important;color:#16294e!important;border:1px solid #d8e5f8!important;box-shadow:0 18px 40px rgba(27,56,103,.07)!important}
.ctm-v18 .v9-expectation :where(h3,li),.ctm-v18 .v9-industry-measure :where(h3,li){color:#17294c!important}
.ctm-v18 .v9-expectation .v9-small-label,.ctm-v18 .v9-industry-measure .v9-small-label{color:#2b67c6!important}
.ctm-v18 .v9-expectation li::before,.ctm-v18 .v9-industry-measure li::before{color:#f17645!important}
/* Headlines on dark backgrounds should never inherit the global navy / gradient override. */
.ctm-v18 .ctm-modern .v14-tools-inner{background:linear-gradient(132deg,#09183e,#1847a3 72%,#255ed2)!important;color:#fff!important}
.ctm-v18 .ctm-modern .v14-tools-inner h2{color:#fff!important}
.ctm-v18 .ctm-modern .v14-tools-inner h2 em{color:#7fe3e2!important;-webkit-text-fill-color:#7fe3e2!important;background:none!important}
.ctm-v18 .ctm-modern .v14-tools-inner .v14-label{color:#afd4ff!important}
.ctm-v18 .ctm-modern .v14-tools-inner p{color:#d8e5ff!important}
.ctm-v18 .ctm-modern .v14-showreel .v14-section-head h2{color:#fff!important}
.ctm-v18 .ctm-modern .v14-showreel .v14-section-head h2 em{color:#9bd9ff!important;-webkit-text-fill-color:#9bd9ff!important}
.ctm-v18 .ctm-modern .v14-studio-screen{background:linear-gradient(135deg,#081c48,#113587)!important;overflow:hidden;isolation:isolate}
.ctm-v18 .ctm-modern .v14-studio-photo{opacity:.30;object-fit:cover;filter:saturate(.75) contrast(1.12)}
.ctm-v18 .ctm-modern .v14-studio-tint{background:linear-gradient(180deg,rgba(6,21,54,.50),rgba(7,20,54,.80))!important}
.ctm-v18 .ctm-modern .v14-studio-center,.ctm-v18 .ctm-modern .v14-studio-live,.ctm-v18 .ctm-modern .v14-studio-footer{z-index:3}
.ctm-v18 .ctm-modern .v14-studio-center h3,.ctm-v18 .ctm-modern .v14-studio-center p{color:#fff!important;text-shadow:0 2px 17px rgba(0,0,0,.25)}
.ctm-v18 .ctm-modern .v14-tools-illustration{min-width:0}
.ctm-v18 .ctm-modern .v15-system-copy h2,.ctm-v18 .ctm-modern .v15-system-copy h2 em{color:#fff!important}
.ctm-v18 .ctm-modern .v15-system-copy h2 em{color:#83e6ea!important;-webkit-text-fill-color:#83e6ea!important;background:none!important}
.ctm-v18 :where(.v10-guide-intro,.v10-guide-columns,.v9-process-grid,.v9-story-grid,.v14-intelligence-grid,.v14-studio-stage,.v15-home-stack-grid,.v15-system-panel)>*{min-width:0}
.ctm-v18 :where(.ed-section,.section,.v14-section,.v15-home-stack,.v15-home-system) :where(h2,h3,p){overflow-wrap:break-word}
.ctm-v18 :where(.ed-section,.section,.v14-section) h2{line-height:1.10}
.ctm-v18 :where(.ed-section,.section,.v14-section) p{line-height:1.7}
/* Clean illustrations rather than the old SVGs with overlapping embedded labels. */
.ctm-v18 .service-image-visual::before{display:none!important}
.ctm-v18 .service-image-visual img,.ctm-v18 .ed-listing-photo img,.ctm-v18 .v15-stack-visual img{display:block;object-fit:cover;object-position:center center}
.ctm-v18 .service-image-label{position:absolute!important;top:16px!important;right:16px!important;left:auto!important;bottom:auto!important;width:auto!important;max-width:min(210px,62%)!important;height:auto!important;display:block!important;padding:9px 12px!important;font-size:10px!important;line-height:1.4!important;color:#233f6e!important;background:#f9fcff!important;border-radius:12px!important}
.ctm-v18 .service-image-overlay{background:rgba(10,27,69,.9)!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;max-width:calc(100% - 26px);overflow-wrap:anywhere}
/* Footer, quote controls and chat should not collide with page content. */
.ctm-v18 .footer{background:#0b1736!important;color:#dce8ff!important}
.ctm-v18 .ctm12-calculator{min-width:0;overflow:hidden}
.ctm-v18 .ctm12-calculator :where(input,select){max-width:100%;min-width:0}
.ctm-v18 .footer-main>div{min-width:0}
/* Branded contact popover: shortcuts, not a fake chatbot. */
.ctm-v18 .floating-wa.ctm18-chat-trigger{z-index:1400!important;position:fixed;display:flex;align-items:center;justify-content:center;gap:11px;bottom:24px;right:24px;min-height:56px;border:1px solid rgba(255,255,255,.78);border-radius:100px;padding:10px 20px 10px 10px;cursor:pointer;color:#fff!important;background:linear-gradient(120deg,#132b75,#245bd7 68%,#169cb0)!important;font:800 13px/1.2 'DM Sans',sans-serif;box-shadow:0 14px 36px rgba(16,47,119,.28),inset 0 1px #ffffff48;transition:transform .18s ease,box-shadow .18s ease}
.ctm-v18 .floating-wa.ctm18-chat-trigger:hover{transform:translateY(-3px)!important;box-shadow:0 18px 40px rgba(16,47,119,.34)}
.ctm-v18 .ctm18-chat-symbol{display:grid;place-items:center;width:37px;height:37px;flex:none;background:#ffffff29;border:1px solid #ffffff45;border-radius:50%;font-size:17px}
.ctm-v18 .ctm18-chat-panel{position:fixed;right:24px;bottom:93px;z-index:1450;width:min(370px,calc(100vw - 30px));max-height:min(590px,calc(100dvh - 112px));display:flex;flex-direction:column;overflow:auto;background:#f8fcff;border:1px solid #dce8f8;border-radius:24px;box-shadow:0 28px 85px rgba(13,34,82,.33);color:#162a4e;text-align:left}
.ctm-v18 .ctm18-chat-panel[hidden]{display:none!important}
.ctm-v18 .ctm18-chat-head{display:flex;align-items:center;gap:12px;padding:17px;background:linear-gradient(116deg,#d9faf4,#e2ebff 73%,#eee9ff)}
.ctm-v18 .ctm18-chat-avatar{height:44px;width:44px;display:grid;place-items:center;border-radius:15px;color:#fff;background:linear-gradient(135deg,#123bcc,#168cc7);font-weight:900;font-size:25px}
.ctm-v18 .ctm18-chat-head>div:nth-child(2){display:grid;gap:2px;min-width:0;flex:1}
.ctm-v18 .ctm18-chat-head strong{font-size:17px;line-height:1.2;color:#12274f}
.ctm-v18 .ctm18-chat-head span{font-size:11px;color:#57728e}
.ctm-v18 .ctm18-chat-close{border:1px solid #cadbea;background:#fff;color:#1e365e;border-radius:11px;width:36px;height:36px;font-size:24px;cursor:pointer}
.ctm-v18 .ctm18-chat-content{padding:15px 17px 13px;display:grid;gap:9px}
.ctm-v18 .ctm18-chat-content>p{color:#4e6280;font-size:13px;line-height:1.65;margin:0 0 7px}
.ctm-v18 .ctm18-chat-choice{display:flex;align-items:center;gap:12px;border:1px solid #dce6f8;background:#fff;color:#21365a;text-decoration:none;border-radius:15px;padding:12px;font-size:13px}
.ctm-v18 .ctm18-chat-choice>span:first-child{width:36px;height:36px;border-radius:12px;display:grid;place-items:center;background:#e7efff;color:#275bcd;font-size:21px;flex:none}
.ctm-v18 .ctm18-chat-choice>span:nth-child(2){display:grid;gap:3px;flex:1;min-width:0}
.ctm-v18 .ctm18-chat-choice strong{font-size:13px;color:#19315c}
.ctm-v18 .ctm18-chat-choice small{font-size:10.5px;color:#6c7f98;overflow-wrap:anywhere}
.ctm-v18 .ctm18-chat-choice>b{font-size:16px;color:#315fd0}
.ctm-v18 .ctm18-chat-choice:hover,.ctm-v18 .ctm18-chat-choice:focus-visible{border-color:#9ed8e0;background:#f0fbff}
.ctm-v18 .ctm18-chat-primary{background:linear-gradient(120deg,#e7fdf5,#f5fffd);border-color:#b4e6d9}
.ctm-v18 .ctm18-chat-primary>span:first-child{background:#d0f7e9;color:#0a9d80}
.ctm-v18 .ctm18-chat-quote{display:flex;justify-content:space-between;background:#1749c6;border-radius:14px;padding:14px 16px;color:#fff!important;text-decoration:none;font-size:12px;font-weight:800;margin-top:3px}
.ctm-v18 .ctm18-chat-note{padding:0 18px 17px;color:#75859c;font-size:10px;line-height:1.5;margin:0}
@media(max-width:1120px){
 .ctm-v18 .ctm17-mega-panel,.ctm-v18 .ctm17-dropdown .ctm17-small-panel,.ctm-v18 .ctm13-tools-nav .ctm13-tools-popover.ctm17-small-panel{position:static!important;max-height:none!important;width:100%!important;overflow:visible!important;margin:9px 0!important;box-shadow:none!important;background:#f2f8ff!important;transform:none!important;padding:15px!important}
 .ctm-v18 .ctm17-mega-groups{grid-template-columns:repeat(2,minmax(0,1fr))}
 .ctm-v18 .ctm17-mega-industries{flex-wrap:wrap;gap:11px}
 .ctm-v18 .ctm17-mega-header{align-items:start!important;flex-wrap:wrap}
}
@media(max-width:700px){
 .ctm-v18 .ctm17-mega-groups{grid-template-columns:1fr}
 .ctm-v18 .ctm17-mega-panel{border-radius:16px!important}
 .ctm-v18 .v9-service-story .v9-story-grid{grid-template-columns:minmax(0,1fr);gap:24px}
 .ctm-v18 .v9-expectation,.ctm-v18 .v9-industry-measure{grid-template-columns:1fr}
 .ctm-v18 .ctm-modern .v14-tools-inner{overflow:hidden}
 .ctm-v18 .ctm18-chat-panel{right:12px;bottom:85px;width:min(370px,calc(100vw - 24px));max-height:min(560px,calc(100dvh - 105px));border-radius:21px}
 .ctm-v18 .floating-wa.ctm18-chat-trigger{bottom:14px;right:13px;padding:8px 14px 8px 8px;min-height:49px;font-size:12px}
 .ctm-v18 .ctm18-chat-symbol{width:31px;height:31px}
 .ctm-v18 .v14-studio-screen img{object-position:center}
}
@media(prefers-reduced-motion:reduce){.ctm-v18 .floating-wa.ctm18-chat-trigger{transition:none!important}}
/* The V16 hero previously hid the floating WhatsApp pill on small screens.
   Keep the new chat/contact control visible on the homepage first screen. */
@media(max-width:700px){
 .ctm-v18.ctm16-hero-visible .floating-wa.ctm18-chat-trigger{opacity:1!important;transform:none!important;pointer-events:auto!important}
}
