/* Shared public-site layout. Loaded after legacy themes to keep one responsive scale.
   Intrinsic grid widths are bounded here; content is never hidden to mask overflow. */
:root{--ox-ink:#092744;--ox-muted:#50647d;--ox-green:#007b43;--ox-blue:#0869ce;--ox-line:#d9e5ef;--ox-radius:16px;--ox-gutter:clamp(16px,3vw,40px);--ox-container:1200px}
body.public-home,body.guide-access-page,body.public-error-page{font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;font-size:16px;line-height:1.55;color:var(--ox-ink);font-weight:400}
body.public-home *,body.guide-access-page *,body.public-error-page *{box-sizing:border-box}
body.public-home :is(h1,h2,h3,h4,p,li,span,a,label),body.guide-access-page :is(h1,h2,p,li,label){overflow-wrap:break-word}
body.public-home :is(button,input,select,textarea){font-family:inherit}
body.public-home :is(button,a,input,select,textarea):focus-visible,body.guide-access-page :is(button,a,input):focus-visible{outline:3px solid #0873d8;outline-offset:3px}
body.public-home :is(.page-container,.front-container,.rep-shell),body.public-home #servicos .page-container{width:calc(100% - var(--ox-gutter)*2)!important;max-width:var(--ox-container)!important;margin-inline:auto!important;padding-inline:0!important;min-width:0}
body.public-home section[id]{scroll-margin-top:96px}
body.public-home .landing-section{padding-block:clamp(36px,5vw,64px)!important}
body.public-home .section-heading{max-width:800px;margin:0 auto 28px;text-align:center}
body.public-home .section-heading h2{font-size:clamp(26px,2.8vw,38px)!important;line-height:1.18!important;letter-spacing:-.035em!important;font-weight:750!important;color:var(--ox-ink)}
body.public-home .section-heading>span{font-size:16px!important;line-height:1.6!important;color:var(--ox-muted)!important}
body.public-home .section-heading>p{font-size:12px!important;line-height:1.5;letter-spacing:1.5px!important;color:#815800!important;font-weight:750!important}
/* One header and touch-friendly navigation across home and legal pages. */
body.public-home .site-header{background:#fff!important}
body.public-home .header-shell.page-container{display:flex!important;align-items:center!important;justify-content:space-between!important;min-height:80px!important;gap:28px!important;padding-block:14px!important}
body.public-home .site-header .brand{flex:0 0 auto;margin:0!important;width:auto!important}
body.public-home .site-header .brand img{display:block;width:186px!important;max-width:100%;height:auto!important}
body.public-home .main-nav{gap:clamp(16px,2vw,30px)!important;margin-left:auto!important;min-width:0}
body.public-home .main-nav a{font-size:14px!important;font-weight:650!important;line-height:1.4;min-height:44px;display:inline-flex;align-items:center;white-space:normal}
body.public-home .menu-toggle{flex:0 0 44px;width:44px!important;height:44px!important;min-width:44px;min-height:44px}
body.front-reference #inicio.hero{padding-block:clamp(32px,5vw,64px)!important}
body.front-reference #inicio .hero-grid{width:calc(100% - var(--ox-gutter)*2)!important;max-width:var(--ox-container)!important}
body.front-reference #inicio .hero-copy{max-width:740px!important}
body.front-reference #inicio .hero-copy h1{font-family:inherit!important;font-size:clamp(32px,3.7vw,52px)!important;line-height:1.1!important;letter-spacing:-.035em!important;font-weight:780!important}
body.front-reference #inicio .hero-description{font-family:inherit;font-size:clamp(16px,1.5vw,19px)!important;line-height:1.6!important;max-width:630px!important}
body.front-reference #inicio .front-benefits{flex-wrap:wrap;gap:14px 24px}
body.front-reference #inicio .front-benefits li{font-family:inherit;font-size:14px;line-height:1.5}
body.public-home #como-comecar.start-section{padding-block:28px 36px!important}
#como-comecar .front-decisions{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;max-width:none;padding:0}
#como-comecar :is(.front-start,.front-guide){padding:clamp(22px,2.5vw,32px);border-radius:var(--ox-radius)}
#como-comecar .front-decisions h2{font-size:clamp(25px,2.5vw,32px);line-height:1.18;font-weight:750}
#como-comecar .decision-description{font-weight:400;line-height:1.6;max-width:none}
#como-comecar .front-button{font-weight:650;min-height:52px}
#como-comecar .front-primary{background:linear-gradient(110deg,#008749,#006c3b)}
#como-comecar .decision-facts{grid-template-columns:repeat(2,minmax(0,1fr))}
#como-comecar .decision-facts strong{white-space:normal}
#como-comecar :is(.front-fineprint,.decision-caption){color:#50647d;font-size:13px}
#como-comecar .decision-guide-details{grid-template-columns:minmax(0,1fr) 140px}
#como-comecar .decision-guide-details li{font-size:14px;font-weight:400;line-height:1.45}
/* Representation and supporting cards use the same content alignment. */
body.public-home .rep-section{padding-block:12px 36px}
body.public-home #como-importar .rep-card{border-radius:var(--ox-radius);padding:clamp(20px,3vw,36px)}
body.public-home #como-importar .rep-title-group h3{font-size:clamp(25px,2.7vw,36px);line-height:1.2;letter-spacing:-.03em}
.rep-how ol{grid-template-columns:repeat(3,minmax(0,1fr))}
.rep-step{min-width:0}.rep-step p,.rep-cost-note p{font-weight:400;line-height:1.55}
.rep-cost>*{min-width:0}.rep-cost table{width:100%;table-layout:fixed}.rep-cost th{width:70%;overflow-wrap:break-word}.rep-cost td{width:30%;white-space:normal}
body.public-home .urgent-inline-card{display:flex;align-items:center;gap:22px;min-width:0;padding:28px;border-radius:var(--ox-radius);border:1px solid var(--ox-line);background:#f2f7fc}
body.public-home .urgent-inline-copy{min-width:0;flex:1}
body.public-home .urgent-inline-copy h2{font-size:clamp(23px,2.3vw,30px);line-height:1.25}
body.public-home .urgent-inline-copy span{font-weight:400;line-height:1.6;color:var(--ox-muted)}
body.public-home .urgent-inline-card>.btn{flex-shrink:0;min-height:48px;white-space:normal}
body.public-home .services-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:20px!important;max-width:none!important}
body.public-home #servicos .service-card{min-width:0!important;width:auto!important;max-width:none!important;height:auto!important;min-height:0!important;display:flex!important;flex-direction:column;align-items:flex-start;padding:26px!important;border:1px solid var(--ox-line)!important;border-radius:var(--ox-radius)!important;background:#fff!important;box-shadow:0 6px 22px #09274408!important}
body.public-home #servicos .service-card h3{font-size:21px!important;font-weight:700!important;line-height:1.3!important;margin:16px 0 12px!important;color:var(--ox-ink)!important}
body.public-home #servicos .service-card>strong{font-size:26px!important;line-height:1.25;color:var(--ox-green)!important;font-weight:750!important}
body.public-home #servicos .service-card>strong small{display:inline;font-size:13px!important;font-weight:500!important;color:var(--ox-muted)!important}
body.public-home #servicos .service-card>p{font-size:15px!important;font-weight:400!important;line-height:1.65!important;margin:14px 0 0!important;color:var(--ox-muted)!important}
body.public-home .card-icon{width:48px!important;height:48px!important;border-radius:12px!important;background:#edf6ff!important;color:#075da7!important}
body.public-home .institutional-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}
body.public-home .institutional-grid article{min-width:0;padding:24px;border:1px solid var(--ox-line);border-radius:var(--ox-radius);background:#fff}
body.public-home .institutional-grid h3{font-size:20px;line-height:1.3;font-weight:700;color:var(--ox-ink)}
body.public-home .institutional-grid p{font-size:15px!important;line-height:1.65!important;font-weight:400!important;color:var(--ox-muted)!important}
body.public-home #solicitar-proposta{width:calc(100% - var(--ox-gutter)*2);max-width:var(--ox-container);padding:40px 28px!important;border-radius:var(--ox-radius);margin:20px auto 40px}
body.public-home #solicitar-proposta>.page-container{width:100%!important}
body.public-home #solicitar-proposta .contract-card{border-radius:var(--ox-radius);box-shadow:0 8px 24px #0927440a}
body.public-home #solicitar-proposta .contract-primary{background:linear-gradient(110deg,#008749,#006c3b)}
body.public-home #solicitar-proposta .contract-benefits li{font-size:12px}
body.public-home #solicitar-proposta .contract-badge{background:#007b43}
/* minmax(0, ...) prevents the intrinsic logo width from stretching the footer. */
body.public-home .site-footer .footer-grid{grid-template-columns:minmax(0,1.35fr) minmax(0,1fr) minmax(0,1fr)!important;gap:36px!important}
body.public-home .site-footer .footer-grid>*{min-width:0;max-width:100%}
body.public-home .site-footer .footer-logo{width:214px!important;max-width:100%!important}
body.public-home .site-footer .footer-logo img{width:180px!important;height:auto!important;max-width:100%!important;min-width:0!important}
body.public-home .site-footer :is(p,a,span){font-weight:400}
body.public-home .site-footer a{min-height:44px;display:inline-flex;align-items:center}
body.public-home .site-footer .footer-client-button{display:flex;font-weight:650;white-space:normal}
body.public-home .site-footer ul{gap:0}
body.public-home .site-footer .footer-bottom{padding-block:20px!important}
body.public-home .front-bottom-cta>.front-container{display:flex;align-items:center;justify-content:space-between;gap:28px}
body.public-home .front-bottom-cta h2{font-size:24px;line-height:1.3;max-width:650px}
body.public-home .front-bottom-cta .front-bottom-actions{flex-shrink:0}
/* Dialogs keep real content scrollable, including phones in landscape. */
body.public-home dialog.modal[open]{max-width:calc(100vw - 32px)!important;max-height:calc(100dvh - 32px)!important;padding:0!important;min-width:0;overscroll-behavior:contain}
body.public-home dialog.modal :is(input:not([type=checkbox]):not([type=radio]),select,textarea){font-size:16px!important;max-width:100%;min-width:0;min-height:44px;font-weight:400!important}
body.public-home dialog.modal :is(.form-grid,.choice-grid)>*{min-width:0}
body.public-home dialog.modal :is(p,.modal-subtitle,.wizard-step>p,.checkout-box span,.order-bump small){font-weight:400!important;line-height:1.55!important;color:var(--ox-muted)}
body.public-home dialog.modal :is(h2,h3){font-weight:750!important;line-height:1.2!important}
body.public-home dialog.modal .btn{min-height:48px!important;white-space:normal!important;font-weight:650!important}
body.public-home dialog.modal .modal-close{width:44px!important;height:44px!important;min-width:44px;min-height:44px}
body.public-home dialog.solution-modal.modal[open] > form#solution-form.modal-card{height:min(760px,calc(100dvh - 32px))!important;max-height:calc(100dvh - 32px)!important}
body.public-home .solution-modal .modal-header{padding:24px 76px 18px 28px!important;text-align:left!important}
body.public-home .solution-modal .modal-header h2{font-size:clamp(23px,2.5vw,30px)!important}
body.public-home .solution-modal .modal-subtitle{font-size:15px!important;margin-block:8px!important}
body.public-home .solution-modal .modal-kicker{color:#805700!important;letter-spacing:1px!important;font-size:12px!important}
body.public-home .solution-modal .solution-builder-frame{padding:22px 28px!important}
body.public-home .solution-modal .wizard-step>p{font-size:15px!important}
body.public-home .solution-modal .modal-footer .btn-gold{background:var(--ox-green)!important;color:#fff!important;border-color:var(--ox-green)!important}
body.public-home :is(.urgent-modal,.ebook-modal) .modal-card{height:auto!important;max-height:calc(100dvh - 32px)!important;overflow-y:auto!important;overscroll-behavior:contain;scroll-padding-block:20px;border-radius:var(--ox-radius)!important;min-width:0}
body.public-home :is(.urgent-modal,.ebook-modal) .modal-header{padding:24px 66px 16px 24px!important}
body.public-home :is(.urgent-modal,.ebook-modal) .modal-header h2{font-size:clamp(23px,2.3vw,30px)!important}
body.public-home :is(.urgent-modal,.ebook-modal) .modal-footer{position:static!important;min-width:0!important;flex-wrap:wrap;gap:12px}
body.public-home .legal-hero{padding-block:clamp(36px,5vw,64px)!important}
body.public-home .legal-hero h1{font-size:clamp(30px,4vw,48px)!important;line-height:1.15!important;letter-spacing:-.035em}
body.public-home .legal-hero p{font-weight:400;max-width:760px;line-height:1.7}
body.public-home .legal-content{max-width:960px!important;padding-block:24px 56px!important}
body.public-home .legal-card{padding:clamp(20px,3vw,32px);border-radius:var(--ox-radius);min-width:0}
body.public-home .legal-card :is(p,li){font-size:16px;line-height:1.75;font-weight:400}
body.guide-access-page .top img{display:block;background:white;padding:10px;border-radius:8px;max-width:100%}
body.guide-access-page .grid{grid-template-columns:repeat(2,minmax(0,1fr))}
body.guide-access-page .panel{min-width:0}
body.guide-access-page .content h1{font-size:clamp(30px,4vw,48px);line-height:1.15}
body.guide-access-page :is(input,button){font-size:16px;min-height:44px}
body.guide-access-page input[type=checkbox]{min-height:0}
body.guide-access-page .button,body.guide-access-page button{white-space:normal;padding:12px 20px;height:auto}
body.public-error-page{margin:0;background:#f2f7fc}
body.public-error-page .page-hero{min-height:100svh;display:grid;place-items:center;padding:24px}
body.public-error-page .section-shell{width:100%;max-width:640px;padding:clamp(24px,5vw,48px);border:1px solid var(--ox-line);border-radius:var(--ox-radius);background:#fff}
body.public-error-page h1{font-size:clamp(30px,4vw,44px);line-height:1.2}
@media(max-width:1120px){
 body.public-home .header-shell.page-container{min-height:72px!important;padding-block:12px!important;gap:16px!important}
 body.public-home .site-header .brand{order:1}body.public-home .menu-toggle{order:2;margin-left:auto}
 body.public-home .main-nav{position:absolute!important;top:100%!important;left:var(--ox-gutter)!important;right:var(--ox-gutter)!important;width:auto!important;max-width:none!important;margin:0!important;max-height:calc(100dvh - 88px);overflow-y:auto;gap:0!important;border-radius:12px!important;background:#fff!important;padding:12px!important;box-shadow:0 12px 32px #09274420}
 body.public-home .main-nav a{padding:12px!important;color:var(--ox-ink)!important}
 body.public-home .institutional-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 body.public-home .site-footer .footer-grid{gap:24px!important}
}
@media(max-width:980px){
 #como-comecar .front-decisions{grid-template-columns:minmax(0,1fr);max-width:680px;margin-inline:auto}
 body.public-home .services-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 body.public-home .site-footer .footer-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 body.public-home .site-footer .footer-brand{grid-column:1/-1}
 body.public-home .front-bottom-cta>.front-container{align-items:flex-start;flex-direction:column;gap:20px}
 body.public-home .rep-how ol{grid-template-columns:minmax(0,1fr)}
 body.public-home .rep-step{flex-direction:row}
 body.public-home .solution-modal .solution-builder-frame{grid-template-columns:minmax(0,1fr)!important;overflow-y:auto!important}
 body.public-home .solution-modal .solution-builder-scroll{overflow:visible!important}
 body.public-home .solution-modal .solution-summary{position:static!important;max-height:none!important}
}
@media(max-width:640px){
 body.public-home .site-header .brand img{width:156px!important}
 body.public-home .header-shell.page-container{min-height:68px!important;padding-block:10px!important}
 body.public-home section[id]{scroll-margin-top:80px}
 body.public-home .services-grid,body.public-home .institutional-grid{grid-template-columns:minmax(0,1fr)!important}
 body.public-home .institutional-grid article{padding:22px}
 body.public-home #solicitar-proposta{padding:30px 16px!important}
 #solicitar-proposta .contract-card-intro{grid-template-columns:56px minmax(0,1fr);gap:12px}
 #solicitar-proposta .contract-symbol{width:56px;height:56px}
 #solicitar-proposta .contract-symbol>svg{width:48px;height:48px}
 body.public-home #solicitar-proposta .contract-card h3{font-size:21px}
 body.public-home #solicitar-proposta .contract-card p{font-size:15px;line-height:1.6}
 body.public-home #solicitar-proposta .contract-card{padding:26px 18px 20px!important}
 body.public-home .urgent-inline-card{flex-wrap:wrap;padding:22px;gap:16px}
 body.public-home .urgent-inline-icon{display:none}
 body.public-home .urgent-inline-copy{flex-basis:100%}
 body.public-home .urgent-inline-card>.btn{width:100%}
 body.public-home .site-footer .footer-grid{grid-template-columns:minmax(0,1fr)!important;gap:28px!important}
 body.public-home .site-footer .footer-brand{grid-column:auto}
 body.public-home .site-footer .footer-client{width:100%;max-width:none}
 body.public-home .site-footer .footer-bottom{align-items:flex-start}
 #como-comecar .decision-guide-details{grid-template-columns:minmax(0,1fr) 100px;gap:12px}
 #como-comecar .decision-guide-details li{font-size:13px}
 body.public-home dialog.modal[open]{width:100%!important;max-width:100%!important;max-height:100dvh!important;height:100dvh!important;margin:0!important;border-radius:0!important}
 body.public-home dialog.solution-modal.modal[open] > form#solution-form.modal-card{height:100dvh!important;max-height:100dvh!important;border-radius:0!important}
 body.public-home .solution-modal .modal-header{padding:16px 66px 12px 20px!important}
 body.public-home .solution-modal .modal-subtitle{font-size:14px!important}
 body.public-home .solution-modal .solution-builder-frame{padding:20px!important}
 body.public-home .solution-modal .progress{margin-top:12px!important}
 body.public-home :is(.urgent-modal,.ebook-modal) .modal-card{max-height:100dvh!important;min-height:100dvh;border-radius:0!important;padding:0!important}
 body.public-home :is(.urgent-modal,.ebook-modal) .modal-footer{padding:16px!important;display:flex!important;flex-direction:column-reverse!important}
 body.public-home :is(.urgent-modal,.ebook-modal) .modal-footer .btn{width:100%!important;max-width:100%!important}
 body.public-home .ebook-modal .form-grid{grid-template-columns:minmax(0,1fr)!important}
 body.public-home .urgent-modal .modal-card{display:block!important}
 body.public-home .urgent-modal :is(.service-options,.form-grid,.notice,.consent,.form-status){margin:16px!important}
 body.guide-access-page .grid{grid-template-columns:minmax(0,1fr)}
 body.guide-access-page .hero{padding:16px 0}
 body.guide-access-page .content{padding:24px 18px}
 body.guide-access-page .panel{padding:18px}
}
@media(max-width:360px){
 #como-comecar .decision-guide-details{grid-template-columns:minmax(0,1fr)}
 #como-comecar .decision-guide-cover{display:flex;align-items:center;justify-content:center;gap:24px;padding-block:8px}
 #como-comecar .decision-guide-cover .front-book{margin:0}
 body.public-home #solicitar-proposta .contract-card-intro{grid-template-columns:minmax(0,1fr)}
 body.public-home .rep-title-group .rep-box{display:none}
 body.public-home .rep-cost{padding:14px 8px}
 body.public-home .rep-cost th,body.public-home .rep-cost td{padding:8px 5px;font-size:13px}
}
@media(max-height:560px){
 body.public-home .solution-modal .modal-header{padding:12px 68px 10px 20px!important}
 body.public-home .solution-modal .modal-kicker{display:none!important}
 body.public-home .solution-modal .modal-subtitle{display:none!important}
 body.public-home .solution-modal .modal-header h2{font-size:22px!important;margin:0!important}
 body.public-home .solution-modal .progress{margin-top:8px!important}
 body.public-home .solution-modal .progress span{min-height:28px!important}
 body.public-home .solution-modal .modal-close{top:8px!important;right:16px!important}
 body.public-home .solution-modal .solution-builder-frame{padding:16px 20px!important}
 body.public-home .solution-modal .modal-footer{padding-block:8px!important}
 body.public-home dialog.modal:not(.solution-modal) .modal-card{overflow-y:auto!important}
}
@media(prefers-reduced-motion:reduce){body.public-home *,body.public-home *::before,body.public-home *::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
/* Match the fixed header's actual box to its content at every breakpoint. */
body.public-home{--landing-header-height:80px;padding-top:80px!important}
body.public-home .site-header{height:80px!important;min-height:80px!important}
body.public-home section[id]{scroll-margin-top:96px!important}
@media(max-width:1120px){body.public-home{--landing-header-height:72px;padding-top:72px!important}body.public-home .site-header{height:72px!important;min-height:72px!important}}
@media(max-width:640px){body.public-home{--landing-header-height:68px;padding-top:68px!important}body.public-home .site-header{height:68px!important;min-height:68px!important}body.public-home section[id]{scroll-margin-top:80px!important}}
@media(max-width:980px){body.public-home .solution-modal .solution-summary-card{position:static!important;max-height:none!important;margin-top:16px}}
body.public-home .header-shell.page-container{height:100%!important;min-height:100%!important}
/* Sections follow their content instead of reserving an entire desktop viewport. */
body.public-home .landing-section{height:auto!important;min-height:0!important;max-height:none!important}

/* No summary or reserved sidebar on the company step or with no services selected. */
body.public-home .solution-modal .solution-summary-card[hidden]{display:none!important}
body.public-home .solution-modal .solution-builder-frame.is-summary-hidden{grid-template-columns:minmax(0,1fr)!important}

/* Representation heading fills the space after removing its price badge. */
body.public-home #como-importar .rep-overview-single{grid-template-columns:minmax(0,1fr);gap:0}

/* The habilitation price is primary; the estimated duration is supporting detail. */
#como-comecar .decision-facts{align-items:center}
#como-comecar .decision-facts>div:first-child strong{font-size:clamp(34px,3vw,40px);font-weight:800;line-height:1.15;margin:6px 0;color:#007b43}
#como-comecar .decision-facts>div:last-child{align-self:center}
#como-comecar .decision-facts>div:last-child .front-icon{display:none}
#como-comecar .decision-facts>div:last-child span{font-size:12px;font-weight:500;color:#50647d}
#como-comecar .decision-facts>div:last-child strong{font-size:16px;font-weight:600;line-height:1.4;letter-spacing:0;color:#50647d;margin:3px 0}
#como-comecar .decision-facts>div:last-child small{font-size:12px;font-weight:400;color:#50647d}
