/* Extensões institucionais v7: a identidade e o layout base permanecem. */
[hidden]{display:none!important}html{scroll-behavior:smooth;scroll-padding-top:24px}body{overflow-wrap:break-word}.skip-link{position:absolute;left:16px;top:-100px;z-index:1000;background:#c9f548;color:#10151a;padding:14px}.skip-link:focus{top:12px}a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid #77bdfb;outline-offset:4px}
.main-nav{font-size:14px;gap:22px}.footer-bottom a,.footer-bottom button{font-size:12px!important}.site-footer a{min-height:32px}.cm-wrap{max-width:1200px;margin:0 auto;padding:64px 5%}.cm-wrap p,.cm-wrap li{font-size:17px;line-height:1.75}.cm-wrap p{color:var(--gray)}.cm-wrap h2{font-size:clamp(26px,3vw,40px);line-height:1.25;margin-bottom:24px}.cm-wrap h3{font-family:'Space Grotesk',sans-serif;font-size:22px;line-height:1.35;margin-bottom:14px;letter-spacing:-.025em}.page-heading{padding:70px 8% 55px}.page-heading h1{font-size:clamp(32px,4.7vw,66px);max-width:1100px;line-height:1.13}.page-heading>p:last-of-type{max-width:850px;font-size:20px;line-height:1.6}.cm-breadcrumb{display:flex;flex-wrap:wrap;gap:8px;max-width:1200px;padding:25px 5% 0;margin:auto;color:var(--gray);font-size:13px}.cm-breadcrumb a{text-decoration:underline;text-underline-offset:3px}.cm-split{display:grid;grid-template-columns:1fr 1fr;gap:48px}.cm-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}.cm-card{border:1px solid color-mix(in srgb,var(--chalk) 22%,transparent);padding:30px;border-radius:4px;background:var(--ink)}.cm-card .eyebrow{font-size:12px;letter-spacing:.06em}.cm-card a{display:inline-flex;margin-top:18px;color:var(--lime-text,var(--lime));font-size:16px;text-decoration:underline;text-underline-offset:5px}.cm-steps{list-style:none;padding:0;counter-reset:steps;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px}.cm-steps li:before{counter-increment:steps;content:'0' counter(steps);display:block;color:var(--lime-text,var(--lime));font-size:32px;font-weight:600;margin-bottom:14px}.cm-steps li{border-top:1px solid #63704c;padding-top:20px}.cm-steps h3{font-size:20px}.cm-steps p{font-size:16px}.cm-faq{border-bottom:1px solid color-mix(in srgb,var(--chalk) 22%,transparent);padding:20px 0}.cm-faq summary{cursor:pointer;font-size:20px;font-weight:500;line-height:1.5}.cm-faq p{max-width:880px;padding:12px 0 0}.cm-cta{border-top:1px solid #5d6f31;margin-top:24px;padding-top:34px}.cm-cta .btn{font-size:15px;min-height:48px;letter-spacing:.035em}.cm-muted{font-size:14px!important;color:var(--gray)}.cm-wide-note{border-left:3px solid var(--lime);padding:10px 24px}.contact-layout .contact-form{max-width:650px}.contact-form label{font-size:16px;line-height:1.5}.contact-form input,.contact-form textarea,.contact-form select{font-size:16px}.contact-form .check-label{display:flex;flex-direction:row;align-items:flex-start;font-size:14px}.contact-form .check-label input{width:20px;height:20px;flex:0 0 20px;margin-top:3px}.contact-form p[role=status]{min-height:24px;font-size:15px;line-height:1.6}.contact-form .is-error{color:#ff9d9d}.contact-form button:disabled{opacity:.6;cursor:wait}.contact-layout h2{font-size:clamp(26px,3vw,42px)}.contact-layout p{font-size:17px}.newsletter .contact-form{max-width:620px;margin:24px auto 0;text-align:left}.newsletter .contact-form input{color:var(--chalk);background:var(--ink)}.newsletter .contact-form .btn{align-self:stretch;justify-content:center}.article{max-width:980px;margin:auto}.article h1{font-size:clamp(32px,4.6vw,60px);line-height:1.2}.article>p,.article section p{font-size:18px;line-height:1.8}.article section h2{font-family:'Space Grotesk',sans-serif;font-size:29px;margin:42px 0 16px}.article>img{max-height:400px;object-fit:cover;width:100%;height:auto}.cm-article-meta{font-size:14px!important;color:var(--gray)}.cm-blog-card img{width:100%;height:210px;object-fit:cover;margin-bottom:22px}.cm-cookie{position:fixed;bottom:20px;left:20px;z-index:200;width:min(620px,calc(100% - 40px));max-height:90dvh;overflow:auto;background:var(--ink);color:var(--chalk);padding:25px;border:1px solid #7f8f51;box-shadow:0 10px 60px #0006}.cm-cookie h2{font-family:'Space Grotesk',sans-serif;font-size:22px;margin:0 0 12px}.cm-cookie p,.cm-cookie label{font-size:14px;line-height:1.6}.cm-cookie details{margin:16px 0}.cm-cookie summary{cursor:pointer;font-size:14px;padding:7px 0}.cm-cookie label{display:flex;gap:10px;margin:10px 0;align-items:center}.cm-cookie input{width:20px;height:20px}.cm-cookie-actions{display:flex;gap:10px;flex-wrap:wrap}.cm-cookie button{min-height:44px;padding:10px 16px;border:1px solid #7f8f51;color:var(--chalk);font:inherit;font-size:14px;background:transparent;cursor:pointer}.cm-cookie button[data-cookie-accept]{background:#c9f548;color:#10151a}.cm-cookie a{text-decoration:underline}.hero-bottom p{max-width:560px!important;font-size:18px!important}.as-text{font-size:18px!important;line-height:1.65}.course-card{white-space:normal;text-decoration:none}.course-cards .course-card{height:auto}.as.visible,.as.in-view{opacity:1}.main-nav a[aria-current=page]{color:var(--lime)}
@media(max-width:760px){.cm-wrap{padding:42px 6%}.cm-split,.cm-grid,.cm-steps{grid-template-columns:1fr}.cm-steps{gap:22px}.cm-card{padding:24px}.page-heading{padding:48px 6% 34px}.page-heading h1{font-size:34px}.page-heading>p:last-of-type{font-size:18px}.cm-wrap p,.cm-wrap li{font-size:16px}.cm-breadcrumb{padding:22px 6% 0}.cm-cookie{padding:20px;left:12px;bottom:12px;width:calc(100% - 24px)}.cm-cookie-actions{display:grid;grid-template-columns:1fr 1fr}.cm-cookie button{padding:10px 8px}.contact-layout{gap:35px}.header-actions .header-cta{max-width:130px}.cm-cookie summary{min-height:40px}.cm-wrap h2{font-size:28px}.cm-steps li{display:block}.hero-bottom p{font-size:16px!important}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

.main-nav .mobile-contact{display:none}.main-nav.open{background:var(--ink);color:var(--chalk)}.main-nav.open .mobile-contact{display:block}
@media(max-width:760px){.page-heading h1{font-size:clamp(20px,6.2vw,30px);letter-spacing:-.025em;overflow-wrap:normal;word-break:normal}.theme-toggle,.mobile-menu{min-width:44px;min-height:44px}}
@media(max-width:420px){.header-actions .header-cta{display:none}.header-actions{gap:12px}.site-header .brand{flex-shrink:0}}

@media(max-width:760px){.footer-top{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.footer-top>*{min-width:0}}
@media(max-width:420px){.footer-top{grid-template-columns:minmax(0,1fr);gap:24px}.footer-top>div{grid-column:auto}}

/* CM Academy: a faixa inferior (marquee) termina rente à seção também no celular e em telas menores. */
.as.as-academy{padding-bottom:0}

/* Pop-up de captura (contato, WhatsApp e newsletter) */
html.cm-pop-aberto{overflow:hidden}
.cm-pop{width:min(480px,calc(100% - 32px));max-width:none;max-height:calc(100dvh - 40px);margin:auto;padding:30px 28px 26px;border:1px solid color-mix(in srgb,var(--lime) 45%,transparent);border-radius:10px;background:var(--ink);color:var(--chalk);box-shadow:0 30px 80px #000a;overflow:auto;overscroll-behavior:contain}
.cm-pop::backdrop{background:#05060ad1;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px)}
.cm-pop[open]{animation:cmPopIn .3s cubic-bezier(.2,.8,.2,1)}
@keyframes cmPopIn{from{opacity:0;transform:translateY(18px) scale(.98)}to{opacity:1;transform:none}}
@keyframes cmSheetIn{from{transform:translateY(100%)}to{transform:none}}
.cm-pop-close{position:absolute;top:12px;right:12px;width:40px;height:40px;display:grid;place-items:center;border:1px solid color-mix(in srgb,var(--chalk) 18%,transparent);border-radius:50%;background:transparent;color:inherit;cursor:pointer;transition:border-color .2s,color .2s}
.cm-pop-close:hover{border-color:var(--lime-text,var(--lime));color:var(--lime-text,var(--lime))}
.cm-pop-eyebrow{font:600 11px/1.2 'Space Grotesk',sans-serif;letter-spacing:.14em;color:var(--lime-text,var(--lime));margin:0 0 10px}
.cm-pop h2{font-family:Ethnocentric,sans-serif;font-size:clamp(19px,4.4vw,25px);line-height:1.2;margin:0 46px 10px 0;outline:none}
.cm-pop-lead{color:var(--gray);font-size:15px;line-height:1.55;margin:0 0 18px}
.cm-pop .contact-form{display:grid;grid-template-columns:1fr 1fr;gap:12px 14px}
.cm-pop .contact-form>label,.cm-pop .contact-form>button,.cm-pop .contact-form>p{grid-column:1/-1}
.cm-pop .contact-form>.cm-half{grid-column:auto}
.cm-pop .contact-form label{font-size:13px;line-height:1.35;gap:6px}
.cm-pop .contact-form input,.cm-pop .contact-form select,.cm-pop .contact-form textarea{min-height:46px;padding:11px 13px}
.cm-pop .contact-form textarea{min-height:84px;resize:vertical}
.cm-pop .contact-form .check-label{font-size:12.5px;line-height:1.45;gap:10px}
.cm-pop .contact-form .check-label input{min-height:0;width:18px;height:18px;flex:0 0 18px;margin-top:1px}
.cm-pop .contact-form .btn{width:100%;min-height:52px;font-size:14px;margin-top:2px}
.cm-pop .contact-form>p[role=status]{min-height:0;margin:0;font-size:14px;line-height:1.5;scroll-margin:24px 0 calc(26px + env(safe-area-inset-bottom))}
.cm-pop .contact-form>p[role=status]:empty{display:none}
.cm-pop-ok{text-align:center;padding:10px 0 2px}
.cm-pop-ok-icon{width:64px;height:64px;margin:0 auto 16px;display:grid;place-items:center;border-radius:50%;background:var(--lime);color:#10151a}
.cm-pop-ok h2{margin:0 0 10px}
.cm-pop-ok-text{color:var(--gray);font-size:15px;line-height:1.6;margin:0 0 6px}
.cm-pop-protocol{font-family:monospace;font-size:13px;color:var(--lime-text,var(--lime));margin:0 0 20px}
.cm-pop-ok-actions{display:grid;gap:10px}
.cm-pop-ok-actions .btn{width:100%}
.cm-pop-done{background:transparent;border:1px solid color-mix(in srgb,var(--chalk) 22%,transparent);color:inherit;cursor:pointer}
.cm-pop .cm-pop-wa{background:#25d366;color:#0b2414}
html[data-theme=light] .cm-pop .contact-form input,html[data-theme=light] .cm-pop .contact-form textarea,html[data-theme=light] .cm-pop .contact-form select{background:#fff;border-color:#c9ccc2;color:#0c0e11}
html[data-theme=light] .cm-pop .contact-form>p{color:var(--lime-text)}
html[data-theme=light] .cm-pop{border-color:#c9ccc2;box-shadow:0 30px 80px #0004}
@media(max-width:560px){
.cm-pop{width:100%;max-height:92dvh;margin:auto 0 0;border-radius:16px 16px 0 0;border-width:1px 0 0;padding:26px 18px calc(20px + env(safe-area-inset-bottom))}
.cm-pop[open]{animation:cmSheetIn .32s cubic-bezier(.2,.8,.2,1)}
.cm-pop .contact-form{grid-template-columns:1fr}
.cm-pop .contact-form>.cm-half{grid-column:1/-1}
}

/* Botão flutuante de WhatsApp: abre o pop-up curto; depois do registro, a conversa abre no WhatsApp. */
.cm-wa{position:fixed;right:max(18px,env(safe-area-inset-right));bottom:max(18px,env(safe-area-inset-bottom));z-index:150;display:flex;align-items:center;height:60px;min-width:60px;border-radius:999px;background:#25d366;color:#fff;text-decoration:none;font:600 15px/1 'Space Grotesk',sans-serif;box-shadow:0 12px 32px #0006;transition:transform .25s,box-shadow .25s;animation:cmWaRing 2.8s ease-out infinite}
.cm-wa:hover{transform:translateY(-2px);color:#fff}
.cm-wa-icon{width:60px;height:60px;display:grid;place-items:center;flex:none}
.cm-wa-label{max-width:0;overflow:hidden;white-space:nowrap;transition:max-width .35s ease,padding .35s ease}
.cm-wa:hover .cm-wa-label,.cm-wa:focus-visible .cm-wa-label{max-width:180px;padding-right:22px}
@keyframes cmWaRing{0%{box-shadow:0 12px 32px #0006,0 0 0 0 #25d36680}70%{box-shadow:0 12px 32px #0006,0 0 0 18px #25d36600}100%{box-shadow:0 12px 32px #0006,0 0 0 0 #25d36600}}
html.cm-pop-aberto .cm-wa{display:none}
@media(max-width:760px){body.cm-cookie-aberto .cm-wa{display:none}.cm-wa{height:56px;min-width:56px}.cm-wa-icon{width:56px;height:56px}.footer-bottom{padding-bottom:88px}}

/* Contato e newsletter: botões no lugar dos formulários soltos */
.cm-contact-actions{align-self:start;border:1px solid color-mix(in srgb,var(--chalk) 18%,transparent);border-radius:8px;padding:32px;background:color-mix(in srgb,var(--chalk) 3%,transparent)}
.contact-layout .cm-contact-actions h2{font-size:clamp(24px,2.6vw,34px);margin:6px 0 10px}
.cm-contact-buttons{display:grid;gap:12px;margin-top:22px}
.cm-contact-buttons .btn{width:100%;font-size:14px}
.cm-btn-wa{background:#25d366;color:#0b2414}
.cm-news-cta p{margin:0 0 22px}
.cm-news-cta .btn{width:auto;min-width:260px}
@media(max-width:760px){.cm-contact-actions{padding:24px 20px}.cm-news-cta .btn{width:100%}}
/* No topo, o último texto do rodapé do hero não fica embaixo do botão de WhatsApp. */
@media(min-width:761px){.hero .hero-coordinates>span:last-child{margin-right:72px}}
/* Tema claro: texto escuro nos botões verde-limão (antes ficava claro sobre o verde). */
html[data-theme=light] .lime{color:#0c0e11}

/* ===== Tema claro: topo, CM In Company e CM Growth claros, com texto escuro e cores de destaque escurecidas ===== */
html[data-theme=light] .hero,html[data-theme=light] .as-incompany{
--hero-photo-ink:#f4f5ef;--hero-photo-text:#0c0e11;--hero-photo-muted:#3d4248;--hero-photo-shadow:none;
--hero-photo-shade:linear-gradient(90deg,#f4f5eff7 0%,#f4f5efe0 38%,#f4f5ef8c 64%,#f4f5ef14 100%);
--offering-surface:#fff;--offering-border:#0c0e1124;--offering-shadow:0 10px 28px #0c0e1114;
--front-company-green:#3f7a00;--front-company-warm:#b4530a;--front-waba:#0279a3;--front-academy:#7e22ce;--front-freela:#c2410c;--bm-secondary:#2563eb;
--front-company-lettering:linear-gradient(110deg,var(--front-company-green) 12%,var(--front-company-green) 30%,var(--front-company-warm) 70%,var(--front-company-warm) 90%)}
html[data-theme=light] .hero{background:#e9ebe3}
html[data-theme=light] .hero:after{background-image:linear-gradient(#0c0e1108 1px,#0000 1px),linear-gradient(90deg,#0c0e1108 1px,#0000 1px)}
html[data-theme=light] .hero-scan{opacity:.12}
html[data-theme=light] .hero .eyebrow{color:#3d4248}
html[data-theme=light] .hero h1 span{color:var(--lime-text)}
html[data-theme=light] .hero-frame span{border-color:var(--lime-text)}
html[data-theme=light] .hero-coordinates{border-top-color:#0c0e1124}
html[data-theme=light] .hero .btn-clip{color:#0c0e11}
html[data-theme=light] .hero-open .btn-clip{color:#0c0e11}
html[data-theme=light] .hero-open .btn-clip .btn-clip-fill{outline-color:var(--lime-text)}
html[data-theme=light] .hero .btn-hud,html[data-theme=light] .hero .btn-hud:hover,html[data-theme=light] .hero .btn-hud:focus-visible{color:var(--btn-front);text-shadow:none}
html[data-theme=light] .hero-open h1{color:#0c0e11;text-shadow:none}
html[data-theme=light] .hero-open[data-front="1"] h1 .glitch{color:var(--front-waba)}
html[data-theme=light] .hero-open[data-front="2"] h1 .glitch{color:var(--front-academy)}
html[data-theme=light] .hero-open[data-front="3"] h1 .glitch{color:var(--front-freela)}
html[data-theme=light] .hero-open .hero-pitch{color:#22262b;text-shadow:none}
html[data-theme=light] .in-company{color:#0c0e11}
html[data-theme=light] .fronts-tabs button[data-front]{box-shadow:0 1px 0 #0c0e110f}
html[data-theme=light] .demand-card,html[data-theme=light] .possibilities,html[data-theme=light] .bm-solution{box-shadow:var(--offering-shadow)}
/* Seções com foto em tema claro: etiqueta, botão e cartões do In Company */
html[data-theme=light] .as:not(.alt) .as-tag,html[data-theme=light] .as:not(.alt) .as-cta{color:var(--lime-text);border-color:var(--lime-text)}
html[data-theme=light] .as:not(.alt) .as-tag i{background:var(--lime-text)}
html[data-theme=light] .as:not(.alt) .as-cta:hover{color:#0c0e11}
html[data-theme=light] .as-incompany .as-hud div{background:#ffffffd9;border-color:#4a6b0040}
html[data-theme=light] .as-incompany .as-hud span{color:#0c0e11}
html[data-theme=light] .as-incompany .as-hud b{color:var(--lime-text)}
html[data-theme=light] .as-incompany .as-grid-bg{background-image:linear-gradient(#4a6b0012 1px,#0000 1px),linear-gradient(90deg,#4a6b0012 1px,#0000 1px)}
/* CM Growth em tema claro: o gráfico vira traço escuro sobre fundo claro */
html[data-theme=light] .as-growth{background:#f4f5ef;color:#0c0e11}
html[data-theme=light] .as-growth>img{filter:invert(1) hue-rotate(180deg) saturate(1.15)}
html[data-theme=light] .as-growth:after{background:linear-gradient(#f4f5ef 0%,#f4f5ef9e 50%,#f4f5ef)}
html[data-theme=light] .as-growth .as-text{color:#3d4248}
html[data-theme=light] .as-growth .as-bars span{background:linear-gradient(to top,#4a6b001f,#6f9e0a);box-shadow:0 0 18px #4a6b0026}
/* Mensagens de erro dos formulários em vermelho (antes ficavam verdes no pop-up) */
.cm-pop .contact-form>p.is-error{color:#ff9d9d}
html[data-theme=light] .cm-pop .contact-form>p.is-error,html[data-theme=light] .contact-form .is-error{color:#b42318}
/* Botões das seções: o preenchimento do hover nunca aparece fora do botão. */
.as-cta{isolation:isolate;contain:paint}
/* Tema claro no celular: véu claro mais forte atrás do título e do texto do topo e do In Company. */
@media(max-width:767px){html[data-theme=light] .hero .hero-shade,html[data-theme=light] .hero-open .hero-shade,html[data-theme=light] .as-incompany:after{background:linear-gradient(0deg,#f4f5effa,#f4f5efe6 55%,#f4f5ef8c)!important}}
/* Campo-isca: fora da tela não basta, o preenchimento automático do navegador preenchia. Oculto de verdade. */
.cm-hp{display:none!important}
